tracepoint: Remove unnecessary const_cast
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
09b847f3
SM
12017-10-31 Simon Marchi <simon.marchi@ericsson.com>
2
3 * tracepoint.c (tfind_command): Remove const_cast.
4
f871c485
MG
52017-10-30 Mike Gulick <mgulick@mathworks.com>
6
7 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
8
b020ff80
SM
92017-10-30 Simon Marchi <simon.marchi@ericsson.com>
10
11 * common/common-utils.h (in_inclusive_range): New function.
12 * arm-tdep.c (arm_record_extension_space): Use
13 in_inclusive_range.
14 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
15 * cris-tdep.c (cris_spec_reg_applicable): Use
16 in_inclusive_range.
17
1b81856f
PA
182017-10-30 Pedro Alves <palves@redhat.com>
19 Simon Marchi <simon.marchi@ericsson.com>
20
21 * remote.c (remote_set_syscall_catchpoint): Build a std::string
22 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
23
31b833b3
PA
242017-10-30 Pedro Alves <palves@redhat.com>
25
26 * common/common-utils.c (string_appendf, string_vappendf): New
27 functions.
28 * common/common-utils.h (string_appendf, string_vappendf): New
29 declarations.
30 * unittests/common-utils-selftests.c (string_appendf_func)
31 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
32 (string_vappendf_tests): New functions.
33 (_initialize_common_utils_selftests): Register "string_appendf" and
34 "string_vappendf tests".
35
4a250334
PA
362017-10-30 Pedro Alves <palves@redhat.com>
37
38 * unittests/common-utils-selftests.c (format_func): New typedef.
39 (string_printf_tests, string_vprintf_tests): Tests factored out
40 and merged to ...
41 (test_format_func): ... this new function.
42 (string_printf_tests, string_vprintf_tests): Reimplement on top of
43 test_format_func.
44
16c5c17e
SM
452017-10-29 Simon Marchi <simon.marchi@ericsson.com>
46
47 * darwin-nat.c: Remove include of gdb.h.
48
7ca51576
SM
492017-10-29 Simon Marchi <simon.marchi@ericsson.com>
50
51 * xtensa-xtregs.c: Fix formatting issues.
52
c1342859
SM
532017-10-29 Simon Marchi <simon.marchi@ericsson.com>
54
55 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
56
484d8d36
MD
572017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
58
59 PR python/21213
60 * python/py-infthread.c (thpy_get_inferior): Increment reference
61 of inferior before returning it.
62
b5540b5f
SM
632017-10-27 Simon Marchi <simon.marchi@ericsson.com>
64
65 * unittests/common-utils-selftests.c (format): Add
66 ATTRIBUTE_PRINTF.
67
5a9dcda1
SM
682017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
69
70 * xml-syscall.c (struct syscall_desc): Add constructor.
71 <name>: Change type to std::string.
72 (syscall_desc_up): New typedef.
73 (syscall_desc_p): Remove typeder.
74 (DEF_VEC_P(syscall_desc_p)): Remove.
75 (struct syscall_group_desc): Add constructor.
76 <name>: Change type to std::string.
77 <syscalls>: Change type to std::vector.
78 (syscall_group_desc_up): New typedef.
79 (syscall_group_desc_p): Remove typedef.
80 (DEF_VEC_P(syscall_group_desc_p)): Remove.
81 (struct syscalls_info) <syscalls>: Change type to std::vector of
82 unique_ptr.
83 <groups>: Likewise.
84 <my_gdb_datadir>: Change type to std::string.
85 (syscalls_info_up): New typedef.
86 (allocate_syscalls_info): Remove.
87 (syscalls_info_free_syscalls_desc): Remove.
88 (syscalls_info_free_syscall_group_desc): Remove.
89 (free_syscalls_info): Remove.
90 (make_cleanup_free_syscalls_info): Remove.
91 (syscall_group_create_syscall_group_desc): Adjust.
92 (syscall_group_add_syscall): Adjust.
93 (syscall_create_syscall_desc): Adjust.
94 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
95 (init_syscalls_info): Adjust.
96 (syscall_group_get_group_by_name): Adjust.
97 (xml_get_syscall_number): Adjust.
98 (xml_get_syscall_name): Adjust.
99 (xml_list_of_syscalls): Adjust.
100 (xml_list_syscalls_by_group): Adjust.
101 (xml_list_of_groups): Adjust.
102
45461e0d
SM
1032017-10-27 Simon Marchi <simon.marchi@ericsson.com>
104
105 * probe.h: Don't include gdb_vecs.h.
106 (DEF_VEC_P (probe_p)): Remove.
107 (find_probes_in_objfile): Return an std::vector.
108 * probe.c (find_probes_in_objfile): Likewise.
109 * breakpoint.c (breakpoint_objfile_data)
110 <longjmp_probes>: Change type to std::vector.
111 <exception_probes>: Likewise.
112 (free_breakpoint_probes): Don't manually free vectors.
113 (create_longjmp_master_breakpoint): Adjust.
114 (create_exception_master_breakpoint): Adjust.
115 * solib-svr4.c (svr4_create_probe_breakpoints): Change
116 parameter type, adjust.
117 (svr4_create_solib_event_breakpoints): Adjust.
118
43dce439
SM
1192017-10-27 Simon Marchi <simon.marchi@ericsson.com>
120
121 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
122 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
123 with new.
124 (free_breakpoint_probes): Rename to ...
125 (free_breakpoint_objfile_data): ... this, and call delete on
126 bp_objfile_data..
127
6a1b9516
SM
1282017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
129
130 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
131 (loaded_script_ptr): Remove typedef.
132 (DEF_VEC_P (loaded_script_ptr)): Remove.
133 (struct collect_matching_scripts_data): Add constructor.
134 <scripts_p>: Change type to (pointer to) std::vector.
135 (collect_matching_scripts_data): Adjust.
136 (sort_scripts_by_name): Make suitable for std::sort.
137 (print_scripts): Don't sort vector, adjust to std::vector.
138 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
139
593e3209
SM
1402017-10-27 Simon Marchi <simon.marchi@ericsson.com>
141
142 * symfile.c (filename_language): Make struct, not typedef. Add
143 constructor.
144 <ext>: Change type to std::string.
145 (DEF_VEC_O (filename_language)): Remove.
146 (filename_language_table): Change type to std::vector.
147 (add_filename_language): Adjust.
148 (set_ext_lang_command): Adjust.
149 (info_ext_lang_command): Adjust.
150 (deduce_language_from_filename): Adjust.
151 (class scoped_restore_filename_language_table): Remove.
152 (test_filename_language): Use scoped_restore.
153 (test_set_ext_lang_command): Use scoped_restore, adjust to
154 std::vector change.
155
32fa66eb
SM
1562017-10-27 Simon Marchi <simon.marchi@ericsson.com>
157
158 * symfile.c: Include selftest.h.
159 (class scoped_restore_filename_language_table): New.
160 (test_filename_language): New test.
161 (test_set_ext_lang_command): New test.
162 (_initialize_symfile): Register tests.
163
4a27f119
KS
1642017-10-27 Keith Seitz <keiths@redhat.com>
165
166 * breakpoint.c (print_breakpoint_location): Use the symbol saved
167 in the bp_location, falling back to find_pc_sect_function when
168 needed.
169 (add_location_to_breakpoint): Save sal->symbol.
170 * breakpoint.h (struct bp_location) <symbol>: New field.
171 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
172 * symtab.h (struct symtab_and_line) <symbol>: New field.
173
a43f3893
PF
1742017-10-26 Patrick Frants <osscontribute@gmail.com>
175
7453e6b2 176 PR gdb/13669
a43f3893
PF
177 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
178 to rewind obstack.
179
23cc4e1b
PA
1802017-10-26 Pedro Alves <palves@redhat.com>
181
182 * remote.c (remote_async_terminal_ours_p): Delete.
183 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
184 Remove references to 'remote_async_terminal_ours_p'.
185
6abc18bb
YQ
1862017-10-26 Yao Qi <yao.qi@linaro.org>
187
188 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
189
bd522513
YQ
1902017-10-26 Yao Qi <yao.qi@linaro.org>
191
192 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
193 aspace const.
194 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
195 Likewise.
196 * breakpoint.c (bpstat_check_location): Remove cast.
197 (breakpoint_hit_catch_fork): Make aspce const.
198 (breakpoint_hit_catch_solib): Likewise.
199 (breakpoint_hit_catch_exec): Likewise.
200 (breakpoint_hit_ranged_breakpoint): Likewise.
201 (breakpoint_hit_watchpoint): Likewise.
202 (base_breakpoint_breakpoint_hit): Likewise.
203 (bkpt_breakpoint_hit): Likewise.
204 (dprintf_breakpoint_hit): Likewise.
205 (tracepoint_breakpoint_hit): Likewise.
206 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
207
accd0bcd
YQ
2082017-10-26 Yao Qi <yao.qi@linaro.org>
209
210 * breakpoint.c (breakpoint_location_address_match): Change
211 "struct address_space *" to "const address_space".
212 (breakpoint_location_address_range_overlap): Likewise.
213 (breakpoint_here_p): Likewise.
214 (breakpoint_in_range_p): Likewise.
215 (moribund_breakpoint_here_p): Likewise.
216 (bp_location_inserted_here_p): Likewise.
217 (software_breakpoint_inserted_here_p): Likewise.
218 (hardware_breakpoint_inserted_here_p): Likewise.
219 (hardware_watchpoint_inserted_in_range): Likewise.
220 (bpstat_check_location): Likewise.
221 (bpstat_stop_status): Likewise.
222 (breakpoint_address_match): Likewise.
223 (breakpoint_address_match_range): Likewise.
224 (breakpoint_location_address_match): Likewise.
225 (breakpoint_location_address_range_overlap): Likewise.
226 (insert_single_step_breakpoint): Likewise.
227 (breakpoint_has_location_inserted_here): Likewise.
228 (single_step_breakpoint_inserted_here_p): Likewise.
229 (pc_at_non_inline_function): Likewise.
230 * breakpoint.h (bpstat_stop_status): Update declaration.
231 (breakpoint_here_p): Likewise.
232 (breakpoint_in_range_p): Likewise.
233 (moribund_breakpoint_here_p): Likewise.
234 (breakpoint_inserted_here_p): Likewise.
235 (software_breakpoint_inserted_here_p): Likewise.
236 (hardware_breakpoint_inserted_here_p): Likewise.
237 (breakpoint_has_location_inserted_here): Likewise.
238 (single_step_breakpoint_inserted_here_p): Likewise.
239 (hardware_watchpoint_inserted_in_range): Likewise.
240 (breakpoint_address_match): Likewise.
241 (insert_single_step_breakpoint): Likewise.
242 (pc_at_non_inline_function): Likewise.
243 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
244 * record.c (record_check_stopped_by_breakpoint): Likewise.
245 * record.h (record_check_stopped_by_breakpoint): Likewise.
246 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
247
ac7936df
YQ
2482017-10-25 Yao Qi <yao.qi@linaro.org>
249
250 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
251 regcache->arch () instead get_regcache_arch.
252 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
253 Likewise.
254 (aarch64_fbsd_store_inferior_registers): Likewise.
255 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
256 (store_gregs_to_thread): Likewise.
257 (fetch_fpregs_from_thread): Likewise.
258 (store_fpregs_to_thread): Likewise.
259 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
260 (aarch64_store_return_value): Likewise.
261 (aarch64_software_single_step): Likewise.
262 * aix-thread.c (aix_thread_wait): Likewise.
263 (supply_reg32): Likewise.
264 (supply_sprs64): Likewise.
265 (supply_sprs32): Likewise.
266 (fill_gprs64): Likewise.
267 (fill_gprs32): Likewise.
268 (fill_sprs64): Likewise.
269 (fill_sprs32): Likewise.
270 (store_regs_user_thread): Likewise.
271 (store_regs_kernel_thread): Likewise.
272 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
273 (alphabsd_store_inferior_registers): Likewise.
274 * alpha-tdep.c (alpha_extract_return_value): Likewise.
275 (alpha_store_return_value): Likewise.
276 (alpha_deal_with_atomic_sequence): Likewise.
277 (alpha_next_pc): Likewise.
278 (alpha_software_single_step): Likewise.
279 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
280 (amd64bsd_store_inferior_registers): Likewise.
281 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
282 Likewise.
283 (amd64_linux_store_inferior_registers): Likewise.
284 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
285 (amd64_collect_native_gregset): Likewise.
286 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
287 (amd64obsd_collect_uthread): Likewise.
288 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
289 (amd64_collect_fpregset): Likewise.
290 (amd64_supply_fxsave): Likewise.
291 (amd64_supply_xsave): Likewise.
292 (amd64_collect_fxsave): Likewise.
293 (amd64_collect_xsave): Likewise.
294 * arc-tdep.c (arc_write_pc): Likewise.
295 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
296 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
297 (arm_fbsd_store_inferior_registers): Likewise.
298 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
299 (store_vfp_regs): Likewise.
300 (arm_linux_fetch_inferior_registers): Likewise.
301 (arm_linux_store_inferior_registers): Likewise.
302 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
303 (arm_linux_sigreturn_next_pc): Likewise.
304 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
305 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
306 (fetch_register): Likewise.
307 (store_register): Likewise.
308 * arm-tdep.c (arm_is_thumb): Likewise.
309 (displaced_in_arm_mode): Likewise.
310 (bx_write_pc): Likewise.
311 (arm_get_next_pcs_addr_bits_remove): Likewise.
312 (arm_software_single_step): Likewise.
313 (arm_extract_return_value): Likewise.
314 (arm_store_return_value): Likewise.
315 (arm_write_pc): Likewise.
316 * bfin-tdep.c (bfin_extract_return_value): Likewise.
317 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
318 (bsd_uthread_store_registers): Likewise.
319 * core-regset.c (fetch_core_registers): Likewise.
320 * corelow.c (get_core_registers): Likewise.
321 * cris-tdep.c (cris_store_return_value): Likewise.
322 (cris_extract_return_value): Likewise.
323 (find_step_target): Likewise.
324 (find_step_target): Likewise.
325 (cris_software_single_step): Likewise.
326 * ctf.c (ctf_fetch_registers): Likewise.
327 * darwin-nat.c (cancel_breakpoint): Likewise.
328 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
329 * frv-tdep.c (frv_extract_return_value): Likewise.
330 * ft32-tdep.c (ft32_store_return_value): Likewise.
331 (ft32_extract_return_value): Likewise.
332 * go32-nat.c (fetch_register): Likewise.
333 (go32_fetch_registers): Likewise.
334 (go32_store_registers): Likewise.
335 (store_register): Likewise.
336 * h8300-tdep.c (h8300_extract_return_value): Likewise.
337 (h8300_store_return_value): Likewise.
338 * hppa-linux-nat.c (fetch_register): Likewise.
339 (store_register): Likewise.
340 (hppa_linux_fetch_inferior_registers): Likewise.
341 (hppa_linux_store_inferior_registers): Likewise.
342 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
343 (i386_darwin_store_inferior_registers): Likewise.
344 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
345 (gnu_store_registers): Likewise.
346 * i386-linux-nat.c (fetch_register): Likewise.
347 (store_register): Likewise.
348 (supply_gregset): Likewise.
349 (fill_gregset): Likewise.
350 (i386_linux_fetch_inferior_registers): Likewise.
351 (i386_linux_store_inferior_registers): Likewise.
352 (i386_linux_resume): Likewise.
353 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
354 Likewise.
355 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
356 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
357 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
358 (i386obsd_collect_uthread): Likewise.
359 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
360 (i386_supply_gregset): Likewise.
361 (i386_collect_gregset): Likewise.
362 (i386_supply_fpregset): Likewise.
363 (i386_collect_fpregset): Likewise.
364 (i386_mpx_bd_base): Likewise.
365 * i386-v4-nat.c (supply_fpregset): Likewise.
366 (fill_fpregset): Likewise.
367 * i387-tdep.c (i387_supply_fsave): Likewise.
368 (i387_collect_fsave): Likewise.
369 (i387_supply_fxsave): Likewise.
370 (i387_collect_fxsave): Likewise.
371 (i387_supply_xsave): Likewise.
372 (i387_collect_xsave): Likewise.
373 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
374 (ia64_linux_store_registers): Likewise.
375 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
376 (ia64_extract_return_value): Likewise.
377 (ia64_store_return_value): Likewise.
378 (find_func_descr): Likewise.
379 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
380 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
381 (inf_ptrace_store_registers): Likewise.
382 * infrun.c (use_displaced_stepping): Likewise.
383 (displaced_step_prepare_throw): Likewise.
384 (resume): Likewise.
385 (proceed): Likewise.
386 (do_target_wait): Likewise.
387 (adjust_pc_after_break): Likewise.
388 (handle_inferior_event_1): Likewise.
389 (handle_signal_stop): Likewise.
390 (save_infcall_suspend_state): Likewise.
391 (restore_infcall_suspend_state): Likewise.
392 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
393 * jit.c (jit_frame_prev_register): Likewise.
394 * linux-nat.c (save_stop_reason): Likewise.
395 (linux_nat_wait_1): Likewise.
396 (resume_stopped_resumed_lwps): Likewise.
397 * linux-record.c (record_linux_sockaddr): Likewise.
398 (record_linux_msghdr): Likewise.
399 (record_linux_system_call): Likewise.
400 * linux-tdep.c (linux_collect_thread_registers): Likewise.
401 * lm32-tdep.c (lm32_extract_return_value): Likewise.
402 (lm32_store_return_value): Likewise.
403 * m32c-tdep.c (m32c_read_flg): Likewise.
404 (m32c_pseudo_register_read): Likewise.
405 (m32c_pseudo_register_write): Likewise.
406 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
407 (m32r_linux_collect_gregset): Likewise.
408 * m32r-tdep.c (m32r_store_return_value): Likewise.
409 (m32r_extract_return_value): Likewise.
410 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
411 (m68kbsd_collect_fpregset): Likewise.
412 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
413 * m68k-linux-nat.c (fetch_register): Likewise.
414 (old_fetch_inferior_registers): Likewise.
415 (old_store_inferior_registers): Likewise.
416 (store_regs): Likewise.
417 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
418 (m68k_svr4_store_return_value): Likewise.
419 * m88k-tdep.c (m88k_store_arguments): Likewise.
420 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
421 (mi_cmd_data_write_register_values): Likewise.
422 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
423 (mips_fbsd_store_inferior_registers): Likewise.
424 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
425 (mips_fbsd_supply_gregs): Likewise.
426 (mips_fbsd_collect_fpregs): Likewise.
427 (mips_fbsd_collect_gregs): Likewise.
428 (mips_fbsd_supply_fpregset): Likewise.
429 (mips_fbsd_collect_fpregset): Likewise.
430 (mips_fbsd_supply_gregset): Likewise.
431 (mips_fbsd_collect_gregset): Likewise.
432 * mips-linux-nat.c (supply_gregset): Likewise.
433 (fill_gregset): Likewise.
434 (supply_fpregset): Likewise.
435 (fill_fpregset): Likewise.
436 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
437 (mips_fill_gregset): Likewise.
438 (mips_supply_fpregset): Likewise.
439 (mips_fill_fpregset): Likewise.
440 (mips64_supply_gregset): Likewise.
441 (micromips_linux_sigframe_validate): Likewise.
442 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
443 (mipsnbsd_fetch_inferior_registers): Likewise.
444 (mipsnbsd_store_inferior_registers): Likewise.
445 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
446 (mipsnbsd_supply_gregset): Likewise.
447 (mipsnbsd_iterate_over_regset_sections): Likewise.
448 (mipsnbsd_supply_reg): Likewise.
449 (mipsnbsd_supply_fpreg): Likewise.
450 * mips-tdep.c (mips_in_frame_stub): Likewise.
451 (mips_dummy_id): Likewise.
452 (is_octeon_bbit_op): Likewise.
453 (micromips_bc1_pc): Likewise.
454 (extended_mips16_next_pc): Likewise.
455 (mips16_next_pc): Likewise.
456 (deal_with_atomic_sequence): Likewise.
457 * moxie-tdep.c (moxie_process_readu): Likewise.
458 * nios2-tdep.c (nios2_get_next_pc): Likewise.
459 * nto-procfs.c (procfs_store_registers): Likewise.
460 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
461 (ppcfbsd_store_inferior_registers): Likewise.
462 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
463 (fetch_altivec_register): Likewise.
464 (get_spe_registers): Likewise.
465 (fetch_spe_register): Likewise.
466 (fetch_altivec_registers): Likewise.
467 (fetch_all_gp_regs): Likewise.
468 (fetch_all_fp_regs): Likewise.
469 (store_vsx_register): Likewise.
470 (store_altivec_register): Likewise.
471 (set_spe_registers): Likewise.
472 (store_spe_register): Likewise.
473 (store_altivec_registers): Likewise.
474 (store_all_gp_regs): Likewise.
475 (store_all_fp_regs): Likewise.
476 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
477 (ppc_linux_collect_gregset): Likewise.
478 (ppc_canonicalize_syscall): Likewise.
479 (ppc_linux_record_signal): Likewise.
480 (ppu2spu_prev_register): Likewise.
481 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
482 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
483 (ppcobsd_store_registers): Likewise.
484 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
485 Likewise.
486 (ppc_ravenscar_generic_store_registers): Likewise.
487 * procfs.c (procfs_fetch_registers): Likewise.
488 (procfs_store_registers): Likewise.
489 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
490 (ravenscar_store_registers): Likewise.
491 (ravenscar_prepare_to_store): Likewise.
492 * record-btrace.c (record_btrace_fetch_registers): Likewise.
493 * record-full.c (record_full_wait_1): Likewise.
494 (record_full_registers_change): Likewise.
495 (record_full_store_registers): Likewise.
496 (record_full_core_fetch_registers): Likewise.
497 (record_full_save): Likewise.
498 (record_full_goto_insn): Likewise.
499 * regcache.c (regcache_register_size): Likewise.
500 (get_regcache_arch): Remove.
501 (regcache_read_pc): Likewise.
502 * regcache.h (get_regcache_arch): Remove.
503 * remote-sim.c (gdbsim_fetch_register): Likewise.
504 (gdbsim_store_register): Likewise.
505 * remote.c (fetch_register_using_p): Likewise.
506 (send_g_packet): Likewise.
507 (remote_prepare_to_store): Likewise.
508 (store_registers_using_G): Likewise.
509 * reverse.c (save_bookmark_command): Likewise.
510 (goto_bookmark_command): Likewise.
511 * rs6000-aix-tdep.c (branch_dest): Likewise.
512 * rs6000-nat.c (rs6000_ptrace64): Likewise.
513 (fetch_register): Likewise.
514 * rs6000-tdep.c (ppc_supply_reg): Likewise.
515 (ppc_collect_reg): Likewise.
516 (ppc_collect_gregset): Likewise.
517 (ppc_collect_fpregset): Likewise.
518 (ppc_collect_vsxregset): Likewise.
519 (ppc_collect_vrregset): Likewise.
520 (ppc_displaced_step_hw_singlestep): Likewise.
521 (rs6000_pseudo_register_read): Likewise.
522 (rs6000_pseudo_register_write): Likewise.
523 * s390-linux-nat.c (supply_gregset): Likewise.
524 (fill_gregset): Likewise.
525 (s390_linux_fetch_inferior_registers): Likewise.
526 * s390-linux-tdep.c (s390_write_pc): Likewise.
527 (s390_software_single_step): Likewise.
528 (s390_all_but_pc_registers_record): Likewise.
529 (s390_linux_syscall_record): Likewise.
530 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
531 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
532 (shnbsd_store_inferior_registers): Likewise.
533 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
534 (sh_extract_return_value_fpu): Likewise.
535 (sh_store_return_value_nofpu): Likewise.
536 (sh_corefile_supply_regset): Likewise.
537 (sh_corefile_collect_regset): Likewise.
538 * sh64-tdep.c (sh64_extract_return_value): Likewise.
539 (sh64_store_return_value): Likewise.
540 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
541 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
542 (sparc_store_inferior_registers): Likewise.
543 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
544 (sparc_ravenscar_prepare_to_store): Likewise.
545 * sparc-tdep.c (sparc32_store_arguments): Likewise.
546 (sparc_analyze_control_transfer): Likewise.
547 (sparc_step_trap): Likewise.
548 (sparc_software_single_step): Likewise.
549 (sparc32_gdbarch_init): Likewise.
550 (sparc_supply_rwindow): Likewise.
551 (sparc_collect_rwindow): Likewise.
552 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
553 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
554 (sparc64nbsd_collect_gregset): Likewise.
555 (sparc64nbsd_supply_fpregset): Likewise.
556 (sparc64nbsd_collect_fpregset): Likewise.
557 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
558 (sparc64_supply_gregset): Likewise.
559 (sparc64_collect_gregset): Likewise.
560 (sparc64_supply_fpregset): Likewise.
561 (sparc64_collect_fpregset): Likewise.
562 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
563 * spu-tdep.c (spu_unwind_sp): Likewise.
564 (spu2ppu_prev_register): Likewise.
565 (spu_memory_remove_breakpoint): Likewise.
566 * stack.c (return_command): Likewise.
567 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
568 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
569 * tracefile.c (trace_save_ctf): Likewise.
570 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
571 (do_windows_store_inferior_registers): Likewise.
572 (windows_resume): Likewise.
573 * xtensa-linux-nat.c (fill_gregset): Likewise.
574 (supply_gregset_reg): Likewise.
575 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
576 (xtensa_register_read_masked): Likewise.
577 (xtensa_supply_gregset): Likewise.
578 (xtensa_extract_return_value): Likewise.
579 (xtensa_store_return_value): Likewise.
580
edd079d9
UW
5812017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
582
583 * doublest.c (floatformat_from_string): New function.
584 * doublest.h (floatformat_from_string): Add prototype.
585
586 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
587 (OP_FLOAT): ... this.
588 * expression.h: Do not include "doublest.h".
589 (union exp_element): Replace doubleconst and decfloatconst by
590 new element floatconst.
591 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
592 (ada_evaluate_subexp): Likewise.
593 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
594 OP_DOUBLE and OP_DECFLOAT.
595 * expprint.c (print_subexp_standard): Likewise.
596 (dump_subexp_body_standard): Likewise.
597 * breakpoint.c (watchpoint_exp_is_const): Likewise.
598
599 * parse.c: Include "dfp.h".
600 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
601 (write_exp_elt_floatcst): New function.
602 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
603 and OP_DECFLOAT.
604 (operator_check_standard): Likewise.
605 (parse_float): Do not accept suffix. Take type as input. Return bool.
606 Return target format buffer instead of host DOUBLEST.
607 Use floatformat_from_string and decimal_from_string to parse
608 either binary or decimal floating-point types.
609 (parse_c_float): Remove.
610 * parser-defs.h: Do not include "doublest.h".
611 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
612 (write_exp_elt_floatcst): Add prototype.
613 (parse_float): Update prototype.
614 (parse_c_float): Remove.
615
616 * c-exp.y: Do not include "dfp.h".
617 (typed_val_float): Use byte buffer instead of DOUBLEST.
618 (typed_val_decfloat): Remove.
619 (DECFLOAT): Remove.
620 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
621 (parse_number): Update to new parse_float interface.
622 Parse suffixes and determine type before calling parse_float.
623 Handle decimal and binary FP types the same way.
624
625 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
626 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
627 (parse_number): Update to new parse_float interface.
628 Parse suffixes and determine type before calling parse_float.
629
630 * f-exp.y: Replace dval by typed_val_float.
631 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
632 (parse_number): Use parse_float instead of atof.
633
634 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
635 (parse_go_float): Remove.
636 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
637 (parse_number): Call parse_float instead of parse_go_float.
638 Parse suffixes and determine type before calling parse_float.
639
640 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
641 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
642 (parse_number): Update to new parse_float interface.
643 Parse suffixes and determine type before calling parse_float.
644
645 * m2-exp.y: Replace dval by byte buffer val.
646 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
647 (parse_number): Call parse_float instead of atof.
648
649 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
650 (lex_number): Call parse_float instead of strtod.
651 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
652 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
653 Use write_exp_elt_floatcst.
654 (unit_testing): Remove static variable.
655 (rust_type): Do not check unit_testing.
656 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
657
658 * ada-exp.y (type_float, type_double): Remove.
659 (typed_val_float): Use byte buffer instead of DOUBLEST.
660 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
661 * ada-lex.l (processReal): Use parse_float instead of sscanf.
662
cc628f3d
AH
6632017-10-25 Alan Hayward <alan.hayward@arm.com>
664
665 * aarch64-tdep.h (enum aarch64_regnum): Remove.
666 * arch/aarch64.h: New file.
667
09a7c6aa
UW
6682017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
669
670 * dfp.h (decimal_from_string): Use const reference for argument.
671 * dfp.c (decimal_from_string): Likewise.
672
8ba0dd51
UW
6732017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
674
675 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
676 * sh64-tdep.c (sh64_do_fp_register): Likewise.
677 * mips-tdep.c (mips_print_fp_register): Likewise.
678
16e812b2
UW
6792017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
680
681 * common/format.h (enum argclass): Replace decfloat_arg by
682 dec32float_arg, dec64float_arg, and dec128float_arg.
683 * common/format.c (parse_format_string): Update to return
684 new decimal float argument classes.
685
686 * printcmd.c (printf_decfloat): Rename to ...
687 (printf_floating): ... this. Add argclass argument, and use it
688 instead of parsing the format string again. Add support for
689 binary floating-point values, using floatformat_to_string.
690 Convert value to the target format if it doesn't already match.
691 (ui_printf): Call printf_floating instead of printf_decfloat,
692 also for double_arg / long_double_arg. Pass argclass.
693
694 * dfp.c (decimal_to_string): Add format string argument.
695 * dfp.h (decimal_to_string): Likewise.
696
697 * doublest.c (floatformat_to_string): Add format string argument.
698 * doublest.h (floatformat_to_string): Likewise.
699
fdf0cbc2
UW
7002017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
701
702 * doublest.c (floatformat_precision): New routine.
703 (floatformat_to_string): Likewise.
704 * doublest.c (floatformat_to_string): Add prototype.
705
706 * printcmd.c (print_scalar_formatted): Only call print_floating
707 on floating-point types.
708 * valprint.c: Do not include "floatformat.h".
709 (generic_val_print_decfloat): Remove.
710 (generic_val_print): Call generic_val_print_float for both
711 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
712 (print_floating): Use floatformat_to_string. Handle decimal float.
713 (print_decimal_floating): Remove, merge into floatformat_to_string.
714 * value.h (print_decimal_floating): Remove.
715
716 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
717
5033013f
UW
7182017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
719
720 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
721
a664f67e
SM
7222017-10-21 Simon Marchi <simon.marchi@ericsson.com>
723
724 * memattr.h: Don't include vec.h.
725 (struct mem_attrib): Initialize fields.
726 <unknown>: New static method.
727 (struct mem_region): Add constructors, operator<, initialize
728 fields.
729 * memattr.c: Include algorithm.
730 (default_mem_attrib, unknown_mem_attrib): Remove.
731 (user_mem_region_list): New global.
732 (target_mem_region_list, mem_region_list): Change type to
733 std::vector<mem_region>.
734 (mem_use_target): Now a function.
735 (target_mem_regions_valid): Change type to bool.
736 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
737 (require_user_regions): Adjust.
738 (require_target_regions): Adjust.
739 (create_mem_region): Adjust.
740 (lookup_mem_region): Adjust.
741 (invalidate_target_mem_regions): Adjust.
742 (mem_clear): Rename to...
743 (user_mem_clear): ... this, and adjust.
744 (mem_command): Adjust.
745 (info_mem_command): Adjust.
746 (mem_enable, enable_mem_command, mem_disable,
747 disable_mem_command): Adjust.
748 (mem_delete): Adjust.
749 (delete_mem_command): Adjust.
750 * memory-map.h (parse_memory_map): Return an std::vector.
751 * memory-map.c (parse_memory_map): Likewise.
752 (struct memory_map_parsing_data): Add constructor.
753 <memory_map>: Point to std::vector.
754 (memory_map_start_memory): Adjust.
755 (memory_map_end_memory): Adjust.
756 (memory_map_end_property): Adjust.
757 (clear_result): Remove.
758 * remote.c (remote_memory_map): Return an std::vector.
759 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
760 Remove.
761 (target_debug_print_mem_region_vector): New.
762 * target-delegates.c: Regenerate.
763 * target.h (mem_region_vector): New typedef.
764 (to_memory_map): Return mem_region_vector.
765 (target_memory_map): Return an std::vector.
766 * target.c (target_memory_map): Return an std::vector.
767 (flash_erase_command): Adjust.
768
6e17c565
SM
7692017-10-21 Simon Marchi <simon.marchi@ericsson.com>
770
771 * memory-map.c (struct memory_map_parsing_data) <property_name>:
772 Change type to std::string.
773 (memory_map_start_property): Adjust.
774 (memory_map_end_property): Adjust.
775
cfba9872
SM
7762017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * infrun.h: Include common/byte-vector.h.
779 (struct displaced_step_closure): New struct.
780 (struct buf_displaced_step_closure): New struct.
781 * infrun.c (displaced_step_closure::~displaced_step_closure):
782 Provide default implementation.
783 (displaced_step_clear): Deallocate step closure with delete.
784 * aarch64-tdep.c (displaced_step_closure): Rename to ...
785 (aarch64_displaced_step_closure): ... this, extend
786 displaced_step_closure.
787 (aarch64_displaced_step_data) <dsc>: Change type to
788 aarch64_displaced_step_closure.
789 (aarch64_displaced_step_copy_insn): Adjust to type change, use
790 unique_ptr.
791 (aarch64_displaced_step_fixup): Add cast for displaced step
792 closure.
793 * amd64-tdep.c (displaced_step_closure): Rename to ...
794 (amd64_displaced_step_closure): ... this, extend
795 displaced_step_closure.
796 <insn_buf>: Change type to std::vector<gdb_byte>.
797 <max_len>: Remove.
798 (fixup_riprel): Change type of DSC parameter, adjust to type
799 change of insn_buf.
800 (fixup_displaced_copy): Change type of DSC parameter.
801 (amd64_displaced_step_copy_insn): Instantiate
802 amd64_displaced_step_closure.
803 (amd64_displaced_step_fixup): Add cast for closure type, adjust
804 to type change of insn_buf.
805 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
806 parameter DSC.
807 (arm_linux_copy_svc): Likewise.
808 (cleanup_kernel_helper_return): Likewise.
809 (arm_catch_kernel_helper_return): Likewise.
810 (arm_linux_displaced_step_copy_insn): Instantiate
811 arm_displaced_step_closure.
812 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
813 (displaced_read_reg): Change type of parameter DSC.
814 (branch_write_pc): Likewise.
815 (load_write_pc): Likewise.
816 (alu_write_pc): Likewise.
817 (displaced_write_reg): Likewise.
818 (arm_copy_unmodified): Likewise.
819 (thumb_copy_unmodified_32bit): Likewise.
820 (thumb_copy_unmodified_16bit): Likewise.
821 (cleanup_preload): Likewise.
822 (install_preload): Likewise.
823 (arm_copy_preload): Likewise.
824 (thumb2_copy_preload): Likewise.
825 (install_preload_reg): Likewise.
826 (arm_copy_preload_reg): Likewise.
827 (cleanup_copro_load_store): Likewise.
828 (install_copro_load_store): Likewise.
829 (arm_copy_copro_load_store) Likewise.
830 (thumb2_copy_copro_load_store): Likewise.
831 (cleanup_branch): Likewise.
832 (install_b_bl_blx): Likewise.
833 (arm_copy_b_bl_blx): Likewise.
834 (thumb2_copy_b_bl_blx): Likewise.
835 (thumb_copy_b): Likewise.
836 (install_bx_blx_reg): Likewise.
837 (arm_copy_bx_blx_reg): Likewise.
838 (thumb_copy_bx_blx_reg): Likewise.
839 (cleanup_alu_imm): Likewise.
840 (arm_copy_alu_imm): Likewise.
841 (thumb2_copy_alu_imm): Likewise.
842 (cleanup_alu_reg): Likewise.
843 (install_alu_reg): Likewise.
844 (arm_copy_alu_reg): Likewise.
845 (thumb_copy_alu_reg): Likewise.
846 (cleanup_alu_shifted_reg): Likewise.
847 (install_alu_shifted_reg): Likewise.
848 (arm_copy_alu_shifted_reg): Likewise.
849 (cleanup_load): Likewise.
850 (cleanup_store): Likewise.
851 (arm_copy_extra_ld_st): Likewise.
852 (install_load_store): Likewise.
853 (thumb2_copy_load_literal): Likewise.
854 (thumb2_copy_load_reg_imm): Likewise.
855 (arm_copy_ldr_str_ldrb_strb): Likewise.
856 (cleanup_block_load_all): Likewise.
857 (cleanup_block_store_pc): Likewise.
858 (cleanup_block_load_pc): Likewise.
859 (arm_copy_block_xfer): Likewise.
860 (thumb2_copy_block_xfer): Likewise.
861 (cleanup_svc): Likewise.
862 (install_svc): Likewise.
863 (arm_copy_svc): Likewise.
864 (thumb_copy_svc): Likewise.
865 (arm_copy_undef): Likewise.
866 (thumb_32bit_copy_undef): Likewise.
867 (arm_copy_unpred): Likewise.
868 (arm_decode_misc_memhint_neon): Likewise.
869 (arm_decode_unconditional): Likewise.
870 (arm_decode_miscellaneous): Likewise.
871 (arm_decode_dp_misc): Likewise.
872 (arm_decode_ld_st_word_ubyte): Likewise.
873 (arm_decode_media): Likewise.
874 (arm_decode_b_bl_ldmstm): Likewise.
875 (arm_decode_ext_reg_ld_st): Likewise.
876 (thumb2_decode_dp_shift_reg): Likewise.
877 (thumb2_decode_ext_reg_ld_st): Likewise.
878 (arm_decode_svc_copro): Likewise.
879 (thumb2_decode_svc_copro): Likewise.
880 (install_pc_relative): Likewise.
881 (thumb_copy_pc_relative_16bit): Likewise.
882 (thumb_decode_pc_relative_16bit): Likewise.
883 (thumb_copy_pc_relative_32bit): Likewise.
884 (thumb_copy_16bit_ldr_literal): Likewise.
885 (thumb_copy_cbnz_cbz): Likewise.
886 (thumb2_copy_table_branch): Likewise.
887 (cleanup_pop_pc_16bit_all): Likewise.
888 (thumb_copy_pop_pc_16bit): Likewise.
889 (thumb_process_displaced_16bit_insn): Likewise.
890 (decode_thumb_32bit_ld_mem_hints): Likewise.
891 (thumb_process_displaced_32bit_insn): Likewise.
892 (thumb_process_displaced_insn): Likewise.
893 (arm_process_displaced_insn): Likewise.
894 (arm_displaced_init_closure): Likewise.
895 (arm_displaced_step_fixup): Add cast for closure.
896 * arm-tdep.h: Include infrun.h.
897 (displaced_step_closure): Rename to ...
898 (arm_displaced_step_closure): ... this, extend
899 displaced_step_closure.
900 <u::svc::copy_svc_os>: Change type of parameter DSC.
901 <cleanup>: Likewise.
902 (arm_process_displaced_insn): Likewise.
903 (arm_displaced_init_closure): Likewise.
904 (displaced_read_reg): Likewise.
905 (displaced_write_reg): Likewise.
906 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
907 Adjust.
908 * i386-tdep.h: Include infrun.h.
909 (i386_displaced_step_closure): New typedef.
910 * i386-tdep.c (i386_displaced_step_copy_insn): Use
911 i386_displaced_step_closure.
912 (i386_displaced_step_fixup): Adjust.
913 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
914 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
915 and unique_ptr.
916 (ppc_displaced_step_fixup): Adjust.
917 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
918 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
919 and unique_ptr.
920 (s390_displaced_step_fixup): Adjust.
921
b392b304
SM
9222017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
923
924 * interps.h (interp_resume, interp_suspend, interp_set_temp):
925 Remove declarations.
926
d5833c62
TT
9272017-10-20 Tom Tromey <tom@tromey.com>
928
929 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
930 std::vector.
931 (gdb_bfd_record_inclusion): Update.
932 (bfdp): Remove typedef.
933
06d5bbc8
TT
9342017-10-20 Tom Tromey <tom@tromey.com>
935
936 * gdb_bfd.c (gdb_bfd_ref): Use new.
937 (struct gdb_bfd_data): Add constructor, destructor, and member
938 initializers.
939 (gdb_bfd_unref): Use delete.
940
2712ce2e
TT
9412017-10-20 Tom Tromey <tom@tromey.com>
942
943 * exec.c (exec_file_attach): Use new_bfd_ref.
944 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
945 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
946 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
947 new_bfd_ref.
948 * gdb_bfd.h (new_bfd_ref): New function.
949
fcc8fb2f
PA
9502017-10-20 Pedro Alves <palves@redhat.com>
951
952 * main.c (captured_command_loop): Add attribute noinline.
953
4c2287b0
SM
9542017-10-19 Simon Marchi <simon.marchi@ericsson.com>
955
956 * interps.c (struct interp_factory): Add constructor.
957 (interp_factory_p): Remove typedef.
958 (DEF_VEC_P(interp_factory_p)): Remove.
959 (interpreter_factories): Change type to std::vector.
960 (interp_factory_register): Adjust.
961 (interp_lookup): Adjust.
962 (interpreter_completer): Adjust.
963
3d415c26
TT
9642017-10-19 Tom Tromey <tom@tromey.com>
965
966 * break-catch-syscall.c (catch_syscall_completer): Use
967 std::string, gdb::unique_xmalloc_ptr.
968
395423c4
TT
9692017-10-19 Tom Tromey <tom@tromey.com>
970
971 * infcall.c (call_function_by_hand_dummy): Use std::string.
972
54f70bc1
TT
9732017-10-19 Tom Tromey <tom@tromey.com>
974
975 * mi/mi-main.c (mi_cmd_execute): Update.
976 * top.h (prepare_execute_command): Return scoped_value_mark.
977 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
978 Add move constructor.
979 * top.c (prepare_execute_command): Return scoped_value_mark.
980 (execute_command): Update.
981
63929e84
PA
9822017-10-19 Pedro Alves <palves@redhat.com>
983
984 * xml-support.c (xml_fetch_content_from_file): Check fread's
985 return.
986
a75868f5
PA
9872017-10-19 Pedro Alves <palves@redhat.com>
988
989 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
990 async.
991 (handle_error_fd): New function.
992 (ser_base_async): Add/delete an event loop file handler for
993 error_fd.
994
2edf834e
PA
9952017-10-19 Pedro Alves <palves@redhat.com>
996
997 * xml-support.c (xml_fetch_content_from_file): Don't read in
998 chunks. Instead use fseek to determine the file's size, and read
999 it in one go.
1000
c8ba13ad
KS
10012017-11-18 Keith Seitz <keiths@redhat.com>
1002
1003 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1004 types.
1005 Add whitespace to front of type name.
1006
37534686
KS
10072017-10-18 Keith Seitz <keiths@redhat.com>
1008
1009 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1010 DW_AT_accessibility.
1011
28c7c158
YQ
10122017-10-18 Yao Qi <yao.qi@linaro.org>
1013
1014 * features/tic6x-c62x-linux.c: Remove.
1015
30f0b101
TT
10162017-10-17 Tom Tromey <tom@tromey.com>
1017
1018 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1019 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1020 (do_mixed_source_and_assembly): Likewise.
1021
57e12da9
TT
10222017-10-17 Tom Tromey <tom@tromey.com>
1023
1024 * regcache.c (regcache::xfer_part): Remove assertion.
1025
7b700999
PA
10262017-10-17 Pedro Alves <palves@redhat.com>
1027
1028 * xml-support.c (xml_fetch_content_from_file): Call
1029 unique_ptr::release() instead unique_ptr::get() when passing
1030 through xrealloc.
1031
d3037ba6
YQ
10322017-10-17 Yao Qi <yao.qi@linaro.org>
1033
1034 * regcache.c (regcache::xfer_part): Remove parameters read and
1035 write, add parameter is_raw. All callers are updated.
1036
83d5a34d
KS
10372017-10-16 Keith Seitz <keiths@redhat.com>
1038
1039 * c-typeprint.c (enum access_specifier): Moved here from
1040 c_type_print_base.
1041 (output_access_specifier): New function.
1042 (c_type_print_base): Consider typedefs when assessing
1043 whether access labels are needed.
1044 Use output_access_specifier as needed.
1045 Output access specifier for typedefs, if needed.
1046 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1047 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1048 fields.
1049 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1050 accessor macros.
1051
87028b87
TT
10522017-10-16 Tom Tromey <tom@tromey.com>
1053
1054 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1055 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1056 * target.c (target_fileio_read_stralloc): Update.
1057 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1058 * target.h (target_fileio_read_stralloc): Return
1059 unique_xmalloc_ptr.
1060
b7b030ad
TT
10612017-10-16 Tom Tromey <tom@tromey.com>
1062
1063 * xml-syscall.c (xml_init_syscalls_info): Update.
1064 * xml-support.c (xinclude_start_include): Update.
1065 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1066 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1067 (xml_fetch_content_from_file): Likewise.
1068 * osdata.c (get_osdata): Update.
1069 * target.h (target_read_stralloc, target_get_osdata): Return
1070 unique_xmalloc_ptr.
1071 * solib-aix.c (solib_aix_get_library_list): Update.
1072 * solib-target.c (solib_target_current_sos): Update.
1073 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1074 * xml-tdesc.c (fetch_available_features_from_target): Update.
1075 (target_fetch_description_xml): Update.
1076 (file_read_description_xml): Update.
1077 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1078 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1079 (remote_pid_to_exec_file): Update.
1080 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1081 (target_get_osdata): Likewise.
1082
b80406ac
TT
10832017-10-16 Tom Tromey <tom@tromey.com>
1084
1085 * remote.c (remote_register_number_and_offset): Use std::vector.
1086 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1087 (putpkt_binary): Use gdb::def_vector.
1088 (compare_sections_command): Use gdb::byte_vector.
1089
a90ecff8
TT
10902017-10-16 Tom Tromey <tom@tromey.com>
1091
1092 * ppc-linux-nat.c (hwdebug_insert_point): Use
1093 gdb::unique_xmalloc_ptr, XDUP.
1094
2dc0e219
TT
10952017-10-16 Tom Tromey <tom@tromey.com>
1096
1097 * probe.c (parse_probes): Use std::string.
1098 (info_probes_for_ops, enable_probes_command)
1099 (disable_probes_command): Remove cleanups.
1100
b05628f0
TT
11012017-10-16 Tom Tromey <tom@tromey.com>
1102
1103 * buildsym.c (block_compar): Remove.
1104 (end_symtab_get_static_block): Use std::vector.
1105
a79b1bc6
SM
11062017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1107
1108 * memrange.h (struct mem_range): Define operator< and operator==.
1109 (mem_range_s): Remove.
1110 (DEF_VEC_O (mem_range_s)): Remove.
1111 (normalize_mem_ranges): Change parameter type to std::vector.
1112 * memrange.c (compare_mem_ranges): Remove.
1113 (normalize_mem_ranges): Change parameter type to std::vector,
1114 adjust to vector change.
1115 * exec.c (section_table_available_memory): Return vector, remove
1116 parameter.
1117 (section_table_read_available_memory): Adjust to std::vector
1118 change.
1119 * remote.c (remote_read_bytes): Adjust to std::vector
1120 change.
1121 * tracepoint.h (traceframe_available_memory): Change parameter
1122 type to std::vector.
1123 * tracepoint.c (traceframe_available_memory): Change parameter
1124 type to std::vector, adjust.
1125 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1126 std::vector change.
1127 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1128 unittests/memrange-selftests.c.
1129 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1130 * gdb/unittests/memrange-selftests.c: New file.
1131
63f0e930
PA
11322017-10-16 Pedro Alves <palves@redhat.com>
1133
1134 * elfread.c (probe_key_free): Rename range-for variable.
1135 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1136 (find_probe_by_pc, collect_probes): Rename range-for variable.
1137
c40c7bfc
YQ
11382017-10-16 Yao Qi <yao.qi@linaro.org>
1139
1140 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1141 * features/tic6x-c62x.c: Remove.
1142 * features/tic6x-c64x-linux.c: Remove.
1143 * features/tic6x-c64x.c: Remove.
1144 * features/tic6x-c64xp-linux.c: Remove.
1145 * features/tic6x-c64xp.c: Remove.
1146 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1147 initialize_tdesc_tic6x_*_linux functions.
1148 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1149 initialize_tdesc_tic6x_* functions.
1150
df27ae6a
YQ
11512017-10-16 Yao Qi <yao.qi@linaro.org>
1152
1153 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1154 tic6x-c62x.
1155 * regformats/tic6x-c62x.dat: Remove.
1156 * regformats/tic6x-c64x.dat: Remove.
1157 * regformats/tic6x-c64xp.dat: Remove.
1158
86766165
SM
11592017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1160
1161 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1162 (the !HAVE_LIBEXPAT version).
1163
824dfcc3
SM
11642017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1165
1166 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1167 const.
1168
2098b393
SM
11692017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1170
1171 * target.h: Include tracepoint.h.
1172 (enum trace_find_type): Move to tracepoint.h.
1173 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1174 * tracepoint.h: Don't include target.h
1175 (enum trace_find_type): Move from target.h.
1176 (parse_traceframe_info): Return a unique ptr.
1177 * tracepoint.c (current_traceframe_info): Change type to unique
1178 ptr.
1179 (free_traceframe_info): Remove.
1180 (clear_traceframe_info): Don't manually free
1181 current_traceframe_info.
1182 (free_result): Remove.
1183 (parse_traceframe_info): Return a unique ptr.
1184 (get_traceframe_info): Adjust to unique ptr.
1185 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1186 * remote.c (remote_traceframe_info): Return a unique ptr.
1187 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1188 ptr.
1189 * target-debug.h (target_debug_print_traceframe_info_up): New
1190 macro.
1191 * target-delegates.c: Regenerate.
1192
4cdd21a8
SM
11932017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1194
1195 * memrange.h (struct mem_range): Add constructors.
1196 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1197 std::vector<mem_range>.
1198 * tracepoint.c (free_traceframe_info): Don't manually free
1199 vector.
1200 (traceframe_info_start_memory): Adjust to vector change.
1201 (traceframe_available_memory): Likewise.
1202 * tracefile-tfile.c (build_traceframe_info): Likewise.
1203 * ctf.c (ctf_traceframe_info): Likewise.
1204
d0d292a2
SM
12052017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1206
1207 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1208 std::vector<int>.
1209 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1210 (traceframe_info_start_tvar): Adjust to vector change.
1211 (parse_traceframe_info): Allocate with new.
1212 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1213 vector change.
1214 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1215 change.
1216 tfile_traceframe_info): Allocate with new.
1217 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1218 change.
1219
8d3c73ef
SM
12202017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1221
1222 * tracepoint.c (traceframe_info): Rename to...
1223 (current_traceframe_info): ...this.
1224 (clear_traceframe_info): Adjust.
1225 (get_traceframe_info): Adjust.
1226
b129dcac
SM
12272017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1228
1229 * nat/linux-osdata.c: Include algorithm.
1230 (compare_processes): Remove.
1231 (struct pid_pgid_entry): New struct.
1232 (linux_xfer_osdata_processgroups): Use std::vector instead of
1233 XNEWVEC.
1234
af5bf4ad
SM
12352017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1236
1237 * objfiles.h: Don't include symfile.h.
1238 (struct partial_symbol): Remove forward-declaration.
1239 (struct objfile) <global_psymbols, static_psymbols>: Change type
1240 to std::vector<partial_symbol *>.
1241 * objfiles.c (objfile::objfile): Don't memset those fields.
1242 (objfile::~objfile): Don't free those fields.
1243 * psympriv.h (struct psymbol_allocation_list): Remove
1244 forward-declaration.
1245 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1246 to std::vector.
1247 (start_psymtab_common): Change parameters to std::vector.
1248 * psymtab.c: Include algorithm.
1249 (require_partial_symbols): Call shrink_to_fit.
1250 (find_pc_sect_psymbol): Adjust to vector change.
1251 (match_partial_symbol): Likewise.
1252 (lookup_partial_symbol): Likewise.
1253 (psym_relocate): Likewise.
1254 (dump_psymtab): Likewise.
1255 (recursively_search_psymtabs): Likewise.
1256 (compare_psymbols): Remove.
1257 (sort_pst_symbols): Adjust to vector change.
1258 (start_psymtab_common): Likewise.
1259 (end_psymtab_common): Likewise.
1260 (psymbol_bcache_full): De-constify return value.
1261 (add_psymbol_to_bcache): Likewise.
1262 (extend_psymbol_list): Remove.
1263 (append_psymbol_to_list): Adjust to vector change.
1264 (add_psymbol_to_list): Likewise.
1265 (init_psymbol_list): Likewise.
1266 (maintenance_info_psymtabs): Likewise.
1267 (maintenance_check_psymtabs): Likewise.
1268 * symfile.h (struct psymbol_allocation_list): Remove.
1269 * symfile.c (reread_symbols): Adjust to vector change.
1270 * dbxread.c (start_psymtab): Change type of parameters.
1271 (dbx_symfile_read): Adjust to vector change.
1272 (read_dbx_symtab): Likewise.
1273 (start_psymtab): Change type of parameters.
1274 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1275 (create_partial_symtab): Likewise.
1276 (add_partial_symbol): Likewise.
1277 (write_one_signatured_type): Likewise.
1278 (recursively_write_psymbols): Likewise.
1279 * mdebugread.c (parse_partial_symbols): Likewise.
1280 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1281 (scan_xcoff_symtab): Adjust to vector change.
1282 (xcoff_initial_scan): Likewise.
1283
3ec5942f
SM
12842017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1285
1286 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1287
2399fe6a
YQ
12882017-10-13 Yao Qi <yao.qi@linaro.org>
1289
1290 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1291 Remove s390x-*-expedite, add s390x-expedite.
1292
4bf3f4a8
YQ
12932017-10-13 Yao Qi <yao.qi@linaro.org>
1294
1295 * features/s390-gs-linux64.c: Regenerated.
1296 * features/s390x-gs-linux64.c: Regenerated.
1297
9e86da07
TT
12982017-10-13 Tom Tromey <tom@tromey.com>
1299
1300 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1301 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1302 delete.
1303 * symfile.c (symbol_file_add_with_addrs): Use new.
1304 (symbol_file_add_separate): Update comment.
1305 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1306 * jit.c (jit_object_close_impl): Use new.
1307 (jit_unregister_code): Use delete.
1308 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1309 (~objfile): Rename from free_objfile.
1310 (free_objfile_separate_debug, do_free_objfile_cleanup)
1311 (free_all_objfiles, objfile_purge_solibs): Use delete.
1312 * objfiles.h (struct objfile): Add constructor and destructor.
1313 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1314 (allocate_objfile, free_objfile): Don't declare.
1315 (struct objstats): Add initializers.
1316
c2508e90
SM
13172017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1318
1319 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1320 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1321 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1322 * gdbarch.h: Regenerate.
1323 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1324 Adjust comment.
1325 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1326 (i386_displaced_step_fixup): Adjust comment.
1327 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1328
a900ff72
TT
13292017-10-12 Tom Tromey <tom@tromey.com>
1330
1331 * prologue-value.h (pv_area::store_would_trash): Return bool.
1332 (pv_area::find_reg): Likewise.
1333 * prologue-value.c (pv_area::store_would_trash): Return bool.
1334 (pv_area::find_reg): Likewise.
1335
f7b7ed97
TT
13362017-10-12 Tom Tromey <tom@tromey.com>
1337
1338 * s390-linux-tdep.c (s390_store, s390_load)
1339 (s390_check_for_saved, s390_analyze_prologue): Update.
1340 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1341 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1342 * prologue-value.h (class pv_area): Move from prologue-value.c.
1343 Change names of members. Add constructor, destructor, member
1344 functions.
1345 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1346 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1347 (pv_area_fetch, pv_area_scan): Don't declare.
1348 * prologue-value.c (struct pv_area::area_entry): Now member of
1349 pv_area.
1350 (struct pv_area): Move to prologue-value.h.
1351 (pv_area::pv_area): Rename from make_pv_area.
1352 (pv_area::~pv_area): Rename from free_pv_area.
1353 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1354 (clear_entries, find_entry, overlaps, store_would_trash, store)
1355 (fetch, find_reg, scan): Now member of pv_area.
1356 Remove "area" argument. Update.
1357 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1358 Update.
1359 * mn10300-tdep.c (push_reg, check_for_saved)
1360 (mn10300_analyze_prologue): Update.
1361 * mep-tdep.c (is_arg_spill, check_for_saved)
1362 (mep_analyze_prologue): Update.
1363 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1364 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1365 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1366 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1367 Update.
1368 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1369 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1370
466eecee
SM
13712017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1372
1373 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1374 * linux-nat.c (linux_nat_delete_thread): New variable.
1375 (lwp_free): Invoke linux_nat_delete_thread if set.
1376 (linux_nat_set_delete_thread): New function.
1377 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1378 thread delete callback.
1379 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1380 (_initialize_arm_linux_nat): Assign thread delete callback.
1381 * s390-linux-nat.c (s390_delete_thread): New function.
1382 (_initialize_s390_nat): Assign thread delete callback.
1383 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1384 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1385 function.
1386 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1387 declaration.
1388 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1389 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1390
f71c8822
TT
13912017-10-09 Tom Tromey <tom@tromey.com>
1392
1393 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1394 std::string.
1395 * tui/tui-layout.c (enum tui_status): Use std::string.
1396
981a3fb3
TT
13972017-10-11 Tom Tromey <tom@tromey.com>
1398
1399 * gdbthread.h (thread_command): Constify.
1400 * inferior.h (detach_command): Constify.
1401 * top.h (set_history, show_history): Constify.
1402 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1403 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1404 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1405 * printcmd.c (set_command): Constify.
1406 (non_const_set_command): New function.
1407 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1408 * breakpoint.c (enable_command, disable_command, delete_command)
1409 (catch_command, tcatch_command, set_breakpoint_cmd)
1410 (show_breakpoint_cmd): Constify.
1411 * macrocmd.c (macro_command): Constify.
1412 * infcmd.c (unset_command, kill_command, detach_command)
1413 (info_proc_cmd): Constify.
1414 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1415 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1416 (info_auto_load_cmd): Constify.
1417 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1418 (unset_tdesc_cmd): Constify.
1419 * ada-lang.c (set_ada_command, show_ada_command)
1420 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1421 * guile/guile.c (set_guile_command, show_guile_command)
1422 (info_guile_command): Constify.
1423 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1424 Constify.
1425 * skip.c (skip_command): Constify.
1426 * compile/compile.c (_initialize_compile): Constify.
1427 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1428 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1429 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1430 (maint_btrace_pt_show_cmd): Constify.
1431 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1432 Constify.
1433 * python/python.c (user_show_python, user_set_python): Constify.
1434 * mips-tdep.c (set_mips_command, show_mips_command)
1435 (set_mipsfpu_command): Constify.
1436 * record-btrace.c (cmd_record_btrace_start)
1437 (cmd_set_record_btrace, cmd_show_record_btrace)
1438 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1439 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1440 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1441 Constify.
1442 * symfile.c (overlay_command): Constify.
1443 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1444 * cli/cli-logging.c (set_logging_command, show_logging_command):
1445 Constify.
1446 * cli/cli-dump.c (dump_command, append_command)
1447 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1448 (tekhex_dump_command, binary_dump_command)
1449 (binary_append_command): Constify.
1450 * cli/cli-decode.c (struct cmd_list_element): Change type of
1451 "fun".
1452 * cli/cli-cmds.c (info_command, show_command, set_debug)
1453 (show_debug): Constify.
1454 (show_command): Add non-const overload.
1455 * top.c (set_history, show_history): Constify.
1456 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1457 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1458 * target.c (target_command): Constify.
1459 * sparc64-tdep.c (info_adi_command): Constify.
1460 * record-full.c (cmd_record_full_start): Constify.
1461 (set_record_full_command): Constify. Fix typo.
1462 (show_record_full_command): Constify.
1463 * thread.c (thread_command, thread_apply_command): Constify.
1464 * memattr.c (dummy_cmd): Constify.
1465 * value.c (function_command): Constify.
1466 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1467 * probe.c (info_probes_command): Constify.
1468 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1469 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1470 (show_thread_cmd, set_thread_default_cmd)
1471 (show_thread_default_cmd): Constify.
1472 (check_empty): Constify.
1473 * tracepoint.c (tfind_command): Constify.
1474 * cp-support.c (maint_cplus_command): Constify.
1475 * windows-tdep.c (info_w32_command): Constify.
1476 * record.c (cmd_record_start, set_record_command)
1477 (show_record_command, info_record_command, cmd_record_goto):
1478 Constify.
1479 * ravenscar-thread.c (set_ravenscar_command)
1480 (show_ravenscar_command): Constify.
1481 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1482 Constify.
1483 (add_internal_problem_command): Remove casts.
1484 * arc-tdep.c (maintenance_print_arc_command): Constify.
1485 * valprint.c (set_print, show_print, set_print_raw)
1486 (show_print_raw): Constify.
1487 * maint.c (maintenance_command, maintenance_info_command)
1488 (maintenance_print_command, maintenance_set_cmd)
1489 (maintenance_show_cmd, set_per_command_cmd)
1490 (show_per_command_cmd, maintenance_check_command): Constify.
1491 * language.c (set_check, show_check): Constify.
1492 * typeprint.c (show_print_type, set_print_type): Constify.
1493 * go32-nat.c (go32_info_dos_command): Constify.
1494
fdf44873
TT
14952017-10-11 Tom Tromey <tom@tromey.com>
1496
1497 * breakpoint.c (prepare_re_set_context): Remove.
1498 (breakpoint_re_set_one): Update. Don't use cleanups.
1499 (breakpoint_re_set): Use scoped_restore, std::string, and
1500 scoped_restore_current_language.
1501
81b1e71c
TT
15022017-10-11 Tom Tromey <tom@tromey.com>
1503
1504 * breakpoint.c (commands_command_1): Use std::string.
1505 (cleanup_executing_breakpoints): Remove.
1506 (bpstat_do_actions_1): Use scoped_restore.
1507 (bpstat_check_watchpoint): Use std::string.
1508 (decode_static_tracepoint_spec): Likewise.
1509 (break_range_command): Likewise.
1510 (watch_command_1): Likewise.
1511 (compare_breakpoints): Change argument types.
1512 (clear_command): Use std::vector.
1513 (cleanup_executing_breakpoints): Remove.
1514 (update_global_location_list): Use unique_xmalloc_ptr.
1515 (strace_command): Remove unused declaration.
1516
4f9d9906
JB
15172017-10-11 John Baldwin <jhb@FreeBSD.org>
1518
1519 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1520 * NEWS: Mention new FreeBSD/arm native configuration.
1521 * configure.host: Add arm*-*-freebsd*.
1522 * configure.nat: Likewise.
1523 * arm-fbsd-nat.c: New file.
1524
7176dfd2
JB
15252017-10-11 John Baldwin <jhb@FreeBSD.org>
1526
1527 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1528 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1529 * NEWS: Mention new FreeBSD/arm target.
1530 * configure.tgt: Add arm*-*-freebsd*.
1531 * arm-fbsd-tdep.c: New file.
1532 * arm-fbsd-tdep.h: New file.
1533
fe220226
MR
15342017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1535
1536 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1537 `gdbarch_elfcore_write_linux_prpsinfo'.
1538 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1539 method.
1540 (elf_internal_linux_prpsinfo): Remove declaration.
1541 * gdbarch.h: Regenerate.
1542 * gdbarch.c: Regenerate.
1543
a2f63b2e
MR
15442017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1545
1546 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1547 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1548
458ca1d0
PA
15492017-10-11 Pedro Alves <palves@redhat.com>
1550
1551 * breakpoint.c (reattach_breakpoints): Delete.
1552 * breakpoint.h (reattach_breakpoints): Delete.
1553
905014d7
SM
15542017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1555
1556 * symfile.c (registered_sym_fns): Make struct, not typedef.
1557 (DEF_VEC_O (registered_sym_fns)): Remove.
1558 (symtab_fns): Change type to std::vector.
1559 (add_symtab_fns): Adjust.
1560 (find_sym_fns): Adjust.
1561
56d704da
AK
15622017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1563
1564 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1565 * arc-tdep.h (arc_arch_is_em): New function.
1566 (arc_arch_is_hs): Likewise.
1567
7fa29be9
EB
15682017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1569
1570 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1571 parentheses in the declaration.
1572 (macro_lookup_inclusion): Likewise.
1573 (macro_lookup_definition): Likewise.
1574 * p-lang.h (pascal_builtin_types): Likewise.
1575 * tui/tui-data.c (tui_win_list): Likewise.
1576 * tui/tui-data.h (tui_win_list): Likewise.
1577 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1578
d9b477e3
KB
15792017-10-11 Mark Rages <markrages@gmail.com>
1580
1581 * target-memory.c (block_boundaries): Fix for block address not
1582 aligned on block size.
1583
65630365
PA
15842017-10-10 Pedro Alves <palves@redhat.com>
1585 Tom Tromey <tom@tromey.com>
1586
1587 * breakpoint.c (struct captured_breakpoint_query_args)
1588 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1589 (print_breakpoint): New.
1590 * breakpoint.h (print_breakpoint): Declare.
1591 * common/common-exceptions.h (enum return_reason): Remove
1592 references to catch_exceptions.
1593 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1594 Delete.
1595 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1596 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1597 * gdb.h: Delete.
1598 * gdbthread.h (thread_select): Declare.
1599 * mi/mi-cmd-break.c: Don't include gdb.h.
1600 (breakpoint_notify): Use print_breakpoint.
1601 * mi/mi-cmd-catch.c: Don't include gdb.h.
1602 * mi/mi-interp.c: Don't include gdb.h.
1603 (mi_print_breakpoint_for_event): New.
1604 (mi_breakpoint_created, mi_breakpoint_modified): Use
1605 mi_print_breakpoint_for_event.
1606 * mi/mi-main.c: Don't include gdb.h.
1607 (mi_cmd_thread_select): Parse the global thread ID here. Use
1608 thread_select instead of gdb_thread_select.
1609 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1610 of using gdb_list_thread_ids.
1611 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1612 FILEIO_ENOSYS here.
1613 (remote_fileio_request): Use TRY/CATCH instead of
1614 catch_exceptions.
1615 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1616 (symbol_file_add_from_memory_wrapper): Delete.
1617 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1618 * thread.c: Don't include gdb.h.
1619 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1620 (thread_alive): Use thread_select.
1621 (do_captured_thread_select): Delete, parts salvaged as ...
1622 (thread_select): ... this new function.
1623 (gdb_thread_select): Delete.
1624
bf469271
PA
16252017-10-10 Pedro Alves <palves@redhat.com>
1626 Tom Tromey <tom@tromey.com>
1627
1628 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1629 and reverse logic.
1630 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1631 No longer macros. Instead ...
1632 (enum wp_check_result): They're now values of this new
1633 enumeration.
1634 (watchpoint_check): Change return type to wp_check_result and
1635 parameter type to bpstat.
1636 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1637 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1638 catch_errors. Reverse logic of watchpoint_check call.
1639 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1640 pointer as parameter.
1641 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1642 * common/common-exceptions.c (throw_exception_sjlj): Update
1643 comments to avoid mentioning catch_errors.
1644 * exceptions.c (catch_errors): Delete.
1645 * exceptions.h: Update comments to avoid mentioning catch_errors.
1646 (catch_errors_ftype, catch_errors): Delete.
1647 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1648 (hook_stop_stub): Delete.
1649 (restore_selected_frame): Change return type to void, and
1650 parameter type to const frame_id &.
1651 (restore_infcall_control_state): Use TRY/CATCH instead of
1652 catch_errors.
1653 * main.c (captured_command_loop): Return void and remove
1654 parameter. Remove references to catch_errors.
1655 (captured_main): Use TRY/CATCH instead of catch_errors.
1656 * objc-lang.c (objc_submethod_helper_data)
1657 (find_objc_msgcall_submethod_helper): Delete.
1658 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1659 catch_errors.
1660 * record-full.c (record_full_message): Return void.
1661 (record_full_message_args, record_full_message_wrapper): Delete.
1662 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1663 instead of catch_errors.
1664 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1665 parameter type to int.
1666 * solib-darwin.c (open_symbol_file_object): Ditto.
1667 * solib-dsbt.c (open_symbol_file_object): Ditto.
1668 * solib-frv.c (open_symbol_file_object): Ditto.
1669 * solib-svr4.c (open_symbol_file_object): Ditto.
1670 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1671 * solib.c (update_solib_list): Use TRY/CATCH instead of
1672 catch_errors.
1673 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1674 Change type.
1675 * symmisc.c (struct print_symbol_args): Remove.
1676 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1677 (print_symbol): Change type.
1678 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1679 and remove parameters.
1680 (catch_errors): New.
1681 (get_windows_debug_event): Adjust.
1682
1a56bfa5
TT
16832017-10-09 Tom Tromey <tom@tromey.com>
1684
1685 * mi/mi-main.c (free_splay_tree): Remove.
1686 (list_available_thread_groups): Use splay_tree_up.
1687 * common/gdb_splay_tree.h: New file.
1688
0c478e2d
TT
16892017-10-09 Tom Tromey <tom@tromey.com>
1690
1691 * mi/mi-main.c (do_nothing): Remove.
1692 (list_available_thread_groups): Update.
1693
cbd2b4e3
PA
16942017-10-09 Pedro Alves <palves@redhat.com>
1695
1696 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1697 reading registers when switching context.
1698
a181c0bf
JB
16992017-10-09 John Baldwin <jhb@FreeBSD.org>
1700
1701 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1702 (fbsd_convert_siginfo): Likewise.
1703 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1704
6e66f753
SM
17052017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1706
1707 * configure.ac (try_guile_versions): Remove guile-2.2.
1708 * configure: Regenerate.
1709
890e9790
TT
17102017-10-09 Tom Tromey <tom@tromey.com>
1711
1712 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1713 (COMPILE.pre): Use $(CXX).
1714
109483d9
PA
17152017-10-09 Pedro Alves <palves@redhat.com>
1716
1717 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1718 Use bool.
1719 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1720 * cp-support.h (cp_remove_params): Now returns a
1721 gdb::unique_xmalloc_ptr.
1722 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1723 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1724 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1725 returning a gdb::unique_xmalloc_ptr.
1726 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1727 * stack.c (find_frame_funname): Adjust to cp_remove_params
1728 returning a gdb::unique_xmalloc_ptr.
1729
791afaa2
TT
17302017-10-08 Tom Tromey <tom@tromey.com>
1731
1732 * dwarf2read.c (dwarf2_get_dwz_file): Use
1733 gdb::unique_xmalloc_ptr.
1734 (find_slot_in_mapped_hash): Likewise.
1735 (dwarf2_physname): Likewise.
1736 (create_dwo_unit_in_dwp_v1): Use std::string.
1737 (create_dwo_unit_in_dwp_v2): Likewise.
1738 (lookup_dwo_cutu): Likewise.
1739 (inherit_abstract_dies): Use std::vector.
1740 (read_array_type): Likewise.
1741 (dwarf_decode_macros): Remove unused declaration.
1742 (unsigned_int_compar): Remove.
1743 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1744 (psymtabs_addrmap_cleanup): Remove.
1745
30a9c02f
TT
17462017-10-08 Tom Tromey <tom@tromey.com>
1747
1748 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1749 * frame.h (frame_cleanup_after_sniffer): Declare.
1750 (frame_prepare_for_sniffer): Return void.
1751 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1752 type of argument.
1753 (frame_prepare_for_sniffer): Return void.
1754
757325a3
TT
17552017-10-08 Tom Tromey <tom@tromey.com>
1756
1757 * utils.h (make_cleanup_value_free): Remove.
1758 * utils.c (do_value_free, struct cleanup): Remove.
1759 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1760 Use gdb_value_up.
1761 * value.h (struct value_deleter): New.
1762 (gdb_value_up): New typedef.
1763
b9c04fb2
TT
17642017-10-08 Tom Tromey <tom@tromey.com>
1765
1766 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1767 (make_cleanup_free_search_symbols): Remove.
1768 (search_symbols): Return std::vector.
1769 (symbol_search::compare_search_syms): Now member of
1770 symbol_search. Change arguments.
1771 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1772 (symtab_symbol_info, rbreak_command): Update.
1773 * symtab.h (struct symbol_search) <next>: Remove.
1774 Add constructors.
1775 (symbol_search::operator<): New function.
1776 (symbol_search::operator==): New function.
1777 (search_symbols): Remove std::vector.
1778 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1779 (symbol_search::compare_search_syms): Declare.
1780
0d28b0a5
YQ
17812017-10-06 Yao Qi <yao.qi@linaro.org>
1782
1783 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1784 arch/aarch64-insn.o.
1785 Remove one rule.
1786 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1787
71917808
YQ
17882017-10-06 Yao Qi <yao.qi@linaro.org>
1789
1790 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1791 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1792 arch/arm-linux.o respectively.
1793 * configure.tgt: Likewise.
1794
2081b2b2
YQ
17952017-10-06 Yao Qi <yao.qi@linaro.org>
1796
1797 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1798 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1799
a1b85d28
PA
18002017-10-06 Pedro Alves <palves@redhat.com>
1801
1802 * windows-nat.c: Include <algorithm>.
1803
d97987e2
YQ
18042017-10-06 Yao Qi <yao.qi@linaro.org>
1805
1806 * configure.tgt (i386_tobjs): New variable.
1807 (amd64_tobjs): New variable.
1808 Set $cpu_obs and $os_obs.
1809
f38307f5
YQ
18102017-10-06 Yao Qi <yao.qi@linaro.org>
1811
1812 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1813 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1814 (clean): Remove object files and dependency files.
1815 (distclean): Remove the directory.
1816 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1817 * configure: Re-generated.
1818 * configure.tgt: Replace amd64.o with arch/amd64.o.
1819
2f924de6
JM
18202017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1821
1822 PR build/22188
1823 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1824 and SETEND.
1825
2fd9d7ca
PA
18262017-10-05 Pedro Alves <palves@redhat.com>
1827
1828 * linux-nat.c (linux_child_follow_fork): When following the parent
1829 and detaching the child, consult the parent thread's architecture
1830 instead of the child's.
1831
d13b8493
UW
18322017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1833
1834 * ax.h: Do not include "doublest.h".
1835 (union agent_val): Remove.
1836
3b4b2f16
UW
18372017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1838
1839 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1840 (decimal_to_string): Return std::string object.
1841 (decimal_from_string): Accept std::string object. Return bool.
1842 (decimal_from_integral, decimal_from_doublest): Remove.
1843 (decimal_from_longest): Add prototype.
1844 (decimal_from_ulongest): Likewise.
1845 (decimal_to_longest): Likewise.
1846 (decimal_from_doublest): Likewise.
1847 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1848 (MAX_DECIMAL_STRING): Move here.
1849 (decimal_to_string): Return std::string object.
1850 (decimal_from_string): Accept std::string object. Return bool.
1851 (decimal_from_integral): Remove, replace by ...
1852 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1853 (decimal_to_longest): New function.
1854 (decimal_from_floating): Remove, replace by ...
1855 (decimal_from_doublest): ... this new function.
1856 (decimal_to_doublest): Update to new decimal_to_string interface.
1857
1858 * value.c (unpack_long): Use decimal_to_longest.
1859 * valops.c (value_cast): Use decimal_from_doublest instead of
1860 decimal_from_floating. Use decimal_from_[u]longest isntead of
1861 decimal_from_integral.
1862 * valarith.c (value_args_as_decimal): Likewise.
1863 * valprint.c (print_decimal_floating): Update to new
1864 decimal_to_string interface.
1865 * printcmd.c (printf_decfloat): Likewise.
1866 * c-exp.y (parse_number): Update to new decimal_from_string interface.
1867
1841ee5d
UW
18682017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1869
1870 * doublest.h: Do not include "floatformat.h". Remove stale comments.
1871 * gdbtypes.c: Include "floatformat.h".
1872 * value.c: Likewise.
1873 * m68k-tdep.c: Likewise.
1874
1875 * findvar.c: Do not include "floatformat.h".
1876 * amd64-darwin-tdep.c: Likewise.
1877 * arm-linux-tdep.c: Likewise.
1878 * i386-darwin-tdep.c: Likewise.
1879 * i387-tdep.c: Likewise.
1880 * m68k-linux-tdep.c: Likewise.
1881 * mep-tdep.c: Likewise.
1882 * mips-tdep.c: Likewise.
1883 * nios2-tdep.c: Likewise.
1884 * s390-linux-tdep.c: Likewise.
1885 * sparc-obsd-tdep.c: Likewise.
1886 * sparc-tdep.c: Likewise.
1887 * sparc64-tdep.c: Likewise.
1888 * spu-tdep.c: Likewise.
1889 * tic6x-tdep.c: Likewise.
1890 * tilegx-tdep.c: Likewise.
1891 * vax-tdep.c: Likewise.
1892 * xstormy16-tdep.c: Likewise.
1893 * xtensa-tdep.c: Likewise.
1894
1895 * top.c: Do not include "doublest.h".
1896 * aarch64-tdep.c: Likewise.
1897 * alpha-tdep.c: Likewise.
1898 * arm-linux-tdep.c: Likewise.
1899 * m68k-linux-tdep.c: Likewise.
1900 * tilegx-tdep.c: Likewise.
1901 * xstormy16-tdep.c: Likewise.
1902
a80a6471
JB
19032017-10-05 John Baldwin <jhb@FreeBSD.org>
1904
1905 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
1906 (mipsn32_fbsd_sigframe): Define.
1907 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
1908 for FreeBSD/mipsn32.
1909
12c4bd7f
JB
19102017-10-05 John Baldwin <jhb@FreeBSD.org>
1911
1912 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
1913 AT_HWCAP.
1914
c91933e9
TG
19152017-10-05 Tristan Gingold <tgingold@free.fr>
1916
1917 * MAINTAINERS (Misc): Update my email address.
1918
5cd63fda
PA
19192017-10-04 Pedro Alves <palves@redhat.com>
1920
1921 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
1922 it instead of target_gdbarch.
1923 (get_remote_state, get_remote_packet_size): Adjust
1924 get_remote_arch_state calls, passing down target_gdbarch
1925 explicitly.
1926 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
1927 'gdbarch' and use it instead of target_gdbarch.
1928 (get_memory_packet_size): Adjust get_remote_arch_state calls,
1929 passing down target_gdbarch explicitly.
1930 (struct stop_reply) <arch>: New field.
1931 (remote_parse_stop_reply): Use the stopped thread's architecture,
1932 not the current inferior's. Save the architecture in the
1933 stop_reply.
1934 (process_stop_reply): Use the stop reply's architecture.
1935 (process_g_packet, remote_fetch_registers)
1936 (remote_prepare_to_store, store_registers_using_G)
1937 (remote_store_registers): Adjust get_remote_arch_state calls,
1938 using the regcache's architecture.
1939 (remote_get_trace_status): Adjust get_remote_arch_state calls,
1940 passing down target_gdbarch explicitly.
1941 * spu-multiarch.c (spu_thread_architecture): Defer to the target
1942 beneath instead of calling target_gdbarch.
1943 * target.c (default_thread_architecture): Use the specified
1944 inferior's architecture, instead of the current inferior's
1945 architecture (via target_gdbarch).
1946
ed4227b7
PA
19472017-10-04 Pedro Alves <palves@redhat.com>
1948
1949 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
1950 case.
1951 (regcache_print): Handle !target_has_registers here instead.
1952
55b11ddf
PA
19532017-10-04 Pedro Alves <palves@redhat.com>
1954
1955 * frame.c (create_test_frame): Delete.
1956 * frame.h (create_test_frame): Delete.
1957 * gdbarch-selftests.c: Include gdbthread.h and target.h.
1958 (class regcache_test): Delete.
1959 (test_target_has_registers, test_target_has_stack)
1960 (test_target_has_memory, test_target_prepare_to_store)
1961 (test_target_store_registers): New functions.
1962 (test_target_ops): New class.
1963 (register_to_value_test): Error out if there's already a
1964 process_stratum (or higher) target pushed. Create a fuller mock
1965 environment, with mock target_ops, inferior, address space, thread
1966 and inferior_ptid.
1967 * progspace.c (struct address_space): Move to ...
1968 * progspace.h (struct address_space): ... here.
1969 * regcache.h (regcache::~regcache, regcache::raw_write)
1970 [GDB_SELF_TEST]: No longer virtual.
1971
4c71c105
SM
19722017-10-04 Simon Marchi <simon.marchi@ericsson.com>
1973
1974 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
1975
73dcd72d
PA
19762017-10-04 Pedro Alves <palves@redhat.com>
1977
1978 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
1979 out of 'between TRY and CATCH'.
1980
44704526
PA
19812017-10-04 Pedro Alves <palves@redhat.com>
1982
1983 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
1984 * common/common-exceptions.h (TRY): Open an outermost scope.
1985 Expand intro comment.
1986 (CATCH): Reindent.
1987 (END_CATCH): Close the outermost scope.
1988 * completer.c (complete_line_internal): Add missing END_CATCH.
1989
bc3b087d
SDJ
19902017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1991
1992 * NEWS (Changes since GDB 8.0): Add entry about new
1993 'set-cwd-on-gdbserver' feature.
1994 (New remote packets): Add entry for QSetWorkingDir.
1995 * common/common-inferior.h (set_inferior_cwd): New prototype.
1996 * infcmd.c (set_inferior_cwd): Remove "static".
1997 (show_cwd_command): Expand text to include remote debugging.
1998 * remote.c: Add PACKET_QSetWorkingDir.
1999 (remote_protocol_features) <QSetWorkingDir>: New entry for
2000 PACKET_QSetWorkingDir.
2001 (extended_remote_set_inferior_cwd): New function.
2002 (extended_remote_create_inferior): Call
2003 "extended_remote_set_inferior_cwd".
2004 (_initialize_remote): Call "add_packet_config_cmd" for
2005 QSetWorkingDir.
2006
d092c5a2
SDJ
20072017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2008
2009 * NEWS (New commands): Mention "set/show cwd".
2010 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2011 "cd" command's help text.
2012 * common/common-inferior.h (get_inferior_cwd): New prototype.
2013 * infcmd.c (inferior_cwd_scratch): New global variable.
2014 (set_inferior_cwd): New function.
2015 (get_inferior_cwd): Likewise.
2016 (set_cwd_command): Likewise.
2017 (show_cwd_command): Likewise.
2018 (_initialize_infcmd): Add "set/show cwd" commands.
2019 * inferior.h (class inferior) <cwd>: New field.
2020 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2021 (fork_inferior): Change inferior's cwd before its execution.
2022 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2023 to CreateProcess.
2024
7da0a886
SDJ
20252017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2026
2027 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2028 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2029 (COMMON_OBS): Add gdb_tilde_expand.o.
2030 * common/gdb_tilde_expand.c: New file.
2031 * common/gdb_tilde_expand.h: Likewise.
2032
db8dd160
MR
20332017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2034
2035 * gdbarch.sh (objfile): Remove duplicate declaration.
2036 * gdbarch.h: Regenerate.
2037
f8bfbf22
TT
20382017-10-03 Tom Tromey <tom@tromey.com>
2039
2040 * utils.c (internal_vproblem): Use string_vprintf.
2041
5178ed48
TT
20422017-10-03 Tom Tromey <tom@tromey.com>
2043
2044 * printcmd.c (info_symbol_command): Use std::string.
2045
8cff8730
TT
20462017-10-03 Tom Tromey <tom@tromey.com>
2047
2048 * top.c (gdb_safe_append_history): Use std::string.
2049
895b8f30
TT
20502017-10-03 Tom Tromey <tom@tromey.com>
2051
2052 * event-top.c (stdin_event_handler): Update.
2053 * main.c (captured_main_1): Update.
2054 * top.h (make_delete_ui_cleanup): Remove.
2055 (struct ui): Add constructor and destructor.
2056 (new_ui, delete_ui): Remove.
2057 * top.c (make_delete_ui_cleanup): Remove.
2058 (new_ui_command): Use std::unique_ptr.
2059 (delete_ui_cleanup): Remove.
2060 (ui::ui): Rename from new_ui. Update.
2061 (free_ui): Remove.
2062 (ui::~ui): Rename from delete_ui. Update.
2063
0efef640
TT
20642017-10-03 Tom Tromey <tom@tromey.com>
2065
2066 * symfile.c (load_progress): Use gdb::byte_vector.
2067
245ad7d3
TT
20682017-10-03 Tom Tromey <tom@tromey.com>
2069
2070 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2071 declaration.
2072 * printcmd.c (x_command): Remove unused declaration.
2073 * symfile.c (symbol_file_command): Remove unused declaration.
2074
e05550d7
TT
20752017-10-03 Tom Tromey <tom@tromey.com>
2076
2077 * utils.c (internal_vproblem): Use std::string.
2078 (defaulted_query): Likewise.
2079
b95de2b7
TT
20802017-10-03 Tom Tromey <tom@tromey.com>
2081
2082 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2083 * top.c (execute_command_to_string): Update.
2084 * utils.c (make_cleanup_restore_page_info): Remove.
2085 (do_restore_page_info_cleanup): Remove.
2086 (set_batch_flag_and_restore_page_info):
2087 New.
2088 (make_cleanup_restore_page_info): Remove.
2089 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2090 (~set_batch_flag_and_restore_page_info): New
2091 (make_cleanup_restore_uinteger): Remove.
2092 (make_cleanup_restore_integer): Remove.
2093 (struct restore_integer_closure): Remove.
2094 (restore_integer): Remove.
2095 * utils.h (struct set_batch_flag_and_restore_page_info): New
2096 class.
2097 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2098 (make_cleanup_restore_page_info): Remove.
2099 (make_cleanup_restore_uinteger) Remove.
2100 (make_cleanup_restore_integer) Remove.
2101
07036511
TT
21022017-10-03 Tom Tromey <tom@tromey.com>
2103
2104 * record-full.h (record_full_gdb_operation_disable_set): Return
2105 scoped_restore_tmpl<int>.
2106 * infrun.c (adjust_pc_after_break): Update.
2107 (handle_signal_stop): Update.
2108 * record-full.c (record_full_gdb_operation_disable_set): Return
2109 scoped_restore_tmpl<int>.
2110 (record_full_wait_1, record_full_insert_breakpoint)
2111 (record_full_remove_breakpoint, record_full_save)
2112 (record_full_goto_insn): Update.
2113
45320ffa
TT
21142017-10-02 Tom Tromey <tom@tromey.com>
2115
2116 PR rust/22236:
2117 * rust-lang.c (rust_val_print_str): New function.
2118 (val_print_struct): Call it.
2119 (rust_subscript): Preserve name of slice type.
2120
b3e3859b
TT
21212017-10-02 Tom Tromey <tom@tromey.com>
2122
2123 * rust-lang.c (rust_subscript): Handle slices in
2124 EVAL_AVOID_SIDE_EFFECTS case.
2125
01af5e0d
TT
21262017-10-02 Tom Tromey <tom@tromey.com>
2127
2128 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2129
888e3ddb
TT
21302017-10-02 Tom Tromey <tom@tromey.com>
2131
2132 * rust-lang.h (rust_slice_type): Add "extern".
2133
cc536b21
PA
21342017-10-02 Tom Tromey <tom@tromey.com>
2135 Pedro Alves <palves@redhat.com>
2136
2137 * ada-lang.h (ada_exc_info::operator<): Make const.
2138 (ada_exc_info::operator==): Make const.
2139 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2140 Make const.
2141
386c8614
TT
21422017-09-29 Tom Tromey <tom@tromey.com>
2143
2144 * target.c (read_whatever_is_readable): Change type of "result".
2145 Update.
2146 (free_memory_read_result_vector): Remove.
2147 (read_memory_robust): Change return type. Update.
2148 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2149 bin2hex, std::string.
2150 * target.h (memory_read_result_s): Remove typedef.
2151 (free_memory_read_result_vector): Remove.
2152 (read_memory_robust): Return std::vector.
2153
789c4b5e
TT
21542017-09-29 Tom Tromey <tom@tromey.com>
2155
2156 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2157
ab816a27
TT
21582017-09-29 Tom Tromey <tom@tromey.com>
2159
2160 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2161 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2162 operator< and operator==.
2163 (ada_exceptions_list): Return a std::vector.
2164 * ada-lang.c (ada_exc_info::operator<): Rename from
2165 compare_ada_exception_info.
2166 (ada_exc_info::operator==): New.
2167 (sort_remove_dups_ada_exceptions_list): Change type of
2168 "exceptions".
2169 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2170 (ada_add_global_exceptions): Likewise.
2171 (ada_exceptions_list_1): Return a std::vector.
2172 (ada_exceptions_list): Likewise.
2173
52f9abe4
TT
21742017-09-29 Tom Tromey <tom@tromey.com>
2175
2176 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2177 'std::set *'.
2178 (print_one_inferior): Update.
2179 (free_vector_of_ints): Remove.
2180 (list_available_thread_groups): Change "ids" to std::set.
2181 (mi_cmd_list_thread_groups): Update.
2182 (struct collect_cores_data) <core>: Now a std::set.
2183 (collect_cores): Update.
2184 (unique): Remove.
2185 (print_one_inferior): Update.
2186
dcd5ddcc
TT
21872017-09-29 Tom Tromey <tom@tromey.com>
2188
2189 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2190 (mi_execute_async_cli_command): Likewise.
2191 (mi_cmd_trace_frame_collected): Use field_fmt.
2192
45d288cc
TT
21932017-09-29 Tom Tromey <tom@tromey.com>
2194
2195 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2196 gdb::byte_vector.
2197
6afe2f4a
TT
21982017-09-29 Tom Tromey <tom@tromey.com>
2199
2200 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2201
9813429a
TT
22022017-09-29 Tom Tromey <tom@tromey.com>
2203
2204 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2205
2d6960b4
TT
22062017-09-29 Tom Tromey <tom@tromey.com>
2207
2208 * varobj.h (varobj_gen_name): Return std::string.
2209 * varobj.c (varobj_gen_name): Return std::string.
2210 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2211 (mi_cmd_var_delete): Don't copy "name".
2212
784c453a
TT
22132017-09-29 Tom Tromey <tom@tromey.com>
2214
2215 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2216 (mi_cmd_break_insert_1): Update.
2217
a9bc57b9
TT
22182017-09-29 Tom Tromey <tom@tromey.com>
2219
2220 * target.h (make_scoped_defer_target_commit_resume): Update.
2221 * target.c (make_scoped_defer_target_commit_resume): Rename from
2222 make_cleanup_defer_target_commit_resume. Return a
2223 scoped_restore.
2224 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2225
9754d8c4
TT
22262017-09-29 Tom Tromey <tom@tromey.com>
2227
2228 * main.c (captured_main_1): Remove unused declaration.
2229 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2230
99ef965c
TT
22312017-09-29 Tom Tromey <tom@tromey.com>
2232
2233 * symtab.c (search_symbols): Remove unused outer cleanup.
2234 (make_source_files_completion_list): Remove unused declaration.
2235
42518ba7
TT
22362017-09-29 Tom Tromey <tom@tromey.com>
2237
2238 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2239
726b2169
TT
22402017-09-29 Tom Tromey <tom@tromey.com>
2241
2242 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2243 gdb::byte_vector.
2244
55b06432
TT
22452017-09-29 Tom Tromey <tom@tromey.com>
2246
2247 * complaints.c (vcomplaint): Use std::string.
2248
8abcee91
TT
22492017-09-29 Tom Tromey <tom@tromey.com>
2250
2251 * tracepoint.c (trace_variable_command): Use std::string.
2252 (encode_actions_1): Remove unused declarations.
2253 (create_tsv_from_upload): Use std::string.
2254
6ad94bc7
TT
22552017-09-29 Tom Tromey <tom@tromey.com>
2256
2257 * cp-support.c (gdb_demangle): Use std::string.
2258
2003f3d8
TT
22592017-09-29 Tom Tromey <tom@tromey.com>
2260
2261 * stack.c (parse_frame_specification): Use std::string
2262 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2263
8f8accb5
TT
22642017-09-29 Tom Tromey <tom@tromey.com>
2265
2266 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2267
200aa7b1
TT
22682017-09-29 Tom Tromey <tom@tromey.com>
2269
2270 * utils.c (vfprintf_maybe_filtered): Use std::string.
2271 (vfprintf_unfiltered): Likewise.
2272
606aae8a
TT
22732017-09-29 Tom Tromey <tom@tromey.com>
2274
2275 * event-top.c (top_level_prompt): Return std::string.
2276 (display_gdb_prompt): Update.
2277
bd413795
TT
22782017-09-29 Tom Tromey <tom@tromey.com>
2279
2280 * unittests/common-utils-selftests.c (format): New function.
2281 (string_vprintf_tests): New function.
2282 (_initialize_common_utils_selftests): Register new tests.
2283 * common/common-utils.c (string_vprintf): New function.
2284 * common/common-utils.h (string_vprintf): Declare.
2285
256642e8
PA
22862017-09-29 Pedro Alves <palves@redhat.com>
2287
2288 * common/rsp-low.c (unpack_varlen_hex): Constify.
2289 * common/rsp-low.h (unpack_varlen_hex): Constify.
2290 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2291 Constify.
2292 * remote.c (remote_set_permissions, read_ptid)
2293 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2294 (remote_static_tracepoint_marker_at)
2295 (remote_static_tracepoint_markers_by_strid)
2296 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2297 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2298 (parse_tracepoint_definition, parse_tsv_definition)
2299 (parse_static_tracepoint_marker_definition): Constify.
2300 * tracepoint.h (parse_static_tracepoint_marker_definition)
2301 (parse_trace_status, parse_tracepoint_status)
2302 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2303
b6bb3468
PA
23042017-09-29 Pedro Alves <palves@redhat.com>
2305
2306 * remote.c (target_buf, target_buf_size): Delete.
2307 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2308 Use the connection's packet buffer instead.
2309 All callers adjusted.
2310 (_initialize_remote): Remove references to target_buf and
2311 target_buf_size.
2312
b2f8eb7a
PA
23132017-09-28 Pedro Alves <palves@redhat.com>
2314
2315 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2316 unittests/common-utils-selftests.c.
2317 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2318 (COMMON_OBS): Remove utils-selftests.o.
2319 * utils-selftests.c: Move to ...
2320 * unittests/common-utils-selftests.c: ... here and rename self
2321 test to "string_printf".
2322
08302ed2
DE
23232017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2324
2325 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2326 having NULL cus or tus.
2327
96a5a1d3
UW
23282017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2329
2330 * arm-tdep.c: (convert_from_extended): Remove.
2331 (convert_to_extended): Likewise.
2332 (arm_extract_return_value): Use convert_typed_floating.
2333 (arm_store_return_value): Likewise.
2334
2335 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2336 * sh-tdep.c: Do not include "floatformat.h".
2337 (sh_littlebyte_bigword_type): New function.
2338 (sh_register_convert_to_virtual): Use convert_typed_floating.
2339 (sh_register_convert_to_raw): Likewise.
2340 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2341 (sh64_littlebyte_bigword_type): New function.
2342 (sh64_extract_return_value): Use convert_typed_floating.
2343 (sh64_register_convert_to_virtual): Likewise.
2344 (sh64_register_convert_to_raw): Likewise.
2345
0db7851f
UW
23462017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2347
2348 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2349 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2350
2351 * gdbtypes.h (union type_specific): Make field floatformat hold
2352 just a single struct floatformat, not an array.
2353 (floatformat_from_type): Move here.
2354 * gdbtypes.c (floatformat_from_type): Move here. Update to
2355 changed TYPE_FLOATFORMAT definition.
2356 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2357 (recursive_dump_type): Likewise.
2358 (init_float_type): Install correct floatformat for byte order.
2359 (arch_float_type): Likewise.
2360
77b7c781
UW
23612017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2362
2363 * gdbtypes.c (init_type): Change incoming argument from
2364 length-in-bytes to length-in-bits. Assert length is a
2365 multiple of TARGET_CHAR_BITS.
2366 (arch_type, arch_flags_type): Likewise.
2367 (init_integer_type): Update call to init_type.
2368 (init_character_type): Likewise.
2369 (init_boolean_type): Likewise.
2370 (init_float_type): Likewise.
2371 (init_decfloat_type): Likewise.
2372 (init_complex_type): Likewise.
2373 (init_pointer_type): Likewise.
2374 (objfile_type): Likewise.
2375 (arch_integer_type): Update call to arch_type.
2376 (arch_character_type): Likewise.
2377 (arch_boolean_type): Likewise.
2378 (arch_float_type): Likewise.
2379 (arch_decfloat_type): Likewise.
2380 (arch_complex_type): Likewise.
2381 (arch_pointer_type): Likewise.
2382 (gdbtypes_post_init): Likewise.
2383
2384 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2385 (read_base_type): Likewise.
2386 * mdebugread.c (basic_type): Likewise.
2387 * stabsread.c (dbx_init_float_type): Likewise.
2388 (rs6000_builtin_type): Likewise.
2389 (read_range_type): Likewise. Also, fix call to init_integer_type
2390 with erroneous length argument.
2391
2392 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2393 * d-lang.c (build_d_types): Likewise.
2394 * f-lang.c (build_fortran_types): Likewise.
2395 * go-lang.c (build_go_types): Likewise.
2396 * opencl-lang.c (build_opencl_types): Likewise.
2397 * jit.c (finalize_symtab): Likewise.
2398 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2399 (build_std_type_info_type): Likewise.
2400 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2401 update call to arch_flags_type.
2402
2403 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2404 arch_type.
2405 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2406 * windows-tdep.c (windows_get_tlb_type): Likewise.
2407
2408 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2409 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2410 * m32c-tdep.c (make_types): Likewise.
2411 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2412 (rl78_psw_type): Update call to arch_flags_type.
2413 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2414 * rx-tdep.c (rx_psw_type): Likewise.
2415 (rx_fpsw_type): Likewise.
2416 * sparc-tdep.c (sparc_psr_type): Likewise.
2417 (sparc_fsr_type): Likewise.
2418 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2419 (sparc64_ccr_type): Likewise.
2420 (sparc64_fsr_type): Likewise.
2421 (sparc64_fprs_type): Likewise.
2422
f21b4d5c
TT
24232017-09-27 Tom Tromey <tom@tromey.com>
2424
2425 * findcmd.c (find_command): Constify.
2426
643c2ffa
TT
24272017-09-27 Tom Tromey <tom@tromey.com>
2428
2429 * ada-tasks.c (task_command_1, task_command): Constify.
2430
510e5e56
TT
24312017-09-27 Tom Tromey <tom@tromey.com>
2432
2433 * symtab.c (maintenance_print_symbol_cache)
2434 (maintenance_flush_symbol_cache)
2435 (maintenance_print_symbol_cache_statistics): Constify.
2436
e503b191
TT
24372017-09-27 Tom Tromey <tom@tromey.com>
2438
2439 * inferior.c (detach_inferior_command, kill_inferior_command)
2440 (inferior_command): Constify.
2441
4e001312
TT
24422017-09-27 Tom Tromey <tom@tromey.com>
2443
2444 * regcache.c (regcache_print, maintenance_print_registers)
2445 (maintenance_print_raw_registers)
2446 (maintenance_print_cooked_registers)
2447 (maintenance_print_register_groups)
2448 (maintenance_print_remote_registers): Constify.
2449
77763700
TT
24502017-09-27 Tom Tromey <tom@tromey.com>
2451
2452 * printcmd.c (map_display_numbers, undisplay_command)
2453 (enable_disable_display_command, enable_display_command)
2454 (disable_display_command): Constify.
2455
4495129a
TT
24562017-09-27 Tom Tromey <tom@tromey.com>
2457
2458 * breakpoint.h (delete_command): Don't declare.
2459 * breakpoint.c (delete_command, enable_once_command)
2460 (enable_count_command, enable_delete_command, breakpoint_1)
2461 (maintenance_info_breakpoints, stopin_command, stopat_command)
2462 (delete_command, delete_trace_command, save_breakpoints)
2463 (save_breakpoints_command, save_tracepoints_command): Constify.
2464
3088cf40
TT
24652017-09-27 Tom Tromey <tom@tromey.com>
2466
2467 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2468 (skip_ws, extract_identifier, macro_define_command)
2469 (macro_undef_command, macro_list_command): Constify.
2470
69f476a3
TT
24712017-09-27 Tom Tromey <tom@tromey.com>
2472
2473 * infcmd.c (environment_info, set_environment_command)
2474 (unset_environment_command, path_info, info_proc_cmd_1)
2475 (info_proc_cmd_mappings, info_proc_cmd_stat)
2476 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2477 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2478
c4a3e68e
TT
24792017-09-27 Tom Tromey <tom@tromey.com>
2480
2481 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2482 Constify.
2483
c9d31bd6
TT
24842017-09-27 Tom Tromey <tom@tromey.com>
2485
2486 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2487
1f3f85eb
TT
24882017-09-27 Tom Tromey <tom@tromey.com>
2489
2490 * demangle.c (demangle_command): Constify.
2491
9c504b5d
TT
24922017-09-27 Tom Tromey <tom@tromey.com>
2493
2494 * progspace.c (maintenance_info_program_spaces_command):
2495 Constify.
2496
6663cf91
TT
24972017-09-27 Tom Tromey <tom@tromey.com>
2498
2499 * compile/compile.c (check_raw_argument, compile_file_command)
2500 (compile_code_command, compile_print_command): Constify.
2501
34e5fa26
TT
25022017-09-27 Tom Tromey <tom@tromey.com>
2503
2504 * reggroups.c (maintenance_print_reggroups): Constify.
2505
8384c356
TT
25062017-09-27 Tom Tromey <tom@tromey.com>
2507
2508 * dwarf2read.c (save_gdb_index_command): Constify.
2509
884beb0c
TT
25102017-09-27 Tom Tromey <tom@tromey.com>
2511
2512 * stap-probe.c (info_probes_stap_command): Constify.
2513
e0b2930c
TT
25142017-09-27 Tom Tromey <tom@tromey.com>
2515
2516 * fork-child.c (unset_exec_wrapper_command): Constify.
2517
f938677d
TT
25182017-09-27 Tom Tromey <tom@tromey.com>
2519
2520 * btrace.c (get_uint, get_context_size, no_chunk)
2521 (maint_btrace_packet_history_cmd)
2522 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2523 (maint_info_btrace_cmd): Constify.
2524
8949cb87
TT
25252017-09-27 Tom Tromey <tom@tromey.com>
2526
2527 * reverse.c (delete_bookmark_command): Constify.
2528
ac88e2de
TT
25292017-09-27 Tom Tromey <tom@tromey.com>
2530
2531 * remote.c (set_memory_packet_size)
2532 (set_memory_write_packet_size, show_memory_write_packet_size)
2533 (set_memory_read_packet_size, show_memory_read_packet_size)
2534 (compare_sections_command, packet_command, remote_put_command)
2535 (remote_get_command, remote_delete_command): Constify.
2536
bd4c9dfe
TT
25372017-09-27 Tom Tromey <tom@tromey.com>
2538
2539 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2540 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2541 (set_mipsfpu_auto_command): Constify.
2542
5e93d4c6
TT
25432017-09-27 Tom Tromey <tom@tromey.com>
2544
2545 * cli/cli-cmds.h (cd_command): Constify.
2546 * cli/cli-cmds.c (cd_command): Constify.
2547
fc41a75b
TT
25482017-09-27 Tom Tromey <tom@tromey.com>
2549
2550 * thread.c (thread_name_command, thread_find_command): Constify.
2551
67810076
TT
25522017-09-27 Tom Tromey <tom@tromey.com>
2553
2554 * probe.c (enable_probes_command, disable_probes_command):
2555 Constify.
2556
1d8b34a7
TT
25572017-09-27 Tom Tromey <tom@tromey.com>
2558
2559 * symfile.c (symbol_file_command): Constify.
2560 * gdbcore.h (deprecated_file_changed_hook): Constify.
2561 * exec.c (deprecated_file_changed_hook, exec_file_command)
2562 (file_command): Constify.
2563 * defs.h (symbol_file_command): Constify.
2564
442019e1
TT
25652017-09-27 Tom Tromey <tom@tromey.com>
2566
2567 * remote-fileio.c (set_system_call_allowed)
2568 (show_system_call_allowed): Constify.
2569
2983f7cb
TT
25702017-09-27 Tom Tromey <tom@tromey.com>
2571
2572 * tracepoint.c (delete_trace_variable_command)
2573 (tfind_end_command, tfind_start_command, tfind_pc_command)
2574 (tfind_tracepoint_command, tfind_line_command)
2575 (tfind_range_command, tfind_outside_command): Constify.
2576
4fd41b24
TT
25772017-09-27 Tom Tromey <tom@tromey.com>
2578
2579 * ax-gdb.c (maint_agent_printf_command, agent_command)
2580 (agent_eval_command): Constify.
2581
f2fc3015
TT
25822017-09-27 Tom Tromey <tom@tromey.com>
2583
2584 * tracepoint.c (info_scope_command): Constify.
2585 * python/python.c (gdbpy_decode_line): Constify.
2586 * python/py-breakpoint.c (bppy_init): Constify.
2587 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2588 * location.h: (new_linespec_location)
2589 (string_to_event_location_basic, string_to_event_location):
2590 Constify.
2591 * location.c (new_linespec_location)
2592 (string_to_event_location_basic, string_to_event_location):
2593 Constify.
2594 * linespec.h (decode_line_with_current_source)
2595 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2596 * linespec.c (linespec_lex_to_end)
2597 (decode_line_with_current_source)
2598 (decode_line_with_last_displayed): Constify.
2599 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2600 Constify.
2601 * cli/cli-cmds.c (edit_command, list_command): Constify.
2602 * breakpoint.h (until_break_command, watch_command_wrapper)
2603 (awatch_command_wrapper, rwatch_command_wrapper)
2604 (init_ada_exception_breakpoint): Constify.
2605 * breakpoint.c (break_command_1, dprintf_command)
2606 (break_range_command, watch_command_wrapper)
2607 (rwatch_command_wrapper, awatch_command_wrapper)
2608 (until_break_command, init_ada_exception_breakpoint)
2609 (strace_marker_create_sals_from_location, trace_command)
2610 (ftrace_command, strace_command, struct tracepoint): Constify.
2611 * ax-gdb.c (agent_command_1): Constify.
2612 * ada-lang.c (ada_exception_sal): Constify.
2613
8c2f95f4
TT
26142017-09-27 Tom Tromey <tom@tromey.com>
2615
2616 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2617 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2618 (get_context_size, no_chunk, get_insn_history_modifiers)
2619 (cmd_record_insn_history, get_call_history_modifiers)
2620 (cmd_record_call_history): Constify.
2621
a0d65762
TT
26222017-09-27 Tom Tromey <tom@tromey.com>
2623
2624 * source.c (show_substitute_path_command)
2625 (unset_substitute_path_command, set_substitute_path_command):
2626 Constify.
2627
58971144
TT
26282017-09-27 Tom Tromey <tom@tromey.com>
2629
2630 * typeprint.c (maintenance_print_type): Constify.
2631 * maint.c (maintenance_dump_me, maintenance_demangle)
2632 (maintenance_time_display, maintenance_info_sections)
2633 (maintenance_print_statistics, maintenance_deprecate)
2634 (maintenance_undeprecate): Constify.
2635 (maintenance_do_deprecate): Constify. Use std::string.
2636 (maintenance_selftest): Constify.
2637 * gdbtypes.h (maintenance_print_type): Constify.
2638
c482f52c
TT
26392017-09-27 Tom Tromey <tom@tromey.com>
2640
2641 * hppa-tdep.c (unwind_command): Constify.
2642
e100df1a
TT
26432017-09-27 Tom Tromey <tom@tromey.com>
2644
2645 * target-descriptions.c (unset_tdesc_filename_cmd)
2646 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2647 Constify.
2648
31d56ade
TT
26492017-09-27 Tom Tromey <tom@tromey.com>
2650
2651 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2652
b961da0b
TT
26532017-09-27 Tom Tromey <tom@tromey.com>
2654
2655 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2656
e2d8ae16
TT
26572017-09-27 Tom Tromey <tom@tromey.com>
2658
2659 * tui/tui-regs.c (tui_reg_command): Constify.
2660
863779b0
TT
26612017-09-27 Tom Tromey <tom@tromey.com>
2662
2663 * skip.c (skip_file_command, skip_function_command)
2664 (skip_enable_command, skip_disable_command, skip_delete_command):
2665 Constify.
2666
cdb34d4a
TT
26672017-09-27 Tom Tromey <tom@tromey.com>
2668
2669 * record-btrace.c (cmd_record_btrace_bts_start)
2670 (cmd_record_btrace_pt_start): Constify.
2671
e99c83e7
TT
26722017-09-27 Tom Tromey <tom@tromey.com>
2673
2674 * symmisc.c (maintenance_print_symbols)
2675 (maintenance_print_msymbols, maintenance_print_objfiles)
2676 (maintenance_info_symtabs, maintenance_check_symtabs)
2677 (maintenance_expand_symtabs, maintenance_info_line_tables):
2678 Constify.
2679
32faf971
TT
26802017-09-27 Tom Tromey <tom@tromey.com>
2681
2682 * top.c (new_ui_command): Constify.
2683
2cf311eb
TT
26842017-09-27 Tom Tromey <tom@tromey.com>
2685
2686 * symfile.c (add_symbol_file_command)
2687 (remove_symbol_file_command, list_overlays_command)
2688 (map_overlay_command, unmap_overlay_command)
2689 (overlay_auto_command, overlay_manual_command)
2690 (overlay_off_command, overlay_load_command): Constify.
2691
e6738699
TT
26922017-09-27 Tom Tromey <tom@tromey.com>
2693
2694 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2695 (info_spu_mailbox_command, info_spu_dma_command)
2696 (info_spu_proxydma_command): Constify.
2697
aa360cd5
TT
26982017-09-27 Tom Tromey <tom@tromey.com>
2699
2700 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2701
898241a5
TT
27022017-09-27 Tom Tromey <tom@tromey.com>
2703
2704 * cli/cli-script.c (user_defined_command): Constify.
2705
2d0ac106
TT
27062017-09-27 Tom Tromey <tom@tromey.com>
2707
2708 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2709 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2710 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2711 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2712 (dump_binary_value, append_binary_memory, append_binary_value):
2713 Constify.
2714 (struct dump_context) <func>: Constify.
2715 (add_dump_command): Update.
2716
dede02ce
TT
27172017-09-27 Tom Tromey <tom@tromey.com>
2718
2719 * cli/cli-cmds.c (show_version, show_configuration)
2720 (source_command, show_user): Constify.
2721
d3cb6b99
TT
27222017-09-27 Tom Tromey <tom@tromey.com>
2723
2724 * target.c (maintenance_print_target_stack): Constify.
2725
1970a12f
TT
27262017-09-27 Tom Tromey <tom@tromey.com>
2727
2728 * interps.c (interpreter_exec_cmd): Constify.
2729
41243651
TT
27302017-09-27 Tom Tromey <tom@tromey.com>
2731
2732 * record-full.c (cmd_record_full_restore): Constify.
2733
4465d9db
TT
27342017-09-27 Tom Tromey <tom@tromey.com>
2735
2736 * memattr.c (enable_mem_command, disable_mem_command)
2737 (delete_mem_command): Constify.
2738
ad25e423
TT
27392017-09-27 Tom Tromey <tom@tromey.com>
2740
2741 * value.c (show_convenience): Constify.
2742
d64097b1
TT
27432017-09-27 Tom Tromey <tom@tromey.com>
2744
2745 * gdbcore.h (core_file_command): Update.
2746 * corefile.c (core_file_command): Constify.
2747
4d4589ef
TT
27482017-09-27 Tom Tromey <tom@tromey.com>
2749
2750 * user-regs.c (maintenance_print_user_registers): Constify.
2751
32a7bf17
TT
27522017-09-27 Tom Tromey <tom@tromey.com>
2753
2754 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2755
4a475551
TT
27562017-09-27 Tom Tromey <tom@tromey.com>
2757
2758 * cp-support.c (first_component_command): Constify.
2759
990b9f9f
TT
27602017-09-27 Tom Tromey <tom@tromey.com>
2761
2762 * psymtab.c (maintenance_print_psymbols)
2763 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2764 Constify.
2765
c281872e
TT
27662017-09-27 Tom Tromey <tom@tromey.com>
2767
2768 * windows-tdep.c (display_tib): Constify.
2769
5b64bf74
TT
27702017-09-27 Tom Tromey <tom@tromey.com>
2771
2772 * linux-fork.c (delete_checkpoint_command)
2773 (detach_checkpoint_command): Constify.
2774
4ada038f
TT
27752017-09-27 Tom Tromey <tom@tromey.com>
2776
2777 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2778
57f5a81b
TT
27792017-09-27 Tom Tromey <tom@tromey.com>
2780
2781 * arc-tdep.c (dump_arc_instruction_command): Constify.
2782
b0a8e6c4
TT
27832017-09-27 Tom Tromey <tom@tromey.com>
2784
2785 * valprint.c (set_radix, show_radix): Constify.
2786
8d97dc1c
TT
27872017-09-27 Tom Tromey <tom@tromey.com>
2788
2789 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2790
eb7c454d
TT
27912017-09-27 Tom Tromey <tom@tromey.com>
2792
2793 * command.h (not_just_help_class_command): Update.
2794 * cli/cli-decode.h (not_just_help_class_command): Update.
2795 * cli/cli-decode.c (not_just_help_class_command): Constify.
2796
e4e33335
TT
27972017-09-27 Tom Tromey <tom@tromey.com>
2798
2799 * gdb_bfd.c (maintenance_info_bfds): Constify.
2800
0450cc4c
TT
28012017-09-27 Tom Tromey <tom@tromey.com>
2802
2803 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2804 overloads.
2805 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2806 (do_const_cfunc): New function.
2807 (cmd_cfunc_eq): New overload.
2808 (cli_user_command_p): Check do_const_cfunc.
2809 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2810 const_cfunc.
2811 * command.h (add_cmd): Add const overload and no-function
2812 overload.
2813 (set_cmd_cfunc): Add const overload.
2814 (cmd_const_cfunc_ftype): Declare.
2815 (cmd_cfunc_eq): Add const overload.
2816 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2817 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2818 overload.
2819
a9bbfbd8
TT
28202017-09-27 Tom Tromey <tom@tromey.com>
2821
2822 * macroexp.c (get_next_token_for_substitution): New function.
2823 (substitute_args): Call it. Check for __VA_OPT__.
2824
5230b05a
WT
28252017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2826 Pedro Alves <palves@redhat.com>
2827
2828 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2829 producer_is_icc_lt_14.
2830 (producer_is_icc_lt_14): New function.
2831 (check_producer): Add code for checking version of ICC.
2832 (producer_is_icc): Move to producer.c.
2833 (read_structure_type): Restrict ICC workaround to ICC<14.
2834 * producer.c: Include selftest.h.
2835 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2836 New functions.
2837 * producer.h (producer_is_icc): New declaration.
2838
b32b108a
WT
28392017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2840
2841 * Makefile.in (SFILES): Add producer.c.
2842 (COMMON_OBS): Add producer.o
2843 * amd64-tdep.c (producer.h): Add new include.
2844 * dwarf2read.c (producer.h): Add new include.
2845 * producer.c: New file.
2846 * producer.h: New file.
2847 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2848 producer.c.
2849 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2850 producer.h.
2851
5007d765
MK
28522017-09-26 Matthias Klose <doko@ubuntu.com>
2853
2854 * configure.ac: Search ncursesw before ncurses.
2855 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2856 * gdb_curses.h: Include <ncursesw/ncurses.h>
2857 * config.in, configure: Regenerate.
2858
281c4447
RO
28592017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2860
2861 PR gdb/22185
2862 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2863 obsolete.
2864 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
2865 Remove i386sol2 support.
2866 * configure.nat <i386sol2>: Remove.
2867 <sol2-64>: Fold into ...
2868 <sol2>: ... this.
2869 Move common settings to default section.
2870 Add sol-thread.o.
2871 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
2872 x86_64-*-solaris2.1[0-9]*>: Rename to ...
2873 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
2874 <i[34567]86-*-solaris*>: Remove.
2875 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
2876
2877 * configure.ac: Remove wctype in libw check.
2878 (_MSE_INT_H): Don't define on Solaris 7-9.
2879 <solaris*>: Remove libthread_db.so.1 check.
2880 * configure: Regenerate.
2881 * config.in: Regenerate.
2882
2883 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
2884 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
2885 (gdb_ps_size_t): Remove.
2886 Use base types in users.
2887 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
2888
2889 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
2890
39b06c20
RO
28912017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2892
2893 PR build/22206
2894 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
2895 (adi_is_addr_mapped): Likewise.
2896 (PSR_ICC): Don't redefine.
2897 (PSR_IMPL): Likewise.
2898
6c3e20f1
TT
28992017-09-25 Tom Tromey <tom@tromey.com>
2900
2901 * regcache.c (regcache::dump): Use string_printf.
2902
b292235f
TT
29032017-09-25 Tom Tromey <tom@tromey.com>
2904
2905 * regcache.c (class regcache_invalidator): New.
2906 (struct register_to_invalidate): Remove.
2907 (make_cleanup_regcache_invalidate): Remove.
2908 (regcache::raw_write): Use regcache_invalidator.
2909
9ac86b52
TT
29102017-09-25 Tom Tromey <tom@tromey.com>
2911
2912 * spu-tdep.c (spu2ppu_sniffer): Update.
2913 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
2914 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
2915 Remove.
2916 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
2917 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
2918 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
2919 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
2920 (frame_pop): Update.
2921
c0e383c6
TT
29222017-09-25 Tom Tromey <tom@tromey.com>
2923
2924 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
2925 * regcache.h (regcache_xfree): Don't declare.
2926 * regcache.c (regcache_xfree): Remove.
2927 (do_regcache_xfree): Use delete.
2928 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
2929 * linux-fork.c (free_fork): Use delete.
2930 (fork_save_infrun_state): Likewise.
2931 * jit.c (jit_dealloc_cache): Use delete.
2932 * infrun.c (discard_infcall_suspend_state): Use delete.
2933
791199cc
TT
29342017-09-25 Tom Tromey <tom@tromey.com>
2935
2936 * regcache.h (regcache_xmalloc): Don't declare.
2937 (regcache_raw_set_cached_value): Update comment.
2938 * regcache.c (regcache_xmalloc): Remove.
2939 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
2940 * jit.c (jit_frame_sniffer): Use new.
2941 * frame.c (frame_save_as_regcache): Use new.
2942
289e23aa
AA
29432017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2944
2945 * NEWS: Advertise support for guarded-storage registers on IBM z.
2946
1b63490c
AA
29472017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2948
2949 * s390-linux-nat.c (have_regset_gs): New static variable.
2950 (s390_linux_fetch_inferior_registers): Handle guarded-storage
2951 control block and guarded-storage broadcast control regsets.
2952 (s390_read_description): Detect whether the target has
2953 guarded-storage support, return appropriate tdesc.
2954 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
2955 (features/s390x-gs-linux64.c): Likewise.
2956 (struct gdbarch_tdep) <have_gs>: New field.
2957 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
2958 (s390_gsbc_regset): New variables.
2959 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
2960 and s390_gsbc_regset, if applicable.
2961 (s390_core_read_description): Check whether core file was from a
2962 target with guarded-storage support; include appropriate regsets.
2963 (s390_gdbarch_init): Add registers for guarded-storage support.
2964 (_initialize_s390_tdep): Initialize new target descriptions that
2965 include registers for guarded-storage support.
2966 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
2967 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
2968 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
2969 (S390_NUM_REGS): Adjust macro definition.
2970 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
2971 (tdesc_s390x_gs_linux64): New declarations.
2972
96235dc1
AA
29732017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2974
2975 * features/s390-gs-linux64.xml: New file.
2976 * features/s390-gs.xml: New file.
2977 * features/s390-gsbc.xml: New file.
2978 * features/s390x-gs-linux64.xml: New file.
2979 * features/Makefile (WHICH): Add s390-gs-linux64 and
2980 s390x-gs-linux64.
2981 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
2982 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
2983 * features/s390-gs-linux64.c: New generated file.
2984 * features/s390x-gs-linux64.c: New file.
2985 * regformats/s390-gs-linux64.dat: New file.
2986 * regformats/s390x-gs-linux64.dat: New file.
2987
b4a7c699
TT
29882017-09-23 Tom Tromey <tom@tromey.com>
2989
2990 * defs.h (make_cleanup_override_quit_handler): Don't declare.
2991
c2f97536
TT
29922017-09-22 Tom Tromey <tom@tromey.com>
2993
2994 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
2995 type to scoped_restore_tmpl.
2996 <scoped_input_handler>: Initialize m_quit_handler directly.
2997
43573013
SDJ
29982017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2999
3000 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3001 (cd_command): Likewise. Free "current_directory" before
3002 assigning to it.
3003 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3004 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3005 * top.c (gdb_dirbuf): Remove global declaration.
3006 * top.h (gdb_dirbuf): Likewise.
3007
6ec2e0f5
SDJ
30082017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3009
3010 * gnulib/aclocal.m4: Regenerate.
3011 * gnulib/config.in: Regenerate.
3012 * gnulib/configure: Regenerate.
3013 * gnulib/import/Makefile.am: Regenerate.
3014 * gnulib/import/Makefile.in: Regenerate.
3015 * gnulib/import/assure.h: New file.
3016 * gnulib/import/at-func.c: Likewise
3017 * gnulib/import/chdir-long.c: New file.
3018 * gnulib/import/chdir-long.h: New file.
3019 * gnulib/import/cloexec.c: New file.
3020 * gnulib/import/cloexec.h: New file.
3021 * gnulib/import/close.c: New file.
3022 * gnulib/import/closedir.c: New file.
3023 * gnulib/import/dirent-private.h: New file.
3024 * gnulib/import/dup-safer.c: New file.
3025 * gnulib/import/dup.c: New file.
3026 * gnulib/import/dup2.c: New file.
3027 * gnulib/import/error.c: New file.
3028 * gnulib/import/error.h: New file.
3029 * gnulib/import/exitfail.c: New file.
3030 * gnulib/import/exitfail.h: New file.
3031 * gnulib/import/fchdir.c: New file.
3032 * gnulib/import/fcntl.c: New file.
3033 * gnulib/import/fcntl.in.h: New file.
3034 * gnulib/import/fd-hook.c: New file.
3035 * gnulib/import/fd-hook.h: New file.
3036 * gnulib/import/fd-safer.c: New file.
3037 * gnulib/import/fdopendir.c: New file.
3038 * gnulib/import/filename.h: New file.
3039 * gnulib/import/filenamecat-lgpl.c: New file.
3040 * gnulib/import/filenamecat.h: New file.
3041 * gnulib/import/fstat.c: New file.
3042 * gnulib/import/fstatat.c: New file.
3043 * gnulib/import/getcwd-lgpl.c: New file.
3044 * gnulib/import/getcwd.c: New file.
3045 * gnulib/import/getdtablesize.c: New file.
3046 * gnulib/import/getlogin_r.c: New file.
3047 * gnulib/import/getprogname.c: New file.
3048 * gnulib/import/getprogname.h: New file.
3049 * gnulib/import/gettext.h: New file.
3050 * gnulib/import/glob-libc.h: New file.
3051 * gnulib/import/glob.c: New file.
3052 * gnulib/import/glob.in.h: New file.
3053 * gnulib/import/intprops.h: New file.
3054 * gnulib/import/m4/chdir-long.m4: New file.
3055 * gnulib/import/m4/close.m4: New file.
3056 * gnulib/import/m4/closedir.m4: New file.
3057 * gnulib/import/m4/d-ino.m4: New file.
3058 * gnulib/import/m4/d-type.m4: New file.
3059 * gnulib/import/m4/dup.m4: New file.
3060 * gnulib/import/m4/dup2.m4: New file.
3061 * gnulib/import/m4/error.m4: New file.
3062 * gnulib/import/m4/fchdir.m4: New file.
3063 * gnulib/import/m4/fcntl.m4: New file.
3064 * gnulib/import/m4/fcntl_h.m4: New file.
3065 * gnulib/import/m4/fdopendir.m4: New file.
3066 * gnulib/import/m4/filenamecat.m4: New file.
3067 * gnulib/import/m4/fstat.m4: New file.
3068 * gnulib/import/m4/fstatat.m4: New file.
3069 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3070 * gnulib/import/m4/getcwd-path-max.m4: New file.
3071 * gnulib/import/m4/getcwd.m4: New file.
3072 * gnulib/import/m4/getdtablesize.m4: New file.
3073 * gnulib/import/m4/getlogin_r.m4: New file.
3074 * gnulib/import/m4/getprogname.m4: New file.
3075 * gnulib/import/m4/glob.m4: New file.
3076 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3077 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3078 * gnulib/import/m4/mempcpy.m4: New file.
3079 * gnulib/import/m4/memrchr.m4: New file.
3080 * gnulib/import/m4/mode_t.m4: New file.
3081 * gnulib/import/m4/msvc-inval.m4: New file.
3082 * gnulib/import/m4/msvc-nothrow.m4: New file.
3083 * gnulib/import/m4/open.m4: New file.
3084 * gnulib/import/m4/openat.m4: New file.
3085 * gnulib/import/m4/opendir.m4: New file.
3086 * gnulib/import/m4/readdir.m4: New file.
3087 * gnulib/import/m4/realloc.m4: New file.
3088 * gnulib/import/m4/rewinddir.m4: New file.
3089 * gnulib/import/m4/save-cwd.m4: New file.
3090 * gnulib/import/m4/strdup.m4: New file.
3091 * gnulib/import/m4/strerror.m4: New file.
3092 * gnulib/import/m4/unistd-safer.m4: New file.
3093 * gnulib/import/mempcpy.c: New file.
3094 * gnulib/import/memrchr.c: New file.
3095 * gnulib/import/msvc-inval.c: New file.
3096 * gnulib/import/msvc-inval.h: New file.
3097 * gnulib/import/msvc-nothrow.c: New file.
3098 * gnulib/import/msvc-nothrow.h: New file.
3099 * gnulib/import/open.c: New file.
3100 * gnulib/import/openat-die.c: New file.
3101 * gnulib/import/openat-priv.h: New file.
3102 * gnulib/import/openat-proc.c: New file.
3103 * gnulib/import/openat.c: New file.
3104 * gnulib/import/openat.h: New file.
3105 * gnulib/import/opendir.c: New file.
3106 * gnulib/import/pipe-safer.c: New file.
3107 * gnulib/import/readdir.c: New file.
3108 * gnulib/import/realloc.c: New file.
3109 * gnulib/import/rewinddir.c: New file.
3110 * gnulib/import/save-cwd.c: New file.
3111 * gnulib/import/save-cwd.h: New file.
3112 * gnulib/import/strdup.c: New file.
3113 * gnulib/import/strerror-override.c: New file.
3114 * gnulib/import/strerror-override.h: New file.
3115 * gnulib/import/strerror.c: New file.
3116 * gnulib/import/unistd--.h: New file.
3117 * gnulib/import/unistd-safer.h: New file.
3118 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3119 "getcwd" and "glob".
3120 * ser-tcp.c: Undefine "close" before redefining it.
3121
432ae719
SM
31222017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3123
3124 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3125 get rid of res_val.
3126
4fa7574e
RO
31272017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3128
3129 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3130 <sol2,sparc>: Likewise.
3131 <sol2-64,i386>: Likewise.
3132
3133 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3134 -Wdeprecated-declarations on *-*-solaris*.
3135 * configure: Regenerate.
3136
3137 * procfs.c: Include "nat/inferior.h".
3138 (procfs_info_proc): Fix typo.
3139
f6327dcb
KB
31402017-09-21 Kevin Buettner <kevinb@redhat.com>
3141
3142 * remote.c (vector): Include.
3143 (struct private_thread_info): Add field, thread_handle.
3144 (free_private_thread_info): Deallocate storage associated with
3145 thread handle.
3146 (get_private_info_thread): Initialize `thread_handle' field.
3147 (struct thread_item): Add field, thread_handle.
3148 (clear_threads_listing_context): Deallocate storage associated
3149 with thread handle.
3150 (start_thread): Add support for "handle" attribute.
3151 (thread_attributes): Add "handle".
3152 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3153 field.
3154 (remote_update_thread_list): Update thread_handle.
3155 (remote_thread_handle_to_thread_info): New function.
3156 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3157
fbbe5337
KB
31582017-09-21 Kevin Buettner <kevinb@redhat.com>
3159
3160 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3161 function.
3162 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3163 * python/python-internal.h (thread_object_type): Declare.
3164
e04ee09e
KB
31652017-09-21 Kevin Buettner <kevinb@redhat.com>
3166
3167 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3168 (target_thread_handle_to_thread_info): Declare.
3169 * target.c (target_thread_handle_to_thread_info): New function.
3170 * target-delegates.c: Regenerate.
3171 * gdbthread.h (find_thread_by_handle): Declare.
3172 * thread.c (find_thread_by_handle): New function.
3173 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3174 function.
3175 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3176
1e5b66ed
SM
31772017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3178
3179 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3180
ebe48ba0
SM
31812017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3182
3183 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3184
0a0bf5dc
YQ
31852017-09-21 Yao Qi <yao.qi@linaro.org>
3186
3187 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3188 to gdb_target_obs.
3189
d1b0a7bf
TT
31902017-09-20 Tom Tromey <tom@tromey.com>
3191
3192 * breakpoint.c (struct counted_command_line): Remove.
3193 (breakpoint_commands): Update.
3194 (alloc_counted_command_line, incref_counted_command_line)
3195 (decref_counted_command_line, do_cleanup_counted_command_line)
3196 (make_cleanup_decref_counted_command_line): Remove.
3197 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3198 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3199 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3200 (save_breakpoints): Update.
3201 * breakpoint.h (counted_command_line): Now a typedef to
3202 shared_ptr.
3203 (struct breakpoint) <commands>: Now a counted_command_line.
3204 (struct bpstats) <command>: Likewise.
3205
48649e1b
TT
32062017-09-20 Tom Tromey <tom@tromey.com>
3207
3208 * breakpoint.c (struct commands_info, do_map_commands_command):
3209 Remove.
3210 (commands_command_1): Update.
3211 (iterate_over_related_breakpoints): Take a function_view.
3212 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3213 (delete_command): Update.
3214 (map_breakpoint_numbers): Take a function_view.
3215 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3216 (disable_command): Update.
3217 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3218 (enable_command): Update.
3219 (struct disp_data, do_enable_breakpoint_disp)
3220 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3221 (do_map_enable_delete_breakpoint): Remove.
3222 (enable_once_command, enable_count_command, enable_delete_command)
3223 (delete_trace_variable_command): Update.
3224
04afa70c
TT
32252017-09-20 Tom Tromey <tom@tromey.com>
3226
3227 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3228 (bpstat_clear): Use delete.
3229 (bpstats): New constructors.
3230 (bpstat_copy, bpstat_stop_status): Use new.
3231 (dprintf_after_condition_true): Update.
3232 * breakpoint.h (bpstats::bpstats): Add constructors.
3233 (bpstats::~bpstats): Add destructor.
3234
c83833f4
PA
32352017-09-20 Pedro Alves <palves@redhat.com>
3236
3237 * eval.c (make_params): Delete, refactored as ...
3238 (class fake_method): ... this new type's ctor.
3239 (fake_method::~fake_method): New.
3240 (evaluate_subexp_standard): Use 'fake_method'.
3241
223ffa71
TT
32422017-09-20 Tom Tromey <tom@tromey.com>
3243
3244 * windows-nat.c (get_windows_debug_event, windows_wait)
3245 (do_initial_windows_stuff, windows_attach): Update.
3246 * utils.c (vwarning, internal_vproblem): Update.
3247 (ui_unregister_input_event_handler_cleanup)
3248 (prepare_to_handle_input): Remove.
3249 (class scoped_input_handler): New.
3250 (defaulted_query, prompt_for_continue): Update.
3251 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3252 Update.
3253 * top.c (undo_terminal_modifications_before_exit): Update.
3254 * target/target.h (target_terminal_init, target_terminal_inferior)
3255 (target_terminal_ours): Don't declare.
3256 (class target_terminal): New.
3257 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3258 (target_terminal_ours_for_output)
3259 (make_cleanup_restore_target_terminal): Don't declare.
3260 (target_terminal_info): Remove.
3261 * target.c (enum terminal_state, terminal_state): Remove.
3262 (target_terminal::terminal_state): Define.
3263 (target_terminal::init): Rename from target_terminal_init.
3264 (target_terminal::inferior): Rename from
3265 target_terminal_inferior.
3266 (target_terminal::ours): Rename from target_terminal_ours.
3267 (target_terminal::ours_for_output): Rename from
3268 target_terminal_ours_for_output.
3269 (target_terminal::info): New method.
3270 (cleanup_restore_target_terminal)
3271 (make_cleanup_restore_target_terminal): Remove.
3272 * solib.c (handle_solib_event): Update.
3273 * remote.c (remote_serial_quit_handler): Update.
3274 (remote_terminal_inferior, remote_wait_as): Update.
3275 * record-full.c (record_full_wait_1): Update.
3276 * nto-procfs.c (procfs_create_inferior): Update.
3277 * nat/fork-inferior.c (startup_inferior): Update.
3278 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3279 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3280 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3281 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3282 (mi_breakpoint_created, mi_breakpoint_deleted)
3283 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3284 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3285 (mi_user_selected_context_changed, report_initial_inferior):
3286 Update.
3287 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3288 (linux_nat_terminal_inferior): Update.
3289 * infrun.c (follow_fork_inferior)
3290 (handle_vfork_child_exec_or_exit, do_target_resume)
3291 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3292 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3293 Update.
3294 * inflow.c (child_terminal_init, info_terminal_command): Update.
3295 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3296 (attach_command): Update.
3297 * infcall.c (call_thread_fsm_should_stop): Update.
3298 * gnu-nat.c (gnu_attach): Update.
3299 * extension.c (struct active_ext_lang_state)
3300 (restore_active_ext_lang): Update.
3301 * exceptions.c (print_flush): Update.
3302 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3303 (struct quit_handler_cleanup_data, restore_quit_handler)
3304 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3305 Remove.
3306 * cp-support.c (gdb_demangle): Update.
3307 * breakpoint.c (update_inserted_breakpoint_locations)
3308 (insert_breakpoint_locations, handle_jit_event)
3309 (disable_breakpoints_in_unloaded_shlib): Update.
3310 * annotate.c (annotate_breakpoints_invalid)
3311 (annotate_frames_invalid): Update.
3312
013af3fc
TT
33132017-09-20 Tom Tromey <tom@tromey.com>
3314
3315 * main.c (catch_command_errors): Rename from
3316 catch_command_errors_const.
3317 (captured_main_1): Update.
3318
06871ae8
PA
33192017-09-20 Pedro Alves <palves@redhat.com>
3320
3321 * cli/cli-cmds.c (list_command): Use print_sal_location.
3322 (print_sal_location): New function.
3323 (ambiguous_line_spec): Use print_sal_location.
3324 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3325 * symtab.c (find_function_start_sal): Likewise.
3326 * symtab.h (symtab_and_line::symbol): New field.
3327
e5f25bc5
PA
33282017-09-20 Pedro Alves <palves@redhat.com>
3329
3330 * linespec.c (minsym_found): Handle non-text minsyms.
3331 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3332
1b7fa39e
WT
33332017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3334
3335 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3336 backslash.
3337
37dd0825
WT
33382017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3339
3340 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3341 vmovups instead vmovaps.
3342 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3343
4e5a4f58
JB
33442017-09-19 John Baldwin <jhb@FreeBSD.org>
3345
3346 * NEWS (Changes since GDB 8.0): Add starti.
3347 * infcmd.c (enum run_break): New.
3348 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3349 case.
3350 (run_command): Use enum run_how.
3351 (start_command): Likewise.
3352 (starti_command): New function.
3353 (RUN_ARGS_HELP): New macro.
3354 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3355 commands. Add starti command.
3356
aa70c9f1
YQ
33572017-09-19 Yao Qi <yao.qi@linaro.org>
3358
3359 * Makefile.in (monitor.o): Remove the rule.
3360
d6541620
YQ
33612017-09-19 Yao Qi <yao.qi@linaro.org>
3362
3363 * annotate.h (struct annotate_arg_emitter): Use
3364 DISABLE_COPY_AND_ASSIGN.
3365 * common/refcounted-object.h (refcounted_object): Likewise.
3366 * completer.h (struct completion_result): Likewise.
3367 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3368 * filename-seen-cache.h (filename_seen_cache): Likewise.
3369 * gdbcore.h (thread_section_name): Likewise.
3370 * gdb_regex.h (compiled_regex): Likewise.
3371 * gdbthread.h (scoped_restore_current_thread): Likewise.
3372 * inferior.h (scoped_restore_current_inferior): Likewise.
3373 * jit.c (jit_reader): Likewise.
3374 * linespec.h (struct linespec_result): Likewise.
3375 * mi/mi-parse.h (struct mi_parse): Likewise.
3376 * nat/fork-inferior.c (execv_argv): Likewise.
3377 * progspace.h (scoped_restore_current_program_space): Likewise.
3378 * python/python-internal.h (class gdbpy_enter): Likewise.
3379 * regcache.h (regcache): Likewise.
3380 * target-descriptions.c (struct tdesc_reg): Likewise.
3381 (struct tdesc_type): Likewise.
3382 (struct tdesc_feature): Likewise.
3383 * ui-out.h (ui_out_emit_type): Likewise.
3384
0615127c
SM
33852017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3386
3387 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3388 label abort_expression.
3389
5e187554
SM
33902017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3391
3392 * common/buffer.c (buffer_xml_printf): Adjust.
3393 * common/xml-utils.c (xml_escape_text): Change return type to
3394 std::string, update code accordingly.
3395 * common/xml-utils.h (xml_escape_text): Change return type to
3396 std::string.
3397 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3398 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3399 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3400 Adjust.
3401
c3d7b541
SM
34022017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3403
3404 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3405 (SUBDIR_UNITTESTS_OBS): Add new object file.
3406 * unittests/xml-utils-selftests.c: New file.
3407
1526853e
SM
34082017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3409
3410 * common/selftest.h (selftest): New struct/interface.
3411 (register_test): Add name parameter, add new overload.
3412 (run_tests): Add filter parameter.
3413 (for_each_selftest_ftype): New typedef.
3414 (for_each_selftest): New declaration.
3415 * common/selftest.c (tests): Change type to
3416 map<string, unique_ptr<selftest>>.
3417 (simple_selftest): New struct.
3418 (register_test): New function.
3419 (register_test): Add name parameter and use it.
3420 (run_tests): Add filter parameter and use it. Add prints.
3421 Adjust to vector -> map change.
3422 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3423 registering selftests.
3424 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3425 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3426 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3427 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3428 * findvar.c (_initialize_findvar): Likewise.
3429 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3430 * maint.c (maintenance_selftest): Update call to run_tests.
3431 (maintenance_info_selftests): New function.
3432 (_initialize_maint_cmds): Register "maintenance info selftests"
3433 command. Update "maintenance selftest" doc.
3434 * regcache.c (_initialize_regcache): Add names when registering
3435 selftests.
3436 * rust-exp.y (_initialize_rust_exp): Likewise.
3437 * selftest-arch.c (gdbarch_selftest): New struct.
3438 (gdbarch_tests): Remove.
3439 (register_test_foreach_arch): Add name parameter. Call
3440 register_test.
3441 (tests_with_arch): Remove, move most content to
3442 gdbarch_selftest::operator().
3443 (_initialize_selftests_foreach_arch): Remove.
3444 * selftest-arch.h (register_test_foreach_arch): Add name
3445 parameter.
3446 (run_tests_with_arch): New declaration.
3447 * utils-selftests.c (_initialize_utils_selftests): Add names
3448 when registering selftests.
3449 * utils.c (_initialize_utils): Likewise.
3450 * unittests/array-view-selftests.c
3451 (_initialize_array_view_selftests): Likewise.
3452 * unittests/environ-selftests.c (_initialize_environ_selftests):
3453 Likewise.
3454 * unittests/function-view-selftests.c
3455 (_initialize_function_view_selftests): Likewise.
3456 * unittests/offset-type-selftests.c
3457 (_initialize_offset_type_selftests): Likewise.
3458 * unittests/optional-selftests.c
3459 (_initialize_optional_selftests): Likewise.
3460 * unittests/scoped_restore-selftests.c
3461 (_initialize_scoped_restore_selftests): Likewise.
3462 * NEWS: Document "maintenance selftest" and "maint info
3463 selftests".
3464
5846367a
SM
34652017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3466
3467 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3468 scoped_restore.
3469
bd77e8ff
SM
34702017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3471
3472 * mi/mi-main.c (mi_load_progress): Make uiout variable
3473 a unique_ptr.
3474
26a67918
PA
34752017-09-15 Pedro Alves <palves@redhat.com>
3476
3477 * compile/compile-c-types.c (convert_enum, convert_int)
3478 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3479
3f8a7804
SM
34802017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3481
3482 * dwarf2read.c (copy_string): Remove.
3483 (parse_macro_definition): Replace copy_string with savestring.
3484
8d200706
YQ
34852017-09-15 Yao Qi <yao.qi@linaro.org>
3486
3487 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3488 gdb_target_obs.
3489 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3490 Likewise.
3491 (i[34567]86-*-linux*): Likewise.
3492
d185219d
SM
34932017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3494
3495 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3496 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3497 <stack>: Change type to std::vector.
3498 <stack_len, stack_allocated>: Remove.
3499 <grow_stack>: Remove.
3500 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3501 (dwarf_expr_context::~dwarf_expr_context): Remove.
3502 (dwarf_expr_context::grow_stack): Remove.
3503 (dwarf_expr_context::push): Adjust.
3504 (dwarf_expr_context::pop): Adjust.
3505 (dwarf_expr_context::fetch): Adjust.
3506 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3507 (dwarf_expr_context::stack_empty_p): Adjust.
3508 (dwarf_expr_context::execute_stack_op): Adjust.
3509
eccd80d6
SM
35102017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3511
3512 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3513 return type to bool.
3514 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3515
69009882
SM
35162017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3517
3518 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3519 Change type to bool.
3520 (dwarf_stack_value) <in_stack_memory>: Likewise.
3521 (dwarf_expr_context) <push_address>: Change parameter type to
3522 bool.
3523 <fetch_in_stack_memory>: Change return type to bool.
3524 <push>: Change parameter type to bool.
3525 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3526 to bool.
3527 (dwarf_expr_context::push_address): Likewise.
3528 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3529 to bool.
3530 (dwarf_expr_context::execute_stack_op): Adjust.
3531 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3532
1e467161
SM
35332017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3534
3535 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3536 (struct dwarf_expr_context) <n_pieces>: Remove.
3537 <pieces>: Change type to std::vector.
3538 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3539 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3540 pieces.
3541 (dwarf_expr_context::add_piece): Adjust.
3542 * dwarf2loc.c (struct piece_closure): Initialize fields.
3543 <n_pieces>: Remove.
3544 <pieces>: Change type to std::vector.
3545 (allocate_piece_closure): Adjust, change parameter to
3546 std::vector rvalue and std::move it to piece_closure.
3547 (rw_pieced_value): Adjust.
3548 (check_pieced_synthetic_pointer): Adjust.
3549 (indirect_synthetic_pointer): Adjust.
3550 (coerce_pieced_ref): Adjust.
3551 (free_pieced_value_closure): Adjust. Use delete to free
3552 piece_closure.
3553 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3554 to allocate_piece_closure.
3555 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3556
0782db84
SM
35572017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3558
3559 * probe.h (probe_ops_cp): Remove typedef.
3560 (DEF_VEC_P (probe_ops_cp)): Remove.
3561 (all_probe_ops): Change type to std::vector.
3562 * probe.c (info_probes_for_ops): Adjust to vector change.
3563 (probe_linespec_to_ops): Likewise.
3564 (all_probe_ops): Change type to std::vector.
3565 (_initialize_probe): Adjust to vector change.
3566 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3567 * elfread.c (elf_get_probes): Likewise.
3568 * stap-probe.c (_initialize_stap_probe): Likewise.
3569
1eac6bea
SM
35702017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3571
3572 * probe.h (struct bound_probe): Define constructors.
3573 * probe.c (bound_probe_s): Remove typedef.
3574 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3575 (collect_probes): Change return type to std::vector, remove
3576 cleanup.
3577 (compare_probes): Return bool, change parameter type. Change
3578 semantic to "less than".
3579 (gen_ui_out_table_header_info): Change parameter to std::vector
3580 and update.
3581 (exists_probe_with_pops): Likewise.
3582 (info_probes_for_ops): Update to std::vector change.
3583 (enable_probes_command): Likewise.
3584 (disable_probes_command): Likewise.
3585
aaa63a31
SM
35862017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3587
3588 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3589 vec to std::vector.
3590 * probe.c (parse_probes_in_pspace): Update.
3591 (find_probes_in_objfile): Update.
3592 (find_probe_by_pc): Update.
3593 (collect_probes): Update.
3594 (probe_any_get_probes): Update.
3595 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3596 return type to reference to std::vector.
3597 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3598 std::vector and update.
3599 (dtrace_process_dof): Likewise.
3600 (dtrace_get_probes): Likewise.
3601 * elfread.c (elf_get_probes): Change return type to std::vector,
3602 store an std::vector in bfd_data.
3603 (probe_key_free): Update to std::vector.
3604 * stap-probe.c (handle_stap_probe): Change parameter to
3605 std::vector and update.
3606 (stap_get_probes): Likewise.
3607 * symfile-debug.c (debug_sym_get_probes): Change return type to
3608 std::vector and update.
3609
cb85b21b
TT
36102017-09-11 Tom Tromey <tom@tromey.com>
3611
3612 * breakpoint.c (program_breakpoint_here_p): Update.
3613 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3614 from make_show_memory_breakpoints_cleanup. Return a
3615 scoped_restore_tmpl<int>.
3616 (restore_show_memory_breakpoints): Remove.
3617 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3618 * mem-break.c (memory_validate_breakpoint): Update.
3619 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3620 (ia64_memory_remove_breakpoint): Update.
3621 (ia64_breakpoint_from_pc): Update.
3622 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3623 from make_show_memory_breakpoints_cleanup.
3624
8fbc99ef
TT
36252017-09-11 Tom Tromey <tom@tromey.com>
3626
3627 * d-namespace.c (d_lookup_symbol): Use std::string.
3628 (find_symbol_in_baseclass): Likewise.
3629
50feb4bd
TT
36302017-09-11 Tom Tromey <tom@tromey.com>
3631
3632 * ctf.c (ctf_start): Use std::string.
3633
c6dc63a1
TT
36342017-09-11 Tom Tromey <tom@tromey.com>
3635
3636 * ada-lang.c (is_known_support_routine): Update.
3637 (ada_unhandled_exception_name_addr_from_raise): Update.
3638 * guile/scm-frame.c (gdbscm_frame_name): Update.
3639 * python/py-frame.c (frapy_name): Update.
3640 (frapy_function): Update.
3641 * stack.h (find_frame_funname): Update.
3642 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3643 (print_frame): Update.
3644
d6b9b80f
TT
36452017-09-11 Tom Tromey <tom@tromey.com>
3646
3647 * findcmd.c (put_bits): Take a gdb::byte_vector.
3648 (parse_find_args): Return gdb::byte_vector. "args" now const.
3649 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3650 cleanups.
3651 (find_command): Update.
3652
a9921622
TT
36532017-09-11 Tom Tromey <tom@tromey.com>
3654
3655 * cli/cli-script.c (class scoped_restore_hook_in): New.
3656 (clear_hook_in_cleanup): Remove.
3657 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3658 scoped_restore_hook_in.
3659
be0d7abb
TT
36602017-09-11 Tom Tromey <tom@tromey.com>
3661
3662 * cli/cli-script.c (restore_interp): Remove.
3663 (read_command_lines): Use scoped_restore_interp.
3664 * interps.c (scoped_restore_interp::set_temp): Rename from
3665 interp_set_temp.
3666 * interps.h (class scoped_restore_interp): New.
3667 (interp_set_temp): Remove.
3668
00f675ff
TT
36692017-09-11 Tom Tromey <tom@tromey.com>
3670
3671 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3672 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3673 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3674 scoped_restore.
3675 (mi_cmd_break_insert_1): Update.
3676 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3677 scoped_restore.
3678
cb791d59
TT
36792017-09-11 Tom Tromey <tom@tromey.com>
3680
3681 * demangle.c (demangle_command): Update.
3682 * breakpoint.c (disable_command): Update.
3683 (enable_command): Update.
3684 (find_location_by_number): Make "number" const. Use
3685 get_number_trailer.
3686 * cli/cli-utils.c (extract_arg): Return std::string.
3687 * probe.c (parse_probe_linespec): Update. Change types.
3688 (collect_probes): Take string arguments.
3689 (parse_probe_linespec): Likewise.
3690 (info_probes_for_ops): Update.
3691 (enable_probes_command): Update.
3692 (disable_probes_command): Update.
3693 * break-catch-sig.c (catch_signal_split_args): Update.
3694 * mi/mi-parse.c (mi_parse): Update.
3695
2039bd9f
TT
36962017-09-11 Tom Tromey <tom@tromey.com>
3697
3698 * language.h (language_enum): Make argument const.
3699 * language.c (language_enum): Make argument const.
3700
f1735a53
TT
37012017-09-11 Tom Tromey <tom@tromey.com>
3702
3703 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3704 as function.
3705 (skip_to_space): Rename from skip_to_space_const.
3706 * common/common-utils.c (skip_to_space): New function.
3707 (skip_to_space): Rename from skip_to_space_const.
3708 * cli/cli-utils.h (get_number): Rename from get_number_const.
3709 (extract_arg): Rename from extract_arg_const.
3710 * cli/cli-utils.c (get_number): Rename from get_number_const.
3711 (extract_arg): Rename from extract_arg_const.
3712 (number_or_range_parser::get_number): Use ::get_number.
3713 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3714 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3715 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3716 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3717 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3718 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3719 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3720 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3721
7d221d74
TT
37222017-09-11 Tom Tromey <tom@tromey.com>
3723
3724 * python/python.c (do_start_initialization): Use
3725 py-event-types.def to initialize types.
3726 Define all object type structures.
3727 * python/python-internal.h: Don't declare event initialization
3728 functions.
3729 * python/py-threadevent.c (thread_event_object_type): Don't
3730 define.
3731 * python/py-stopevent.c (stop_event_object_type): Don't define.
3732 * python/py-signalevent.c (signal_event_object_type): Don't
3733 declare or define.
3734 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3735 (clear_objfiles_event_object_type): Don't declare or define.
3736 * python/py-infevents.c (inferior_call_pre_event_object_type)
3737 (inferior_call_post_event_object_type)
3738 (register_changed_event_object_type)
3739 (memory_changed_event_object_type): Don't declare or define.
3740 * python/py-inferior.c (new_thread_event_object_type)
3741 (new_inferior_event_object_type)
3742 (inferior_deleted_event_object_type): Don't declare or define.
3743 * python/py-exitedevent.c (exited_event_object_type): Don't
3744 declare or define.
3745 * python/py-evts.c (gdbpy_initialize_py_events): Use
3746 py-all-events.def.
3747 * python/py-events.h (thread_event_object_type): Don't declare.
3748 (events_object): Use py-all-events.def.
3749 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3750 py-event-types.def.
3751 * python/py-event-types.def: New file.
3752 * python/py-continueevent.c (create_continue_event_object): Don't
3753 declare or define.
3754 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3755 declare or define.
3756 * python/py-all-events.def: New file.
3757
35c61a1d
TT
37582017-09-11 Tom Tromey <tom@tromey.com>
3759
3760 * python/py-threadevent.c (create_thread_event_object): Return
3761 gdbpy_ref.
3762 * python/py-stopevent.h (create_stop_event_object)
3763 (create_breakpoint_event_object, create_signal_event_object):
3764 Update.
3765 * python/py-stopevent.c (create_stop_event_object): Return
3766 gdbpy_ref.
3767 (emit_stop_event): Update.
3768 * python/py-signalevent.c (create_signal_event_object): Return
3769 gdbpy_ref.
3770 * python/py-infevents.c (create_inferior_call_event_object):
3771 Update.
3772 * python/py-event.h (create_event_object)
3773 (create_thread_event_object): Update.
3774 * python/py-event.c (create_event_object): Return gdbpy_ref.
3775 * python/py-continueevent.c: Return gdbpy_ref.
3776 * python/py-bpevent.c (create_breakpoint_event_object): Return
3777 gdbpy_ref.
3778
7c96f8c1
TT
37792017-09-11 Tom Tromey <tom@tromey.com>
3780
3781 PR python/15622:
3782 * NEWS: Add entry.
3783 * python/python.c (do_start_initialization): Initialize new event
3784 types.
3785 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3786 (gdbpy_initialize_inferior_deleted_event)
3787 (gdbpy_initialize_new_thread_event): Declare.
3788 * python/py-threadevent.c (create_thread_event_object): Add option
3789 "thread" parameter.
3790 * python/py-inferior.c (new_thread_event_object_type)
3791 (new_inferior_event_object_type)
3792 (inferior_deleted_event_object_type): Declare.
3793 (python_new_inferior, python_inferior_deleted): New functions.
3794 (add_thread_object): Emit new_thread event.
3795 (gdbpy_initialize_inferior): Attach new functions to corresponding
3796 observers.
3797 (new_thread, new_inferior, inferior_deleted): Define new event
3798 types.
3799 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3800 registries.
3801 * python/py-events.h (events_object) <new_inferior,
3802 inferior_deleted, new_thread>: New fields.
3803 * python/py-event.h (create_thread_event_breakpoint): Add optional
3804 "thread" parameter.
3805
72542b8e
AB
38062017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3807
3808 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3809 check current_ui instead.
3810 (internal_vproblem): Likewise.
3811
0d64823e
SM
38122017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3813
3814 * thread.c (print_thread_info_1): Remove unnecessary calls to
3815 uiout->is_mi_like_p.
3816
eb1e02fd
TT
38172017-09-09 Tom Tromey <tom@tromey.com>
3818
3819 * namespace.h (add_using_directive): Update.
3820 * namespace.c (add_using_directive): Change type of excludes to
3821 std::vector.
3822 * dwarf2read.c (read_import_statement): Use std::vector.
3823 (read_namespace): Update.
3824 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3825
0fc21fd8
TT
38262017-09-09 Tom Tromey <tom@tromey.com>
3827
3828 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3829
49663d05
TT
38302017-09-09 Tom Tromey <tom@tromey.com>
3831
3832 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3833
0b868b60
TT
38342017-09-09 Tom Tromey <tom@tromey.com>
3835
3836 * stack.c (func_command): Use gdb::def_vector.
3837
c0470d48
TT
38382017-09-09 Tom Tromey <tom@tromey.com>
3839
3840 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3841 ui_out_emit_list, ui_out_emit_tuple.
3842 (mi_cmd_var_update): Likewise.
3843
ca5909c7
TT
38442017-09-09 Tom Tromey <tom@tromey.com>
3845
3846 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3847 ui_out_redirect_pop.
3848 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3849 ui_out_redirect_pop.
3850 * utils.c (do_ui_out_redirect_pop)
3851 (make_cleanup_ui_out_redirect_pop): Remove.
3852 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3853 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3854 * ui-out.h (ui_out_redirect_pop): New class.
3855
e6a2252a
TT
38562017-09-09 Tom Tromey <tom@tromey.com>
3857
3858 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3859 (list_available_thread_groups, mi_cmd_list_thread_groups)
3860 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3861 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3862 Likewise.
3863
393702cd
TT
38642017-09-09 Tom Tromey <tom@tromey.com>
3865
3866 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3867 ui_out_emit_tuple.
3868
76f9c9cf
TT
38692017-09-09 Tom Tromey <tom@tromey.com>
3870
3871 * target.c (flash_erase_command): Use ui_out_emit_tuple.
3872 * stack.c (print_frame): Use ui_out_emit_tuple.
3873 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
3874 (info_spu_mailbox_command, info_spu_dma_command)
3875 (info_spu_proxydma_command): Likewise.
3876 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
3877 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
3878 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
3879 ui_out_emit_tuple.
3880 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
3881
dc9fe180
TT
38822017-09-09 Tom Tromey <tom@tromey.com>
3883
3884 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
3885 (class ui_out_emit_table): Update comment.
3886 * ui-out.c (do_cleanup_table_end)
3887 (make_cleanup_ui_out_table_begin_end): Remove.
3888 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
3889 (info_spu_dma_cmdlist): Likewise.
3890 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
3891 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
3892 ui_out_emit_table.
3893
f8cc3da6
TT
38942017-09-09 Tom Tromey <tom@tromey.com>
3895
3896 * thread.c (print_thread_info_1): Use ui_out_emit_table,
3897 ui_out_emit_list, gdb::optional.
3898
481695ed
JB
38992017-09-09 John Baldwin <jhb@FreeBSD.org>
3900
3901 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
3902 prototype.
3903 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
3904 prototype.
3905 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
3906 prototype.
3907 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
3908 * ada-exp.y: Remove _initialize_ada_exp prototype.
3909 * ada-lang.c: Remove _initialize_ada_language prototype.
3910 * ada-tasks.c: Remove _initialize_tasks prototype.
3911 * addrmap.c: Remove _initialize_addrmap prototype.
3912 * agent.c: Remove _initialize_agent prototype.
3913 * aix-thread.c: Remove _initialize_aix_thread prototype.
3914 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
3915 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
3916 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
3917 prototype.
3918 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
3919 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
3920 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
3921 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
3922 prototype.
3923 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
3924 prototype.
3925 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
3926 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
3927 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
3928 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
3929 prototype.
3930 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
3931 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
3932 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
3933 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
3934 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3935 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
3936 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
3937 prototype.
3938 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
3939 prototype.
3940 * annotate.c: Remove _initialize_annotate prototype.
3941 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
3942 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
3943 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
3944 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
3945 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
3946 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
3947 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
3948 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
3949 prototype.
3950 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
3951 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
3952 * auto-load.c: Remove _initialize_auto_load prototype.
3953 * auxv.c: Remove _initialize_auxv prototype.
3954 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
3955 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
3956 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
3957 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
3958 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
3959 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
3960 prototype.
3961 * break-catch-throw.c: Remove _initialize_break_catch_throw
3962 prototype.
3963 * breakpoint.c: Remove _initialize_breakpoint prototype.
3964 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
3965 * btrace.c: Remove _initialize_btrace prototype.
3966 * charset.c: Remove _initialize_charset prototype.
3967 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
3968 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
3969 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
3970 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
3971 * cli/cli-script.c: Remove _initialize_cli_script prototype.
3972 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
3973 * coffread.c: Remove _initialize_coffread prototype.
3974 * compile/compile.c: Remove _initialize_compile prototype.
3975 * complaints.c: Remove _initialize_complaints prototype.
3976 * completer.c: Remove _initialize_completer prototype.
3977 * copying.awk: Remove _initialize_copying prototype.
3978 * copying.c: Regenerate.
3979 * core-regset.c: Remove _initialize_core_regset prototype.
3980 * corefile.c: Remove _initialize_core prototype.
3981 * corelow.c: Remove _initialize_corelow prototype.
3982 * cp-abi.c: Remove _initialize_cp_abi prototype.
3983 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
3984 * cp-support.c: Remove _initialize_cp_support prototype.
3985 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
3986 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
3987 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
3988 * ctf.c: Remove _initialize_ctf prototype.
3989 * d-lang.c: Remove _initialize_d_language prototype.
3990 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
3991 prototype.
3992 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
3993 * dbxread.c: Remove _initialize_dbxread prototype.
3994 * dcache.c: Remove _initialize_dcache prototype.
3995 * demangle.c: Remove _initialize_demangler prototype.
3996 * disasm-selftests.c: Remove _initialize_disasm_selftests
3997 prototype.
3998 * disasm.c: Remove _initialize_disasm prototype.
3999 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4000 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4001 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4002 prototype.
4003 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4004 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4005 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4006 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4007 * elfread.c: Remove _initialize_elfread prototype.
4008 * exec.c: Remove _initialize_exec prototype.
4009 * extension.c: Remove _initialize_extension prototype.
4010 * f-lang.c: Remove _initialize_f_language prototype.
4011 * f-valprint.c: Remove _initialize_f_valprint prototype.
4012 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4013 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4014 * filesystem.c: Remove _initialize_filesystem prototype.
4015 * findcmd.c: Remove _initialize_mem_search prototype.
4016 * fork-child.c: Remove _initialize_fork_child prototype.
4017 * frame-base.c: Remove _initialize_frame_base prototype.
4018 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4019 * frame.c: Remove _initialize_frame prototype.
4020 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4021 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4022 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4023 * gcore.c: Remove _initialize_gcore prototype.
4024 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4025 * gdbarch.c: Regenerate.
4026 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4027 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4028 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4029 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4030 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4031 * go-lang.c: Remove _initialize_go_language prototype.
4032 * go32-nat.c: Remove _initialize_go32_nat prototype.
4033 * guile/guile.c: Remove _initialize_guile prototype.
4034 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4035 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4036 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4037 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4038 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4039 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4040 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4041 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4042 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4043 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4044 prototype.
4045 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4046 prototype.
4047 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4048 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4049 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4050 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4051 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4052 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4053 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4054 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4055 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4056 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4057 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4058 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4059 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4060 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4061 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4062 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4063 prototype.
4064 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4065 prototype.
4066 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4067 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4068 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4069 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4070 * infcall.c: Remove _initialize_infcall prototype.
4071 * infcmd.c: Remove _initialize_infcmd prototype.
4072 * inferior.c: Remove _initialize_inferiors prototype.
4073 * inflow.c: Remove _initialize_inflow prototype.
4074 * infrun.c: Remove _initialize_infrun prototype.
4075 * interps.c: Remove _initialize_interpreter prototype.
4076 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4077 * jit.c: Remove _initialize_jit prototype.
4078 * language.c: Remove _initialize_language prototype.
4079 * linux-fork.c: Remove _initialize_linux_fork prototype.
4080 * linux-nat.c: Remove _initialize_linux_nat prototype.
4081 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4082 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4083 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4084 * m2-lang.c: Remove _initialize_m2_language prototype.
4085 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4086 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4087 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4088 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4089 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4090 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4091 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4092 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4093 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4094 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4095 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4096 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4097 * machoread.c: Remove _initialize_machoread prototype.
4098 * macrocmd.c: Remove _initialize_macrocmd prototype.
4099 * macroscope.c: Remove _initialize_macroscope prototype.
4100 * maint.c: Remove _initialize_maint_cmds prototype.
4101 * mdebugread.c: Remove _initialize_mdebugread prototype.
4102 * memattr.c: Remove _initialize_mem prototype.
4103 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4104 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4105 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4106 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4107 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4108 * microblaze-linux-tdep.c: Remove
4109 _initialize_microblaze_linux_tdep prototype.
4110 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4111 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4112 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4113 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4114 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4115 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4116 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4117 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4118 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4119 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4120 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4121 prototype.
4122 * mipsread.c: Remove _initialize_mipsread prototype.
4123 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4124 prototype.
4125 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4126 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4127 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4128 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4129 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4130 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4131 prototype.
4132 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4133 * nto-procfs.c: Remove _initialize_procfs prototype.
4134 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4135 * objc-lang.c: Remove _initialize_objc_language prototype.
4136 * objfiles.c: Remove _initialize_objfiles prototype.
4137 * observer.c: Remove observer_test_first_notification_function,
4138 observer_test_second_notification_function,
4139 observer_test_third_notification_function, and
4140 _initialize_observer prototypes.
4141 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4142 * osabi.c: Remove _initialize_gdb_osabi prototype.
4143 * osdata.c: Remove _initialize_osdata prototype.
4144 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4145 * parse.c: Remove _initialize_parse prototype.
4146 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4147 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4148 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4149 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4150 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4151 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4152 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4153 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4154 * printcmd.c: Remove _initialize_printcmd prototype.
4155 * probe.c: Remove _initialize_probe prototype.
4156 * proc-api.c: Remove _initialize_proc_api prototype.
4157 * proc-events.c: Remove _initialize_proc_events prototype.
4158 * proc-service.c: Remove _initialize_proc_service prototype.
4159 * procfs.c: Remove _initialize_procfs prototype.
4160 * psymtab.c: Remove _initialize_psymtab prototype.
4161 * python/python.c: Remove _initialize_python prototype.
4162 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4163 * record-btrace.c: Remove _initialize_record_btrace prototype.
4164 * record-full.c: Remove _initialize_record_full prototype.
4165 * record.c: Remove _initialize_record prototype.
4166 * regcache.c: Remove _initialize_regcache prototype.
4167 * reggroups.c: Remove _initialize_reggroup prototype.
4168 * remote-notif.c: Remove _initialize_notif prototype.
4169 * remote-sim.c: Remove _initialize_remote_sim prototype.
4170 * remote.c: Remove _initialize_remote prototype.
4171 * reverse.c: Remove _initialize_reverse prototype.
4172 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4173 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4174 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4175 prototype.
4176 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4177 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4178 * rust-exp.y: Remove _initialize_rust_exp prototype.
4179 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4180 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4181 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4182 * score-tdep.c: Remove _initialize_score_tdep prototype.
4183 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4184 prototype.
4185 * ser-go32.c: Remove _initialize_ser_dos prototype.
4186 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4187 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4188 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4189 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4190 * serial.c: Remove _initialize_serial prototype.
4191 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4192 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4193 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4194 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4195 * skip.c: Remove _initialize_step_skip prototype.
4196 * sol-thread.c: Remove _initialize_sol_thread prototype.
4197 * solib-aix.c: Remove _initialize_solib_aix prototype.
4198 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4199 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4200 * solib-frv.c: Remove _initialize_frv_solib prototype.
4201 * solib-spu.c: Remove _initialize_spu_solib prototype.
4202 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4203 * solib-target.c: Remove _initialize_solib_target prototype.
4204 * solib.c: Remove _initialize_solib prototype.
4205 * source.c: Remove _initialize_source prototype.
4206 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4207 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4208 prototype.
4209 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4210 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4211 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4212 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4213 prototype.
4214 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4215 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4216 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4217 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4218 prototype.
4219 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4220 prototype.
4221 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4222 prototype.
4223 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4224 prototype.
4225 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4226 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4227 prototype.
4228 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4229 prototype.
4230 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4231 prototype.
4232 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4233 prototype.
4234 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4235 prototype.
4236 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4237 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4238 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4239 * stabsread.c: Remove _initialize_stabsread prototype.
4240 * stack.c: Remove _initialize_stack prototype.
4241 * stap-probe.c: Remove _initialize_stap_probe prototype.
4242 * std-regs.c: Remove _initialize_frame_reg prototype.
4243 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4244 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4245 * symfile.c: Remove _initialize_symfile prototype.
4246 * symmisc.c: Remove _initialize_symmisc prototype.
4247 * symtab.c: Remove _initialize_symtab prototype.
4248 * target-dcache.c: Remove _initialize_target_dcache prototype.
4249 * target-descriptions.c: Remove _initialize_target_descriptions
4250 prototype.
4251 * thread.c: Remove _initialize_thread prototype.
4252 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4253 prototype.
4254 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4255 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4256 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4257 prototype.
4258 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4259 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4260 * tracefile.c: Remove _initialize_tracefile prototype.
4261 * tracepoint.c: Remove _initialize_tracepoint prototype.
4262 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4263 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4264 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4265 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4266 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4267 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4268 * tui/tui.c: Remove _initialize_tui prototype.
4269 * typeprint.c: Remove _initialize_typeprint prototype.
4270 * user-regs.c: Remove _initialize_user_regs prototype.
4271 * utils.c: Remove _initialize_utils prototype.
4272 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4273 * valarith.c: Remove _initialize_valarith prototype.
4274 * valops.c: Remove _initialize_valops prototype.
4275 * valprint.c: Remove _initialize_valprint prototype.
4276 * value.c: Remove _initialize_values prototype.
4277 * varobj.c: Remove _initialize_varobj prototype.
4278 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4279 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4280 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4281 * windows-nat.c: Remove _initialize_windows_nat,
4282 _initialize_check_for_gdb_ini, and _initialize_loadable
4283 prototypes.
4284 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4285 * xcoffread.c: Remove _initialize_xcoffread prototype.
4286 * xml-support.c: Remove _initialize_xml_support prototype.
4287 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4288 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4289 prototype.
4290 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4291 prototype.
4292 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4293
a611b5cb
KS
42942017-09-08 Keith Seitz <keiths@redhat.com>
4295
4296 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4297 field.
4298
469412dd
CW
42992017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4300
4301 * f-valprint.c (f_val_print): Remove check for one byte
4302 sized integers. Remove printing of character type.
4303
a5ad232b
FP
43042017-09-08 Frank Penczek <frank.penczek@intel.com>
4305 Christoph Weinmann <christoph.t.weinmann@intel.com>
4306 Bernhard Heckel <bernhard.heckel@intel.com>
4307
4308 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4309 to maintain proper indentation when printing pointers/refs.
4310
e5014227
JB
43112017-09-07 Joel Brobecker <brobecker@adacore.com>
4312
4313 GDB 8.0.1 released.
4314
63c99141
JB
43152017-09-07 Joel Brobecker <brobecker@adacore.com>
4316
4317 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4318
69c1e056
TT
43192017-09-05 Tom Tromey <tom@tromey.com>
4320
4321 * parse.c (funcall_chain): Now a std::vector.
4322 (start_arglist, end_arglist): Simplify.
4323 (free_funcalls): Remove.
4324 (parse_exp_in_context_1): Remove cleanup.
4325
fef704bf
TT
43262017-09-05 Tom Tromey <tom@tromey.com>
4327
4328 * go-exp.y (go_parse): Don't create a cleanup.
4329
5613c585
TT
43302017-09-05 Tom Tromey <tom@tromey.com>
4331
4332 * d-exp.y (PrimaryExpression): Use std::string.
4333 (d_parse): Don't create a cleanup.
4334
eae49211
TT
43352017-09-05 Tom Tromey <tom@tromey.com>
4336
4337 * utils.c (do_clear_parser_state): Remove.
4338 (make_cleanup_clear_parser_state): Remove.
4339 * p-exp.y (pascal_parse): Use scoped_restore.
4340 * m2-exp.y (m2_parse): Use scoped_restore.
4341 * f-exp.y (f_parse): Use scoped_restore.
4342 * d-exp.y (d_parse): Use scoped_restore.
4343 * c-exp.y (c_parse): Use scoped_restore.
4344 * ada-exp.y (ada_parse): Use scoped_restore.
4345 * utils.h (make_cleanup_clear_parser_state): Remove.
4346
73b9be8b
KS
43472017-09-06 Keith Seitz <keiths@redhat.com>
4348
4349 * dwarf2read.c (dw2_linkage_name_attr): New function.
4350 (dw2_linkage_name): New function.
4351 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4352 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4353 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4354
a102602b
KR
43552017-09-06 Kamil Rytarowski <n54@gmx.com>
4356
4357 * config/djgpp/djconfig.sh: Correct shell portability issue.
4358
28ad437d
KR
43592017-09-06 Kamil Rytarowski <n54@gmx.com>
4360
4361 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4362
351787dd
JB
43632017-09-06 John Baldwin <jhb@FreeBSD.org>
4364
4365 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4366 * NEWS: Mention new FreeBSD/mips native configuration.
4367 * configure.host: Add aarch64*-*-freebsd*.
4368 * configure.nat: Likewise.
4369 * aarch64-fbsd-nat.c: New file.
4370
c0f84956
JB
43712017-09-06 John Baldwin <jhb@FreeBSD.org>
4372
4373 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4374 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4375 * NEWS: Mention new FreeBSD/aarch64 target.
4376 * configure.tgt: Add aarch64*-*-freebsd*.
4377 * aarch64-fbsd-tdep.c: New file.
4378 * aarch64-fbsd-tdep.h: New file.
4379
7610297a
KR
43802017-09-06 Kamil Rytarowski <n54@gmx.com>
4381
4382 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4383
fbd1b771
JK
43842017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4385
4386 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4387 of TLS symbols.
4388
5ca79eae
PW
43892017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4390
4391 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4392 call.
4393
bf93d7ba
SM
43942017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4395
4396 * infrun.c (follow_exec): Call add_thread after
4397 target_find_description.
4398
1bb7c059
SM
43992017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4400
4401 * infrun.c (handle_inferior_event_1): When exec'ing, read
4402 stop_pc after follow_exec.
4403
fc809827
SM
44042017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4405
4406 * remote.c (process_g_packet): Update error message.
4407
d2fcdd85
YQ
44082017-09-05 Yao Qi <yao.qi@linaro.org>
4409
4410 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4411 targets.
4412
e69570ee
PA
44132017-09-05 Pedro Alves <palves@redhat.com>
4414
4415 * eval.c (eval_call, evaluate_funcall): New functions, factored
4416 out from ...
4417 (evaluate_subexp_standard): ... this.
4418
22916b07
YQ
44192017-09-05 Yao Qi <yao.qi@linaro.org>
4420
4421 * amd64-tdep.c (amd64_target_description): Create target
4422 descriptions.
4423 (_initialize_amd64_tdep): Don't call functions
4424 initialize_tdesc_amd64_*. Add self tests.
4425 * arch/amd64.c (amd64_create_target_description): Add parameter
4426 is_linux. Call set_tdesc_osabi if is_linux is true.
4427 * arch/amd64.h (amd64_create_target_description): Update the
4428 declaration.
4429 * arch/i386.c (i386_create_target_description): Add parameter
4430 is_linux. Call set_tdesc_osabi if is_linux is true.
4431 * arch/i386.h (i386_create_target_description): Update
4432 declaration.
4433 * configure.tgt: Add i386.o to gdb_target_obs.
4434 * features/Makefile (XMLTOC): Remove i386/*.xml.
4435 * features/i386/amd64-avx-avx512.c: Remove.
4436 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4437 * features/i386/amd64-avx-mpx.c: Remove.
4438 * features/i386/amd64-avx.c: Remove.
4439 * features/i386/amd64-mpx.c: Remove.
4440 * features/i386/amd64.c: Remove.
4441 * features/i386/i386-avx-avx512.c: Remove.
4442 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4443 * features/i386/i386-avx-mpx.c: Remove.
4444 * features/i386/i386-avx.c: Remove.
4445 * features/i386/i386-mmx.c: Remove.
4446 * features/i386/i386-mpx.c: Remove.
4447 * features/i386/i386.c: Remove.
4448 * i386-tdep.c: Don't include features/i386/i386*.c., include
4449 target-descriptions.h and arch/i386.h.
4450 (i386_target_description): Create target descriptions.
4451 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4452 functions. Do self tests.
4453
0854b7b1
YQ
44542017-09-05 Yao Qi <yao.qi@linaro.org>
4455
4456 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4457 * features/i386/amd64-avx-avx512-linux.c: Removed.
4458 * features/i386/amd64-avx-linux.c: Removed.
4459 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4460 * features/i386/amd64-avx-mpx-linux.c: Removed.
4461 * features/i386/amd64-linux.c: Removed.
4462 * features/i386/amd64-mpx-linux.c: Removed.
4463 * features/i386/x32-avx-avx512-linux.c: Removed.
4464 * features/i386/x32-avx-linux.c: Removed.
4465 * features/i386/x32-linux.c: Removed.
4466
b4570e4b
YQ
44672017-09-05 Yao Qi <yao.qi@linaro.org>
4468
4469 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4470 features/i386/*.c.
4471 (amd64_linux_read_description): Call
4472 amd64_create_target_description.
4473 * arch/amd64.c: New file.
4474 * arch/amd64.h: New file.
4475 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4476 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4477
6c73f67f
YQ
44782017-09-05 Yao Qi <yao.qi@linaro.org>
4479
4480 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4481 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4482 (amd64_linux_read_description): Create target descriptions.
4483 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4484 functions. Add unit tests.
4485 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4486 x32-core.xml.
4487 * features/i386/64bit-avx.c: Generated.
4488 * features/i386/64bit-avx512.c: Generated.
4489 * features/i386/64bit-core.c: Generated.
4490 * features/i386/64bit-linux.c: Generated.
4491 * features/i386/64bit-mpx.c: Generated.
4492 * features/i386/64bit-pkeys.c: Generated.
4493 * features/i386/64bit-segments.c: Generated.
4494 * features/i386/64bit-sse.c: Generated.
4495 * features/i386/x32-core.c: Generated.
4496 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4497 c files for amd64-linux and x32-linux.
4498
9d3d478b
YQ
44992017-09-05 Yao Qi <yao.qi@linaro.org>
4500
4501 * amd64-linux-tdep.c (amd64_linux_read_description): New
4502 function.
4503 (amd64_linux_core_read_description): Call
4504 amd64_linux_read_description.
4505 (amd64_linux_init_abi): Likewise.
4506 (amd64_x32_linux_init_abi): Likewise.
4507 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4508 * x86-linux-nat.c (x86_linux_read_description): Call
4509 amd64_linux_read_description.
4510
b9f1d50f
YQ
45112017-09-05 Yao Qi <yao.qi@linaro.org>
4512
4513 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4514 comments.
4515
188c9e6d
YQ
45162017-09-05 Yao Qi <yao.qi@linaro.org>
4517
4518 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4519 * features/i386/i386-avx-avx512-linux.c: Remove.
4520 * features/i386/i386-avx-linux.c: Remove.
4521 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4522 * features/i386/i386-avx-mpx-linux.c: Remove.
4523 * features/i386/i386-linux.c: Remove.
4524 * features/i386/i386-mmx-linux.c: Remove.
4525 * features/i386/i386-mpx-linux.c: Remove.
4526
5f035c07
YQ
45272017-09-05 Yao Qi <yao.qi@linaro.org>
4528
4529 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4530 (SFILES): Add arch/i386.c.
4531 (HFILES_NO_SRCDIR): Add arch/i386.h.
4532 * arch/i386.c: New file.
4533 * arch/i386.h: New file.
4534 * arch/tdesc.h (allocate_target_description): Declare.
4535 (set_tdesc_architecture): Declare.
4536 (set_tdesc_osabi): Declare.
4537 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4538 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4539 include arch/i386.h.
4540 (i386_linux_read_description): Remove code and call
4541 i386_create_target_description.
4542 (set_tdesc_architecture): New function.
4543 (set_tdesc_osabi): New function.
4544 * target-descriptions.h (allocate_target_description): Remove.
4545
0abe8a89
YQ
45462017-09-05 Yao Qi <yao.qi@linaro.org>
4547
4548 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4549 * target-descriptions.c (tdesc_create_feature): Likewise, and
4550 adjust code.
4551 * features/i386/32bit-avx.c: Re-generated.
4552 * features/i386/32bit-avx512.c: Re-generated.
4553 * features/i386/32bit-core.c: Re-generated.
4554 * features/i386/32bit-linux.c: Re-generated.
4555 * features/i386/32bit-mpx.c: Re-generated.
4556 * features/i386/32bit-pkeys.c: Re-generated.
4557 * features/i386/32bit-sse.c: Re-generated.
4558
0a188386
YQ
45592017-09-05 Yao Qi <yao.qi@linaro.org>
4560
4561 * regformats/regdef.h (struct reg): Override operator == and !=.
4562
f49ff000
YQ
45632017-09-05 Yao Qi <yao.qi@linaro.org>
4564
4565 * arch/tdesc.h: New file.
4566 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4567 * target-descriptions.c: Update comments.
4568 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4569 declarations.
4570 * features/i386/32bit-avx.c: Re-generated.
4571 * features/i386/32bit-avx512.c: Re-generated.
4572 * features/i386/32bit-core.c: Re-generated.
4573 * features/i386/32bit-linux.c: Re-generated.
4574 * features/i386/32bit-mpx.c: Re-generated.
4575 * features/i386/32bit-pkeys.c: Re-generated.
4576 * features/i386/32bit-sse.c: Re-generated.
4577
f7000548
YQ
45782017-09-05 Yao Qi <yao.qi@linaro.org>
4579
4580 * regformats/regdat.sh: Update generated code.
4581
c9a5e2a5
YQ
45822017-09-05 Yao Qi <yao.qi@linaro.org>
4583
4584 * regformats/regdat.sh: Adjust code order.
4585
d6b687ac
SM
45862017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4587
4588 * expprint.c (dump_subexp_body_standard): Use constant format
4589 string in fprintf_filtered call.
4590
a379bfd0
JB
45912017-09-04 John Baldwin <jhb@FreeBSD.org>
4592
4593 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4594 NetBSD/i386.
4595 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4596
f7efc967
JB
45972017-09-04 John Baldwin <jhb@FreeBSD.org>
4598
4599 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4600
c49fbc6c
JB
46012017-09-04 John Baldwin <jhb@FreeBSD.org>
4602
4603 * bsd-kvm.o: Define _KMEMUSER.
4604 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4605 * configure: Regenerate.
4606
26562e73
JB
46072017-09-04 John Baldwin <jhb@FreeBSD.org>
4608
4609 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4610 * i386-fbsd-nat.c: Likewise.
4611
31cf1487
JB
46122017-09-04 John Baldwin <jhb@FreeBSD.org>
4613
4614 * unittests/array-view-selftests.c: Add include of <array>.
4615
5b9f8a7c
JB
46162017-09-04 John Baldwin <jhb@FreeBSD.org>
4617
4618 * spu-tdep.c (flush_ea_cache): Add missing argument to
4619 call_function_by_hand.
4620
d69cf9b2
PA
46212017-09-04 Pedro Alves <palves@redhat.com>
4622
4623 * NEWS (Safer support for debugging with no debug info): New.
4624
3693fdb3
PA
46252017-09-04 Pedro Alves <palves@redhat.com>
4626
4627 * c-exp.y (function_method, function_method_void): Add current
4628 instance flags to TYPE_INSTANCE.
4629 * dwarf2read.c (check_modifier): New.
4630 (compute_delayed_physnames): Assert that only C++ adds delayed
4631 physnames. Mark fn_fields as const/volatile depending on
4632 physname.
4633 * eval.c (make_params): New type_instance_flags parameter. Use
4634 it as the new type's instance flags.
4635 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4636 flags element and pass it to make_params.
4637 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4638 instance flags element.
4639 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4640 * gdbtypes.h: Include "enum-flags.h".
4641 (type_instance_flags): New enum-flags type.
4642 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4643 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4644 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4645 (follow_type_instance_flags): New function.
4646 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4647 * parser-defs.h (follow_type_instance_flags): Declare.
4648 * valops.c (value_struct_elt_for_reference): const/volatile must
4649 match too.
4650
e68cb8e0
PA
46512017-09-04 Pedro Alves <palves@redhat.com>
4652
4653 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4654 function/method scopes; lookup the nested name as a function local
4655 static variable.
4656
858be34c
PA
46572017-09-04 Pedro Alves <palves@redhat.com>
4658
4659 (%type <voidval>): Add function_method.
4660 * c-exp.y (exp): New production for calls with no arguments.
4661 (function_method, function_method_void_or_typelist): New
4662 productions.
4663 (exp): New production for "method()::static_var".
4664 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4665 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4666 Handle OP_FUNC_STATIC_VAR.
4667 * parse.c (operator_length_standard):
4668 Handle OP_FUNC_STATIC_VAR.
4669
dd5901a6
PA
46702017-09-04 Pedro Alves <palves@redhat.com>
4671
4672 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4673 handling.
4674 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4675 Ditto.
4676 * parse.c (operator_length_standard, operator_check_standard):
4677 Ditto.
4678 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4679
46a4882b
PA
46802017-09-04 Pedro Alves <palves@redhat.com>
4681
4682 * ax-gdb.c: Include "typeprint.h".
4683 (gen_expr_for_cast): New function.
4684 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4685 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4686 type is unknown.
4687 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4688 nodebug_data_symbol.
4689 * eval.c: Include "typeprint.h".
4690 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4691 Error out if symbol has unknown type.
4692 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4693 evaluate_subexp_for_cast.
4694 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4695 OP_VAR_MSYM_VALUE.
4696 (evaluate_subexp_for_cast): New function.
4697 * gdbtypes.c (init_nodebug_var_type): New function.
4698 (objfile_type): Use it to initialize types of variables with no
4699 debug info.
4700 * typeprint.c (error_unknown_type): New.
4701 * typeprint.h (error_unknown_type): New declaration.
4702 * compile/compile-c-types.c (convert_type_basic): Handle
4703 TYPE_CODE_ERROR; warn and fallback to int for variables with
4704 unknown type.
4705
fe13dfec
PA
47062017-09-04 Pedro Alves <palves@redhat.com>
4707
4708 * eval.c (evaluate_var_value): New function, factored out from ...
4709 (evaluate_subexp_standard): ... here.
4710
d008ee21
PA
47112017-09-04 Pedro Alves <palves@redhat.com>
4712
4713 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4714 Remove useless assignments to 'op'.
4715
827d0c51
PA
47162017-09-04 Pedro Alves <palves@redhat.com>
4717
4718 * eval.c (eval_skip_value): New function.
4719 (evaluate_subexp_standard): Use it.
4720
2c5a2be1
PA
47212017-09-04 Pedro Alves <palves@redhat.com>
4722
4723 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4724 function name from symbol/minsym and pass it to
4725 error_call_unknown_return_type.
4726
74ea4be4
PA
47272017-09-04 Pedro Alves <palves@redhat.com>
4728
4729 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4730 * ax-gdb.c (gen_msym_var_ref): New function.
4731 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4732 * eval.c (evaluate_var_msym_value): New function.
4733 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4734 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4735 to call_function_by_hand.
4736 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4737 Handle OP_VAR_MSYM_VALUE.
4738 (union exp_element) <msymbol>: New field.
4739 * minsyms.h (struct type): Forward declare.
4740 (find_minsym_type_and_address): Declare.
4741 * parse.c (write_exp_elt_msym): New function.
4742 (write_exp_msymbol): Delete, refactored as ...
4743 (find_minsym_type_and_address): ... this new function.
4744 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4745 (operator_length_standard, operator_check_standard): Handle
4746 OP_VAR_MSYM_VALUE.
4747 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4748
7022349d
PA
47492017-09-04 Pedro Alves <palves@redhat.com>
4750
4751 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4752 TYPE_GNU_IFUNC specially here. Throw error if return type is
4753 unknown.
4754 * ada-typeprint.c (print_func_type): Handle functions with unknown
4755 return type.
4756 * c-typeprint.c (c_type_print_base): Handle functions and methods
4757 with unknown return type.
4758 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4759 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4760 * compile/compile-c-types.c: Include "objfiles.h".
4761 (convert_func): For functions with unknown return type, warn and
4762 default to int.
4763 * compile/compile-object-run.c (compile_object_run): Adjust call
4764 to call_function_by_hand_dummy.
4765 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4766 call_function_by_hand.
4767 * eval.c (evaluate_subexp_standard): Adjust calls to
4768 call_function_by_hand. Handle functions and methods with unknown
4769 return type. Pass expect_type to call_function_by_hand.
4770 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4771 return type.
4772 * gcore.c (call_target_sbrk): Adjust call to
4773 call_function_by_hand.
4774 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4775 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4776 an integer address type instead of nodebug.
4777 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4778 call_function_by_hand.
4779 * infcall.c (error_call_unknown_return_type): New function.
4780 (call_function_by_hand): New "default_return_type" parameter.
4781 Pass it down.
4782 (call_function_by_hand_dummy): New "default_return_type"
4783 parameter. Use it instead of defaulting to int. If there's no
4784 default and the return type is unknown, throw an error. If
4785 there's a default return type, and the called function has no
4786 debug info, then assume the function is prototyped.
4787 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4788 New "default_return_type" parameter.
4789 (error_call_unknown_return_type): New declaration.
4790 * linux-fork.c (call_lseek): Cast return type of lseek.
4791 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4792 call_function_by_hand.
4793 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4794 calls to call_function_by_hand.
4795 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4796 return type.
4797 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4798 (value_nsstring, print_object_command): Adjust calls to
4799 call_function_by_hand.
4800 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4801 functions with unknown return type.
4802 (pascal_type_print_func_varspec_suffix): New function.
4803 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4804 TYPE_CODE_METHOD>: Use it.
4805 * python/py-value.c (valpy_call): Adjust call to
4806 call_function_by_hand.
4807 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4808 call_function_by_hand.
4809 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4810 call_function_by_hand.
4811 * valops.c (value_allocate_space_in_inferior): Adjust call to
4812 call_function_by_hand.
4813 * typeprint.c (type_print_unknown_return_type): New function.
4814 * typeprint.h (type_print_unknown_return_type): New declaration.
4815
54990598
PA
48162017-09-04 Pedro Alves <palves@redhat.com>
4817
4818 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4819 types with more than one parameter as prototyped.
4820
9a24775b
PA
48212017-09-04 Pedro Alves <palves@redhat.com>
4822
4823 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4824 (disassemble_command): Use gdb_disassembly_flags instead of bare
4825 int.
4826 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4827 (dump_insns, do_mixed_source_and_assembly_deprecated)
4828 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4829 Use gdb_disassembly_flags instead of bare int.
4830 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4831 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4832 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4833 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4834 (enum gdb_disassembly_flag): ... values of this new enumeration.
4835 (gdb_disassembly_flags): Define.
4836 (gdb_disassembly)
4837 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4838 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4839 gdb_disassembly_flags instead of bare int.
4840 * record-btrace.c (btrace_insn_history)
4841 (record_btrace_insn_history, record_btrace_insn_history_range)
4842 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4843 instead of bare int.
4844 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4845 Use gdb_disassembly_flags instead of bare int.
4846 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4847 Define.
4848 * target-delegates.c: Regenerate.
4849 * target.c (target_insn_history, target_insn_history_from)
4850 (target_insn_history_range): Use gdb_disassembly_flags instead of
4851 bare int.
4852 * target.h: Include "disasm.h".
4853 (struct target_ops) <to_insn_history, to_insn_history_from,
4854 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4855 int.
4856 (target_insn_history, target_insn_history_from)
4857 (target_insn_history_range): Use gdb_disassembly_flags instead of
4858 bare int.
4859
80a65e9b
SM
48602017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4861
4862 * cli/cli-script.c (build_command_line): For if/while commands,
4863 check whether args is empty.
4864
6b66338c
SM
48652017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4866
4867 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
4868 (enum command_control_type): Likewise.
4869 (struct command_line): Likewise.
4870 (free_command_lines): Likewise.
4871 (struct command_lines_deleter): Likewise.
4872 (command_line_up): Likewise.
4873 (read_command_lines): Likewise.
4874 (read_command_lines_1): Likewise.
4875 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
4876 (enum command_control_type): Likewise.
4877 (struct command_line): Likewise.
4878 (free_command_lines): Likewise.
4879 (struct command_lines_deleter): Likewise.
4880 (command_line_up): Likewise.
4881 (read_command_lines): Likewise.
4882 (read_command_lines_1): Likewise.
4883 * breakpoint.h: Include cli/cli-script.h.
4884 * extension-priv.h: Likewise.
4885 * gdbcmd.h: Likewise.
4886
51abb421
PA
48872017-09-04 Pedro Alves <palves@redhat.com>
4888
4889 * ada-lang.c (is_known_support_routine): Move sal declaration to
4890 where it is initialized.
4891 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
4892 (parse_breakpoint_sals, decode_static_tracepoint_spec)
4893 (clear_command, update_static_tracepoint): Remove init_sal
4894 references. Move declarations closer to initializations.
4895 * cli/cli-cmds.c (list_command): Move sal declarations closer to
4896 initializations.
4897 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
4898 references. Move sal declarations closer to initializations.
4899 * frame.c (find_frame_sal): Return a symtab_and_line via function
4900 return instead of output parameter. Remove init_sal references.
4901 * frame.h (find_frame_sal): Return a symtab_and_line via function
4902 return instead of output parameter.
4903 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
4904 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
4905 instead of memset.
4906 (gdbscm_find_pc_line): Remove init_sal reference.
4907 * infcall.c (call_function_by_hand_dummy): Remove init_sal
4908 references. Move declarations closer to initializations.
4909 * infcmd.c (set_step_frame): Update. Move declarations closer to
4910 initializations.
4911 (finish_backward): Remove init_sal references. Move declarations
4912 closer to initializations.
4913 * infrun.c (process_event_stop_test, handle_step_into_function)
4914 (insert_hp_step_resume_breakpoint_at_frame)
4915 (insert_step_resume_breakpoint_at_caller): Likewise.
4916 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
4917 (symbol_to_sal): Likewise.
4918 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
4919 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
4920 to its initialization.
4921 * reverse.c (save_bookmark_command): Use new/delete. Remove
4922 init_sal references. Move declarations closer to initializations.
4923 * source.c (get_current_source_symtab_and_line): Remove brace
4924 initialization.
4925 (set_current_source_symtab_and_line): Now takes the sal by const
4926 reference. Remove brace initialization.
4927 (line_info): Remove init_sal reference.
4928 * source.h (set_current_source_symtab_and_line): Now takes a
4929 symtab_and_line via const reference.
4930 * stack.c (set_current_sal_from_frame): Adjust.
4931 (print_frame_info): Adjust.
4932 (get_last_displayed_sal): Return the sal via function return
4933 instead of via output parameter. Simplify.
4934 (frame_info): Adjust.
4935 * stack.h (get_last_displayed_sal): Return the sal via function
4936 return instead of via output parameter.
4937 * symtab.c (init_sal): Delete.
4938 (find_pc_sect_line): Remove init_sal references. Move
4939 declarations closer to initializations.
4940 (find_function_start_sal): Remove init_sal references. Move
4941 declarations closer to initializations.
4942 * symtab.h (struct symtab_and_line): In-class initialize all
4943 fields.
4944 * tracepoint.c (set_traceframe_context)
4945 (print_one_static_tracepoint_marker): Remove init_sal references.
4946 Move declarations closer to initializations.
4947 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
4948 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
4949 declarations closer to initializations.
4950 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
4951 init_sal references. Adjust.
4952
6c5b2ebe
PA
49532017-09-04 Pedro Alves <palves@redhat.com>
4954
4955 * ax-gdb.c (agent_command_1): Use range-for.
4956 * break-catch-throw.c (re_set_exception_catchpoint): Update.
4957 * breakpoint.c: Include "common/array-view.h".
4958 (init_breakpoint_sal, create_breakpoint_sal): Change sals
4959 parameter from struct symtabs_and_lines to
4960 array_view<symtab_and_line>. Adjust. Use range-for. Update.
4961 (breakpoint_sals_to_pc): Change sals parameter from struct
4962 symtabs_and_lines to std::vector reference.
4963 (check_fast_tracepoint_sals): Change sals parameter from struct
4964 symtabs_and_lines to std::array_view. Use range-for.
4965 (decode_static_tracepoint_spec): Return a std::vector instead of
4966 symtabs_and_lines. Update.
4967 (create_breakpoint): Update.
4968 (break_range_command, until_break_command, clear_command): Update.
4969 (base_breakpoint_decode_location, bkpt_decode_location)
4970 (bkpt_probe_create_sals_from_location)
4971 (bkpt_probe_decode_location, tracepoint_decode_location)
4972 (tracepoint_probe_decode_location)
4973 (strace_marker_create_sals_from_location): Return a std::vector
4974 instead of symtabs_and_lines.
4975 (strace_marker_create_breakpoints_sal): Update.
4976 (strace_marker_decode_location): Return a std::vector instead of
4977 symtabs_and_lines. Update.
4978 (update_breakpoint_locations): Change struct symtabs_and_lines
4979 parameters to gdb::array_view. Adjust.
4980 (location_to_sals): Return a std::vector instead of
4981 symtabs_and_lines. Update.
4982 (breakpoint_re_set_default): Use std::vector instead of struct
4983 symtabs_and_lines.
4984 (decode_location_default): Return a std::vector instead of
4985 symtabs_and_lines. Update.
4986 * breakpoint.h: Include "common/array-view.h".
4987 (struct breakpoint_ops) <decode_location>: Now returns a
4988 std::vector instead of returning a symtabs_and_lines via output
4989 parameter.
4990 (update_breakpoint_locations): Change sals parameters to use
4991 gdb::array_view.
4992 * cli/cli-cmds.c (edit_command, list_command): Update to use
4993 std::vector and gdb::array_view.
4994 (ambiguous_line_spec): Adjust to use gdb::array_view and
4995 range-for.
4996 (compare_symtabs): Rename to ...
4997 (cmp_symtabs): ... this. Change parameters to symtab_and_line
4998 const reference and adjust.
4999 (filter_sals): Rewrite using std::vector and standard algorithms.
5000 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5001 (jump_command): Update to use std::vector.
5002 * linespec.c (struct linespec_state) <canonical_names>: Update
5003 comment.
5004 (add_sal_to_sals_basic): Delete.
5005 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5006 (decode_line_2, create_sals_line_offset)
5007 (convert_address_location_to_sals, convert_linespec_to_sals)
5008 (convert_explicit_location_to_sals, parse_linespec)
5009 (event_location_to_sals, decode_line_full, decode_line_1)
5010 (decode_line_with_current_source)
5011 (decode_line_with_last_displayed, decode_objc)
5012 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5013 (linespec_result::~linespec_result): Adjust to use std::vector
5014 instead of symtabs_and_lines.
5015 * linespec.h (linespec_sals::sals): Now a std::vector.
5016 (struct linespec_result): Use std::vector, bool, and in-class
5017 initialization.
5018 (decode_line_1, decode_line_with_current_source)
5019 (decode_line_with_last_displayed): Return std::vector.
5020 * macrocmd.c (info_macros_command): Use std::vector.
5021 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5022 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5023 std::vector.
5024 * probe.h (parse_probes): Return a std::vector.
5025 * python/python.c (gdbpy_decode_line): Use std::vector and
5026 gdb::array_view.
5027 * source.c (select_source_symtab, line_info): Use std::vector.
5028 * stack.c (func_command): Use std::vector.
5029 * symtab.h (struct symtabs_and_lines): Delete.
5030 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5031
7c44b49c
PA
50322017-09-04 Pedro Alves <palves@redhat.com>
5033
5034 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5035 unittests/array-view-selftests.c.
5036 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5037 * common/array-view.h: New file.
5038 * unittests/array-view-selftests.c: New file.
5039
e439fa14
PA
50402017-09-04 Pedro Alves <palves@redhat.com>
5041
5042 * cli/cli-cmds.c (edit_command): Pass message to
5043 ambiguous_line_spec.
5044 (list_command): Pass message to ambiguous_line_spec. Say
5045 "first"/"last" instead of "start" and "end" to be consistent with
5046 the manual.
5047 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5048 them to print formatted message.
5049
7525b645
PA
50502017-09-04 Pedro Alves <palves@redhat.com>
5051
5052 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5053 ftrace_update_insns by reference instead of pointer.
5054
badc0020
YQ
50552017-09-04 Yao Qi <yao.qi@linaro.org>
5056
5057 * i386-go32-tdep.c: Include x86-xstate.h.
5058 (i386_go32_init_abi): Call i386_target_description.
5059 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5060 if xcr0 is X86_XSTATE_X87_MASK.
5061 * i386-tdep.h (tdesc_i386): Remove the declaration.
5062 (tdesc_i386_mmx): Likewise.
5063
d78bdb54
YQ
50642017-09-04 Yao Qi <yao.qi@linaro.org>
5065
5066 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5067 X86_XSTATE_SSE_MASK instead of 0.
5068
ca1fa5ee
YQ
50692017-09-04 Yao Qi <yao.qi@linaro.org>
5070
5071 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5072 i386_target_description.
5073 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5074 i386_target_description.
5075 * i386-tdep.c (i386_gdbarch_init): Likewise.
5076
2434b019
YQ
50772017-09-04 Yao Qi <yao.qi@linaro.org>
5078
5079 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5080 (x86_darwin_init_abi_64): Call amd64_target_description.
5081 * amd64-dicos-tdep.c: Likewise.
5082 * amd64-fbsd-nat.c: Likewise.
5083 * amd64-fbsd-tdep.c: Likewise.
5084 * amd64-nbsd-tdep.c: Likewise.
5085 * amd64-obsd-tdep.c: Likewise.
5086 * amd64-sol2-tdep.c: Likewise.
5087 * amd64-windows-tdep.c: Likewise.
5088 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5089
0860c437
SM
50902017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5091
5092 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5093 (btrace_function) <insn>: Change type to use std::vector.
5094 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5095 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5096 ftrace_update_insns, ftrace_compute_global_level_offset,
5097 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5098 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5099 change to std::vector.
5100 (ftrace_update_insns): Adjust to change to std::vector, change
5101 type of INSN parameter.
5102 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5103 * record-btrace.c (btrace_call_history_insn_range,
5104 btrace_compute_src_line_range,
5105 record_btrace_frame_prev_register): Adjust to change to
5106 std::vector.
5107 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5108 to change to std::vector.
5109
0638b7f9
TT
51102017-09-03 Tom Tromey <tom@tromey.com>
5111
5112 * corefile.c (reopen_exec_file): Use std::string.
5113
8f84fb0e
TT
51142017-09-03 Tom Tromey <tom@tromey.com>
5115
5116 * compile/compile.c (compile_register_name_mangled): Return
5117 std::string.
5118 * compile/compile-loc2c.c (pushf_register_address): Update.
5119 (pushf_register): Update.
5120 * compile/compile-c-types.c (convert_array): Update.
5121 * compile/compile-c-symbols.c (generate_vla_size): Update.
5122 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5123 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5124 (convert_one_symbol): Update.
5125 (generate_c_for_for_one_variable): Update.
5126 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5127 std::string.
5128 (generate_register_struct): Update.
5129 * compile/compile-internal.h (c_get_range_decl_name): Return a
5130 std::string.
5131 (compile_register_name_mangled): Return std::string.
5132
18e9961f
TT
51332017-09-03 Tom Tromey <tom@tromey.com>
5134
5135 * utils.c (perror_string): Return a std::string.
5136 (throw_perror_with_name, perror_warning_with_name): Update.
5137
45343786
TT
51382017-09-03 Tom Tromey <tom@tromey.com>
5139
5140 * demangle.c (demangle_command): Use std::string,
5141 unique_xmalloc_ptr.
5142
b57af503
TT
51432017-09-03 Tom Tromey <tom@tromey.com>
5144
5145 * cli/cli-setshow.c (do_set_command): Use std::string.
5146
6eecf35f
TT
51472017-09-03 Tom Tromey <tom@tromey.com>
5148
5149 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5150
56496dd4
TT
51512017-09-03 Tom Tromey <tom@tromey.com>
5152
5153 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5154
e91a1fa7
TT
51552017-09-03 Tom Tromey <tom@tromey.com>
5156
5157 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5158 gdb::unique_xmalloc_ptr.
5159
7ffd83d7
TT
51602017-09-03 Tom Tromey <tom@tromey.com>
5161
5162 * thread.c (print_thread_info_1): Use string_printf.
5163 (thread_apply_command, thread_apply_all_command): Use
5164 std::string.
5165
1ccbe998
TT
51662017-09-03 Tom Tromey <tom@tromey.com>
5167
5168 * valprint.c (val_print_string): Update.
5169 * gdbcore.h (memory_error_message): Return std::string.
5170 * corefile.c (memory_error_message): Return std::string.
5171 (memory_error): Update.
5172 * breakpoint.c (insert_bp_location): Update.
5173
23fdd69e
SM
51742017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5175
5176 * target/waitstatus.h (target_waitstatus_to_string): Change
5177 return type to std::string.
5178 * target/waitstatus.c (target_waitstatus_to_string): Return
5179 std::string.
5180 * target.h (target_waitstatus_to_string): Remove declaration.
5181 * infrun.c (resume, clear_proceed_status_thread,
5182 print_target_wait_results, do_target_wait, save_waitstatus,
5183 stop_all_threads): Adjust.
5184 * record-btrace.c (record_btrace_wait): Adjust.
5185 * target-debug.h
5186 (target_debug_print_struct_target_waitstatus_p): Adjust.
5187
5c811d30
JK
51882017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5189
5190 PR gdb/22046
5191 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5192 detection.
5193
0a2dde4a
SDJ
51942017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5195
5196 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5197 for setting/unsetting environment variables on the remote target.
5198 (New remote packets): Add entries for QEnvironmentHexEncoded,
5199 QEnvironmentUnset and QEnvironmentReset.
5200 * common/environ.c (gdb_environ::operator=): Extend method to
5201 handle m_user_set_env_list and m_user_unset_env_list.
5202 (gdb_environ::clear): Likewise.
5203 (match_var_in_string): Change type of first parameter from 'char
5204 *' to 'const char *'.
5205 (gdb_environ::set): Extend method to handle
5206 m_user_set_env_list and m_user_unset_env_list.
5207 (gdb_environ::unset): Likewise.
5208 (gdb_environ::clear_user_set_env): New method.
5209 (gdb_environ::user_set_envp): Likewise.
5210 (gdb_environ::user_unset_envp): Likewise.
5211 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5212 m_user_unset_env_list on move constructor/assignment.
5213 (unset): Add new default parameter 'update_unset_list = true'.
5214 (clear_user_set_env): New method.
5215 (user_set_envp): Likewise.
5216 (user_unset_envp): Likewise.
5217 (m_user_set_env_list): New std::set.
5218 (m_user_unset_env_list): Likewise.
5219 * common/rsp-low.c (hex2str): New function.
5220 (bin2hex): New overload for bin2hex function.
5221 * common/rsp-low.c (hex2str): New prototype.
5222 (str2hex): New overload prototype.
5223 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5224 QEnvironmentUnset and QEnvironmentReset.
5225 (remote_protocol_features): Add QEnvironmentHexEncoded,
5226 QEnvironmentUnset and QEnvironmentReset packets.
5227 (send_environment_packet): New function.
5228 (extended_remote_environment_support): Likewise.
5229 (extended_remote_create_inferior): Call
5230 extended_remote_environment_support.
5231 (_initialize_remote): Add QEnvironmentHexEncoded,
5232 QEnvironmentUnset and QEnvironmentReset packet configs.
5233 * unittests/environ-selftests.c (gdb_selftest_env_var):
5234 New variable.
5235 (test_vector_initialization): New function.
5236 (test_init_from_host_environ): Likewise.
5237 (test_reinit_from_host_environ): Likewise.
5238 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5239 Likewise.
5240 (test_unset_set_empty_vector): Likewise.
5241 (test_vector_clear): Likewise.
5242 (test_std_move): Likewise.
5243 (test_move_constructor):
5244 (test_self_move): Likewise.
5245 (test_set_unset_reset): Likewise.
5246 (run_tests): Rewrite in terms of the functions above.
5247
654670a4
WP
52482017-08-31 Weimin Pan <weimin.pan@oracle.com>
5249
5250 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5251 (adi_available): Use a temp variable of type CORE_ADDR as argument
5252 3 when calling target_auxv_search.
5253 (adi_normalize_address): Use masks and xor operators to calculate
5254 normalized address.
5255 (adi_read_versions, adi_write_versions, adi_print_versions)
5256 (do_examine, do_assign): Use paddress.
5257
7755ddb7
JB
52582017-08-29 John Baldwin <jhb@FreeBSD.org>
5259
5260 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5261 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5262 out of loop and add supply of FIR.
5263 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5264 add collect of FIR.
5265
fd437cbc
SM
52662017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5267
3804a343 5268 PR gdb/21827
fd437cbc
SM
5269 * cli/cli-script.c (define_command): Don't convert command name
5270 to lower case.
5271
988f6b3d
JB
52722017-08-25 Joel Brobecker <brobecker@adacore.com>
5273
5274 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5275 Update all callers accordingly. Remove all code blocks handling
5276 the case where DISPP is not NULL.
5277
663c44ac
JK
52782017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5279
5280 PR symtab/22003
5281 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5282 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5283 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5284
f1902523
JK
52852017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5286
5287 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5288 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5289 (read_comp_units_from_section): New parameter abbrev_section, use
5290 read_and_check_comp_unit_head, allocate signatured_type if needed.
5291 (create_all_comp_units): Update read_comp_units_from_section caller.
5292
87215ad1
SDJ
52932017-08-23 Pedro Alves <palves@redhat.com>
5294
5295 PR remote/21852
5296 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5297 to null_ptid and switch to thread without reading the registers
5298 after adding the inferior.
5299
6e41ddec
JK
53002017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5301
5302 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5303 compile-gcc.
5304 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5305 (compile_to_object): Implement compile_gcc.
5306 (_initialize_compile): Install "set compile-gcc". Initialize
5307 compile_gcc.
5308
e68c32d5
JK
53092017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5310
5311 * compile/compile.c (compile_to_object): Conditionally call
5312 set_verbose. Conditionally call compile or compile_v0.
5313
58afddc6
WP
53142017-08-07 Weimin Pan <weimin.pan@oracle.com>
5315
5316 * sparc64-tdep.h: (adi_normalize_address): New export.
5317 * sparc-nat.h: (open_adi_tag_fd): New export.
5318 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5319 * sparc64-linux-tdep.c:
5320 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5321 (sparc64_linux_handle_segmentation_fault): New function.
5322 (sparc64_linux_init_abi): Register
5323 sparc64_linux_handle_segmentation_fault
5324 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5325 (sparc64_addr_bits_remove): New function.
5326 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5327 (MAX_PROC_NAME_SIZE): New macro.
5328 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5329 (sparc64adilist): New variable.
5330 (adi_proc_list): New variable.
5331 (find_adi_info): New function.
5332 (add_adi_info): New function.
5333 (get_adi_info_proc): New function.
5334 (get_adi_info): New function.
5335 (info_adi_command): New function.
5336 (read_maps_entry): New function.
5337 (adi_available): New function.
5338 (adi_normalize_address): New function.
5339 (adi_align_address): New function.
5340 (adi_convert_byte_count): New function.
5341 (adi_tag_fd): New function.
5342 (adi_is_addr_mapped): New function.
5343 (adi_read_versions): New function.
5344 (adi_write_versions): New function.
5345 (adi_print_versions): New function.
5346 (do_examine): New function.
5347 (do_assign): New function.
5348 (adi_examine_command): New function.
5349 (adi_assign_command): New function.
5350 (_initialize_sparc64_adi_tdep): New function.
5351
11db9430
SM
53522017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5353
5354 * breakpoint.c (breakpoints_info): Rename to ...
5355 (info_breakpoints_command): ... this.
5356 (watchpoints_info): Rename to ...
5357 (info_watchpoints_command): ... this.
5358 (tracepoints_info): Rename to ...
5359 (info_tracepoints_command): ... this.
5360 (_initialize_breakpoint): Adjust.
5361 * dcache.c (dcache_info): Rename to ...
5362 (info_display_command): ... this.
5363 (_initialize_dcache): Adjust.
5364 * frame.h (args_info): Rename to ...
5365 (info_args_command): ... this.
5366 (locals_info): Rename to ...
5367 (info_locals_command): ... this.
5368 * infcmd.c (nofp_registers_info): Rename to ...
5369 (info_registers_command): ... this.
5370 (float_info): Rename to ...
5371 (info_float_command): ... this.
5372 (program_info): Rename to ...
5373 (info_program_command): ... this.
5374 (all_registers_info): Rename to ...
5375 (info_all_registers_command): ... this.
5376 (vector_info): Rename to ...
5377 (info_vector_command): ... this.
5378 (float_info): Rename to ...
5379 (info_float_command): ... this.
5380 (_initialize_infcmd): Adjust.
5381 * inferior.h (term_info): Rename to ...
5382 (info_terminal_command): ... this.
5383 * inflow.c (term_info): Rename to ...
5384 (info_terminal_command): ... this.
5385 (_initialize_inflow): Adjust.
5386 * infrun.c (signals_info): Rename to ...
5387 (info_signals_command): ... this.
5388 (_initialize_infrun): Adjust.
5389 * objc-lang.c (classes_info): Rename to ...
5390 (info_classes_command): ... this.
5391 (selectors_info): Rename to ...
5392 (info_selectors_command): ... this.
5393 (_initialize_objc_language): Adjust.
5394 * printcmd.c (sym_info): Rename to ...
5395 (info_symbol_command): ... this.
5396 (address_info): Rename to ...
5397 (info_address_command): ... this.
5398 (display_info): Rename to ...
5399 (info_display_command): ... this.
5400 (_initialize_printcmd): Adjust.
5401 * reverse.c (bookmarks_info): Rename to ...
5402 (info_breakpoints_command): ... this.
5403 (_initialize_reverse): Adjust.
5404 * ser-go32.c (dos_info): Rename to ...
5405 (info_serial_command): ... this.
5406 (_initialize_ser_dos): Adjust.
5407 * skip.c (skip_info): Rename to ...
5408 (info_skip_command): ... this.
5409 (_initialize_step_skip): Adjust.
5410 * source.c (line_info): Rename to ...
5411 (info_line_command): ... this.
5412 (source_info): Rename to ...
5413 (info_source_command)
5414 * stack.c (frame_info): Rename to ...
5415 (info_frame_command): ... this.
5416 (locals_info): Rename to ...
5417 (info_locals_command): ... this.
5418 (args_info): Rename to ...
5419 (info_args_command): ... this.
5420 (_initialize_stack): Adjust.
5421 * symtab.c (sources_info): Rename to ...
5422 (info_sources_command): ... this.
5423 (variables_info): Rename to ...
5424 (info_variables_command): ... this.
5425 (functions_info): Rename to ...
5426 (info_functions_command): ... this.
5427 (types_info): Rename to ...
5428 (info_types_command): ... this.
5429 (_initialize_symtab): Adjust.
5430 * target.c (target_info): Rename to ...
5431 (info_target_command): ... this.
5432 (initialize_targets): Adjust.
5433 * tracepoint.c (tvariables_info): Rename to ...
5434 (info_tvariables_command): ... this.
5435 (scope_info): Rename to ...
5436 (info_scope_command): ... this.
5437 (trace_dump_actions): Adjust.
5438 (_initialize_tracepoint): Adjust.
5439
b270e6f9
TT
54402017-08-22 Tom Tromey <tom@tromey.com>
5441
5442 * breakpoint.h (install_breakpoint): Update.
5443 * breakpoint.c (add_solib_catchpoint): Update.
5444 (install_breakpoint): Change argument to a std::unique_ptr.
5445 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5446 (create_breakpoint_sal, create_breakpoint): Update.
5447 (watch_command_1, catch_exec_command_1)
5448 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5449 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5450 Return the breakpoint.
5451 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5452 (new_single_step_breakpoint): Update.
5453 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5454 std::unique_ptr.
5455 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5456 std::unique_ptr.
5457 * break-catch-sig.c (create_signal_catchpoint): Use
5458 std::unique_ptr.
5459 * ada-lang.c (create_ada_exception_catchpoint): Use
5460 std::unique_ptr.
5461
36bd8eaa
TT
54622017-08-22 Tom Tromey <tom@tromey.com>
5463
5464 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5465
56f37645
TT
54662017-08-22 Tom Tromey <tom@tromey.com>
5467
5468 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5469 (lookup_partial_symbol): Update.
5470
0b581c69
TT
54712017-08-22 Tom Tromey <tom@tromey.com>
5472
5473 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5474 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5475 (find_and_open_source, symtab_to_fullname): Update.
5476 * psymtab.c (psymtab_to_fullname): Update.
5477
14278e1f
TT
54782017-08-22 Tom Tromey <tom@tromey.com>
5479
5480 * exec.c (exec_file_attach): Update.
5481 * linux-thread-db.c (try_thread_db_load): Update.
5482 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5483 * utils.c (gdb_realpath): Change return type.
5484 (gdb_realpath_keepfile): Update.
5485 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5486 (_initialize_utils): Register the new self test.
5487 * source.c (openp): Update.
5488 (find_and_open_source): Update.
5489 * nto-tdep.c (nto_find_and_open_solib): Update.
5490 * main.c (set_gdb_data_directory): Update.
5491 (captured_main_1): Update.
5492 * dwarf2read.c (dwarf2_get_dwz_file): Update
5493 (dw2_map_symbol_filenames): Update.
5494 * auto-load.c (auto_load_safe_path_vec_update): Update.
5495 (filename_is_in_auto_load_safe_path_vec): Change type of
5496 "filename_realp".
5497 (auto_load_objfile_script): Update.
5498 (file_is_auto_load_safe): Update. Use std::string.
5499 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5500
4971c9a7
TT
55012017-08-22 Tom Tromey <tom@tromey.com>
5502
5503 * utils.c (gdb_realpath_keepfile): Return a
5504 gdb::unique_xmalloc_ptr.
5505 * exec.c (exec_file_attach): Update.
5506 * utils.h (gdb_realpath_keepfile): Return a
5507 gdb::unique_xmalloc_ptr.
5508
e3e41d58
TT
55092017-08-22 Tom Tromey <tom@tromey.com>
5510
5511 * compile/compile.c (compile_file_command): Use
5512 gdb::unique_xmalloc_ptr, std::string.
5513 * utils.c (gdb_abspath): Change return type.
5514 * source.c (openp): Update.
5515 * objfiles.c (allocate_objfile): Update.
5516 * main.c (set_gdb_data_directory): Update.
5517 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5518
0d999a6e
ZZ
55192017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5520
5521 * cli-cmds.c (list_commands): List actual code around more than
5522 one location.
5523
329d5e7e
JB
55242017-08-21 John Baldwin <jhb@FreeBSD.org>
5525
5526 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5527
bf223d3e
PA
55282017-08-21 Pedro Alves <palves@redhat.com>
5529
5530 PR gdb/19487
5531 * c-exp.y (variable production): Handle function aliases.
5532 * minsyms.c (msymbol_is_text): New function.
5533 * minsyms.h (msymbol_is_text): Declare.
5534 * symtab.c (find_function_alias_target): New function.
5535 * symtab.h (find_function_alias_target): Declare.
5536
c973d0aa
PA
55372017-08-21 Pedro Alves <palves@redhat.com>
5538
5539 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5540 typedefs.
5541 * typeprint.c (whatis_exp): If handling "whatis", and expression
5542 is OP_TYPE, strip one typedef level. Otherwise don't strip
5543 typedefs here.
5544 * valops.c (value_cast): Save "to" type before resolving
5545 stubs/typedefs. Use that type as resulting value's type.
5546
2989a365
TT
55472017-08-18 Tom Tromey <tom@tromey.com>
5548 Pedro Alves <palves@redhat.com>
5549
5550 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5551 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5552 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5553 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5554 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5555 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5556 (linux_get_siginfo_data): Add "thread" argument. Use
5557 scoped_restore.
5558 * linux-nat.c (linux_child_follow_fork)
5559 (check_stopped_by_watchpoint): Use scoped_restore.
5560 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5561 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5562 (restore_inferior_ptid, save_inferior_ptid): Remove.
5563 * btrace.c (btrace_fetch): Use scoped_restore.
5564 * bsd-uthread.c (bsd_uthread_fetch_registers)
5565 (bsd_uthread_store_registers): Use scoped_restore.
5566 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5567 scoped_restore.
5568 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5569 (aix_thread_xfer_partial): Use scoped_restore.
5570 * inferior.h (save_inferior_ptid): Remove.
5571
e60eb288
YQ
55722017-08-18 Yao Qi <yao.qi@linaro.org>
5573
5574 PR tdep/21818
5575 * arm-tdep.c (gdb_print_insn_arm): Mark
5576 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5577
6d580b63
YQ
55782017-08-18 Yao Qi <yao.qi@linaro.org>
5579
5580 * NEWS: Mention GDBserver's new option "--selftest".
5581 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5582 * selftest.c: Move it to common/selftest.c.
5583 * selftest.h: Move it to common/selftest.h.
5584 * selftest-arch.c (reset): New function.
5585 (tests_with_arch): Call reset.
5586
86dcbf50
YQ
55872017-08-18 Yao Qi <yao.qi@linaro.org>
5588
5589 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5590 instead of exception_fprintf and printf_filtered.
5591
7649770c
YQ
55922017-08-18 Yao Qi <yao.qi@linaro.org>
5593
5594 * selftest.c (register_self_test): Rename it to
5595 selftests::register_test.
5596 (run_self_tests): selftest::run_tests.
5597 * selftest.h: Update declarations.
5598 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5599 selftests::register_test_foreach_arch.
5600 * selftest-arch.h: Update declaration.
5601 * aarch64-tdep.c: Update.
5602 * arm-tdep.c: Likewise.
5603 * disasm-selftests.c: Likewise.
5604 * dwarf2loc.c: Likewise.
5605 * dwarf2-frame.c: Likewise.
5606 * findvar.c: Likewise.
5607 * gdbarch-selftests.c: Likewise.
5608 * maint.c (maintenance_selftest): Likewise.
5609 * regcache.c: Likewise.
5610 * rust-exp.y: Likewise.
5611 * selftest-arch.c: Likewise.
5612 * unittests/environ-selftests.c: Likewise.
5613 * unittests/function-view-selftests.c: Likewise.
5614 * unittests/offset-type-selftests.c: Likewise.
5615 * unittests/optional-selftests.c: Likewise.
5616 * unittests/scoped_restore-selftests.c: Likewise.
5617 * utils-selftests.c: Likewise.
5618
b0cba12e
PA
56192017-08-17 Pedro Alves <palves@redhat.com>
5620
5621 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5622 local.
5623
4c8aa72d
PA
56242017-08-17 Pedro Alves <palves@redhat.com>
5625
5626 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5627 field.
5628 (reset_die_in_process): Delete, replaced by ...
5629 (process_die_scope): ... this new class. Make it responsible for
5630 freeing cu->line_header too.
5631 (process_die): Use process_die_scope.
5632 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5633 cu->line_header_die_owner. Don't release the line header if it's
5634 owned by the CU.
5635 (setup_type_unit_groups): Make the CU/DIE own the line header.
5636 Don't release the line header here.
5637
ba713918
AL
56382017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5639
5640 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5641
44d0fb3a
RK
56422017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5643
5644 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5645 Single-Key mode
5646
a5afdb16
RK
56472017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5648
5649 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5650 mode command list.
5651
47613aeb
SH
56522017-08-15 Stafford Horne <shorne@gmail.com>
5653
5654 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5655
9c3cc999
SH
56562017-08-15 Stafford Horne <shorne@gmail.com>
5657
5658 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5659
206726fb
SDJ
56602017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5661
5662 PR gdb/21954
5663 * infcmd.c (unset_environment_command): Use the 'clear' method on
5664 the environment instead of resetting it.
5665
0335ac6d
JB
56662017-08-15 John Baldwin <jhb@FreeBSD.org>
5667
5668 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5669 platforms.
5670
d3abe1c8
TT
56712017-08-14 Tom Tromey <tom@tromey.com>
5672
5673 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5674 (print_binary_chars): Likewise.
5675 (BITS_IN_BYTES): Remove.
5676
d6382fff
TT
56772017-08-14 Tom Tromey <tom@tromey.com>
5678
5679 PR gdb/21675
5680 * valprint.c (LOW_ZERO): Change value to 034.
5681 (print_octal_chars): Add static_asserts for octal constants.
5682 * printcmd.c (print_scalar_formatted): Add 'd' case.
5683
f978cb06
TT
56842017-08-11 Tom Tromey <tom@tromey.com>
5685
5686 * symfile.c (add_symbol_file_command): Use std::vector.
5687
2f5404b3
TT
56882017-08-14 Tom Tromey <tom@tromey.com>
5689
5690 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5691 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5692 std::move.
5693 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5694
de7985c3
PA
56952017-08-11 Pedro Alves <palves@redhat.com>
5696
5697 * infrun.c (process_event_stop_test): Adjust
5698 function_name_is_marked_for_skip call.
5699 * skip.c: Include <list>.
5700 (skiplist_entry): Make it a class with private fields, and
5701 getters/setters.
5702 (skiplist_entry_chain): Delete.
5703 (skiplist_entries): New.
5704 (skiplist_entry_count): Delete.
5705 (highest_skiplist_entry_num): New.
5706 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5707 (add_skiplist_entry): Delete.
5708 (skiplist_entry::skiplist_entry): New.
5709 (skiplist_entry::add_entry): New.
5710 (skip_file_command, skip_function): Adjust.
5711 (compile_skip_regexp): Delete.
5712 (skip_command): Don't compile regexp here. Adjust to use
5713 skiplist_entry::add_entry.
5714 (skip_info): Adjust to use range-for and getters.
5715 (skip_enable_command, skip_disable_command): Adjust to use
5716 range-for and setters.
5717 (skip_delete_command): Adjust to use std::list.
5718 (add_skiplist_entry): Delete.
5719 (skip_file_p): Delete, refactored as ...
5720 (skiplist_entry::do_skip_file_p): ... this new method.
5721 (skip_gfile_p): Delete, refactored as ...
5722 (skiplist_entry::do_gskip_file_p): ... this new method.
5723 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5724 (skiplist_entry::skip_function_p): ... this new method.
5725 (function_name_is_marked_for_skip): Now returns bool, and takes
5726 the function sal by const reference. Adjust to use range-for and
5727 skiplist_entry methods.
5728 (_initialize_step_skip): Remove references to
5729 skiplist_entry_chain, skiplist_entry_count.
5730 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5731 takes the function sal by const reference.
5732
be7d3cd5
YQ
57332017-08-11 Yao Qi <yao.qi@linaro.org>
5734
5735 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5736 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5737 (dwarf2_frame_cache):
5738 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5739 RETURN_MASK_ALL and set *this_case to NULL.
5740 * frame-unwind.h: Update comments.
5741
1c90d9f0
YQ
57422017-08-11 Yao Qi <yao.qi@linaro.org>
5743
5744 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5745 (dwarf2_frame_state_copy_regs): Remove.
5746 (dwarf2_frame_state_free_regs): Remove.
5747 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5748 (dwarf2_restore_rule): Call method .alloc_regs instead of
5749 dwarf2_frame_state_alloc_regs.
5750 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5751 constructor. Call std::move.
5752 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5753 (dwarf2_frame_cache): Likewise.
5754
5755 [GDB_SELF_TEST]: Include selftest.h and
5756 selftest-arch.h.
5757 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5758 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5759 execute_cfa_program_test.
5760
5761 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5762 copy ctor, assignment operator, move assignment.
5763 <alloc_regs>: New method.
5764 <swap>: New method.
5765 (struct dwarf2_frame_state): Delete dtor.
5766 (dwarf2_frame_state_alloc_regs): Remove declaration.
5767 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5768 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5769
afe37d6b
YQ
57702017-08-11 Yao Qi <yao.qi@linaro.org>
5771
5772 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5773 (dwarf2_frame_state::dwarf2_frame_state): New.
5774 (dwarf2_frame_state::~dwarf2_frame_state): New.
5775 (dwarf2_fetch_cfa_info): Update.
5776 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5777 rather than a pointer. Update code.
5778 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5779 dtor.
5780 <data_align, code_align, retaddr_column>: Change them to const.
5781 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5782 to bool.
5783
b348037f
YQ
57842017-08-11 Yao Qi <yao.qi@linaro.org>
5785
5786 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5787 <loc.exp>: New field.
5788 * dwarf2-frame.c (execute_cfa_program): Update.
5789 (dwarf2_frame_prev_register): Update.
5790
e7c9de26
PA
57912017-08-10 Pedro Alves <palves@redhat.com>
5792
5793 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5794
e8c6b620
JB
57952017-08-09 John Baldwin <jhb@FreeBSD.org>
5796
5797 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5798 (fbsd_pending_children): Use std::list.
5799 (fbsd_remember_child): Likewise.
5800 (fbsd_is_child_pending): Likewise.
5801 (fbsd_pending_vfork_done): Use std::forward_list.
5802 (fbsd_add_vfork_done): Likewise.
5803 (fbsd_is_vfork_done_pending): Likewise.
5804 (fbsd_next_vfork_done): Likewise.
5805
e4a26669
JB
58062017-08-09 John Baldwin <jhb@FreeBSD.org>
5807
5808 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5809 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5810 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5811 for `mapfilename'.
5812 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 5813 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 5814
142311d3
JB
58152017-08-09 John Baldwin <jhb@FreeBSD.org>
5816
5817 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5818 "filestuff.h".
5819 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5820
42fa2e0e
TT
58212017-08-09 Tom Tromey <tom@tromey.com>
5822
5823 * skip.c (skiplist_entry): New constructor.
5824 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5825 (skiplist_entry::file_is_glob): Now bool.
5826 (skiplist_entry::file, skiplist_entry::function): Now
5827 std::string.
5828 (make_skip_entry): Return a unique_ptr. Use new.
5829 (free_skiplist_entry, free_skiplist_entry_cleanup)
5830 (make_free_skiplist_entry_cleanup): Remove.
5831 (skip_command, skip_disable_command, add_skiplist_entry)
5832 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5833 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5834 (function_name_is_marked_for_skip): Update.
5835 (skip_delete_command): Update. Use delete.
5836
cd3af38d
JW
58372017-08-09 Jiong Wang <jiong.wang@arm.com>
5838
5839 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5840 (aarch64_linux_core_read_description): New function.
5841 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5842
29592bde
PA
58432017-08-09 Pedro Alves <palves@redhat.com>
5844
5845 * cp-name-parser.y (cp_comp_to_string): Return a
5846 gdb::unique_xmalloc_ptr<char>.
5847 * cp-support.c (replace_typedefs_qualified_name)
5848 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5849 (cp_canonicalize_string_full): Use op= instead of explicit
5850 convertion.
5851 (cp_class_name_from_physname, method_name_from_physname)
5852 (cp_func_name, cp_remove_params): Adjust to use
5853 gdb::unique_xmalloc_ptr<char>.
5854 * cp-support.h (cp_comp_to_string): Return a
5855 gdb::unique_xmalloc_ptr<char>.
5856 * python/py-type.c (typy_lookup_type): Adjust to use
5857 gdb::unique_xmalloc_ptr<char>.
5858
b3340438
L
58592017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5860
5861 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5862
e88e8651
YQ
58632017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
5864 Yao Qi <yao.qi@linaro.org>
5865
5866 * cp-support.c (cp_canonicalize_string_full): Use
5867 gdb::unique_xmalloc_ptr<char>.
5868 (cp_canonicalize_string): Likewise.
5869
f5a29eb0
YQ
58702017-08-09 Yao Qi <yao.qi@linaro.org>
5871
5872 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
5873 * regformats/i386/amd64-avx-avx512.dat: Remove.
5874 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
5875 * regformats/i386/amd64-avx-mpx.dat:Remove.
5876 * regformats/i386/amd64-avx.dat: Remove.
5877 * regformats/i386/amd64-mpx.dat: Remove.
5878 * regformats/i386/i386-avx-avx512.dat: Remove.
5879 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
5880 * regformats/i386/i386-avx-mpx.dat: Remove.
5881 * regformats/i386/i386-mmx.dat: Remove.
5882 * regformats/i386/i386-mpx.dat: Remove.
5883
57757c2f
YQ
58842017-08-09 Yao Qi <yao.qi@linaro.org>
5885
5886 * amd64-tdep.h (tdesc_x32): Remove the declaration.
5887 * amd64-tdep.c: Don't include features/i386/x32*.c.
5888 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
5889 functions.
5890 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
5891 and i386/x32-avx-avx512.
5892 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
5893 and i386/x32.xml.
5894 * features/i386/x32-avx-avx512.c: Removed.
5895 * features/i386/x32-avx-avx512.xml: Removed.
5896 * features/i386/x32-avx.c: Removed.
5897 * features/i386/x32-avx.xml: Removed.
5898 * features/i386/x32.c: Removed.
5899 * features/i386/x32.xml: Removed.
5900 * regformats/i386/x32-avx-avx512.dat: Removed.
5901 * regformats/i386/x32-avx.dat: Removed.
5902 * regformats/i386/x32.dat: Removed.
5903
ba7b109b
MR
59042017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5905
5906 PR breakpoints/21886
5907 * mem-break.c (default_memory_insert_breakpoint): Use
5908 `->placed_address' rather than `->reqstd_address' for the
5909 breakpoint location.
5910
e347efc3
MR
59112017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5912
5913 * arch-utils.c (default_print_insn): Remove arch/mach/endian
5914 assertions.
5915
0dba2a6c
MR
59162017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5917
5918 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
5919 a union of `tdep_info', `tdesc_data' and `id'.
5920 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
5921 rather than `info.tdep_info'.
5922 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
5923 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5924 * i386-tdep.c (i386_gdbarch_init): Likewise.
5925 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
5926 * mips-tdep.c (mips_gdbarch_init): Likewise.
5927 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5928 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5929 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
5930 `info.tdep_info'.
5931 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
5932 `info.tdep_info'.
5933 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5934 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
5935 `info.tdep_info'.
5936 * spu-tdep.c (spu_gdbarch_init): Likewise.
5937 * gdbarch.h: Regenerate.
5938
16eb6b2d
LS
59392017-08-07 Leszek Swirski <leszeks@google.com>
5940
7b005726 5941 PR symtab/20899
16eb6b2d
LS
5942 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
5943
74cbb09e
SM
59442017-08-07 Simon Marchi <simon.marchi@ericsson.com>
5945
5946 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
5947 (gdbsim_open): Rename gdb_argv args object to argv.
5948
ee0c3293
TT
59492017-08-05 Tom Tromey <tom@tromey.com>
5950
5951 * compile/compile-object-load.c (compile_object_load): Use
5952 gdb::unique_xmalloc_ptr.
5953 * cli/cli-dump.c (scan_filename): Rename from
5954 scan_filename_with_cleanup. Change return type.
5955 (scan_expression): Rename from scan_expression_with_cleanup.
5956 Change return type.
5957 (dump_memory_to_file, dump_value_to_file, restore_command):
5958 Use gdb::unique_xmalloc_ptr. Update.
5959 * cli/cli-cmds.c (find_and_open_script): Use
5960 gdb::unique_xmalloc_ptr.
5961 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
5962 * symmisc.c (maintenance_print_symbols)
5963 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
5964 * symfile.c (symfile_bfd_open, generic_load)
5965 (add_symbol_file_command, remove_symbol_file_command): Use
5966 gdb::unique_xmalloc_ptr.
5967 * source.c (openp): Use gdb::unique_xmalloc_ptr.
5968 * psymtab.c (maintenance_print_psymbols): Use
5969 gdb::unique_xmalloc_ptr.
5970 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
5971 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
5972 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
5973 (reload_shared_libraries_1): Likewise.
5974
3232fabd
TT
59752017-08-05 Tom Tromey <tom@tromey.com>
5976
5977 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
5978 (rust_op_vector, rust_set_vector): New typedefs.
5979 (current_parser): New global.
5980 (work_obstack): Change to pointer type. Update all users.
5981 (rust_ast, pstate): Remove globals.
5982 (struct rust_parser): New.
5983 (%union) <params, field_inits>: Change type.
5984 (start, tuple_expr, unit_expr, struct_expr_list, literal)
5985 (field_expr, expr_list, maybe_expr_list, type_list): Update.
5986 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
5987 (convert_params_to_types, convert_params_to_expression): Change
5988 type of "params".
5989 (ast_string): Change type of "fields".
5990 (rust_parse): Make a rust_parser. Remove cleanups.
5991 (rust_lex_tests): Make and install an auto_obstack.
5992
f02fd774
YQ
59932017-08-04 Yao Qi <yao.qi@linaro.org>
5994
5995 * configure.srv (ipa_x32_linux_regobj): New.
5996 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
5997 instead of X86_TDESC_AVX512.
5998 (initialize_low_tracepoint): Call
5999 init_registers_x32_avx_avx512_linux.
6000
91975afd
YQ
60012017-08-04 Yao Qi <yao.qi@linaro.org>
6002
6003 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6004
2331fa3a
RK
60052017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6006
6007 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6008
744e4fe1
TT
60092017-08-03 Tom Tromey <tom@tromey.com>
6010
6011 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6012 Remove.
6013 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6014
1c034b67
TT
60152017-08-03 Tom Tromey <tom@tromey.com>
6016
6017 * python/py-param.c (compute_enum_values): Use gdb_argv.
6018
773a1edc
TT
60192017-08-03 Tom Tromey <tom@tromey.com>
6020
6021 * utils.h (struct gdb_argv_deleter): New.
6022 (gdb_argv): New class.
6023 * utils.c (gdb_argv::reset): New method.
6024 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6025 * tracefile.c (tsave_command): Use gdb_argv.
6026 * top.c (new_ui_command): Use gdb_argv.
6027 * symmisc.c (maintenance_print_symbols)
6028 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6029 * symfile.c (symbol_file_command, generic_load)
6030 (remove_symbol_file_command): Use gdb_argv.
6031 * stack.c (backtrace_command): Use gdb_argv.
6032 * source.c (add_path, show_substitute_path_command)
6033 (unset_substitute_path_command, set_substitute_path_command):
6034 Use gdb_argv.
6035 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6036 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6037 * remote.c (extended_remote_run, remote_put_command)
6038 (remote_get_command, remote_delete_command): Use gdb_argv.
6039 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6040 (gdbsim_open): Use gdb_argv.
6041 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6042 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6043 * procfs.c (procfs_info_proc): Use gdb_argv.
6044 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6045 * infrun.c (handle_command): Use gdb_argv.
6046 * inferior.c (add_inferior_command, clone_inferior_command):
6047 Use gdb_argv.
6048 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6049 * exec.c (exec_file_command): Use gdb_argv.
6050 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6051 * compile/compile.c (build_argc_argv): Use gdb_argv.
6052
0d50bde3
TT
60532017-08-03 Tom Tromey <tom@tromey.com>
6054
6055 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6056
7f968c89
TT
60572017-08-03 Tom Tromey <tom@tromey.com>
6058
6059 * python/python.c (compute_python_string): Return std::string.
6060 (gdbpy_eval_from_control_command): Update.
6061 (do_start_initialization): Use std::string.
6062 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6063 xstrprintf.
6064 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6065 xstrprintf.
6066
3c9ebddd
TT
60672017-08-03 Tom Tromey <tom@tromey.com>
6068
6069 * top.h (do_restore_instream_cleanup): Remove.
6070 * top.c (do_restore_instream_cleanup): Remove.
6071 (read_command_file): Use scoped_restore.
6072 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6073
b51b225e
TT
60742017-08-03 Tom Tromey <tom@tromey.com>
6075
6076 * cli/cli-script.c (execute_user_command)
6077 (execute_control_command): Use scoped_restore.
6078
ac991630
TT
60792017-08-03 Tom Tromey <tom@tromey.com>
6080
6081 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6082 (execute_user_command): Remove user_call_depth; use
6083 user_args_stack's size instead.
6084
898e0c8e
TT
60852017-08-03 Tom Tromey <tom@tromey.com>
6086
6087 * top.h (in_user_command): Remove.
6088 * top.c (in_user_command): Remove.
6089 * cli/cli-script.c (do_restore_user_call_depth)
6090 (execute_user_command): Update.
6091
26fcd5d7
TT
60922017-08-03 Tom Tromey <tom@tromey.com>
6093
6094 * valops.c (search_struct_method): Use gdb::byte_vector.
6095 * valarith.c (value_concat): Use std::vector.
6096 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6097 (simple_search_memory): Likewise.
6098 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6099 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6100 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6101 * elfread.c (elf_rel_plt_read): Use std::string.
6102 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6103 * cli/cli-dump.c (restore_section_callback): Use
6104 gdb::byte_vector.
6105
7c218e6c
TT
61062017-08-03 Tom Tromey <tom@tromey.com>
6107
6108 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6109
31b68d4a
TT
61102017-08-03 Tom Tromey <tom@tromey.com>
6111
6112 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6113 (tui_register_format): Use scoped_restore.
6114
2ec845e7
TT
61152017-08-03 Tom Tromey <tom@tromey.com>
6116
6117 * reverse.c (exec_direction_default): Remove.
6118 (exec_reverse_once): Use scoped_restore.
6119 * remote.c (restore_remote_timeout): Remove.
6120 (remote_flash_erase, remote_flash_write, remote_flash_done)
6121 (readchar, remote_serial_write): Use scoped_restore.
6122 * cli/cli-script.c (struct source_cleanup_lines_args)
6123 (source_cleanup_lines): Remove.
6124 (script_from_file): Use scoped_restore.
6125 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6126 (source_command): Use scoped_restore.
6127
b3bc8453
TT
61282017-08-03 Tom Tromey <tom@tromey.com>
6129
6130 * utils.h (make_cleanup_free_so): Remove.
6131 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6132 * solist.h (struct so_deleter): New.
6133 (so_list_up): New typedef.
6134 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6135
e3ad2841
TT
61362017-08-03 Tom Tromey <tom@tromey.com>
6137
6138 * utils.h (make_cleanup_restore_current_language): Remove.
6139 * utils.c (do_restore_current_language)
6140 (make_cleanup_restore_current_language): Remove.
6141 * parse.c (parse_exp_in_context_1)
6142 (parse_expression_with_language): Use
6143 scoped_restore_current_language.
6144 * mi/mi-main.c (mi_cmd_execute): Use
6145 scoped_restore_current_language.
6146 * language.h (scoped_restore_current_language): New class.
6147
b80cf838
TT
61482017-08-03 Tom Tromey <tom@tromey.com>
6149
6150 * compile/compile.c (cleanup_unlink_file): Remove.
6151 (compile_to_object): Use gdb::unlinker.
6152 (eval_compile_command): Likewise.
6153
fad0444a
TT
61542017-08-03 Tom Tromey <tom@tromey.com>
6155
6156 * utils.h (make_cleanup_fclose): Remove.
6157 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6158
6e7bc05c
TT
61592017-08-03 Tom Tromey <tom@tromey.com>
6160
6161 * top.c (open_terminal_stream): Return gdb_file_up.
6162 (new_ui_command): Update.
6163
4a45905b
TT
61642017-08-03 Tom Tromey <tom@tromey.com>
6165
6166 * source.c (print_source_lines_base, forward_search_command)
6167 (reverse_search_command): Use gdb_file_up.
6168
7cd06d6e
TT
61692017-08-03 Tom Tromey <tom@tromey.com>
6170
6171 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6172
ed166945
TT
61732017-08-03 Tom Tromey <tom@tromey.com>
6174
6175 * cli/cli-cmds.c (find_and_open_script): Change return type.
6176 Remove "streamp" and "full_path" parameters.
6177 (source_script_with_search): Update.
6178 * auto-load.c (source_script_file): Update.
6179 * cli/cli-cmds.h (find_and_open_script): Change type.
6180 (open_script): New struct.
6181
d419f42d
TT
61822017-08-03 Tom Tromey <tom@tromey.com>
6183
6184 * xml-support.c (xml_fetch_content_from_file): Update.
6185 * ui-file.c (stdio_file::open): Update.
6186 * tracefile-tfile.c (tfile_start): Update.
6187 * remote.c (remote_file_put, remote_file_get): Update.
6188 * nat/linux-procfs.c (linux_proc_get_int)
6189 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6190 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6191 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6192 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6193 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6194 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6195 * linux-nat.c (linux_proc_pending_signals): Update.
6196 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6197 (file_closer): Remove.
6198 * compile/compile.c (compile_to_object): Update.
6199 * common/filestuff.h (struct gdb_file_deleter): New.
6200 (gdb_file_up): New typedef.
6201 (gdb_fopen_cloexec): Change return type.
6202 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6203 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6204 (dump_binary_file, restore_binary_file): Update.
6205 * auto-load.c (auto_load_objfile_script_1): Update.
6206
4a2b031d
TT
62072017-08-03 Tom Tromey <tom@tromey.com>
6208
6209 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6210 (info_static_tracepoint_markers_command): Likewise.
6211 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6212 * skip.c (skip_info): Use ui_out_emit_table.
6213 * progspace.c (print_program_space): Use ui_out_emit_table.
6214 * osdata.c (info_osdata): Use ui_out_emit_table.
6215 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6216 ui_out_emit_table.
6217 * linux-thread-db.c (info_auto_load_libthread_db): Use
6218 ui_out_emit_table.
6219 * inferior.c (print_inferior): Use ui_out_emit_table.
6220 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6221 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6222 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6223 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6224 * ui-out.h (class ui_out_emit_table): New.
6225
a4f320fd
MR
62262017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6227
6228 * mips-tdep.c (mips_fpu_type_str): New function.
6229 (mips_dump_tdep): Call it.
6230
a2f1f308
MR
62312017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6232
6233 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6234 `->mips_fpu_type'.
6235
7e5ed83b
XR
62362017-07-31 Xavier Roirand <roirand@adacore.com>
6237
6238 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6239
4c9dc811
XR
62402017-07-27 Xavier Roirand <roirand@adacore.com>
6241
6242 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6243
27d41eac
YQ
62442017-07-26 Yao Qi <yao.qi@linaro.org>
6245
6246 * cli/cli-cmds.c (maintenancechecklist): New variable.
6247 * gdbcmd.h (maintenancechecklist): Declare it.
6248 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6249 Call i386_linux_read_description with different masks.
6250 * maint.c (maintenance_check_command): New function.
6251 (_initialize_maint_cmds): Call add_prefix_cmd.
6252 * target-descriptions.c (tdesc_reg): override operator != and ==.
6253 (tdesc_type): Likewise.
6254 (tdesc_feature): Likewise.
6255 (target_desc): Likewise.
6256 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6257 (maintenance_check_xml_descriptions): New function.
6258 (_initialize_target_descriptions) Add command "xml-descriptions".
6259 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6260
ea03d0d3
YQ
62612017-07-26 Yao Qi <yao.qi@linaro.org>
6262
6263 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6264 Include features/i386/32bit-*.c.
6265 (i386_linux_read_description): Generate target description if it
6266 doesn't exist.
6267 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6268 functions.
6269 * features/i386/32bit-linux.c: Re-generated.
6270 * features/i386/32bit-sse.c: Likewise.
6271 * target-descriptions.c (print_c_feature::visit): Print code to
6272 set register number if needed.
6273 (print_c_feature) <m_next_regnum>: New field.
6274
25aa13e5
YQ
62752017-07-26 Yao Qi <yao.qi@linaro.org>
6276
6277 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6278 (FEATURE_XMLFILES): New.
6279 (FEATURE_CFILES): New.
6280 New rules.
6281 (clean-cfiles): Remove generated c files.
6282 * features/i386/32bit-avx.c: Generated.
6283 * features/i386/32bit-avx512.c: Generated.
6284 * features/i386/32bit-core.c: Generated.
6285 * features/i386/32bit-linux.c: Generated.
6286 * features/i386/32bit-mpx.c: Generated.
6287 * features/i386/32bit-pkeys.c: Generated.
6288 * features/i386/32bit-sse.c: Generated.
6289 * target-descriptions.c: Include algorithm.
6290 (tdesc_element_visitor): Add method visit_end.
6291 (print_c_tdesc): Implement visit_end.
6292 (print_c_tdesc:: m_filename_after_features): Move it to
6293 protected.
6294 (print_c_feature): New class.
6295 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6296 name starts with "i386/32bit-".
6297
6eb1e6a8
YQ
62982017-07-26 Yao Qi <yao.qi@linaro.org>
6299
6300 * target-descriptions.c (tdesc_element_visitor): New class.
6301 (tdesc_element): New class.
6302 (tdesc_reg): Inherit from tdesc_element.
6303 (tdesc_reg::accept): New function.
6304 (tdesc_type): Inherit from tdesc_element.
6305 (tdesc_type::accept): New function.
6306 (tdesc_feature): Inherit from tdesc_element.
6307 (tdesc_feature::accept): New function.
6308 (target_desc): Inherit from tdesc_element.
6309 (target_desc::target_desc): New.
6310 (target_desc::~target_desc): New.
6311 (target_desc::accept): New.
6312 (allocate_target_description): Use new.
6313 (free_target_description): Use delete.
6314 (print_c_tdesc): New class.
6315 (maint_print_c_tdesc_cmd): Adjust.
6316
6317 * features/aarch64.c: Re-generated.
6318 * features/arc-arcompact.c: Re-generated.
6319 * features/arc-v2.c: Re-generated.
6320 * features/arm/arm-with-iwmmxt.c: Re-generated.
6321 * features/arm/arm-with-m.c: Re-generated.
6322 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6323 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6324 * features/arm/arm-with-neon.c: Re-generated.
6325 * features/arm/arm-with-vfpv2.c: Re-generated.
6326 * features/arm/arm-with-vfpv3.c: Re-generated.
6327 * features/i386/amd64-avx-avx512.c: Re-generated.
6328 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6329 * features/i386/amd64-avx.c: Re-generated.
6330 * features/i386/amd64-avx-linux.c: Re-generated.
6331 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6332 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6333 * features/i386/amd64-avx-mpx.c: Re-generated.
6334 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6335 * features/i386/amd64.c: Re-generated.
6336 * features/i386/amd64-linux.c: Re-generated.
6337 * features/i386/amd64-mpx.c: Re-generated.
6338 * features/i386/amd64-mpx-linux.c: Re-generated.
6339 * features/i386/i386-avx-avx512.c: Re-generated.
6340 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6341 * features/i386/i386-avx.c: Re-generated.
6342 * features/i386/i386-avx-linux.c: Re-generated.
6343 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6344 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6345 * features/i386/i386-avx-mpx.c: Re-generated.
6346 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6347 * features/i386/i386.c: Re-generated.
6348 * features/i386/i386-linux.c: Re-generated.
6349 * features/i386/i386-mmx.c: Re-generated.
6350 * features/i386/i386-mmx-linux.c: Re-generated.
6351 * features/i386/i386-mpx.c: Re-generated.
6352 * features/i386/i386-mpx-linux.c: Re-generated.
6353 * features/i386/x32-avx-avx512.c: Re-generated.
6354 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6355 * features/i386/x32-avx.c: Re-generated.
6356 * features/i386/x32-avx-linux.c: Re-generated.
6357 * features/i386/x32.c: Re-generated.
6358 * features/i386/x32-linux.c: Re-generated.
6359 * features/microblaze.c: Re-generated.
6360 * features/microblaze-with-stack-protect.c: Re-generated.
6361 * features/mips64-dsp-linux.c: Re-generated.
6362 * features/mips64-linux.c: Re-generated.
6363 * features/mips-dsp-linux.c: Re-generated.
6364 * features/mips-linux.c: Re-generated.
6365 * features/nds32.c: Re-generated.
6366 * features/nios2.c: Re-generated.
6367 * features/nios2-linux.c: Re-generated.
6368 * features/rs6000/powerpc-32.c: Re-generated.
6369 * features/rs6000/powerpc-32l.c: Re-generated.
6370 * features/rs6000/powerpc-403.c: Re-generated.
6371 * features/rs6000/powerpc-403gc.c : Re-generated.
6372 * features/rs6000/powerpc-405.c: Re-generated.
6373 * features/rs6000/powerpc-505.c: Re-generated.
6374 * features/rs6000/powerpc-601.c: Re-generated.
6375 * features/rs6000/powerpc-602.c: Re-generated.
6376 * features/rs6000/powerpc-603.c: Re-generated.
6377 * features/rs6000/powerpc-604.c: Re-generated.
6378 * features/rs6000/powerpc-64.c: Re-generated.
6379 * features/rs6000/powerpc-64l.c: Re-generated.
6380 * features/rs6000/powerpc-7400.c: Re-generated.
6381 * features/rs6000/powerpc-750.c: Re-generated.
6382 * features/rs6000/powerpc-860.c: Re-generated.
6383 * features/rs6000/powerpc-altivec32.c: Re-generated.
6384 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6385 * features/rs6000/powerpc-altivec64.c: Re-generated.
6386 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6387 * features/rs6000/powerpc-cell32l.c: Re-generated.
6388 * features/rs6000/powerpc-cell64l.c: Re-generated.
6389 * features/rs6000/powerpc-e500.c: Re-generated.
6390 * features/rs6000/powerpc-e500l.c: Re-generated.
6391 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6392 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6393 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6394 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6395 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6396 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6397 * features/rs6000/powerpc-vsx32.c: Re-generated.
6398 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6399 * features/rs6000/powerpc-vsx64.c: Re-generated.
6400 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6401 * features/rs6000/rs6000.c: Re-generated.
6402 * features/s390-linux32.c: Re-generated.
6403 * features/s390-linux32v1.c: Re-generated.
6404 * features/s390-linux32v2.c: Re-generated.
6405 * features/s390-linux64.c: Re-generated.
6406 * features/s390-linux64v1.c: Re-generated.
6407 * features/s390-linux64v2.c: Re-generated.
6408 * features/s390-te-linux64.c: Re-generated.
6409 * features/s390-tevx-linux64.c: Re-generated.
6410 * features/s390-vx-linux64.c: Re-generated.
6411 * features/s390x-linux64.c: Re-generated.
6412 * features/s390x-linux64v1.c: Re-generated.
6413 * features/s390x-linux64v2.c: Re-generated.
6414 * features/s390x-te-linux64.c: Re-generated.
6415 * features/s390x-tevx-linux64.c: Re-generated.
6416 * features/s390x-vx-linux64.c: Re-generated.
6417 * features/sparc/sparc32-solaris.c: Re-generated.
6418 * features/sparc/sparc64-solaris.c: Re-generated.
6419 * features/tic6x-c62x.c: Re-generated.
6420 * features/tic6x-c62x-linux.c: Re-generated.
6421 * features/tic6x-c64x.c: Re-generated.
6422 * features/tic6x-c64x-linux.c: Re-generated.
6423 * features/tic6x-c64xp.c: Re-generated.
6424 * features/tic6x-c64xp-linux.c: Re-generated.
6425
35b4818d
YQ
64262017-07-26 Yao Qi <yao.qi@linaro.org>
6427
6428 * i386-linux-tdep.c (i386_linux_read_description): New function.
6429 (i386_linux_core_read_description): Call
6430 i386_linux_read_description.
6431 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6432 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6433 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6434 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6435 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6436 * x86-linux-nat.c (x86_linux_read_description): Call
6437 i386_linux_read_description.
6438
8e2141c6
YQ
64392017-07-26 Yao Qi <yao.qi@linaro.org>
6440
6441 * NEWS: Mention it.
6442 * features/Makefile (%.c: %.xml): Pass the xml file name to
6443 command "maint print c-tdesc".
6444 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6445 name from 'arg'.
6446
b468ff4c
YQ
64472017-07-26 Yao Qi <yao.qi@linaro.org>
6448
6449 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6450 in-class initialization.
6451 (tdesc_create_feature): Call new instead of XCNEW.
6452 (free_target_description): Ue delete.
6453
b9c0e1b4
JB
64542017-07-25 John Baldwin <jhb@FreeBSD.org>
6455
6456 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6457
a04b5337
YQ
64582017-07-25 Yao Qi <yao.qi@linaro.org>
6459
6460 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6461 constant.
6462 (amd64_x32_init_abi): Likewise.
6463 * amd64-tdep.h (amd64_init_abi): Update declaration.
6464 (amd64_x32_init_abi): Likewise.
6465
02ad7fc2
YQ
64662017-07-25 Yao Qi <yao.qi@linaro.org>
6467
6468 PR tdep/21717
6469 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6470 condition for FPSCR.
6471 (arm_linux_store_inferior_registers): Likewise.
6472
b6f48cb0
TT
64732017-07-22 Tom Tromey <tom@tromey.com>
6474
6475 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6476 <syscalls_counts>: Now a std::vector.
6477 (get_catch_syscall_inferior_data): Use "new".
6478 (catch_syscall_inferior_data_cleanup): Use "delete".
6479 (insert_catch_syscall, remove_catch_syscall)
6480 (clear_syscall_counts): Update.
6481
e12c9b7a
TT
64822017-07-22 Tom Tromey <tom@tromey.com>
6483
6484 * break-catch-syscall.c (syscall_catchpoint)
6485 <syscalls_to_be_caught>: Now a std::vector<int>
6486 (~syscall_catchpoint): Remove.
6487 (insert_catch_syscall, remove_catch_syscall)
6488 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6489 (print_mention_catch_syscall, print_recreate_catch_syscall):
6490 Update.
6491 (create_syscall_event_catchpoint): Change type of "filter"
6492 parameter.
6493 (catch_syscall_split_args): Return a std::vector.
6494 (catch_syscall_command_1, catching_syscall_number_1): Update.
6495
4fa8aeac
TT
64962017-07-22 Tom Tromey <tom@tromey.com>
6497
6498 * break-catch-throw.c (struct exception_catchpoint)
6499 <exception_rx>: Now a std::string.
6500 (~exception_catchpoint): Remove.
6501 (print_one_detail_exception_catchpoint): Update.
6502 (handle_gnu_v3_exceptions): Change type of except_rx.
6503 (extract_exception_regexp): Return a std::string.
6504 (catch_exception_command_1): Update.
6505
f746a154
TT
65062017-07-22 Tom Tromey <tom@tromey.com>
6507
6508 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6509 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6510 std::vector.
6511 <catch_all>: Now a bool.
6512 (~signal_catchpoint): Remove.
6513 (signal_catchpoint_insert_location)
6514 (signal_catchpoint_remove_location)
6515 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6516 (signal_catchpoint_print_mention)
6517 (signal_catchpoint_print_recreate)
6518 (signal_catchpoint_explains_signal): Update.
6519 (create_signal_catchpoint): Change type of "filter" and
6520 "catch_all".
6521 (catch_signal_split_args): Return a std::vector. Change type of
6522 "catch_all".
6523 (catch_signal_command): Update.
6524
47e77640
PA
65252017-07-20 Pedro Alves <palves@redhat.com>
6526
6527 * ada-lang.c (ada_language_defn): Make extern.
6528 (_initialize_ada_language): Remove add_language call.
6529 * c-lang.c (c_language_defn, cplus_language_defn)
6530 (asm_language_defn, minimal_language_defn): Make extern.
6531 (_initialize_c_language): Delete.
6532 * completer.c (compare_cstrings): Delete, moved to utils.h.
6533 * d-lang.c (d_language_defn): Make extern.
6534 (_initialize_d_language): Remove add_language calls.
6535 * defs.h (enum language): Add comment.
6536 * f-lang.c (f_language_defn): Make extern.
6537 (_initialize_f_language): Remove add_language call.
6538 * go-lang.c (go_language_defn): Make extern.
6539 (_initialize_go_language): Remove add_language call.
6540 * language.c: Include <algorithm>.
6541 (languages): Redefine as const array.
6542 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6543 (set_language_command): Handle "local". Use for-range loop.
6544 (set_language): Remove loop.
6545 (language_enum): Rewrite.
6546 (language_def, language_str): Remove loops.
6547 (add_language): Delete.
6548 (add_set_language_command): New, based on add_languages.
6549 (skip_language_trampoline): Adjust.
6550 (local_language_defn): Delete.
6551 (language_gdbarch_post_init): Adjust.
6552 (_initialize_language): Remove add_language calls. Call
6553 add_set_language_command.
6554 * language.h (add_language): Delete.
6555 (auto_language_defn)
6556 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6557 (asm_language_defn, c_language_defn, cplus_language_defn)
6558 (d_language_defn, f_language_defn, go_language_defn)
6559 (m2_language_defn, objc_language_defn, opencl_language_defn)
6560 (pascal_language_defn, rust_language_defn): Declare.
6561 * m2-lang.c (m2_language_defn): Make extern.
6562 (_initialize_m2_language): Remove add_language call.
6563 * objc-lang.c (objc_language_defn): Make extern.
6564 (_initialize_objc_language): Remove add_language call.
6565 * opencl-lang.c (opencl_language_defn): Make extern.
6566 (_initialize_opencl_language): Remove add_language call.
6567 * p-lang.c (pascal_language_defn): Make extern.
6568 (_initialize_pascal_language): Delete.
6569 * rust-lang.c (rust_language_defn): Make extern.
6570 (_initialize_rust_language): Delete.
6571 * utils.h (compare_cstrings): New static inline function.
6572
edb0c9cb
PA
65732017-07-20 Pedro Alves <palves@redhat.com>
6574
6575 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6576 (get_var_value): Constify parameters.
6577 (get_int_var_value): Change prototype.
6578 (to_fixed_range_type): Adjust.
6579 * ada-lang.h (get_int_var_value): Change prototype.
6580
a778f165
PA
65812017-07-20 Pedro Alves <palves@redhat.com>
6582
6583 * dwarf2read.c (dw2_lookup_symbol): Use
6584 SYMBOL_MATCHES_SEARCH_NAME.
6585 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6586
42edd901
PA
65872017-07-20 Pedro Alves <palves@redhat.com>
6588
6589 * block.c (block_iter_name_step, block_iter_name_first)
6590 (block_iter_name_next): Delete.
6591 (block_lookup_symbol_primary): Adjust to use
6592 dict_iter_match_first/dict_iter_match_next.
6593 * block.h (block_iter_name_first, block_iter_name_next): Delete
6594 declarations.
6595 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6596 dict_iter_match_first/dict_iter_match_next.
6597
cf325299
PA
65982017-07-20 Pedro Alves <palves@redhat.com>
6599
6600 * cp-support.c (cp_find_first_component_aux): Add missing case for
6601 end of string.
6602
c5ed0576
DB
66032017-07-18 David Blaikie <dblaikie@gmail.com>
6604
6605 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6606 of dwo_cu's dwo_file.
6607
27841e76
YQ
66082017-07-18 Yao Qi <yao.qi@linaro.org>
6609
6610 * remote.c (store_registers_using_G): Remove one line comment.
6611
cfb7e58b
YQ
66122017-07-18 Yao Qi <yao.qi@linaro.org>
6613
6614 * regcache.c (regcache_cpy): Simplify it.
6615 (regcache::cpy_no_passthrough): Remove it.
6616 * regcache.h (cpy_no_passthrough): Remove it.
6617 (regcache_dup, regcache_cpy): Update comments.
6618
386535dd
PA
66192017-07-18 Pedro Alves <palves@redhat.com>
6620
6621 * remote-sim.c (sim_command_completer): Adjust to work with a
6622 completion_tracker instead of a VEC.
6623
c45ec17c
PA
66242017-07-17 Pedro Alves <palves@redhat.com>
6625
6626 * completer.c (complete_source_filenames): New function.
6627 (complete_address_and_linespec_locations): New function.
6628 (location_completer): Use complete_address_and_linespec_locations.
6629 (completion_tracker::build_completion_result): Honor the tracker's
6630 request to suppress append.
6631 * completer.h (completion_tracker::suppress_append_ws)
6632 (completion_tracker::set_suppress_append_ws): New methods.
6633 (completion_tracker::m_suppress_append_ws): New field.
6634 (complete_source_filenames): New declaration.
6635 * linespec.c (linespec_complete_what): New.
6636 (struct ls_parser) <complete_what, completion_word,
6637 completion_quote_char, completion_quote_end, completion_tracker>:
6638 New fields.
6639 (string_find_incomplete_keyword_at_end): New.
6640 (linespec_lexer_lex_string): Record quote char. If in completion
6641 mode, don't throw.
6642 (linespec_lexer_consume_token): Advance the completion word point.
6643 (linespec_lexer_peek_token): Save/restore completion info.
6644 (save_stream_and_consume_token): New.
6645 (set_completion_after_number): New.
6646 (linespec_parse_basic): Set what to complete next depending on
6647 token. Handle function and label completions specially.
6648 (parse_linespec): Disable objc shortcut in completion mode. Set
6649 what to complete next depending on token type. Skip keyword if in
6650 completion mode.
6651 (complete_linespec_component, linespec_complete): New.
6652 * linespec.h (linespec_complete): Declare.
6653
be966d42
PA
66542017-07-17 Pedro Alves <palves@redhat.com>
6655
6656 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6657 Handle 'operator<' / 'operator<<'.
6658
a2459270
PA
66592017-07-17 Pedro Alves <palves@redhat.com>
6660
6661 * completer.c (collect_explicit_location_matches): Handle
6662 MATCH_LABEL.
6663 (convert_explicit_location_to_linespec): New, factored out from
6664 ...
6665 (convert_explicit_location_to_sals): ... this.
6666 (complete_label): New.
6667 (linespec_complete_label, find_label_symbols_in_block): New.
6668 (find_label_symbols): Add completion_mode parameter and adjust to
6669 call find_label_symbols_in_block.
6670 * linespec.h (linespec_complete_label): Declare.
6671
c6756f62
PA
66722017-07-17 Pedro Alves <palves@redhat.com>
6673
6674 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6675 complete_symbol_mode parameter.
6676 * cli/cli-cmds.c (complete_command): Get the completion result out
6677 of the handle_brkchars tracker if used a custom word point.
6678 * completer.c: Include "linespec.h".
6679 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6680 (advance_to_expression_complete_word_point): New.
6681 (completion_tracker::completes_to_completion_word): New.
6682 (complete_files_symbols): Pass down
6683 complete_symbol_mode::EXPRESSION.
6684 (explicit_options, probe_options): New.
6685 (collect_explicit_location_matches): Complete on the
6686 explictit_loc->foo instead of word. Use
6687 linespec_complete_function. Handle MATCH_LINE. Handle offering
6688 keyword and options completions.
6689 (backup_text_ptr): Delete.
6690 (skip_keyword): New.
6691 (complete_explicit_location): Remove 'word' parameter. Add
6692 language, quoted_arg_start and quoted_arg_end parameters.
6693 Rewrite, parsing left to right.
6694 (location_completer): Rewrite.
6695 (location_completer_handle_brkchars): New function.
6696 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6697 (enum complete_line_internal_reason): Adjust comments.
6698 (completion_tracker::discard_completions): New.
6699 (completer_handle_brkchars_func_for_completer): Handle
6700 location_completer.
6701 (gdb_custom_word_point_brkchars)
6702 (gdb_org_rl_basic_quote_characters): New.
6703 (gdb_completion_word_break_characters_throw)
6704 (completion_find_completion_word): Handle trackers that use a
6705 custom word point.
6706 (completion_tracker::advance_custom_word_point_by): New.
6707 (completion_tracker::build_completion_result): Don't rely on
6708 readline appending the quote char.
6709 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6710 use a custom word point.
6711 (gdb_rl_attempted_completion_function): Restore
6712 rl_basic_quote_characters.
6713 * completer.h (class completion_tracker): Extend intro comment.
6714 (completion_tracker::set_quote_char)
6715 (completion_tracker::quote_char)
6716 (completion_tracker::set_use_custom_word_point)
6717 (completion_tracker::use_custom_word_point)
6718 (completion_tracker::custom_word_point)
6719 (completion_tracker::set_custom_word_point)
6720 (completion_tracker::advance_custom_word_point_by)
6721 (completion_tracker::completes_to_completion_word)
6722 (completion_tracker::discard_completions): New methods.
6723 (completion_tracker::m_quote_char)
6724 (completion_tracker::m_use_custom_word_point)
6725 (completion_tracker::m_custom_word_point): New fields.
6726 (advance_to_expression_complete_word_point): Declare.
6727 * f-lang.c (f_collect_symbol_completion_matches): Add
6728 complete_symbol_mode parameter.
6729 * language.h (struct language_defn)
6730 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6731 parameter.
6732 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6733 (linespec_complete_function): New function.
6734 (linespec_lexer_lex_keyword): Adjust.
6735 * linespec.h (linespec_keywords, linespec_complete_function): New
6736 declarations.
6737 * location.c (find_end_quote): New function.
6738 (explicit_location_lex_one): Add explicit_completion_info
6739 parameter. Save quoting info. Don't throw if being called for
6740 completion. Don't handle Ada operators here.
6741 (is_cp_operator, skip_op_false_positives, first_of)
6742 (explicit_location_lex_one_function): New function.
6743 (string_to_explicit_location): Replace 'dont_throw' parameter with
6744 an explicit_completion_info pointer parameter. Handle it. Don't
6745 use explicit_location_lex_one to lex function names. Use
6746 explicit_location_lex_one_function instead.
6747 * location.h (struct explicit_completion_info): New.
6748 (string_to_explicit_location): Replace 'dont_throw' parameter with
6749 an explicit_completion_info pointer parameter.
6750 * symtab.c (default_collect_symbol_completion_matches_break_on):
6751 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6752 (default_collect_symbol_completion_matches)
6753 (collect_symbol_completion_matches): Add complete_symbol_mode
6754 parameter.
6755 (collect_symbol_completion_matches_type): Pass down
6756 complete_symbol_mode::EXPRESSION.
6757 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6758 parameter. Handle LINESPEC mode.
6759 * symtab.h (complete_symbol_mode): New.
6760 (default_collect_symbol_completion_matches_break_on)
6761 (default_collect_symbol_completion_matches)
6762 (collect_symbol_completion_matches)
6763 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6764 parameter.
6765
1d550c82
PA
67662017-07-17 Pedro Alves <palves@redhat.com>
6767
6768 * utils.c (enum class strncmp_iw_mode): New.
6769 (strcmp_iw): Rename to ...
6770 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6771 parameters. Handle them.
6772 (strncmp_iw): New.
6773 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6774 * utils.h (strncmp_iw): Declare.
6775 (strcmp_iw): Move describing comments here.
6776
8090b426
PA
67772017-07-17 Pedro Alves <palves@redhat.com>
6778
6779 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6780 CP_OPERATOR_STR.
6781 * c-typeprint.c (is_type_conversion_operator): Use
6782 CP_OPERATOR_STR.
6783 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6784 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6785 CP_OPERATOR_LEN.
6786 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6787 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6788 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6789 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6790 CP_OPERATOR_STR.
6791 * location.c: Include "cp-support.h".
6792 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6793 CP_OPERATOR_STR.
6794 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6795 CP_OPERATOR_LEN.
6796
6a2c1b87
PA
67972017-07-17 Pedro Alves <palves@redhat.com>
6798
6799 * cli/cli-cmds.c (complete_command): Use a completion tracker
6800 along with completion_find_completion_word for handle_brkchars
6801 phase.
6802 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6803 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6804 (struct gdb_rl_completion_word_info): New.
6805 (gdb_rl_find_completion_word): New.
6806 (completion_find_completion_word): New.
6807 * completer.h (completion_find_completion_word): Declare.
6808
eb3ff9a5
PA
68092017-07-17 Pedro Alves <palves@redhat.com>
6810
6811 * ada-lang.c (symbol_completion_match): Adjust comments.
6812 (symbol_completion_add): Replace vector parameter with
6813 completion_tracker parameter. Use it.
6814 (ada_make_symbol_completion_list): Rename to...
6815 (ada_collect_symbol_completion_matches): ... this. Add
6816 completion_tracker parameter and use it.
6817 (ada_language_defn): Adjust.
6818 * break-catch-syscall.c (catch_syscall_completer): Adjust
6819 prototype and work with completion_tracker instead of VEC.
6820 * breakpoint.c (condition_completer): Adjust prototype and work
6821 with completion_tracker instead of VEC.
6822 * c-lang.c (c_language_defn, cplus_language_defn)
6823 (asm_language_defn, minimal_language_defn): Adjust to renames.
6824 * cli/cli-cmds.c (complete_command): Rework using
6825 completion_tracker. Catch exceptions when completing.
6826 * cli/cli-decode.c (integer_unlimited_completer)
6827 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6828 with completion_tracker instead of VEC.
6829 * command.h (struct completion_tracker): Forward declare.
6830 (completer_ftype, completer_handle_brkchars_ftype): Change
6831 types.
6832 (complete_on_cmdlist, complete_on_enum): Adjust.
6833 * completer.c: Include <algorithm>.
6834 (struct gdb_completer_state): New.
6835 (current_completion): New global.
6836 (readline_line_completion_function): Delete.
6837 (noop_completer, filename_completer)
6838 (filename_completer_handle_brkchars, complete_files_symbols)
6839 (linespec_location_completer): Adjust to work with a
6840 completion_tracker instead of a VEC.
6841 (string_or_empty): New.
6842 (collect_explicit_location_matches): Adjust to work with a
6843 completion_tracker instead of a VEC.
6844 (explicit_location_completer): Rename to ...
6845 (complete_explicit_location): ... this and adjust to work with a
6846 completion_tracker instead of a VEC.
6847 (location_completer): Adjust to work with a completion_tracker
6848 instead of a VEC.
6849 (add_struct_fields): Adjust to work with a completion_list instead
6850 of VEC.
6851 (expression_completer): Rename to ...
6852 (complete_expression): ... this and adjust to work with a
6853 completion_tracker instead of a VEC. Use complete_files_symbols.
6854 (expression_completer): Reimplement on top of complete_expression.
6855 (symbol_completer): Adjust to work with a completion_tracker
6856 instead of a VEC.
6857 (enum complete_line_internal_reason): Add describing comments.
6858 (complete_line_internal_normal_command): Adjust to work with a
6859 completion_tracker instead of a VEC.
6860 (complete_line_internal): Rename to ...
6861 (complete_line_internal_1): ... this and adjust to work with a
6862 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6863 handle_brkchars phase.
6864 (new_completion_tracker): Delete.
6865 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
6866 complete_line_internal_1.
6867 (free_completion_tracker): Delete.
6868 (INITIAL_COMPLETION_HTAB_SIZE): New.
6869 (completion_tracker::completion_tracker)
6870 (completion_tracker::~completion_tracker): New.
6871 (maybe_add_completion): Delete.
6872 (completion_tracker::maybe_add_completion)
6873 (completion_tracker::add_completion)
6874 (completion_tracker::add_completions): New.
6875 (throw_max_completions_reached_error): Delete.
6876 (complete_line): Adjust to work with a completion_tracker instead
6877 of a VEC. Don't create a completion_tracker_t or check for max
6878 completions here.
6879 (command_completer, command_completer_handle_brkchars)
6880 (signal_completer, reg_or_group_completer_1)
6881 (reg_or_group_completer, default_completer_handle_brkchars):
6882 Adjust to work with a completion_tracker.
6883 (gdb_completion_word_break_characters_throw): New.
6884 (gdb_completion_word_break_characters): Reimplement.
6885 (line_completion_function): Delete.
6886 (completion_tracker::recompute_lowest_common_denominator)
6887 (expand_preserving_ws)
6888 (completion_tracker::build_completion_result)
6889 (completion_result::completion_result)
6890 (completion_result::completion_result)
6891 (completion_result::~completion_result)
6892 (completion_result::completion_result)
6893 (completion_result::release_match_list, compare_cstrings)
6894 (completion_result::sort_match_list)
6895 (completion_result::reset_match_list)
6896 (gdb_rl_attempted_completion_function_throw)
6897 (gdb_rl_attempted_completion_function): New.
6898 * completer.h (completion_list, struct completion_result)
6899 (class completion_tracker): New.
6900 (complete_line): Add completion_tracker parameter.
6901 (readline_line_completion_function): Delete.
6902 (gdb_rl_attempted_completion_function): New.
6903 (noop_completer, filename_completer, expression_completer)
6904 (location_completer, symbol_completer, command_completer)
6905 (signal_completer, reg_or_group_completer): Update prototypes.
6906 (completion_tracker_t, new_completion_tracker)
6907 (make_cleanup_free_completion_tracker): Delete.
6908 (enum maybe_add_completion_enum): Delete.
6909 (maybe_add_completion): Delete.
6910 (throw_max_completions_reached_error): Delete.
6911 * corefile.c (complete_set_gnutarget): Adjust to work with a
6912 completion_tracker instead of a VEC.
6913 * cp-abi.c (cp_abi_completer): Adjust to work with a
6914 completion_tracker instead of a VEC.
6915 * d-lang.c (d_language_defn): Adjust.
6916 * disasm.c (disassembler_options_completer): Adjust to work with a
6917 completion_tracker instead of a VEC.
6918 * f-lang.c (f_make_symbol_completion_list): Rename to ...
6919 (f_collect_symbol_completion_matches): ... this. Adjust to work
6920 with a completion_tracker instead of a VEC.
6921 (f_language_defn): Adjust.
6922 * go-lang.c (go_language_defn): Adjust.
6923 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
6924 Adjust to work with a completion_tracker instead of a VEC.
6925 * infrun.c (handle_completer): Likewise.
6926 * interps.c (interpreter_completer): Likewise.
6927 * interps.h (interpreter_completer): Likewise.
6928 * language.c (unknown_language_defn, auto_language_defn)
6929 (local_language_defn): Adjust.
6930 * language.h (language_defn::la_make_symbol_completion_list):
6931 Rename to ...
6932 (language_defn::la_collect_symbol_completion_matches): ... this
6933 and adjust to work with a completion_tracker instead of a VEC.
6934 * m2-lang.c (m2_language_defn): Adjust.
6935 * objc-lang.c (objc_language_defn): Adjust.
6936 * opencl-lang.c (opencl_language_defn): Adjust.
6937 * p-lang.c (pascal_language_defn): Adjust.
6938 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
6939 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
6940 with a completion_tracker.
6941 * rust-lang.c (rust_language_defn): Adjust.
6942 * symtab.c (free_completion_list, do_free_completion_list)
6943 (return_val, completion_tracker): Delete.
6944 (completion_list_add_name, completion_list_add_symbol)
6945 (completion_list_add_msymbol, completion_list_objc_symbol)
6946 (completion_list_add_fields, add_symtab_completions): Add
6947 completion_tracker parameter and use it.
6948 (default_make_symbol_completion_list_break_on_1): Rename to...
6949 (default_collect_symbol_completion_matches_break_on): ... this.
6950 Add completion_tracker parameter and use it instead of allocating
6951 a completion tracker here.
6952 (default_make_symbol_completion_list_break_on): Delete old
6953 implementation.
6954 (default_make_symbol_completion_list): Delete.
6955 (default_collect_symbol_completion_matches): New.
6956 (make_symbol_completion_list): Delete.
6957 (collect_symbol_completion_matches): New.
6958 (make_symbol_completion_type): Rename to ...
6959 (collect_symbol_completion_matches_type): ... this. Add
6960 completion_tracker parameter and use it instead of VEC.
6961 (make_file_symbol_completion_list_1): Rename to...
6962 (collect_file_symbol_completion_matches): ... this. Add
6963 completion_tracker parameter and use it instead of VEC.
6964 (make_file_symbol_completion_list): Delete.
6965 (add_filename_to_list): Use completion_list instead of a VEC.
6966 (add_partial_filename_data::list): Now a completion_list.
6967 (make_source_files_completion_list): Work with a completion_list
6968 instead of a VEC.
6969 * symtab.h: Include "completer.h".
6970 (default_make_symbol_completion_list_break_on)
6971 (default_make_symbol_completion_list, make_symbol_completion_list)
6972 (make_symbol_completion_type, make_file_symbol_completion_list)
6973 (make_source_files_completion_list): Delete.
6974 (default_collect_symbol_completion_matches_break_on)
6975 (default_collect_symbol_completion_matches)
6976 (collect_symbol_completion_matches)
6977 (collect_symbol_completion_matches_type)
6978 (collect_file_symbol_completion_matches)
6979 (make_source_files_completion_list): New.
6980 * top.c (init_main): Don't install a rl_completion_entry_function
6981 hook. Install a rl_attempted_completion_function hook instead.
6982 * tui/tui-layout.c (layout_completer): Adjust to work with a
6983 completion_tracker.
6984 * tui/tui-regs.c (tui_reggroup_completer):
6985 * tui/tui-win.c (window_name_completer, focus_completer)
6986 (winheight_completer): Adjust to work with a completion_tracker.
6987 * value.c: Include "completer.h".
6988 (complete_internalvar): Adjust to work with a completion_tracker.
6989 * value.h (complete_internalvar): Likewise.
6990
6e1dbf8c
PA
69912017-07-17 Pedro Alves <palves@redhat.com>
6992
6993 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
6994 renames.
6995 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
6996 comments to completer_ftype's declaration.
6997 <completer_handle_brkchars>: Change type to
6998 completer_handle_brkchars_ftype.
6999 * command.h (completer_ftype): Add describing comment and give
7000 names to parameters.
7001 (completer_ftype_void): Rename to ...
7002 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7003 (set_cmd_completer_handle_brkchars): Adjust.
7004 * completer.c (filename_completer_handle_brkchars): New function.
7005 (complete_line_internal_normal_command): New function, factored
7006 out from ...
7007 (complete_line_internal): ... here.
7008 (command_completer_handle_brkchars)
7009 (default_completer_handle_brkchars)
7010 (completer_handle_brkchars_func_for_completer): New functions.
7011 * completer.h (set_gdb_completion_word_break_characters): Delete
7012 declaration.
7013 (completer_handle_brkchars_func_for_completer): New declaration.
7014 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7015 completer_handle_brkchars_func_for_completer.
7016
78b13106
PA
70172017-07-17 Pedro Alves <palves@redhat.com>
7018
7019 * completer.c (symbol_completer): New function, based on
7020 make_symbol_completion_list_fn.
7021 * completer.h (symbol_completer): New declaration.
7022 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7023 * python/py-cmd.c (completers): Adjust.
7024 * symtab.c (make_symbol_completion_list_fn): Delete.
7025 * symtab.h (make_symbol_completion_list_fn): Delete.
7026 * cli/cli-decode.c (add_cmd): Adjust.
7027
bbf2f4df
PA
70282017-07-17 Pedro Alves <palves@redhat.com>
7029
7030 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7031 * dwarf2read.c: Include "filename-seen-cache.h".
7032 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7033 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7034 * filename-seen-cache.c: New file.
7035 * filename-seen-cache.h: New file.
7036 * symtab.c: Include "filename-seen-cache.h".
7037 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7038 (create_filename_seen_cache, clear_filename_seen_cache)
7039 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7040 to filename-seen-cache.h/filename-seen-cache.c.
7041 (output_source_filename, sources_info)
7042 (maybe_add_partial_symtab_filename)
7043 (make_source_files_completion_list): Adjust to use
7044 filename_seen_cache.
7045
330cdd98
PA
70462017-07-17 Pedro Alves <palves@redhat.com>
7047
7048 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7049 fields.
7050 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7051 dwarf2_debug_sections*)): New.
7052 (dwarf2_per_objfile::dwarf2_per_objfile(const
7053 dwarf2_per_objfile&)): Declare as deleted.
7054 (dwarf2_per_objfile::operator=): Declare as deleted.
7055 (dwarf2_per_objfile::dwarf2_per_objfile)
7056 (dwarf2_per_objfile::~dwarf2_per_objfile)
7057 (dwarf2_per_objfile::free_cached_comp_units): New.
7058 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7059 ctor. Call dwarf2_per_objfile's ctor manually.
7060 (dwarf2_locate_sections): Deleted/refactored as ...
7061 (dwarf2_per_objfile::locate_sections): ... this new method.
7062 (free_cached_comp_units): Defer to
7063 dwarf2_per_objfile::free_cached_comp_units.
7064 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7065
8880f2a9
TT
70662017-07-14 Tom Tromey <tom@tromey.com>
7067
7068 PR rust/21764:
7069 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7070 parameter.
7071 <UNOP_SIZEOF>: Split into separate case.
7072 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7073
65547233
TT
70742017-07-14 Tom Tromey <tom@tromey.com>
7075
7076 PR rust/21763:
7077 * symtab.c (symbol_matches_domain): Add language_rust to special
7078 case.
7079 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7080 treat LOC_TYPEDEF symbols as variables.
7081
8f14146e
PA
70822017-07-14 Pedro Alves <palves@redhat.com>
7083
7084 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7085 symtabs matching all symtabs with SRCFILE as file name instead of
7086 only considering the first hit, with lookup_symtab.
7087
2347965c
SM
70882017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7089
7090 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7091 operator_name parameters.
7092 (gen_expr): Update function call.
7093
40f4af28
SM
70942017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7095
7096 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7097 parameter.
7098 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7099 Likewise.
7100 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7101 parameter, use agent_expr::gdbarch instead, update function
7102 calls.
7103 (locexpr_tracepoint_var_ref): Likewise.
7104 (loclist_tracepoint_var_ref): Likewise.
7105 * ax-gdb.c (gen_trace_static_fields): Likewise.
7106 (gen_traced_pop): Likewise.
7107 (gen_frame_args_address): Likewise.
7108 (gen_frame_locals_address): Likewise.
7109 (gen_var_ref): Likewise.
7110 (gen_struct_ref_recursive): Likewise.
7111 (gen_static_field): Likewise.
7112 (gen_maybe_namespace_elt): Likewise.
7113 (gen_expr): Likewise.
7114 (gen_trace_for_var): Likewise.
7115 (gen_trace_for_expr): Likewise.
7116 (gen_trace_for_return_address): Likewise.
7117
053f8057
SM
71182017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7119
7120 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7121 parameter.
7122 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7123
6661ad48
SM
71242017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7125
7126 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7127 from ax, update calls.
7128 (gen_usual_arithmetic): Likewise.
7129 (gen_integral_promotions): Likewise.
7130 (gen_bitfield_ref): Likewise.
7131 (gen_primitive_field): Likewise.
7132 (gen_struct_ref_recursive): Likewise.
7133 (gen_struct_ref): Likewise.
7134 (gen_maybe_namespace_elt): Likewise.
7135 (gen_struct_elt_for_reference): Likewise.
7136 (gen_namespace_elt): Likewise.
7137 (gen_aggregate_elt_ref): Likewise.
7138 (gen_expr): Get gdbarch from ax, update calls.
7139 (gen_expr_binop_rest): Likewise.
7140
c55a47e7
PA
71412017-07-13 Pedro Alves <palves@redhat.com>
7142
7143 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7144 as default tdesc.
7145 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7146 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7147 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7148 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7149 tdep.
7150 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7151 Get final tdesc from the tdep.
7152 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7153 default tdesc.
7154 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7155 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7156 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7157 Use it as default tdesc.
7158 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7159 down to amd_init_abi. No longer handle fallback tdesc here.
7160 * amd64-tdep.h (tdesc_x32): Declare.
7161 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7162 parameter.
7163 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7164 as default tdesc.
7165
55efceab
AA
71662017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7167
7168 * s390-linux-tdep.c (s390_process_record): Add support for
7169 instructions new in arch12.
7170
0aa37b65
JB
71712017-07-11 John Baldwin <jhb@FreeBSD.org>
7172
7173 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7174 PT_GETFSBASE and PT_GETGSBASE.
7175 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7176 PT_SETGSBASE.
7177
48aeef91
JB
71782017-07-11 John Baldwin <jhb@FreeBSD.org>
7179
7180 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7181 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7182 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7183 those rules.
7184 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7185 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7186 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7187 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7188 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7189 * features/i386/amd64.xml: Add 64bit-segments.xml.
7190 * features/i386/amd64-avx-avx512.c: Regenerated.
7191 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7192 * features/i386/amd64-avx-mpx.c: Regenerated.
7193 * features/i386/amd64-avx.c: Regenerated.
7194 * features/i386/amd64-mpx.c: Regenerated.
7195 * features/i386/amd64.c: Regenerated.
7196 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7197 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7198 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7199 * regformats/i386/amd64-avx.dat: Regenerated.
7200 * regformats/i386/amd64-mpx.dat: Regenerated.
7201 * regformats/i386/amd64.dat: Regenerated.
7202
77c501bc
YQ
72032017-07-10 Yao Qi <yao.qi@linaro.org>
7204
7205 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7206 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7207
6dc8d757
AK
72082017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7209
7210 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7211 unsetenv.
7212 * gnulib/aclocal.m4: Regenerate.
7213 * gnulib/config.in: Regenerate.
7214 * gnulib/configure: Regenerate.
7215 * gnulib/import/Makefile.am: Regenerate.
7216 * gnulib/import/Makefile.in: Regenerate.
7217 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7218 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7219 * gnulib/import/m4/environ.m4: New file.
7220 * gnulib/import/m4/setenv.m4: New file.
7221 * gnulib/import/setenv.c: New file.
7222 * gnulib/import/unsetenv.c: New file.
7223
266934d1
SM
72242017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7225
7226 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7227 address when op is DW_OP_addr.
7228
03278692
TT
72292017-07-09 Tom Tromey <tom@tromey.com>
7230
7231 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7232 check and apply to outer type.
7233
4b654465
JB
72342017-07-07 John Baldwin <jhb@FreeBSD.org>
7235
7236 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7237 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7238 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7239 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7240
2af9fc44
JB
72412017-07-07 John Baldwin <jhb@FreeBSD.org>
7242
7243 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7244
382b69bb
JB
72452017-07-07 John Baldwin <jhb@FreeBSD.org>
7246
7247 * corelow.c (get_core_siginfo): Remove.
7248 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7249 instead of get_core_siginfo.
7250 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7251 * gdbarch.h: Re-generate.
7252 * gdbarch.c: Re-generate.
7253 * linux-tdep.c (linux_core_xfer_siginfo): New.
7254 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7255
6e5eab33
JB
72562017-07-07 John Baldwin <jhb@FreeBSD.org>
7257
7258 * corelow.c (thread_section_name): Move to ...
7259 * gdbcore.h (thread_section_name): ... here.
7260
929edea9
JB
72612017-07-07 John Baldwin <jhb@FreeBSD.org>
7262
7263 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7264 (struct siginfo32): New.
7265 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7266 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7267 via ptrace(PT_LWPINFO).
7268
762c974a
JB
72692017-07-07 John Baldwin <jhb@FreeBSD.org>
7270
7271 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7272 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7273 (fbsd_get_siginfo_type): New.
7274 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7275 (_initialize_fbsd_tdep): New.
7276
33c5cd75
DB
72772017-07-06 David Blaikie <dblaikie@gmail.com>
7278
7279 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7280 a singular dwo_unit*) to support multiple CUs in the same way that
7281 multiple TUs are supported.
7282 (create_cus_hash_table): Replace create_dwo_cu with a function for
7283 parsing multiple CUs from a DWO file.
7284 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7285 create_dwo_cu.
7286 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7287 htab_find, rather than comparing the signature to a singleton CU in
7288 the dwo_file.
7289
8455d262
PA
72902017-07-06 Pedro Alves <palves@redhat.com>
7291
7292 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7293
4da3eb35
PA
72942017-07-04 Pedro Alves <palves@redhat.com>
7295
7296 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7297 * gdbtypes.h (TYPE_STATIC): Delete.
7298 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7299 is_synchronized, is_native>: Delete.
7300 <dummy>: Bump.
7301 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7302 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7303 (TYPE_FN_FIELD_ABSTRACT): Delete.
7304
5bfd255c
SM
73052017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7306
7307 * buffer.h (buffer_finish): Fix spelling mistakes.
7308
25c54127
EZ
73092017-07-01 Eli Zaretskii <eliz@gnu.org>
7310
7311 * .dir-locals.el: Automatically switch to C-style comments in
7312 versions of Emacs that support the feature.
7313
dc4bde35
SDJ
73142017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7315 Pedro Alves <palves@redhat.com>
7316
7317 PR cli/21688
7318 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7319 (process_next_line): New variable 'inline_cmd'.
7320 Adjust 'if' clauses for "python", "compile" and "guile" to use
7321 'command_name_equals' and check for '!inline_cmd'.
7322
51ed89aa
SDJ
73232017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7324
7325 PR cli/21688
7326 * cli/cli-script.c (command_name_equals_not_inline): New function.
7327 (process_next_line): Adjust 'if' clauses for "python", "compile"
7328 and "guile" to use command_name_equals_not_inline.
7329
eb17d413
PA
73302017-06-29 Pedro Alves <palves@redhat.com>
7331
7332 * completer.c (expression_completer): Call
7333 linespec_location_completer instead of location_completer.
7334
195bcdd5
PA
73352017-06-29 Pedro Alves <palves@redhat.com>
7336
7337 * completer.c (expression_completer): Remove code that recomputes
7338 'text' from 'word'.
7339
adc764e7
YQ
73402017-06-29 Yao Qi <yao.qi@linaro.org>
7341
7342 * regformats/regdat.sh: Generate code with
7343 "ifndef IN_PROCESS_AGENT".
7344
6e75794e
PA
73452017-06-28 Pedro Alves <palves@redhat.com>
7346
7347 * command.h: Include "common/scoped_restore.h".
7348
bc491f2e
YQ
73492017-06-28 Yao Qi <yao.qi@linaro.org>
7350
7351 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7352 instead of obstack_grow.
7353
41664b45
DG
73542017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7355
7356 PR gdb/21337
7357 * symfile.c (reread_symbols): Call objfiles_changed just before
7358 read_symbols.
7359
6da67eb1
PA
73602017-06-27 Pedro Alves <palves@redhat.com>
7361
7362 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7363 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7364 (completion_list_add_symbol, completion_list_add_msymbol):
7365 ... these new functions.
7366 (add_symtab_completions)
7367 (default_make_symbol_completion_list_break_on_1): Adjust.
7368
23732b1e
PA
73692017-06-27 Pedro Alves <palves@redhat.com>
7370
7371 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7372 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7373 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7374 dtor.
7375 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7376 'storage_obstack' field an auto_obstack. In-class initialize all
7377 non-bitfield fields. Make minsyms_read bool.
7378 * symfile.c (read_symbols): Adjust.
7379
a4d1e79a
AH
73802017-06-27 Alan Hayward <alan.hayward@arm.com>
7381
7382 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7383 (gdbsim_store_register): Likewise.
7384
8268c778
PA
73852017-06-27 Pedro Alves <palves@redhat.com>
7386
7387 * c-exp.y (name_obstack): Now an auto_obstack.
7388 (yylex): Use auto_obstack::clear.
7389 (c_parse): Use auto_obstack::clear instead of reinitializing and
7390 freeing the obstack.
7391 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7392 * d-exp.y (name_obstack): Now an auto_obstack.
7393 (yylex): Use auto_obstack::clear.
7394 (d_parse): Use auto_obstack::clear instead of reinitializing and
7395 freeing the obstack.
7396 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7397 auto_obstack.
7398 * dwarf2read.c (create_addrmap_from_index)
7399 (dwarf2_build_psymtabs_hard)
7400 (update_enumeration_type_from_children): Likewise.
7401 * gdb_obstack.h (auto_obstack): New type.
7402 * go-exp.y (name_obstack): Now an auto_obstack.
7403 (build_packaged_name): Use auto_obstack::clear.
7404 (go_parse): Use auto_obstack::clear instead of reinitializing and
7405 freeing the obstack.
7406 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7407 auto_obstack.
7408 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7409 * rust-exp.y (work_obstack): Now an auto_obstack.
7410 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7411 reinitializing and freeing the obstack.
7412 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7413 (host_char_to_target): Use auto_obstack.
7414 * utils.h (make_cleanup_obstack_free): Delete declaration.
7415 * valprint.c (generic_emit_char, generic_printstr): Use
7416 auto_obstack.
7417
db665f42
SM
74182017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7419
7420 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7421 thread.
7422 (darwin_init_thread_list): Don't update dummy thread.
7423 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7424
873c0814
SM
74252017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7426
7427 * record-full.c (netorder16): Remove.
7428
8b5a7a6e
SM
74292017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7430
7431 * common/diagnostics.h: Define macros for GCC.
7432 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7433 * common/vec.h: Include diagnostics.h.
7434 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7435 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7436 warning.
7437
d1435379
SM
74382017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7439
7440 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7441 New macro.
7442 * ada-lex.l: Ignore deprecated register warnings.
7443
cc75e0fd
SM
74442017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7445
7446 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7447 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7448
07809eaf
SM
74492017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7450
7451 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7452 its own line.
7453
f076f034
SM
74542017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7455
7456 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7457
0dd5cbc5
AH
74582017-06-23 Alan Hayward <alan.hayward@arm.com>
7459
7460 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7461 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7462 (xtensa_register_read_masked): Likewise.
7463
d4c6ce5b
SDJ
74642017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7465
7466 * common/environ.c (gdb_environ::unset): Update comment.
7467
16892a03
AH
74682017-06-22 Alan Hayward <alan.hayward@arm.com>
7469
7470 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7471 registers.
7472
d7dcbefc
AH
74732017-06-22 Alan Hayward <alan.hayward@arm.com>
7474
7475 * record-full.c (record_full_exec_insn): Use byte_vector.
7476
b30ff123
YQ
74772017-06-22 Yao Qi <yao.qi@linaro.org>
7478
7479 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7480 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7481
4fa847d7
AH
74822017-06-22 Alan Hayward <alan.hayward@arm.com>
7483
7484 * remote.c (cached_reg): Move from here...
7485 * regcache.h (cached_reg): ...to here.
7486 * python/py-unwind.c (struct reg_info): Remove.
7487 (cached_frame_info): Use cached_reg_t.
7488 (pyuw_prev_register): Likewise.
7489 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7490 (pyuw_dealloc_cache): Free all registers.
7491
f4906a9a
PA
74922017-06-22 Pedro Alves <palves@redhat.com>
7493 Simon Marchi <simon.marchi@ericsson.com>
7494
7495 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7496 warning.
7497 * common/diagnostics.h: New file.
7498
b45a1208
PA
74992017-06-22 Pedro Alves <palves@redhat.com>
7500
7501 * common/agent.h: Add include guards.
7502
e4da2c61
SM
75032017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7504
7505 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7506 talk about addressable units instead of bytes.
7507
96160d60
SDJ
75082017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7509
7510 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7511 of '::const_iterator'.
7512
9a6c7d9c
SDJ
75132017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7514
7515 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7516 'unittests/environ-selftests.c'.
7517 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7518 * charset.c (find_charset_names): Declare object 'iconv_env'.
7519 Update code to use 'iconv_env' object. Remove call to
7520 'free_environ'.
7521 * common/environ.c: Include <utility>.
7522 (make_environ): Delete function.
7523 (free_environ): Delete function.
7524 (gdb_environ::clear): New function.
7525 (gdb_environ::operator=): New function.
7526 (gdb_environ::get): Likewise.
7527 (environ_vector): Delete function.
7528 (set_in_environ): Delete function.
7529 (gdb_environ::set): New function.
7530 (unset_in_environ): Delete function.
7531 (gdb_environ::unset): New function.
7532 (gdb_environ::envp): Likewise.
7533 * common/environ.h: Include <vector>.
7534 (struct gdb_environ): Delete; transform into...
7535 (class gdb_environ): ... this class.
7536 (free_environ): Delete prototype.
7537 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7538 environ_vector): Likewise.
7539 * infcmd.c (run_command_1): Update code to call
7540 'envp' from 'gdb_environ' class.
7541 (environment_info): Update code to call methods from 'gdb_environ'
7542 class.
7543 (unset_environment_command): Likewise.
7544 (path_info): Likewise.
7545 (path_command): Likewise.
7546 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7547 (inferior::inferior): Initialize 'environment' using the host's
7548 information.
7549 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7550 Include "environ.h".
7551 (class inferior) <environment>: Change type from 'struct
7552 gdb_environ' to 'gdb_environ'.
7553 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7554 methods from 'gdb_environ' class.
7555 * solib.c (solib_find_1): Likewise
7556 * unittests/environ-selftests.c: New file.
7557
75c554cf
YQ
75582017-06-20 Yao Qi <yao.qi@linaro.org>
7559
7560 * features/i386/i386-linux.xml: Exchange the order of including
7561 32bit-linux.xml and 32bit-sse.xml.
7562 * features/i386/i386-linux.c: Regenerated.
7563
72ddacb7
YQ
75642017-06-20 Yao Qi <yao.qi@linaro.org>
7565
7566 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7567 Delete copy ctor and assignment operator.
7568 (tdesc_type): Likewise.
7569 (tdesc_feature): Likewise.
7570 (tdesc_free_reg): Remove.
7571 (tdesc_create_reg): Use new.
7572 (tdesc_free_type): Remove.
7573 (tdesc_create_vector): Use new.
7574 (tdesc_create_union): Likewise.
7575 (tdesc_create_flags): Likewise.
7576 (tdesc_create_enum): Likewise.
7577 (tdesc_free_feature): Delete.
7578 (free_target_description): Use delete.
7579
325c9fd4
JB
75802017-06-19 John Baldwin <jhb@FreeBSD.org>
7581
7582 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7583 registers.
7584
16b7a719
PA
75852017-06-19 Pedro Alves <palves@redhat.com>
7586
7587 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7588 after gdb::unlinker.
7589
1c8e01c9
SDJ
75902017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7591
7592 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7593 gdb_environ to access an environment variable.
7594
ffce45d2
TP
75952017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7596
7597 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7598 gdb_byte*.
7599
1d4fbac9
SM
76002017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7601
7602 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7603
8465943a
SM
76042017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7605
7606 * configure: Re-generate.
7607 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7608
3e019bdc
SM
76092017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7610
7611 * configure: Re-generate.
7612 * warning.m4: Pass -Werror to compiler when checking for
7613 supported warning flags.
7614
cf0dd6f0
SM
76152017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7616
7617 * Makefile.in (COMPILE.pre): Add "-x c++".
7618
6f98355c
YQ
76192017-06-16 Alan Hayward <alan.hayward@arm.com>
7620 Pedro Alves <palves@redhat.com>
7621 Yao Qi <yao.qi@linaro.org>
7622
7623 * defs.h (RequireLongest): New.
7624 (extract_integer): Declare function template.
7625 (extract_signed_integer): Remove the declaration, but define it
7626 static inline.
7627 (extract_unsigned_integer): Likewise.
7628 (store_integer): Declare function template.
7629 (store_signed_integer): Remove the declaration, but define it
7630 static inline.
7631 (store_unsigned_integer): Likewise.
7632 * findvar.c (extract_integer): New function template.
7633 (extract_signed_integer): Remove.
7634 (extract_unsigned_integer): Remove.
7635 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7636 instantiations.
7637 (store_integer): New function template.
7638 (store_signed_integer): Remove.
7639 (store_unsigned_integer): Remove.
7640 (store_integer): Explicit instantiations.
7641 * regcache.c (regcache_raw_read_signed): Update.
7642 (regcache::raw_read): New function.
7643 (regcache::raw_read_signed): Remove.
7644 (regcache::raw_read_unsigned): Remove.
7645 (regcache_raw_read_unsigned): Update.
7646 (regcache_raw_write_unsigned): Update.
7647 (regcache::raw_write_signed): Remove.
7648 (regcache::raw_write): New function.
7649 (regcache_cooked_read_signed): Update.
7650 (regcache::raw_write_unsigned): Remove.
7651 (regcache::cooked_read_signed): Remove.
7652 (regcache_cooked_read_unsigned): Update.
7653 (regcache::cooked_read_unsigned): Remove.
7654 (regcache_cooked_write_signed): Update.
7655 (regcache_cooked_write_unsigned): Update.
7656 * regcache.h (regcache) <raw_read_signed>: Remove.
7657 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7658 <raw_read, raw_write>: New.
7659 <cooked_read_signed, cooked_write_signed>: Remove.
7660 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7661 <cooked_read, cooked_write>: New.
7662 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7663 (sh64_pseudo_register_write): Update.
7664
a87dc45a
AK
76652017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7666
7667 * arc-tdep.c (arc_disassembler_options): New variable.
7668 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7669 of default_print_insn.
7670 (arc_delayed_print_insn): Set info->section when needed,
7671 use default_print_insn to retrieve a disassembler.
7672
45159d6a
SDJ
76732017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7674
7675 PR gdb/21574
7676 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7677 to mention $SHELL and startup-with-shell.
7678
b46c4cf0
MF
76792017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7680
7681 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7682
6394c606
YQ
76832017-06-14 Yao Qi <yao.qi@linaro.org>
7684
7685 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7686 default_print_insn instead of print_insn_aarch64.
7687 * arm-tdep.c (gdb_print_insn_arm): Call
7688 default_print_insn instead of print_insn_big_arm
7689 and print_insn_little_arm.
7690 * i386-tdep.c (i386_print_insn): Call default_print_insn
7691 instead of print_insn_i386.
7692 * ia64-tdep.c (ia64_print_insn): Call
7693 default_print_insn instead of print_insn_ia64.
7694 * mips-tdep.c (gdb_print_insn_mips): Call
7695 default_print_insn instead of print_insn_big_mips
7696 and print_insn_little_mips.
7697 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7698 instead of print_insn_spu.
7699
d5722aa2
PA
77002017-06-14 Pedro Alves <palves@redhat.com>
7701
7702 * ada-lang.c: Include "common/byte-vector.h".
7703 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7704 * charset.c (wchar_iterator::iterate): Resize the vector instead
7705 of reserving it.
7706 * common/byte-vector.h: Include "common/def-vector.h".
7707 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7708 * cli/cli-dump.c: Include "common/byte-vector.h".
7709 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7710 * common/byte-vector.h: New file.
7711 * common/def-vector.h: New file.
7712 * common/default-init-alloc.h: New file.
7713 * dwarf2loc.c: Include "common/byte-vector.h".
7714 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7715 instead of reserving it.
7716 * dwarf2read.c: Include "common/byte-vector.h".
7717 (data_buf::m_vec): Now a gdb::byte_vector.
7718 * gdb_regex.c: Include "common/def-vector.h".
7719 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7720 * mi/mi-main.c: Include "common/byte-vector.h".
7721 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7722 * printcmd.c: Include "common/byte-vector.h".
7723 (print_scalar_formatted): Use gdb::byte_vector.
7724 * valprint.c: Include "common/byte-vector.h".
7725 (maybe_negate_by_bytes, print_decimal_chars): Use
7726 gdb::byte_vector.
7727
01ec7a27
SM
77282017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7729
7730 * darwin-nat.c: Include "nat/fork-inferior.h".
7731
848d9074
SM
77322017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7733
7734 * configure.nat: Factor out Darwin bits that are not
7735 architecture-specific. Add fork-inferior.o.
7736
3b912944
SM
77372017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7738
7739 * configure.nat: Factor out AIX bits that are not
7740 architecture-specific. Add fork-inferior.o.
7741
55acdf22
AA
77422017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7743
7744 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7745 (read_pieced_value, write_pieced_value): ...here. Reduce to
7746 wrappers that just call rw_pieced_value.
7747
f65e2044
AA
77482017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7749
7750 * dwarf2loc.c (write_pieced_value): When writing the data for a
7751 memory piece, use write_memory_with_notification instead of
7752 write_memory.
7753
23f945bf
AA
77542017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7755
7756 * valops.c (read_value_memory): Change embedded_offset to
7757 represent a bit offset instead of a byte offset.
7758 * value.h (read_value_memory): Adjust comment.
7759
f236533e
AA
77602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7761
7762 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7763 dest_offset_bits and source_offset_bits.
7764 (write_pieced_value): Likewise.
7765
65d84b76
AA
77662017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7767
7768 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7769 given by DW_OP_bit_piece.
7770 (write_pieced_value): Likewise.
7771
242d31ab
AA
77722017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7773
7774 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7775 some other preparations to the places where sufficient information
7776 is available.
7777 (write_pieced_value): Likewise.
7778
03c8af18
AA
77792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7780
7781 * dwarf2loc.c (bits_to_bytes): New function.
7782 (read_pieced_value): Fix offset calculations for register pieces
7783 on big-endian targets.
7784 (write_pieced_value): Likewise.
7785
840989c1
AA
77862017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7787
7788 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7789 (write_pieced_value): Likewise.
7790
359b19bb
AA
77912017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7792
7793 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7794 transfer the source value's least significant bits, instead of its
7795 lowest-addressed ones. Rename type_len to max_offset.
7796 (read_pieced_value): Mirror above changes to write_pieced_value as
7797 applicable.
7798
07c9ca3b
AA
77992017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7800
7801 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7802 truncate full bytes from dest_offset_bits before using it as an
7803 offset into the buffer.
7804
f1cc9874
AA
78052017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7806
7807 * dwarf2loc.c (write_pieced_value): Include transfer size in
7808 byte-wise check.
7809
cdaac320
AA
78102017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7811
7812 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7813 calculation of this_size.
7814
af547a96
AA
78152017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7816
7817 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7818 when targeting a bit-field.
7819 (write_pieced_value): Likewise.
7820
ddd7882a
AA
78212017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7822
7823 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7824 (allocate_piece_closure): Drop addr_size parameter.
7825 (dwarf2_evaluate_loc_desc_full): Adjust call to
7826 allocate_piece_closure.
7827
e9352324
AA
78282017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7829
7830 PR gdb/21226
7831 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7832 the LSB end, independent of endianness.
7833
d5d1163e
AA
78342017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7835
7836 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7837 size capping.
7838
032bb6ea
YQ
78392017-06-13 Yao Qi <yao.qi@linaro.org>
7840
7841 * mips-linux-nat.c: Move include features/mips*-linux.c to
7842 mips-linux-tdep.c.
7843 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7844 to mips-linux-tdep.c.
7845 * mips-linux-tdep.c: Include features/mips*-linux.c
7846 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7847 functions.
7848 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7849 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7850 (tdesc_mips64_dsp_linux): Declare.
7851
f12f6bad
TT
78522017-06-12 Tom Tromey <tom@tromey.com>
7853
7854 * valprint.h (val_print_type_code_int): Remove.
7855 * valprint.c (generic_val_print_int): Always call
7856 val_print_scalar_formatted.
7857 (val_print_type_code_int): Remove.
7858 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7859 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7860 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7861 * ada-valprint.c (ada_val_print_num): Use
7862 val_print_scalar_formatted.
7863
d9109c80
TT
78642017-06-12 Tom Tromey <tom@tromey.com>
7865
7866 * printcmd.c (print_scalar_formatted): Unify the two switches.
7867 Don't convert scalars to LONGEST.
7868
4ac0cb1c
TT
78692017-06-12 Tom Tromey <tom@tromey.com>
7870
7871 PR exp/16225:
7872 * valprint.h (print_decimal_chars): Update.
7873 * valprint.c (maybe_negate_by_bytes): New function.
7874 (print_decimal_chars): Add "is_signed" argument.
7875 * printcmd.c (print_scalar_formatted): Update.
7876
30a25466
TT
78772017-06-12 Tom Tromey <tom@tromey.com>
7878
7879 PR exp/16225:
7880 * valprint.h (print_binary_chars, print_hex_chars): Update.
7881 * valprint.c (val_print_type_code_int): Update.
7882 (print_binary_chars): Add "zero_pad" argument.
7883 (emit_octal_digit): New function.
7884 (print_octal_chars): Don't zero-pad.
7885 (print_decimal_chars): Likewise.
7886 (print_hex_chars): Add "zero_pad" argument.
7887 * sh64-tdep.c (sh64_do_fp_register): Update.
7888 * regcache.c (regcache::dump): Update.
7889 * printcmd.c (print_scalar_formatted): Update.
7890 * infcmd.c (default_print_one_register_info): Update.
7891
b3464d03
PA
78922017-06-12 Pedro Alves <palves@redhat.com>
7893 Alan Hayward <alan.hayward@arm.com>
7894
7895 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
7896 (mips_eabi_push_dummy_call): Rename local 'regsize' to
7897 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
7898 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
7899 Assert that abi_regsize bytes fit in 'ref_valbuf'.
7900
4b76cda9
PA
79012017-06-12 Pedro Alves <palves@redhat.com>
7902
7903 * dwarf2read.c (mapped_symtab::data): Now a vector of
7904 symtab_index_entry instead of vector of
7905 std::unique_ptr<symtab_index_entry>. All users adjusted to check
7906 whether an element's name is NULL instead of checking whether the
7907 element itself is NULL.
7908 (find_slot): Change return type. Adjust.
7909 (hash_expand, , add_index_entry, uniquify_cu_indices)
7910 (write_hash_table): Adjust.
7911
e8f8bcb3
PA
79122017-06-12 Pedro Alves <palves@redhat.com>
7913
7914 * dwarf2read.c (recursively_count_psymbols): New function.
7915 (write_psymtabs_to_index): Call it to compute number of psyms and
7916 pass estimate size of psyms_seen to unordered_set's ctor.
7917
70a1152b
PA
79182017-06-12 Pedro Alves <palves@redhat.com>
7919
7920 * dwarf2read.c (write_hash_table): Check if key already exists
7921 before emplacing.
7922
c2f134ac
PA
79232017-06-12 Pedro Alves <palves@redhat.com>
7924
7925 * dwarf2read.c (data_buf::append_space): Rename to...
7926 (data_buf::grow): ... this, and make private. Adjust all callers.
7927 (data_buf::append_uint): New method.
7928 (add_address_entry, write_one_signatured_type)
7929 (write_psymtabs_to_index): Use it.
7930
a81e6d4d
PA
79312017-06-12 Pedro Alves <palves@redhat.com>
7932
7933 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
7934 (file_write (FILE *, const std::vector<Elem>&)): Delete.
7935 (data_buf::file_write): Call ::fwrite directly.
7936
6fd931f2
PA
79372017-06-12 Pedro Alves <palves@redhat.com>
7938
7939 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
7940 std::vector::erase.
7941
bc8f2430
JK
79422017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7943
7944 Code cleanup: C++ify .gdb_index producer.
7945 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
7946 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
7947 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
7948 (create_strtab, add_string): Remove.
7949 (file_write, data_buf): New.
7950 (struct symtab_index_entry): Use std::vector for cu_indices.
7951 (struct mapped_symtab): Use std::vector for data.
7952 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
7953 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
7954 Remove.
7955 (find_slot): Change return type. Update it to the new data structures.
7956 (hash_expand, add_index_entry): Update it to the new data structures.
7957 (offset_type_compare): Remove.
7958 (uniquify_cu_indices): Update it to the new data structures.
7959 (c_str_view, c_str_view_hasher, vector_hasher): New.
7960 (add_indices_to_cpool): Remove.
7961 (write_hash_table): Update it to the new data structures.
7962 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
7963 (eq_psymtab_cu_index): Remove.
7964 (psym_index_map): New typedef.
7965 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
7966 reference and std::unordered_map for cu_index_htab.
7967 (add_address_entry, add_address_entry_worker, write_address_map)
7968 (write_psymbols): Update it to the new data structures.
7969 (write_obstack): Remove.
7970 (struct signatured_type_index_data): Change types_list to a data_buf
7971 reference and psyms_seen to a std::unordered_set reference.
7972 (write_one_signatured_type, recursively_write_psymbols)
7973 (write_psymtabs_to_index): Update it to the new data structures.
7974
c4dcb155
SM
79752017-06-11 Simon Marchi <simon.marchi@ericsson.com>
7976
7977 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
7978 separate-debug-file commands.
7979 * symfile.h (separate_debug_file_debug): New global.
7980 * symfile.c (separate_debug_file_debug): New global.
7981 (separate_debug_file_exists, find_separate_debug_file): Add
7982 debug output.
7983 (_initialize_symfile): Add "set debug separate-debug-file"
7984 command.
7985 * build-id.c (build_id_to_debug_bfd,
7986 find_separate_debug_file_by_buildid): Add debug output.
7987
6d45d4b4
SM
79882017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7989
7990 * gdbarch.sh (displaced_step_free_closure): Remove.
7991 * gdbarch.h, gdbarch.c: Re-generate.
7992 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
7993 displaced_step_free_closure.
7994 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7995 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7996 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7997 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7998 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7999 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8000 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8001 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8002 * infrun.c (displaced_step_clear): Call xfree instead of
8003 gdbarch_displaced_step_free_closure.
8004
2f91880f
SDJ
80052017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8006
8007 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8008 NULL".
8009
b8b6e72f
AH
80102017-06-08 Alan Hayward <alan.hayward@arm.com>
8011
8012 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8013 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8014 (mn10300_push_dummy_call): Likewise.
8015
5369082e
AH
80162017-06-08 Alan Hayward <alan.hayward@arm.com>
8017
8018 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8019
ff4ca5ac
AH
80202017-06-08 Alan Hayward <alan.hayward@arm.com>
8021
8022 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8023
aefd8b33
SDJ
80242017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8025
8026 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8027 able to start inferiors using a shell.
8028 (New remote packets): Announce new packet "QStartupWithShell".
8029 * remote.c: Add PACKET_QStartupWithShell.
8030 (extended_remote_create_inferior): Handle new
8031 PACKET_QStartupWithShell.
8032 (remote_protocol_features) <QStartupWithShell>: New entry for
8033 PACKET_QStartupWithShell.
8034 (_initialize_remote): Call "add_packet_config_cmd" for
8035 QStartupShell.
8036
2090129c
SDJ
80372017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8038 Pedro Alves <palves@redhat.com>
8039
8040 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8041 and "nat/fork-inferior.h".
8042 * common/common-inferior.h: New file, with contents from
8043 "gdb/inferior.h".
8044 * commom/common-utils.c: Include "common-utils.h".
8045 (stringify_argv): New function.
8046 * common/common-utils.h (stringify_argv): New prototype.
8047 * configure.nat: Add "fork-inferior.o" as a dependency for
8048 "*linux*", "fbsd*" and "nbsd*" hosts.
8049 * corefile.c (get_exec_file): Update comment.
8050 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8051 instead of "startup_inferior".
8052 (darwin_create_inferior): Call "add_thread_silent" after
8053 "fork_inferior".
8054 * fork-child.c: Cleanup unnecessary includes.
8055 (SHELL_FILE): Move to "common/common-fork-child.c".
8056 (environ): Likewise.
8057 (exec_wrapper): Initialize.
8058 (get_exec_wrapper): New function.
8059 (breakup_args): Move to "common/common-fork-child.c"; rename to
8060 "breakup_args_for_exec".
8061 (escape_bang_in_quoted_argument): Move to
8062 "common/common-fork-child.c".
8063 (saved_ui): New variable.
8064 (prefork_hook): New function.
8065 (postfork_hook): Likewise.
8066 (postfork_child_hook): Likewise.
8067 (gdb_startup_inferior): Likewise.
8068 (fork_inferior): Move to "common/common-fork-child.c". Update
8069 function to support gdbserver.
8070 (startup_inferior): Likewise.
8071 * gdbcore.h (get_exec_file): Remove declaration.
8072 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8073 instead of "startup_inferior". Call "add_thread_silent" after
8074 "fork_inferior".
8075 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8076 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8077 instead of "startup_inferior". Call "add_thread_silent" after
8078 "fork_inferior".
8079 * inferior.h: Include "common-inferior.h".
8080 (trace_start_error): Move to "common/common-utils.h".
8081 (trace_start_error_with_name): Likewise.
8082 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8083 (startup_inferior): Likewise.
8084 (gdb_startup_inferior): New prototype.
8085 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8086 * nat/fork-inferior.h: New file.
8087 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8088 instead of "startup_inferior". Call "add_thread_silent" after
8089 "fork_inferior".
8090 * target.h (target_terminal_init): Move prototype to
8091 "target/target.h".
8092 (target_terminal_inferior): Likewise.
8093 (target_terminal_ours): Likewise.
8094 * target/target.h (target_terminal_init): New prototype, moved
8095 from "target.h".
8096 (target_terminal_inferior): Likewise.
8097 (target_terminal_ours): Likewise.
8098 * utils.c (gdb_flush_out_err): New function.
8099
043a4934
SDJ
81002017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8101
8102 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8103 * common/common-gdbthread.h: New file, with parts from
8104 "gdb/gdbthread.h".
8105 * gdbthread.h: Include "common-gdbthread.h".
8106 (switch_to_thread): Moved to "common/common-gdbthread.h".
8107
15652511
SDJ
81082017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8109
8110 * Makefile.in (SFILES): Add "common/job-control.c".
8111 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8112 (COMMON_OBS): Add "job-control.o".
8113 * common/job-control.c: New file, with contents from
8114 "gdb/inflow.c".
8115 * common/job-control.h: New file, with contents from "terminal.h".
8116 * fork-child.c: Include "job-control.h".
8117 * inflow.c: Include "job-control.h".
8118 (gdb_setpgid): Move to "common/common-inflow.c".
8119 (_initialize_inflow): Move setting of "job_control" to
8120 "handle_job_control".
8121 * terminal.h (job_control): Moved to "common/common-terminal.h".
8122 (gdb_setpgid): Likewise.
8123 * top.c: Include "job_control.h".
8124 * utils.c: Likewise.
8125 (job_control): Moved to "job-control.c".
8126
2d7cc5c7
PA
81272017-06-07 Pedro Alves <palves@redhat.com>
8128
8129 * Makefile.in (SFILES): Add gdb_regex.c.
8130 (COMMON_OBS): Add gdb_regex.o.
8131 * ada-lang.c (ada_add_standard_exceptions)
8132 (ada_add_exceptions_from_frame, name_matches_regex)
8133 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8134 parameter type to compiled_regex. Adjust.
8135 (ada_exceptions_list): Use compiled_regex.
8136 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8137 std::unique_ptr<compiled_regex>.
8138 (exception_catchpoint::~exception_catchpoint): Remove regfree
8139 call.
8140 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8141 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8142 * breakpoint.c (solib_catchpoint::compiled): Now a
8143 std::unique_ptr<compiled_regex>.
8144 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8145 (check_status_catch_solib): Adjust to use compiled_regex.
8146 (add_solib_catchpoint): Adjust to use compiled_regex.
8147 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8148 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8149 compiled_regex reference. Adjust to use it.
8150 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8151 declaration. Include "gdb_regex.h".
8152 (apropos_cmd): Change regex parameter to compiled_regex reference.
8153 * gdb_regex.c: New file.
8154 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8155 declarations.
8156 (class compiled_regex): New.
8157 * linux-tdep.c: Include "common/gdb_optional.h".
8158 (struct mapping_regexes): New, factored out from
8159 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8160 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8161 gdb::optional and remove cleanups. Adjust to compiled_regex.
8162 * probe.c: Include "common/gdb_optional.h".
8163 (collect_probes): Use compiled_regex and gdb::optional and remove
8164 cleanups.
8165 * skip.c: Include "common/gdb_optional.h".
8166 (skiplist_entry::compiled_function_regexp): Now a
8167 gdb::optional<compiled_regex>.
8168 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8169 (free_skiplist_entry): Remove regfree call.
8170 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8171 compiled_regex and gdb::optional.
8172 * symtab.c: Include "common/gdb_optional.h".
8173 (search_symbols): Use compiled_regex and gdb::optional.
8174 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8175 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8176 to gdb_regex.c.
8177
50d6adef
AH
81782017-06-07 Alan Hayward <alan.hayward@arm.com>
8179
8180 * regcache.c (regcache::save): Avoid buffer use.
8181 (regcache::dump): Likewise.
8182
4a8a33c8
AH
81832017-06-07 Alan Hayward <alan.hayward@arm.com>
8184
8185 * sh-tdep.c (sh_pseudo_register_read): Remove
8186 MAX_REGISTER_SIZE.
8187 (sh_pseudo_register_write): Likewise.
8188 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8189 (sh64_pseudo_register_write): Likewise
8190
d1be909e
AH
81912017-06-07 Alan Hayward <alan.hayward@arm.com>
8192
8193 * aarch64-tdep.c (aarch64_store_return_value): Use
8194 V_REGISTER_SIZE.
8195 (aarch64_pseudo_read_value): Likewise.
8196 (aarch64_pseudo_write): Likewise.
8197
f4a65042
YQ
81982017-06-06 Yao Qi <yao.qi@linaro.org>
8199
8200 * regformats/regdef.h (set_register_cache): Remove the
8201 declaration.
8202
9f7fb0aa
AH
82032017-06-06 Alan Hayward <alan.hayward@arm.com>
8204
8205 * frame.c (frame_unwind_register_signed): Use
8206 frame_unwind_register_value.
8207
e1e01040
PA
82082017-06-06 Pedro Alves <palves@redhat.com>
8209
8210 PR breakpoints/21553
8211 * breakpoint.c (create_breakpoints_sal_default)
8212 (init_breakpoint_sal, create_breakpoint_sal): Use
8213 gdb::unique_xmalloc_ptr for string parameters.
8214 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8215 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8216 (base_breakpoint_create_breakpoints_sal)
8217 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8218 (strace_marker_create_breakpoints_sal)
8219 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8220 string parameters.
8221 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8222 gdb::unique_xmalloc_ptr for string parameters.
8223 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8224 parameters.
8225
fbe654c8
AH
82262017-06-06 Alan Hayward <alan.hayward@arm.com>
8227
8228 * alpha-tdep.c (alpha_register_to_value): Use
8229 get_frame_register_value.
8230 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8231
ae0d01d6
AH
82322017-06-06 Alan Hayward <alan.hayward@arm.com>
8233
8234 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8235 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8236 (ia64_value_to_register): Likewise.
8237 (ia64_extract_return_value): Likewise.
8238 (ia64_store_return_value): Likewise.
8239 (ia64_push_dummy_call): Likewise.
8240
49cf576c
JB
82412017-06-04 Joel Brobecker <brobecker@adacore.com>
8242
8243 GDB 8.0 released.
8244
26b6a6ab
SM
82452017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8246
8247 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8248
22827c51
SM
82492017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8250
8251 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8252 parameter.
8253 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8254
0e05cf3a
SM
82552017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8256
8257 * event-loop.c (poll_timers): Unallocate timer using delete
8258 instead of xfree.
8259
c1fc2657
SM
82602017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8261
8262 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8263 (struct breakpoint) <~breakpoint>: New.
8264 (struct watchpoint): Inherit from breakpoint.
8265 <~watchpoint>: New.
8266 <base>: Remove.
8267 (struct tracepoint): Inherit from breakpoint.
8268 <base>: Remove.
8269 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8270 (struct longjmp_breakpoint): Inherit from breakpoint.
8271 <~longjmp_breakpoint>: New.
8272 <base>: Remove.
8273 (new_breakpoint_from_type): Remove casts.
8274 (watchpoint_in_thread_scope): Remove reference to base field.
8275 (watchpoint_del_at_next_stop): Likewise.
8276 (update_watchpoint): Likewise.
8277 (watchpoint_check): Likewise.
8278 (bpstat_check_watchpoint): Likewise.
8279 (set_longjmp_breakpoint): Likewise.
8280 (struct fork_catchpoint): Inherit from breakpoint.
8281 <base>: Remove.
8282 (struct solib_catchpoint): Inherit from breakpoint.
8283 <~solib_catchpoint>: New.
8284 <base>: Remove.
8285 (dtor_catch_solib): Change to ...
8286 (solib_catchpoint::~solib_catchpoint): ... this.
8287 (breakpoint_hit_catch_solib): Remove reference to base field.
8288 (add_solib_catchpoint): Likewise.
8289 (create_fork_vfork_event_catchpoint): Likewise.
8290 (struct exec_catchpoint): Inherit from breakpoint.
8291 <~exec_catchpoint>: New.
8292 <base>: Remove.
8293 (dtor_catch_exec): Change to ...
8294 (exec_catchpoint::~exec_catchpoint): ... this.
8295 (dtor_watchpoint): Change to ...
8296 (watchpoint::~watchpoint): ... this.
8297 (watch_command_1): Remove reference to base field.
8298 (catch_exec_command_1): Likewise.
8299 (base_breakpoint_dtor): Change to ...
8300 (breakpoint::~breakpoint): ... this.
8301 (base_breakpoint_ops): Remove dtor field value.
8302 (longjmp_bkpt_dtor): Change to ...
8303 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8304 (strace_marker_create_breakpoints_sal): Remove reference to base
8305 field.
8306 (delete_breakpoint): Don't manually call breakpoint destructor.
8307 (create_tracepoint_from_upload): Remove reference to base field.
8308 (trace_pass_set_count): Likewise.
8309 (initialize_breakpoint_ops): Don't initialize
8310 momentary_breakpoint_ops, don't set dtors.
8311 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8312 <~ada_catchpoint>: New.
8313 <base>: Remove.
8314 (create_excep_cond_exprs): Remove reference to base field.
8315 (dtor_exception): Change to ...
8316 (ada_catchpoint::~ada_catchpoint): ... this.
8317 (dtor_catch_exception): Remove.
8318 (dtor_catch_exception_unhandled): Remove.
8319 (dtor_catch_assert): Remove.
8320 (create_ada_exception_catchpoint): Remove reference to base
8321 field.
8322 (initialize_ada_catchpoint_ops): Don't set dtors.
8323 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8324 breakpoint.
8325 <~signal_catchpoint>: New.
8326 <base>: Remove.
8327 (signal_catchpoint_dtor): Change to ...
8328 (signal_catchpoint::~signal_catchpoint): ... this.
8329 (create_signal_catchpoint): Remove reference to base field.
8330 (initialize_signal_catchpoint_ops): Don't set dtor.
8331 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8332 from breakpoint.
8333 <~syscall_catchpoint>: New.
8334 <base>: Remove.
8335 (dtor_catch_syscall): Change to ...
8336 (syscall_catchpoint::~syscall_catchpoint): ... this.
8337 (create_syscall_event_catchpoint): Remove reference to base
8338 field.
8339 (initialize_syscall_catchpoint_ops): Don't set dtor.
8340 * break-catch-throw.c (struct exception_catchpoint): Inherit
8341 from breakpoint.
8342 <~exception_catchpoint>: New.
8343 <base>: Remove.
8344 (dtor_exception_catchpoint): Change to ...
8345 (exception_catchpoint::~exception_catchpoint): ... this.
8346 (handle_gnu_v3_exceptions): Remove reference to base field.
8347 (initialize_throw_catchpoint_ops): Don't set dtor.
8348 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8349 field.
8350 * remote.c (remote_get_tracepoint_status): Likewise.
8351 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8352 * tracefile.c (tracefile_fetch_registers): Likewise.
8353 * tracepoint.c (actions_command): Likewise.
8354 (validate_actionline): Likewise.
8355 (tfind_1): Likewise.
8356 (get_traceframe_location): Likewise.
8357 (find_matching_tracepoint_location): Likewise.
8358 (parse_tracepoint_status): Likewise.
8359 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8360
3b0871f4
SM
83612017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8362
8363 * breakpoint.c (struct longjmp_breakpoint): New struct.
8364 (is_tracepoint_type): Change return type to bool.
8365 (is_longjmp_type): New function.
8366 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8367 (set_raw_breakpoint_without_location): Use
8368 new_breakpoint_from_type.
8369 (set_raw_breakpoint): Likewise.
8370
a5e364af
SM
83712017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8372
8373 * breakpoint.c (new_breakpoint_from_type): New function.
8374 (create_breakpoint_sal): Use new_breakpoint_from_type and
8375 unique_ptr.
8376 (create_breakpoint): Likewise.
8377
ae3b3f34
SM
83782017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8379
8380 * memattr.c (mem_info_command): Rename to ...
8381 (info_mem_command): ... this.
8382 (mem_enable_command): Rename to ...
8383 (enable_mem_command): ... this.
8384 (mem_disable_command): Rename to ...
8385 (disable_mem_command): ... this.
8386 (mem_delete_command): Rename to ...
8387 (delete_mem_command): ... this.
8388 (_initialize_mem): Adjust function names.
8389
13ace077
MM
83902017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8391
8392 * btrace.c (handle_pt_insn_events): New.
8393 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8394 STATUS. Split into this and ...
8395 (handle_pt_insn_event_flags): ... this.
8396
c56ccc05
MM
83972017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8398
8399 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8400 and struct pt_insn.resynced.
8401 * configure: Regenerated.
8402 * config.in: Regenerated.
8403
08c3f6d2
TW
84042017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8405
8406 * btrace.c (ftrace_find_call_by_number): New function.
8407 (ftrace_new_function): Store objects, not pointers.
8408 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8409 ftrace_new_gap, ftrace_update_function,
8410 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8411 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8412 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8413 btrace_ends_with_single_insn, btrace_call_get): Account for
8414 btrace_thread_info::functions now storing objects.
8415 * btrace.h (struct btrace_thread_info): Add constructor.
8416 (struct btrace_thread_info) <functions>: Make std::vector.
8417 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8418 Initialize with default values.
8419 * record-btrace.c (record_btrace_frame_sniffer): Account for
8420 btrace_thread_info::functions now storing objects.
8421
8ffd39f2
TW
84222017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8423
8424 * btrace.c: Remove typedef bfun_s.
8425 (ftrace_new_gap): Directly add gaps to the list of gaps.
8426 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8427 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8428 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8429 instead of gdb VEC.
8430
4aeb0dfc
TW
84312017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8432
8433 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8434 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8435 with btrace_thread_info::next_segment and
8436 btrace_thread_info::prev_segment.
8437 * btrace.h: Remove struct btrace_func_link.
8438 (struct btrace_function): Replace pair of function segment pointers
8439 with pair of indices.
8440 * python/py-record-btrace.c (btpy_call_prev_sibling,
8441 btpy_call_next_sibling): Replace references to
8442 btrace_thread_info::segment with btrace_thread_info::next_segment and
8443 btrace_thread_info::prev_segment.
8444 * record-btrace.c (record_btrace_frame_this_id): Use
8445 btrace_find_call_by_number.
8446
eb8f2b9c
TW
84472017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8448
8449 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8450 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8451 btrace_insn_next, btrace_insn_prev): Remove references to
8452 btrace_thread_info::flow.
8453 * btrace.h (struct btrace_function): Remove FLOW.
8454
42bfe59e
TW
84552017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8456
8457 * btrace.c (ftrace_find_call_by_number): New function.
8458 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8459 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8460 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8461 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8462 index.
8463 * btrace.h (struct btrace_function): Turn UP into an index.
8464 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8465 as an index.
8466 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8467 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8468 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8469
b54b03bd
TW
84702017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8471
8472 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8473 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8474 ftrace_update_function, ftrace_compute_global_level_offset,
8475 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8476 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8477 btrace_insn_end, btrace_is_empty): Remove references to
8478 btrace_thread_info::begin and btrace_thread_info::end.
8479 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8480 (struct btrace_thread_info) <functions>: Adjust comment.
8481 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8482 btrace_thread_info::begin.
8483
8286623c
TW
84842017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8485
8486 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8487 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8488 ftrace_update_function): Remove arguments that implicitly were always
8489 BTINFO->END.
8490 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8491 Don't pass BTINFO->END.
8492
a0f1b963
TW
84932017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8494
8495 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8496 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8497 btrace_find_insn_by_number): Replace function segment pointer with
8498 index.
8499 (btrace_insn_cmp): Simplify.
8500 * btrace.h: (struct btrace_insn_iterator) Rename index to
8501 insn_index. Replace function segment pointer with index into function
8502 segment vector.
8503 * record-btrace.c (record_btrace_call_history): Replace function
8504 segment pointer use with index.
8505 (record_btrace_frame_sniffer): Retrieve function call segment through
8506 vector.
8507 (record_btrace_set_replay): Remove defunc't safety check.
8508
f158f208
TW
85092017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8510
8511 * btrace.c (btrace_ends_with_single_insn): New function.
8512 (btrace_call_get, btrace_call_number, btrace_call_begin,
8513 btrace_call_end, btrace_call_next, btrace_call_prev,
8514 btrace_find_call_by_number): Use index into call segment vector
8515 instead of pointer.
8516 (btrace_call_cmp): Simplify.
8517 * btrace.h (struct btrace_call_iterator): Replace function call segment
8518 pointer with index into vector.
8519 * record-btrace.c (record_btrace_call_history): Use index instead of
8520 pointer.
8521
521103fd
TW
85222017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8523
8524 * btrace.c (btrace_insn_begin, btrace_insn_end,
8525 btrace_find_insn_by_number): Add btinfo to iterator.
8526 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8527
17b89b34
TW
85282017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8529
8530 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8531 and save pointers directly.
8532 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8533 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8534 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8535 changed signature of functions.
8536 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8537 (btrace_fetch): Remove code that adds btrace_function pointers to
8538 vector of btrace_functions.
8539 (btrace_clear): Simplify freeing vector of btrace_functions.
8540
2b51eddc
TW
85412017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8542
8543 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8544 Replace VEC_* with std::vector functions.
8545 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8546 (struct btrace_thread_info)<functions>: Change type to std::vector.
8547
db6be0d5
SM
85482017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8549
8550 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8551 "Removed targets and native configurations" up. Merge duplicate
8552 "New commands" sub-sections. Add "New options" sub-sections.
8553
b057297a
AH
85542017-05-26 Alan Hayward <alan.hayward@arm.com>
8555
8556 * defs.h (copy_integer_to_size): New declaration.
8557 * findvar.c (copy_integer_to_size): New function.
8558 (do_cint_test): New selftest function.
8559 (copy_integer_to_size_test): Likewise.
8560 (_initialize_findvar): Likewise.
8561 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8562 (mips_fbsd_collect_reg): Use raw_collect_integer.
8563 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8564 (mips64_fill_gregset): Use raw_collect_integer
8565 (mips64_fill_fpregset): Use raw_supply_integer.
8566 * regcache.c (regcache::raw_supply_integer): New function.
8567 (regcache::raw_collect_integer): Likewise.
8568 * regcache.h: (regcache::raw_supply_integer): New declaration.
8569 (regcache::raw_collect_integer): Likewise.
8570
b77b02a5
YQ
85712017-05-24 Yao Qi <yao.qi@linaro.org>
8572
8573 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8574 (COMMON_OBS): Add gdbarch-selftests.o.
8575 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8576 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8577 * gdbarch-selftests.c: New file.
8578 * regcache.h (regcache) <~regcache>: Mark it virtual if
8579 GDB_SELF_TEST.
8580 <raw_write>: Likewise.
8581
e521e87e
YQ
85822017-05-24 Yao Qi <yao.qi@linaro.org>
8583
8584 * regcache.c (current_regcache): Change it to
8585 regcache::current_regcache.
8586 (regcache_observer_target_changed): Update.
8587 (regcache_thread_ptid_changed): Make it a regcache static
8588 method.
8589 (regcache_thread_ptid_changed): Update.
8590 (class regcache_access): New.
8591 (current_regcache_test): Update.
8592 (_initialize_regcache): Update.
8593 * regcache.h: Include forward_list.
8594 (regcache): Declare regcache_thread_ptid_changed and declare
8595 registers_changed_ptid as friend.
8596
d8e07dda
YQ
85972017-05-24 Yao Qi <yao.qi@linaro.org>
8598
8599 * i387-tdep.c (i387_register_to_value): Use register_size
8600 instead of TYPE_LENGTH.
8601 * m68k-tdep.c (m68k_register_to_value): Likewise.
8602
8c8f9122
YQ
86032017-05-24 Yao Qi <yao.qi@linaro.org>
8604
8605 * i387-tdep.c (i387_convert_register_p): Return false if type
8606 code isn't TYPE_CODE_FLT.
8607
68fce50f
YQ
86082017-05-24 Yao Qi <yao.qi@linaro.org>
8609
8610 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8611 length is 4.
8612 (alpha_register_to_value): Remove type length check.
8613 (alpha_value_to_register): Likewise.
8614
88954b49
YQ
86152017-05-24 Yao Qi <yao.qi@linaro.org>
8616
8617 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8618 TYPE_CODE_FLT.
8619
e3ec9b69
YQ
86202017-05-24 Yao Qi <yao.qi@linaro.org>
8621
8622 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8623 TYPE_CODE_FLT or not.
8624
cdd238da
YQ
86252017-05-24 Yao Qi <yao.qi@linaro.org>
8626
8627 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8628 * avr-tdep.c (avr_gdbarch_init): Likewise.
8629 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8630 * cris-tdep.c (cris_gdbarch_init): Likewise.
8631 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8632 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8633 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8634 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8635 * mep-tdep.c (mep_gdbarch_init): Likewise.
8636 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8637 * mips-tdep.c (mips_gdbarch_init): Likewise.
8638 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8639 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8640 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8641 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8642 * v850-tdep.c (v850_gdbarch_init): Likewise.
8643
7a3929c4
YQ
86442017-05-24 Yao Qi <yao.qi@linaro.org>
8645
8646 * selftest-arch.c (tests_with_arch): Call registers_changed
8647 and reinit_frame_cache.
8648 * selftest.c (run_self_tests): Likewise.
8649
f4985dba
YQ
86502017-05-24 Yao Qi <yao.qi@linaro.org>
8651
8652 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8653 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8654
ab20fa4a
YQ
86552017-05-24 Yao Qi <yao.qi@linaro.org>
8656
8657 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8658 set_gdbarch_print_insn.
8659
f532ab94
YQ
86602017-05-24 Yao Qi <yao.qi@linaro.org>
8661
8662 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8663 set_gdbarch_print_insn.
8664
39503f82
YQ
86652017-05-24 Yao Qi <yao.qi@linaro.org>
8666
8667 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8668 set_gdbarch_print_insn.
8669 * arc-tdep.c (arc_gdbarch_init): Likewise.
8670 * arch-utils.c: include dis-asm.h.
8671 (default_print_insn): New function.
8672 * arch-utils.h (default_print_insn): Declare.
8673 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8674 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8675 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8676 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8677 * frv-tdep.c (frv_gdbarch_init): Likewise.
8678 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8679 * gdbarch.sh (print_insn): Use default_print_insn.
8680 * gdbarch.c: Regenerated.
8681 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8682 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8683 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8684 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8685 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8686 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8687 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8688 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8689 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8690 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8691 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8692 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8693 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8694 * mt-tdep.c (mt_gdbarch_init): Likewise.
8695 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8696 * nios2-tdep.c (nios2_print_insn): Remove.
8697 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8698 * rx-tdep.c (rx_gdbarch_init): Likewise.
8699 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8700 * score-tdep.c (score_print_insn): Remove.
8701 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8702 * sh-tdep.c (sh_gdbarch_init): Likewise.
8703 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8704 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8705 * tic6x-tdep.c (tic6x_print_insn): Remove.
8706 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8707 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8708 * v850-tdep.c (v850_gdbarch_init): Likewise.
8709 * vax-tdep.c (vax_gdbarch_init): Likewise.
8710 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8711 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8712
f7241d4f
JB
87132017-05-23 John Baldwin <jhb@FreeBSD.org>
8714
8715 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8716 (MIPS_FP0_REGNUM): Remove.
8717 (MIPS_FSR_REGNUM): Remove.
8718 (mips_fbsd_supply_fpregs): Use mips_regnum.
8719 (mips_fbsd_supply_gregs): Likewise.
8720 (mips_fbsd_collect_fpregs): Likewise.
8721 (mips_fbsd_collect_gregs): Likewise.
8722
d489d81d
JB
87232017-05-23 John Baldwin <jhb@FreeBSD.org>
8724
8725 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8726 (getpfpregs_supplies): New function.
8727 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8728 getfpregs_supplies.
8729 (mips_fbsd_store_inferior_registers): Likewise.
8730
e11b3cdc
PA
87312017-05-22 Pedro Alves <palves@redhat.com>
8732
8733 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8734 maintainer.
8735
0f068fb5
AH
87362017-05-22 Alan Hayward <alan.hayward@arm.com>
8737
8738 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8739 (store_register): Likewise.
8740 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8741 (get_decimal_float_return_value): Likewise.
8742 (do_ppc_sysv_return_value): Likewise.
8743 (ppc64_sysv_abi_push_integer): Likewise.
8744 (ppc64_sysv_abi_push_freg): Likewise.
8745 (ppc64_sysv_abi_return_value_base): Likewise.
8746 (ppc64_sysv_abi_return_value): Likewise.
8747 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8748 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8749 * rs6000-nat.c: Likewise.
8750 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8751 (rs6000_value_to_register): Likewise.
8752 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8753
e6cf65f2
TT
87542017-05-21 Tom Tromey <tom@tromey.com>
8755
8756 PR rust/21466:
8757 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8758 arrays as "[T]", not "[T; ]".
8759
43cc5389
TT
87602017-05-19 Tom Tromey <tom@tromey.com>
8761
8762 PR rust/21484:
8763 * rust-lang.c (exp_descriptor_rust): New function.
8764 (rust_language_defn): Use it.
8765 * p-lang.c (pascal_language_defn): Update.
8766 * opencl-lang.c (opencl_language_defn): Update.
8767 * objc-lang.c (objc_language_defn): Update.
8768 * m2-lang.c (m2_language_defn): Update.
8769 * language.h (struct language_defn)
8770 <la_watch_location_expression>: New member.
8771 * language.c (unknown_language_defn, auto_language_defn)
8772 (local_language_defn): Update.
8773 * go-lang.c (go_language_defn): Update.
8774 * f-lang.c (f_language_defn): Update.
8775 * d-lang.c (d_language_defn): Update.
8776 * c-lang.h (c_watch_location_expression): Declare.
8777 * c-lang.c (c_watch_location_expression): New function.
8778 (c_language_defn, cplus_language_defn, asm_language_defn)
8779 (minimal_language_defn): Use it.
8780 * breakpoint.c (watch_command_1): Call
8781 la_watch_location_expression.
8782 * ada-lang.c (ada_language_defn): Update.
8783
7a6e7fcc
RO
87842017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8785
6e7e1744
RO
8786 PR tui/21482
8787 * gdb_curses.h (NOMACROS): Define.
8788 (NCURSES_NOMACROS): Define.
8789
87902017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8791
8792 PR tui/21482
7a6e7fcc
RO
8793 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8794 arg to char *.
8795 * tui/tui-wingeneral.c (box_win): Likewise.
8796 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8797 (tui_show_source_line): Likewise.
8798 (tui_show_exec_info_content): Likewise.
8799
1933fd8e
VM
88002017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8801
8802 * sparc-tdep.c (sparc_structure_return_p)
8803 (sparc_arg_on_registers_p): New functions.
8804 (sparc32_store_arguments): Use them.
8805 * sparc64-tdep.c (sparc64_16_byte_align_p)
8806 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8807 Handle TYPE_CODE_ARRAY.
8808
21873064
YQ
88092017-05-17 Yao Qi <yao.qi@linaro.org>
8810
8811 * cli/cli-decode.c (add_alias_cmd): New function.
8812 * command.h (add_alias_cmd): Declare.
8813 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8814 instead call add_alias_cmd.
8815
2b351b19
PA
88162017-05-17 Pedro Alves <palves@redhat.com>
8817
8818 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8819 (nat_makefile_frag): ... this. All references updated.
8820 * configure.ac: Likewise.
8821 * configure.nat: Likewise. Enhance comments.
8822 * configure: Regenerate.
8823
5f2ad7a3
RO
88242017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8825
8826 * procfs.c (procfs_create_inferior): Change prototype to match
8827 definition.
8828
adf3dde5
EZ
88292017-05-13 Eli Zaretskii <eliz@gnu.org>
8830
8831 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8832 C++ compiler warning.
8833
6830f270
TT
88342017-05-12 Tom Tromey <tom@tromey.com>
8835
8836 PR rust/21483:
8837 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8838 recurse, just call value_struct_elt directly.
8839
68f2f2e3
TT
88402017-05-12 Tom Tromey <tom@tromey.com>
8841
8842 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8843 OP_RUST_ARRAY>: Fix.
8844
256afbc2
TT
88452017-05-12 Tom Tromey <tom@tromey.com>
8846
8847 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8848
94bb8dfe
YQ
88492017-05-09 Yao Qi <yao.qi@linaro.org>
8850
8851 * regcache.c: Include <forward_list>.
8852 (struct regcache_list): Remove.
8853 (current_regcache): Update.
8854 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8855 (regcache_thread_ptid_changed): Likewise.
8856 (registers_changed_ptid): Likewise.
8857 (current_regcache_size): Likewise.
8858
8248946c
YQ
88592017-05-09 Yao Qi <yao.qi@linaro.org>
8860
8861 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8862 (current_regcache_size): New function.
8863 (current_regcache_test): New function.
8864 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
8865
313c5961
AH
88662017-05-08 Alan Hayward <alan.hayward@arm.com>
8867
8868 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
8869 (print_gp_register_row): Use get_frame_register_value.
8870
27bfc1d1
AH
88712017-05-08 Alan Hayward <alan.hayward@arm.com>
8872
8873 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
8874 (mips_supply_fpregset): Likewise.
8875 (mips64_supply_gregset): Likewise.
8876
146e6c5c
AH
88772017-05-08 Alan Hayward <alan.hayward@arm.com>
8878
8879 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
8880 regcache->raw_supply_zeroed.
8881
e50f25ec
SDJ
88822017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8883
8884 * configure.nat: Rearrange 'case' statements to match
8885 host before cpu.
8886
21ea5acd
SDJ
88872017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8888
8889 * Makefile.in: Remove "@host_makefile_frag@". Add variables
8890 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
8891 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
8892 "@nat_extra_makefile_frag@".
8893 (Makefile): Remove dependency on "@frags@".
8894 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
8895 (data-directory/Makefile): Likewise.
8896 * config/aarch64/linux.mh: Deleted; moved contents to
8897 "gdb/configure.nat".
8898 * config/alpha/alpha-linux.mh: Likewise.
8899 * config/alpha/nbsd.mh: Likewise.
8900 * config/arm/linux.mh: Likewise.
8901 * config/arm/nbsdelf.mh: Likewise.
8902 * config/i386/cygwin.mh: Likewise.
8903 * config/i386/cygwin64.mh: Likewise.
8904 * config/i386/darwin.mh: Likewise.
8905 * config/i386/fbsd.mh: Likewise.
8906 * config/i386/fbsd64.mh: Likewise.
8907 * config/i386/go32.mh: Likewise.
8908 * config/i386/i386gnu.mh: Likewise.
8909 * config/i386/i386sol2.mh: Likewise.
8910 * config/i386/linux.mh: Likewise.
8911 * config/i386/linux64.mh: Likewise.
8912 * config/i386/mingw.mh: Likewise.
8913 * config/i386/mingw64.mh: Likewise.
8914 * config/i386/nbsd64.mh: Likewise.
8915 * config/i386/nbsdelf.mh: Likewise.
8916 * config/i386/nto.mh: Likewise.
8917 * config/i386/obsd.mh: Likewise.
8918 * config/i386/obsd64.mh: Likewise.
8919 * config/i386/sol2-64.mh: Likewise.
8920 * config/ia64/linux.mh: Likewise.
8921 * config/m32r/linux.mh: Likewise.
8922 * config/m68k/linux.mh: Likewise.
8923 * config/m68k/nbsdelf.mh: Likewise.
8924 * config/m68k/obsd.mh: Likewise.
8925 * config/m88k/obsd.mh: Likewise.
8926 * config/mips/fbsd.mh: Likewise.
8927 * config/mips/linux.mh: Likewise.
8928 * config/mips/nbsd.mh: Likewise.
8929 * config/mips/obsd64.mh: Likewise.
8930 * config/pa/linux.mh: Likewise.
8931 * config/pa/nbsd.mh: Likewise.
8932 * config/pa/obsd.mh: Likewise.
8933 * config/powerpc/aix.mh: Likewise.
8934 * config/powerpc/fbsd.mh: Likewise.
8935 * config/powerpc/linux.mh: Likewise.
8936 * config/powerpc/nbsd.mh: Likewise.
8937 * config/powerpc/obsd.mh: Likewise.
8938 * config/powerpc/ppc64-linux.mh: Likewise.
8939 * config/powerpc/spu-linux.mh: Likewise.
8940 * config/s390/linux.mh: Likewise.
8941 * config/sh/nbsd.mh: Likewise.
8942 * config/sparc/fbsd.mh: Likewise.
8943 * config/sparc/linux.mh: Likewise.
8944 * config/sparc/linux64.mh: Likewise.
8945 * config/sparc/nbsd64.mh: Likewise.
8946 * config/sparc/nbsdelf.mh: Likewise.
8947 * config/sparc/obsd64.mh: Likewise.
8948 * config/sparc/sol2.mh: Likewise.
8949 * config/tilegx/linux.mh: Likewise.
8950 * config/vax/nbsdelf.mh: Likewise.
8951 * config/vax/obsd.mh: Likewise.
8952 * config/xtensa/linux.mh: Likewise.
8953 * config/i386/i386gnu.mn: New file, with excerpts from
8954 "config/i386/i386gnu.mh".
8955 * configure: Regenerate.
8956 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
8957 *.mh files under "gdb/config".
8958 * configure.nat: New file, with contents from the
8959 "gdb/config/*/*.mh" files.
8960
7ed1acaf
TW
89612017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
8962
8963 * btrace.c (btrace_clear): Free insn vector.
8964
e13cb306
PA
89652017-05-05 Pedro Alves <palves@redhat.com>
8966
8967 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
8968 * configure: Regenerate.
8969
5ed8105e
PA
89702017-05-04 Pedro Alves <palves@redhat.com>
8971
8972 * Makefile.in (SFILES): Add progspace-and-thread.c.
8973 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
8974 (COMMON_OBS): Add progspace-and-thread.o.
8975 * breakpoint.c: Include "progspace-and-thread.h".
8976 (update_inserted_breakpoint_locations)
8977 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
8978 Use scoped_restore_current_pspace_and_thread.
8979 (create_std_terminate_master_breakpoint): Use
8980 scoped_restore_current_program_space.
8981 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
8982 (print_breakpoint_location): Use
8983 scoped_restore_current_program_space.
8984 (bp_loc_is_permanent): Use
8985 scoped_restore_current_pspace_and_thread.
8986 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
8987 (download_tracepoint_locations): Use
8988 scoped_restore_current_pspace_and_thread.
8989 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
8990 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
8991 (enum step_over_calls_kind): Moved from inferior.h.
8992 (class scoped_restore_current_thread): New class.
8993 * gdbthread.h (make_cleanup_restore_current_thread): Delete
8994 declaration.
8995 (scoped_restore_current_thread): New class.
8996 * infcmd.c: Include "common/gdb_optional.h".
8997 (continue_1, proceed_after_attach): Use
8998 scoped_restore_current_thread.
8999 (notice_new_inferior): Use scoped_restore_current_thread.
9000 * inferior.c: Include "progspace-and-thread.h".
9001 (restore_inferior, save_current_inferior): Delete.
9002 (add_inferior_command, clone_inferior_command): Use
9003 scoped_restore_current_pspace_and_thread.
9004 * inferior.h (scoped_restore_current_inferior): New class.
9005 * infrun.c: Include "progspace-and-thread.h" and
9006 "common/gdb_optional.h".
9007 (follow_fork_inferior): Use
9008 scoped_restore_current_pspace_and_thread.
9009 (scoped_restore_exited_inferior): New class.
9010 (handle_vfork_child_exec_or_exit): Use
9011 scoped_restore_exited_inferior,
9012 scoped_restore_current_pspace_and_thread,
9013 scoped_restore_current_thread and scoped_restore.
9014 (fetch_inferior_event): Use scoped_restore_current_thread.
9015 * linespec.c (decode_line_full, decode_line_1): Use
9016 scoped_restore_current_program_space.
9017 * mi/mi-main.c: Include "progspace-and-thread.h".
9018 (exec_continue): Use scoped_restore_current_thread.
9019 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9020 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9021 * proc-service.c (ps_pglobal_lookup): Use
9022 scoped_restore_current_program_space.
9023 * progspace-and-thread.c: New file.
9024 * progspace-and-thread.h: New file.
9025 * progspace.c (release_program_space, clone_program_space): Use
9026 scoped_restore_current_program_space.
9027 (restore_program_space, save_current_program_space)
9028 (save_current_space_and_thread): Delete.
9029 (switch_to_program_space_and_thread): Moved to
9030 progspace-and-thread.c.
9031 * progspace.h (save_current_program_space)
9032 (save_current_space_and_thread): Delete declarations.
9033 (scoped_restore_current_program_space): New class.
9034 * remote.c (remote_btrace_maybe_reopen): Use
9035 scoped_restore_current_thread.
9036 * symtab.c: Include "progspace-and-thread.h".
9037 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9038 * thread.c (print_thread_info_1): Use
9039 scoped_restore_current_thread.
9040 (struct current_thread_cleanup): Delete.
9041 (do_restore_current_thread_cleanup)
9042 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9043 (scoped_restore_current_thread::~scoped_restore_current_thread):
9044 ... this new dtor.
9045 (make_cleanup_restore_current_thread): Rename/convert to ...
9046 (scoped_restore_current_thread::scoped_restore_current_thread):
9047 ... this new ctor.
9048 (thread_apply_all_command): Use scoped_restore_current_thread.
9049 (thread_apply_command): Use scoped_restore_current_thread.
9050 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9051 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9052
f6223dbb
PA
90532017-05-04 Pedro Alves <palves@redhat.com>
9054
9055 * thread.c (make_cleanup_restore_current_thread): Move
9056 find_thread_ptid call before the is_stopped call. Assert that the
9057 thread is found. Replace is_stopped call by checking the thread's
9058 state directly. Remove unnecessary NULL-thread check.
9059
3c3ae77e
PA
90602017-05-04 Pedro Alves <palves@redhat.com>
9061
9062 * corelow.c (thread_section_name): New class.
9063 (get_core_register_section, get_core_siginfo): Use it.
9064
45eba0ab
AA
90652017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9066
9067 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9068 (get_core_register_section): Remove xfree of NULL pointer.
9069
f81fdd35
AH
90702017-05-03 Alan Hayward <alan.hayward@arm.com>
9071
9072 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9073 * regcache.c (regcache::raw_supply_zeroed): New function.
9074 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9075
35837774
SM
90762017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9077
9078 * gdbarch.sh: Remove commented out definition of
9079 TARGET_CHAR_BIT.
9080 * gdbarch.h: Re-generate.
9081
c94fee56
SDJ
90822017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9083
9084 * configure: Regenerate.
9085
d17f7b36
SM
90862017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9087
9088 * solib-target.c (solib_target_relocate_section_addresses):
9089 Remove num_section_bases, num_bases, segment_bases variables.
9090
b560ebd6
SM
90912017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9092
9093 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9094
f2f46dfc
SM
90952017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9096
9097 * solib-target.c: Include <vector>
9098 (struct lm_info_target) <~lm_info_target>: Remove.
9099 <segment_bases, section_bases>: Change type to
9100 std::vector<CORE_ADDR>.
9101 (library_list_start_segment, library_list_start_section,
9102 library_list_end_library,
9103 solib_target_relocate_section_addresses): Adjust.
9104
a0ff9e1a
SM
91052017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9106
9107 * gdbarch.sh (software_single_step): Change return type to
9108 std::vector<CORE_ADDR>.
9109 * gdbarch.c, gdbarch.h: Re-generate.
9110 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9111 Adjust.
9112 (arm_deal_with_atomic_sequence_raw): Adjust.
9113 (thumb_get_next_pcs_raw): Adjust.
9114 (arm_get_next_pcs_raw): Adjust.
9115 (arm_get_next_pcs): Adjust.
9116 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9117 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9118 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9119 (alpha_software_single_step): Adjust.
9120 * alpha-tdep.h (alpha_software_single_step): Adjust.
9121 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9122 * arm-tdep.c (arm_software_single_step): Adjust.
9123 (arm_breakpoint_kind_from_current_state): Adjust.
9124 * arm-tdep.h (arm_software_single_step): Adjust.
9125 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9126 * cris-tdep.c (cris_software_single_step): Adjust.
9127 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9128 (micromips_deal_with_atomic_sequence): Adjust.
9129 (deal_with_atomic_sequence): Adjust.
9130 (mips_software_single_step): Adjust.
9131 * mips-tdep.h (mips_software_single_step): Adjust.
9132 * moxie-tdep.c (moxie_software_single_step): Adjust.
9133 * nios2-tdep.c (nios2_software_single_step): Adjust.
9134 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9135 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9136 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9137 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9138 * sparc-tdep.c (sparc_software_single_step): Adjust.
9139 * spu-tdep.c (spu_software_single_step): Adjust.
9140 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9141
ea480a30
SM
91422017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9143
9144 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9145 * gdbarch.h: Re-generate.
9146
d050f7d7
TW
91472017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9148
9149 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9150 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9151 * python/py-instruction.c, python/py-instruction.h: New file.
9152 * python/py-record.c: Add py-instruction.h include.
9153 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9154 gdb.RecordInstruction.
9155 * python/python-internal.h: Add gdbpy_initialize_instruction
9156 declaration.
9157 * python/python.c (do_start_initialization): Add
9158 gdbpy_initialize_instruction.
9159
14f819c8
TW
91602017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9161
9162 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9163 Remove.
9164 (btrace_func_from_recpy_func): New function.
9165 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9166 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9167 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9168 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9169 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9170 Also, use new helper functions.
9171 (btpy_list_item): Use new helper functions.
9172 (recpy_bt_function_call_history): Use new type name.
9173 (btpy_call_getset): Remove.
9174 (gdbpy_initialize_btrace): Remove code to initialize
9175 gdb.BtraceFunctionCall.
9176 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9177 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9178 recpy_bt_func_prev, recpy_bt_func_next): New export.
9179 * python/py-record.c (recpy_func_type): New static object.
9180 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9181 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9182 recpy_func_next): New function.
9183 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9184 (recpy_func_getset): New static object.
9185 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9186 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9187
0ed5da75
TW
91882017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9189
9190 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9191 (btpy_object, btpy_insn_type, btpy_new): Remove.
9192 (btpy_list_object): Use gdb.RecordInstruction type instead of
9193 gdb.BtraceInstruction type.
9194 (btrace_insn_from_recpy_insn): New function.
9195 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9196 btpy_new.
9197 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9198 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9199 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9200 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9201 instead of btpy_object.
9202 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9203 btpy_insn_data, btpy_insn_decode): Rename to ...
9204 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9205 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9206 recpy_bt_insn_decode): This. Also, use new helper functions.
9207 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9208 recpy_insn_type.
9209 (btpy_insn_getset): Remove.
9210 (gdbpy_initialize_btrace): Remove code to initialize
9211 gdb.BtraceInstruction. Use recpy_element_object.
9212 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9213 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9214 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9215 * python/py-record.c (recpy_insn_type): New static object.
9216 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9217 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9218 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9219 New function.
9220 (recpy_insn_getset): New static object.
9221 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9222 * python/py-record.h (recpy_element_object): New typedef.
9223 (recpy_insn_type, recpy_insn_new): New export.
9224
913aeadd
TW
92252017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9226
9227 * py-record-btrace.c (btpy_insn_new): Removed.
9228 (btpy_insn_or_gap_new): New function.
9229 (btpy_insn_error): Removed.
9230 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9231 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9232 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9233 btpy_insn_or_gap_new instead of btpy_insn_new.
9234 (btpy_insn_getset): Remove btpy_insn_error.
9235 * py-record.c (recpy_gap_type): New static object.
9236 (recpy_gap_object): New typedef.
9237 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9238 recpy_gap_reason_string): New function.
9239 (recpy_gap_getset): New static object.
9240 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9241 * py-record.h (recpy_gap_new): New export.
9242
a3be24ad
TW
92432017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9244
9245 * python/py-record.c (recpy_ptid): Remove.
9246 (recpy_record_getset): Remove recpy_ptid.
9247
ae20e79a
TW
92482017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9249
9250 * btrace.c (btrace_fetch): Set inferior_ptid.
9251 * python/py-record-btrace.c: Add "py-record.h" include.
9252 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9253 recpy_bt_end, recpy_bt_instruction_history,
9254 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9255 in gdb.Record object instead of current ptid.
9256 * python/py-record.c: Include new "py-record.h" file.
9257 (recpy_record_object): Moved to py-record.h.
9258 * python/py-record.h: New file.
9259
8d0050ea
TW
92602017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9261
9262 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9263 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9264 indentation.
9265
3f380b50
JB
92662017-05-01 Joel Brobecker <brobecker@adacore.com>
9267
9268 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9269 the past maintainers section.
9270
07495424
YQ
92712017-04-28 Yao Qi <yao.qi@linaro.org>
9272
9273 * infcmd.c (get_return_value): Use regcache ctor, and remove
9274 cleanup.
9275
deb1fa3e
YQ
92762017-04-28 Yao Qi <yao.qi@linaro.org>
9277 Pedro Alves <palves@redhat.com>
9278
9279 * regcache.c (regcache::regcache): New tag dispatch ctor.
9280 (do_cooked_read): Moved above.
9281 (regcache_dup): Use the tag dispatch ctor..
9282 * regcache.h (regcache): Declare ctor, delete copy ctor and
9283 assignment operator, remove friend regcache_dup.
9284
b421c83c
YQ
92852017-04-28 Yao Qi <yao.qi@linaro.org>
9286
9287 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9288 call method save instead of regcache_cpy.
9289 * regcache.h (struct regcache): Make regcache_dup a friend.
9290
ef79d9a3
YQ
92912017-04-28 Yao Qi <yao.qi@linaro.org>
9292
9293 * regcache.c (struct regcache): Move to regcache.h
9294 (regcache::arch): New method.
9295 (regcache_get_ptid): Update.
9296 (get_regcache_arch): Call arch method.
9297 (get_regcache_aspace): Call method aspace.
9298 (register_buffer): Change it to method.
9299 (regcache_save): Change it to regcache::save.
9300 (regcache_restore): Likewise.
9301 (regcache_cpy_no_passthrough): Remove the declaration.
9302 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9303 (regcache_cpy_no_passthrough): Change it to method
9304 cpy_no_passthrough.
9305 (regcache_register_status): Change it to method
9306 get_register_status.
9307 (regcache_invalidate): Change it to method invalidate.
9308 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9309 (regcache_raw_update): Change it to method raw_update.
9310 (regcache_raw_read): Likewise.
9311 (regcache_raw_read_signed): Likewise.
9312 (regcache_raw_read_unsigned): Likewise.
9313 (regcache_raw_write_signed): Likewise.
9314 (regcache_raw_write_unsigned): Likewise.
9315 (regcache_cooked_read): Likewise.
9316 (regcache_cooked_read_value): Likewise.
9317 (regcache_cooked_read_signed): Likewise.
9318 (regcache_cooked_read_unsigned): Likewise.
9319 (regcache_cooked_write_signed): Likewise.
9320 (regcache_cooked_write_unsigned): Likewise.
9321 (regcache_raw_set_cached_value): Likewise.
9322 (regcache_raw_write): Likewise.
9323 (regcache_cooked_write): Likewise.
9324 (regcache_xfer_part): Likewise.
9325 (regcache_raw_read_part): Likewise.
9326 (regcache_raw_write_part): Likewise.
9327 (regcache_cooked_read_part): Likewise.
9328 (regcache_cooked_write_part): Likewise.
9329 (regcache_raw_supply): Likewise.
9330 (regcache_raw_collect): Likewise.
9331 (regcache_transfer_regset): Likewise.
9332 (regcache_supply_regset): Likewise.
9333 (regcache_collect_regset): Likewise.
9334 (regcache_debug_print_register): Likewise.
9335 (enum regcache_dump_what): Move it to regcache.h.
9336 (regcache_dump): Change it to method dump.
9337 * regcache.h (enum regcache_dump_what): New.
9338 (class regcache): New.
9339 * target.c (target_fetch_registers): Call method
9340 debug_print_register.
9341 (target_store_registers): Likewise.
9342
f8fdb78e
SM
93432017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9344
9345 * windows-nat.c (struct lm_info_windows): Initialize field.
9346 (windows_make_so): Allocate lm_info_windows with new.
9347 (windows_free_so): Free lm_info_windows with delete.
9348
9ccbfd7b
SM
93492017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9350
9351 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9352 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9353 cleanup.
9354 (darwin_free_so): Free lm_info_darwin with delete.
9355
76e75227
SM
93562017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9357
9358 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9359 <l_addr_p>: Change type to bool.
9360 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9361 (svr4_free_so): Free lm_info_svr4 with delete.
9362 (svr4_copy_library_list): Replace memcpy with call to copy
9363 constructor.
9364 (library_list_start_library, svr4_default_sos): Allocate
9365 lm_info_svr4 with new.
9366
51046d9e
SM
93672017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9368
9369 * solib-target.c (struct lm_info_target): Add destructor,
9370 initialize fields.
9371 <name>: Change type to std::string.
9372 (library_list_start_library): Allocate lm_info_target with new.
9373 (solib_target_free_library_list): Free lm_info_target with
9374 delete.
9375 (solib_target_current_sos): Adapt to std::string.
9376 (solib_target_free_so): Free lm_info_target with delete.
9377
4023ae76
SM
93782017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9379
9380 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9381 fields.
9382 (frv_current_sos): Allocate lm_info_frv with new.
9383 (frv_relocate_main_executable): Free lm_info_frv with delete,
9384 allocate with new.
9385 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9386
af43057b
SM
93872017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9388
9389 * solib-frv.c (struct lm_info_frv): Fix indentation.
9390
b0911207
SM
93912017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9392
9393 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9394 map field.
9395 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9396 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9397 and allocate with new.
9398 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9399
6c401f72
SM
94002017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9401
9402 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9403 <filename, member_name>: Change type to std::string.
9404 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9405 (library_list_start_library): Allocate lm_info_aix with new.
9406 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9407 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9408 with copy constructor.
9409
d0e449a1
SM
94102017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9411
9412 * solist.h (struct lm_info): Remove.
9413 (struct lm_info_base): New class.
9414 (struct so_list) <lm_info>: Change type to lm_info_base *.
9415 * nto-tdep.c (struct lm_info): Remove.
9416 (lm_addr): Adjust.
9417 * solib-aix.c (struct lm_info): Rename to ...
9418 (struct lm_info_aix): ... this. Extend lm_info_base.
9419 (lm_info_p): Rename to ...
9420 (lm_info_aix_p): ... this, and adjust.
9421 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9422 solib_aix_parse_libraries, library_list_start_library,
9423 solib_aix_free_library_list, solib_aix_parse_libraries,
9424 solib_aix_get_library_list,
9425 solib_aix_relocate_section_addresses, solib_aix_free_so,
9426 solib_aix_get_section_offsets,
9427 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9428 Adjust.
9429 (struct solib_aix_inferior_data) <library_list>: Adjust.
9430 * solib-darwin.c (struct lm_info): Rename to ...
9431 (struct lm_info_darwin): ... this. Extend lm_info_base.
9432 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9433 * solib-dsbt.c (struct lm_info): Rename to ...
9434 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9435 (struct dsbt_info) <main_executable_lm_info): Adjust.
9436 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9437 dsbt_relocate_section_addresses): Adjust.
9438 * solib-frv.c (struct lm_info): Rename to ...
9439 (struct lm_info_frv): ... this. Extend lm_info_base.
9440 (main_executable_lm_info): Adjust.
9441 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9442 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9443 find_canonical_descriptor_in_load_object,
9444 frv_fdpic_find_canonical_descriptor): Adjust.
9445 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9446 to lm_info_svr4.
9447 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9448 svr4_clear_so, svr4_copy_library_list,
9449 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9450 svr4_current_sos, svr4_fetch_objfile_link_map,
9451 solist_update_incremental): Adjust.
9452 * solib-svr4.h (struct lm_info_svr4): Move here from
9453 solib-svr4.c.
9454 * solib-target.c (struct lm_info): Rename to ...
9455 (struct lm_info_target): ... this. Extend lm_info_base.
9456 (lm_info_p): Rename to ...
9457 (lm_info_target_p): ... this.
9458 (solib_target_parse_libraries, library_list_start_segment,
9459 library_list_start_section, library_list_start_library,
9460 library_list_end_library, solib_target_free_library_list,
9461 solib_target_current_sos, solib_target_free_so,
9462 solib_target_relocate_section_addresses): Adjust.
9463 * windows-nat.c (struct lm_info): Rename to ...
9464 (struct lm_info_windows): ... this. Extend lm_info_base.
9465 (windows_make_so, handle_load_dll, handle_unload_dll,
9466 windows_xfer_shared_libraries): Adjust.
9467
434a4023
SM
94682017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9469
9470 * solib-darwin.c (struct darwin_so_list): Remove.
9471 (darwin_current_sos): Allocate an so_list object instead of a
9472 darwin_so_list, separately allocate an lm_info object.
9473 (darwin_free_so): Free lm_info.
9474
428544e8
JB
94752017-04-28 John Baldwin <jhb@FreeBSD.org>
9476
9477 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9478 with fprintf_filtered.
9479
4621115f
YQ
94802017-04-28 Yao Qi <yao.qi@linaro.org>
9481
9482 * regcache.c (regcache::regcache): New function.
9483 (regcache::~regcache): New function.
9484 (regcache_xmalloc_1): Remove.
9485 (regcache_xmalloc): Call new regcache.
9486 (regcache_xfree): Call delete regcache.
9487 (get_thread_arch_aspace_regcache): Call new regcache.
9488
339053c2
YQ
94892017-04-28 Yao Qi <yao.qi@linaro.org>
9490
9491 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9492 lwp instead of ptid_get_lwp.
9493
7974a605
YQ
94942017-04-28 Yao Qi <yao.qi@linaro.org>
9495
9496 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9497 lwp_info instead of getting from inferior_ptid.
9498
e15c3eb4
KS
94992017-04-27 Keith Seitz <keiths@redhat.com>
9500
9501 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9502 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9503 (CV_CONVERSION_BADNESS): Define.
9504 (rank_one_type): Remove overly restrictive rvalue reference
9505 rank checks.
9506 Add cv-qualifier checks and subranks for type equality.
9507 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9508 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9509 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9510
72bc1d24
SM
95112017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9512
9513 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9514 count when creating the object.
9515
55bcecda
UW
95162017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9517 Ulrich Weigand <uweigand@de.ibm.com>
9518
9519 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9520 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9521 is used in AIX.
9522 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9523 (process_xcoff_symbol): Likewise.
9524 (scan_xcoff_symtab): Likewise.
9525
5c99fcf8
AH
95262017-04-26 Alan Hayward <alan.hayward@arm.com>
9527
9528 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9529 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9530 (ia64_access_reg): Use get_frame_register_unsigned.
9531 (ia64_access_rse_reg): Likewise.
9532 (ia64_libunwind_frame_prev_register): Likewise.
9533
b41c5a85
JW
95342017-04-26 Jiong Wang <jiong.wang@arm.com>
9535
9536 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9537 * gdbarch.c: Regenerated.
9538 * gdbarch.h: Regenerated.
9539 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9540 visibility external.
9541 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9542 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9543 (enum cfa_how_kind): Move to ...
9544 (struct dwarf2_frame_state_reg_info): Likewise.
9545 (struct dwarf2_frame_state): Likewise.
9546 * dwarf2-frame.h: ... here.
9547 (dwarf2_frame_state_alloc_regs): New declaration.
9548 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9549 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9550
c185f580
AH
95512017-04-26 Alan Hayward <alan.hayward@arm.com>
9552
9553 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9554 regcache_raw_read_unsigned.
9555 (xtensa_pseudo_register_write): Likewise.
9556
19c45594
AH
95572017-04-26 Alan Hayward <alan.hayward@arm.com>
9558
9559 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9560 (nds32_pseudo_register_write): Likewise.
9561
4658f12e
YQ
95622017-04-25 Yao Qi <yao.qi@linaro.org>
9563
9564 * regcache.c (struct regcache) <readonly_p>: Change its type
9565 to bool.
9566 (regcache_xmalloc_1): Update parameter type and callers update.
9567
d581dda8
YQ
95682017-04-25 Yao Qi <yao.qi@linaro.org>
9569
9570 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9571 set_gdbarch_wchar_bit.
9572 * arm-tdep.c (arm_gdbarch_init): Likewise.
9573
debed3db
PA
95742017-04-25 Pedro Alves <palves@redhat.com>
9575
9576 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9577 (BothAreRelocatable, memcopy, memmove): Don't define.
9578 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9579 macros.
9580
b0b92aeb
PA
95812017-04-25 Pedro Alves <palves@redhat.com>
9582
9583 * common/common-defs.h: Include "common/poison.h".
9584 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9585 and adjust.
9586 * common/poison.h: New file.
9587 * common/traits.h: Include <type_traits>.
9588 (Not, Or, Requires): New, moved from common/function-view.h.
9589
16c4d54a
PA
95902017-04-25 Pedro Alves <palves@redhat.com>
9591
9592 * breakpoint.h (struct breakpoint): In-class initialize all
9593 fields. Make boolean fields "bool".
9594 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9595 memset call and initializations no longer necessary.
9596
b5c36682
PA
95972017-04-25 Pedro Alves <palves@redhat.com>
9598
9599 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9600 reference.
9601 (pt_btrace_insn): New function.
9602 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9603
5625a286
PA
96042017-04-25 Pedro Alves <palves@redhat.com>
9605
9606 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9607 "base" field and inherit from "bp_location" instead. Add
9608 non-default ctor.
9609 (allocate_location_exception): Use new non-default ctor.
9610 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9611 (init_bp_location): Convert to ...
9612 (bp_location::bp_location): ... this new ctor, and remove memset
9613 call.
9614 (base_breakpoint_allocate_location): Use the new non-default ctor.
9615 * breakpoint.h (bp_location): Now a class. Declare default and
9616 non-default ctors. In-class initialize all members.
9617 (init_bp_location): Remove declaration.
9618
23bcc18f
PA
96192017-04-25 Pedro Alves <palves@redhat.com>
9620
9621 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9622 assignment operator.
9623
e1ba3053
YQ
96242017-04-24 Yao Qi <yao.qi@linaro.org>
9625
9626 * doublest.c (convert_doublest_to_floatformat): Call
9627 floatformat_totalsize_bytes.
9628
10f489e5
TT
96292017-04-22 Tom Tromey <tom@tromey.com>
9630
9631 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9632 ui_out_emit_list.
9633 * stack.c (print_frame): Use ui_out_emit_list.
9634 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9635 ui_out_emit_list.
9636 * mi/mi-main.c (print_one_inferior)
9637 (mi_cmd_data_list_register_names)
9638 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9639 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9640 ui_out_emit_list.
9641 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9642 (mi_output_solib_attribs): Use ui_out_emit_list,
9643 ui_out_emit_tuple.
9644 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9645 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9646 (mi_cmd_stack_list_args, list_args_or_locals): Use
9647 ui_out_emit_list.
9648 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9649 * breakpoint.c (print_solib_event, output_thread_groups): Use
9650 ui_out_emit_list.
9651
0092b74d
TT
96522017-04-22 Tom Tromey <tom@tromey.com>
9653
9654 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9655 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9656 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9657
a14a62dd
TT
96582017-04-22 Tom Tromey <tom@tromey.com>
9659
9660 * tracepoint.c (tvariables_info_1)
9661 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9662
46b9c129
TT
96632017-04-22 Tom Tromey <tom@tromey.com>
9664
9665 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9666 annotate_arg_emitter.
9667 * breakpoint.c (print_mention_watchpoint)
9668 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9669 * annotate.h (struct annotate_arg_emitter): New.
9670
2e783024
TT
96712017-04-22 Tom Tromey <tom@tromey.com>
9672
9673 * record-btrace.c (record_btrace_insn_history)
9674 (record_btrace_insn_history_range, record_btrace_call_history)
9675 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9676 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9677 ui_out_emit_tuple.
9678 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9679 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9680 * skip.c (skip_info): Use ui_out_emit_tuple.
9681 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9682 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9683 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9684 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9685 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9686 ui_out_emit_tuple.
9687 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9688 (output_register, mi_cmd_data_read_memory)
9689 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9690 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9691 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9692 Use ui_out_emit_tuple.
9693 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9694 ui_out_emit_tuple.
9695 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9696 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9697 * linux-thread-db.c (info_auto_load_libthread_db): Use
9698 ui_out_emit_tuple.
9699 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9700 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9701 * disasm.c (do_mixed_source_and_assembly_deprecated)
9702 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9703 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9704 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9705 * breakpoint.c (print_one_breakpoint_location)
9706 (print_one_breakpoint): Use ui_out_emit_tuple.
9707 * auto-load.c (print_script, info_auto_load_cmd): Use
9708 ui_out_emit_tuple.
9709 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9710
9be21bb4
SM
97112017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9712
9713 * thread.c (print_thread_info_1): Remove dead code.
9714
0d4c07af
JK
97152017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9716
9717 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9718 GDB_SELF_TEST.
9719 * arm-tdep.c (selftests::arm_record_test): Likewise.
9720
4daf993d
YQ
97212017-04-21 Yao Qi <yao.qi@linaro.org>
9722
9723 * regcache.c (regcache_restore): Remove argument 2. Replace
9724 argument 3 with regcache. Get register status from
9725 src->register_status and get register contents from
9726 register_buffer (src, regnum).
9727 (regcache_cpy): Update.
9728
a6c21d4a
PA
97292017-04-19 Pedro Alves <palves@redhat.com>
9730
9731 * gdbthread.h (thread): Add missing closing parenthesis in
9732 comment.
9733
3a3fd0fd
PA
97342017-04-19 Pedro Alves <palves@redhat.com>
9735
9736 * common/refcounted-object.h: New file.
9737 * gdbthread.h: Include "common/refcounted-object.h".
9738 (thread_info): Inherit from refcounted_object and add comments.
9739 (thread_info::incref, thread_info::decref)
9740 (thread_info::m_refcount): Delete.
9741 (thread_info::deletable): Use the refcounted_object::refcount()
9742 method.
9743 * inferior.c (current_inferior_): Add comment.
9744 (set_current_inferior): Increment/decrement refcounts.
9745 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9746 not-deletable instead of comparing with the current inferior.
9747 (initialize_inferiors): Increment the initial inferior's refcount.
9748 * inferior.h (struct inferior): Forward declare.
9749 Include "common/refcounted-object.h".
9750 (current_inferior, set_current_inferior): Move declaration to
9751 before struct inferior's definition, and fix comment.
9752 (inferior): Inherit from refcounted_object. Add comments.
9753 * thread.c (switch_to_thread_no_regs): Reference the thread's
9754 inferior pointer directly instead of doing a ptid lookup.
9755 (switch_to_no_thread): New function.
9756 (switch_to_thread(thread_info *)): New function, factored out
9757 from ...
9758 (switch_to_thread(ptid_t)): ... this.
9759 (restore_current_thread): Delete.
9760 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9761 fields, and add 'inf' field.
9762 (do_restore_current_thread_cleanup): Check whether old->inf is
9763 alive instead of looking up an inferior by ptid. Use
9764 switch_to_thread and switch_to_no_thread.
9765 (restore_current_thread_cleanup_dtor): Use old->inf directly
9766 instead of lookup up an inferior by id. Decref the inferior.
9767 Don't restore 'removable'.
9768 (make_cleanup_restore_current_thread): Same the inferior pointer
9769 in old, instead of the inferior number. Incref the inferior.
9770 Don't save/clear 'removable'.
9771
9bcb1f16
PA
97722017-04-19 Pedro Alves <palves@redhat.com>
9773
9774 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9775 unittests/scoped_restore-selftests.c.
9776 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9777 * common/scoped_restore.h (scoped_restore_base): Make "class".
9778 (scoped_restore_base::release): New public method.
9779 (scoped_restore_base::scoped_restore_base): New protected ctor.
9780 (scoped_restore_base::m_saved_var): New protected field.
9781 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9782 scoped_restore_base base class instead of m_saved_var directly.
9783 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9784 (scoped_restore_tmpl::scoped_restore_tmpl(const
9785 scoped_restore_tmpl<T>&)): Likewise.
9786 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9787 method.
9788 (scoped_restore_tmpl::saved_var): New method.
9789 (scoped_restore_tmpl::m_saved_var): Delete.
9790 * inferior.h (inferior::detaching): Now a bool.
9791 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9792 cleanup.
9793 * unittests/scoped_restore-selftests.c: New file.
9794
26fcd539
PA
97952017-04-19 Pedro Alves <palves@redhat.com>
9796
9797 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9798 Re-sort in alphabetic order.
9799
fdd243b0
PA
98002017-04-18 Pedro Alves <palves@redhat.com>
9801
9802 * xml-support.c (obstack_xml_printf): Delete.
9803 * xml-support.h (obstack_xml_printf): Delete.
9804
4895cde2
PA
98052017-04-18 Pedro Alves <palves@redhat.com>
9806
9807 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9808 vdebug, verror, body_text, start_element, end_element, name,
9809 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9810 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9811 is_xinclude>: Make private and add m_ prefix.
9812 (gdb_xml_parser::body_text): New method, based on ...
9813 (gdb_xml_body_text): ... this. Adjust.
9814 (gdb_xml_parser::vdebug): New method, based on ...
9815 (gdb_xml_debug): ... this. Adjust.
9816 (gdb_xml_parser::verror): New method, based on ...
9817 (gdb_xml_error): ... this. Adjust.
9818 (gdb_xml_parser::start_element): New method, based on ...
9819 (gdb_xml_start_element): ... this. Adjust.
9820 (gdb_xml_start_element_wrapper): Defer to
9821 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9822 (gdb_xml_parser::end_element): New method, based on ...
9823 (gdb_xml_end_element_wrapper): ... this. Adjust.
9824 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9825 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9826 (gdb_xml_parser::use_dtd): New method, based on ...
9827 (gdb_xml_use_dtd): ... this. Adjust.
9828 (gdb_xml_parser::parse): New method, based on ...
9829 (gdb_xml_parse): ... this. Adjust.
9830 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9831 (xinclude_start_include): Adjust to call the parser's name method.
9832 (xml_xinclude_default, xml_xinclude_start_doctype)
9833 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9834 method.
9835 (xml_process_xincludes): Adjust to call parser methods.
9836 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9837 declarations.
9838
bd8a901f
PA
98392017-04-18 Pedro Alves <palves@redhat.com>
9840
9841 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9842 gdb::optional<std::string>.
9843 * xml-support.c: Include <string>.
9844 (scope_level::scope_level(scope_level &&))
9845 (scope_level::~scope_level): Delete.
9846 (scope_level::body): Now a std::string.
9847 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9848 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9849 parameter.
9850 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9851 (xinclude_parsing_data::output): Now a std::string reference.
9852 (xinclude_start_include): Adjust.
9853 (xml_xinclude_default): Adjust.
9854 (xml_process_xincludes): Add 'output' parameter, and return bool.
9855 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9856 and return bool.
9857 * xml-tdesc.c: Include <unordered_map> and <string>.
9858 (tdesc_xml_cache): Delete.
9859 (tdesc_xml_cache_s): Delete.
9860 (xml_cache): Now an std::unordered_map.
9861 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9862 (target_fetch_description_xml): Change return type to
9863 gdb::optional<std::string>, and adjust.
9864 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
9865 (target_fetch_description_xml): Change return type to
9866 gdb::optional<std::string>.
9867
d35d1958
PA
98682017-04-18 Pedro Alves <palves@redhat.com>
9869
9870 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9871 unittests/optional-selftests.c.
9872 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
9873 * unittests/optional-selftests.c: New file.
9874 * unittests/optional/assignment/1.cc: New file.
9875 * unittests/optional/assignment/2.cc: New file.
9876 * unittests/optional/assignment/3.cc: New file.
9877 * unittests/optional/assignment/4.cc: New file.
9878 * unittests/optional/assignment/5.cc: New file.
9879 * unittests/optional/assignment/6.cc: New file.
9880 * unittests/optional/assignment/7.cc: New file.
9881 * unittests/optional/cons/copy.cc: New file.
9882 * unittests/optional/cons/default.cc: New file.
9883 * unittests/optional/cons/move.cc: New file.
9884 * unittests/optional/cons/value.cc: New file.
9885 * unittests/optional/in_place.cc: New file.
9886 * unittests/optional/observers/1.cc: New file.
9887 * unittests/optional/observers/2.cc: New file.
9888
22796e97
PA
98892017-04-18 Pedro Alves <palves@redhat.com>
9890
9891 * common/gdb_optional.h: Include common/traits.h.
9892 (in_place_t): New type.
9893 (in_place): New constexpr variable.
9894 (optional::optional): Remove member initialization of
9895 m_instantiated.
9896 (optional::optional(in_place_t...)): New constructor.
9897 (optional::~optional): Use reset.
9898 (optional::optional(const optional&)): New.
9899 (optional::optional(const optional&&)): New.
9900 (optional::optional(T &)): New.
9901 (optional::optional(T &&)): New.
9902 (operator::operator=(const optional &)): New.
9903 (operator::operator=(optional &&)): New.
9904 (operator::operator= (const T &))
9905 (operator::operator= (T &&))
9906 (operator::emplace (Args &&... args)): Return a T&. Use reset.
9907 (operator::reset): New.
9908 (operator::m_instantiated):: Add in-class initializer.
9909 * common/traits.h: Include <type_traits>.
9910 (struct And): New types.
9911
a7fc9b61
PA
99122017-04-18 Pedro Alves <palves@redhat.com>
9913
9914 * xml-support.c: Include <vector>.
9915 (scope_level::scope_level(const gdb_xml_element *))
9916 (scope_level::scope_level(scope_level&&)): New.
9917 (scope_level::~scope_level): New.
9918 (scope_level_s): Delete.
9919 (gdb_xml_parser::scopes): Now a std::vector.
9920 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
9921 Use std::vector.
9922 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
9923 scope cleanup code.
9924 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
9925 of the scopes member. Use std::vector::emplace_back.
9926
010151c9
PA
99272017-04-18 Pedro Alves <palves@redhat.com>
9928
9929 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
9930 a bool.
9931 (gdb_xml_end_element): Change type of first parameter.
9932 (gdb_xml_cleanup): Rename to ...
9933 (gdb_xml_parser::~gdb_xml_parser): ... this.
9934 (gdb_xml_create_parser_and_cleanup): Delete with ...
9935 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
9936 to this new ctor.
9937 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
9938 using gdb_xml_create_parser_and_cleanup.
9939 (xinclude_parsing_data): Add ctor/dtor.
9940 (xml_xinclude_cleanup): Delete.
9941 (xml_process_xincludes): Create a local xinclude_parsing_data
9942 instead of heap-allocating one. Create a local gdb_xml_parser
9943 instead of heap-allocating one with
9944 gdb_xml_create_parser_and_cleanup.
9945
d56060f0
JB
99462017-04-18 John Baldwin <jhb@FreeBSD.org>
9947
9948 PR threads/20743
9949 * fbsd-nat.c (resume_one_thread_cb): Remove.
9950 (resume_all_threads_cb): Remove.
9951 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
9952 iterate_over_threads.
9953
305d16a9
JB
99542017-04-17 Joel Brobecker <brobecker@adacore.com>
9955
9956 * NEWS: Create a new section for the next release branch.
9957 Rename the section of the current branch, now that it has
9958 been cut.
9959
8bb57231
JB
99602017-04-17 Joel Brobecker <brobecker@adacore.com>
9961
9962 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
9963 * version.in: Bump version to 8.0.50.DATE-git.
9964
096c92dd
SDJ
99652017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
9966
9967 PR gdb/21385
9968 * windows-nat.c (windows_create_inferior): Declare 'allargs'
9969 independently of the host, and fix build breakage on Cygwin.
9970
0550c955
PA
99712017-04-13 Pedro Alves <palves@redhat.com>
9972
9973 * inferior.c (free_inferior): Convert to ...
9974 (inferior::~inferior): ... this dtor.
9975 (inferior::inferior): New ctor, factored out from ...
9976 (add_inferior_silent): ... here. Allocate the inferior with a new
9977 expression.
9978 (delete_inferior): Call delete instead of free_inferior.
9979 * inferior.h (gdb_environ, continuation): Forward declare.
9980 (inferior): Now a class. Add in-class initialization to all
9981 members. Make boolean fields bool, except 'detaching'.
9982 (inferior::inferior): New explicit ctor.
9983 (inferior::~inferior): New.
9984
e3d60dfc
PA
99852017-04-13 Pedro Alves <palves@redhat.com>
9986
9987 * inferior.c (init_inferior_list): Delete.
9988 * inferior.h (init_inferior_list): Delete.
9989
5fd69d0a
PA
99902017-04-13 Pedro Alves <palves@redhat.com>
9991
9992 PR threads/13217
9993 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
9994 (top level): Call it twice, with different thread sets.
9995
c6609450
PA
99962017-04-13 Pedro Alves <palves@redhat.com>
9997
9998 * thread.c: Include <algorithm>.
9999 (thread_array_cleanup): Delete.
10000 (scoped_inc_dec_ref): New class.
10001 (live_threads_count): New function.
10002 (set_thread_refcount): Delete.
10003 (tp_array_compar_ascending): Now a bool.
10004 (tp_array_compar): Convert to a std::sort comparison function.
10005 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10006 and live_threads_count.
10007
2a00d7ce
PA
100082017-04-13 Pedro Alves <palves@redhat.com>
10009
10010 * infrun.c (follow_fork_inferior): Also switch the current
10011 inferior.
10012
441d7c93
PA
100132017-04-13 Pedro Alves <palves@redhat.com>
10014
10015 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10016 before calling create_internal_breakpoint.
10017
808480f6
PA
100182017-04-13 Pedro Alves <palves@redhat.com>
10019
10020 * fork-child.c (execv_argv): New class.
10021 (breakup_args): Refactored as ...
10022 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10023 Copy arguments to storage and replace separators with NULL
10024 terminators in place.
10025 (escape_bang_in_quoted_argument): Adjust to return bool.
10026 (execv_argv::execv_argv): New ctor.
10027 (execv_argv::init_for_shell): New method, factored out from
10028 fork_inferior. Don't strdup strings into the vector.
10029 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10030 Remove free_vector_argv call.
10031
ad3d022a
YQ
100322017-04-13 Yao Qi <yao.qi@linaro.org>
10033
10034 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10035 tdep->rx_psw_type.
10036
e6ddc3bf
YQ
100372017-04-13 Yao Qi <yao.qi@linaro.org>
10038
10039 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10040 * rx-tdep.c (rx_gdbarch_init): Likewise.
10041
bfb8cf90
PA
100422017-04-13 Pedro Alves <palves@redhat.com>
10043
10044 * breakpoint.h (struct breakpoint): Reindent.
10045
f5336ca5
PA
100462017-04-13 Pedro Alves <palves@redhat.com>
10047
10048 * breakpoint.c (bp_location): Rename to ...
10049 (bp_locations): ... this. All references updated.
10050 (bp_location_count): Rename to ...
10051 (bp_locations_count): ... this. All references updated.
10052 (bp_location_placed_address_before_address_max): Rename to ...
10053 (bp_locations_placed_address_before_address_max): ... this. All
10054 references updated.
10055 (bp_location_shadow_len_after_address_max): Rename to ...
10056 (bp_locations_shadow_len_after_address_max): ... this. All
10057 references updated.
10058 (bp_location_compare_addrs): Rename to ...
10059 (bp_locations_compare_addrs): ... this. All references updated.
10060 (bp_location_compare):Rename to ...
10061 (bp_locations_compare): ... this. All references updated.
10062 (bp_location_target_extensions_update): Rename to ...
10063 (bp_locations_target_extensions_update): ... this. All references
10064 updated.
10065
be628ab8
SDJ
100662017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10067
10068 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10069 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10070 'sgtty.h'.
10071 * common/gdb_termios.h: New file, with parts of "terminal.h".
10072 * inflow.c: Include "gdb_termios.h".
10073 * ser-unix.c: Include "gdb_termios.h".
10074 * terminal.h: Move terminal-related defines to
10075 "common/gdb_termios.h".
10076
8e9e35b1
TT
100772017-04-12 Tom Tromey <tom@tromey.com>
10078
10079 * probe.c (parse_probes): Update.
10080 * location.h (delete_event_location): Don't declare.
10081 (event_location_deleter::operator()): Update.
10082 * location.c (event_location_deleter::operator()): Rename from
10083 delete_event_location.
10084 * linespec.h (linespec_result) <location>: Change type to
10085 event_location_up.
10086 * linespec.c (canonicalize_linespec, event_location_to_sals)
10087 (decode_objc): Update.
10088 (linespec_result): Don't call delete_event_location.
10089 * breakpoint.c (create_breakpoints_sal)
10090 (bkpt_probe_create_sals_from_location)
10091 (strace_marker_create_sals_from_location): Update.
10092
16e802b9
TT
100932017-04-12 Tom Tromey <tom@tromey.com>
10094
10095 * linespec.h (struct linespec_result): Add constructor and
10096 destructor.
10097 (init_linespec_result, destroy_linespec_result)
10098 (make_cleanup_destroy_linespec_result): Don't declare.
10099 * linespec.c (init_linespec_result): Remove.
10100 (linespec_result::~linespec_result): Rename from
10101 destroy_linespec_result. Update.
10102 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10103 Remove.
10104 * breakpoint.c (create_breakpoint, break_range_command)
10105 (decode_location_default): Update.
10106 * ax-gdb.c (agent_command_1): Update.
10107
d28cd78a
TT
101082017-04-12 Tom Tromey <tom@tromey.com>
10109
10110 * remote.c (remote_download_tracepoint): Update.
10111 * python/py-breakpoint.c (bppy_get_location): Update.
10112 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10113 (gdbscm_breakpoint_location): Update.
10114 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10115 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10116 Change type to event_location_up.
10117 * breakpoint.c (create_overlay_event_breakpoint)
10118 (create_longjmp_master_breakpoint)
10119 (create_std_terminate_master_breakpoint)
10120 (create_exception_master_breakpoint)
10121 (breakpoint_event_location_empty_p, print_breakpoint_location)
10122 (print_one_breakpoint_location, create_thread_event_breakpoint)
10123 (init_breakpoint_sal, create_breakpoint)
10124 (print_recreate_ranged_breakpoint, break_range_command)
10125 (init_ada_exception_breakpoint, say_where): Update.
10126 (base_breakpoint_dtor): Don't call delete_event_location.
10127 (bkpt_print_recreate, tracepoint_print_recreate)
10128 (dprintf_print_recreate, update_static_tracepoint)
10129 (breakpoint_re_set_default): Update.
10130
711799d5
TT
101312017-04-12 Tom Tromey <tom@tromey.com>
10132
10133 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10134 type of "to_do". Update.
10135 (compute_stack_depth): Use std::vector.
10136
52d214d3
TT
101372017-04-12 Tom Tromey <tom@tromey.com>
10138
10139 * printcmd.c (find_instruction_backward): Use std::vector.
10140
4c404b8b
TT
101412017-04-12 Tom Tromey <tom@tromey.com>
10142
10143 * symfile.c (objfilep): Remove typedef.
10144 (reread_symbols): Use a std::vector.
10145
156d9eab
TT
101462017-04-12 Tom Tromey <tom@tromey.com>
10147
10148 * mi/mi-main.c (exec_direction_forward): Remove.
10149 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10150 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10151 scoped_restore.
10152 * guile/guile.c (guile_repl_command, guile_command)
10153 (gdbscm_execute_gdb_command): Use scoped_restore.
10154 * go-exp.y (go_parse): Use scoped_restore.
10155 * d-exp.y (d_parse): Use scoped_restore.
10156 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10157 * c-exp.y (c_parse): Use scoped_restore.
10158
4d89769a
TT
101592017-04-12 Tom Tromey <tom@tromey.com>
10160
10161 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10162 (mi_parse): Update return type.
10163 (mi_parse_free): Remove.
10164 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10165 (mi_parse::~mi_parse): Rename from mi_parse_free.
10166 (mi_parse_cleanup): Remove.
10167 (mi_parse): Return a unique_ptr. Use new.
10168 * mi/mi-main.c (mi_execute_command): Update.
10169
4b217cc7
TT
101702017-04-12 Tom Tromey <tom@tromey.com>
10171
10172 * location.c (explicit_location_lex_one): Return a
10173 unique_xmalloc_ptr.
10174 (string_to_explicit_location): Update. Remove cleanups.
10175
59d3651b
TT
101762017-04-12 Tom Tromey <tom@tromey.com>
10177
10178 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10179 (compare_value_and_voffset): Change type. Update.
10180 (compute_vtable_size): Change type of "offset_vec".
10181 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10182 (gnuv3_get_typeid): Remove extraneous declaration.
10183
b24b0d6c
TT
101842017-04-12 Tom Tromey <tom@tromey.com>
10185
10186 * charset.h (wchar_iterator): Fix comment.
10187
80a3b8c5
TT
101882017-04-12 Tom Tromey <tom@tromey.com>
10189
10190 * charset.c (iconv_wrapper): New class.
10191 (cleanup_iconv): Remove.
10192 (convert_between_encodings): Use it.
10193
c83dd867
TT
101942017-04-12 Tom Tromey <tom@tromey.com>
10195
10196 * symfile.h (increment_reading_symtab): Update type.
10197 * symfile.c (decrement_reading_symtab): Remove.
10198 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10199 * psymtab.c (psymtab_to_symtab): Update.
10200 * dwarf2read.c (dw2_instantiate_symtab): Update.
10201
0e8621a0
TT
102022017-04-12 Tom Tromey <tom@tromey.com>
10203
10204 * jit.c (struct jit_reader): Declare separately. Add constructor
10205 and destructor. Change type of "handle".
10206 (loaded_jit_reader): Define separately.
10207 (jit_reader_load): Update. New "new".
10208 (jit_reader_unload_command): Use "delete".
10209 * gdb-dlfcn.h (struct dlclose_deleter): New.
10210 (gdb_dlhandle_up): New typedef.
10211 (gdb_dlopen, gdb_dlsym): Update types.
10212 (gdb_dlclose): Remove.
10213 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10214 (gdb_dlsym): Change type of "handle".
10215 (make_cleanup_dlclose): Remove.
10216 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10217 * compile/compile-c-support.c (load_libcc): Update.
10218
67d89901
TT
102192017-04-12 Tom Tromey <tom@tromey.com>
10220
10221 * symtab.h (find_pcs_for_symtab_line): Change return type.
10222 * symtab.c (find_pcs_for_symtab_line): Change return type.
10223 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10224 type of "vec". Update.
10225 (ltpy_get_pcs_for_line): Update.
10226 * linespec.c (decode_digits_ordinary): Update.
10227
93921405
TT
102282017-04-12 Tom Tromey <tom@tromey.com>
10229
10230 * tracepoint.c (actions_command): Update.
10231 * python/python.c (python_command, python_interactive_command):
10232 Update.
10233 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10234 * guile/guile.c (guile_command): Update.
10235 * defs.h (read_command_lines, read_command_lines_1): Return
10236 command_line_up.
10237 (command_lines_deleter): New struct.
10238 (command_line_up): New typedef.
10239 * compile/compile.c (compile_code_command)
10240 (compile_print_command): Update.
10241 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10242 command_line_up.
10243 (make_cleanup_free_command_lines): Remove.
10244 * cli/cli-script.c (get_command_line, read_command_lines_1)
10245 (copy_command_lines): Return command_line_up.
10246 (while_command, if_command, read_command_lines, define_command)
10247 (document_command): Update.
10248 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10249 Remove.
10250 * breakpoint.h (breakpoint_set_commands): Change type of
10251 "commands".
10252 * breakpoint.c (breakpoint_set_commands): Change type of
10253 "commands". Update.
10254 (do_map_commands_command, update_dprintf_command_list)
10255 (create_tracepoint_from_upload): Update.
10256
ffc2605c
TT
102572017-04-12 Tom Tromey <tom@tromey.com>
10258
10259 * tracepoint.c (scope_info): Update.
10260 * spu-tdep.c (spu_catch_start): Update.
10261 * python/python.c (gdbpy_decode_line): Update.
10262 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10263 * python/py-breakpoint.c (bppy_init): Update.
10264 * probe.c (parse_probes): Update.
10265 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10266 * location.h (event_location_deleter): New struct.
10267 (event_location_up): New typedef.
10268 (new_linespec_location, new_address_location, new_probe_location)
10269 (new_explicit_location, copy_event_location)
10270 (string_to_event_location, string_to_event_location_basic)
10271 (string_to_explicit_location): Update return type.
10272 (make_cleanup_delete_event_location): Remove.
10273 * location.c (new_linespec_location, new_address_location)
10274 (new_probe_location, new_explicit_location, copy_event_location):
10275 Return event_location_up.
10276 (delete_event_location_cleanup)
10277 (make_cleanup_delete_event_location): Remove.
10278 (string_to_explicit_location, string_to_event_location_basic)
10279 (string_to_event_location): Return event_location_up.
10280 * linespec.c (canonicalize_linespec, event_location_to_sals)
10281 (decode_line_with_current_source)
10282 (decode_line_with_last_displayed, decode_objc): Update.
10283 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10284 * completer.c (location_completer): Update.
10285 * cli/cli-cmds.c (edit_command, list_command): Update.
10286 * breakpoint.c (create_overlay_event_breakpoint)
10287 (create_longjmp_master_breakpoint)
10288 (create_std_terminate_master_breakpoint)
10289 (create_exception_master_breakpoint)
10290 (create_thread_event_breakpoint): Update.
10291 (init_breakpoint_sal): Update. Remove some dead code.
10292 (create_breakpoint_sal): Change type of "location". Update.
10293 (create_breakpoints_sal, create_breakpoint, break_command_1)
10294 (dprintf_command, break_range_command, until_break_command)
10295 (init_ada_exception_breakpoint)
10296 (strace_marker_create_sals_from_location)
10297 (update_static_tracepoint, trace_command, ftrace_command)
10298 (strace_command, create_tracepoint_from_upload): Update.
10299 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10300 * ax-gdb.c (agent_command_1): Update.
10301
8f10c932
PA
103022017-04-12 Pedro Alves <palves@redhat.com>
10303
10304 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10305 * configure.tgt: Handle i[34567]86-*-go32* and
10306 i[34567]86-*-msdosdjgpp*.
10307 * i386-tdep.c (i386_svr4_reg_to_regnum):
10308 Make extern.
10309 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10310 i386-go32-tdep.c.
10311 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10312 * i386-go32-tdep.c: New file.
10313 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10314 declarations.
10315
0a31ccfb
SM
103162017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10317
10318 * aix-thread.c (pd_status2str): Change return type to const char *.
10319
e9bb3fbb
PA
103202017-04-12 Pedro Alves <palves@redhat.com>
10321
10322 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10323 calls to set_gdbarch_gnu_triplet_regexp.
10324
53375380
PA
103252017-04-12 Pedro Alves <palves@redhat.com>
10326
10327 PR gdb/21323
10328 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10329 New enum value.
10330 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10331 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10332 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10333 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10334 * gdbarch.h, gdbarch.c: Regenerate.
10335 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10336 gdbarch_wchar_bit and gdbarch_wchar_signed.
10337 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10338 * arm-tdep.c (arm_gdbarch_init): Likewise.
10339 * avr-tdep.c (avr_gdbarch_init): Likewise.
10340 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10341 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10342 * i386-tdep.c (i386_go32_init_abi): Likewise.
10343 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10344 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10345 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10346 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10347 * sh-tdep.c (sh_gdbarch_init): Likewise.
10348 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10349 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10350 * windows-tdep.c (windows_init_abi): Likewise.
10351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10352
53e710ac
PA
103532017-04-12 Pedro Alves <palves@redhat.com>
10354
10355 PR c++/21323
10356 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10357 cplus_primitive_type_char32_t>: New enum values.
10358 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10359 and cplus_primitive_type_char32_t.
10360 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10361 32, use the archtecture's built-in type for char16_t and char32_t,
10362 respectively. Otherwise, fallback to init_integer_type as before,
10363 but make the type unsigned, and issue a complaint.
10364 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10365
ab0538b8
AH
103662017-04-12 Alan Hayward <alan.hayward@arm.com>
10367
5e0e0422 10368 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10369 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10370
5430098f
SDJ
103712017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10372
10373 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10374 'const char *'.
10375
7c5ded6a
SDJ
103762017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10377
10378 * common/common-utils.c (free_vector_argv): New function.
10379 * common/common-utils.h: Include <vector>.
10380 (free_vector_argv): New prototype.
10381 * darwin-nat.c (darwin_create_inferior): Rewrite function
10382 prototype in order to constify "exec_file" and accept a
10383 "std::string" for "allargs".
10384 * fork-child.c: Include <vector>.
10385 (breakup_args): Rewrite function, using C++.
10386 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10387 and accept "std::string" for "allargs". Update the code to
10388 calculate "argv" based on "allargs". Update calls to "exec_fun"
10389 and "execvp".
10390 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10391 order to constify "exec_file" and accept a "std::string" for
10392 "allargs".
10393 * go32-nat.c (go32_create_inferior): Likewise.
10394 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10395 * infcmd.c (run_command_1): Constify "exec_file". Use
10396 "std::string" for inferior arguments.
10397 * inferior.h (fork_inferior): Update prototype.
10398 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10399 prototype in order to constify "exec_file" and accept a
10400 "std::string" for "allargs".
10401 * nto-procfs.c (procfs_create_inferior): Likewise.
10402 * procfs.c (procfs_create_inferior): Likewise.
10403 * remote-sim.c (gdbsim_create_inferior): Likewise.
10404 * remote.c (extended_remote_run): Update code to accept
10405 "std::string" as argument.
10406 (extended_remote_create_inferior): Rewrite function prototype in
10407 order to constify "exec_file" and accept a "std::string" for
10408 "allargs".
10409 * rs6000-nat.c (super_create_inferior): Likewise.
10410 (rs6000_create_inferior): Likewise.
10411 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10412 * windows-nat.c (windows_create_inferior): Likewise.
10413
ae0eee42
PA
104142017-04-11 Pedro Alves <palves@redhat.com>
10415
10416 * thread.c: Fix whitespace throughout.
10417
a6acac06
PR
104182017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10419
10420 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10421
64403bd1
AH
104222017-04-11 Alan Hayward <alan.hayward@arm.com>
10423
10424 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10425
a5bef50f
SDJ
104262017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10427
10428 PR gdb/21364
10429 * osdata.c (info_osdata): Check if 'type' is an empty string
10430 instead of NULL.
10431
9295a5a9
PA
104322017-04-10 Pedro Alves <palves@redhat.com>
10433
10434 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10435 (ptid_to_global_thread_id, in_thread_list)
10436 (do_captured_list_thread_ids, set_resumed, set_running)
10437 (set_executing, set_stop_requested, finish_thread_state)
10438 (validate_registers_access, can_access_registers_ptid)
10439 (print_thread_info_1, switch_to_thread)
10440 (do_restore_current_thread_cleanup)
10441 (make_cleanup_restore_current_thread, thread_command)
10442 (thread_name_command): Use operator== instead of ptid_equal.
10443
996812e3
PA
104442017-04-10 Pedro Alves <palves@redhat.com>
10445
10446 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10447 (current_thread_cleanup_chain): Delete.
10448 (restore_current_thread_cleanup_dtor)
10449 (make_cleanup_restore_current_thread): Remove references to
10450 current_thread_cleanup_chain.
10451
845b344f
AH
104522017-04-10 Alan Hayward <alan.hayward@arm.com>
10453
10454 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10455 REG_UNKNOWN.
10456
803bdfe4
YQ
104572017-04-10 Yao Qi <yao.qi@linaro.org>
10458
10459 PR gdb/19942
10460 * gdbthread.h (thread_info::deletable): New method.
10461 (thread_info::incref): New method.
10462 (thread_info::decref): New method.
10463 (thread_info::refcount): Move it to private.
10464 * infrun.c (save_stop_context): Call inc_refcount.
10465 (release_stop_context_cleanup): Likewise.
10466 * thread.c (set_thread_exited): New function.
10467 (init_thread_list): Delete "tp" only it is deletable, otherwise
10468 call set_thread_exited.
10469 (delete_thread_1): Call set_thread_exited.
10470 (current_thread_cleanup) <inferior_pid>: Remove.
10471 <thread>: New field.
10472 (restore_current_thread_ptid_changed): Removed.
10473 (do_restore_current_thread_cleanup): Adjust.
10474 (restore_current_thread_cleanup_dtor): Don't call
10475 find_thread_ptid.
10476 (set_thread_refcount): Use dec_refcount.
10477 (make_cleanup_restore_current_thread): Adjust.
10478 (thread_apply_all_command): Call inc_refcount.
10479 (_initialize_thread): Don't call
10480 observer_attach_thread_ptid_changed.
10481
8c25b497
YQ
104822017-04-10 Yao Qi <yao.qi@linaro.org>
10483
10484 * thread.c (delete_thread_1): Hoist code on marking thread as
10485 exited.
10486
8473b447
SM
104872017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10488
10489 * windows-nat.c (windows_detach): Initialize ptid with
10490 minus_one_ptid.
10491
6670ec13
SM
104922017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10493
10494 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10495
ba2f91bb
AH
104962017-04-07 Alan Hayward <alan.hayward@arm.com>
10497
10498 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10499 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10500 (bfin_pseudo_register_write): Likewise
10501
436252de
SM
105022017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10503
10504 * common/ptid.h (struct ptid): Change to...
10505 (class ptid_t): ... this.
10506 <ptid_t>: New constructors.
10507 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10508 matches>: New methods.
10509 <make_null, make_minus_one>: New static methods.
10510 <pid>: Rename to...
10511 <m_pid>: ...this.
10512 <lwp>: Rename to...
10513 <m_lwp>: ...this.
10514 <tid>: Rename to...
10515 <m_tid>: ...this.
10516 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10517 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10518 as references, move comment to class ptid_t.
10519 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10520 ptid_t static methods.
10521 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10522 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10523 Take ptid arguments as references, implement using ptid_t methods.
10524 * unittests/ptid-selftests.c: New file.
10525 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10526 unittests/ptid-selftests.c.
10527 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10528
0dedf377
TP
105292017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10530
10531 * python/python.c (python_run_simple_file): Cast mode literal to
10532 non-const char pointer as expected by PyFile_FromString.
10533
4e9868d4
SM
105342017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10535
10536 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10537 minus_one_ptid and null_ptid.
10538
9bf2a700
PA
105392017-04-05 Pedro Alves <palves@redhat.com>
10540
10541 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10542 * configure: Regenerate.
10543
a121b7c1
PA
105442017-04-05 Pedro Alves <palves@redhat.com>
10545
10546 * ada-exp.y (yyerror): Constify.
10547 * ada-lang.c (bound_name, get_selections)
10548 (ada_variant_discrim_type)
10549 (ada_variant_discrim_name, ada_value_struct_elt)
10550 (ada_lookup_struct_elt_type, is_unchecked_variant)
10551 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10552 (catch_ada_exception_command_split)
10553 (catch_ada_assert_command_split, catch_assert_command)
10554 (ada_op_name): Constify.
10555 * ada-lang.h (ada_yyerror, get_selections)
10556 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10557 * arc-tdep.c (arc_print_frame_cache): Constify.
10558 * arm-tdep.c (arm_skip_stub): Constify.
10559 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10560 (gen_aggregate_elt_ref): Constify.
10561 * bcache.c (print_bcache_statistics): Constify.
10562 * bcache.h (print_bcache_statistics): Constify.
10563 * break-catch-throw.c (catch_exception_command_1):
10564 * breakpoint.c (struct ep_type_description::description):
10565 Constify.
10566 (add_solib_catchpoint): Constify.
10567 (catch_fork_command_1): Add cast.
10568 (add_catch_command): Constify.
10569 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10570 Constify.
10571 * bsd-uthread.c (bsd_uthread_state): Constify.
10572 * buildsym.c (patch_subfile_names): Constify.
10573 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10574 Constify.
10575 * c-exp.y (yyerror): Constify.
10576 (token::oper): Constify.
10577 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10578 * c-varobj.c (cplus_describe_child): Constify.
10579 * charset.c (find_charset_names): Add cast.
10580 (find_charset_names): Constify array and add const_cast.
10581 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10582 (edit_command): Constify.
10583 * cli/cli-decode.c (lookup_cmd): Constify.
10584 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10585 Constify.
10586 (struct dump_context): Constify.
10587 (add_dump_command, restore_command): Constify.
10588 * cli/cli-script.c (get_command_line): Constify.
10589 * cli/cli-script.h (get_command_line): Constify.
10590 * cli/cli-utils.c (check_for_argument): Constify.
10591 * cli/cli-utils.h (check_for_argument): Constify.
10592 * coff-pe-read.c (struct read_pe_section_data): Constify.
10593 * command.h (lookup_cmd): Constify.
10594 * common/print-utils.c (decimal2str): Constify.
10595 * completer.c (gdb_print_filename): Constify.
10596 * corefile.c (set_gnutarget): Constify.
10597 * cp-name-parser.y (yyerror): Constify.
10598 * cp-valprint.c (cp_print_class_member): Constify.
10599 * cris-tdep.c (cris_register_name, crisv32_register_name):
10600 Constify.
10601 * d-exp.y (yyerror): Constify.
10602 (struct token::oper): Constify.
10603 * d-lang.h (d_yyerror): Constify.
10604 * dbxread.c (struct header_file_location::name): Constify.
10605 (add_old_header_file, add_new_header_file, last_function_name)
10606 (dbx_next_symbol_text, add_bincl_to_list)
10607 (find_corresponding_bincl_psymtab, set_namestring)
10608 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10609 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10610 * defs.h (command_line_input, print_address_symbolic)
10611 (deprecated_readline_begin_hook): Constify.
10612 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10613 Constify.
10614 * event-top.c (handle_line_of_input): Constify and add cast.
10615 * exceptions.c (catch_errors): Constify.
10616 * exceptions.h (catch_errors): Constify.
10617 * expprint.c (print_subexp_standard, op_string, op_name)
10618 (op_name_standard, dump_raw_expression, dump_raw_expression):
10619 * expression.h (op_name, op_string, dump_raw_expression):
10620 Constify.
10621 * f-exp.y (yyerror): Constify.
10622 (struct token::oper): Constify.
10623 (struct f77_boolean_val::name): Constify.
10624 * f-lang.c (f_word_break_characters): Constify.
10625 * f-lang.h (f_yyerror): Constify.
10626 * fork-child.c (fork_inferior): Add cast.
10627 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10628 (new_variant): Constify.
10629 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10630 * gdbarch.c: Regenerate.
10631 * gdbcore.h (set_gnutarget): Constify.
10632 * go-exp.y (yyerror): Constify.
10633 (token::oper): Constify.
10634 * go-lang.h (go_yyerror): Constify.
10635 * go32-nat.c (go32_sysinfo): Constify.
10636 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10637 * guile/scm-cmd.c (cmdscm_function): Constify.
10638 * guile/scm-param.c (pascm_param_value): Constify.
10639 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10640 (h8300sx_register_name): Constify.
10641 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10642 Constify.
10643 * ia64-tdep.c (ia64_register_names): Constify.
10644 * infcmd.c (construct_inferior_arguments): Constify.
10645 (path_command, attach_post_wait): Constify.
10646 * language.c (show_range_command, show_case_command)
10647 (unk_lang_error): Constify.
10648 * language.h (language_defn::la_error)
10649 (language_defn::la_name_of_this): Constify.
10650 * linespec.c (decode_line_2): Constify.
10651 * linux-thread-db.c (thread_db_err_str): Constify.
10652 * lm32-tdep.c (lm32_register_name): Constify.
10653 * m2-exp.y (yyerror): Constify.
10654 * m2-lang.h (m2_yyerror): Constify.
10655 * m32r-tdep.c (m32r_register_names): Constify and make static.
10656 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10657 * m88k-tdep.c (m88k_register_name): Constify.
10658 * macroexp.c (appendmem): Constify.
10659 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10660 (upgrade_type, parse_external, parse_partial_symbols)
10661 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10662 (new_symbol): Constify.
10663 * memattr.c (mem_info_command): Constify.
10664 * mep-tdep.c (register_name_from_keyword): Constify.
10665 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10666 Constify.
10667 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10668 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10669 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10670 cast.
10671 (mi_execute_async_cli_command): Constify.
10672 * mips-tdep.c (mips_register_name): Constify.
10673 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10674 (am33_register_name, am33_2_register_name)
10675 * moxie-tdep.c (moxie_register_names): Constify.
10676 * nat/linux-osdata.c (osdata_type): Constify fields.
10677 * nto-tdep.c (nto_parse_redirection): Constify.
10678 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10679 (lookup_child_selector): Constify.
10680 (objc_methcall::name): Constify.
10681 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10682 (lookup_struct_typedef): Constify.
10683 * objfiles.c (pc_in_section): Constify.
10684 * objfiles.h (pc_in_section): Constify.
10685 * p-exp.y (struct token::oper): Constify.
10686 (yyerror): Constify.
10687 * p-lang.h (pascal_yyerror): Constify.
10688 * parser-defs.h (op_name_standard): Constify.
10689 (op_print::string): Constify.
10690 (exp_descriptor::op_name): Constify.
10691 * printcmd.c (print_address_symbolic): Constify.
10692 * psymtab.c (print_partial_symbols): Constify.
10693 * python/py-breakpoint.c (stop_func): Constify.
10694 (bppy_get_expression): Constify.
10695 * python/py-cmd.c (cmdpy_completer::name): Constify.
10696 (cmdpy_function): Constify.
10697 * python/py-event.c (evpy_add_attribute)
10698 (gdbpy_initialize_event_generic): Constify.
10699 * python/py-event.h (evpy_add_attribute)
10700 (gdbpy_initialize_event_generic): Constify.
10701 * python/py-evts.c (add_new_registry): Constify.
10702 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10703 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10704 * python/py-inferior.c (get_buffer): Add cast.
10705 * python/py-param.c (parm_constant::name): Constify.
10706 * python/py-unwind.c (fprint_frame_id): Constify.
10707 * python/python.c (gdbpy_parameter_value): Constify.
10708 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10709 * remote.c (memory_packet_config::name): Constify.
10710 (show_packet_config_cmd, remote_write_bytes)
10711 (remote_buffer_add_string):
10712 * reverse.c (exec_reverse_once): Constify.
10713 * rs6000-tdep.c (variant::name, variant::description): Constify.
10714 * rust-exp.y (rustyyerror): Constify.
10715 * rust-lang.c (rust_op_name): Constify.
10716 * rust-lang.h (rustyyerror): Constify.
10717 * serial.h (serial_ops::name): Constify.
10718 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10719 (sh_sh3e_register_name, sh_sh2e_register_name)
10720 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10721 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10722 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10723 (sh_sh4al_dsp_register_name): Constify.
10724 * sh64-tdep.c (sh64_register_name): Constify.
10725 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10726 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10727 * stabsread.c (patch_block_stabs, read_type_number)
10728 (ref_map::stabs, ref_add, process_reference)
10729 (symbol_reference_defined, define_symbol, define_symbol)
10730 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10731 (read_one_struct_field, read_struct_fields, read_baseclasses)
10732 (read_tilde_fields, read_struct_type, read_array_type)
10733 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10734 (read_huge_number, read_range_type, read_args, common_block_start)
10735 (find_name_end): Constify.
10736 * stabsread.h (common_block_start, define_symbol)
10737 (process_one_symbol, symbol_reference_defined, ref_add):
10738 * symfile.c (get_section_index, add_symbol_file_command):
10739 * symfile.h (get_section_index): Constify.
10740 * target-descriptions.c (tdesc_type::name): Constify.
10741 (tdesc_free_type): Add cast.
10742 * target.c (find_default_run_target):
10743 (add_deprecated_target_alias, find_default_run_target)
10744 (target_announce_detach): Constify.
10745 (do_option): Constify.
10746 * target.h (add_deprecated_target_alias): Constify.
10747 * thread.c (print_thread_info_1): Constify.
10748 * top.c (deprecated_readline_begin_hook, command_line_input):
10749 Constify.
10750 (init_main): Add casts.
10751 * top.h (handle_line_of_input): Constify.
10752 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10753 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10754 (tfind_command): Rename to ...
10755 (tfind_command_1): ... this and constify.
10756 (tfind_command): New function.
10757 (tfind_end_command, tfind_start_command): Adjust.
10758 (encode_source_string): Constify.
10759 * tracepoint.h (encode_source_string): Constify.
10760 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10761 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10762 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10763 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10764 * tui/tui-win.c (parse_scrolling_args): Constify.
10765 * tui/tui-windata.c (tui_erase_data_content): Constify.
10766 * tui/tui-windata.h (tui_erase_data_content): Constify.
10767 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10768 * tui/tui.c (tui_enable): Add cast.
10769 * utils.c (defaulted_query): Constify.
10770 (init_page_info): Add cast.
10771 (puts_debug, subset_compare): Constify.
10772 * utils.h (subset_compare): Constify.
10773 * varobj.c (varobj_format_string): Constify.
10774 * varobj.h (varobj_format_string): Constify.
10775 * vax-tdep.c (vax_register_name): Constify.
10776 * windows-nat.c (windows_detach): Constify.
10777 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10778 * xml-support.c (gdb_xml_end_element): Constify.
10779 * xml-tdesc.c (tdesc_start_reg): Constify.
10780 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10781 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10782 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10783
995816ba
PA
107842017-04-05 Pedro Alves <palves@redhat.com>
10785
10786 * proc-api.c (struct trans): Constify.
10787 (procfs_note): Constify.
10788 * proc-events.c (struct trans, syscall_table):
10789 * proc-flags.c (struct trans): Constify.
10790 * proc-utils.h (procfs_note): Constify.
10791 * proc-why.c (struct trans): Constify.
10792 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10793 (procfs_detach): Constify.
10794 * sol-thread.c (struct string_map): Constify.
10795 (td_err_string, td_state_string): Constify.
10796
3e83a920
PA
107972017-04-05 Pedro Alves <palves@redhat.com>
10798
10799 * proc-api.c (procfs_filename): Don't initialize
10800 procfs_filename.
10801 (prepare_to_trace): Assume procfs_filename is non-NULL.
10802 (_initialize_proc_api): Give procfs_filename a default value here.
10803
63160a43
PA
108042017-04-05 Pedro Alves <palves@redhat.com>
10805
10806 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10807 'cond_string' parameter.
10808 (extract_exception_regexp): Constify 'string' parameter.
10809 (catch_exception_command_1): Constify.
10810 * breakpoint.c (init_catchpoint)
10811 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10812 parameter.
10813 (ep_parse_optional_if_clause, catch_fork_command_1)
10814 (catch_exec_command_1): Constify.
10815 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10816 parameter.
10817 (ep_parse_optional_if_clause): Constify.
10818 * cli/cli-utils.c (remove_trailing_whitespace)
10819 (check_for_argument): Constify.
10820 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10821 non-const overload.
10822 (check_for_argument): Likewise.
10823
9b2eba3d
PA
108242017-04-05 Pedro Alves <palves@redhat.com>
10825
10826 * event-top.c (command_line_handler): Add cast to execute_command
10827 call.
10828 * record-btrace.c (cmd_record_btrace_bts_start)
10829 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10830 (cmd_record_btrace_start): Add cast to execute_command call.
10831 * record-full.c (record_full_goto_insn):
10832 * record.c (record_start, record_stop): Add cast to
10833 execute_command_to_string calls.
10834 (cmd_record_start): Add cast to execute_command calls.
10835
2adadf51
PA
108362017-04-05 Pedro Alves <palves@redhat.com>
10837
10838 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10839 static inline function.
10840 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10841 array and use gdb_PyArg_ParseTupleAndKeywords.
10842 * python/py-cmd.c (cmdpy_init): Likewise.
10843 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10844 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10845 (infpy_search_memory): Likewise.
10846 * python/py-objfile.c (objfpy_add_separate_debug_file)
10847 (gdbpy_lookup_objfile): Likewise.
10848 * python/py-symbol.c (gdbpy_lookup_symbol)
10849 (gdbpy_lookup_global_symbol): Likewise.
10850 * python/py-type.c (gdbpy_lookup_type): Likewise.
10851 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10852 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10853 Likewise.
10854
0d1f4ceb
PA
108552017-04-05 Pedro Alves <palves@redhat.com>
10856
10857 * python/python-internal.h (gdb_PyGetSetDef): New type.
10858 * python/py-block.c (block_object_getset)
10859 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10860 * python/py-event.c (event_object_getset)
10861 (finish_breakpoint_object_getset): Likewise.
10862 * python/py-inferior.c (inferior_object_getset): Likewise.
10863 * python/py-infthread.c (thread_object_getset): Likewise.
10864 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
10865 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
10866 * python/py-objfile.c (objfile_getset): Likewise.
10867 * python/py-progspace.c (pspace_getset): Likewise.
10868 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
10869 Likewise.
10870 * python/py-record.c (recpy_record_getset): Likewise.
10871 * python/py-symbol.c (symbol_object_getset): Likewise.
10872 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
10873 Likewise.
10874 * python/py-type.c (type_object_getset, field_object_getset):
10875 Likewise.
10876 * python/py-value.c (value_object_getset): Likewise.
10877
4d759979
PA
108782017-04-05 Pedro Alves <palves@redhat.com>
10879
10880 * python/python-internal.h (gdb_PyObject_CallMethod)
10881 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
10882 New functions.
10883 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
10884 (PySys_GetObject, PySys_SetPath): New macros.
10885
fdf9e36f
PA
108862017-04-05 Pedro Alves <palves@redhat.com>
10887
10888 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
10889 info_osdata_command.
10890 * osdata.c (info_osdata_command): Rename to ...
10891 (info_osdata): ... this. Constify 'type' parameter, and remove
10892 the 'from_tty' parameter. Accept NULL TYPE.
10893 (info_osdata_command): New function.
10894 * osdata.h (info_osdata_command): Remove declaration.
10895 (info_osdata): New declaration.
10896
9f33b8b7
PA
108972017-04-05 Pedro Alves <palves@redhat.com>
10898
10899 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
10900 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
10901 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
10902 parameter.
10903 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
10904 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
10905 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
10906 parameter.
10907 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
10908 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
10909 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10910 (mi_cmd_file_list_exec_source_files)
10911 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
10912 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10913 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
10914 parameter.
10915 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
10916 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
10917 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10918 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
10919 (mi_cmd_stack_info_frame): Constify 'command' parameter.
10920 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
10921 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
10922 'command' parameter.
10923 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
10924 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
10925 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
10926 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
10927 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
10928 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
10929 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
10930 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
10931 (mi_cmd_var_set_update_range): Constify 'command' parameter.
10932 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
10933 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
10934 parameter.
10935 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
10936 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
10937 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
10938 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
10939 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
10940 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
10941 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
10942 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
10943 (mi_cmd_data_list_changed_registers)
10944 (mi_cmd_data_write_register_values)
10945 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
10946 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
10947 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
10948 (mi_cmd_list_features, mi_cmd_list_target_features)
10949 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
10950 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
10951 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
10952 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
10953 (mi_cmd_trace_frame_collected): Constify 'command'
10954 parameter.
10955 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
10956 'command' parameter.
10957
67cb5b2d
PA
109582017-04-05 Pedro Alves <palves@redhat.com>
10959
10960 * ada-lang.c (ada_completer_word_break_characters): Now a const
10961 array.
10962 (ada_get_gdb_completer_word_break_characters): Constify.
10963 * completer.c (gdb_completer_command_word_break_characters)
10964 (gdb_completer_file_name_break_characters)
10965 (gdb_completer_quote_characters): Now const arrays.
10966 (get_gdb_completer_quote_characters): Constify.
10967 (set_rl_completer_word_break_characters): New function.
10968 (set_gdb_completion_word_break_characters)
10969 (complete_line_internal): Use it.
10970 * completer.h (get_gdb_completer_quote_characters): Constify.
10971 (set_rl_completer_word_break_characters): Declare.
10972 * f-lang.c (f_word_break_characters): Constify.
10973 * language.c (default_word_break_characters): Constify.
10974 * language.h (language_defn::la_word_break_characters): Constify.
10975 (default_word_break_characters): Constify.
10976 * top.c (init_main): Use set_rl_completer_word_break_characters.
10977
7a114964
PA
109782017-04-05 Pedro Alves <palves@redhat.com>
10979
10980 * aix-thread.c (aix_thread_pid_to_str)
10981 (aix_thread_extra_thread_info): Constify.
10982 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
10983 * bsd-uthread.c (bsd_uthread_extra_thread_info)
10984 (bsd_uthread_pid_to_str): Constify.
10985 * corelow.c (core_pid_to_str): Constify.
10986 * darwin-nat.c (darwin_pid_to_str): Constify.
10987 * fbsd-nat.c (fbsd_pid_to_str): Constify.
10988 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
10989 Constify.
10990 * gnu-nat.c (gnu_pid_to_str): Constify.
10991 * go32-nat.c (go32_pid_to_str): Constify.
10992 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
10993 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
10994 * inferior.c (inferior_pid_to_str): Constify.
10995 * linux-nat.c (linux_nat_pid_to_str): Constify.
10996 * linux-tdep.c (linux_core_pid_to_str): Constify.
10997 * linux-thread-db.c (thread_db_pid_to_str)
10998 (thread_db_extra_thread_info): Constify.
10999 * nto-tdep.c (nto_extra_thread_info): Constify.
11000 * nto-tdep.h (nto_extra_thread_info): Constify.
11001 * obsd-nat.c (obsd_pid_to_str): Constify.
11002 * procfs.c (procfs_pid_to_str): Constify.
11003 * ravenscar-thread.c (ravenscar_extra_thread_info)
11004 (ravenscar_pid_to_str): Constify.
11005 * remote-sim.c (gdbsim_pid_to_str): Constify.
11006 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11007 Constify.
11008 * sol-thread.c (solaris_pid_to_str): Constify.
11009 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11010 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11011 * target.c (default_pid_to_str, target_pid_to_str)
11012 (normal_pid_to_str, default_pid_to_str): Constify.
11013 * target.h (target_ops::to_pid_to_str)
11014 (target_ops::to_extra_thread_info): Constify.
11015 (target_pid_to_str, normal_pid_to_str): Constify.
11016 * windows-nat.c (windows_pid_to_str): Constify.
11017 * gdbarch.sh (core_pid_to_str): Constify.
11018 * target-delegates.c: Regenerate.
11019 * gdbarch.h, gdbarch.c: Regenerate.
11020
69bbf465
PA
110212017-04-05 Pedro Alves <palves@redhat.com>
11022
11023 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11024 the memory of the temporary warning_pre_print override.
11025 * utils.c (warning_pre_print): Constify.
11026 * utils.h (warning_pre_print): Constify.
11027
be47f9e8
PA
110282017-04-05 Pedro Alves <palves@redhat.com>
11029
11030 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11031 (shell_command): New function.
11032 (make_command): Use std::string.
11033 (init_cli_cmds): Register shell_command instead of shell_escape.
11034
bde6261a
PA
110352017-04-05 Pedro Alves <palves@redhat.com>
11036
11037 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11038 * tracepoint.c (default_collect): Don't initialize.
11039
b38ef47f
PA
110402017-04-05 Pedro Alves <palves@redhat.com>
11041
11042 * macroexp.c (macro_buffer::shared): Now a bool.
11043 (init_buffer): Update.
11044 (init_shared_buffer): Constify 'addr' parameter.
11045 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11046 casts.
11047
f995bbe8
PA
110482017-04-05 Pedro Alves <palves@redhat.com>
11049
11050 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11051 * disasm.c (set_disassembler_options): Constify local.
11052 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11053
4a596fe2
SDJ
110542017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11055
11056 PR gdb/21352
11057 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11058 option.
11059
2cad08ea
YQ
110602017-04-05 Yao Qi <yao.qi@linaro.org>
11061
11062 * frame.c (frame_unwind_register_unsigned): Call
11063 frame_unwind_register_value.
11064
55a98976
YQ
110652017-04-05 Yao Qi <yao.qi@linaro.org>
11066
11067 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11068 Use gdb_test_multiple, and don't match anchor.
11069
4ac40124
PA
110702017-04-05 Pedro Alves <palves@redhat.com>
11071
11072 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11073 (Write After Approval): Remove Simon Marchi.
11074
c053b654
PA
110752017-04-05 Pedro Alves <palves@redhat.com>
11076
11077 * common/gdb_optional.h (optional::optional): Make constexpr and
11078 initialize m_dummy.
11079
4c7bf4f9
JB
110802017-04-04 John Baldwin <jhb@FreeBSD.org>
11081
11082 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11083 (amd64fbsd_jmp_buf_reg_offset): Remove.
11084 (amd64fbsd_supply_uthread): Remove function.
11085 (amd64fbsd_collect_uthread): Remove function.
11086 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11087 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11088 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11089 (fbsd-nat.c): Update comment.
11090 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11091 (i386fbsd_jmp_buf_reg_offset): Remove.
11092 (i386fbsd_supply_uthread): Remove function.
11093 (i386fbsd_collect_uthread): Remove function.
11094 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11095
1e1a8bef
JB
110962017-04-04 John Baldwin <jhb@FreeBSD.org>
11097
11098 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11099 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11100 * NEWS: Mention that support for FreeBSD/alpha was removed.
11101 * alpha-fbsd-tdep.c: Delete file.
11102 * config/alpha/fbsd.mh: Delete file.
11103 * configure.host: Delete alpha*-*-freebsd* and
11104 alpha*-*-kfreebsd*-gnu.
11105 * configure.tgt: Delete alpha*-*-freebsd* and
11106 alpha*-*-kfreebsd*-gnu.
11107
49907934
JB
111082017-04-04 John Baldwin <jhb@FreeBSD.org>
11109
11110 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11111 amd64bsd_store_inferior_registers): Use ptid from regcache.
11112
6f77053d
PA
111132017-04-04 Pedro Alves <palves@redhat.com>
11114
11115 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11116 data fields, make them private and add "m_" prefixes.
11117 (lnp_state_machine::lnp_state_machine): New ctor.
11118 (record_line, check_line_address, handle_set_discriminator)
11119 (handle_set_address, handle_advance_pc, handle_special_opcode)
11120 (handle_advance_line, handle_set_file, handle_negate_stmt)
11121 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11122 (end_sequence, advance_line): New methods.
11123 (m_gdbarch, m_record_lines_p): New fields.
11124 (lnp_reader_state): Delete.
11125 (dwarf_record_line): Rename to ...
11126 (lnp_state_machine::record_line): ... adjust.
11127 (init_lnp_state_machine): Delete.
11128 (lnp_state_machine::lnp_state_machine): New.
11129 (check_line_address): Rename to ...
11130 (lnp_state_machine::check_line_address): This.
11131 (dwarf_decode_lines_1): Remove reference to "reader_state".
11132 Adjust lnp_state_machine having a non-default ctor. Use bool.
11133 State machine internal state manipulation moved to
11134 lnp_state_machine methods.
11135
9c541725
PA
111362017-04-04 Pedro Alves <palves@redhat.com>
11137
11138 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11139 unittests/offset-type-selftests.c.
11140 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11141 * common/offset-type.h: New file.
11142 * common/preprocessor.h: New file.
11143 * common/traits.h: New file.
11144 * common/valid-expr.h: New file.
11145 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11146 sect_offset and cu_offset strong typedefs throughout.
11147 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11148 typedefs throughout.
11149 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11150 sect_offset and cu_offset strong typedefs throughout.
11151 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11152 typedefs throughout.
11153 * gdbtypes.h: Include "common/offset-type.h".
11154 (cu_offset): Now an offset type (strong typedef) instead of a
11155 struct.
11156 (sect_offset): Likewise.
11157 (union call_site_parameter_u): Rename "param_offset" field to
11158 "param_cu_off".
11159 * unittests/offset-type-selftests.c: New file.
11160
ecfb656c
PA
111612017-04-04 Pedro Alves <palves@redhat.com>
11162
11163 * common/underlying.h: New file.
11164 * dwarf2read.c: Include "common/gdb_optional.h" and
11165 "common/underlying.h".
11166 (dir_index, file_name_index): New types.
11167 (file_entry): Use them.
11168 (file_entry::include): Use to_underlying.
11169 (line_header::add_file_name): Use dir_index.
11170 (read_formatted_entries): Use gdb::optional. Read form before
11171 writting to file_entry.
11172 (dwarf_decode_line_header): Use dir_index.
11173 (lnp_state_machine::current_file): Use to_underlying.
11174 (lnp_state_machine::file): Change type to file_name_index.
11175 (dwarf_record_line): Use to_underlying.
11176 (init_lnp_state_machine): Use file_name_index.
11177 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11178
d194f1fe
PA
111792017-04-04 Pedro Alves <palves@redhat.com>
11180
11181 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11182 operator bool, has_value and get methods.
11183
fff8551c
PA
111842017-04-04 Pedro Alves <palves@redhat.com>
11185
11186 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11187 fields.
11188 (line_header): Initialize all data fields. Change type of
11189 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11190 Change type of include_dirs to std::vector<const char *>. Remove
11191 num_include_dirs, include_dirs_size. Change type of file_names to
11192 std::vector<file_entry>. Remove num_file_names, file_names_size.
11193 (line_header::line_header): New.
11194 (line_header::add_include_dir, line_header::add_file_name): New
11195 methods.
11196 (line_header::include_dir_at): Remove NULL check.
11197 (line_header::file_name_at): Add const overload.
11198 (line_header_up): New unique_ptr typedef.
11199 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11200 std::vector. Remove free_line_header call.
11201 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11202 free_line_header call.
11203 (free_cu_line_header): Delete.
11204 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11205 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11206 Adjust to use std::vector.
11207 (free_line_header): Delete.
11208 (free_line_header_voidp): Use delete.
11209 (add_include_dir): Replace with ...
11210 (line_header::add_include_dir): ... this method. Use std::vector.
11211 (add_file_name): Replace with ...
11212 (line_header::add_file_name): ... this method. Use std::vector.
11213 (add_include_dir_stub): Delete.
11214 (read_formatted_entries): Remove memset.
11215 (dwarf_decode_line_header): Return a line_header_up instead of a
11216 raw pointer. Remove cleanup handling. Pass lambdas to
11217 read_formatted_entries. Adjust to use line_header methods.
11218 (dwarf_decode_lines_1): Adjust to use line_header methods.
11219 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11220 use std::vector.
11221
d62a8ae2
SM
112222017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11223
11224 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11225 instead of struct ptid.
11226
db3a1dc7
AH
112272017-05-04 Alan Hayward <alan.hayward@arm.com>
11228
11229 * frame.c (get_frame_register_bytes): Unwind using value.
11230 (put_frame_register_bytes): Likewise.
11231
b1b45502
IB
112322017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11233
11234 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11235 aggregate-like.
11236
ec13808e
JK
112372017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11238
11239 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11240
12316564
YQ
112412017-03-29 Yao Qi <yao.qi@linaro.org>
11242
11243 * gdbthread.h (struct thread_info): Declare constructor and
11244 destructor. Add some in-class member initializers.
11245 * thread.c (free_thread): Remove.
11246 (init_thread_list): Call delete instead of free_thread.
11247 (new_thread): Call thread_info constructor.
11248 (thread_info::thread_info): New function.
11249 (thread_info::~thread_info): New function.
11250 (delete_thread_1): Call delete instead of free_thread.
11251 (make_cleanup_restore_current_thread): Move tp and frame to
11252 inner block.
11253
fe5f7374
AK
112542017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11255
11256 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11257 (arc_skip_prologue): Likewise.
11258 (arc_make_frame_cache): Likewise.
11259 (arc_pv_get_operand): New function.
11260 (arc_is_in_prologue): Likewise.
11261 (arc_analyze_prologue): Likewise.
11262 (arc_print_frame_cache): Likewise.
11263 (MAX_PROLOGUE_LENGTH): New constant.
11264
eea78757
AK
112652017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11266
11267 * configure.tgt: Add arc-insn.o.
11268 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11269 (dump_arc_instruction_command): New function.
11270 (arc_fprintf_disasm): Likewise.
11271 (arc_disassemble_info): Likewise.
11272 (arc_insn_get_operand_value): Likewise.
11273 (arc_insn_get_operand_value_signed): Likewise.
11274 (arc_insn_get_memory_base_reg): Likewise.
11275 (arc_insn_get_memory_offset): Likewise.
11276 (arc_insn_get_branch_target): Likewise.
11277 (arc_insn_dump): Likewise.
11278 (arc_insn_get_linear_next_pc): Likewise.
11279 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11280 (arc_disassemble_info): Likewise.
11281 (arc_insn_get_branch_target): Likewise.
11282 (arc_insn_get_linear_next_pc): Likewise.
11283 * NEWS: Mention new "maint print arc arc-instruction".
11284
3be78afd
AK
112852017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11286
11287 * arc-tdep (maintenance_print_arc_list): New variable.
11288 (maintenance_print_arc_command): New function.
11289
296ec4fa
AK
112902017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11291
11292 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11293 Add "limm" and "reserved".
11294 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11295 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11296 * arc-tdep.h (arc_regnum): Likewise.
11297
f74f865e
MF
112982017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11299
11300 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11301 for THREADPTR register.
11302 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11303 register.
11304 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11305 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11306 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11307
0d0bf81a
MF
113082017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11309
11310 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11311 registers above gdbarch_num_regs (gdbarch) as privileged in
11312 call0 ABI.
11313
0ce4291e
MF
113142017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11315
11316 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11317 for a single specified register or for all registers in
11318 a0_base..a0_base + C0_NREGS range.
11319 (supply_gregset_reg): Call regcache_raw_supply for a single
11320 specified register or for all registers in a0_base..a0_base +
11321 C0_NREGS range.
11322
c56054f9
MF
113232017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11324
11325 * arch/xtensa.h (C0_NREGS): Add definition.
11326 * xtensa-tdep.c (C0_NREGS): Remove definition.
11327
a4398628
MF
113282017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11329
11330 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11331 Drop xtensa_default_isa initialization.
11332 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11333
8c43009f
PA
113342017-03-27 Pedro Alves <palves@redhat.com>
11335
11336 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11337 (file_entry::include_dir): New method.
11338 (line_header::include_dir_at, line_header::file_name_at): New
11339 methods.
11340 (setup_type_unit_groups, setup_type_unit_groups)
11341 (psymtab_include_file_name): Simplify using the new methods.
11342 (lnp_state_machine) <the_line_header>: New field.
11343 <file>: Add comment.
11344 (lnp_state_machine::current_file): New method.
11345 (dwarf_record_line): Simplify using the new methods.
11346 (init_lnp_state_machine): Initialize the "the_line_header" field.
11347 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11348 Simplify using the new methods.
11349
a7e80b9e
PA
113502017-03-27 Pedro Alves <palves@redhat.com>
11351
11352 * cp-name-parser.y (make_empty): Delete.
11353 (demangler_special, nested_name, ptr_operator, array_indicator)
11354 (direct_declarator, declarator_1): Use fill_comp instead of
11355 make_empty.
11356
21047726
PA
113572017-03-27 Pedro Alves <palves@redhat.com>
11358
11359 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11360 to ATTRIBUTE_PRINTF.
11361 * solib-target.c (library_list_start_list): Print "string" not
11362 "version".
11363 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11364 gdb_xml_error call.
11365
d721ba37
PA
113662017-03-27 Pedro Alves <palves@redhat.com>
11367
11368 * dwarf2read.c (struct file_and_directory): New.
11369 (dwarf2_get_dwz_file): Adjust to use std::string.
11370 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11371 (find_file_and_directory): Adjust to return a file_and_directory
11372 object.
11373 (read_file_scope): Adjust to use file_and_directory. Remove
11374 make_cleanup/do_cleanups calls.
11375 (open_and_init_dwp_file): Adjust to use std::string. Remove
11376 make_cleanup/do_cleanups calls.
11377 * python/python.c (do_start_initialization): Adjust to ldirname
11378 returning a std::string.
11379 * utils.c (ldirname): Now returns a std::string.
11380 * utils.h (ldirname): Change return type to std::string.
11381 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11382 returning a std::string.
11383 * xml-tdesc.c (file_read_description_xml): Likewise.
11384
ed771251
AH
113852017-03-24 Alan Hayward <alan.hayward@arm.com>
11386
11387 * regcache.c (regcache_debug_print_register): New function.
11388 * regcache.h (regcache_debug_print_register): New declaration.
11389 * target.c (debug_print_register): Remove.
11390 (target_fetch_registers): Call regcache_debug_print_register.
11391 (target_store_registers): Likewise.
11392
568c1b9f
PB
113932017-03-24 Pádraig Brady <pbrady@fb.com>
11394
11395 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11396 reference beyond the 'lh->include_dirs' array before accessing to
11397 it.
11398 (psymtab_include_file_name): Likewise.
11399 (dwarf_decode_lines_1): Likewise.
11400 (dwarf_decode_lines): Likewise.
11401 (file_file_name): Likewise.
11402
3e00d44f
SM
114032017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11404
11405 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11406 inferior_ptid.
11407 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11408 ps_lsetfpregs): Likewise.
11409 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11410 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11411 ps_lsetfpregs): Likewise.
11412 * target.c (target_fetch_registers, target_store_registers):
11413 Remove asserts.
11414
077ae656
AH
114152017-03-23 Alan Hayward <alan.hayward@arm.com>
11416
11417 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11418
1e2b521d
YQ
114192017-03-23 Yao Qi <yao.qi@linaro.org>
11420
11421 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11422 (_initialize_aarch64_tdep): Register it.
11423 (aarch64_record_load_store): Handle PRFM instruction.
11424 (aarch64_process_record_test): New function.
11425
33877125
YQ
114262017-03-23 Yao Qi <yao.qi@linaro.org>
11427
11428 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11429 indentation.
11430
a0eef940
YQ
114312017-03-23 Yao Qi <yao.qi@linaro.org>
11432
11433 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11434
3f2a3564
PR
114352017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11436
11437 python/python.c (do_start_initialization): Fix memory leak.
11438
b67aeab0
SM
114392017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11440
11441 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11442 using get_ptrace_pid.
11443 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11444 inferior_ptid.
11445 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11446 inferior_ptid instead of pid.
11447
ffdbe864
YQ
114482017-03-22 Yao Qi <yao.qi@linaro.org>
11449
11450 * aarch64-tdep.c: Wrap locally used classes in anonymous
11451 namespace.
11452 * arm-tdep.c: Likewise.
11453 * linespec.c: Likewise.
11454 * ui-out.c: Likewise.
11455
9d736fbf
JG
114562017-03-22 Jonah Graham <jonah@kichwacoders.com>
11457
11458 PR gdb/19637
11459 * python/lib/gdb/printer/bound_registers.py: Import sys.
11460
3de88e9a
SM
114612017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11462
11463 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11464 windows_thread_info parameter and use it instead of
11465 current_thread.
11466 (windows_fetch_inferior_registers): Don't set current_thread,
11467 pass the thread to do_windows_fetch_inferior_registers. Use
11468 ptid from regcache instead of inferior_ptid.
11469 (do_windows_store_inferior_registers): Add windows_thread_info
11470 parameter and use it instead of current_thread.
11471 (windows_store_inferior_registers): Don't set current_thread,
11472 pass the thread to do_windows_store_inferior_registers. Use
11473 ptid from regcache instead of inferior_ptid.
11474
0e7b8f61
SM
114752017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11476
11477 * ser-mingw.c (ser_windows_raw): Remove reference to
11478 struct serial::current_timeout.
11479
5badf10a
IR
114802017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11481
11482 PR tdep/20928
11483 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11484 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11485 (sparc64_fsr_type): Fix %fsr decoding.
11486
cee59b3f
TW
114872017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11488
11489 * python/py-record-btrace.c (btpy_insn_data): Change return type
11490 for Python 2.
11491
639a9038
SM
114922017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11493
11494 * spu-linux-nat.c (spu_fetch_inferior_registers,
11495 spu_store_inferior_registers): Use ptid from regcache, set and
11496 restore inferior_ptid.
11497 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11498 Likewise.
11499
bcc0c096
SM
115002017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11501
11502 * i386-linux-nat.c (fetch_register, store_register,
11503 i386_linux_fetch_inferior_registers,
11504 i386_linux_store_inferior_registers): Use ptid from regcache.
11505 * ia64-linux-nat.c (ia64_linux_fetch_register,
11506 ia64_linux_store_register): Likewise.
11507 * inf-ptrace.c (inf_ptrace_fetch_register,
11508 inf_ptrace_store_register): Likewise.
11509 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11510 m32r_linux_store_inferior_registers): Likewise.
11511 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11512 m68kbsd_store_inferior_registers): Likewise.
11513 * m68k-linux-nat.c (fetch_register, store_register,
11514 m68k_linux_fetch_inferior_registers,
11515 m68k_linux_store_inferior_registers): Likewise.
11516 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11517 m88kbsd_store_inferior_registers): Likewise.
11518 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11519 mips_fbsd_store_inferior_registers): Likewise.
11520 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11521 mips64_linux_regsets_store_registers): Likewise.
11522 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11523 mipsnbsd_store_inferior_registers): Likewise.
11524 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11525 mips64obsd_store_inferior_registers): Likewise.
11526 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11527 Likewise.
11528 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11529 ppcfbsd_store_inferior_registers): Likewise.
11530 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11531 ppc_linux_store_inferior_registers): Likewise.
11532 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11533 ppcnbsd_store_inferior_registers): Likewise.
11534 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11535 ppcobsd_store_registers): Likewise.
11536 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11537 Likewise.
11538 * ravenscar-thread.c (ravenscar_fetch_registers,
11539 ravenscar_store_registers, ravenscar_prepare_to_store):
11540 Likewise.
11541 * record-btrace.c (record_btrace_fetch_registers,
11542 record_btrace_store_registers, record_btrace_prepare_to_store):
11543 Likewise.
11544 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11545 Lookup inferior using ptid from regcache, instead of
11546 current_inferior.
11547 * remote.c (remote_fetch_registers, remote_store_registers): Use
11548 ptid from regcache.
11549 * rs6000-nat.c (fetch_register, store_register): Likewise.
11550 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11551 s390_linux_store_inferior_registers): Likewise.
11552 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11553 shnbsd_store_inferior_registers): Likewise.
11554 * sol-thread.c (sol_thread_fetch_registers,
11555 sol_thread_store_registers): Likewise.
11556 * sparc-nat.c (sparc_fetch_inferior_registers,
11557 sparc_store_inferior_registers): Likewise.
11558 * tilegx-linux-nat.c (fetch_inferior_registers,
11559 store_inferior_registers): Likewise.
11560 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11561 vaxbsd_store_inferior_registers): Likewise.
11562 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11563 store_xtregs): Likewise.
11564
c0f55cc6
AV
115652017-03-20 Artemiy Volkov <artemiyv@acm.org>
11566
11567 PR gdb/14441
11568 * NEWS: Mention support for rvalue references in GDB and python.
11569 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11570 supports both lvalue and rvalue references.
11571
15c0a2a9
AV
115722017-03-20 Artemiy Volkov <artemiyv@acm.org>
11573
11574 PR gdb/14441
11575 * gdbtypes.c (rank_one_type): Implement overloading
11576 resolution rules regarding rvalue references.
11577
aa006118
AV
115782017-03-20 Artemiy Volkov <artemiyv@acm.org>
11579
11580 PR gdb/14441
11581 * aarch64-tdep.c (aarch64_type_align)
11582 (aarch64_extract_return_value, aarch64_store_return_value): Change
11583 lvalue reference type checks to general reference type checks.
11584 * amd64-tdep.c (amd64_classify): Likewise.
11585 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11586 Likewise.
11587 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11588 (arm_store_return_value): Likewise.
11589 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11590 * c-typeprint.c (c_print_type): Likewise.
11591 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11592 (cplus_number_of_children, cplus_describe_child): Likewise.
11593 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11594 * completer.c (expression_completer): Likewise.
11595 * cp-support.c (make_symbol_overload_list_adl_namespace):
11596 Likewise.
11597 * darwin-nat-info.c (info_mach_region_command): Likewise.
11598 * dwarf2loc.c (entry_data_value_coerce_ref)
11599 (value_of_dwarf_reg_entry): Likewise.
11600 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11601 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11602 Likewise.
11603 * findvar.c (extract_typed_address, store_typed_address):
11604 Likewise.
11605 * gdbtypes.c (rank_one_type): Likewise.
11606 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11607 * infcall.c (value_arg_coerce): Likewise.
11608 * language.c (pointer_type): Likewise.
11609 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11610 Likewise.
11611 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11612 * mn10300-tdep.c (mn10300_type_align): Likewise.
11613 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11614 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11615 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11616 Likewise.
11617 * printcmd.c (print_formatted, x_command): Likewise.
11618 * python/py-type.c (typy_get_composite, typy_template_argument):
11619 Likewise.
11620 * python/py-value.c (valpy_referenced_value)
11621 (valpy_get_dynamic_type, value_has_field): Likewise.
11622 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11623 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11624 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11625 * spu-tdep.c (spu_scalar_value_p): Likewise.
11626 * symtab.c (lookup_symbol_aux): Likewise.
11627 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11628 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11629 Likewise.
11630 * valops.c (value_cast_pointers, value_cast)
11631 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11632 (value_struct_elt, value_struct_elt_bitpos)
11633 (value_find_oload_method_list, find_overload_match)
11634 (value_rtti_indirect_type): Likewise.
11635 * valprint.c (val_print_scalar_type_p, generic_val_print):
11636 Likewise.
11637 * value.c (value_actual_type, value_as_address, unpack_long)
11638 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11639 (coerce_ref): Likewise.
11640 * varobj.c (varobj_get_value_type): Likewise.
11641
3fcf899d
AV
116422017-03-20 Artemiy Volkov <artemiyv@acm.org>
11643
11644 PR gdb/14441
11645 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11646 table of constants.
11647 * python/lib/gdb/command/explore.py: Support exploring values
11648 of rvalue reference types.
11649 * python/lib/gdb/types.py: Implement get_basic_type() for
11650 rvalue reference types.
11651 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11652 constant.
11653 * python/py-value.c (valpy_getitem): Add an rvalue reference
11654 check.
11655 (valpy_reference_value): Add new parameter "refcode".
11656 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11657 New wrappers for valpy_reference_value().
11658 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11659 (gdbpy_invoke_xmethod): Likewise.
11660
4297a3f0
AV
116612017-03-20 Artemiy Volkov <artemiyv@acm.org>
11662
11663 PR gdb/14441
11664 * dwarf2read.c (process_die, read_type_die_1): Handle the
11665 DW_TAG_rvalue_reference_type DIE.
11666 (read_tag_reference_type): Add new parameter "refcode".
11667
e1cb3213
AV
116682017-03-20 Artemiy Volkov <artemiyv@acm.org>
11669
11670 PR gdb/14441
11671 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11672 (c_type_print_modifier, c_type_print_varspec_suffix)
11673 (c_type_print_base): Support printing rvalue reference types.
11674 * c-valprint.c (c_val_print, c_value_print): Support printing
11675 rvalue reference values.
11676
e4347c89
AV
116772017-03-20 Artemiy Volkov <artemiyv@acm.org>
11678
11679 PR gdb/14441
11680 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11681 typename.
11682 * cp-support.c (replace_typedefs): Handle
11683 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11684 * python/py-type.c (typy_lookup_type): Likewise.
11685
53cc15f5
AV
116862017-03-20 Artemiy Volkov <artemiyv@acm.org>
11687
11688 PR gdb/14441
11689 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11690 * parse.c (insert_type): Change assert statement.
11691 (follow_types): Handle rvalue reference types.
11692 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11693 constant.
11694
a65cfae5
AV
116952017-03-20 Artemiy Volkov <artemiyv@acm.org>
11696
11697 PR gdb/14441
11698 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11699 value_ref() interface.
11700 * c-valprint.c (c_value_print): Likewise.
11701 * infcall.c (value_arg_coerce): Likewise.
11702 * python/py-value.c (valpy_reference_value): Likewise.
11703 * valops.c (value_cast, value_reinterpret_cast)
11704 (value_dynamic_cast, typecmp): Likewise.
11705 (value_ref): Parameterize by kind of return value reference type.
11706 * value.h (value_ref): Add new parameter "refcode".
11707
3b224330
AV
117082017-03-20 Artemiy Volkov <artemiyv@acm.org>
11709
11710 PR gdb/14441
11711 * dwarf2read.c (read_tag_reference_type): Use
11712 lookup_lvalue_reference_type() instead of lookup_reference_type().
11713 * eval.c (evaluate_subexp_standard): Likewise.
11714 * f-exp.y: Likewise.
11715 * gdbtypes.c (make_reference_type, lookup_reference_type):
11716 Generalize with rvalue reference types.
11717 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11718 convenience wrappers for lookup_reference_type().
11719 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11720 reference kind parameter.
11721 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11722 wrappers for lookup_reference_type().
11723 * guile/scm-type.c (gdbscm_type_reference): Use
11724 lookup_lvalue_reference_type() instead of lookup_reference_type().
11725 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11726 * parse.c (follow_types): Likewise.
11727 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11728 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11729 Likewise.
11730 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11731 (gdbpy_invoke_xmethod): Likewise.
11732 * stabsread.c: Provide extra argument to make_reference_type()
11733 call.
11734 * valops.c (value_ref, value_rtti_indirect_type): Use
11735 lookup_lvalue_reference_type() instead of lookup_reference_type().
11736
f9aeb8d4
AV
117372017-03-20 Artemiy Volkov <artemiyv@acm.org>
11738
11739 PR gdb/14441
11740 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11741 (TYPE_IS_REFERENCE): New macro.
11742 (struct type): Add rvalue_reference_type field.
11743 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11744
51457a05
MAL
117452017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11746
11747 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11748 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11749 New function definition.
11750 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11751 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11752 New function declaration.
11753 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11754 * mi/mi-interp.h: New file.
11755 * solib.c (info_sharedlibrary_command): Replace for loop with
11756 ALL_SO_LIBS macro
11757 * solib.h (update_solib_list): New function declaration.
11758 (so_list_head): Move macro.
11759 * solist.h (ALL_SO_LIBS): New macro.
11760
e696b3ad
MAL
117612017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11762
11763 * infcmd.c (post_create_inferior): Remove unused argument in
11764 call to solib_add.
11765 * remote.c (remote_start_remote): Likewise.
11766 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11767 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11768 (enable_break): Likewise.
11769 * solib.c (update_solib_list): Remove unused target argument
11770 and its documentation.
11771 (solib_add): Remove unused target argument. Remove unused
11772 argument in call to update_solib_list.
11773 (info_sharedlibrary_command): Remove unused argument in call
11774 to update_solib_list.
11775 (sharedlibrary_command): Remove unused argument in call to
11776 solib_add.
11777 (handle_solib_event): Likewise.
11778 (reload_shared_libraries): Likewise.
11779 * solib.h (solib_add): Remove unused target argument.
11780
dcb84eda
AA
117812017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11782
11783 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11784 (s390_displaced_step_fixup): Cover relative branches with the
11785 default fixup handling. This fixes lack of support for some
11786 relative branch instructions.
11787
d9cb6cdc
SM
117882017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11789
11790 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11791 ptid from regcache.
11792
1afaf9f4
SM
117932017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11794
11795 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11796 i386_darwin_store_inferior_registers): Use ptid from regcache.
11797
aac12e24
SM
117982017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11799
11800 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11801 i386bsd_store_inferior_registers): Use ptid from regcache.
11802
bbe1eef1
SM
118032017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11804
11805 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11806 hppaobsd_store_registers): Use ptid from regcache.
11807
10799020
SM
118082017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11809
11810 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11811 hppanbsd_store_registers): Use ptid from regcache.
11812
00204cf7
SM
118132017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11814
11815 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11816 from regcache. Use get_ptrace_pid.
11817
11a33714
SM
118182017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11819
11820 * corelow.c (get_core_register_section): Use ptid from regcache,
11821 update doc.
11822
317cd492
SM
118232017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11824
11825 * bsd-uthread.c (bsd_uthread_fetch_registers,
11826 bsd_uthread_store_registers): Use ptid from regcache, set and
11827 restore inferior_ptid.
11828
9ac8a7c2
SM
118292017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11830
11831 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11832 fetch_fp_regs, store_register, store_regs, store_fp_register,
11833 store_fp_regs): Use ptid from regcache.
11834
4ac4bb6a
SM
118352017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11836
11837 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11838 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11839 store_vfp_regs): Use ptid from regcache.
11840
9bcbdca8
PA
118412017-03-17 Pedro Alves <palves@redhat.com>
11842
11843 PR remote/21188
11844 * ser-base.c (ser_base_wait_for): Add comment.
11845 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11846 version.
11847 * ser-unix.c (hardwire_raw): Remove reference to
11848 scb->current_timeout.
11849 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11850 (hardwire_ops): Install ser_base_readchar instead of
11851 hardwire_readchar.
11852 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11853 Remove fields.
11854
7503099f
JG
118552017-03-17 Jonah Graham <jonah@kichwacoders.com>
11856
11857 PR gdb/19637
11858 * python/lib/gdb/printer/bound_registers.py: Add support for
11859 Python 3.
11860
7942e96e
AA
118612017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11862
11863 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
11864 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
11865 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
11866 byte_offset to subobj_byte_offset. Fix the handling of
11867 DWARF_VALUE_STACK on big-endian targets when coming via an
11868 implicit pointer.
11869 (dwarf2_evaluate_loc_desc): Adjust call to
11870 dwarf2_evaluate_loc_desc_full.
11871 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
11872 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
11873
ba14f379
YQ
118742017-03-16 Yao Qi <yao.qi@linaro.org>
11875
11876 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
11877 and REVSH instructions.
11878
b121eeb9
YQ
118792017-03-16 Yao Qi <yao.qi@linaro.org>
11880
11881 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
11882 (arm_record_test): Declare.
11883 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
11884 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
11885 align with the manual.
11886 (thumb_record_misc): Adjust the code order to align with the
11887 manual.
11888 (thumb2_record_decode_insn_handler): Fix instruction matching.
11889 (instruction_reader_thumb): New class.
11890 (arm_record_test): New function.
11891
728a7913
YQ
118922017-03-16 Yao Qi <yao.qi@linaro.org>
11893
11894 * arm-tdep.c (abstract_memory_reader): New class.
11895 (instruction_reader): New class.
11896 (extract_arm_insn): Add argument 'reader'. Callers updated.
11897 (decode_insn): Likewise.
11898
34b43320
DE
118992017-03-16 Doug Evans <dje@google.com>
11900
a7c0469f
DE
11901 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
11902 member. Change type of TYPE member to SCM. All uses updated.
11903 (lsscm_make_lazy_string_smob): Add assert.
11904 (lsscm_make_lazy_string): Flag bad length values.
11905 (lsscm_elt_type): New function.
11906 (gdbscm_lazy_string_to_value): Rewrite to use
11907 lsscm_safe_lazy_string_to_value.
11908 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
11909 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
11910 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
11911 in incoming type.
11912 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11913 * guile/scm-type.c (tyscm_scm_to_type): New function.
11914
119152017-03-15 Doug Evans <dje@google.com>
11916
34b43320
DE
11917 PR python/17728, python/18439, python/18779
11918 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
11919 member. Change type of TYPE member to PyObject *. All uses updated.
11920 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
11921 (gdbpy_create_lazy_string_object): Flag bad length values.
11922 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
11923 Handle typedefs in incoming type.
11924 (stpy_lazy_string_elt_type): New function.
11925 (gdbpy_extract_lazy_string): Call it.
11926 * python/py-value.c (valpy_lazy_string): Flag bad length values.
11927 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
11928 typedefs in incoming type.
11929
a3a5fecc
DE
119302017-03-16 Doug Evans <dje@google.com>
11931
11932 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11933 * guile/scm-type.c (tyscm_scm_to_type): New function.
11934
28f1c605
JW
119352017-03-16 Jiong Wang <jiong.wang@arm.com>
11936
11937 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
11938 "ULONGEST" for "skip".
11939
87c336f6
AA
119402017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11941
11942 PR gdb/21220
11943 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
11944 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
11945 (inf_ptrace_peek_poke): ...here. New function. Now also loop
11946 over ptrace peek/poke until end of buffer or error.
11947
cf81cf60
SM
119482017-03-14 Simon Marchi <simon.marchi@ericsson.com>
11949
11950 * parse.c (length_of_subexp): Make static.
11951 * parser-defs.h (length_of_subexp): Remove.
11952
a379284a
AA
119532017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11954
11955 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
11956 as well.
11957
8a6200ba
PA
119582017-03-14 Pedro Alves <palves@redhat.com>
11959
11960 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
11961 (main): Use std::unique_ptr. Remove calls to
11962 cp_demangled_name_parse_free.
11963
f79ec206
SM
119642017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11965
11966 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
11967 alphabsd_store_inferior_registers): Use regcache->ptid instead
11968 of inferior_ptid.
11969
edb5fb00
SM
119702017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11971
11972 * aix-thread.c (aix_thread_fetch_registers,
11973 aix_thread_store_registers): Use regcache->ptid instead of
11974 inferior_ptid.
11975
55119686
SM
119762017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11977
11978 * aarch64-linux-nat.c (fetch_gregs_from_thread,
11979 store_gregs_to_thread, fetch_fpregs_from_thread,
11980 store_fpregs_to_thread): Use regcache->ptid instead of
11981 inferior_ptid.
11982
6a06fbb7
SM
119832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11984
11985 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
11986 amd64_linux_fetch_inferior_registers): Use regcache->ptid
11987 instead of inferior_ptid.
11988
c6386875
SM
119892017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11990
11991 * target.c (target_fetch_registers, target_store_registers): Add
11992 assert.
11993
ddaaf0fb
SM
119942017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11995
11996 * regcache.h (regcache_get_ptid): New function.
11997 * regcache.c (regcache_get_ptid): New function.
11998
b9da89d1 119992017-03-13 Mark Wielaard <mark@klomp.org>
12000
12001 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12002
5f4d1085
KS
120032017-03-10 Keith Seitz <keiths@redhat.com>
12004
12005 PR c++/8218
12006 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12007
c65d6b55
PA
120082017-03-08 Pedro Alves <palves@redhat.com>
12009
12010 PR gdb/18360
12011 * infrun.c (start_step_over, do_target_resume, resume)
12012 (restart_threads): Assert we're not resuming a thread that is
12013 meant to be stopped.
12014 (infrun_thread_stop_requested_callback): Delete.
12015 (infrun_thread_stop_requested): If the thread is internally
12016 stopped, queue a pending stop event and clear the thread's
12017 inline-frame state.
12018 (handle_stop_requested): New function.
12019 (handle_syscall_event, handle_inferior_event_1): Use
12020 handle_stop_requested.
12021 (handle_stop_requested): New function.
12022 (handle_signal_stop): Set the thread's stop_signal here instead of
12023 at caller.
12024 (finish_step_over): Clear step over info unconditionally.
12025 (handle_signal_stop): If the user had interrupted the event
12026 thread, consider the stop a random signal.
12027 (handle_signal_stop) <signal arrived while stepping over
12028 breakpoint>: Don't restart threads here.
12029 (stop_waiting): Don't clear step-over info here.
12030
15c22686
PA
120312017-03-08 Pedro Alves <palves@redhat.com>
12032
12033 PR 21206
12034 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12035 goes to argument 2, not 1.
12036
6e5d74e7
PA
120372017-03-08 Pedro Alves <palves@redhat.com>
12038
12039 PR cli/21218
12040 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12041 display_gdb_prompt.
12042 (command_line_input): Add comment.
12043
9753a2f6
PA
120442017-03-08 Pedro Alves <palves@redhat.com>
12045
12046 PR tui/21216
12047 * tui/tui-file.c (tui_file::write): New.
12048 * tui/tui-file.h (tui_file): Override "write".
12049 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12050 factored out from ...
12051 (tui_puts): ... here.
12052 (tui_putc): Use them.
12053 (tui_write): New function.
12054 * tui/tui-io.h (tui_write): Declare.
12055
1672e0d9
SDJ
120562017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12057
12058 * Makefile.in (SFILES): Replace "environ.c" with
12059 "common/environ.c".
12060 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12061 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12062 to...
12063 * common/environ.c: ... here.
12064 * environ.h: Moved to...
12065 * common/environ.h: ... here.
12066
f7bb4e3a
PB
120672017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12068
12069 * gdbarch.sh (pstring_ptr): New static function.
12070 (gdbarch_disassembler_options): Use it.
12071 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12072 not valid_disassembler_option->name.
12073 * gdbarch.c: Regenerate.
12074
e45ced6c
PB
120752017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12076
12077 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12078
5f6fd321
PA
120792017-03-07 Pedro Alves <palves@redhat.com>
12080
12081 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12082
6dbb839a 120832017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
12084
12085 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12086 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12087 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 12088 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 12089
d274ecf4
SM
120902017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12091
12092 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12093
df97be55
SM
120942017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12095
12096 * remote.c (remote_add_target_side_commands): Use range-based
12097 for loop.
12098
7d45f3df
YQ
120992017-03-03 Yao Qi <yao.qi@linaro.org>
12100
12101 PR gdb/21165
12102 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12103 value is lazy.
12104 * valprint.c (common_val_print): Likewise.
12105
65b48a81
PB
121062017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12107
12108 * NEWS: Mention new set/show disassembler-options commands.
12109 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12110 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12111 (prospective_options): New static variable.
12112 (gdb_disassembler::gdb_disassembler): Initialize
12113 m_di.disassembler_options.
12114 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12115 (get_disassembler_options): New function.
12116 (set_disassembler_options): Likewise.
12117 (set_disassembler_options_sfunc): Likewise.
12118 (show_disassembler_options_sfunc): Likewise.
12119 (disassembler_options_completer): Likewise.
12120 (_initialize_disasm): Likewise.
12121 * disasm.h (get_disassembler_options): New prototype.
12122 (set_disassembler_options): Likewise.
12123 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12124 (gdbarch_verify_disassembler_options): Likewise.
12125 * gdbarch.c: Regenerate.
12126 * gdbarch.h: Likewise.
12127 * arm-tdep.c (num_disassembly_options): Delete.
12128 (set_disassembly_style): Likewise.
12129 (arm_disassembler_options): New static variable.
12130 (set_disassembly_style_sfunc): Convert short style name into long
12131 option name. Call set_disassembler_options.
12132 (show_disassembly_style_sfunc): New function.
12133 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12134 set_gdbarch_verify_disassembler_options.
12135 (_initialize_arm_tdep): Delete regnames variable and update callers.
12136 (arm_disassembler_options): Initialize.
12137 (disasm_options): New variable.
12138 (num_disassembly_options): Rename from this...
12139 (num_disassembly_styles): ...to this. Compute by scanning through
12140 disasm_options.
12141 (valid_disassembly_styles): Initialize using disasm_options.
12142 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12143 set_arm_regname_option.
12144 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12145 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12146 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12147 set_gdbarch_verify_disassembler_options.
12148 * s390-tdep.c (s390_disassembler_options): New static variable.
12149 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12150 set_gdbarch_verify_disassembler_options.
12151
d538e36d
SM
121522017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12153
12154 * remote.c (remote_add_target_side_condition): Remove "struct"
12155 keyword from range-based for loop.
12156
83621223
SM
121572017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12158
12159 * remote.c (remote_add_target_side_condition): Use range-based
12160 for loop. Update comment.
12161
2123df0e
YQ
121622017-02-27 Yao Qi <yao.qi@linaro.org>
12163
12164 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12165
8e368124
AH
121662017-02-26 Alan Hayward <alan.hayward@arm.com>
12167
12168 * regcache.c (regcache_raw_update): New function.
12169 (regcache_raw_read): Move code to regcache_raw_update.
12170 * regcache.h (regcache_raw_update): New declaration.
12171 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12172
a49dd8dd
JK
121732017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12174
12175 * dwarf2read.c (create_debug_type_hash_table): Initialize
12176 header.signature and header.type_offset_in_tu.
12177
34e4bae9
PA
121782017-02-24 Pedro Alves <palves@redhat.com>
12179
12180 * symtab.c (make_file_symbol_completion_list_1): Use
12181 add_symtab_completions.
12182
b0e4b369
AH
121832017-02-24 Alan Hayward <alan.hayward@arm.com>
12184
12185 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12186
975c21ab
AH
121872017-02-24 Alan Hayward <alan.hayward@arm.com>
12188
12189 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12190 I386_MAX_REGISTER_SIZE.
12191 (i386_pseudo_register_write): Likewise.
12192 (i386_process_record): Likewise.
12193 * i387-tdep.c (i387_supply_xsave): Likewise.
12194 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12195 (store_register): Likewise.
12196
14bc53a8
PA
121972017-02-23 Pedro Alves <palves@redhat.com>
12198
12199 * ada-lang.c: Include "common/function-view.h".
12200 (ada_iterate_over_symbols): Adjust to use function_view as
12201 callback type.
12202 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12203 (ada_make_symbol_completion_list): Use a lambda.
12204 (ada_exc_search_name_matches): Delete.
12205 (name_matches_regex): New.
12206 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12207 * compile/compile-c-support.c: Include "common/function-view.h".
12208 (print_one_macro): Change prototype to accept a ui_file pointer.
12209 (write_macro_definitions): Use a lambda.
12210 * dwarf2read.c: Include "common/function-view.h".
12211 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12212 (dw2_expand_symtabs_matching): Adjust to use function_view as
12213 callback type.
12214 * language.h: Include "common/function-view.h".
12215 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12216 function_view as callback type.
12217 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12218 * linespec.c: Include "common/function-view.h".
12219 (collect_info::add_symbol): New method.
12220 (struct symbol_and_data_callback, iterate_inline_only, struct
12221 symbol_matcher_data, iterate_name_matcher): Delete.
12222 (iterate_over_all_matching_symtabs): Adjust to use function_view
12223 as callback type and lambdas.
12224 (iterate_over_file_blocks): Adjust to use function_view as
12225 callback type.
12226 (decode_compound_collector): Now a class with private fields.
12227 (decode_compound_collector::release_symbols): New method.
12228 (collect_one_symbol): Rename to...
12229 (decode_compound_collector::operator()): ... this and adjust.
12230 (lookup_prefix_sym): decode_compound_collector construction bits
12231 move to decode_compound_collector ctor. Pass the
12232 decode_compound_collector object directly as callback. Remove
12233 cleanups and use decode_compound_collector::release_symbols
12234 instead.
12235 (symtab_collector): Now a class with private fields.
12236 (symtab_collector::release_symtabs): New method.
12237 (add_symtabs_to_list): Rename to...
12238 (symtab_collector::operator()): ... this and adjust.
12239 (collect_symtabs_from_filename): symtab_collector construction
12240 bits move to symtab_collector ctor. Pass the symtab_collector
12241 object directly as callback. Remove cleanups and use
12242 symtab_collector::release_symtabs instead.
12243 (collect_symbols): Delete.
12244 (add_matching_symbols_to_info): Use lambdas.
12245 * macrocmd.c (print_macro_callback): Delete.
12246 (info_macro_command): Use a lambda.
12247 (info_macros_command): Pass print_macro_definition as callable
12248 directly.
12249 (print_one_macro): Remove 'ignore' parameter.
12250 (macro_list_command): Adjust.
12251 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12252 (macro_for_each_data::user_data): Delete field.
12253 (foreach_macro): Adjust to call the function_view.
12254 (macro_for_each): Adjust to use function_view as callback type.
12255 (foreach_macro_in_scope): Adjust to call the function_view.
12256 (macro_for_each_in_scope): Adjust to use function_view as callback
12257 type.
12258 * macrotab.h: Include "common/function-view.h".
12259 (macro_callback_fn): Declare a prototype instead of a pointer.
12260 Remove "user_data" parameter.
12261 (macro_for_each, macro_for_each_in_scope): Adjust to use
12262 function_view as callback type.
12263 * psymtab.c (partial_map_expand_apply)
12264 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12265 Adjust to use function_view as callback type and to return bool.
12266 (psym_expand_symtabs_matching): Adjust to use function_view as
12267 callback types.
12268 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12269 to use function_view as callback type and to return bool.
12270 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12271 callback types.
12272 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12273 as callback types.
12274 * symfile.h: Include "common/function-view.h".
12275 (expand_symtabs_file_matcher_ftype)
12276 (expand_symtabs_symbol_matcher_ftype)
12277 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12278 return bool.
12279 (quick_symbol_functions::map_symtabs_matching_filename)
12280 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12281 function_view as callback type and return bool.
12282 (expand_symtabs_matching): Adjust to use function_view as callback
12283 type.
12284 (maintenance_expand_name_matcher)
12285 (maintenance_expand_file_matcher): Delete.
12286 (maintenance_expand_symtabs): Use lambdas.
12287 * symtab.c (iterate_over_some_symtabs): Adjust to use
12288 function_view as callback types and return bool.
12289 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12290 of a cleanup.
12291 (lookup_symtab_callback): Delete.
12292 (lookup_symtab): Use a lambda.
12293 (iterate_over_symbols): Adjust to use function_view as callback
12294 type.
12295 (struct search_symbols_data, search_symbols_file_matches)
12296 (search_symbols_name_matches): Delete.
12297 (search_symbols): Use a pair of lambdas.
12298 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12299 (symtab_expansion_callback): Delete.
12300 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12301 * symtab.h: Include "common/function-view.h".
12302 (iterate_over_some_symtabs): Adjust to use function_view as
12303 callback type and return bool.
12304 (iterate_over_symtabs): Adjust to use function_view as callback
12305 type.
12306 (symbol_found_callback_ftype): Remove 'data' parameter and return
12307 bool.
12308 (iterate_over_symbols): Adjust to use function_view as callback
12309 type.
12310
07e253aa
PA
123112017-02-23 Pedro Alves <palves@redhat.com>
12312
12313 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12314 (%.o) <unittests/%.c>: New pattern.
12315 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12316 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12317 * common/function-view.h: New file.
12318 * unittests/function-view-selftests.c: New file.
12319 * configure: Regenerate.
12320
8eaf5320
SM
123212017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12322
12323 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12324 inferior_ptid.
12325 * go32-nat.c (go32_thread_alive): Likewise.
12326
38768751
YQ
123272017-02-23 Yao Qi <yao.qi@linaro.org>
12328
12329 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12330 delete.
12331
0a8beaba
YQ
123322017-02-23 Yao Qi <yao.qi@linaro.org>
12333
12334 * varobj.c (varobj_clear_saved_item): Use delete instead of
12335 xfree.
12336 (update_dynamic_varobj_children): Likewise.
12337
58fdfd2c
JK
123382017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12339
12340 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12341
1b90b139
SM
123422017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12343
12344 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12345 m_enum_value to 0 in default constructor.
12346
2039d74e
EBM
123472017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12348
12349 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12350 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12351 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12352 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12353 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12354 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12355 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12356 IS_STORE_CONDITIONAL_INSN.
12357
7814882a
JK
123582017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12359
12360 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12361
0ae60b63
JK
123622017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12363
12364 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12365
0224619f
JK
123662017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12367
12368 * dwarf2read.c (skip_one_die, read_attribute_value)
12369 (dwarf2_const_value_attr, dump_die_shallow)
12370 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12371 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12372
0af92d60
JK
123732017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12374
12375 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12376 (dwarf_parse_macro_header): Accept DWARF version 5.
12377 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12378
216f72a1
JK
123792017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12380
12381 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12382 DW_AT_GNU_*.
12383 * common/common-exceptions.h (enum errors): Likewise.
12384 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12385 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12386 (dwarf_expr_context::execute_stack_op): Likewise.
12387 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12388 Likewise.
12389 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12390 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12391 (show_entry_values_debug, call_site_to_target_addr)
12392 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12393 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12394 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12395 (value_of_dwarf_block_entry, indirect_pieced_value)
12396 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12397 (disassemble_dwarf_expression): Likewise.
12398 * dwarf2read.c (process_die, inherit_abstract_dies)
12399 (read_call_site_scope): Likewise.
12400 * gdbtypes.h (struct func_type, struct call_site_parameter)
12401 (struct call_site): Likewise.
12402 * stack.c (read_frame_arg): Likewise.
12403 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12404
43988095
JK
124052017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12406
12407 * defs.h (read_unsigned_leb128): New declaration.
12408 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12409 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12410 (dwarf2_find_location_expression): Call also
12411 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12412 * dwarf2loc.h (dwarf2_version): New declaration.
12413 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12414 rnglists.
12415 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12416 .debug_rnglists.
12417 (struct dwop_section_names): Add loclists_dwo.
12418 (dwop_section_names): Add .debug_loclists.dwo.
12419 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12420 (struct dwarf2_per_cu_data): Add dwarf_version.
12421 (struct dwo_sections): Add loclists.
12422 (struct attr_abbrev): Add implicit_const.
12423 (read_indirect_line_string): New declaration.
12424 (read_unsigned_leb128): Delete declaration.
12425 (rcuh_kind): New definition.
12426 (read_and_check_comp_unit_head): Change parameter
12427 is_debug_types_section to section_kind.
12428 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12429 (read_comp_unit_head): Change parameter abfd to section, add parameter
12430 section_kind. Handle DWARF-5.
12431 (error_check_comp_unit_head): Accept also DWARF version 5.
12432 (read_and_check_comp_unit_head): Change parameter
12433 is_debug_types_section to section_kind.
12434 (read_and_check_type_unit_head): Delete function.
12435 (read_abbrev_offset): Handle DWARF-5.
12436 (create_debug_type_hash_table): Add parameter section_kind. Process
12437 only DW_UT_type. Use signature and type_offset_in_tu from struct
12438 comp_unit_head.
12439 (create_debug_types_hash_table): Update create_debug_type_hash_table
12440 caller.
12441 (create_all_type_units): Call create_debug_type_hash_table.
12442 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12443 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12444 caller.
12445 (skip_one_die): Handle DW_FORM_implicit_const.
12446 (dwarf2_rnglists_process): New function.
12447 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12448 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12449 (read_attribute_value): Handle DW_FORM_implicit_const,
12450 DW_FORM_line_strp.
12451 (read_attribute): Handle DW_FORM_implicit_const.
12452 (read_indirect_string_at_offset_from): New function from
12453 read_indirect_string_at_offset.
12454 (read_indirect_string_at_offset): Call
12455 read_indirect_string_at_offset_from.
12456 (read_indirect_line_string_at_offset): New function.
12457 (read_indirect_string): New function comment.
12458 (read_indirect_line_string): New function.
12459 (read_unsigned_leb128): Make it global.
12460 (dwarf2_string_attr): Handle DWARF-5.
12461 (add_include_dir_stub, read_formatted_entries): New functions.
12462 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12463 Handle DWARF-5.
12464 (per_cu_header_read_in): Update read_comp_unit_head caller.
12465 (dwarf2_version): New function.
12466 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12467 rnglists.
12468 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12469 fields.
12470
22d2f3ab
JK
124712017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12472
12473 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12474
5f46c5a5
JK
124752017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12476
12477 * dwarf2read.c (dwarf2_ranges_process): New function from
12478 dwarf2_ranges_read.
12479 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12480 dwarf2_ranges_process.
12481
78d4d2c5
JK
124822017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12483
12484 * dwarf2read.c (create_debug_type_hash_table): New function from
12485 create_debug_types_hash_table.
12486 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12487 (create_all_type_units, open_and_init_dwo_file): Update
12488 create_debug_types_hash_table callers.
12489
1b076f25
SDJ
124902017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12491
12492 PR gdb/16188
12493 * fork-child.c (trace_start_error): Fix thinko. va_end should
12494 refer to 'ap', not 'args'.
12495
0db8980c
SDJ
124962017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12497 Pedro Alves <palves@redhat.com>
12498
12499 PR gdb/16188
12500 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12501 calls succeeded.
12502 * fork-child.c (trace_start_error): New function.
12503 (trace_start_error_with_name): Likewise.
12504 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12505 * inf-ptrace.c (inf_ptrace_me): Likewise.
12506 * inferior.h (trace_start_error): New prototype.
12507 (trace_start_error_with_name): Likewise.
12508
99e8a4f9
SDJ
125092017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12510
12511 PR gdb/21164
12512 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12513 NULL before using it.
12514 * symmisc.c (maintenance_print_symbols): Likewise.
12515 (maintenance_print_msymbols): Likewise.
12516
4e746bb6
TW
125172017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12518
12519 * NEWS: Add record Python bindings entry.
12520
125212017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12522
12523 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12524 py-record-full.o.
12525 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12526 * python/py-record-btrace.c, python/py-record-btrace.h,
12527 python/py-record-full.c, python/py-record-full.h: New file.
12528 * python/py-record.c: Add include for py-record-btrace.h and
12529 py-record-full.h.
12530 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12531 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12532 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12533 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12534 New definition.
12535 (gdbpy_initialize_btrace): New export.
12536 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12537
125382017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12539
12540 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12541 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12542 * python/py-record.c: New file.
12543 * python/python-internal.h (gdbpy_start_recording,
12544 gdbpy_current_recording, gdpy_stop_recording,
12545 gdbpy_initialize_record): New export.
12546 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12547 (python_GdbMethods): Add gdbpy_start_recording,
12548 gdbpy_current_recording and gdbpy_stop_recording.
12549
125502017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12551
12552 * record-btrace.c (record_btrace_record_method): New function.
12553 (init_record_btrace_ops): Initialize to_record_method.
12554 * record-full.c (record_full_record_method): New function.
12555 (init_record_full_ops, init_record_full_core_ops): Add
12556 record_full_record_method.
12557 * record.h (enum record_method): New enum.
12558 * target-debug.h (target_debug_print_enum_record_method: New define.
12559 * target-delegates.c: Regenerate.
12560 * target.c (target_record_method): New function.
12561 * target.h: Include record.h.
12562 (struct target_ops) <to_record_method>: New field.
12563 (target_record_method): New export.
12564
125652017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12566
12567 * record.h (record_start, record_stop): New export.
12568 * record.c (record_start, record_stop): New function.
12569
125702017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12571
12572 * btrace.c (btrace_fetch): Copy function call segments pointer
12573 into a vector.
12574 (btrace_clear): Clear the vector.
12575 (btrace_find_insn_by_number): Use binary search to find the correct
12576 function call segment.
12577 * btrace.h (brace_fun_p): New typedef.
12578 (struct btrace_thread_info) <functions>: New field.
12579
125802017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12581
12582 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12583 * btrace.c (btrace_decode_error): ... here. New function.
12584 * btrace.h (btrace_decode_error): New export.
12585
125862017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12587
12588 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12589 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12590 btrace_find_insn_by_number): Remove special case for gaps.
12591 * btrace.h (btrace_insn_get_error): New export.
12592 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12593 * record-btrace.c (btrace_insn_history): Print number for gaps.
12594 (record_btrace_info, record_btrace_goto): Handle gaps.
12595
3f77c769
TT
125962017-02-14 Tom Tromey <tom@tromey.com>
12597
12598 PR python/13598:
12599 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12600 event.
12601 * python/py-evts.c (gdbpy_initialize_py_events): Add
12602 before_prompt registry.
12603 * python/py-events.h (events_object) <before_prompt>: New field.
12604
4c2c7ac6
MM
126052017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12606
12607 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12608
5cf30ebf
LM
126092017-02-13 Luis Machado <lgustavo@codesourcery.com>
12610
12611 * symfile (_initialize_symfile): Add usage text to the load command's
12612 help text.
12613
26a06916
SM
126142017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12615
12616 * utils.c (defaulted_query): Don't query on secondary UIs.
12617
0b145e37
TT
126182017-02-10 Tom Tromey <tom@tromey.com>
12619
12620 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12621
2d8365c4
TT
126222017-02-10 Tom Tromey <tom@tromey.com>
12623
12624 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12625 "cleanup" local.
12626 * python/py-type.c (typy_legacy_template_argument): Remove
12627 unnecessary "cleanup" local.
12628
2bb8f231
TT
126292017-02-10 Tom Tromey <tom@tromey.com>
12630
12631 * python/python.c (do_start_initialization): New function, from
12632 _initialize_python.
12633 (_initialize_python): Call do_start_initialization.
12634 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12635 goto.
12636
1bdfaf42
TT
126372017-02-10 Tom Tromey <tom@tromey.com>
12638
12639 * python/py-prettyprint.c (pretty_print_one_value): Use
12640 gdbpy_ref.
12641
88b6faea
TT
126422017-02-10 Tom Tromey <tom@tromey.com>
12643
12644 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12645 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12646 gdbpy_ref.
12647 * python/py-type.c (field_new): Use gdbpy_ref.
12648 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12649 gdbpy_ref.
12650 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12651 (py_free_pspace): Likewise.
12652 (pspace_to_pspace_object): Likewise.
12653 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12654 (py_free_objfile): Likewise.
12655 (objfile_to_objfile_object): Likewise.
12656 * python/py-inferior.c (delete_thread_object): Use
12657 gdbpy_ref.
12658 (infpy_read_memory): Likewise.
12659 (py_free_inferior): Likewise.
12660 * python/py-evtregistry.c (create_eventregistry_object): Use
12661 gdbpy_ref.
12662 * python/py-event.c (create_event_object): Use gdbpy_ref.
12663
7780f186
TT
126642017-02-10 Tom Tromey <tom@tromey.com>
12665
12666 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12667 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12668 used.
12669 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12670 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12671 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12672 python/py-framefilter.c, python/py-function.c,
12673 python/py-inferior.c, python/py-infevents.c,
12674 python/py-linetable.c, python/py-newobjfileevent.c,
12675 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12676 python/py-signalevent.c, python/py-stopevent.c,
12677 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12678 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12679 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12680 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12681
d4b0bb18
TT
126822017-02-10 Tom Tromey <tom@tromey.com>
12683
12684 * ui-out.h (ui_out_emit_type): New class.
12685 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12686 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12687 and ui_out_emit_tuple.
12688 (enumerate_locals): Likewise.
12689 (py_mi_print_variables, py_print_locals, py_print_args): Use
12690 ui_out_emit_list.
12691 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12692 ui_out_emit_list.
12693 * common/gdb_optional.h: New file.
12694
f67f945c
MG
126952017-02-10 Martin Galvan <martingalvan@sourceware.org>
12696
12697 * MAINTAINERS (Write After Approval): Update my e-mail address.
12698
18da0c51
MG
126992017-02-10 Martin Galvan <martingalvan@sourceware.org>
12700
12701 PR gdb/21122
12702 * breakpoint.c (_initialize_breakpoint): Update the help description
12703 of the 'commands' command to indicate that it takes a list argument.
12704
62c14536
SM
127052017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12706
12707 * interps.c (current_interp_set_logging): Remove "return".
12708
ff6fa247
GB
127092017-02-09 Gary Benson <gbenson@redhat.com>
12710
12711 * symtab.c (add_symtab_completions): Prevent NULL pointer
12712 dereference.
12713
a474bd8e
PA
127142017-02-08 Pedro Alves <palves@redhat.com>
12715
12716 * interps.c (interp::interp): Remove reference to quiet_p.
12717 (interp_set): Make static. Remove dead "Switching to" output
12718 code.
12719 (interp_quiet_p, interp_set_quiet): Delete.
12720 (interpreter_exec_cmd): Don't set the interpreter quiet.
12721 * interps.h (interp_quiet_p): Make static.
12722 (class interp) <quiet_p>: Remove field
12723
3d7b173c
JG
127242017-02-08 Jerome Guitton <guitton@adacore.com>
12725
604c4576
JG
12726 * cli/cli-decode.c (find_command_name_length): Make it extern.
12727 * cli/cli-decode.h (find_command_name_length): Declare.
12728 * cli/cli-script.c (command_name_equals, line_first_arg):
12729 New functions.
12730 (process_next_line): Use cli-decode to parse command names.
12731 (build_command_line): Make args a constant pointer.
12732
127332017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 12734
3d7b173c
JG
12735 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12736 Remove case-insensitive search.
12737
1291063d
JM
127382017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12739
12740 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12741 at the end of the line. Avoids an ARI warning.
12742
20b477a7
LM
127432017-02-06 Luis Machado <lgustavo@codesourcery.com>
12744
12745 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12746 rdseed instructions.
12747 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12748
3f7b46f2
IR
127492017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12750
12751 PR tdep/20936
12752 Provide and use sparc32 and sparc64 target description XML files.
12753 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12754 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12755 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12756 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12757 * features/sparc/sparc32-solaris.xml: New file.
12758 * features/sparc/sparc64-solaris.xml: New file.
12759 * features/sparc/sparc32-solaris.c: Generated.
12760 * features/sparc/sparc64-solaris.c: Generated.
12761 * sparc-tdep.h: Account for differences in target descriptions.
12762 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12763 (sparc32_register_type): Use target provided registers.
12764 (validate_tdesc_registers): New function.
12765 (sparc32_gdbarch_init): Use tdesc_has_registers.
12766 Set pseudoregister functions.
12767 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12768 (sparc64_register_type): Use target provided registers.
12769 (sparc64_init_abi): Set pseudoregister functions.
12770
f0fd41c1
TT
127712017-02-03 Tom Tromey <tom@tromey.com>
12772
12773 PR rust/21097:
12774 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12775 with a single member.
12776
d6f9b0fb
PA
127772017-02-03 Pedro Alves <palves@redhat.com>
12778
12779 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12780 (cli_interp_base::~cli_interp_base): New.
12781 (cli_interp): New struct.
12782 (as_cli_interp): Cast the interp itself to cli_interp.
12783 (cli_interpreter_pre_command_loop): Rename to ...
12784 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12785 parameter.
12786 (cli_interpreter_init): Rename to ...
12787 (cli_interp::init): ... this. Remove 'self' parameter. Use
12788 boolean. Make extern.
12789 (cli_interpreter_resume): Rename to ...
12790 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12791 extern.
12792 (cli_interpreter_suspend): Rename to ...
12793 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12794 extern.
12795 (cli_interpreter_exec): Rename to ...
12796 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12797 extern.
12798 (cli_interpreter_supports_command_editing): Rename to ...
12799 (cli_interp_base::supports_command_editing): ... this. Remove
12800 'interp' parameter. Make extern.
12801 (cli_ui_out): Rename to ...
12802 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12803 Make extern.
12804 (cli_set_logging): Rename to ...
12805 (cli_interp_base::set_logging): ... this. Remove 'interp'
12806 parameter. Make extern.
12807 (cli_interp_procs): Delete.
12808 (cli_interp_factory): Adjust to use "new".
12809 * cli/cli-interp.h: Include "interps.h".
12810 (struct cli_interp_base): New struct.
12811 * interps.c (struct interp): Delete. Fields moved to interps.h.
12812 (interp_new): Delete.
12813 (interp::interp, interp::~interp): New.
12814 (interp_set): Use bool, and return void. Assume the interpreter
12815 has suspend, init and resume methods, and that the all return
12816 void.
12817 (set_top_level_interpreter): interp_set returns void.
12818 (interp_ui_out): Adapt.
12819 (current_interp_set_logging): Adapt.
12820 (interp_data): Delete.
12821 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12822 (interp_exec): Adapt.
12823 (top_level_interpreter_data): Delete.
12824 * interps.h (interp_init_ftype, interp_resume_ftype)
12825 (interp_suspend_ftype, interp_exec_ftype)
12826 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12827 (class interp): New.
12828 (interp_new): Delete.
12829 (interp_set): Now returns void. Use bool.
12830 (interp_data, top_level_interpreter_data): Delete.
12831 * mi/mi-common.h: Include interps.h.
12832 (class mi_interp): Inherit from interp. Define a ctor. Declare
12833 init, resume, suspect, exec, interp_ui_out, set_logging and
12834 pre_command_loop methods.
12835 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12836 (mi_interpreter_init): Rename to ...
12837 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12838 bool, return void and make extern. Adjust.
12839 (mi_interpreter_resume): ... Rename to ...
12840 (mi_interp::resume): ... this. Remove the 'data' parameter,
12841 return void and make extern. Adjust.
12842 (mi_interpreter_suspend): ... Rename to ...
12843 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12844 return void and make extern. Adjust.
12845 (mi_interpreter_exec): ... Rename to ...
12846 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12847 extern. Adjust.
12848 (mi_interpreter_pre_command_loop): ... Rename to ...
12849 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12850 parameter and make extern.
12851 (mi_on_normal_stop_1): Adjust.
12852 (mi_ui_out): Rename to ...
12853 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12854 parameter and make extern. Adjust.
12855 (mi_set_logging): Rename to ...
12856 (mi_interp::set_logging): ... this. Remove the 'interp'
12857 parameter and make extern. Adjust.
12858 (mi_interp_procs): Delete.
12859 (mi_interp_factory): Adjust to use 'new'.
12860 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12861 (mi_print_exception, mi_execute_command, mi_load_progress):
12862 Adjust.
12863 * tui/tui-interp.c (tui_interp): New class.
12864 (as_tui_interp): Return a tui_interp pointer.
12865 (tui_on_normal_stop, tui_on_signal_received)
12866 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
12867 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
12868 to use interp::interp_ui_out.
12869 (tui_init): Rename to ...
12870 (tui_interp::init): ... this. Remove the 'self' parameter, use
12871 bool, return void and make extern. Adjust.
12872 (tui_resume): Rename to ...
12873 (tui_interp::resume): ... this. Remove the 'data' parameter,
12874 return void and make extern. Adjust.
12875 (tui_suspend): Rename to ...
12876 (tui_interp::suspend): ... this. Remove the 'data' parameter,
12877 return void and make extern. Adjust.
12878 (tui_ui_out): Rename to ...
12879 (tui_interp::interp_ui_out): ... this. Remove the 'self'
12880 parameter, and make extern. Adjust.
12881 (tui_exec): Rename to ...
12882 (tui_interp::exec): ... this. Remove the 'data' parameter and
12883 make extern.
12884 (tui_interp_procs): Delete.
12885 (tui_interp_factory): Use "new".
12886
65c40c95
TT
128872017-02-02 Tom Tromey <tom@tromey.com>
12888
12889 * rust-exp.y (ends_raw_string, space_then_number)
12890 (rust_identifier_start_p): Return bool.
12891 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
12892 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
12893 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
12894 (rust_chartype_p): Return bool.
12895 (val_print_struct, rust_print_struct_def, rust_print_type):
12896 Update.
12897 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
12898 Return bool.
12899
b50f188d
TT
129002017-02-02 Tom Tromey <tom@tromey.com>
12901
12902 * rust-lang.c: Reindent.
12903
03c85b11
TT
129042017-02-02 Tom Tromey <tom@tromey.com>
12905
12906 * rust-lang.h (rust_crate_for_block): Update.
12907 * rust-lang.c (rust_crate_for_block): Return std::string.
12908 (rust_get_disr_info): Use std:;string, not
12909 gdb::unique_xmalloc_ptr.
12910 * rust-exp.y (crate_name): Update.
12911
9b6da501
PA
129122017-02-02 Pedro Alves <palves@redhat.com>
12913
12914 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
12915 field out of gdb_disassembler_test and make it static.
12916
ec4cb20b
PA
129172017-02-02 Pedro Alves <palves@redhat.com>
12918
12919 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
12920 mi1_interp and mi_interp fields.
12921
5be5dbf0
PA
129222017-02-02 Pedro Alves <palves@redhat.com>
12923
616268b6
PA
12924 * cli/cli-interp.c (struct saved_output_files, saved_output):
12925 Moved from cli/cli-logging.c.
12926 (cli_set_logging): New function.
12927 (cli_interp_procs): Install cli_set_logging.
12928 * cli/cli-interp.h (make_logging_output, cli_set_logging):
12929 Declare.
12930 * cli/cli-logging.c (struct saved_output_files, saved_output):
12931 Moved to cli/cli-interp.c.
12932 (pop_output_files): Don't save outputs here.
12933 (make_logging_output): New function.
12934 (handle_redirections): Don't build tee nor save previous outputs
12935 here.
12936 * interps.c (current_interp_set_logging): Change prototype.
12937 Assume there's always a set_logging_proc method installed.
12938 * interps.h (interp_set_logging_ftype): Change prototype.
12939 (current_interp_set_logging): Change prototype and adjust comment.
12940 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
12941 use make_logging_output.
12942 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
129432017-02-02 Pedro Alves <palves@redhat.com>
12944
5be5dbf0
PA
12945 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
12946 from ...
12947 (set_logging_overwrite): ... here.
12948 (logging_no_redirect_file): Delete.
12949 (set_logging_redirect): Don't handle redirection on the fly.
12950 Instead warn that "logging off" / "logging on" is necessary.
12951 (pop_output_files): Delete references to logging_no_redirect_file.
12952 (show_logging_command): Always speak in terms of what will happen
12953 once logging is reenabled.
12954
c99cc448
PA
129552017-02-02 Pedro Alves <palves@redhat.com>
12956
12957 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
12958
8b172ce7
PA
129592017-02-02 Pedro Alves <palves@redhat.com>
12960
12961 * disasm.c (gdb_pretty_print_insn): Rename to ...
12962 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
12963 Remove gdbarch parameter. Adapt to clear the object's buffers
12964 instead of allocating new buffers, and to print using the object's
12965 gdb_disassembler instead of calling gdb_print_insn.
12966 (dump_insns): Use gdb_pretty_print_disassembler.
12967 * disasm.h (gdb_pretty_print_insn): Delete declaration.
12968 (gdb_pretty_print_disassembler): New class.
12969 * record-btrace.c (btrace_insn_history): Use
12970 gdb_pretty_print_disassembler.
12971
d7e74731
PA
129722017-02-02 Pedro Alves <palves@redhat.com>
12973
12974 * ada-lang.c (type_as_string): Use string_file.
12975 * ada-valprint.c (ada_print_floating): Use string_file.
12976 * ada-varobj.c (ada_varobj_scalar_image)
12977 (ada_varobj_get_value_image): Use string_file.
12978 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
12979 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
12980 * breakpoint.c (update_inserted_breakpoint_locations)
12981 (insert_breakpoint_locations, reattach_breakpoints)
12982 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
12983 (print_it_watchpoint): Use string_file.
12984 (save_breakpoints): Use stdio_file.
12985 * c-exp.y (oper): Use string_file.
12986 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
12987 tee_file.
12988 (pop_output_files): Use delete.
12989 (handle_redirections): Use stdio_file and tee_file.
12990 * cli/cli-setshow.c (do_show_command): Use string_file.
12991 * compile/compile-c-support.c (c_compute_program): Use
12992 string_file.
12993 * compile/compile-c-symbols.c (generate_vla_size): Take a
12994 'string_file &' instead of a 'ui_file *'.
12995 (generate_c_for_for_one_variable): Take a 'string_file &' instead
12996 of a 'ui_file *'. Use string_file.
12997 (generate_c_for_variable_locations): Take a 'string_file &'
12998 instead of a 'ui_file *'.
12999 * compile/compile-internal.h (generate_c_for_for_one_variable):
13000 Take a 'string_file &' instead of a 'ui_file *'.
13001 * compile/compile-loc2c.c (push, pushf, unary, binary)
13002 (print_label, pushf_register_address, pushf_register)
13003 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13004 'ui_file *'. Adjust.
13005 * compile/compile.c (compile_to_object): Use string_file.
13006 * compile/compile.h (compile_dwarf_expr_to_c)
13007 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13008 'ui_file *'.
13009 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13010 (replace_typedefs_qualified_name): Use string_file and
13011 obstack_copy0.
13012 * disasm.c (gdb_pretty_print_insn): Use string_file.
13013 (gdb_disassembly): Adjust reference the null_stream global.
13014 (do_ui_file_delete): Delete.
13015 (gdb_insn_length): Use null_stream.
13016 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13017 * dwarf2loc.c (dwarf2_compile_property_to_c)
13018 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13019 'string_file &' instead of a 'ui_file *'.
13020 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13021 * dwarf2read.c (do_ui_file_peek_last): Delete.
13022 (dwarf2_compute_name): Use string_file.
13023 * event-top.c (gdb_setup_readline): Use stdio_file.
13024 * gdbarch.sh (verify_gdbarch): Use string_file.
13025 * gdbtypes.c (safe_parse_type): Use null_stream.
13026 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13027 string_file.
13028 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13029 'string_file *' instead of a 'ui_file *'.
13030 (gdbscm_arch_disassemble): Use string_file.
13031 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13032 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13033 inherits from ui_file.
13034 (ioscm_file_port_delete, ioscm_file_port_rewind)
13035 (ioscm_file_port_put): Delete.
13036 (ioscm_file_port_write): Rename to ...
13037 (ioscm_file_port::write): ... this. Remove file_port_magic
13038 checks.
13039 (ioscm_file_port_new): Delete.
13040 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13041 ui_file_up.
13042 * guile/scm-type.c (tyscm_type_name): Use string_file.
13043 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13044 Use string_file.
13045 * infcmd.c (print_return_value_1): Use string_file.
13046 * infrun.c (print_target_wait_results): Use string_file.
13047 * language.c (add_language): Use string_file.
13048 * location.c (explicit_to_string_internal): Use string_file.
13049 * main.c (captured_main_1): Use null_file.
13050 * maint.c (maintenance_print_architecture): Use stdio_file.
13051 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13052 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13053 event_channel>: Change type to mi_console_file pointer.
13054 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13055 (mi_console_file_delete): Delete.
13056 (struct mi_console_file): Delete.
13057 (mi_console_file_magic): Delete.
13058 (mi_console_file_new): Delete.
13059 (mi_console_file::mi_console_file): New.
13060 (mi_console_file_delete): Delete.
13061 (mi_console_file_fputs): Delete.
13062 (mi_console_file::write): New.
13063 (mi_console_raw_packet): Delete.
13064 (mi_console_file::flush): New.
13065 (mi_console_file_flush): Delete.
13066 (mi_console_set_raw): Rename to ...
13067 (mi_console_file::set_raw): ... this.
13068 * mi/mi-console.h (class mi_console_file): New class.
13069 (mi_console_file_new, mi_console_set_raw): Delete.
13070 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13071 (mi_set_logging): Use delete and tee_file. Adjust.
13072 * mi/mi-main.c (output_register): Use string_file.
13073 (mi_cmd_data_evaluate_expression): Use string_file.
13074 (mi_cmd_data_read_memory): Use string_file.
13075 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13076 * mi/mi-out.c (mi_ui_out::main_stream): New.
13077 (mi_ui_out::rewind): Use main_stream and
13078 string_file.
13079 (mi_ui_out::put): Use main_stream and string_file.
13080 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13081 Allocate a 'string_file' instead.
13082 (mi_out_new): Don't allocate a mem_fileopen stream here.
13083 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13084 (mi_ui_out::main_stream): Declare method.
13085 * printcmd.c (eval_command): Use string_file.
13086 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13087 * python/py-arch.c (archpy_disassemble): Use string_file.
13088 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13089 * python/py-frame.c (frapy_str): Use string_file.
13090 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13091 Use string_file.
13092 * python/py-type.c (typy_str): Use string_file.
13093 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13094 * python/py-value.c (valpy_str): Use string_file.
13095 * record-btrace.c (btrace_insn_history): Use string_file.
13096 * regcache.c (regcache_print): Use stdio_file.
13097 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13098 * remote.c (escape_buffer): Use string_file.
13099 * rust-lang.c (rust_get_disr_info): Use string_file.
13100 * serial.c (serial_open_ops_1): Use stdio_file.
13101 (do_serial_close): Use delete.
13102 * stack.c (print_frame_arg): Use string_file.
13103 (print_frame_args): Remove local mem_fileopen stream, not used.
13104 (print_frame): Use string_file.
13105 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13106 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13107 Take a 'string_file *' instead of a 'ui_file *'.
13108 * top.c (new_ui): Use stdio_file and stderr_file.
13109 (free_ui): Use delete.
13110 (execute_command_to_string): Use string_file.
13111 (quit_confirm): Use string_file.
13112 * tracepoint.c (collection_list::append_exp): Use string_file.
13113 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13114 * tui/tui-file.c: Don't include "ui-file.h".
13115 (enum streamtype, struct tui_stream): Delete.
13116 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13117 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13118 (tui_file::tui_file): New method.
13119 (tui_file_fputs): Delete.
13120 (tui_file_get_strbuf): Delete.
13121 (tui_file::puts): New method.
13122 (tui_file_adjust_strbuf): Delete.
13123 (tui_file_flush): Delete.
13124 (tui_file::flush): New method.
13125 * tui/tui-file.h: Tweak intro comment.
13126 Include ui-file.h.
13127 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13128 (tui_file_adjust_strbuf): Delete declarations.
13129 (class tui_file): New class.
13130 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13131 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13132 (tui_register_format): Use string_stream.
13133 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13134 (tui_get_function_from_frame): Use string_file.
13135 * typeprint.c (type_to_string): Use string_file.
13136 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13137 (null_stream): New global.
13138 (ui_file_delete): Delete.
13139 (ui_file::ui_file): New.
13140 (null_file_isatty): Delete.
13141 (ui_file::~ui_file): New.
13142 (null_file_rewind): Delete.
13143 (ui_file::printf): New.
13144 (null_file_put): Delete.
13145 (null_file_flush): Delete.
13146 (ui_file::putstr): New.
13147 (null_file_write): Delete.
13148 (ui_file::putstrn): New.
13149 (null_file_read): Delete.
13150 (ui_file::putc): New.
13151 (null_file_fputs): Delete.
13152 (null_file_write_async_safe): Delete.
13153 (ui_file::vprintf): New.
13154 (null_file_delete): Delete.
13155 (null_file::write): New.
13156 (null_file_fseek): Delete.
13157 (null_file::puts): New.
13158 (ui_file_data): Delete.
13159 (null_file::write_async_safe): New.
13160 (gdb_flush, ui_file_isatty): Adjust.
13161 (ui_file_put, ui_file_rewind): Delete.
13162 (ui_file_write): Adjust.
13163 (ui_file_write_for_put): Delete.
13164 (ui_file_write_async_safe, ui_file_read): Adjust.
13165 (ui_file_fseek): Delete.
13166 (fputs_unfiltered): Adjust.
13167 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13168 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13169 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13170 (set_ui_file_data): Delete.
13171 (string_file::~string_file, string_file::write)
13172 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13173 (do_ui_file_as_string, ui_file_as_string): Delete.
13174 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13175 (struct mem_file): Delete.
13176 (mem_file_new): Delete.
13177 (stdio_file::stdio_file): New.
13178 (mem_file_delete): Delete.
13179 (stdio_file::stdio_file): New.
13180 (mem_fileopen): Delete.
13181 (stdio_file::~stdio_file): New.
13182 (mem_file_rewind): Delete.
13183 (stdio_file::set_stream): New.
13184 (mem_file_put): Delete.
13185 (stdio_file::open): New.
13186 (mem_file_write): Delete.
13187 (stdio_file_magic, struct stdio_file): Delete.
13188 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13189 (stdio_file::flush): New.
13190 (stdio_file_read): Rename to ...
13191 (stdio_file::read): ... this. Adjust.
13192 (stdio_file_write): Rename to ...
13193 (stdio_file::write): ... this. Adjust.
13194 (stdio_file_write_async_safe): Rename to ...
13195 (stdio_file::write_async_safe) ... this. Adjust.
13196 (stdio_file_fputs): Rename to ...
13197 (stdio_file::puts) ... this. Adjust.
13198 (stdio_file_isatty): Delete.
13199 (stdio_file_fseek): Delete.
13200 (stdio_file::isatty): New.
13201 (stderr_file_write): Rename to ...
13202 (stderr_file::write) ... this. Adjust.
13203 (stderr_file_fputs): Rename to ...
13204 (stderr_file::puts) ... this. Adjust.
13205 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13206 (stderr_file::stderr_file): New.
13207 (tee_file_magic): Delete.
13208 (struct tee_file): Delete.
13209 (tee_file::tee_file): New.
13210 (tee_file_new): Delete.
13211 (tee_file::~tee_file): New.
13212 (tee_file_delete): Delete.
13213 (tee_file_flush): Rename to ...
13214 (tee_file::flush): ... this. Adjust.
13215 (tee_file_write): Rename to ...
13216 (tee_file::write): ... this. Adjust.
13217 (tee_file::write_async_safe): New.
13218 (tee_file_fputs): Rename to ...
13219 (tee_file::puts): ... this. Adjust.
13220 (tee_file_isatty): Rename to ...
13221 (tee_file::isatty): ... this. Adjust.
13222 * ui-file.h (struct obstack, struct ui_file): Don't
13223 forward-declare.
13224 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13225 (ui_file_write_ftype)
13226 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13227 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13228 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13229 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13230 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13231 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13232 (set_ui_file_fseek): Delete.
13233 (ui_file_data, ui_file_delete, ui_file_rewind)
13234 (struct ui_file): New.
13235 (ui_file_up): New.
13236 (class null_file): New.
13237 (null_stream): Declare.
13238 (ui_file_write_for_put, ui_file_put): Delete.
13239 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13240 Delete.
13241 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13242 (gdb_fopen, tee_file_new): Delete.
13243 (struct string_file): New.
13244 (struct stdio_file): New.
13245 (stdio_file_up): New.
13246 (struct stderr_file): New.
13247 (class tee_file): New.
13248 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13249 of a 'ui_file *'. Adjust.
13250 * ui-out.h (class ui_out) <field_stream>: Likewise.
13251 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13252 (null_stream): Delete.
13253 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13254 Adjust.
13255 * utils.h (struct ui_file): Delete forward declaration..
13256 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13257 (error_stream): Take a 'string_file &' instead of a
13258 'ui_file *'.
13259 * varobj.c (varobj_value_get_print_value): Use string_file.
13260 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13261 * gdbarch.c: Regenerate.
13262
187808b0
PA
132632017-02-02 Pedro Alves <palves@redhat.com>
13264
13265 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13266 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13267 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13268 Adjust to call gdb_print_insn instead of
13269 gdb_disassembler::print_insn.
13270 (dump_insns, do_mixed_source_and_assembly_deprecated)
13271 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13272 'gdbarch' parameter. Remove gdb_disassembler parameter.
13273 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13274 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13275 declaration.
13276 (gdb_pretty_print_insn): Re-add declaration.
13277 * record-btrace.c (btrace_insn_history): Don't allocate a
13278 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13279
7a8eb317
SM
132802017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13281
13282 * disasm.h (gdb_disassembly): Remove file_string parameter.
13283 * disasm.c (gdb_disassembly): Likewise.
13284 * cli/cli-cmds.c (print_disassembly): Adapt.
13285 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13286 * stack.c (do_gdb_disassembly): Likewise.
13287
7346ef59
AA
132882017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13289
13290 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13291 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13292 targets. And if the implicit value is longer than needed, extract
13293 the first bytes instead of the "least significant" ones.
13294
cd4007e4
MM
132952017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13296
13297 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13298 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13299 (btrace_fetch): Assert can_access_registers_ptid.
13300 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13301 validate_registers_access.
13302
cf77c34e
MM
133032017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13304
13305 * gdbthread.h (can_access_registers_ptid): New.
13306 * thread.c (can_access_registers_ptid): New.
13307
be85ce7d
PA
133082017-02-01 Pedro Alves <palves@redhat.com>
13309
13310 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13311
29b0b251
PA
133122017-01-31 Pedro Alves <palves@redhat.com>
13313
13314 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13315 Fix typos.
13316
289b5b24
PA
133172017-01-31 Pedro Alves <palves@redhat.com>
13318
13319 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13320 not used.
13321
b47413b4
PA
133222017-01-31 Pedro Alves <palves@redhat.com>
13323
13324 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13325
60adb36c
PA
133262017-01-31 Pedro Alves <palves@redhat.com>
13327
13328 * common/scoped_restore.h
13329 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13330 change the value's parameter type to T2.
13331 (make_scoped_restore): Likewise.
13332
2735833d
WT
133332017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13334 Richard Henderson <rth@redhat.com>
13335
13336 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13337 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13338 GS_BASE for older kernels.
13339 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13340 GS_BASE for older kernels.
13341 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13342 and GS_BASE to the offset table.
13343 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13344 system register group.
13345 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13346 for older kernels.
13347 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13348 amd64 ABI.
13349 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13350 AMD64_GSBASE_REGNUM.
13351 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13352 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13353 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13354 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13355 i386/64bit-segments.xml in those rules.
13356 * features/i386/64bit-segments.xml: New file.
13357 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13358 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13359 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13360 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13361 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13362 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13363 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13364 * features/i386/amd64-avx-linux.c: Regenerated.
13365 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13366 * features/i386/amd64-avx-mpx.c: Regenerated.
13367 * features/i386/amd64-avx512-linux.c: Regenerated.
13368 * features/i386/amd64-linux.c: Regenerated.
13369 * features/i386/amd64-mpx-linux.c: Regenerated.
13370 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13371 * features/i386/i386-avx-mpx.c: Regenerated.
13372 * features/i386/x32-avx-linux.c: Regenerated.
13373 * features/i386/x32-avx512-linux.c: Regenerated.
13374 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13375 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13376 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13377 * regformats/i386/amd64-linux.dat: Regenerated.
13378 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13379 * regformats/i386/x32-avx-linux.dat: Regenerated.
13380 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13381 * regformats/i386/x32-linux.dat: Regenerated.
13382
8884e97e
WT
133832017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13384
13385 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13386 Set to AMD64_NUM_REGS.
13387
7005d26a
WT
133882017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13389
13390 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13391 that checks validity of a register number.
13392
4bd2e1b2
KC
133932017-01-27 Kees Cook <keescook@google.com>
13394
13395 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13396 fetch_fpregs if target has fpa registers.
13397 (arm_linux_store_inferior_registers): Call store_fpregs if target
13398 has fpa registers.
13399
7cf1de6c
AA
134002017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13401
13402 * cris-tdep.c (cris_gdbarch_init): Remove check for
13403 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13404
874a1c8c
AT
134052017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13406
13407 * corelow.c (get_core_register_section): Check for regset
13408 existence before checking for REGSET_VARIABLE_SIZE.
13409
d8b49cf0
YQ
134102017-01-26 Yao Qi <yao.qi@linaro.org>
13411 Pedro Alves <palves@redhat.com>
13412
13413 PR gdb/20939
13414 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13415 call memory_error, save memaddr instead.
13416 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13417 negative, cal memory_error.
13418 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13419
658ca58c
YQ
134202017-01-26 Yao Qi <yao.qi@linaro.org>
13421
13422 * disasm-selftests.c (memory_error_test): New function.
13423 (_initialize_disasm_selftests): Register memory_error_test.
13424
79843d45
YQ
134252017-01-26 Yao Qi <yao.qi@linaro.org>
13426
13427 * Makefile.in (SFILES): Add disasm-selftests.c and
13428 selftest-arch.c.
13429 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13430 * disasm-selftests.c: New file.
13431 * selftest-arch.c: New file.
13432 * selftest-arch.h: New file.
13433
8cafda32
YQ
134342017-01-26 Yao Qi <yao.qi@linaro.org>
13435
13436 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13437 to bfd_arch_mep. Don't return 0 if section is not
13438 found. Call print_insn_mep.
13439
e47ad6c0
YQ
134402017-01-26 Pedro Alves <palves@redhat.com>
13441 Yao Qi <yao.qi@linaro.org>
13442
13443 * arm-tdep.c: Include "disasm.h".
13444 (gdb_print_insn_arm): Update code to get gdbarch.
13445 * disasm.c (dis_asm_read_memory): Change it to
13446 gdb_disassembler::dis_asm_read_memory.
13447 (dis_asm_memory_error): Likewise.
13448 (dis_asm_print_address): Likewise.
13449 (gdb_pretty_print_insn): Change it to
13450 gdb_disassembler::pretty_print_insn.
13451 (dump_insns): Add one argument gdb_disassemlber. All
13452 callers updated.
13453 (do_mixed_source_and_assembly_deprecated): Likewise.
13454 (do_mixed_source_and_assembly): Likewise.
13455 (do_assembly_only): Likewise.
13456 (gdb_disassembler::gdb_disassembler): New.
13457 (gdb_disassembler::print_insn): New.
13458 * disasm.h (class gdb_disassembler): New.
13459 (gdb_pretty_print_insn): Remove declaration.
13460 (gdb_disassemble_info): Likewise.
13461 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13462 (gdbscm_disasm_read_memory_worker): Update.
13463 (gdbscm_disasm_read_memory): Update.
13464 (gdbscm_disasm_memory_error): Remove.
13465 (gdbscm_disasm_print_address): Remove.
13466 (gdbscm_disassembler::gdbscm_disassembler): New.
13467 (gdbscm_print_insn_from_port): Update.
13468 * mips-tdep.c: Include disasm.h.
13469 (gdb_print_insn_mips): Update code to get gdbarch.
13470 * record-btrace.c (btrace_insn_history): Update.
13471 * spu-tdep.c: Include disasm.h.
13472 (struct spu_dis_asm_data): Remove.
13473 (struct spu_dis_asm_info): New.
13474 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13475 SPU id.
13476 (gdb_print_insn_spu): Cast disassemble_info to
13477 spu_dis_asm_info.
13478
80d75874
YQ
134792017-01-26 Yao Qi <yao.qi@linaro.org>
13480
13481 * disasm.c (do_ui_file_delete): Delete.
13482 (gdb_insn_length): Move code creating stream to ...
13483 * utils.c (null_stream): ... here. New function.
13484 * utils.h (null_stream): Declare.
13485
60685cd0
SM
134862017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13487
13488 * python/py-inferior.c (find_thread_object): Return directly
13489 from the loop. Remove "found" variable.
13490
eb1cdb62
JB
134912017-01-21 Joel Brobecker <brobecker@adacore.com>
13492
13493 GDB 7.12.1 released.
13494
b1ce6568
SM
134952017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13496
13497 * python/py-function.c (fnpy_call): Reorder declarations to have
13498 the gdbpy_enter object declared first.
13499 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13500
6f8b0407
SM
135012017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13502
fec93fb1 13503 PR python/21068
6f8b0407
SM
13504 * python/python-internal.h (PyMem_RawMalloc): Define for
13505 Python < 3.4.
13506 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13507 PyMem_RawMalloc instead of PyMem_Malloc.
13508
78cbbba8
LM
135092017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13510 Luis Machado <lgustavo@codesourcery.com>
13511
13512 * NEWS (New commands): Mention flash-erase.
13513 (New MI commands): Mention target-flash-erase.
13514 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13515 command.
13516 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13517 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13518 * target.c (flash_erase_command): New function.
13519 (initialize_targets): Add new flash-erase command.
13520 * target.h (flash_erase_command): New declaration.
13521
2132fe85
JB
135222017-01-20 Joel Brobecker <brobecker@adacore.com>
13523
13524 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13525 HAVE_SYS_PROCFS_H is defined.
13526
d1dff226
AH
135272017-01-18 Alan Hayward <alan.hayward@arm.com>
13528
13529 * remote.c (struct cached_reg): Change data into a pointer.
13530 * (stop_reply_dtr): Free data pointers before deleting vector.
13531 (process_stop_reply): Likewise.
13532 (remote_parse_stop_reply): Allocate space for data
13533
9890e433
AH
135342017-01-18 Alan Hayward <alan.hayward@arm.com>
13535
13536 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13537 MAX_REGISTER_SIZE.
13538 (amd64_pseudo_register_read_value): Likewise.
13539 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13540 (store_register_using_P): Likewise.
13541 * regcache.c (regcache_xfer_part): Likewise.
13542
7a36499a
IR
135432017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13544
13545 Split real and pseudo registers.
13546 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13547 (sparc32_pseudo_regnum): New enum.
13548 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13549 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13550 (SPARC32_CP0_REGISTERS): New macro.
13551 (sparc32_pseudo_register_name): New function.
13552 (sparc32_register_name): Use sparc32_pseudo_register_name.
13553 (sparc32_pseudo_register_type): New function.
13554 (sparc32_register_type): Use sparc32_pseudo_register_type.
13555 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13556 pseudo register numbers.
13557 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13558 (SPARC64_CP0_REGISTERS): New macro.
13559 (sparc64_pseudo_register_name): New function.
13560 (sparc64_register_name): Use sparc64_pseudo_register_name.
13561 (sparc64_pseudo_register_type): New function.
13562 (sparc64_register_type): Use sparc64_pseudo_register_type.
13563 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13564 pseudo register numbers.
13565 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13566 sparc64_store_arguments): Handle pseudo register numbers.
13567
6f8976bf
YQ
135682017-01-13 Yao Qi <yao.qi@linaro.org>
13569
13570 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13571 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13572 output.
13573 (getpkt_or_notif_sane_1): Likewise.
13574
e4241ace
YQ
135752017-01-13 Yao Qi <yao.qi@linaro.org>
13576
13577 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13578 of CC. Pass "-x c++-header" instead of "-x c".
13579
3015c064
SM
135802017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13581
13582 * remote.c (remote_can_async_p): Update comment.
13583
fde1b17d
SM
135842017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13585
13586 * linux-nat.c (linux_nat_can_async_p): Update comment.
13587
ca1ca08b
SM
135882017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13589
13590 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13591
4ad2da73
SM
135922017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13593
13594 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13595
c8b23b3f
TT
135962017-01-10 Tom Tromey <tom@tromey.com>
13597
13598 * python/py-type.c (typy_legacy_template_argument): Update.
13599 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13600 ~demangle_parse_info): Declare new members.
13601 (cp_demangled_name_to_comp): Return unique_ptr.
13602 (cp_demangled_name_parse_free)
13603 (make_cleanup_cp_demangled_name_parse_free)
13604 (cp_new_demangle_parse_info): Remove.
13605 * cp-support.c (do_demangled_name_parse_free_cleanup)
13606 (make_cleanup_cp_demangled_name_parse_free): Remove.
13607 (inspect_type, cp_canonicalize_string_full)
13608 (cp_canonicalize_string): Update.
13609 (mangled_name_to_comp): Change return type.
13610 (cp_class_name_from_physname, method_name_from_physname)
13611 (cp_func_name, cp_remove_params): Update.
13612 * cp-name-parser.y (demangle_parse_info): New constructor, from
13613 cp_new_demangle_parse_info.
13614 (~demangle_parse_info): New destructor, from
13615 cp_demangled_name_parse_free.
13616 (cp_merge_demangle_parse_infos): Update.
13617 (cp_demangled_name_to_comp): Change return type.
13618
1ac32117
TT
136192017-01-10 Tom Tromey <tom@tromey.com>
13620
13621 * top.c (prevent_dont_repeat): Change return type.
13622 * python/python.c (execute_gdb_command): Use std::string.
13623 Update.
13624 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13625 * command.h (prevent_dont_repeat): Change return type.
13626 * breakpoint.c (bpstat_do_actions_1): Update.
13627
0cf08227
TT
136282017-01-10 Tom Tromey <tom@tromey.com>
13629
13630 * value.h (scoped_value_mark::~scoped_value_mark): Call
13631 free_to_mark.
13632 (scoped_value_mark::free_to_mark): New method.
13633 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13634 scoped_value_mark.
13635
eb115069
TT
136362017-01-10 Tom Tromey <tom@tromey.com>
13637
13638 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13639 (valpy_reference_value, valpy_const_value, valpy_get_address)
13640 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13641 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13642 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13643 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13644 scoped_value_mark.
13645 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13646 * value.h (scoped_value_mark): New class.
13647
906768f9
TT
136482017-01-10 Tom Tromey <tom@tromey.com>
13649
13650 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13651 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13652 * psymtab.c (discard_psymtabs_upto): Remove.
13653 (make_cleanup_discard_psymtabs): Remove.
13654 (struct psymtab_state): Remove.
13655
bef155c3
TT
136562017-01-10 Tom Tromey <tom@tromey.com>
13657
13658 * record-full.c (record_full_save_cleanups): Remove.
13659 (record_full_save): Use gdb::unlinker.
13660 * gcore.c (do_bfd_delete_cleanup): Remove.
13661 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13662 cleanups.
13663 * dwarf2read.c (unlink_if_set): Remove.
13664 (write_psymtabs_to_index): Use gdb::unlinker.
13665 * common/gdb_unlinker.h: New file.
13666
192b62ce
TT
136672017-01-10 Tom Tromey <tom@tromey.com>
13668
13669 * windows-tdep.c (windows_xfer_shared_library): Update.
13670 * windows-nat.c (windows_make_so): Update.
13671 * utils.h (make_cleanup_bfd_unref): Remove.
13672 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13673 * symfile.h (symfile_bfd_open)
13674 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13675 * symfile.c (read_symbols, symbol_file_add)
13676 (separate_debug_file_exists): Update.
13677 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13678 (generic_load, reread_symbols): Update.
13679 * symfile-mem.c (symbol_file_add_from_memory): Update.
13680 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13681 (spu_symbol_file_add_from_memory): Update.
13682 * solist.h (struct target_so_ops) <bfd_open>: Return
13683 gdb_bfd_ref_ptr.
13684 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13685 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13686 gdb_bfd_ref_ptr.
13687 (solib_map_sections, reload_shared_libraries_1): Update.
13688 * solib-svr4.c (enable_break): Update.
13689 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13690 * solib-frv.c (enable_break2): Update.
13691 * solib-dsbt.c (enable_break): Update.
13692 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13693 gdb_bfd_ref_ptr.
13694 (darwin_solib_get_all_image_info_addr_at_init): Update.
13695 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13696 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13697 * record-full.c (record_full_save): Update.
13698 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13699 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13700 * minidebug.c (find_separate_debug_file_in_section): Return
13701 gdb_bfd_ref_ptr.
13702 * machoread.c (macho_add_oso_symfile): Change abfd to
13703 gdb_bfd_ref_ptr.
13704 (macho_symfile_read_all_oso): Update.
13705 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13706 (macho_symfile_read): Update.
13707 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13708 (jit_bfd_try_read_symtab): Update.
13709 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13710 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13711 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13712 gdb_bfd_ref_ptr.
13713 (gdb_bfd_ref_policy): New struct.
13714 (gdb_bfd_ref_ptr): New typedef.
13715 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13716 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13717 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13718 gdb_bfd_ref_ptr.
13719 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13720 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13721 (gcore_command): Update.
13722 * exec.c (exec_file_attach): Update.
13723 * elfread.c (elf_symfile_read): Update.
13724 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13725 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13726 (open_and_init_dwo_file): Update.
13727 (open_dwp_file): Return gdb_bfd_ref_ptr.
13728 (open_and_init_dwp_file): Update.
13729 * corelow.c (core_open): Update.
13730 * compile/compile-object-load.c (compile_object_load): Update.
13731 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13732 * coffread.c (coff_symfile_read): Update.
13733 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13734 gdb_bfd_ref_ptr. Rename.
13735 (dump_bfd_file, restore_command): Update.
13736 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13737 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13738 (find_separate_debug_file_by_buildid): Update.
13739
50315b21
TT
137402017-01-10 Tom Tromey <tom@tromey.com>
13741
13742 * common/gdb_ref_ptr.h: New file.
13743 * python/py-ref.h (struct gdbpy_ref_policy): New.
13744 (gdbpy_ref): Now a typedef.
13745
fc4007c9
TT
137462017-01-10 Tom Tromey <tom@tromey.com>
13747
13748 * utils.h (make_cleanup_htab_delete): Don't declare.
13749 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13750 Remove.
13751 * linespec.c (decode_compound_collector): Add constructor,
13752 destructor.
13753 (lookup_prefix_sym): Remove cleanup.
13754 (symtab_collector): Add constructor, destructor.
13755 (collect_symtabs_from_filename): Remove cleanup.
13756 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13757 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13758 Use htab_up.
13759 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13760 * dwarf2read.c (dw2_expand_symtabs_matching)
13761 (dw2_map_symbol_filenames, dwarf_decode_macros)
13762 (write_psymtabs_to_index): Use htab_up.
13763 * dwarf2loc.c (func_verify_no_selftailcall)
13764 (call_site_find_chain_1, func_verify_no_selftailcall)
13765 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13766 std::vector, gdb::unique_xmalloc_ptr.
13767 (call_sitep): Remove typedef.
13768 (dwarf2_locexpr_baton_eval): Remove unused variable.
13769
8dbcee67
TT
137702017-01-10 Tom Tromey <tom@tromey.com>
13771
13772 * python/python-internal.h (make_cleanup_py_decref)
13773 (make_cleanup_py_xdecref): Don't declare.
13774 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13775 (py_xdecref, make_cleanup_py_xdecref): Remove.
13776
13df46cc
TT
137772017-01-10 Tom Tromey <tom@tromey.com>
13778
13779 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13780 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13781
06fc9bf7
TT
137822017-01-10 Tom Tromey <tom@tromey.com>
13783
13784 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13785
830a4934
TT
137862017-01-10 Tom Tromey <tom@tromey.com>
13787
13788 * python/py-utils.c (unicode_to_encoded_string)
13789 (python_string_to_target_string)
13790 (python_string_to_target_python_string)
13791 (python_string_to_host_string, gdbpy_obj_to_string)
13792 (get_addr_from_python): Use gdbpy_ref.
13793
4586d543
TT
137942017-01-10 Tom Tromey <tom@tromey.com>
13795
13796 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13797 gdbpy_ref.
13798
59876f8f
TT
137992017-01-10 Tom Tromey <tom@tromey.com>
13800
13801 * python/python.c (eval_python_command, gdbpy_decode_line)
13802 (gdbpy_run_events, gdbpy_start_type_printers)
13803 (gdbpy_apply_type_printers): Use gdbpy_ref.
13804
97d83487
TT
138052017-01-10 Tom Tromey <tom@tromey.com>
13806
13807 * python/py-param.c (get_doc_string, compute_enum_values): Use
13808 gdbpy_ref.
13809
9205649a
TT
138102017-01-10 Tom Tromey <tom@tromey.com>
13811
13812 * python/py-inferior.c (find_thread_object, build_inferior_list):
13813 Use gdbpy_ref.
13814
74c49d45
TT
138152017-01-10 Tom Tromey <tom@tromey.com>
13816
13817 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13818
16361ffb
TT
138192017-01-10 Tom Tromey <tom@tromey.com>
13820
13821 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13822 gdbpy_ref.
13823
905f2cca
TT
138242017-01-10 Tom Tromey <tom@tromey.com>
13825
13826 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13827 extra incref.
13828 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13829 Use gdbpy_ref.
13830
64081434
TT
138312017-01-10 Tom Tromey <tom@tromey.com>
13832
13833 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13834 gdbpy_ref.
13835
59e9e831
TT
138362017-01-10 Tom Tromey <tom@tromey.com>
13837
13838 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13839 decref results of PyArg_ParseTupleAndKeywords.
13840
9de10f6d
TT
138412017-01-10 Tom Tromey <tom@tromey.com>
13842
13843 * python/python.c (python_run_simple_file): Use
13844 unique_xmalloc_ptr, gdbpy_ref.
13845
2bd5759d
TT
138462017-01-10 Tom Tromey <tom@tromey.com>
13847
13848 * python/py-prettyprint.c (print_stack_unless_memory_error)
13849 (print_string_repr, print_children): Use gdbpy_ref.
13850 (dummy_python_frame): New class.
13851 (dummy_python_frame::dummy_python_frame): Rename from
13852 push_dummy_python_frame.
13853 (py_restore_tstate): Remove.
13854
3b4e0e01
TT
138552017-01-10 Tom Tromey <tom@tromey.com>
13856
13857 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13858
17a22718
TT
138592017-01-10 Tom Tromey <tom@tromey.com>
13860
13861 * python/python.c (ensure_python_env, restore_python_env):
13862 Remove.
13863 * python/python-internal.h (ensure_python_env): Don't declare.
13864 * varobj.h (varobj_ensure_python_env): Don't declare.
13865 * varobj.c (varobj_ensure_python_env): Remove.
13866
68cdc557
TT
138672017-01-10 Tom Tromey <tom@tromey.com>
13868
13869 * varobj.c (varobj_value_get_print_value): Use
13870 gdbpy_enter_varobj.
13871
1eba6383
TT
138722017-01-10 Tom Tromey <tom@tromey.com>
13873
13874 * python/py-prettyprint.c (print_string_repr, print_children):
13875 Update.
13876 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
13877 of "encoding".
13878 * varobj.c (varobj_value_get_print_value): Update.
13879 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
13880
bde7b3e3
TT
138812017-01-10 Tom Tromey <tom@tromey.com>
13882
13883 * varobj.c (varobj_get_display_hint)
13884 (dynamic_varobj_has_child_method, install_new_value_visualizer)
13885 (varobj_set_visualizer, free_variable): Use
13886 gdbpy_enter_varobj.
13887
a7785f8c
TT
138882017-01-10 Tom Tromey <tom@tromey.com>
13889
13890 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
13891 (do_finish_initialization): New function. Use gdbpy_ref.
13892 (gdbpy_finish_initialization): Use gdbpy_enter. Call
13893 do_finish_initialization.
13894
2865bfce
TT
138952017-01-10 Tom Tromey <tom@tromey.com>
13896
13897 * python/py-param.c (get_set_value, get_show_value): Use
13898 gdbpy_enter, gdbpy_ref.
13899
0e9dcc75
TT
139002017-01-10 Tom Tromey <tom@tromey.com>
13901
13902 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
13903
12a5cedd
TT
139042017-01-10 Tom Tromey <tom@tromey.com>
13905
13906 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
13907
788f2586
TT
139082017-01-10 Tom Tromey <tom@tromey.com>
13909
13910 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
13911 Use gdbpy_enter_varobj.
13912
6cd67bea
TT
139132017-01-10 Tom Tromey <tom@tromey.com>
13914
13915 * varobj.c (gdbpy_enter_varobj): New constructor.
13916 * python/python-internal.h (gdbpy_enter_varobj): New class.
13917 * python/py-varobj.c (py_varobj_get_iterator): Use
13918 gdbpy_enter_varobj.
13919
14b122bf
TT
139202017-01-10 Tom Tromey <tom@tromey.com>
13921
13922 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
13923 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13924 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
13925 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
13926 unique_xmalloc_ptr.
13927 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
13928
bf1ca3b9
TT
139292017-01-10 Tom Tromey <tom@tromey.com>
13930
13931 * python/py-xmethods.c (invoke_match_method): Use
13932 gdbpy_ref.
13933
572a5524
TT
139342017-01-10 Tom Tromey <tom@tromey.com>
13935
13936 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
13937 gdbpy_enter, gdbpy_ref.
13938
396a78b6
TT
139392017-01-10 Tom Tromey <tom@tromey.com>
13940
13941 * python/python.c (python_interactive_command): Use gdbpy_enter.
13942
a88b13c7
TT
139432017-01-10 Tom Tromey <tom@tromey.com>
13944
13945 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
13946 gdbpy_ref.
13947
e9f0c363
TT
139482017-01-10 Tom Tromey <tom@tromey.com>
13949
13950 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
13951 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13952
6349f452
TT
139532017-01-10 Tom Tromey <tom@tromey.com>
13954
13955 * utils.h (htab_deleter): New struct.
13956 (htab_up): New typedef.
13957 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
13958 gdbpy_enter, gdbpy_ref, htab_up.
13959
c0171de6
TT
139602017-01-10 Tom Tromey <tom@tromey.com>
13961
13962 * python/py-unwind.c (pending_frame_invalidate): Remove.
13963 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
13964
f18e226f
TT
139652017-01-10 Tom Tromey <tom@tromey.com>
13966
13967 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
13968 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
13969
c57af3f1
TT
139702017-01-10 Tom Tromey <tom@tromey.com>
13971
13972 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
13973
60e600ec
TT
139742017-01-10 Tom Tromey <tom@tromey.com>
13975
13976 * python/python.c (gdbpy_eval_from_control_command)
13977 (gdbpy_source_script, gdbpy_run_events)
13978 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
13979 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
13980 gdbpy_enter.
13981
bf7da5b0
TT
139822017-01-10 Tom Tromey <tom@tromey.com>
13983
13984 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
13985
2d38bced
TT
139862017-01-10 Tom Tromey <tom@tromey.com>
13987
13988 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
13989
07bc7329
TT
139902017-01-10 Tom Tromey <tom@tromey.com>
13991
13992 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
13993 (python_on_inferior_call_pre, python_on_inferior_call_post)
13994 (python_on_memory_change, python_on_register_change)
13995 (python_inferior_exit, python_new_objfile, add_thread_object)
13996 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
13997
6e7c365e
TT
139982017-01-10 Tom Tromey <tom@tromey.com>
13999
14000 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14001 (bpfinishpy_handle_exit): Use gdbpy_enter.
14002
6ba0cd40
TT
140032017-01-10 Tom Tromey <tom@tromey.com>
14004
14005 * python/py-cmd.c (cmdpy_destroyer)
14006 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14007 gdbpy_enter.
14008
de2dc875
TT
140092017-01-10 Tom Tromey <tom@tromey.com>
14010
14011 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14012 gdbpy_enter.
14013 (gdbpy_breakpoint_has_cond): Likewise.
14014
4ecee2c4
TT
140152017-01-10 Tom Tromey <tom@tromey.com>
14016
14017 * python/python.c (gdbpy_enter): New constructor.
14018 (~gdbpy_enter): New destructor.
14019 (restore_python_env, ensure_python_env): Rewrite.
14020 * python/python-internal.h (gdbpy_enter): New class.
14021
37fce74f
TT
140222017-01-10 Tom Tromey <tom@tromey.com>
14023
14024 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14025
53a0cca3
TT
140262017-01-10 Tom Tromey <tom@tromey.com>
14027
14028 * python/py-value.c (value_has_field, get_field_flag)
14029 (get_field_type, valpy_getitem, convert_value_from_python): Use
14030 gdbpy_ref.
14031
ff3724f5
TT
140322017-01-10 Tom Tromey <tom@tromey.com>
14033
14034 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14035 gdbpy_ref.
14036
0700aea5
TT
140372017-01-10 Tom Tromey <tom@tromey.com>
14038
14039 * python/py-prettyprint.c (search_pp_list)
14040 (find_pretty_printer_from_objfiles)
14041 (find_pretty_printer_from_progspace)
14042 (find_pretty_printer_from_gdb, find_pretty_printer)
14043 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14044 gdbpy_ref.
14045
1bb44c9f
TT
140462017-01-10 Tom Tromey <tom@tromey.com>
14047
14048 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14049
87ce03fd
TT
140502017-01-10 Tom Tromey <tom@tromey.com>
14051
14052 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14053 (ltpy_get_all_source_lines): Use gdbpy_ref.
14054
ee0a3fb8
TT
140552017-01-10 Tom Tromey <tom@tromey.com>
14056
14057 * python/py-framefilter.c (extract_sym, extract_value)
14058 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14059 gdbpy_ref.
14060
bf2a52fa
TT
140612017-01-10 Tom Tromey <tom@tromey.com>
14062
14063 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14064
f59fe7f8
TT
140652017-01-10 Tom Tromey <tom@tromey.com>
14066
14067 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14068
80bd970a
TT
140692017-01-10 Tom Tromey <tom@tromey.com>
14070
14071 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14072 gdbpy_ref.
14073
d1b3de2e
TT
140742017-01-10 Tom Tromey <tom@tromey.com>
14075
14076 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14077
3bb43384
TT
140782017-01-10 Tom Tromey <tom@tromey.com>
14079
14080 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14081 (typy_range): Use gdbpy_ref.
14082
abf5651e
TT
140832017-01-10 Tom Tromey <tom@tromey.com>
14084
14085 * python/py-threadevent.c (create_thread_event_object): Use
14086 gdbpy_ref.
14087 * python/py-stopevent.c (create_stop_event_object): Simplify.
14088 (emit_stop_event): Use gdbpy_ref.
14089 * python/py-signalevent.c (create_signal_event_object): Use
14090 gdbpy_ref.
14091 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14092 (emit_new_objfile_event, create_clear_objfiles_event_object)
14093 (emit_clear_objfiles_event): Use gdbpy_ref.
14094 * python/py-infevents.c (create_inferior_call_event_object)
14095 (create_register_changed_event_object)
14096 (create_memory_changed_event_object, emit_inferior_call_event)
14097 (emit_memory_changed_event, emit_register_changed_event): Use
14098 gdbpy_ref.
14099 * python/py-exitedevent.c (create_exited_event_object)
14100 (emit_exited_event): Use gdbpy_ref.
14101 * python/py-event.h (evpy_emit_event): Remove
14102 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14103 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14104 * python/py-continueevent.c (emit_continue_event): Use
14105 gdbpy_ref.
14106 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14107 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14108 gdbpy_ref.
14109 * python/py-bpevent.c (create_breakpoint_event_object): Use
14110 gdbpy_ref.
14111
a68ff33e
TT
141122017-01-10 Tom Tromey <tom@tromey.com>
14113
14114 * python/py-ref.h: New file.
14115
7becfd03
SM
141162017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14117
14118 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14119 void.
14120 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14121 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14122 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14123 * ui-out.c (ui_out::redirect): Likewise.
14124 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14125 * cli/cli-logging.c (set_logging_redirect): Update call site of
14126 ui_out::redirect.
14127 (handle_redirections): Likewise.
14128 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14129 * top.c (execute_command_to_string): Likewise.
14130 * utils.c (do_ui_out_redirect_pop): Likewise.
14131
df294654
SM
141322017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14133
14134 * stack.c (_initialize_stack): Update "frame" command help message.
14135
f5e6296e
IB
141362017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14137
14138 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14139
0e2d6fa6
YQ
141402017-01-06 Yao Qi <yao.qi@linaro.org>
14141
14142 * x86-linux-nat.h: Include gdb_proc_service.h.
14143
44d6d3f9
YQ
141442017-01-06 Yao Qi <yao.qi@linaro.org>
14145
14146 * ser-base.h: Include serial.h.
14147
656731fe
YQ
141482017-01-06 Yao Qi <yao.qi@linaro.org>
14149
14150 * ppc-linux-tdep.h: Include ppc-tdep.h.
14151
1ca8f924
YQ
141522017-01-06 Yao Qi <yao.qi@linaro.org>
14153
14154 * nat/amd64-linux-siginfo.h: Include signal.h.
14155
bc3008c4
YQ
141562017-01-06 Yao Qi <yao.qi@linaro.org>
14157
14158 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14159
66c80d03
YQ
141602017-01-06 Yao Qi <yao.qi@linaro.org>
14161
14162 * mi/mi-parse.h: Include mi-cmds.h.
14163
051d2dda
YQ
141642017-01-06 Yao Qi <yao.qi@linaro.org>
14165
14166 * inf-loop.c: Don't include "target.h".
14167 * inf-loop.h: Include it here.
14168
8018d34f
YQ
141692017-01-06 Yao Qi <yao.qi@linaro.org>
14170
14171 * dfp.h: Include "dboulest.h" and "expression.h".
14172
c0b8369c
YQ
141732017-01-06 Yao Qi <yao.qi@linaro.org>
14174
14175 * ax-gdb.h: Include "ax.h".
14176
ad5cba2a
YQ
141772017-01-06 Yao Qi <yao.qi@linaro.org>
14178
14179 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14180 with nat/gdb_ptrace.h.
14181
1c33cd7f
YQ
141822017-01-05 Yao Qi <yao.qi@linaro.org>
14183
14184 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14185 new line.
14186 (mips64_fbsd_sigframe_init): Likewise.
14187
c988ac1d
JB
141882017-01-04 John Baldwin <jhb@FreeBSD.org>
14189
14190 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14191 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14192
b268007c
JB
141932017-01-04 John Baldwin <jhb@FreeBSD.org>
14194
14195 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14196 * NEWS: Mention new FreeBSD/mips native configuration.
14197 * config/mips/fbsd.mh: New file.
14198 * configure.host: Add mips*-*-freebsd*.
14199 * mips-fbsd-nat.c: New file.
14200
387360da
JB
142012017-01-04 John Baldwin <jhb@FreeBSD.org>
14202
14203 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14204 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14205 * NEWS: Mention new FreeBSD/mips target.
14206 * configure.tgt: Add mips*-*-freebsd*.
14207 * mips-fbsd-tdep.c: New file.
14208 * mips-fbsd-tdep.h: New file.
14209
2aaaf250
YQ
142102017-01-04 Yao Qi <yao.qi@linaro.org>
14211
14212 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14213 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14214
61baf725
JB
142152017-01-01 Joel Brobecker <brobecker@adacore.com>
14216
6dbb839a 14217 Update copyright year range in all GDB files.
61baf725 14218
c113e7ff 142192017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14220
c113e7ff 14221 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14222
c113e7ff 14223For older changes see ChangeLog-2016.
c906108c
SS
14224\f
14225Local Variables:
14226mode: change-log
14227left-margin: 8
14228fill-column: 74
14229version-control: never
57da7796 14230coding: utf-8
c906108c 14231End:
This page took 2.582989 seconds and 4 git commands to generate.