PR22374 testcase, function pointer references in .data
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * cli/cli-script.c (execute_control_command): Rename to ...
4 (execute_control_command_1): ... this.
5 (execute_control_command): New function.
6
7 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
8
9 * tracepoint.c (tfind_command): Remove const_cast.
10
11 2017-10-30 Mike Gulick <mgulick@mathworks.com>
12
13 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
14
15 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
16
17 * common/common-utils.h (in_inclusive_range): New function.
18 * arm-tdep.c (arm_record_extension_space): Use
19 in_inclusive_range.
20 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
21 * cris-tdep.c (cris_spec_reg_applicable): Use
22 in_inclusive_range.
23
24 2017-10-30 Pedro Alves <palves@redhat.com>
25 Simon Marchi <simon.marchi@ericsson.com>
26
27 * remote.c (remote_set_syscall_catchpoint): Build a std::string
28 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
29
30 2017-10-30 Pedro Alves <palves@redhat.com>
31
32 * common/common-utils.c (string_appendf, string_vappendf): New
33 functions.
34 * common/common-utils.h (string_appendf, string_vappendf): New
35 declarations.
36 * unittests/common-utils-selftests.c (string_appendf_func)
37 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
38 (string_vappendf_tests): New functions.
39 (_initialize_common_utils_selftests): Register "string_appendf" and
40 "string_vappendf tests".
41
42 2017-10-30 Pedro Alves <palves@redhat.com>
43
44 * unittests/common-utils-selftests.c (format_func): New typedef.
45 (string_printf_tests, string_vprintf_tests): Tests factored out
46 and merged to ...
47 (test_format_func): ... this new function.
48 (string_printf_tests, string_vprintf_tests): Reimplement on top of
49 test_format_func.
50
51 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
52
53 * darwin-nat.c: Remove include of gdb.h.
54
55 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
56
57 * xtensa-xtregs.c: Fix formatting issues.
58
59 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
60
61 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
62
63 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
64
65 PR python/21213
66 * python/py-infthread.c (thpy_get_inferior): Increment reference
67 of inferior before returning it.
68
69 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
70
71 * unittests/common-utils-selftests.c (format): Add
72 ATTRIBUTE_PRINTF.
73
74 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
75
76 * xml-syscall.c (struct syscall_desc): Add constructor.
77 <name>: Change type to std::string.
78 (syscall_desc_up): New typedef.
79 (syscall_desc_p): Remove typeder.
80 (DEF_VEC_P(syscall_desc_p)): Remove.
81 (struct syscall_group_desc): Add constructor.
82 <name>: Change type to std::string.
83 <syscalls>: Change type to std::vector.
84 (syscall_group_desc_up): New typedef.
85 (syscall_group_desc_p): Remove typedef.
86 (DEF_VEC_P(syscall_group_desc_p)): Remove.
87 (struct syscalls_info) <syscalls>: Change type to std::vector of
88 unique_ptr.
89 <groups>: Likewise.
90 <my_gdb_datadir>: Change type to std::string.
91 (syscalls_info_up): New typedef.
92 (allocate_syscalls_info): Remove.
93 (syscalls_info_free_syscalls_desc): Remove.
94 (syscalls_info_free_syscall_group_desc): Remove.
95 (free_syscalls_info): Remove.
96 (make_cleanup_free_syscalls_info): Remove.
97 (syscall_group_create_syscall_group_desc): Adjust.
98 (syscall_group_add_syscall): Adjust.
99 (syscall_create_syscall_desc): Adjust.
100 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
101 (init_syscalls_info): Adjust.
102 (syscall_group_get_group_by_name): Adjust.
103 (xml_get_syscall_number): Adjust.
104 (xml_get_syscall_name): Adjust.
105 (xml_list_of_syscalls): Adjust.
106 (xml_list_syscalls_by_group): Adjust.
107 (xml_list_of_groups): Adjust.
108
109 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
110
111 * probe.h: Don't include gdb_vecs.h.
112 (DEF_VEC_P (probe_p)): Remove.
113 (find_probes_in_objfile): Return an std::vector.
114 * probe.c (find_probes_in_objfile): Likewise.
115 * breakpoint.c (breakpoint_objfile_data)
116 <longjmp_probes>: Change type to std::vector.
117 <exception_probes>: Likewise.
118 (free_breakpoint_probes): Don't manually free vectors.
119 (create_longjmp_master_breakpoint): Adjust.
120 (create_exception_master_breakpoint): Adjust.
121 * solib-svr4.c (svr4_create_probe_breakpoints): Change
122 parameter type, adjust.
123 (svr4_create_solib_event_breakpoints): Adjust.
124
125 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
126
127 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
128 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
129 with new.
130 (free_breakpoint_probes): Rename to ...
131 (free_breakpoint_objfile_data): ... this, and call delete on
132 bp_objfile_data..
133
134 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
137 (loaded_script_ptr): Remove typedef.
138 (DEF_VEC_P (loaded_script_ptr)): Remove.
139 (struct collect_matching_scripts_data): Add constructor.
140 <scripts_p>: Change type to (pointer to) std::vector.
141 (collect_matching_scripts_data): Adjust.
142 (sort_scripts_by_name): Make suitable for std::sort.
143 (print_scripts): Don't sort vector, adjust to std::vector.
144 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
145
146 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
147
148 * symfile.c (filename_language): Make struct, not typedef. Add
149 constructor.
150 <ext>: Change type to std::string.
151 (DEF_VEC_O (filename_language)): Remove.
152 (filename_language_table): Change type to std::vector.
153 (add_filename_language): Adjust.
154 (set_ext_lang_command): Adjust.
155 (info_ext_lang_command): Adjust.
156 (deduce_language_from_filename): Adjust.
157 (class scoped_restore_filename_language_table): Remove.
158 (test_filename_language): Use scoped_restore.
159 (test_set_ext_lang_command): Use scoped_restore, adjust to
160 std::vector change.
161
162 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
163
164 * symfile.c: Include selftest.h.
165 (class scoped_restore_filename_language_table): New.
166 (test_filename_language): New test.
167 (test_set_ext_lang_command): New test.
168 (_initialize_symfile): Register tests.
169
170 2017-10-27 Keith Seitz <keiths@redhat.com>
171
172 * breakpoint.c (print_breakpoint_location): Use the symbol saved
173 in the bp_location, falling back to find_pc_sect_function when
174 needed.
175 (add_location_to_breakpoint): Save sal->symbol.
176 * breakpoint.h (struct bp_location) <symbol>: New field.
177 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
178 * symtab.h (struct symtab_and_line) <symbol>: New field.
179
180 2017-10-26 Patrick Frants <osscontribute@gmail.com>
181
182 PR gdb/13669
183 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
184 to rewind obstack.
185
186 2017-10-26 Pedro Alves <palves@redhat.com>
187
188 * remote.c (remote_async_terminal_ours_p): Delete.
189 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
190 Remove references to 'remote_async_terminal_ours_p'.
191
192 2017-10-26 Yao Qi <yao.qi@linaro.org>
193
194 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
195
196 2017-10-26 Yao Qi <yao.qi@linaro.org>
197
198 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
199 aspace const.
200 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
201 Likewise.
202 * breakpoint.c (bpstat_check_location): Remove cast.
203 (breakpoint_hit_catch_fork): Make aspce const.
204 (breakpoint_hit_catch_solib): Likewise.
205 (breakpoint_hit_catch_exec): Likewise.
206 (breakpoint_hit_ranged_breakpoint): Likewise.
207 (breakpoint_hit_watchpoint): Likewise.
208 (base_breakpoint_breakpoint_hit): Likewise.
209 (bkpt_breakpoint_hit): Likewise.
210 (dprintf_breakpoint_hit): Likewise.
211 (tracepoint_breakpoint_hit): Likewise.
212 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
213
214 2017-10-26 Yao Qi <yao.qi@linaro.org>
215
216 * breakpoint.c (breakpoint_location_address_match): Change
217 "struct address_space *" to "const address_space".
218 (breakpoint_location_address_range_overlap): Likewise.
219 (breakpoint_here_p): Likewise.
220 (breakpoint_in_range_p): Likewise.
221 (moribund_breakpoint_here_p): Likewise.
222 (bp_location_inserted_here_p): Likewise.
223 (software_breakpoint_inserted_here_p): Likewise.
224 (hardware_breakpoint_inserted_here_p): Likewise.
225 (hardware_watchpoint_inserted_in_range): Likewise.
226 (bpstat_check_location): Likewise.
227 (bpstat_stop_status): Likewise.
228 (breakpoint_address_match): Likewise.
229 (breakpoint_address_match_range): Likewise.
230 (breakpoint_location_address_match): Likewise.
231 (breakpoint_location_address_range_overlap): Likewise.
232 (insert_single_step_breakpoint): Likewise.
233 (breakpoint_has_location_inserted_here): Likewise.
234 (single_step_breakpoint_inserted_here_p): Likewise.
235 (pc_at_non_inline_function): Likewise.
236 * breakpoint.h (bpstat_stop_status): Update declaration.
237 (breakpoint_here_p): Likewise.
238 (breakpoint_in_range_p): Likewise.
239 (moribund_breakpoint_here_p): Likewise.
240 (breakpoint_inserted_here_p): Likewise.
241 (software_breakpoint_inserted_here_p): Likewise.
242 (hardware_breakpoint_inserted_here_p): Likewise.
243 (breakpoint_has_location_inserted_here): Likewise.
244 (single_step_breakpoint_inserted_here_p): Likewise.
245 (hardware_watchpoint_inserted_in_range): Likewise.
246 (breakpoint_address_match): Likewise.
247 (insert_single_step_breakpoint): Likewise.
248 (pc_at_non_inline_function): Likewise.
249 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
250 * record.c (record_check_stopped_by_breakpoint): Likewise.
251 * record.h (record_check_stopped_by_breakpoint): Likewise.
252 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
253
254 2017-10-25 Yao Qi <yao.qi@linaro.org>
255
256 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
257 regcache->arch () instead get_regcache_arch.
258 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
259 Likewise.
260 (aarch64_fbsd_store_inferior_registers): Likewise.
261 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
262 (store_gregs_to_thread): Likewise.
263 (fetch_fpregs_from_thread): Likewise.
264 (store_fpregs_to_thread): Likewise.
265 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
266 (aarch64_store_return_value): Likewise.
267 (aarch64_software_single_step): Likewise.
268 * aix-thread.c (aix_thread_wait): Likewise.
269 (supply_reg32): Likewise.
270 (supply_sprs64): Likewise.
271 (supply_sprs32): Likewise.
272 (fill_gprs64): Likewise.
273 (fill_gprs32): Likewise.
274 (fill_sprs64): Likewise.
275 (fill_sprs32): Likewise.
276 (store_regs_user_thread): Likewise.
277 (store_regs_kernel_thread): Likewise.
278 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
279 (alphabsd_store_inferior_registers): Likewise.
280 * alpha-tdep.c (alpha_extract_return_value): Likewise.
281 (alpha_store_return_value): Likewise.
282 (alpha_deal_with_atomic_sequence): Likewise.
283 (alpha_next_pc): Likewise.
284 (alpha_software_single_step): Likewise.
285 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
286 (amd64bsd_store_inferior_registers): Likewise.
287 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
288 Likewise.
289 (amd64_linux_store_inferior_registers): Likewise.
290 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
291 (amd64_collect_native_gregset): Likewise.
292 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
293 (amd64obsd_collect_uthread): Likewise.
294 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
295 (amd64_collect_fpregset): Likewise.
296 (amd64_supply_fxsave): Likewise.
297 (amd64_supply_xsave): Likewise.
298 (amd64_collect_fxsave): Likewise.
299 (amd64_collect_xsave): Likewise.
300 * arc-tdep.c (arc_write_pc): Likewise.
301 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
302 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
303 (arm_fbsd_store_inferior_registers): Likewise.
304 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
305 (store_vfp_regs): Likewise.
306 (arm_linux_fetch_inferior_registers): Likewise.
307 (arm_linux_store_inferior_registers): Likewise.
308 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
309 (arm_linux_sigreturn_next_pc): Likewise.
310 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
311 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
312 (fetch_register): Likewise.
313 (store_register): Likewise.
314 * arm-tdep.c (arm_is_thumb): Likewise.
315 (displaced_in_arm_mode): Likewise.
316 (bx_write_pc): Likewise.
317 (arm_get_next_pcs_addr_bits_remove): Likewise.
318 (arm_software_single_step): Likewise.
319 (arm_extract_return_value): Likewise.
320 (arm_store_return_value): Likewise.
321 (arm_write_pc): Likewise.
322 * bfin-tdep.c (bfin_extract_return_value): Likewise.
323 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
324 (bsd_uthread_store_registers): Likewise.
325 * core-regset.c (fetch_core_registers): Likewise.
326 * corelow.c (get_core_registers): Likewise.
327 * cris-tdep.c (cris_store_return_value): Likewise.
328 (cris_extract_return_value): Likewise.
329 (find_step_target): Likewise.
330 (find_step_target): Likewise.
331 (cris_software_single_step): Likewise.
332 * ctf.c (ctf_fetch_registers): Likewise.
333 * darwin-nat.c (cancel_breakpoint): Likewise.
334 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
335 * frv-tdep.c (frv_extract_return_value): Likewise.
336 * ft32-tdep.c (ft32_store_return_value): Likewise.
337 (ft32_extract_return_value): Likewise.
338 * go32-nat.c (fetch_register): Likewise.
339 (go32_fetch_registers): Likewise.
340 (go32_store_registers): Likewise.
341 (store_register): Likewise.
342 * h8300-tdep.c (h8300_extract_return_value): Likewise.
343 (h8300_store_return_value): Likewise.
344 * hppa-linux-nat.c (fetch_register): Likewise.
345 (store_register): Likewise.
346 (hppa_linux_fetch_inferior_registers): Likewise.
347 (hppa_linux_store_inferior_registers): Likewise.
348 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
349 (i386_darwin_store_inferior_registers): Likewise.
350 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
351 (gnu_store_registers): Likewise.
352 * i386-linux-nat.c (fetch_register): Likewise.
353 (store_register): Likewise.
354 (supply_gregset): Likewise.
355 (fill_gregset): Likewise.
356 (i386_linux_fetch_inferior_registers): Likewise.
357 (i386_linux_store_inferior_registers): Likewise.
358 (i386_linux_resume): Likewise.
359 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
360 Likewise.
361 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
362 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
363 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
364 (i386obsd_collect_uthread): Likewise.
365 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
366 (i386_supply_gregset): Likewise.
367 (i386_collect_gregset): Likewise.
368 (i386_supply_fpregset): Likewise.
369 (i386_collect_fpregset): Likewise.
370 (i386_mpx_bd_base): Likewise.
371 * i386-v4-nat.c (supply_fpregset): Likewise.
372 (fill_fpregset): Likewise.
373 * i387-tdep.c (i387_supply_fsave): Likewise.
374 (i387_collect_fsave): Likewise.
375 (i387_supply_fxsave): Likewise.
376 (i387_collect_fxsave): Likewise.
377 (i387_supply_xsave): Likewise.
378 (i387_collect_xsave): Likewise.
379 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
380 (ia64_linux_store_registers): Likewise.
381 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
382 (ia64_extract_return_value): Likewise.
383 (ia64_store_return_value): Likewise.
384 (find_func_descr): Likewise.
385 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
386 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
387 (inf_ptrace_store_registers): Likewise.
388 * infrun.c (use_displaced_stepping): Likewise.
389 (displaced_step_prepare_throw): Likewise.
390 (resume): Likewise.
391 (proceed): Likewise.
392 (do_target_wait): Likewise.
393 (adjust_pc_after_break): Likewise.
394 (handle_inferior_event_1): Likewise.
395 (handle_signal_stop): Likewise.
396 (save_infcall_suspend_state): Likewise.
397 (restore_infcall_suspend_state): Likewise.
398 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
399 * jit.c (jit_frame_prev_register): Likewise.
400 * linux-nat.c (save_stop_reason): Likewise.
401 (linux_nat_wait_1): Likewise.
402 (resume_stopped_resumed_lwps): Likewise.
403 * linux-record.c (record_linux_sockaddr): Likewise.
404 (record_linux_msghdr): Likewise.
405 (record_linux_system_call): Likewise.
406 * linux-tdep.c (linux_collect_thread_registers): Likewise.
407 * lm32-tdep.c (lm32_extract_return_value): Likewise.
408 (lm32_store_return_value): Likewise.
409 * m32c-tdep.c (m32c_read_flg): Likewise.
410 (m32c_pseudo_register_read): Likewise.
411 (m32c_pseudo_register_write): Likewise.
412 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
413 (m32r_linux_collect_gregset): Likewise.
414 * m32r-tdep.c (m32r_store_return_value): Likewise.
415 (m32r_extract_return_value): Likewise.
416 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
417 (m68kbsd_collect_fpregset): Likewise.
418 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
419 * m68k-linux-nat.c (fetch_register): Likewise.
420 (old_fetch_inferior_registers): Likewise.
421 (old_store_inferior_registers): Likewise.
422 (store_regs): Likewise.
423 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
424 (m68k_svr4_store_return_value): Likewise.
425 * m88k-tdep.c (m88k_store_arguments): Likewise.
426 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
427 (mi_cmd_data_write_register_values): Likewise.
428 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
429 (mips_fbsd_store_inferior_registers): Likewise.
430 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
431 (mips_fbsd_supply_gregs): Likewise.
432 (mips_fbsd_collect_fpregs): Likewise.
433 (mips_fbsd_collect_gregs): Likewise.
434 (mips_fbsd_supply_fpregset): Likewise.
435 (mips_fbsd_collect_fpregset): Likewise.
436 (mips_fbsd_supply_gregset): Likewise.
437 (mips_fbsd_collect_gregset): Likewise.
438 * mips-linux-nat.c (supply_gregset): Likewise.
439 (fill_gregset): Likewise.
440 (supply_fpregset): Likewise.
441 (fill_fpregset): Likewise.
442 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
443 (mips_fill_gregset): Likewise.
444 (mips_supply_fpregset): Likewise.
445 (mips_fill_fpregset): Likewise.
446 (mips64_supply_gregset): Likewise.
447 (micromips_linux_sigframe_validate): Likewise.
448 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
449 (mipsnbsd_fetch_inferior_registers): Likewise.
450 (mipsnbsd_store_inferior_registers): Likewise.
451 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
452 (mipsnbsd_supply_gregset): Likewise.
453 (mipsnbsd_iterate_over_regset_sections): Likewise.
454 (mipsnbsd_supply_reg): Likewise.
455 (mipsnbsd_supply_fpreg): Likewise.
456 * mips-tdep.c (mips_in_frame_stub): Likewise.
457 (mips_dummy_id): Likewise.
458 (is_octeon_bbit_op): Likewise.
459 (micromips_bc1_pc): Likewise.
460 (extended_mips16_next_pc): Likewise.
461 (mips16_next_pc): Likewise.
462 (deal_with_atomic_sequence): Likewise.
463 * moxie-tdep.c (moxie_process_readu): Likewise.
464 * nios2-tdep.c (nios2_get_next_pc): Likewise.
465 * nto-procfs.c (procfs_store_registers): Likewise.
466 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
467 (ppcfbsd_store_inferior_registers): Likewise.
468 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
469 (fetch_altivec_register): Likewise.
470 (get_spe_registers): Likewise.
471 (fetch_spe_register): Likewise.
472 (fetch_altivec_registers): Likewise.
473 (fetch_all_gp_regs): Likewise.
474 (fetch_all_fp_regs): Likewise.
475 (store_vsx_register): Likewise.
476 (store_altivec_register): Likewise.
477 (set_spe_registers): Likewise.
478 (store_spe_register): Likewise.
479 (store_altivec_registers): Likewise.
480 (store_all_gp_regs): Likewise.
481 (store_all_fp_regs): Likewise.
482 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
483 (ppc_linux_collect_gregset): Likewise.
484 (ppc_canonicalize_syscall): Likewise.
485 (ppc_linux_record_signal): Likewise.
486 (ppu2spu_prev_register): Likewise.
487 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
488 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
489 (ppcobsd_store_registers): Likewise.
490 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
491 Likewise.
492 (ppc_ravenscar_generic_store_registers): Likewise.
493 * procfs.c (procfs_fetch_registers): Likewise.
494 (procfs_store_registers): Likewise.
495 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
496 (ravenscar_store_registers): Likewise.
497 (ravenscar_prepare_to_store): Likewise.
498 * record-btrace.c (record_btrace_fetch_registers): Likewise.
499 * record-full.c (record_full_wait_1): Likewise.
500 (record_full_registers_change): Likewise.
501 (record_full_store_registers): Likewise.
502 (record_full_core_fetch_registers): Likewise.
503 (record_full_save): Likewise.
504 (record_full_goto_insn): Likewise.
505 * regcache.c (regcache_register_size): Likewise.
506 (get_regcache_arch): Remove.
507 (regcache_read_pc): Likewise.
508 * regcache.h (get_regcache_arch): Remove.
509 * remote-sim.c (gdbsim_fetch_register): Likewise.
510 (gdbsim_store_register): Likewise.
511 * remote.c (fetch_register_using_p): Likewise.
512 (send_g_packet): Likewise.
513 (remote_prepare_to_store): Likewise.
514 (store_registers_using_G): Likewise.
515 * reverse.c (save_bookmark_command): Likewise.
516 (goto_bookmark_command): Likewise.
517 * rs6000-aix-tdep.c (branch_dest): Likewise.
518 * rs6000-nat.c (rs6000_ptrace64): Likewise.
519 (fetch_register): Likewise.
520 * rs6000-tdep.c (ppc_supply_reg): Likewise.
521 (ppc_collect_reg): Likewise.
522 (ppc_collect_gregset): Likewise.
523 (ppc_collect_fpregset): Likewise.
524 (ppc_collect_vsxregset): Likewise.
525 (ppc_collect_vrregset): Likewise.
526 (ppc_displaced_step_hw_singlestep): Likewise.
527 (rs6000_pseudo_register_read): Likewise.
528 (rs6000_pseudo_register_write): Likewise.
529 * s390-linux-nat.c (supply_gregset): Likewise.
530 (fill_gregset): Likewise.
531 (s390_linux_fetch_inferior_registers): Likewise.
532 * s390-linux-tdep.c (s390_write_pc): Likewise.
533 (s390_software_single_step): Likewise.
534 (s390_all_but_pc_registers_record): Likewise.
535 (s390_linux_syscall_record): Likewise.
536 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
537 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
538 (shnbsd_store_inferior_registers): Likewise.
539 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
540 (sh_extract_return_value_fpu): Likewise.
541 (sh_store_return_value_nofpu): Likewise.
542 (sh_corefile_supply_regset): Likewise.
543 (sh_corefile_collect_regset): Likewise.
544 * sh64-tdep.c (sh64_extract_return_value): Likewise.
545 (sh64_store_return_value): Likewise.
546 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
547 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
548 (sparc_store_inferior_registers): Likewise.
549 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
550 (sparc_ravenscar_prepare_to_store): Likewise.
551 * sparc-tdep.c (sparc32_store_arguments): Likewise.
552 (sparc_analyze_control_transfer): Likewise.
553 (sparc_step_trap): Likewise.
554 (sparc_software_single_step): Likewise.
555 (sparc32_gdbarch_init): Likewise.
556 (sparc_supply_rwindow): Likewise.
557 (sparc_collect_rwindow): Likewise.
558 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
559 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
560 (sparc64nbsd_collect_gregset): Likewise.
561 (sparc64nbsd_supply_fpregset): Likewise.
562 (sparc64nbsd_collect_fpregset): Likewise.
563 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
564 (sparc64_supply_gregset): Likewise.
565 (sparc64_collect_gregset): Likewise.
566 (sparc64_supply_fpregset): Likewise.
567 (sparc64_collect_fpregset): Likewise.
568 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
569 * spu-tdep.c (spu_unwind_sp): Likewise.
570 (spu2ppu_prev_register): Likewise.
571 (spu_memory_remove_breakpoint): Likewise.
572 * stack.c (return_command): Likewise.
573 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
574 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
575 * tracefile.c (trace_save_ctf): Likewise.
576 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
577 (do_windows_store_inferior_registers): Likewise.
578 (windows_resume): Likewise.
579 * xtensa-linux-nat.c (fill_gregset): Likewise.
580 (supply_gregset_reg): Likewise.
581 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
582 (xtensa_register_read_masked): Likewise.
583 (xtensa_supply_gregset): Likewise.
584 (xtensa_extract_return_value): Likewise.
585 (xtensa_store_return_value): Likewise.
586
587 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
588
589 * doublest.c (floatformat_from_string): New function.
590 * doublest.h (floatformat_from_string): Add prototype.
591
592 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
593 (OP_FLOAT): ... this.
594 * expression.h: Do not include "doublest.h".
595 (union exp_element): Replace doubleconst and decfloatconst by
596 new element floatconst.
597 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
598 (ada_evaluate_subexp): Likewise.
599 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
600 OP_DOUBLE and OP_DECFLOAT.
601 * expprint.c (print_subexp_standard): Likewise.
602 (dump_subexp_body_standard): Likewise.
603 * breakpoint.c (watchpoint_exp_is_const): Likewise.
604
605 * parse.c: Include "dfp.h".
606 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
607 (write_exp_elt_floatcst): New function.
608 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
609 and OP_DECFLOAT.
610 (operator_check_standard): Likewise.
611 (parse_float): Do not accept suffix. Take type as input. Return bool.
612 Return target format buffer instead of host DOUBLEST.
613 Use floatformat_from_string and decimal_from_string to parse
614 either binary or decimal floating-point types.
615 (parse_c_float): Remove.
616 * parser-defs.h: Do not include "doublest.h".
617 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
618 (write_exp_elt_floatcst): Add prototype.
619 (parse_float): Update prototype.
620 (parse_c_float): Remove.
621
622 * c-exp.y: Do not include "dfp.h".
623 (typed_val_float): Use byte buffer instead of DOUBLEST.
624 (typed_val_decfloat): Remove.
625 (DECFLOAT): Remove.
626 (FLOAT): 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 Handle decimal and binary FP types the same way.
630
631 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
632 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
633 (parse_number): Update to new parse_float interface.
634 Parse suffixes and determine type before calling parse_float.
635
636 * f-exp.y: Replace dval by typed_val_float.
637 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
638 (parse_number): Use parse_float instead of atof.
639
640 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
641 (parse_go_float): Remove.
642 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
643 (parse_number): Call parse_float instead of parse_go_float.
644 Parse suffixes and determine type before calling parse_float.
645
646 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
647 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
648 (parse_number): Update to new parse_float interface.
649 Parse suffixes and determine type before calling parse_float.
650
651 * m2-exp.y: Replace dval by byte buffer val.
652 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
653 (parse_number): Call parse_float instead of atof.
654
655 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
656 (lex_number): Call parse_float instead of strtod.
657 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
658 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
659 Use write_exp_elt_floatcst.
660 (unit_testing): Remove static variable.
661 (rust_type): Do not check unit_testing.
662 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
663
664 * ada-exp.y (type_float, type_double): Remove.
665 (typed_val_float): Use byte buffer instead of DOUBLEST.
666 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
667 * ada-lex.l (processReal): Use parse_float instead of sscanf.
668
669 2017-10-25 Alan Hayward <alan.hayward@arm.com>
670
671 * aarch64-tdep.h (enum aarch64_regnum): Remove.
672 * arch/aarch64.h: New file.
673
674 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
675
676 * dfp.h (decimal_from_string): Use const reference for argument.
677 * dfp.c (decimal_from_string): Likewise.
678
679 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
680
681 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
682 * sh64-tdep.c (sh64_do_fp_register): Likewise.
683 * mips-tdep.c (mips_print_fp_register): Likewise.
684
685 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
686
687 * common/format.h (enum argclass): Replace decfloat_arg by
688 dec32float_arg, dec64float_arg, and dec128float_arg.
689 * common/format.c (parse_format_string): Update to return
690 new decimal float argument classes.
691
692 * printcmd.c (printf_decfloat): Rename to ...
693 (printf_floating): ... this. Add argclass argument, and use it
694 instead of parsing the format string again. Add support for
695 binary floating-point values, using floatformat_to_string.
696 Convert value to the target format if it doesn't already match.
697 (ui_printf): Call printf_floating instead of printf_decfloat,
698 also for double_arg / long_double_arg. Pass argclass.
699
700 * dfp.c (decimal_to_string): Add format string argument.
701 * dfp.h (decimal_to_string): Likewise.
702
703 * doublest.c (floatformat_to_string): Add format string argument.
704 * doublest.h (floatformat_to_string): Likewise.
705
706 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
707
708 * doublest.c (floatformat_precision): New routine.
709 (floatformat_to_string): Likewise.
710 * doublest.c (floatformat_to_string): Add prototype.
711
712 * printcmd.c (print_scalar_formatted): Only call print_floating
713 on floating-point types.
714 * valprint.c: Do not include "floatformat.h".
715 (generic_val_print_decfloat): Remove.
716 (generic_val_print): Call generic_val_print_float for both
717 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
718 (print_floating): Use floatformat_to_string. Handle decimal float.
719 (print_decimal_floating): Remove, merge into floatformat_to_string.
720 * value.h (print_decimal_floating): Remove.
721
722 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
723
724 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
725
726 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
727
728 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
729
730 * memattr.h: Don't include vec.h.
731 (struct mem_attrib): Initialize fields.
732 <unknown>: New static method.
733 (struct mem_region): Add constructors, operator<, initialize
734 fields.
735 * memattr.c: Include algorithm.
736 (default_mem_attrib, unknown_mem_attrib): Remove.
737 (user_mem_region_list): New global.
738 (target_mem_region_list, mem_region_list): Change type to
739 std::vector<mem_region>.
740 (mem_use_target): Now a function.
741 (target_mem_regions_valid): Change type to bool.
742 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
743 (require_user_regions): Adjust.
744 (require_target_regions): Adjust.
745 (create_mem_region): Adjust.
746 (lookup_mem_region): Adjust.
747 (invalidate_target_mem_regions): Adjust.
748 (mem_clear): Rename to...
749 (user_mem_clear): ... this, and adjust.
750 (mem_command): Adjust.
751 (info_mem_command): Adjust.
752 (mem_enable, enable_mem_command, mem_disable,
753 disable_mem_command): Adjust.
754 (mem_delete): Adjust.
755 (delete_mem_command): Adjust.
756 * memory-map.h (parse_memory_map): Return an std::vector.
757 * memory-map.c (parse_memory_map): Likewise.
758 (struct memory_map_parsing_data): Add constructor.
759 <memory_map>: Point to std::vector.
760 (memory_map_start_memory): Adjust.
761 (memory_map_end_memory): Adjust.
762 (memory_map_end_property): Adjust.
763 (clear_result): Remove.
764 * remote.c (remote_memory_map): Return an std::vector.
765 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
766 Remove.
767 (target_debug_print_mem_region_vector): New.
768 * target-delegates.c: Regenerate.
769 * target.h (mem_region_vector): New typedef.
770 (to_memory_map): Return mem_region_vector.
771 (target_memory_map): Return an std::vector.
772 * target.c (target_memory_map): Return an std::vector.
773 (flash_erase_command): Adjust.
774
775 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
776
777 * memory-map.c (struct memory_map_parsing_data) <property_name>:
778 Change type to std::string.
779 (memory_map_start_property): Adjust.
780 (memory_map_end_property): Adjust.
781
782 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
783
784 * infrun.h: Include common/byte-vector.h.
785 (struct displaced_step_closure): New struct.
786 (struct buf_displaced_step_closure): New struct.
787 * infrun.c (displaced_step_closure::~displaced_step_closure):
788 Provide default implementation.
789 (displaced_step_clear): Deallocate step closure with delete.
790 * aarch64-tdep.c (displaced_step_closure): Rename to ...
791 (aarch64_displaced_step_closure): ... this, extend
792 displaced_step_closure.
793 (aarch64_displaced_step_data) <dsc>: Change type to
794 aarch64_displaced_step_closure.
795 (aarch64_displaced_step_copy_insn): Adjust to type change, use
796 unique_ptr.
797 (aarch64_displaced_step_fixup): Add cast for displaced step
798 closure.
799 * amd64-tdep.c (displaced_step_closure): Rename to ...
800 (amd64_displaced_step_closure): ... this, extend
801 displaced_step_closure.
802 <insn_buf>: Change type to std::vector<gdb_byte>.
803 <max_len>: Remove.
804 (fixup_riprel): Change type of DSC parameter, adjust to type
805 change of insn_buf.
806 (fixup_displaced_copy): Change type of DSC parameter.
807 (amd64_displaced_step_copy_insn): Instantiate
808 amd64_displaced_step_closure.
809 (amd64_displaced_step_fixup): Add cast for closure type, adjust
810 to type change of insn_buf.
811 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
812 parameter DSC.
813 (arm_linux_copy_svc): Likewise.
814 (cleanup_kernel_helper_return): Likewise.
815 (arm_catch_kernel_helper_return): Likewise.
816 (arm_linux_displaced_step_copy_insn): Instantiate
817 arm_displaced_step_closure.
818 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
819 (displaced_read_reg): Change type of parameter DSC.
820 (branch_write_pc): Likewise.
821 (load_write_pc): Likewise.
822 (alu_write_pc): Likewise.
823 (displaced_write_reg): Likewise.
824 (arm_copy_unmodified): Likewise.
825 (thumb_copy_unmodified_32bit): Likewise.
826 (thumb_copy_unmodified_16bit): Likewise.
827 (cleanup_preload): Likewise.
828 (install_preload): Likewise.
829 (arm_copy_preload): Likewise.
830 (thumb2_copy_preload): Likewise.
831 (install_preload_reg): Likewise.
832 (arm_copy_preload_reg): Likewise.
833 (cleanup_copro_load_store): Likewise.
834 (install_copro_load_store): Likewise.
835 (arm_copy_copro_load_store) Likewise.
836 (thumb2_copy_copro_load_store): Likewise.
837 (cleanup_branch): Likewise.
838 (install_b_bl_blx): Likewise.
839 (arm_copy_b_bl_blx): Likewise.
840 (thumb2_copy_b_bl_blx): Likewise.
841 (thumb_copy_b): Likewise.
842 (install_bx_blx_reg): Likewise.
843 (arm_copy_bx_blx_reg): Likewise.
844 (thumb_copy_bx_blx_reg): Likewise.
845 (cleanup_alu_imm): Likewise.
846 (arm_copy_alu_imm): Likewise.
847 (thumb2_copy_alu_imm): Likewise.
848 (cleanup_alu_reg): Likewise.
849 (install_alu_reg): Likewise.
850 (arm_copy_alu_reg): Likewise.
851 (thumb_copy_alu_reg): Likewise.
852 (cleanup_alu_shifted_reg): Likewise.
853 (install_alu_shifted_reg): Likewise.
854 (arm_copy_alu_shifted_reg): Likewise.
855 (cleanup_load): Likewise.
856 (cleanup_store): Likewise.
857 (arm_copy_extra_ld_st): Likewise.
858 (install_load_store): Likewise.
859 (thumb2_copy_load_literal): Likewise.
860 (thumb2_copy_load_reg_imm): Likewise.
861 (arm_copy_ldr_str_ldrb_strb): Likewise.
862 (cleanup_block_load_all): Likewise.
863 (cleanup_block_store_pc): Likewise.
864 (cleanup_block_load_pc): Likewise.
865 (arm_copy_block_xfer): Likewise.
866 (thumb2_copy_block_xfer): Likewise.
867 (cleanup_svc): Likewise.
868 (install_svc): Likewise.
869 (arm_copy_svc): Likewise.
870 (thumb_copy_svc): Likewise.
871 (arm_copy_undef): Likewise.
872 (thumb_32bit_copy_undef): Likewise.
873 (arm_copy_unpred): Likewise.
874 (arm_decode_misc_memhint_neon): Likewise.
875 (arm_decode_unconditional): Likewise.
876 (arm_decode_miscellaneous): Likewise.
877 (arm_decode_dp_misc): Likewise.
878 (arm_decode_ld_st_word_ubyte): Likewise.
879 (arm_decode_media): Likewise.
880 (arm_decode_b_bl_ldmstm): Likewise.
881 (arm_decode_ext_reg_ld_st): Likewise.
882 (thumb2_decode_dp_shift_reg): Likewise.
883 (thumb2_decode_ext_reg_ld_st): Likewise.
884 (arm_decode_svc_copro): Likewise.
885 (thumb2_decode_svc_copro): Likewise.
886 (install_pc_relative): Likewise.
887 (thumb_copy_pc_relative_16bit): Likewise.
888 (thumb_decode_pc_relative_16bit): Likewise.
889 (thumb_copy_pc_relative_32bit): Likewise.
890 (thumb_copy_16bit_ldr_literal): Likewise.
891 (thumb_copy_cbnz_cbz): Likewise.
892 (thumb2_copy_table_branch): Likewise.
893 (cleanup_pop_pc_16bit_all): Likewise.
894 (thumb_copy_pop_pc_16bit): Likewise.
895 (thumb_process_displaced_16bit_insn): Likewise.
896 (decode_thumb_32bit_ld_mem_hints): Likewise.
897 (thumb_process_displaced_32bit_insn): Likewise.
898 (thumb_process_displaced_insn): Likewise.
899 (arm_process_displaced_insn): Likewise.
900 (arm_displaced_init_closure): Likewise.
901 (arm_displaced_step_fixup): Add cast for closure.
902 * arm-tdep.h: Include infrun.h.
903 (displaced_step_closure): Rename to ...
904 (arm_displaced_step_closure): ... this, extend
905 displaced_step_closure.
906 <u::svc::copy_svc_os>: Change type of parameter DSC.
907 <cleanup>: Likewise.
908 (arm_process_displaced_insn): Likewise.
909 (arm_displaced_init_closure): Likewise.
910 (displaced_read_reg): Likewise.
911 (displaced_write_reg): Likewise.
912 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
913 Adjust.
914 * i386-tdep.h: Include infrun.h.
915 (i386_displaced_step_closure): New typedef.
916 * i386-tdep.c (i386_displaced_step_copy_insn): Use
917 i386_displaced_step_closure.
918 (i386_displaced_step_fixup): Adjust.
919 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
920 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
921 and unique_ptr.
922 (ppc_displaced_step_fixup): Adjust.
923 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
924 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
925 and unique_ptr.
926 (s390_displaced_step_fixup): Adjust.
927
928 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
929
930 * interps.h (interp_resume, interp_suspend, interp_set_temp):
931 Remove declarations.
932
933 2017-10-20 Tom Tromey <tom@tromey.com>
934
935 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
936 std::vector.
937 (gdb_bfd_record_inclusion): Update.
938 (bfdp): Remove typedef.
939
940 2017-10-20 Tom Tromey <tom@tromey.com>
941
942 * gdb_bfd.c (gdb_bfd_ref): Use new.
943 (struct gdb_bfd_data): Add constructor, destructor, and member
944 initializers.
945 (gdb_bfd_unref): Use delete.
946
947 2017-10-20 Tom Tromey <tom@tromey.com>
948
949 * exec.c (exec_file_attach): Use new_bfd_ref.
950 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
951 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
952 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
953 new_bfd_ref.
954 * gdb_bfd.h (new_bfd_ref): New function.
955
956 2017-10-20 Pedro Alves <palves@redhat.com>
957
958 * main.c (captured_command_loop): Add attribute noinline.
959
960 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
961
962 * interps.c (struct interp_factory): Add constructor.
963 (interp_factory_p): Remove typedef.
964 (DEF_VEC_P(interp_factory_p)): Remove.
965 (interpreter_factories): Change type to std::vector.
966 (interp_factory_register): Adjust.
967 (interp_lookup): Adjust.
968 (interpreter_completer): Adjust.
969
970 2017-10-19 Tom Tromey <tom@tromey.com>
971
972 * break-catch-syscall.c (catch_syscall_completer): Use
973 std::string, gdb::unique_xmalloc_ptr.
974
975 2017-10-19 Tom Tromey <tom@tromey.com>
976
977 * infcall.c (call_function_by_hand_dummy): Use std::string.
978
979 2017-10-19 Tom Tromey <tom@tromey.com>
980
981 * mi/mi-main.c (mi_cmd_execute): Update.
982 * top.h (prepare_execute_command): Return scoped_value_mark.
983 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
984 Add move constructor.
985 * top.c (prepare_execute_command): Return scoped_value_mark.
986 (execute_command): Update.
987
988 2017-10-19 Pedro Alves <palves@redhat.com>
989
990 * xml-support.c (xml_fetch_content_from_file): Check fread's
991 return.
992
993 2017-10-19 Pedro Alves <palves@redhat.com>
994
995 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
996 async.
997 (handle_error_fd): New function.
998 (ser_base_async): Add/delete an event loop file handler for
999 error_fd.
1000
1001 2017-10-19 Pedro Alves <palves@redhat.com>
1002
1003 * xml-support.c (xml_fetch_content_from_file): Don't read in
1004 chunks. Instead use fseek to determine the file's size, and read
1005 it in one go.
1006
1007 2017-11-18 Keith Seitz <keiths@redhat.com>
1008
1009 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1010 types.
1011 Add whitespace to front of type name.
1012
1013 2017-10-18 Keith Seitz <keiths@redhat.com>
1014
1015 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1016 DW_AT_accessibility.
1017
1018 2017-10-18 Yao Qi <yao.qi@linaro.org>
1019
1020 * features/tic6x-c62x-linux.c: Remove.
1021
1022 2017-10-17 Tom Tromey <tom@tromey.com>
1023
1024 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1025 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1026 (do_mixed_source_and_assembly): Likewise.
1027
1028 2017-10-17 Tom Tromey <tom@tromey.com>
1029
1030 * regcache.c (regcache::xfer_part): Remove assertion.
1031
1032 2017-10-17 Pedro Alves <palves@redhat.com>
1033
1034 * xml-support.c (xml_fetch_content_from_file): Call
1035 unique_ptr::release() instead unique_ptr::get() when passing
1036 through xrealloc.
1037
1038 2017-10-17 Yao Qi <yao.qi@linaro.org>
1039
1040 * regcache.c (regcache::xfer_part): Remove parameters read and
1041 write, add parameter is_raw. All callers are updated.
1042
1043 2017-10-16 Keith Seitz <keiths@redhat.com>
1044
1045 * c-typeprint.c (enum access_specifier): Moved here from
1046 c_type_print_base.
1047 (output_access_specifier): New function.
1048 (c_type_print_base): Consider typedefs when assessing
1049 whether access labels are needed.
1050 Use output_access_specifier as needed.
1051 Output access specifier for typedefs, if needed.
1052 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1053 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1054 fields.
1055 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1056 accessor macros.
1057
1058 2017-10-16 Tom Tromey <tom@tromey.com>
1059
1060 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1061 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1062 * target.c (target_fileio_read_stralloc): Update.
1063 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1064 * target.h (target_fileio_read_stralloc): Return
1065 unique_xmalloc_ptr.
1066
1067 2017-10-16 Tom Tromey <tom@tromey.com>
1068
1069 * xml-syscall.c (xml_init_syscalls_info): Update.
1070 * xml-support.c (xinclude_start_include): Update.
1071 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1072 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1073 (xml_fetch_content_from_file): Likewise.
1074 * osdata.c (get_osdata): Update.
1075 * target.h (target_read_stralloc, target_get_osdata): Return
1076 unique_xmalloc_ptr.
1077 * solib-aix.c (solib_aix_get_library_list): Update.
1078 * solib-target.c (solib_target_current_sos): Update.
1079 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1080 * xml-tdesc.c (fetch_available_features_from_target): Update.
1081 (target_fetch_description_xml): Update.
1082 (file_read_description_xml): Update.
1083 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1084 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1085 (remote_pid_to_exec_file): Update.
1086 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1087 (target_get_osdata): Likewise.
1088
1089 2017-10-16 Tom Tromey <tom@tromey.com>
1090
1091 * remote.c (remote_register_number_and_offset): Use std::vector.
1092 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1093 (putpkt_binary): Use gdb::def_vector.
1094 (compare_sections_command): Use gdb::byte_vector.
1095
1096 2017-10-16 Tom Tromey <tom@tromey.com>
1097
1098 * ppc-linux-nat.c (hwdebug_insert_point): Use
1099 gdb::unique_xmalloc_ptr, XDUP.
1100
1101 2017-10-16 Tom Tromey <tom@tromey.com>
1102
1103 * probe.c (parse_probes): Use std::string.
1104 (info_probes_for_ops, enable_probes_command)
1105 (disable_probes_command): Remove cleanups.
1106
1107 2017-10-16 Tom Tromey <tom@tromey.com>
1108
1109 * buildsym.c (block_compar): Remove.
1110 (end_symtab_get_static_block): Use std::vector.
1111
1112 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1113
1114 * memrange.h (struct mem_range): Define operator< and operator==.
1115 (mem_range_s): Remove.
1116 (DEF_VEC_O (mem_range_s)): Remove.
1117 (normalize_mem_ranges): Change parameter type to std::vector.
1118 * memrange.c (compare_mem_ranges): Remove.
1119 (normalize_mem_ranges): Change parameter type to std::vector,
1120 adjust to vector change.
1121 * exec.c (section_table_available_memory): Return vector, remove
1122 parameter.
1123 (section_table_read_available_memory): Adjust to std::vector
1124 change.
1125 * remote.c (remote_read_bytes): Adjust to std::vector
1126 change.
1127 * tracepoint.h (traceframe_available_memory): Change parameter
1128 type to std::vector.
1129 * tracepoint.c (traceframe_available_memory): Change parameter
1130 type to std::vector, adjust.
1131 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1132 std::vector change.
1133 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1134 unittests/memrange-selftests.c.
1135 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1136 * gdb/unittests/memrange-selftests.c: New file.
1137
1138 2017-10-16 Pedro Alves <palves@redhat.com>
1139
1140 * elfread.c (probe_key_free): Rename range-for variable.
1141 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1142 (find_probe_by_pc, collect_probes): Rename range-for variable.
1143
1144 2017-10-16 Yao Qi <yao.qi@linaro.org>
1145
1146 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1147 * features/tic6x-c62x.c: Remove.
1148 * features/tic6x-c64x-linux.c: Remove.
1149 * features/tic6x-c64x.c: Remove.
1150 * features/tic6x-c64xp-linux.c: Remove.
1151 * features/tic6x-c64xp.c: Remove.
1152 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1153 initialize_tdesc_tic6x_*_linux functions.
1154 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1155 initialize_tdesc_tic6x_* functions.
1156
1157 2017-10-16 Yao Qi <yao.qi@linaro.org>
1158
1159 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1160 tic6x-c62x.
1161 * regformats/tic6x-c62x.dat: Remove.
1162 * regformats/tic6x-c64x.dat: Remove.
1163 * regformats/tic6x-c64xp.dat: Remove.
1164
1165 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1166
1167 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1168 (the !HAVE_LIBEXPAT version).
1169
1170 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1171
1172 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1173 const.
1174
1175 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 * target.h: Include tracepoint.h.
1178 (enum trace_find_type): Move to tracepoint.h.
1179 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1180 * tracepoint.h: Don't include target.h
1181 (enum trace_find_type): Move from target.h.
1182 (parse_traceframe_info): Return a unique ptr.
1183 * tracepoint.c (current_traceframe_info): Change type to unique
1184 ptr.
1185 (free_traceframe_info): Remove.
1186 (clear_traceframe_info): Don't manually free
1187 current_traceframe_info.
1188 (free_result): Remove.
1189 (parse_traceframe_info): Return a unique ptr.
1190 (get_traceframe_info): Adjust to unique ptr.
1191 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1192 * remote.c (remote_traceframe_info): Return a unique ptr.
1193 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1194 ptr.
1195 * target-debug.h (target_debug_print_traceframe_info_up): New
1196 macro.
1197 * target-delegates.c: Regenerate.
1198
1199 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1200
1201 * memrange.h (struct mem_range): Add constructors.
1202 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1203 std::vector<mem_range>.
1204 * tracepoint.c (free_traceframe_info): Don't manually free
1205 vector.
1206 (traceframe_info_start_memory): Adjust to vector change.
1207 (traceframe_available_memory): Likewise.
1208 * tracefile-tfile.c (build_traceframe_info): Likewise.
1209 * ctf.c (ctf_traceframe_info): Likewise.
1210
1211 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1212
1213 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1214 std::vector<int>.
1215 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1216 (traceframe_info_start_tvar): Adjust to vector change.
1217 (parse_traceframe_info): Allocate with new.
1218 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1219 vector change.
1220 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1221 change.
1222 tfile_traceframe_info): Allocate with new.
1223 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1224 change.
1225
1226 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1227
1228 * tracepoint.c (traceframe_info): Rename to...
1229 (current_traceframe_info): ...this.
1230 (clear_traceframe_info): Adjust.
1231 (get_traceframe_info): Adjust.
1232
1233 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1234
1235 * nat/linux-osdata.c: Include algorithm.
1236 (compare_processes): Remove.
1237 (struct pid_pgid_entry): New struct.
1238 (linux_xfer_osdata_processgroups): Use std::vector instead of
1239 XNEWVEC.
1240
1241 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1242
1243 * objfiles.h: Don't include symfile.h.
1244 (struct partial_symbol): Remove forward-declaration.
1245 (struct objfile) <global_psymbols, static_psymbols>: Change type
1246 to std::vector<partial_symbol *>.
1247 * objfiles.c (objfile::objfile): Don't memset those fields.
1248 (objfile::~objfile): Don't free those fields.
1249 * psympriv.h (struct psymbol_allocation_list): Remove
1250 forward-declaration.
1251 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1252 to std::vector.
1253 (start_psymtab_common): Change parameters to std::vector.
1254 * psymtab.c: Include algorithm.
1255 (require_partial_symbols): Call shrink_to_fit.
1256 (find_pc_sect_psymbol): Adjust to vector change.
1257 (match_partial_symbol): Likewise.
1258 (lookup_partial_symbol): Likewise.
1259 (psym_relocate): Likewise.
1260 (dump_psymtab): Likewise.
1261 (recursively_search_psymtabs): Likewise.
1262 (compare_psymbols): Remove.
1263 (sort_pst_symbols): Adjust to vector change.
1264 (start_psymtab_common): Likewise.
1265 (end_psymtab_common): Likewise.
1266 (psymbol_bcache_full): De-constify return value.
1267 (add_psymbol_to_bcache): Likewise.
1268 (extend_psymbol_list): Remove.
1269 (append_psymbol_to_list): Adjust to vector change.
1270 (add_psymbol_to_list): Likewise.
1271 (init_psymbol_list): Likewise.
1272 (maintenance_info_psymtabs): Likewise.
1273 (maintenance_check_psymtabs): Likewise.
1274 * symfile.h (struct psymbol_allocation_list): Remove.
1275 * symfile.c (reread_symbols): Adjust to vector change.
1276 * dbxread.c (start_psymtab): Change type of parameters.
1277 (dbx_symfile_read): Adjust to vector change.
1278 (read_dbx_symtab): Likewise.
1279 (start_psymtab): Change type of parameters.
1280 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1281 (create_partial_symtab): Likewise.
1282 (add_partial_symbol): Likewise.
1283 (write_one_signatured_type): Likewise.
1284 (recursively_write_psymbols): Likewise.
1285 * mdebugread.c (parse_partial_symbols): Likewise.
1286 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1287 (scan_xcoff_symtab): Adjust to vector change.
1288 (xcoff_initial_scan): Likewise.
1289
1290 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1291
1292 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1293
1294 2017-10-13 Yao Qi <yao.qi@linaro.org>
1295
1296 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1297 Remove s390x-*-expedite, add s390x-expedite.
1298
1299 2017-10-13 Yao Qi <yao.qi@linaro.org>
1300
1301 * features/s390-gs-linux64.c: Regenerated.
1302 * features/s390x-gs-linux64.c: Regenerated.
1303
1304 2017-10-13 Tom Tromey <tom@tromey.com>
1305
1306 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1307 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1308 delete.
1309 * symfile.c (symbol_file_add_with_addrs): Use new.
1310 (symbol_file_add_separate): Update comment.
1311 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1312 * jit.c (jit_object_close_impl): Use new.
1313 (jit_unregister_code): Use delete.
1314 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1315 (~objfile): Rename from free_objfile.
1316 (free_objfile_separate_debug, do_free_objfile_cleanup)
1317 (free_all_objfiles, objfile_purge_solibs): Use delete.
1318 * objfiles.h (struct objfile): Add constructor and destructor.
1319 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1320 (allocate_objfile, free_objfile): Don't declare.
1321 (struct objstats): Add initializers.
1322
1323 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1324
1325 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1326 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1327 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1328 * gdbarch.h: Regenerate.
1329 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1330 Adjust comment.
1331 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1332 (i386_displaced_step_fixup): Adjust comment.
1333 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1334
1335 2017-10-12 Tom Tromey <tom@tromey.com>
1336
1337 * prologue-value.h (pv_area::store_would_trash): Return bool.
1338 (pv_area::find_reg): Likewise.
1339 * prologue-value.c (pv_area::store_would_trash): Return bool.
1340 (pv_area::find_reg): Likewise.
1341
1342 2017-10-12 Tom Tromey <tom@tromey.com>
1343
1344 * s390-linux-tdep.c (s390_store, s390_load)
1345 (s390_check_for_saved, s390_analyze_prologue): Update.
1346 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1347 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1348 * prologue-value.h (class pv_area): Move from prologue-value.c.
1349 Change names of members. Add constructor, destructor, member
1350 functions.
1351 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1352 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1353 (pv_area_fetch, pv_area_scan): Don't declare.
1354 * prologue-value.c (struct pv_area::area_entry): Now member of
1355 pv_area.
1356 (struct pv_area): Move to prologue-value.h.
1357 (pv_area::pv_area): Rename from make_pv_area.
1358 (pv_area::~pv_area): Rename from free_pv_area.
1359 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1360 (clear_entries, find_entry, overlaps, store_would_trash, store)
1361 (fetch, find_reg, scan): Now member of pv_area.
1362 Remove "area" argument. Update.
1363 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1364 Update.
1365 * mn10300-tdep.c (push_reg, check_for_saved)
1366 (mn10300_analyze_prologue): Update.
1367 * mep-tdep.c (is_arg_spill, check_for_saved)
1368 (mep_analyze_prologue): Update.
1369 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1370 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1371 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1372 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1373 Update.
1374 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1375 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1376
1377 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1378
1379 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1380 * linux-nat.c (linux_nat_delete_thread): New variable.
1381 (lwp_free): Invoke linux_nat_delete_thread if set.
1382 (linux_nat_set_delete_thread): New function.
1383 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1384 thread delete callback.
1385 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1386 (_initialize_arm_linux_nat): Assign thread delete callback.
1387 * s390-linux-nat.c (s390_delete_thread): New function.
1388 (_initialize_s390_nat): Assign thread delete callback.
1389 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1390 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1391 function.
1392 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1393 declaration.
1394 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1395 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1396
1397 2017-10-09 Tom Tromey <tom@tromey.com>
1398
1399 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1400 std::string.
1401 * tui/tui-layout.c (enum tui_status): Use std::string.
1402
1403 2017-10-11 Tom Tromey <tom@tromey.com>
1404
1405 * gdbthread.h (thread_command): Constify.
1406 * inferior.h (detach_command): Constify.
1407 * top.h (set_history, show_history): Constify.
1408 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1409 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1410 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1411 * printcmd.c (set_command): Constify.
1412 (non_const_set_command): New function.
1413 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1414 * breakpoint.c (enable_command, disable_command, delete_command)
1415 (catch_command, tcatch_command, set_breakpoint_cmd)
1416 (show_breakpoint_cmd): Constify.
1417 * macrocmd.c (macro_command): Constify.
1418 * infcmd.c (unset_command, kill_command, detach_command)
1419 (info_proc_cmd): Constify.
1420 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1421 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1422 (info_auto_load_cmd): Constify.
1423 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1424 (unset_tdesc_cmd): Constify.
1425 * ada-lang.c (set_ada_command, show_ada_command)
1426 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1427 * guile/guile.c (set_guile_command, show_guile_command)
1428 (info_guile_command): Constify.
1429 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1430 Constify.
1431 * skip.c (skip_command): Constify.
1432 * compile/compile.c (_initialize_compile): Constify.
1433 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1434 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1435 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1436 (maint_btrace_pt_show_cmd): Constify.
1437 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1438 Constify.
1439 * python/python.c (user_show_python, user_set_python): Constify.
1440 * mips-tdep.c (set_mips_command, show_mips_command)
1441 (set_mipsfpu_command): Constify.
1442 * record-btrace.c (cmd_record_btrace_start)
1443 (cmd_set_record_btrace, cmd_show_record_btrace)
1444 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1445 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1446 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1447 Constify.
1448 * symfile.c (overlay_command): Constify.
1449 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1450 * cli/cli-logging.c (set_logging_command, show_logging_command):
1451 Constify.
1452 * cli/cli-dump.c (dump_command, append_command)
1453 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1454 (tekhex_dump_command, binary_dump_command)
1455 (binary_append_command): Constify.
1456 * cli/cli-decode.c (struct cmd_list_element): Change type of
1457 "fun".
1458 * cli/cli-cmds.c (info_command, show_command, set_debug)
1459 (show_debug): Constify.
1460 (show_command): Add non-const overload.
1461 * top.c (set_history, show_history): Constify.
1462 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1463 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1464 * target.c (target_command): Constify.
1465 * sparc64-tdep.c (info_adi_command): Constify.
1466 * record-full.c (cmd_record_full_start): Constify.
1467 (set_record_full_command): Constify. Fix typo.
1468 (show_record_full_command): Constify.
1469 * thread.c (thread_command, thread_apply_command): Constify.
1470 * memattr.c (dummy_cmd): Constify.
1471 * value.c (function_command): Constify.
1472 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1473 * probe.c (info_probes_command): Constify.
1474 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1475 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1476 (show_thread_cmd, set_thread_default_cmd)
1477 (show_thread_default_cmd): Constify.
1478 (check_empty): Constify.
1479 * tracepoint.c (tfind_command): Constify.
1480 * cp-support.c (maint_cplus_command): Constify.
1481 * windows-tdep.c (info_w32_command): Constify.
1482 * record.c (cmd_record_start, set_record_command)
1483 (show_record_command, info_record_command, cmd_record_goto):
1484 Constify.
1485 * ravenscar-thread.c (set_ravenscar_command)
1486 (show_ravenscar_command): Constify.
1487 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1488 Constify.
1489 (add_internal_problem_command): Remove casts.
1490 * arc-tdep.c (maintenance_print_arc_command): Constify.
1491 * valprint.c (set_print, show_print, set_print_raw)
1492 (show_print_raw): Constify.
1493 * maint.c (maintenance_command, maintenance_info_command)
1494 (maintenance_print_command, maintenance_set_cmd)
1495 (maintenance_show_cmd, set_per_command_cmd)
1496 (show_per_command_cmd, maintenance_check_command): Constify.
1497 * language.c (set_check, show_check): Constify.
1498 * typeprint.c (show_print_type, set_print_type): Constify.
1499 * go32-nat.c (go32_info_dos_command): Constify.
1500
1501 2017-10-11 Tom Tromey <tom@tromey.com>
1502
1503 * breakpoint.c (prepare_re_set_context): Remove.
1504 (breakpoint_re_set_one): Update. Don't use cleanups.
1505 (breakpoint_re_set): Use scoped_restore, std::string, and
1506 scoped_restore_current_language.
1507
1508 2017-10-11 Tom Tromey <tom@tromey.com>
1509
1510 * breakpoint.c (commands_command_1): Use std::string.
1511 (cleanup_executing_breakpoints): Remove.
1512 (bpstat_do_actions_1): Use scoped_restore.
1513 (bpstat_check_watchpoint): Use std::string.
1514 (decode_static_tracepoint_spec): Likewise.
1515 (break_range_command): Likewise.
1516 (watch_command_1): Likewise.
1517 (compare_breakpoints): Change argument types.
1518 (clear_command): Use std::vector.
1519 (cleanup_executing_breakpoints): Remove.
1520 (update_global_location_list): Use unique_xmalloc_ptr.
1521 (strace_command): Remove unused declaration.
1522
1523 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1524
1525 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1526 * NEWS: Mention new FreeBSD/arm native configuration.
1527 * configure.host: Add arm*-*-freebsd*.
1528 * configure.nat: Likewise.
1529 * arm-fbsd-nat.c: New file.
1530
1531 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1532
1533 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1534 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1535 * NEWS: Mention new FreeBSD/arm target.
1536 * configure.tgt: Add arm*-*-freebsd*.
1537 * arm-fbsd-tdep.c: New file.
1538 * arm-fbsd-tdep.h: New file.
1539
1540 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1541
1542 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1543 `gdbarch_elfcore_write_linux_prpsinfo'.
1544 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1545 method.
1546 (elf_internal_linux_prpsinfo): Remove declaration.
1547 * gdbarch.h: Regenerate.
1548 * gdbarch.c: Regenerate.
1549
1550 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1551
1552 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1553 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1554
1555 2017-10-11 Pedro Alves <palves@redhat.com>
1556
1557 * breakpoint.c (reattach_breakpoints): Delete.
1558 * breakpoint.h (reattach_breakpoints): Delete.
1559
1560 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1561
1562 * symfile.c (registered_sym_fns): Make struct, not typedef.
1563 (DEF_VEC_O (registered_sym_fns)): Remove.
1564 (symtab_fns): Change type to std::vector.
1565 (add_symtab_fns): Adjust.
1566 (find_sym_fns): Adjust.
1567
1568 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1569
1570 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1571 * arc-tdep.h (arc_arch_is_em): New function.
1572 (arc_arch_is_hs): Likewise.
1573
1574 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1575
1576 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1577 parentheses in the declaration.
1578 (macro_lookup_inclusion): Likewise.
1579 (macro_lookup_definition): Likewise.
1580 * p-lang.h (pascal_builtin_types): Likewise.
1581 * tui/tui-data.c (tui_win_list): Likewise.
1582 * tui/tui-data.h (tui_win_list): Likewise.
1583 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1584
1585 2017-10-11 Mark Rages <markrages@gmail.com>
1586
1587 * target-memory.c (block_boundaries): Fix for block address not
1588 aligned on block size.
1589
1590 2017-10-10 Pedro Alves <palves@redhat.com>
1591 Tom Tromey <tom@tromey.com>
1592
1593 * breakpoint.c (struct captured_breakpoint_query_args)
1594 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1595 (print_breakpoint): New.
1596 * breakpoint.h (print_breakpoint): Declare.
1597 * common/common-exceptions.h (enum return_reason): Remove
1598 references to catch_exceptions.
1599 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1600 Delete.
1601 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1602 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1603 * gdb.h: Delete.
1604 * gdbthread.h (thread_select): Declare.
1605 * mi/mi-cmd-break.c: Don't include gdb.h.
1606 (breakpoint_notify): Use print_breakpoint.
1607 * mi/mi-cmd-catch.c: Don't include gdb.h.
1608 * mi/mi-interp.c: Don't include gdb.h.
1609 (mi_print_breakpoint_for_event): New.
1610 (mi_breakpoint_created, mi_breakpoint_modified): Use
1611 mi_print_breakpoint_for_event.
1612 * mi/mi-main.c: Don't include gdb.h.
1613 (mi_cmd_thread_select): Parse the global thread ID here. Use
1614 thread_select instead of gdb_thread_select.
1615 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1616 of using gdb_list_thread_ids.
1617 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1618 FILEIO_ENOSYS here.
1619 (remote_fileio_request): Use TRY/CATCH instead of
1620 catch_exceptions.
1621 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1622 (symbol_file_add_from_memory_wrapper): Delete.
1623 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1624 * thread.c: Don't include gdb.h.
1625 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1626 (thread_alive): Use thread_select.
1627 (do_captured_thread_select): Delete, parts salvaged as ...
1628 (thread_select): ... this new function.
1629 (gdb_thread_select): Delete.
1630
1631 2017-10-10 Pedro Alves <palves@redhat.com>
1632 Tom Tromey <tom@tromey.com>
1633
1634 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1635 and reverse logic.
1636 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1637 No longer macros. Instead ...
1638 (enum wp_check_result): They're now values of this new
1639 enumeration.
1640 (watchpoint_check): Change return type to wp_check_result and
1641 parameter type to bpstat.
1642 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1643 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1644 catch_errors. Reverse logic of watchpoint_check call.
1645 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1646 pointer as parameter.
1647 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1648 * common/common-exceptions.c (throw_exception_sjlj): Update
1649 comments to avoid mentioning catch_errors.
1650 * exceptions.c (catch_errors): Delete.
1651 * exceptions.h: Update comments to avoid mentioning catch_errors.
1652 (catch_errors_ftype, catch_errors): Delete.
1653 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1654 (hook_stop_stub): Delete.
1655 (restore_selected_frame): Change return type to void, and
1656 parameter type to const frame_id &.
1657 (restore_infcall_control_state): Use TRY/CATCH instead of
1658 catch_errors.
1659 * main.c (captured_command_loop): Return void and remove
1660 parameter. Remove references to catch_errors.
1661 (captured_main): Use TRY/CATCH instead of catch_errors.
1662 * objc-lang.c (objc_submethod_helper_data)
1663 (find_objc_msgcall_submethod_helper): Delete.
1664 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1665 catch_errors.
1666 * record-full.c (record_full_message): Return void.
1667 (record_full_message_args, record_full_message_wrapper): Delete.
1668 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1669 instead of catch_errors.
1670 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1671 parameter type to int.
1672 * solib-darwin.c (open_symbol_file_object): Ditto.
1673 * solib-dsbt.c (open_symbol_file_object): Ditto.
1674 * solib-frv.c (open_symbol_file_object): Ditto.
1675 * solib-svr4.c (open_symbol_file_object): Ditto.
1676 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1677 * solib.c (update_solib_list): Use TRY/CATCH instead of
1678 catch_errors.
1679 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1680 Change type.
1681 * symmisc.c (struct print_symbol_args): Remove.
1682 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1683 (print_symbol): Change type.
1684 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1685 and remove parameters.
1686 (catch_errors): New.
1687 (get_windows_debug_event): Adjust.
1688
1689 2017-10-09 Tom Tromey <tom@tromey.com>
1690
1691 * mi/mi-main.c (free_splay_tree): Remove.
1692 (list_available_thread_groups): Use splay_tree_up.
1693 * common/gdb_splay_tree.h: New file.
1694
1695 2017-10-09 Tom Tromey <tom@tromey.com>
1696
1697 * mi/mi-main.c (do_nothing): Remove.
1698 (list_available_thread_groups): Update.
1699
1700 2017-10-09 Pedro Alves <palves@redhat.com>
1701
1702 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1703 reading registers when switching context.
1704
1705 2017-10-09 John Baldwin <jhb@FreeBSD.org>
1706
1707 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1708 (fbsd_convert_siginfo): Likewise.
1709 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1710
1711 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1712
1713 * configure.ac (try_guile_versions): Remove guile-2.2.
1714 * configure: Regenerate.
1715
1716 2017-10-09 Tom Tromey <tom@tromey.com>
1717
1718 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1719 (COMPILE.pre): Use $(CXX).
1720
1721 2017-10-09 Pedro Alves <palves@redhat.com>
1722
1723 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1724 Use bool.
1725 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1726 * cp-support.h (cp_remove_params): Now returns a
1727 gdb::unique_xmalloc_ptr.
1728 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1729 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1730 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1731 returning a gdb::unique_xmalloc_ptr.
1732 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1733 * stack.c (find_frame_funname): Adjust to cp_remove_params
1734 returning a gdb::unique_xmalloc_ptr.
1735
1736 2017-10-08 Tom Tromey <tom@tromey.com>
1737
1738 * dwarf2read.c (dwarf2_get_dwz_file): Use
1739 gdb::unique_xmalloc_ptr.
1740 (find_slot_in_mapped_hash): Likewise.
1741 (dwarf2_physname): Likewise.
1742 (create_dwo_unit_in_dwp_v1): Use std::string.
1743 (create_dwo_unit_in_dwp_v2): Likewise.
1744 (lookup_dwo_cutu): Likewise.
1745 (inherit_abstract_dies): Use std::vector.
1746 (read_array_type): Likewise.
1747 (dwarf_decode_macros): Remove unused declaration.
1748 (unsigned_int_compar): Remove.
1749 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1750 (psymtabs_addrmap_cleanup): Remove.
1751
1752 2017-10-08 Tom Tromey <tom@tromey.com>
1753
1754 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1755 * frame.h (frame_cleanup_after_sniffer): Declare.
1756 (frame_prepare_for_sniffer): Return void.
1757 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1758 type of argument.
1759 (frame_prepare_for_sniffer): Return void.
1760
1761 2017-10-08 Tom Tromey <tom@tromey.com>
1762
1763 * utils.h (make_cleanup_value_free): Remove.
1764 * utils.c (do_value_free, struct cleanup): Remove.
1765 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1766 Use gdb_value_up.
1767 * value.h (struct value_deleter): New.
1768 (gdb_value_up): New typedef.
1769
1770 2017-10-08 Tom Tromey <tom@tromey.com>
1771
1772 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1773 (make_cleanup_free_search_symbols): Remove.
1774 (search_symbols): Return std::vector.
1775 (symbol_search::compare_search_syms): Now member of
1776 symbol_search. Change arguments.
1777 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1778 (symtab_symbol_info, rbreak_command): Update.
1779 * symtab.h (struct symbol_search) <next>: Remove.
1780 Add constructors.
1781 (symbol_search::operator<): New function.
1782 (symbol_search::operator==): New function.
1783 (search_symbols): Remove std::vector.
1784 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1785 (symbol_search::compare_search_syms): Declare.
1786
1787 2017-10-06 Yao Qi <yao.qi@linaro.org>
1788
1789 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1790 arch/aarch64-insn.o.
1791 Remove one rule.
1792 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1793
1794 2017-10-06 Yao Qi <yao.qi@linaro.org>
1795
1796 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1797 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1798 arch/arm-linux.o respectively.
1799 * configure.tgt: Likewise.
1800
1801 2017-10-06 Yao Qi <yao.qi@linaro.org>
1802
1803 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1804 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1805
1806 2017-10-06 Pedro Alves <palves@redhat.com>
1807
1808 * windows-nat.c: Include <algorithm>.
1809
1810 2017-10-06 Yao Qi <yao.qi@linaro.org>
1811
1812 * configure.tgt (i386_tobjs): New variable.
1813 (amd64_tobjs): New variable.
1814 Set $cpu_obs and $os_obs.
1815
1816 2017-10-06 Yao Qi <yao.qi@linaro.org>
1817
1818 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1819 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1820 (clean): Remove object files and dependency files.
1821 (distclean): Remove the directory.
1822 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1823 * configure: Re-generated.
1824 * configure.tgt: Replace amd64.o with arch/amd64.o.
1825
1826 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1827
1828 PR build/22188
1829 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1830 and SETEND.
1831
1832 2017-10-05 Pedro Alves <palves@redhat.com>
1833
1834 * linux-nat.c (linux_child_follow_fork): When following the parent
1835 and detaching the child, consult the parent thread's architecture
1836 instead of the child's.
1837
1838 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1839
1840 * ax.h: Do not include "doublest.h".
1841 (union agent_val): Remove.
1842
1843 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1844
1845 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1846 (decimal_to_string): Return std::string object.
1847 (decimal_from_string): Accept std::string object. Return bool.
1848 (decimal_from_integral, decimal_from_doublest): Remove.
1849 (decimal_from_longest): Add prototype.
1850 (decimal_from_ulongest): Likewise.
1851 (decimal_to_longest): Likewise.
1852 (decimal_from_doublest): Likewise.
1853 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1854 (MAX_DECIMAL_STRING): Move here.
1855 (decimal_to_string): Return std::string object.
1856 (decimal_from_string): Accept std::string object. Return bool.
1857 (decimal_from_integral): Remove, replace by ...
1858 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1859 (decimal_to_longest): New function.
1860 (decimal_from_floating): Remove, replace by ...
1861 (decimal_from_doublest): ... this new function.
1862 (decimal_to_doublest): Update to new decimal_to_string interface.
1863
1864 * value.c (unpack_long): Use decimal_to_longest.
1865 * valops.c (value_cast): Use decimal_from_doublest instead of
1866 decimal_from_floating. Use decimal_from_[u]longest isntead of
1867 decimal_from_integral.
1868 * valarith.c (value_args_as_decimal): Likewise.
1869 * valprint.c (print_decimal_floating): Update to new
1870 decimal_to_string interface.
1871 * printcmd.c (printf_decfloat): Likewise.
1872 * c-exp.y (parse_number): Update to new decimal_from_string interface.
1873
1874 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1875
1876 * doublest.h: Do not include "floatformat.h". Remove stale comments.
1877 * gdbtypes.c: Include "floatformat.h".
1878 * value.c: Likewise.
1879 * m68k-tdep.c: Likewise.
1880
1881 * findvar.c: Do not include "floatformat.h".
1882 * amd64-darwin-tdep.c: Likewise.
1883 * arm-linux-tdep.c: Likewise.
1884 * i386-darwin-tdep.c: Likewise.
1885 * i387-tdep.c: Likewise.
1886 * m68k-linux-tdep.c: Likewise.
1887 * mep-tdep.c: Likewise.
1888 * mips-tdep.c: Likewise.
1889 * nios2-tdep.c: Likewise.
1890 * s390-linux-tdep.c: Likewise.
1891 * sparc-obsd-tdep.c: Likewise.
1892 * sparc-tdep.c: Likewise.
1893 * sparc64-tdep.c: Likewise.
1894 * spu-tdep.c: Likewise.
1895 * tic6x-tdep.c: Likewise.
1896 * tilegx-tdep.c: Likewise.
1897 * vax-tdep.c: Likewise.
1898 * xstormy16-tdep.c: Likewise.
1899 * xtensa-tdep.c: Likewise.
1900
1901 * top.c: Do not include "doublest.h".
1902 * aarch64-tdep.c: Likewise.
1903 * alpha-tdep.c: Likewise.
1904 * arm-linux-tdep.c: Likewise.
1905 * m68k-linux-tdep.c: Likewise.
1906 * tilegx-tdep.c: Likewise.
1907 * xstormy16-tdep.c: Likewise.
1908
1909 2017-10-05 John Baldwin <jhb@FreeBSD.org>
1910
1911 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
1912 (mipsn32_fbsd_sigframe): Define.
1913 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
1914 for FreeBSD/mipsn32.
1915
1916 2017-10-05 John Baldwin <jhb@FreeBSD.org>
1917
1918 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
1919 AT_HWCAP.
1920
1921 2017-10-05 Tristan Gingold <tgingold@free.fr>
1922
1923 * MAINTAINERS (Misc): Update my email address.
1924
1925 2017-10-04 Pedro Alves <palves@redhat.com>
1926
1927 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
1928 it instead of target_gdbarch.
1929 (get_remote_state, get_remote_packet_size): Adjust
1930 get_remote_arch_state calls, passing down target_gdbarch
1931 explicitly.
1932 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
1933 'gdbarch' and use it instead of target_gdbarch.
1934 (get_memory_packet_size): Adjust get_remote_arch_state calls,
1935 passing down target_gdbarch explicitly.
1936 (struct stop_reply) <arch>: New field.
1937 (remote_parse_stop_reply): Use the stopped thread's architecture,
1938 not the current inferior's. Save the architecture in the
1939 stop_reply.
1940 (process_stop_reply): Use the stop reply's architecture.
1941 (process_g_packet, remote_fetch_registers)
1942 (remote_prepare_to_store, store_registers_using_G)
1943 (remote_store_registers): Adjust get_remote_arch_state calls,
1944 using the regcache's architecture.
1945 (remote_get_trace_status): Adjust get_remote_arch_state calls,
1946 passing down target_gdbarch explicitly.
1947 * spu-multiarch.c (spu_thread_architecture): Defer to the target
1948 beneath instead of calling target_gdbarch.
1949 * target.c (default_thread_architecture): Use the specified
1950 inferior's architecture, instead of the current inferior's
1951 architecture (via target_gdbarch).
1952
1953 2017-10-04 Pedro Alves <palves@redhat.com>
1954
1955 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
1956 case.
1957 (regcache_print): Handle !target_has_registers here instead.
1958
1959 2017-10-04 Pedro Alves <palves@redhat.com>
1960
1961 * frame.c (create_test_frame): Delete.
1962 * frame.h (create_test_frame): Delete.
1963 * gdbarch-selftests.c: Include gdbthread.h and target.h.
1964 (class regcache_test): Delete.
1965 (test_target_has_registers, test_target_has_stack)
1966 (test_target_has_memory, test_target_prepare_to_store)
1967 (test_target_store_registers): New functions.
1968 (test_target_ops): New class.
1969 (register_to_value_test): Error out if there's already a
1970 process_stratum (or higher) target pushed. Create a fuller mock
1971 environment, with mock target_ops, inferior, address space, thread
1972 and inferior_ptid.
1973 * progspace.c (struct address_space): Move to ...
1974 * progspace.h (struct address_space): ... here.
1975 * regcache.h (regcache::~regcache, regcache::raw_write)
1976 [GDB_SELF_TEST]: No longer virtual.
1977
1978 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
1979
1980 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
1981
1982 2017-10-04 Pedro Alves <palves@redhat.com>
1983
1984 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
1985 out of 'between TRY and CATCH'.
1986
1987 2017-10-04 Pedro Alves <palves@redhat.com>
1988
1989 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
1990 * common/common-exceptions.h (TRY): Open an outermost scope.
1991 Expand intro comment.
1992 (CATCH): Reindent.
1993 (END_CATCH): Close the outermost scope.
1994 * completer.c (complete_line_internal): Add missing END_CATCH.
1995
1996 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1997
1998 * NEWS (Changes since GDB 8.0): Add entry about new
1999 'set-cwd-on-gdbserver' feature.
2000 (New remote packets): Add entry for QSetWorkingDir.
2001 * common/common-inferior.h (set_inferior_cwd): New prototype.
2002 * infcmd.c (set_inferior_cwd): Remove "static".
2003 (show_cwd_command): Expand text to include remote debugging.
2004 * remote.c: Add PACKET_QSetWorkingDir.
2005 (remote_protocol_features) <QSetWorkingDir>: New entry for
2006 PACKET_QSetWorkingDir.
2007 (extended_remote_set_inferior_cwd): New function.
2008 (extended_remote_create_inferior): Call
2009 "extended_remote_set_inferior_cwd".
2010 (_initialize_remote): Call "add_packet_config_cmd" for
2011 QSetWorkingDir.
2012
2013 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2014
2015 * NEWS (New commands): Mention "set/show cwd".
2016 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2017 "cd" command's help text.
2018 * common/common-inferior.h (get_inferior_cwd): New prototype.
2019 * infcmd.c (inferior_cwd_scratch): New global variable.
2020 (set_inferior_cwd): New function.
2021 (get_inferior_cwd): Likewise.
2022 (set_cwd_command): Likewise.
2023 (show_cwd_command): Likewise.
2024 (_initialize_infcmd): Add "set/show cwd" commands.
2025 * inferior.h (class inferior) <cwd>: New field.
2026 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2027 (fork_inferior): Change inferior's cwd before its execution.
2028 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2029 to CreateProcess.
2030
2031 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2032
2033 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2034 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2035 (COMMON_OBS): Add gdb_tilde_expand.o.
2036 * common/gdb_tilde_expand.c: New file.
2037 * common/gdb_tilde_expand.h: Likewise.
2038
2039 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2040
2041 * gdbarch.sh (objfile): Remove duplicate declaration.
2042 * gdbarch.h: Regenerate.
2043
2044 2017-10-03 Tom Tromey <tom@tromey.com>
2045
2046 * utils.c (internal_vproblem): Use string_vprintf.
2047
2048 2017-10-03 Tom Tromey <tom@tromey.com>
2049
2050 * printcmd.c (info_symbol_command): Use std::string.
2051
2052 2017-10-03 Tom Tromey <tom@tromey.com>
2053
2054 * top.c (gdb_safe_append_history): Use std::string.
2055
2056 2017-10-03 Tom Tromey <tom@tromey.com>
2057
2058 * event-top.c (stdin_event_handler): Update.
2059 * main.c (captured_main_1): Update.
2060 * top.h (make_delete_ui_cleanup): Remove.
2061 (struct ui): Add constructor and destructor.
2062 (new_ui, delete_ui): Remove.
2063 * top.c (make_delete_ui_cleanup): Remove.
2064 (new_ui_command): Use std::unique_ptr.
2065 (delete_ui_cleanup): Remove.
2066 (ui::ui): Rename from new_ui. Update.
2067 (free_ui): Remove.
2068 (ui::~ui): Rename from delete_ui. Update.
2069
2070 2017-10-03 Tom Tromey <tom@tromey.com>
2071
2072 * symfile.c (load_progress): Use gdb::byte_vector.
2073
2074 2017-10-03 Tom Tromey <tom@tromey.com>
2075
2076 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2077 declaration.
2078 * printcmd.c (x_command): Remove unused declaration.
2079 * symfile.c (symbol_file_command): Remove unused declaration.
2080
2081 2017-10-03 Tom Tromey <tom@tromey.com>
2082
2083 * utils.c (internal_vproblem): Use std::string.
2084 (defaulted_query): Likewise.
2085
2086 2017-10-03 Tom Tromey <tom@tromey.com>
2087
2088 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2089 * top.c (execute_command_to_string): Update.
2090 * utils.c (make_cleanup_restore_page_info): Remove.
2091 (do_restore_page_info_cleanup): Remove.
2092 (set_batch_flag_and_restore_page_info):
2093 New.
2094 (make_cleanup_restore_page_info): Remove.
2095 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2096 (~set_batch_flag_and_restore_page_info): New
2097 (make_cleanup_restore_uinteger): Remove.
2098 (make_cleanup_restore_integer): Remove.
2099 (struct restore_integer_closure): Remove.
2100 (restore_integer): Remove.
2101 * utils.h (struct set_batch_flag_and_restore_page_info): New
2102 class.
2103 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2104 (make_cleanup_restore_page_info): Remove.
2105 (make_cleanup_restore_uinteger) Remove.
2106 (make_cleanup_restore_integer) Remove.
2107
2108 2017-10-03 Tom Tromey <tom@tromey.com>
2109
2110 * record-full.h (record_full_gdb_operation_disable_set): Return
2111 scoped_restore_tmpl<int>.
2112 * infrun.c (adjust_pc_after_break): Update.
2113 (handle_signal_stop): Update.
2114 * record-full.c (record_full_gdb_operation_disable_set): Return
2115 scoped_restore_tmpl<int>.
2116 (record_full_wait_1, record_full_insert_breakpoint)
2117 (record_full_remove_breakpoint, record_full_save)
2118 (record_full_goto_insn): Update.
2119
2120 2017-10-02 Tom Tromey <tom@tromey.com>
2121
2122 PR rust/22236:
2123 * rust-lang.c (rust_val_print_str): New function.
2124 (val_print_struct): Call it.
2125 (rust_subscript): Preserve name of slice type.
2126
2127 2017-10-02 Tom Tromey <tom@tromey.com>
2128
2129 * rust-lang.c (rust_subscript): Handle slices in
2130 EVAL_AVOID_SIDE_EFFECTS case.
2131
2132 2017-10-02 Tom Tromey <tom@tromey.com>
2133
2134 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2135
2136 2017-10-02 Tom Tromey <tom@tromey.com>
2137
2138 * rust-lang.h (rust_slice_type): Add "extern".
2139
2140 2017-10-02 Tom Tromey <tom@tromey.com>
2141 Pedro Alves <palves@redhat.com>
2142
2143 * ada-lang.h (ada_exc_info::operator<): Make const.
2144 (ada_exc_info::operator==): Make const.
2145 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2146 Make const.
2147
2148 2017-09-29 Tom Tromey <tom@tromey.com>
2149
2150 * target.c (read_whatever_is_readable): Change type of "result".
2151 Update.
2152 (free_memory_read_result_vector): Remove.
2153 (read_memory_robust): Change return type. Update.
2154 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2155 bin2hex, std::string.
2156 * target.h (memory_read_result_s): Remove typedef.
2157 (free_memory_read_result_vector): Remove.
2158 (read_memory_robust): Return std::vector.
2159
2160 2017-09-29 Tom Tromey <tom@tromey.com>
2161
2162 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2163
2164 2017-09-29 Tom Tromey <tom@tromey.com>
2165
2166 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2167 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2168 operator< and operator==.
2169 (ada_exceptions_list): Return a std::vector.
2170 * ada-lang.c (ada_exc_info::operator<): Rename from
2171 compare_ada_exception_info.
2172 (ada_exc_info::operator==): New.
2173 (sort_remove_dups_ada_exceptions_list): Change type of
2174 "exceptions".
2175 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2176 (ada_add_global_exceptions): Likewise.
2177 (ada_exceptions_list_1): Return a std::vector.
2178 (ada_exceptions_list): Likewise.
2179
2180 2017-09-29 Tom Tromey <tom@tromey.com>
2181
2182 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2183 'std::set *'.
2184 (print_one_inferior): Update.
2185 (free_vector_of_ints): Remove.
2186 (list_available_thread_groups): Change "ids" to std::set.
2187 (mi_cmd_list_thread_groups): Update.
2188 (struct collect_cores_data) <core>: Now a std::set.
2189 (collect_cores): Update.
2190 (unique): Remove.
2191 (print_one_inferior): Update.
2192
2193 2017-09-29 Tom Tromey <tom@tromey.com>
2194
2195 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2196 (mi_execute_async_cli_command): Likewise.
2197 (mi_cmd_trace_frame_collected): Use field_fmt.
2198
2199 2017-09-29 Tom Tromey <tom@tromey.com>
2200
2201 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2202 gdb::byte_vector.
2203
2204 2017-09-29 Tom Tromey <tom@tromey.com>
2205
2206 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2207
2208 2017-09-29 Tom Tromey <tom@tromey.com>
2209
2210 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2211
2212 2017-09-29 Tom Tromey <tom@tromey.com>
2213
2214 * varobj.h (varobj_gen_name): Return std::string.
2215 * varobj.c (varobj_gen_name): Return std::string.
2216 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2217 (mi_cmd_var_delete): Don't copy "name".
2218
2219 2017-09-29 Tom Tromey <tom@tromey.com>
2220
2221 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2222 (mi_cmd_break_insert_1): Update.
2223
2224 2017-09-29 Tom Tromey <tom@tromey.com>
2225
2226 * target.h (make_scoped_defer_target_commit_resume): Update.
2227 * target.c (make_scoped_defer_target_commit_resume): Rename from
2228 make_cleanup_defer_target_commit_resume. Return a
2229 scoped_restore.
2230 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2231
2232 2017-09-29 Tom Tromey <tom@tromey.com>
2233
2234 * main.c (captured_main_1): Remove unused declaration.
2235 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2236
2237 2017-09-29 Tom Tromey <tom@tromey.com>
2238
2239 * symtab.c (search_symbols): Remove unused outer cleanup.
2240 (make_source_files_completion_list): Remove unused declaration.
2241
2242 2017-09-29 Tom Tromey <tom@tromey.com>
2243
2244 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2245
2246 2017-09-29 Tom Tromey <tom@tromey.com>
2247
2248 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2249 gdb::byte_vector.
2250
2251 2017-09-29 Tom Tromey <tom@tromey.com>
2252
2253 * complaints.c (vcomplaint): Use std::string.
2254
2255 2017-09-29 Tom Tromey <tom@tromey.com>
2256
2257 * tracepoint.c (trace_variable_command): Use std::string.
2258 (encode_actions_1): Remove unused declarations.
2259 (create_tsv_from_upload): Use std::string.
2260
2261 2017-09-29 Tom Tromey <tom@tromey.com>
2262
2263 * cp-support.c (gdb_demangle): Use std::string.
2264
2265 2017-09-29 Tom Tromey <tom@tromey.com>
2266
2267 * stack.c (parse_frame_specification): Use std::string
2268 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2269
2270 2017-09-29 Tom Tromey <tom@tromey.com>
2271
2272 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2273
2274 2017-09-29 Tom Tromey <tom@tromey.com>
2275
2276 * utils.c (vfprintf_maybe_filtered): Use std::string.
2277 (vfprintf_unfiltered): Likewise.
2278
2279 2017-09-29 Tom Tromey <tom@tromey.com>
2280
2281 * event-top.c (top_level_prompt): Return std::string.
2282 (display_gdb_prompt): Update.
2283
2284 2017-09-29 Tom Tromey <tom@tromey.com>
2285
2286 * unittests/common-utils-selftests.c (format): New function.
2287 (string_vprintf_tests): New function.
2288 (_initialize_common_utils_selftests): Register new tests.
2289 * common/common-utils.c (string_vprintf): New function.
2290 * common/common-utils.h (string_vprintf): Declare.
2291
2292 2017-09-29 Pedro Alves <palves@redhat.com>
2293
2294 * common/rsp-low.c (unpack_varlen_hex): Constify.
2295 * common/rsp-low.h (unpack_varlen_hex): Constify.
2296 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2297 Constify.
2298 * remote.c (remote_set_permissions, read_ptid)
2299 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2300 (remote_static_tracepoint_marker_at)
2301 (remote_static_tracepoint_markers_by_strid)
2302 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2303 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2304 (parse_tracepoint_definition, parse_tsv_definition)
2305 (parse_static_tracepoint_marker_definition): Constify.
2306 * tracepoint.h (parse_static_tracepoint_marker_definition)
2307 (parse_trace_status, parse_tracepoint_status)
2308 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2309
2310 2017-09-29 Pedro Alves <palves@redhat.com>
2311
2312 * remote.c (target_buf, target_buf_size): Delete.
2313 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2314 Use the connection's packet buffer instead.
2315 All callers adjusted.
2316 (_initialize_remote): Remove references to target_buf and
2317 target_buf_size.
2318
2319 2017-09-28 Pedro Alves <palves@redhat.com>
2320
2321 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2322 unittests/common-utils-selftests.c.
2323 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2324 (COMMON_OBS): Remove utils-selftests.o.
2325 * utils-selftests.c: Move to ...
2326 * unittests/common-utils-selftests.c: ... here and rename self
2327 test to "string_printf".
2328
2329 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2330
2331 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2332 having NULL cus or tus.
2333
2334 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2335
2336 * arm-tdep.c: (convert_from_extended): Remove.
2337 (convert_to_extended): Likewise.
2338 (arm_extract_return_value): Use convert_typed_floating.
2339 (arm_store_return_value): Likewise.
2340
2341 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2342 * sh-tdep.c: Do not include "floatformat.h".
2343 (sh_littlebyte_bigword_type): New function.
2344 (sh_register_convert_to_virtual): Use convert_typed_floating.
2345 (sh_register_convert_to_raw): Likewise.
2346 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2347 (sh64_littlebyte_bigword_type): New function.
2348 (sh64_extract_return_value): Use convert_typed_floating.
2349 (sh64_register_convert_to_virtual): Likewise.
2350 (sh64_register_convert_to_raw): Likewise.
2351
2352 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2353
2354 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2355 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2356
2357 * gdbtypes.h (union type_specific): Make field floatformat hold
2358 just a single struct floatformat, not an array.
2359 (floatformat_from_type): Move here.
2360 * gdbtypes.c (floatformat_from_type): Move here. Update to
2361 changed TYPE_FLOATFORMAT definition.
2362 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2363 (recursive_dump_type): Likewise.
2364 (init_float_type): Install correct floatformat for byte order.
2365 (arch_float_type): Likewise.
2366
2367 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2368
2369 * gdbtypes.c (init_type): Change incoming argument from
2370 length-in-bytes to length-in-bits. Assert length is a
2371 multiple of TARGET_CHAR_BITS.
2372 (arch_type, arch_flags_type): Likewise.
2373 (init_integer_type): Update call to init_type.
2374 (init_character_type): Likewise.
2375 (init_boolean_type): Likewise.
2376 (init_float_type): Likewise.
2377 (init_decfloat_type): Likewise.
2378 (init_complex_type): Likewise.
2379 (init_pointer_type): Likewise.
2380 (objfile_type): Likewise.
2381 (arch_integer_type): Update call to arch_type.
2382 (arch_character_type): Likewise.
2383 (arch_boolean_type): Likewise.
2384 (arch_float_type): Likewise.
2385 (arch_decfloat_type): Likewise.
2386 (arch_complex_type): Likewise.
2387 (arch_pointer_type): Likewise.
2388 (gdbtypes_post_init): Likewise.
2389
2390 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2391 (read_base_type): Likewise.
2392 * mdebugread.c (basic_type): Likewise.
2393 * stabsread.c (dbx_init_float_type): Likewise.
2394 (rs6000_builtin_type): Likewise.
2395 (read_range_type): Likewise. Also, fix call to init_integer_type
2396 with erroneous length argument.
2397
2398 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2399 * d-lang.c (build_d_types): Likewise.
2400 * f-lang.c (build_fortran_types): Likewise.
2401 * go-lang.c (build_go_types): Likewise.
2402 * opencl-lang.c (build_opencl_types): Likewise.
2403 * jit.c (finalize_symtab): Likewise.
2404 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2405 (build_std_type_info_type): Likewise.
2406 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2407 update call to arch_flags_type.
2408
2409 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2410 arch_type.
2411 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2412 * windows-tdep.c (windows_get_tlb_type): Likewise.
2413
2414 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2415 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2416 * m32c-tdep.c (make_types): Likewise.
2417 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2418 (rl78_psw_type): Update call to arch_flags_type.
2419 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2420 * rx-tdep.c (rx_psw_type): Likewise.
2421 (rx_fpsw_type): Likewise.
2422 * sparc-tdep.c (sparc_psr_type): Likewise.
2423 (sparc_fsr_type): Likewise.
2424 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2425 (sparc64_ccr_type): Likewise.
2426 (sparc64_fsr_type): Likewise.
2427 (sparc64_fprs_type): Likewise.
2428
2429 2017-09-27 Tom Tromey <tom@tromey.com>
2430
2431 * findcmd.c (find_command): Constify.
2432
2433 2017-09-27 Tom Tromey <tom@tromey.com>
2434
2435 * ada-tasks.c (task_command_1, task_command): Constify.
2436
2437 2017-09-27 Tom Tromey <tom@tromey.com>
2438
2439 * symtab.c (maintenance_print_symbol_cache)
2440 (maintenance_flush_symbol_cache)
2441 (maintenance_print_symbol_cache_statistics): Constify.
2442
2443 2017-09-27 Tom Tromey <tom@tromey.com>
2444
2445 * inferior.c (detach_inferior_command, kill_inferior_command)
2446 (inferior_command): Constify.
2447
2448 2017-09-27 Tom Tromey <tom@tromey.com>
2449
2450 * regcache.c (regcache_print, maintenance_print_registers)
2451 (maintenance_print_raw_registers)
2452 (maintenance_print_cooked_registers)
2453 (maintenance_print_register_groups)
2454 (maintenance_print_remote_registers): Constify.
2455
2456 2017-09-27 Tom Tromey <tom@tromey.com>
2457
2458 * printcmd.c (map_display_numbers, undisplay_command)
2459 (enable_disable_display_command, enable_display_command)
2460 (disable_display_command): Constify.
2461
2462 2017-09-27 Tom Tromey <tom@tromey.com>
2463
2464 * breakpoint.h (delete_command): Don't declare.
2465 * breakpoint.c (delete_command, enable_once_command)
2466 (enable_count_command, enable_delete_command, breakpoint_1)
2467 (maintenance_info_breakpoints, stopin_command, stopat_command)
2468 (delete_command, delete_trace_command, save_breakpoints)
2469 (save_breakpoints_command, save_tracepoints_command): Constify.
2470
2471 2017-09-27 Tom Tromey <tom@tromey.com>
2472
2473 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2474 (skip_ws, extract_identifier, macro_define_command)
2475 (macro_undef_command, macro_list_command): Constify.
2476
2477 2017-09-27 Tom Tromey <tom@tromey.com>
2478
2479 * infcmd.c (environment_info, set_environment_command)
2480 (unset_environment_command, path_info, info_proc_cmd_1)
2481 (info_proc_cmd_mappings, info_proc_cmd_stat)
2482 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2483 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2484
2485 2017-09-27 Tom Tromey <tom@tromey.com>
2486
2487 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2488 Constify.
2489
2490 2017-09-27 Tom Tromey <tom@tromey.com>
2491
2492 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2493
2494 2017-09-27 Tom Tromey <tom@tromey.com>
2495
2496 * demangle.c (demangle_command): Constify.
2497
2498 2017-09-27 Tom Tromey <tom@tromey.com>
2499
2500 * progspace.c (maintenance_info_program_spaces_command):
2501 Constify.
2502
2503 2017-09-27 Tom Tromey <tom@tromey.com>
2504
2505 * compile/compile.c (check_raw_argument, compile_file_command)
2506 (compile_code_command, compile_print_command): Constify.
2507
2508 2017-09-27 Tom Tromey <tom@tromey.com>
2509
2510 * reggroups.c (maintenance_print_reggroups): Constify.
2511
2512 2017-09-27 Tom Tromey <tom@tromey.com>
2513
2514 * dwarf2read.c (save_gdb_index_command): Constify.
2515
2516 2017-09-27 Tom Tromey <tom@tromey.com>
2517
2518 * stap-probe.c (info_probes_stap_command): Constify.
2519
2520 2017-09-27 Tom Tromey <tom@tromey.com>
2521
2522 * fork-child.c (unset_exec_wrapper_command): Constify.
2523
2524 2017-09-27 Tom Tromey <tom@tromey.com>
2525
2526 * btrace.c (get_uint, get_context_size, no_chunk)
2527 (maint_btrace_packet_history_cmd)
2528 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2529 (maint_info_btrace_cmd): Constify.
2530
2531 2017-09-27 Tom Tromey <tom@tromey.com>
2532
2533 * reverse.c (delete_bookmark_command): Constify.
2534
2535 2017-09-27 Tom Tromey <tom@tromey.com>
2536
2537 * remote.c (set_memory_packet_size)
2538 (set_memory_write_packet_size, show_memory_write_packet_size)
2539 (set_memory_read_packet_size, show_memory_read_packet_size)
2540 (compare_sections_command, packet_command, remote_put_command)
2541 (remote_get_command, remote_delete_command): Constify.
2542
2543 2017-09-27 Tom Tromey <tom@tromey.com>
2544
2545 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2546 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2547 (set_mipsfpu_auto_command): Constify.
2548
2549 2017-09-27 Tom Tromey <tom@tromey.com>
2550
2551 * cli/cli-cmds.h (cd_command): Constify.
2552 * cli/cli-cmds.c (cd_command): Constify.
2553
2554 2017-09-27 Tom Tromey <tom@tromey.com>
2555
2556 * thread.c (thread_name_command, thread_find_command): Constify.
2557
2558 2017-09-27 Tom Tromey <tom@tromey.com>
2559
2560 * probe.c (enable_probes_command, disable_probes_command):
2561 Constify.
2562
2563 2017-09-27 Tom Tromey <tom@tromey.com>
2564
2565 * symfile.c (symbol_file_command): Constify.
2566 * gdbcore.h (deprecated_file_changed_hook): Constify.
2567 * exec.c (deprecated_file_changed_hook, exec_file_command)
2568 (file_command): Constify.
2569 * defs.h (symbol_file_command): Constify.
2570
2571 2017-09-27 Tom Tromey <tom@tromey.com>
2572
2573 * remote-fileio.c (set_system_call_allowed)
2574 (show_system_call_allowed): Constify.
2575
2576 2017-09-27 Tom Tromey <tom@tromey.com>
2577
2578 * tracepoint.c (delete_trace_variable_command)
2579 (tfind_end_command, tfind_start_command, tfind_pc_command)
2580 (tfind_tracepoint_command, tfind_line_command)
2581 (tfind_range_command, tfind_outside_command): Constify.
2582
2583 2017-09-27 Tom Tromey <tom@tromey.com>
2584
2585 * ax-gdb.c (maint_agent_printf_command, agent_command)
2586 (agent_eval_command): Constify.
2587
2588 2017-09-27 Tom Tromey <tom@tromey.com>
2589
2590 * tracepoint.c (info_scope_command): Constify.
2591 * python/python.c (gdbpy_decode_line): Constify.
2592 * python/py-breakpoint.c (bppy_init): Constify.
2593 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2594 * location.h: (new_linespec_location)
2595 (string_to_event_location_basic, string_to_event_location):
2596 Constify.
2597 * location.c (new_linespec_location)
2598 (string_to_event_location_basic, string_to_event_location):
2599 Constify.
2600 * linespec.h (decode_line_with_current_source)
2601 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2602 * linespec.c (linespec_lex_to_end)
2603 (decode_line_with_current_source)
2604 (decode_line_with_last_displayed): Constify.
2605 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2606 Constify.
2607 * cli/cli-cmds.c (edit_command, list_command): Constify.
2608 * breakpoint.h (until_break_command, watch_command_wrapper)
2609 (awatch_command_wrapper, rwatch_command_wrapper)
2610 (init_ada_exception_breakpoint): Constify.
2611 * breakpoint.c (break_command_1, dprintf_command)
2612 (break_range_command, watch_command_wrapper)
2613 (rwatch_command_wrapper, awatch_command_wrapper)
2614 (until_break_command, init_ada_exception_breakpoint)
2615 (strace_marker_create_sals_from_location, trace_command)
2616 (ftrace_command, strace_command, struct tracepoint): Constify.
2617 * ax-gdb.c (agent_command_1): Constify.
2618 * ada-lang.c (ada_exception_sal): Constify.
2619
2620 2017-09-27 Tom Tromey <tom@tromey.com>
2621
2622 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2623 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2624 (get_context_size, no_chunk, get_insn_history_modifiers)
2625 (cmd_record_insn_history, get_call_history_modifiers)
2626 (cmd_record_call_history): Constify.
2627
2628 2017-09-27 Tom Tromey <tom@tromey.com>
2629
2630 * source.c (show_substitute_path_command)
2631 (unset_substitute_path_command, set_substitute_path_command):
2632 Constify.
2633
2634 2017-09-27 Tom Tromey <tom@tromey.com>
2635
2636 * typeprint.c (maintenance_print_type): Constify.
2637 * maint.c (maintenance_dump_me, maintenance_demangle)
2638 (maintenance_time_display, maintenance_info_sections)
2639 (maintenance_print_statistics, maintenance_deprecate)
2640 (maintenance_undeprecate): Constify.
2641 (maintenance_do_deprecate): Constify. Use std::string.
2642 (maintenance_selftest): Constify.
2643 * gdbtypes.h (maintenance_print_type): Constify.
2644
2645 2017-09-27 Tom Tromey <tom@tromey.com>
2646
2647 * hppa-tdep.c (unwind_command): Constify.
2648
2649 2017-09-27 Tom Tromey <tom@tromey.com>
2650
2651 * target-descriptions.c (unset_tdesc_filename_cmd)
2652 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2653 Constify.
2654
2655 2017-09-27 Tom Tromey <tom@tromey.com>
2656
2657 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2658
2659 2017-09-27 Tom Tromey <tom@tromey.com>
2660
2661 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2662
2663 2017-09-27 Tom Tromey <tom@tromey.com>
2664
2665 * tui/tui-regs.c (tui_reg_command): Constify.
2666
2667 2017-09-27 Tom Tromey <tom@tromey.com>
2668
2669 * skip.c (skip_file_command, skip_function_command)
2670 (skip_enable_command, skip_disable_command, skip_delete_command):
2671 Constify.
2672
2673 2017-09-27 Tom Tromey <tom@tromey.com>
2674
2675 * record-btrace.c (cmd_record_btrace_bts_start)
2676 (cmd_record_btrace_pt_start): Constify.
2677
2678 2017-09-27 Tom Tromey <tom@tromey.com>
2679
2680 * symmisc.c (maintenance_print_symbols)
2681 (maintenance_print_msymbols, maintenance_print_objfiles)
2682 (maintenance_info_symtabs, maintenance_check_symtabs)
2683 (maintenance_expand_symtabs, maintenance_info_line_tables):
2684 Constify.
2685
2686 2017-09-27 Tom Tromey <tom@tromey.com>
2687
2688 * top.c (new_ui_command): Constify.
2689
2690 2017-09-27 Tom Tromey <tom@tromey.com>
2691
2692 * symfile.c (add_symbol_file_command)
2693 (remove_symbol_file_command, list_overlays_command)
2694 (map_overlay_command, unmap_overlay_command)
2695 (overlay_auto_command, overlay_manual_command)
2696 (overlay_off_command, overlay_load_command): Constify.
2697
2698 2017-09-27 Tom Tromey <tom@tromey.com>
2699
2700 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2701 (info_spu_mailbox_command, info_spu_dma_command)
2702 (info_spu_proxydma_command): Constify.
2703
2704 2017-09-27 Tom Tromey <tom@tromey.com>
2705
2706 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2707
2708 2017-09-27 Tom Tromey <tom@tromey.com>
2709
2710 * cli/cli-script.c (user_defined_command): Constify.
2711
2712 2017-09-27 Tom Tromey <tom@tromey.com>
2713
2714 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2715 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2716 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2717 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2718 (dump_binary_value, append_binary_memory, append_binary_value):
2719 Constify.
2720 (struct dump_context) <func>: Constify.
2721 (add_dump_command): Update.
2722
2723 2017-09-27 Tom Tromey <tom@tromey.com>
2724
2725 * cli/cli-cmds.c (show_version, show_configuration)
2726 (source_command, show_user): Constify.
2727
2728 2017-09-27 Tom Tromey <tom@tromey.com>
2729
2730 * target.c (maintenance_print_target_stack): Constify.
2731
2732 2017-09-27 Tom Tromey <tom@tromey.com>
2733
2734 * interps.c (interpreter_exec_cmd): Constify.
2735
2736 2017-09-27 Tom Tromey <tom@tromey.com>
2737
2738 * record-full.c (cmd_record_full_restore): Constify.
2739
2740 2017-09-27 Tom Tromey <tom@tromey.com>
2741
2742 * memattr.c (enable_mem_command, disable_mem_command)
2743 (delete_mem_command): Constify.
2744
2745 2017-09-27 Tom Tromey <tom@tromey.com>
2746
2747 * value.c (show_convenience): Constify.
2748
2749 2017-09-27 Tom Tromey <tom@tromey.com>
2750
2751 * gdbcore.h (core_file_command): Update.
2752 * corefile.c (core_file_command): Constify.
2753
2754 2017-09-27 Tom Tromey <tom@tromey.com>
2755
2756 * user-regs.c (maintenance_print_user_registers): Constify.
2757
2758 2017-09-27 Tom Tromey <tom@tromey.com>
2759
2760 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2761
2762 2017-09-27 Tom Tromey <tom@tromey.com>
2763
2764 * cp-support.c (first_component_command): Constify.
2765
2766 2017-09-27 Tom Tromey <tom@tromey.com>
2767
2768 * psymtab.c (maintenance_print_psymbols)
2769 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2770 Constify.
2771
2772 2017-09-27 Tom Tromey <tom@tromey.com>
2773
2774 * windows-tdep.c (display_tib): Constify.
2775
2776 2017-09-27 Tom Tromey <tom@tromey.com>
2777
2778 * linux-fork.c (delete_checkpoint_command)
2779 (detach_checkpoint_command): Constify.
2780
2781 2017-09-27 Tom Tromey <tom@tromey.com>
2782
2783 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2784
2785 2017-09-27 Tom Tromey <tom@tromey.com>
2786
2787 * arc-tdep.c (dump_arc_instruction_command): Constify.
2788
2789 2017-09-27 Tom Tromey <tom@tromey.com>
2790
2791 * valprint.c (set_radix, show_radix): Constify.
2792
2793 2017-09-27 Tom Tromey <tom@tromey.com>
2794
2795 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2796
2797 2017-09-27 Tom Tromey <tom@tromey.com>
2798
2799 * command.h (not_just_help_class_command): Update.
2800 * cli/cli-decode.h (not_just_help_class_command): Update.
2801 * cli/cli-decode.c (not_just_help_class_command): Constify.
2802
2803 2017-09-27 Tom Tromey <tom@tromey.com>
2804
2805 * gdb_bfd.c (maintenance_info_bfds): Constify.
2806
2807 2017-09-27 Tom Tromey <tom@tromey.com>
2808
2809 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2810 overloads.
2811 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2812 (do_const_cfunc): New function.
2813 (cmd_cfunc_eq): New overload.
2814 (cli_user_command_p): Check do_const_cfunc.
2815 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2816 const_cfunc.
2817 * command.h (add_cmd): Add const overload and no-function
2818 overload.
2819 (set_cmd_cfunc): Add const overload.
2820 (cmd_const_cfunc_ftype): Declare.
2821 (cmd_cfunc_eq): Add const overload.
2822 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2823 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2824 overload.
2825
2826 2017-09-27 Tom Tromey <tom@tromey.com>
2827
2828 * macroexp.c (get_next_token_for_substitution): New function.
2829 (substitute_args): Call it. Check for __VA_OPT__.
2830
2831 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2832 Pedro Alves <palves@redhat.com>
2833
2834 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2835 producer_is_icc_lt_14.
2836 (producer_is_icc_lt_14): New function.
2837 (check_producer): Add code for checking version of ICC.
2838 (producer_is_icc): Move to producer.c.
2839 (read_structure_type): Restrict ICC workaround to ICC<14.
2840 * producer.c: Include selftest.h.
2841 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2842 New functions.
2843 * producer.h (producer_is_icc): New declaration.
2844
2845 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2846
2847 * Makefile.in (SFILES): Add producer.c.
2848 (COMMON_OBS): Add producer.o
2849 * amd64-tdep.c (producer.h): Add new include.
2850 * dwarf2read.c (producer.h): Add new include.
2851 * producer.c: New file.
2852 * producer.h: New file.
2853 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2854 producer.c.
2855 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2856 producer.h.
2857
2858 2017-09-26 Matthias Klose <doko@ubuntu.com>
2859
2860 * configure.ac: Search ncursesw before ncurses.
2861 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2862 * gdb_curses.h: Include <ncursesw/ncurses.h>
2863 * config.in, configure: Regenerate.
2864
2865 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2866
2867 PR gdb/22185
2868 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2869 obsolete.
2870 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
2871 Remove i386sol2 support.
2872 * configure.nat <i386sol2>: Remove.
2873 <sol2-64>: Fold into ...
2874 <sol2>: ... this.
2875 Move common settings to default section.
2876 Add sol-thread.o.
2877 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
2878 x86_64-*-solaris2.1[0-9]*>: Rename to ...
2879 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
2880 <i[34567]86-*-solaris*>: Remove.
2881 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
2882
2883 * configure.ac: Remove wctype in libw check.
2884 (_MSE_INT_H): Don't define on Solaris 7-9.
2885 <solaris*>: Remove libthread_db.so.1 check.
2886 * configure: Regenerate.
2887 * config.in: Regenerate.
2888
2889 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
2890 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
2891 (gdb_ps_size_t): Remove.
2892 Use base types in users.
2893 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
2894
2895 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
2896
2897 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2898
2899 PR build/22206
2900 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
2901 (adi_is_addr_mapped): Likewise.
2902 (PSR_ICC): Don't redefine.
2903 (PSR_IMPL): Likewise.
2904
2905 2017-09-25 Tom Tromey <tom@tromey.com>
2906
2907 * regcache.c (regcache::dump): Use string_printf.
2908
2909 2017-09-25 Tom Tromey <tom@tromey.com>
2910
2911 * regcache.c (class regcache_invalidator): New.
2912 (struct register_to_invalidate): Remove.
2913 (make_cleanup_regcache_invalidate): Remove.
2914 (regcache::raw_write): Use regcache_invalidator.
2915
2916 2017-09-25 Tom Tromey <tom@tromey.com>
2917
2918 * spu-tdep.c (spu2ppu_sniffer): Update.
2919 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
2920 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
2921 Remove.
2922 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
2923 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
2924 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
2925 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
2926 (frame_pop): Update.
2927
2928 2017-09-25 Tom Tromey <tom@tromey.com>
2929
2930 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
2931 * regcache.h (regcache_xfree): Don't declare.
2932 * regcache.c (regcache_xfree): Remove.
2933 (do_regcache_xfree): Use delete.
2934 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
2935 * linux-fork.c (free_fork): Use delete.
2936 (fork_save_infrun_state): Likewise.
2937 * jit.c (jit_dealloc_cache): Use delete.
2938 * infrun.c (discard_infcall_suspend_state): Use delete.
2939
2940 2017-09-25 Tom Tromey <tom@tromey.com>
2941
2942 * regcache.h (regcache_xmalloc): Don't declare.
2943 (regcache_raw_set_cached_value): Update comment.
2944 * regcache.c (regcache_xmalloc): Remove.
2945 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
2946 * jit.c (jit_frame_sniffer): Use new.
2947 * frame.c (frame_save_as_regcache): Use new.
2948
2949 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2950
2951 * NEWS: Advertise support for guarded-storage registers on IBM z.
2952
2953 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2954
2955 * s390-linux-nat.c (have_regset_gs): New static variable.
2956 (s390_linux_fetch_inferior_registers): Handle guarded-storage
2957 control block and guarded-storage broadcast control regsets.
2958 (s390_read_description): Detect whether the target has
2959 guarded-storage support, return appropriate tdesc.
2960 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
2961 (features/s390x-gs-linux64.c): Likewise.
2962 (struct gdbarch_tdep) <have_gs>: New field.
2963 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
2964 (s390_gsbc_regset): New variables.
2965 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
2966 and s390_gsbc_regset, if applicable.
2967 (s390_core_read_description): Check whether core file was from a
2968 target with guarded-storage support; include appropriate regsets.
2969 (s390_gdbarch_init): Add registers for guarded-storage support.
2970 (_initialize_s390_tdep): Initialize new target descriptions that
2971 include registers for guarded-storage support.
2972 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
2973 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
2974 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
2975 (S390_NUM_REGS): Adjust macro definition.
2976 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
2977 (tdesc_s390x_gs_linux64): New declarations.
2978
2979 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2980
2981 * features/s390-gs-linux64.xml: New file.
2982 * features/s390-gs.xml: New file.
2983 * features/s390-gsbc.xml: New file.
2984 * features/s390x-gs-linux64.xml: New file.
2985 * features/Makefile (WHICH): Add s390-gs-linux64 and
2986 s390x-gs-linux64.
2987 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
2988 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
2989 * features/s390-gs-linux64.c: New generated file.
2990 * features/s390x-gs-linux64.c: New file.
2991 * regformats/s390-gs-linux64.dat: New file.
2992 * regformats/s390x-gs-linux64.dat: New file.
2993
2994 2017-09-23 Tom Tromey <tom@tromey.com>
2995
2996 * defs.h (make_cleanup_override_quit_handler): Don't declare.
2997
2998 2017-09-22 Tom Tromey <tom@tromey.com>
2999
3000 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3001 type to scoped_restore_tmpl.
3002 <scoped_input_handler>: Initialize m_quit_handler directly.
3003
3004 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3005
3006 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3007 (cd_command): Likewise. Free "current_directory" before
3008 assigning to it.
3009 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3010 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3011 * top.c (gdb_dirbuf): Remove global declaration.
3012 * top.h (gdb_dirbuf): Likewise.
3013
3014 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3015
3016 * gnulib/aclocal.m4: Regenerate.
3017 * gnulib/config.in: Regenerate.
3018 * gnulib/configure: Regenerate.
3019 * gnulib/import/Makefile.am: Regenerate.
3020 * gnulib/import/Makefile.in: Regenerate.
3021 * gnulib/import/assure.h: New file.
3022 * gnulib/import/at-func.c: Likewise
3023 * gnulib/import/chdir-long.c: New file.
3024 * gnulib/import/chdir-long.h: New file.
3025 * gnulib/import/cloexec.c: New file.
3026 * gnulib/import/cloexec.h: New file.
3027 * gnulib/import/close.c: New file.
3028 * gnulib/import/closedir.c: New file.
3029 * gnulib/import/dirent-private.h: New file.
3030 * gnulib/import/dup-safer.c: New file.
3031 * gnulib/import/dup.c: New file.
3032 * gnulib/import/dup2.c: New file.
3033 * gnulib/import/error.c: New file.
3034 * gnulib/import/error.h: New file.
3035 * gnulib/import/exitfail.c: New file.
3036 * gnulib/import/exitfail.h: New file.
3037 * gnulib/import/fchdir.c: New file.
3038 * gnulib/import/fcntl.c: New file.
3039 * gnulib/import/fcntl.in.h: New file.
3040 * gnulib/import/fd-hook.c: New file.
3041 * gnulib/import/fd-hook.h: New file.
3042 * gnulib/import/fd-safer.c: New file.
3043 * gnulib/import/fdopendir.c: New file.
3044 * gnulib/import/filename.h: New file.
3045 * gnulib/import/filenamecat-lgpl.c: New file.
3046 * gnulib/import/filenamecat.h: New file.
3047 * gnulib/import/fstat.c: New file.
3048 * gnulib/import/fstatat.c: New file.
3049 * gnulib/import/getcwd-lgpl.c: New file.
3050 * gnulib/import/getcwd.c: New file.
3051 * gnulib/import/getdtablesize.c: New file.
3052 * gnulib/import/getlogin_r.c: New file.
3053 * gnulib/import/getprogname.c: New file.
3054 * gnulib/import/getprogname.h: New file.
3055 * gnulib/import/gettext.h: New file.
3056 * gnulib/import/glob-libc.h: New file.
3057 * gnulib/import/glob.c: New file.
3058 * gnulib/import/glob.in.h: New file.
3059 * gnulib/import/intprops.h: New file.
3060 * gnulib/import/m4/chdir-long.m4: New file.
3061 * gnulib/import/m4/close.m4: New file.
3062 * gnulib/import/m4/closedir.m4: New file.
3063 * gnulib/import/m4/d-ino.m4: New file.
3064 * gnulib/import/m4/d-type.m4: New file.
3065 * gnulib/import/m4/dup.m4: New file.
3066 * gnulib/import/m4/dup2.m4: New file.
3067 * gnulib/import/m4/error.m4: New file.
3068 * gnulib/import/m4/fchdir.m4: New file.
3069 * gnulib/import/m4/fcntl.m4: New file.
3070 * gnulib/import/m4/fcntl_h.m4: New file.
3071 * gnulib/import/m4/fdopendir.m4: New file.
3072 * gnulib/import/m4/filenamecat.m4: New file.
3073 * gnulib/import/m4/fstat.m4: New file.
3074 * gnulib/import/m4/fstatat.m4: New file.
3075 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3076 * gnulib/import/m4/getcwd-path-max.m4: New file.
3077 * gnulib/import/m4/getcwd.m4: New file.
3078 * gnulib/import/m4/getdtablesize.m4: New file.
3079 * gnulib/import/m4/getlogin_r.m4: New file.
3080 * gnulib/import/m4/getprogname.m4: New file.
3081 * gnulib/import/m4/glob.m4: New file.
3082 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3083 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3084 * gnulib/import/m4/mempcpy.m4: New file.
3085 * gnulib/import/m4/memrchr.m4: New file.
3086 * gnulib/import/m4/mode_t.m4: New file.
3087 * gnulib/import/m4/msvc-inval.m4: New file.
3088 * gnulib/import/m4/msvc-nothrow.m4: New file.
3089 * gnulib/import/m4/open.m4: New file.
3090 * gnulib/import/m4/openat.m4: New file.
3091 * gnulib/import/m4/opendir.m4: New file.
3092 * gnulib/import/m4/readdir.m4: New file.
3093 * gnulib/import/m4/realloc.m4: New file.
3094 * gnulib/import/m4/rewinddir.m4: New file.
3095 * gnulib/import/m4/save-cwd.m4: New file.
3096 * gnulib/import/m4/strdup.m4: New file.
3097 * gnulib/import/m4/strerror.m4: New file.
3098 * gnulib/import/m4/unistd-safer.m4: New file.
3099 * gnulib/import/mempcpy.c: New file.
3100 * gnulib/import/memrchr.c: New file.
3101 * gnulib/import/msvc-inval.c: New file.
3102 * gnulib/import/msvc-inval.h: New file.
3103 * gnulib/import/msvc-nothrow.c: New file.
3104 * gnulib/import/msvc-nothrow.h: New file.
3105 * gnulib/import/open.c: New file.
3106 * gnulib/import/openat-die.c: New file.
3107 * gnulib/import/openat-priv.h: New file.
3108 * gnulib/import/openat-proc.c: New file.
3109 * gnulib/import/openat.c: New file.
3110 * gnulib/import/openat.h: New file.
3111 * gnulib/import/opendir.c: New file.
3112 * gnulib/import/pipe-safer.c: New file.
3113 * gnulib/import/readdir.c: New file.
3114 * gnulib/import/realloc.c: New file.
3115 * gnulib/import/rewinddir.c: New file.
3116 * gnulib/import/save-cwd.c: New file.
3117 * gnulib/import/save-cwd.h: New file.
3118 * gnulib/import/strdup.c: New file.
3119 * gnulib/import/strerror-override.c: New file.
3120 * gnulib/import/strerror-override.h: New file.
3121 * gnulib/import/strerror.c: New file.
3122 * gnulib/import/unistd--.h: New file.
3123 * gnulib/import/unistd-safer.h: New file.
3124 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3125 "getcwd" and "glob".
3126 * ser-tcp.c: Undefine "close" before redefining it.
3127
3128 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3129
3130 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3131 get rid of res_val.
3132
3133 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3134
3135 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3136 <sol2,sparc>: Likewise.
3137 <sol2-64,i386>: Likewise.
3138
3139 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3140 -Wdeprecated-declarations on *-*-solaris*.
3141 * configure: Regenerate.
3142
3143 * procfs.c: Include "nat/inferior.h".
3144 (procfs_info_proc): Fix typo.
3145
3146 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3147
3148 * remote.c (vector): Include.
3149 (struct private_thread_info): Add field, thread_handle.
3150 (free_private_thread_info): Deallocate storage associated with
3151 thread handle.
3152 (get_private_info_thread): Initialize `thread_handle' field.
3153 (struct thread_item): Add field, thread_handle.
3154 (clear_threads_listing_context): Deallocate storage associated
3155 with thread handle.
3156 (start_thread): Add support for "handle" attribute.
3157 (thread_attributes): Add "handle".
3158 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3159 field.
3160 (remote_update_thread_list): Update thread_handle.
3161 (remote_thread_handle_to_thread_info): New function.
3162 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3163
3164 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3165
3166 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3167 function.
3168 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3169 * python/python-internal.h (thread_object_type): Declare.
3170
3171 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3172
3173 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3174 (target_thread_handle_to_thread_info): Declare.
3175 * target.c (target_thread_handle_to_thread_info): New function.
3176 * target-delegates.c: Regenerate.
3177 * gdbthread.h (find_thread_by_handle): Declare.
3178 * thread.c (find_thread_by_handle): New function.
3179 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3180 function.
3181 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3182
3183 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3184
3185 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3186
3187 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3188
3189 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3190
3191 2017-09-21 Yao Qi <yao.qi@linaro.org>
3192
3193 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3194 to gdb_target_obs.
3195
3196 2017-09-20 Tom Tromey <tom@tromey.com>
3197
3198 * breakpoint.c (struct counted_command_line): Remove.
3199 (breakpoint_commands): Update.
3200 (alloc_counted_command_line, incref_counted_command_line)
3201 (decref_counted_command_line, do_cleanup_counted_command_line)
3202 (make_cleanup_decref_counted_command_line): Remove.
3203 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3204 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3205 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3206 (save_breakpoints): Update.
3207 * breakpoint.h (counted_command_line): Now a typedef to
3208 shared_ptr.
3209 (struct breakpoint) <commands>: Now a counted_command_line.
3210 (struct bpstats) <command>: Likewise.
3211
3212 2017-09-20 Tom Tromey <tom@tromey.com>
3213
3214 * breakpoint.c (struct commands_info, do_map_commands_command):
3215 Remove.
3216 (commands_command_1): Update.
3217 (iterate_over_related_breakpoints): Take a function_view.
3218 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3219 (delete_command): Update.
3220 (map_breakpoint_numbers): Take a function_view.
3221 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3222 (disable_command): Update.
3223 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3224 (enable_command): Update.
3225 (struct disp_data, do_enable_breakpoint_disp)
3226 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3227 (do_map_enable_delete_breakpoint): Remove.
3228 (enable_once_command, enable_count_command, enable_delete_command)
3229 (delete_trace_variable_command): Update.
3230
3231 2017-09-20 Tom Tromey <tom@tromey.com>
3232
3233 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3234 (bpstat_clear): Use delete.
3235 (bpstats): New constructors.
3236 (bpstat_copy, bpstat_stop_status): Use new.
3237 (dprintf_after_condition_true): Update.
3238 * breakpoint.h (bpstats::bpstats): Add constructors.
3239 (bpstats::~bpstats): Add destructor.
3240
3241 2017-09-20 Pedro Alves <palves@redhat.com>
3242
3243 * eval.c (make_params): Delete, refactored as ...
3244 (class fake_method): ... this new type's ctor.
3245 (fake_method::~fake_method): New.
3246 (evaluate_subexp_standard): Use 'fake_method'.
3247
3248 2017-09-20 Tom Tromey <tom@tromey.com>
3249
3250 * windows-nat.c (get_windows_debug_event, windows_wait)
3251 (do_initial_windows_stuff, windows_attach): Update.
3252 * utils.c (vwarning, internal_vproblem): Update.
3253 (ui_unregister_input_event_handler_cleanup)
3254 (prepare_to_handle_input): Remove.
3255 (class scoped_input_handler): New.
3256 (defaulted_query, prompt_for_continue): Update.
3257 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3258 Update.
3259 * top.c (undo_terminal_modifications_before_exit): Update.
3260 * target/target.h (target_terminal_init, target_terminal_inferior)
3261 (target_terminal_ours): Don't declare.
3262 (class target_terminal): New.
3263 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3264 (target_terminal_ours_for_output)
3265 (make_cleanup_restore_target_terminal): Don't declare.
3266 (target_terminal_info): Remove.
3267 * target.c (enum terminal_state, terminal_state): Remove.
3268 (target_terminal::terminal_state): Define.
3269 (target_terminal::init): Rename from target_terminal_init.
3270 (target_terminal::inferior): Rename from
3271 target_terminal_inferior.
3272 (target_terminal::ours): Rename from target_terminal_ours.
3273 (target_terminal::ours_for_output): Rename from
3274 target_terminal_ours_for_output.
3275 (target_terminal::info): New method.
3276 (cleanup_restore_target_terminal)
3277 (make_cleanup_restore_target_terminal): Remove.
3278 * solib.c (handle_solib_event): Update.
3279 * remote.c (remote_serial_quit_handler): Update.
3280 (remote_terminal_inferior, remote_wait_as): Update.
3281 * record-full.c (record_full_wait_1): Update.
3282 * nto-procfs.c (procfs_create_inferior): Update.
3283 * nat/fork-inferior.c (startup_inferior): Update.
3284 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3285 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3286 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3287 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3288 (mi_breakpoint_created, mi_breakpoint_deleted)
3289 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3290 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3291 (mi_user_selected_context_changed, report_initial_inferior):
3292 Update.
3293 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3294 (linux_nat_terminal_inferior): Update.
3295 * infrun.c (follow_fork_inferior)
3296 (handle_vfork_child_exec_or_exit, do_target_resume)
3297 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3298 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3299 Update.
3300 * inflow.c (child_terminal_init, info_terminal_command): Update.
3301 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3302 (attach_command): Update.
3303 * infcall.c (call_thread_fsm_should_stop): Update.
3304 * gnu-nat.c (gnu_attach): Update.
3305 * extension.c (struct active_ext_lang_state)
3306 (restore_active_ext_lang): Update.
3307 * exceptions.c (print_flush): Update.
3308 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3309 (struct quit_handler_cleanup_data, restore_quit_handler)
3310 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3311 Remove.
3312 * cp-support.c (gdb_demangle): Update.
3313 * breakpoint.c (update_inserted_breakpoint_locations)
3314 (insert_breakpoint_locations, handle_jit_event)
3315 (disable_breakpoints_in_unloaded_shlib): Update.
3316 * annotate.c (annotate_breakpoints_invalid)
3317 (annotate_frames_invalid): Update.
3318
3319 2017-09-20 Tom Tromey <tom@tromey.com>
3320
3321 * main.c (catch_command_errors): Rename from
3322 catch_command_errors_const.
3323 (captured_main_1): Update.
3324
3325 2017-09-20 Pedro Alves <palves@redhat.com>
3326
3327 * cli/cli-cmds.c (list_command): Use print_sal_location.
3328 (print_sal_location): New function.
3329 (ambiguous_line_spec): Use print_sal_location.
3330 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3331 * symtab.c (find_function_start_sal): Likewise.
3332 * symtab.h (symtab_and_line::symbol): New field.
3333
3334 2017-09-20 Pedro Alves <palves@redhat.com>
3335
3336 * linespec.c (minsym_found): Handle non-text minsyms.
3337 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3338
3339 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3340
3341 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3342 backslash.
3343
3344 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3345
3346 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3347 vmovups instead vmovaps.
3348 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3349
3350 2017-09-19 John Baldwin <jhb@FreeBSD.org>
3351
3352 * NEWS (Changes since GDB 8.0): Add starti.
3353 * infcmd.c (enum run_break): New.
3354 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3355 case.
3356 (run_command): Use enum run_how.
3357 (start_command): Likewise.
3358 (starti_command): New function.
3359 (RUN_ARGS_HELP): New macro.
3360 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3361 commands. Add starti command.
3362
3363 2017-09-19 Yao Qi <yao.qi@linaro.org>
3364
3365 * Makefile.in (monitor.o): Remove the rule.
3366
3367 2017-09-19 Yao Qi <yao.qi@linaro.org>
3368
3369 * annotate.h (struct annotate_arg_emitter): Use
3370 DISABLE_COPY_AND_ASSIGN.
3371 * common/refcounted-object.h (refcounted_object): Likewise.
3372 * completer.h (struct completion_result): Likewise.
3373 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3374 * filename-seen-cache.h (filename_seen_cache): Likewise.
3375 * gdbcore.h (thread_section_name): Likewise.
3376 * gdb_regex.h (compiled_regex): Likewise.
3377 * gdbthread.h (scoped_restore_current_thread): Likewise.
3378 * inferior.h (scoped_restore_current_inferior): Likewise.
3379 * jit.c (jit_reader): Likewise.
3380 * linespec.h (struct linespec_result): Likewise.
3381 * mi/mi-parse.h (struct mi_parse): Likewise.
3382 * nat/fork-inferior.c (execv_argv): Likewise.
3383 * progspace.h (scoped_restore_current_program_space): Likewise.
3384 * python/python-internal.h (class gdbpy_enter): Likewise.
3385 * regcache.h (regcache): Likewise.
3386 * target-descriptions.c (struct tdesc_reg): Likewise.
3387 (struct tdesc_type): Likewise.
3388 (struct tdesc_feature): Likewise.
3389 * ui-out.h (ui_out_emit_type): Likewise.
3390
3391 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3392
3393 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3394 label abort_expression.
3395
3396 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3397
3398 * common/buffer.c (buffer_xml_printf): Adjust.
3399 * common/xml-utils.c (xml_escape_text): Change return type to
3400 std::string, update code accordingly.
3401 * common/xml-utils.h (xml_escape_text): Change return type to
3402 std::string.
3403 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3404 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3405 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3406 Adjust.
3407
3408 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3409
3410 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3411 (SUBDIR_UNITTESTS_OBS): Add new object file.
3412 * unittests/xml-utils-selftests.c: New file.
3413
3414 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3415
3416 * common/selftest.h (selftest): New struct/interface.
3417 (register_test): Add name parameter, add new overload.
3418 (run_tests): Add filter parameter.
3419 (for_each_selftest_ftype): New typedef.
3420 (for_each_selftest): New declaration.
3421 * common/selftest.c (tests): Change type to
3422 map<string, unique_ptr<selftest>>.
3423 (simple_selftest): New struct.
3424 (register_test): New function.
3425 (register_test): Add name parameter and use it.
3426 (run_tests): Add filter parameter and use it. Add prints.
3427 Adjust to vector -> map change.
3428 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3429 registering selftests.
3430 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3431 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3432 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3433 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3434 * findvar.c (_initialize_findvar): Likewise.
3435 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3436 * maint.c (maintenance_selftest): Update call to run_tests.
3437 (maintenance_info_selftests): New function.
3438 (_initialize_maint_cmds): Register "maintenance info selftests"
3439 command. Update "maintenance selftest" doc.
3440 * regcache.c (_initialize_regcache): Add names when registering
3441 selftests.
3442 * rust-exp.y (_initialize_rust_exp): Likewise.
3443 * selftest-arch.c (gdbarch_selftest): New struct.
3444 (gdbarch_tests): Remove.
3445 (register_test_foreach_arch): Add name parameter. Call
3446 register_test.
3447 (tests_with_arch): Remove, move most content to
3448 gdbarch_selftest::operator().
3449 (_initialize_selftests_foreach_arch): Remove.
3450 * selftest-arch.h (register_test_foreach_arch): Add name
3451 parameter.
3452 (run_tests_with_arch): New declaration.
3453 * utils-selftests.c (_initialize_utils_selftests): Add names
3454 when registering selftests.
3455 * utils.c (_initialize_utils): Likewise.
3456 * unittests/array-view-selftests.c
3457 (_initialize_array_view_selftests): Likewise.
3458 * unittests/environ-selftests.c (_initialize_environ_selftests):
3459 Likewise.
3460 * unittests/function-view-selftests.c
3461 (_initialize_function_view_selftests): Likewise.
3462 * unittests/offset-type-selftests.c
3463 (_initialize_offset_type_selftests): Likewise.
3464 * unittests/optional-selftests.c
3465 (_initialize_optional_selftests): Likewise.
3466 * unittests/scoped_restore-selftests.c
3467 (_initialize_scoped_restore_selftests): Likewise.
3468 * NEWS: Document "maintenance selftest" and "maint info
3469 selftests".
3470
3471 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3472
3473 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3474 scoped_restore.
3475
3476 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3477
3478 * mi/mi-main.c (mi_load_progress): Make uiout variable
3479 a unique_ptr.
3480
3481 2017-09-15 Pedro Alves <palves@redhat.com>
3482
3483 * compile/compile-c-types.c (convert_enum, convert_int)
3484 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3485
3486 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3487
3488 * dwarf2read.c (copy_string): Remove.
3489 (parse_macro_definition): Replace copy_string with savestring.
3490
3491 2017-09-15 Yao Qi <yao.qi@linaro.org>
3492
3493 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3494 gdb_target_obs.
3495 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3496 Likewise.
3497 (i[34567]86-*-linux*): Likewise.
3498
3499 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3500
3501 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3502 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3503 <stack>: Change type to std::vector.
3504 <stack_len, stack_allocated>: Remove.
3505 <grow_stack>: Remove.
3506 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3507 (dwarf_expr_context::~dwarf_expr_context): Remove.
3508 (dwarf_expr_context::grow_stack): Remove.
3509 (dwarf_expr_context::push): Adjust.
3510 (dwarf_expr_context::pop): Adjust.
3511 (dwarf_expr_context::fetch): Adjust.
3512 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3513 (dwarf_expr_context::stack_empty_p): Adjust.
3514 (dwarf_expr_context::execute_stack_op): Adjust.
3515
3516 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3517
3518 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3519 return type to bool.
3520 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3521
3522 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3523
3524 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3525 Change type to bool.
3526 (dwarf_stack_value) <in_stack_memory>: Likewise.
3527 (dwarf_expr_context) <push_address>: Change parameter type to
3528 bool.
3529 <fetch_in_stack_memory>: Change return type to bool.
3530 <push>: Change parameter type to bool.
3531 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3532 to bool.
3533 (dwarf_expr_context::push_address): Likewise.
3534 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3535 to bool.
3536 (dwarf_expr_context::execute_stack_op): Adjust.
3537 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3538
3539 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3540
3541 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3542 (struct dwarf_expr_context) <n_pieces>: Remove.
3543 <pieces>: Change type to std::vector.
3544 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3545 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3546 pieces.
3547 (dwarf_expr_context::add_piece): Adjust.
3548 * dwarf2loc.c (struct piece_closure): Initialize fields.
3549 <n_pieces>: Remove.
3550 <pieces>: Change type to std::vector.
3551 (allocate_piece_closure): Adjust, change parameter to
3552 std::vector rvalue and std::move it to piece_closure.
3553 (rw_pieced_value): Adjust.
3554 (check_pieced_synthetic_pointer): Adjust.
3555 (indirect_synthetic_pointer): Adjust.
3556 (coerce_pieced_ref): Adjust.
3557 (free_pieced_value_closure): Adjust. Use delete to free
3558 piece_closure.
3559 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3560 to allocate_piece_closure.
3561 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3562
3563 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3564
3565 * probe.h (probe_ops_cp): Remove typedef.
3566 (DEF_VEC_P (probe_ops_cp)): Remove.
3567 (all_probe_ops): Change type to std::vector.
3568 * probe.c (info_probes_for_ops): Adjust to vector change.
3569 (probe_linespec_to_ops): Likewise.
3570 (all_probe_ops): Change type to std::vector.
3571 (_initialize_probe): Adjust to vector change.
3572 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3573 * elfread.c (elf_get_probes): Likewise.
3574 * stap-probe.c (_initialize_stap_probe): Likewise.
3575
3576 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3577
3578 * probe.h (struct bound_probe): Define constructors.
3579 * probe.c (bound_probe_s): Remove typedef.
3580 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3581 (collect_probes): Change return type to std::vector, remove
3582 cleanup.
3583 (compare_probes): Return bool, change parameter type. Change
3584 semantic to "less than".
3585 (gen_ui_out_table_header_info): Change parameter to std::vector
3586 and update.
3587 (exists_probe_with_pops): Likewise.
3588 (info_probes_for_ops): Update to std::vector change.
3589 (enable_probes_command): Likewise.
3590 (disable_probes_command): Likewise.
3591
3592 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3593
3594 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3595 vec to std::vector.
3596 * probe.c (parse_probes_in_pspace): Update.
3597 (find_probes_in_objfile): Update.
3598 (find_probe_by_pc): Update.
3599 (collect_probes): Update.
3600 (probe_any_get_probes): Update.
3601 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3602 return type to reference to std::vector.
3603 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3604 std::vector and update.
3605 (dtrace_process_dof): Likewise.
3606 (dtrace_get_probes): Likewise.
3607 * elfread.c (elf_get_probes): Change return type to std::vector,
3608 store an std::vector in bfd_data.
3609 (probe_key_free): Update to std::vector.
3610 * stap-probe.c (handle_stap_probe): Change parameter to
3611 std::vector and update.
3612 (stap_get_probes): Likewise.
3613 * symfile-debug.c (debug_sym_get_probes): Change return type to
3614 std::vector and update.
3615
3616 2017-09-11 Tom Tromey <tom@tromey.com>
3617
3618 * breakpoint.c (program_breakpoint_here_p): Update.
3619 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3620 from make_show_memory_breakpoints_cleanup. Return a
3621 scoped_restore_tmpl<int>.
3622 (restore_show_memory_breakpoints): Remove.
3623 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3624 * mem-break.c (memory_validate_breakpoint): Update.
3625 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3626 (ia64_memory_remove_breakpoint): Update.
3627 (ia64_breakpoint_from_pc): Update.
3628 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3629 from make_show_memory_breakpoints_cleanup.
3630
3631 2017-09-11 Tom Tromey <tom@tromey.com>
3632
3633 * d-namespace.c (d_lookup_symbol): Use std::string.
3634 (find_symbol_in_baseclass): Likewise.
3635
3636 2017-09-11 Tom Tromey <tom@tromey.com>
3637
3638 * ctf.c (ctf_start): Use std::string.
3639
3640 2017-09-11 Tom Tromey <tom@tromey.com>
3641
3642 * ada-lang.c (is_known_support_routine): Update.
3643 (ada_unhandled_exception_name_addr_from_raise): Update.
3644 * guile/scm-frame.c (gdbscm_frame_name): Update.
3645 * python/py-frame.c (frapy_name): Update.
3646 (frapy_function): Update.
3647 * stack.h (find_frame_funname): Update.
3648 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3649 (print_frame): Update.
3650
3651 2017-09-11 Tom Tromey <tom@tromey.com>
3652
3653 * findcmd.c (put_bits): Take a gdb::byte_vector.
3654 (parse_find_args): Return gdb::byte_vector. "args" now const.
3655 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3656 cleanups.
3657 (find_command): Update.
3658
3659 2017-09-11 Tom Tromey <tom@tromey.com>
3660
3661 * cli/cli-script.c (class scoped_restore_hook_in): New.
3662 (clear_hook_in_cleanup): Remove.
3663 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3664 scoped_restore_hook_in.
3665
3666 2017-09-11 Tom Tromey <tom@tromey.com>
3667
3668 * cli/cli-script.c (restore_interp): Remove.
3669 (read_command_lines): Use scoped_restore_interp.
3670 * interps.c (scoped_restore_interp::set_temp): Rename from
3671 interp_set_temp.
3672 * interps.h (class scoped_restore_interp): New.
3673 (interp_set_temp): Remove.
3674
3675 2017-09-11 Tom Tromey <tom@tromey.com>
3676
3677 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3678 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3679 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3680 scoped_restore.
3681 (mi_cmd_break_insert_1): Update.
3682 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3683 scoped_restore.
3684
3685 2017-09-11 Tom Tromey <tom@tromey.com>
3686
3687 * demangle.c (demangle_command): Update.
3688 * breakpoint.c (disable_command): Update.
3689 (enable_command): Update.
3690 (find_location_by_number): Make "number" const. Use
3691 get_number_trailer.
3692 * cli/cli-utils.c (extract_arg): Return std::string.
3693 * probe.c (parse_probe_linespec): Update. Change types.
3694 (collect_probes): Take string arguments.
3695 (parse_probe_linespec): Likewise.
3696 (info_probes_for_ops): Update.
3697 (enable_probes_command): Update.
3698 (disable_probes_command): Update.
3699 * break-catch-sig.c (catch_signal_split_args): Update.
3700 * mi/mi-parse.c (mi_parse): Update.
3701
3702 2017-09-11 Tom Tromey <tom@tromey.com>
3703
3704 * language.h (language_enum): Make argument const.
3705 * language.c (language_enum): Make argument const.
3706
3707 2017-09-11 Tom Tromey <tom@tromey.com>
3708
3709 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3710 as function.
3711 (skip_to_space): Rename from skip_to_space_const.
3712 * common/common-utils.c (skip_to_space): New function.
3713 (skip_to_space): Rename from skip_to_space_const.
3714 * cli/cli-utils.h (get_number): Rename from get_number_const.
3715 (extract_arg): Rename from extract_arg_const.
3716 * cli/cli-utils.c (get_number): Rename from get_number_const.
3717 (extract_arg): Rename from extract_arg_const.
3718 (number_or_range_parser::get_number): Use ::get_number.
3719 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3720 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3721 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3722 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3723 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3724 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3725 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3726 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3727
3728 2017-09-11 Tom Tromey <tom@tromey.com>
3729
3730 * python/python.c (do_start_initialization): Use
3731 py-event-types.def to initialize types.
3732 Define all object type structures.
3733 * python/python-internal.h: Don't declare event initialization
3734 functions.
3735 * python/py-threadevent.c (thread_event_object_type): Don't
3736 define.
3737 * python/py-stopevent.c (stop_event_object_type): Don't define.
3738 * python/py-signalevent.c (signal_event_object_type): Don't
3739 declare or define.
3740 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3741 (clear_objfiles_event_object_type): Don't declare or define.
3742 * python/py-infevents.c (inferior_call_pre_event_object_type)
3743 (inferior_call_post_event_object_type)
3744 (register_changed_event_object_type)
3745 (memory_changed_event_object_type): Don't declare or define.
3746 * python/py-inferior.c (new_thread_event_object_type)
3747 (new_inferior_event_object_type)
3748 (inferior_deleted_event_object_type): Don't declare or define.
3749 * python/py-exitedevent.c (exited_event_object_type): Don't
3750 declare or define.
3751 * python/py-evts.c (gdbpy_initialize_py_events): Use
3752 py-all-events.def.
3753 * python/py-events.h (thread_event_object_type): Don't declare.
3754 (events_object): Use py-all-events.def.
3755 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3756 py-event-types.def.
3757 * python/py-event-types.def: New file.
3758 * python/py-continueevent.c (create_continue_event_object): Don't
3759 declare or define.
3760 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3761 declare or define.
3762 * python/py-all-events.def: New file.
3763
3764 2017-09-11 Tom Tromey <tom@tromey.com>
3765
3766 * python/py-threadevent.c (create_thread_event_object): Return
3767 gdbpy_ref.
3768 * python/py-stopevent.h (create_stop_event_object)
3769 (create_breakpoint_event_object, create_signal_event_object):
3770 Update.
3771 * python/py-stopevent.c (create_stop_event_object): Return
3772 gdbpy_ref.
3773 (emit_stop_event): Update.
3774 * python/py-signalevent.c (create_signal_event_object): Return
3775 gdbpy_ref.
3776 * python/py-infevents.c (create_inferior_call_event_object):
3777 Update.
3778 * python/py-event.h (create_event_object)
3779 (create_thread_event_object): Update.
3780 * python/py-event.c (create_event_object): Return gdbpy_ref.
3781 * python/py-continueevent.c: Return gdbpy_ref.
3782 * python/py-bpevent.c (create_breakpoint_event_object): Return
3783 gdbpy_ref.
3784
3785 2017-09-11 Tom Tromey <tom@tromey.com>
3786
3787 PR python/15622:
3788 * NEWS: Add entry.
3789 * python/python.c (do_start_initialization): Initialize new event
3790 types.
3791 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3792 (gdbpy_initialize_inferior_deleted_event)
3793 (gdbpy_initialize_new_thread_event): Declare.
3794 * python/py-threadevent.c (create_thread_event_object): Add option
3795 "thread" parameter.
3796 * python/py-inferior.c (new_thread_event_object_type)
3797 (new_inferior_event_object_type)
3798 (inferior_deleted_event_object_type): Declare.
3799 (python_new_inferior, python_inferior_deleted): New functions.
3800 (add_thread_object): Emit new_thread event.
3801 (gdbpy_initialize_inferior): Attach new functions to corresponding
3802 observers.
3803 (new_thread, new_inferior, inferior_deleted): Define new event
3804 types.
3805 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3806 registries.
3807 * python/py-events.h (events_object) <new_inferior,
3808 inferior_deleted, new_thread>: New fields.
3809 * python/py-event.h (create_thread_event_breakpoint): Add optional
3810 "thread" parameter.
3811
3812 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3813
3814 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3815 check current_ui instead.
3816 (internal_vproblem): Likewise.
3817
3818 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3819
3820 * thread.c (print_thread_info_1): Remove unnecessary calls to
3821 uiout->is_mi_like_p.
3822
3823 2017-09-09 Tom Tromey <tom@tromey.com>
3824
3825 * namespace.h (add_using_directive): Update.
3826 * namespace.c (add_using_directive): Change type of excludes to
3827 std::vector.
3828 * dwarf2read.c (read_import_statement): Use std::vector.
3829 (read_namespace): Update.
3830 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3831
3832 2017-09-09 Tom Tromey <tom@tromey.com>
3833
3834 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3835
3836 2017-09-09 Tom Tromey <tom@tromey.com>
3837
3838 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3839
3840 2017-09-09 Tom Tromey <tom@tromey.com>
3841
3842 * stack.c (func_command): Use gdb::def_vector.
3843
3844 2017-09-09 Tom Tromey <tom@tromey.com>
3845
3846 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3847 ui_out_emit_list, ui_out_emit_tuple.
3848 (mi_cmd_var_update): Likewise.
3849
3850 2017-09-09 Tom Tromey <tom@tromey.com>
3851
3852 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3853 ui_out_redirect_pop.
3854 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3855 ui_out_redirect_pop.
3856 * utils.c (do_ui_out_redirect_pop)
3857 (make_cleanup_ui_out_redirect_pop): Remove.
3858 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3859 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3860 * ui-out.h (ui_out_redirect_pop): New class.
3861
3862 2017-09-09 Tom Tromey <tom@tromey.com>
3863
3864 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3865 (list_available_thread_groups, mi_cmd_list_thread_groups)
3866 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3867 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3868 Likewise.
3869
3870 2017-09-09 Tom Tromey <tom@tromey.com>
3871
3872 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3873 ui_out_emit_tuple.
3874
3875 2017-09-09 Tom Tromey <tom@tromey.com>
3876
3877 * target.c (flash_erase_command): Use ui_out_emit_tuple.
3878 * stack.c (print_frame): Use ui_out_emit_tuple.
3879 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
3880 (info_spu_mailbox_command, info_spu_dma_command)
3881 (info_spu_proxydma_command): Likewise.
3882 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
3883 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
3884 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
3885 ui_out_emit_tuple.
3886 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
3887
3888 2017-09-09 Tom Tromey <tom@tromey.com>
3889
3890 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
3891 (class ui_out_emit_table): Update comment.
3892 * ui-out.c (do_cleanup_table_end)
3893 (make_cleanup_ui_out_table_begin_end): Remove.
3894 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
3895 (info_spu_dma_cmdlist): Likewise.
3896 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
3897 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
3898 ui_out_emit_table.
3899
3900 2017-09-09 Tom Tromey <tom@tromey.com>
3901
3902 * thread.c (print_thread_info_1): Use ui_out_emit_table,
3903 ui_out_emit_list, gdb::optional.
3904
3905 2017-09-09 John Baldwin <jhb@FreeBSD.org>
3906
3907 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
3908 prototype.
3909 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
3910 prototype.
3911 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
3912 prototype.
3913 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
3914 * ada-exp.y: Remove _initialize_ada_exp prototype.
3915 * ada-lang.c: Remove _initialize_ada_language prototype.
3916 * ada-tasks.c: Remove _initialize_tasks prototype.
3917 * addrmap.c: Remove _initialize_addrmap prototype.
3918 * agent.c: Remove _initialize_agent prototype.
3919 * aix-thread.c: Remove _initialize_aix_thread prototype.
3920 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
3921 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
3922 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
3923 prototype.
3924 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
3925 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
3926 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
3927 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
3928 prototype.
3929 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
3930 prototype.
3931 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
3932 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
3933 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
3934 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
3935 prototype.
3936 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
3937 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
3938 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
3939 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
3940 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3941 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
3942 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
3943 prototype.
3944 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
3945 prototype.
3946 * annotate.c: Remove _initialize_annotate prototype.
3947 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
3948 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
3949 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
3950 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
3951 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
3952 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
3953 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
3954 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
3955 prototype.
3956 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
3957 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
3958 * auto-load.c: Remove _initialize_auto_load prototype.
3959 * auxv.c: Remove _initialize_auxv prototype.
3960 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
3961 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
3962 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
3963 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
3964 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
3965 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
3966 prototype.
3967 * break-catch-throw.c: Remove _initialize_break_catch_throw
3968 prototype.
3969 * breakpoint.c: Remove _initialize_breakpoint prototype.
3970 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
3971 * btrace.c: Remove _initialize_btrace prototype.
3972 * charset.c: Remove _initialize_charset prototype.
3973 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
3974 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
3975 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
3976 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
3977 * cli/cli-script.c: Remove _initialize_cli_script prototype.
3978 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
3979 * coffread.c: Remove _initialize_coffread prototype.
3980 * compile/compile.c: Remove _initialize_compile prototype.
3981 * complaints.c: Remove _initialize_complaints prototype.
3982 * completer.c: Remove _initialize_completer prototype.
3983 * copying.awk: Remove _initialize_copying prototype.
3984 * copying.c: Regenerate.
3985 * core-regset.c: Remove _initialize_core_regset prototype.
3986 * corefile.c: Remove _initialize_core prototype.
3987 * corelow.c: Remove _initialize_corelow prototype.
3988 * cp-abi.c: Remove _initialize_cp_abi prototype.
3989 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
3990 * cp-support.c: Remove _initialize_cp_support prototype.
3991 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
3992 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
3993 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
3994 * ctf.c: Remove _initialize_ctf prototype.
3995 * d-lang.c: Remove _initialize_d_language prototype.
3996 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
3997 prototype.
3998 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
3999 * dbxread.c: Remove _initialize_dbxread prototype.
4000 * dcache.c: Remove _initialize_dcache prototype.
4001 * demangle.c: Remove _initialize_demangler prototype.
4002 * disasm-selftests.c: Remove _initialize_disasm_selftests
4003 prototype.
4004 * disasm.c: Remove _initialize_disasm prototype.
4005 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4006 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4007 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4008 prototype.
4009 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4010 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4011 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4012 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4013 * elfread.c: Remove _initialize_elfread prototype.
4014 * exec.c: Remove _initialize_exec prototype.
4015 * extension.c: Remove _initialize_extension prototype.
4016 * f-lang.c: Remove _initialize_f_language prototype.
4017 * f-valprint.c: Remove _initialize_f_valprint prototype.
4018 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4019 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4020 * filesystem.c: Remove _initialize_filesystem prototype.
4021 * findcmd.c: Remove _initialize_mem_search prototype.
4022 * fork-child.c: Remove _initialize_fork_child prototype.
4023 * frame-base.c: Remove _initialize_frame_base prototype.
4024 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4025 * frame.c: Remove _initialize_frame prototype.
4026 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4027 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4028 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4029 * gcore.c: Remove _initialize_gcore prototype.
4030 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4031 * gdbarch.c: Regenerate.
4032 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4033 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4034 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4035 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4036 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4037 * go-lang.c: Remove _initialize_go_language prototype.
4038 * go32-nat.c: Remove _initialize_go32_nat prototype.
4039 * guile/guile.c: Remove _initialize_guile prototype.
4040 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4041 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4042 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4043 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4044 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4045 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4046 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4047 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4048 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4049 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4050 prototype.
4051 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4052 prototype.
4053 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4054 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4055 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4056 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4057 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4058 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4059 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4060 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4061 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4062 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4063 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4064 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4065 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4066 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4067 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4068 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4069 prototype.
4070 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4071 prototype.
4072 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4073 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4074 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4075 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4076 * infcall.c: Remove _initialize_infcall prototype.
4077 * infcmd.c: Remove _initialize_infcmd prototype.
4078 * inferior.c: Remove _initialize_inferiors prototype.
4079 * inflow.c: Remove _initialize_inflow prototype.
4080 * infrun.c: Remove _initialize_infrun prototype.
4081 * interps.c: Remove _initialize_interpreter prototype.
4082 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4083 * jit.c: Remove _initialize_jit prototype.
4084 * language.c: Remove _initialize_language prototype.
4085 * linux-fork.c: Remove _initialize_linux_fork prototype.
4086 * linux-nat.c: Remove _initialize_linux_nat prototype.
4087 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4088 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4089 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4090 * m2-lang.c: Remove _initialize_m2_language prototype.
4091 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4092 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4093 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4094 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4095 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4096 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4097 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4098 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4099 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4100 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4101 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4102 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4103 * machoread.c: Remove _initialize_machoread prototype.
4104 * macrocmd.c: Remove _initialize_macrocmd prototype.
4105 * macroscope.c: Remove _initialize_macroscope prototype.
4106 * maint.c: Remove _initialize_maint_cmds prototype.
4107 * mdebugread.c: Remove _initialize_mdebugread prototype.
4108 * memattr.c: Remove _initialize_mem prototype.
4109 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4110 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4111 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4112 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4113 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4114 * microblaze-linux-tdep.c: Remove
4115 _initialize_microblaze_linux_tdep prototype.
4116 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4117 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4118 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4119 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4120 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4121 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4122 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4123 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4124 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4125 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4126 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4127 prototype.
4128 * mipsread.c: Remove _initialize_mipsread prototype.
4129 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4130 prototype.
4131 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4132 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4133 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4134 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4135 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4136 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4137 prototype.
4138 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4139 * nto-procfs.c: Remove _initialize_procfs prototype.
4140 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4141 * objc-lang.c: Remove _initialize_objc_language prototype.
4142 * objfiles.c: Remove _initialize_objfiles prototype.
4143 * observer.c: Remove observer_test_first_notification_function,
4144 observer_test_second_notification_function,
4145 observer_test_third_notification_function, and
4146 _initialize_observer prototypes.
4147 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4148 * osabi.c: Remove _initialize_gdb_osabi prototype.
4149 * osdata.c: Remove _initialize_osdata prototype.
4150 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4151 * parse.c: Remove _initialize_parse prototype.
4152 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4153 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4154 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4155 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4156 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4157 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4158 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4159 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4160 * printcmd.c: Remove _initialize_printcmd prototype.
4161 * probe.c: Remove _initialize_probe prototype.
4162 * proc-api.c: Remove _initialize_proc_api prototype.
4163 * proc-events.c: Remove _initialize_proc_events prototype.
4164 * proc-service.c: Remove _initialize_proc_service prototype.
4165 * procfs.c: Remove _initialize_procfs prototype.
4166 * psymtab.c: Remove _initialize_psymtab prototype.
4167 * python/python.c: Remove _initialize_python prototype.
4168 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4169 * record-btrace.c: Remove _initialize_record_btrace prototype.
4170 * record-full.c: Remove _initialize_record_full prototype.
4171 * record.c: Remove _initialize_record prototype.
4172 * regcache.c: Remove _initialize_regcache prototype.
4173 * reggroups.c: Remove _initialize_reggroup prototype.
4174 * remote-notif.c: Remove _initialize_notif prototype.
4175 * remote-sim.c: Remove _initialize_remote_sim prototype.
4176 * remote.c: Remove _initialize_remote prototype.
4177 * reverse.c: Remove _initialize_reverse prototype.
4178 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4179 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4180 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4181 prototype.
4182 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4183 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4184 * rust-exp.y: Remove _initialize_rust_exp prototype.
4185 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4186 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4187 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4188 * score-tdep.c: Remove _initialize_score_tdep prototype.
4189 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4190 prototype.
4191 * ser-go32.c: Remove _initialize_ser_dos prototype.
4192 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4193 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4194 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4195 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4196 * serial.c: Remove _initialize_serial prototype.
4197 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4198 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4199 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4200 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4201 * skip.c: Remove _initialize_step_skip prototype.
4202 * sol-thread.c: Remove _initialize_sol_thread prototype.
4203 * solib-aix.c: Remove _initialize_solib_aix prototype.
4204 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4205 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4206 * solib-frv.c: Remove _initialize_frv_solib prototype.
4207 * solib-spu.c: Remove _initialize_spu_solib prototype.
4208 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4209 * solib-target.c: Remove _initialize_solib_target prototype.
4210 * solib.c: Remove _initialize_solib prototype.
4211 * source.c: Remove _initialize_source prototype.
4212 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4213 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4214 prototype.
4215 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4216 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4217 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4218 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4219 prototype.
4220 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4221 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4222 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4223 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4224 prototype.
4225 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4226 prototype.
4227 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4228 prototype.
4229 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4230 prototype.
4231 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4232 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4233 prototype.
4234 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4235 prototype.
4236 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4237 prototype.
4238 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4239 prototype.
4240 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4241 prototype.
4242 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4243 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4244 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4245 * stabsread.c: Remove _initialize_stabsread prototype.
4246 * stack.c: Remove _initialize_stack prototype.
4247 * stap-probe.c: Remove _initialize_stap_probe prototype.
4248 * std-regs.c: Remove _initialize_frame_reg prototype.
4249 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4250 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4251 * symfile.c: Remove _initialize_symfile prototype.
4252 * symmisc.c: Remove _initialize_symmisc prototype.
4253 * symtab.c: Remove _initialize_symtab prototype.
4254 * target-dcache.c: Remove _initialize_target_dcache prototype.
4255 * target-descriptions.c: Remove _initialize_target_descriptions
4256 prototype.
4257 * thread.c: Remove _initialize_thread prototype.
4258 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4259 prototype.
4260 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4261 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4262 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4263 prototype.
4264 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4265 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4266 * tracefile.c: Remove _initialize_tracefile prototype.
4267 * tracepoint.c: Remove _initialize_tracepoint prototype.
4268 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4269 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4270 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4271 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4272 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4273 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4274 * tui/tui.c: Remove _initialize_tui prototype.
4275 * typeprint.c: Remove _initialize_typeprint prototype.
4276 * user-regs.c: Remove _initialize_user_regs prototype.
4277 * utils.c: Remove _initialize_utils prototype.
4278 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4279 * valarith.c: Remove _initialize_valarith prototype.
4280 * valops.c: Remove _initialize_valops prototype.
4281 * valprint.c: Remove _initialize_valprint prototype.
4282 * value.c: Remove _initialize_values prototype.
4283 * varobj.c: Remove _initialize_varobj prototype.
4284 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4285 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4286 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4287 * windows-nat.c: Remove _initialize_windows_nat,
4288 _initialize_check_for_gdb_ini, and _initialize_loadable
4289 prototypes.
4290 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4291 * xcoffread.c: Remove _initialize_xcoffread prototype.
4292 * xml-support.c: Remove _initialize_xml_support prototype.
4293 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4294 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4295 prototype.
4296 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4297 prototype.
4298 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4299
4300 2017-09-08 Keith Seitz <keiths@redhat.com>
4301
4302 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4303 field.
4304
4305 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4306
4307 * f-valprint.c (f_val_print): Remove check for one byte
4308 sized integers. Remove printing of character type.
4309
4310 2017-09-08 Frank Penczek <frank.penczek@intel.com>
4311 Christoph Weinmann <christoph.t.weinmann@intel.com>
4312 Bernhard Heckel <bernhard.heckel@intel.com>
4313
4314 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4315 to maintain proper indentation when printing pointers/refs.
4316
4317 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4318
4319 GDB 8.0.1 released.
4320
4321 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4322
4323 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4324
4325 2017-09-05 Tom Tromey <tom@tromey.com>
4326
4327 * parse.c (funcall_chain): Now a std::vector.
4328 (start_arglist, end_arglist): Simplify.
4329 (free_funcalls): Remove.
4330 (parse_exp_in_context_1): Remove cleanup.
4331
4332 2017-09-05 Tom Tromey <tom@tromey.com>
4333
4334 * go-exp.y (go_parse): Don't create a cleanup.
4335
4336 2017-09-05 Tom Tromey <tom@tromey.com>
4337
4338 * d-exp.y (PrimaryExpression): Use std::string.
4339 (d_parse): Don't create a cleanup.
4340
4341 2017-09-05 Tom Tromey <tom@tromey.com>
4342
4343 * utils.c (do_clear_parser_state): Remove.
4344 (make_cleanup_clear_parser_state): Remove.
4345 * p-exp.y (pascal_parse): Use scoped_restore.
4346 * m2-exp.y (m2_parse): Use scoped_restore.
4347 * f-exp.y (f_parse): Use scoped_restore.
4348 * d-exp.y (d_parse): Use scoped_restore.
4349 * c-exp.y (c_parse): Use scoped_restore.
4350 * ada-exp.y (ada_parse): Use scoped_restore.
4351 * utils.h (make_cleanup_clear_parser_state): Remove.
4352
4353 2017-09-06 Keith Seitz <keiths@redhat.com>
4354
4355 * dwarf2read.c (dw2_linkage_name_attr): New function.
4356 (dw2_linkage_name): New function.
4357 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4358 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4359 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4360
4361 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4362
4363 * config/djgpp/djconfig.sh: Correct shell portability issue.
4364
4365 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4366
4367 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4368
4369 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4370
4371 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4372 * NEWS: Mention new FreeBSD/mips native configuration.
4373 * configure.host: Add aarch64*-*-freebsd*.
4374 * configure.nat: Likewise.
4375 * aarch64-fbsd-nat.c: New file.
4376
4377 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4378
4379 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4380 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4381 * NEWS: Mention new FreeBSD/aarch64 target.
4382 * configure.tgt: Add aarch64*-*-freebsd*.
4383 * aarch64-fbsd-tdep.c: New file.
4384 * aarch64-fbsd-tdep.h: New file.
4385
4386 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4387
4388 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4389
4390 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4391
4392 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4393 of TLS symbols.
4394
4395 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4396
4397 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4398 call.
4399
4400 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4401
4402 * infrun.c (follow_exec): Call add_thread after
4403 target_find_description.
4404
4405 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4406
4407 * infrun.c (handle_inferior_event_1): When exec'ing, read
4408 stop_pc after follow_exec.
4409
4410 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4411
4412 * remote.c (process_g_packet): Update error message.
4413
4414 2017-09-05 Yao Qi <yao.qi@linaro.org>
4415
4416 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4417 targets.
4418
4419 2017-09-05 Pedro Alves <palves@redhat.com>
4420
4421 * eval.c (eval_call, evaluate_funcall): New functions, factored
4422 out from ...
4423 (evaluate_subexp_standard): ... this.
4424
4425 2017-09-05 Yao Qi <yao.qi@linaro.org>
4426
4427 * amd64-tdep.c (amd64_target_description): Create target
4428 descriptions.
4429 (_initialize_amd64_tdep): Don't call functions
4430 initialize_tdesc_amd64_*. Add self tests.
4431 * arch/amd64.c (amd64_create_target_description): Add parameter
4432 is_linux. Call set_tdesc_osabi if is_linux is true.
4433 * arch/amd64.h (amd64_create_target_description): Update the
4434 declaration.
4435 * arch/i386.c (i386_create_target_description): Add parameter
4436 is_linux. Call set_tdesc_osabi if is_linux is true.
4437 * arch/i386.h (i386_create_target_description): Update
4438 declaration.
4439 * configure.tgt: Add i386.o to gdb_target_obs.
4440 * features/Makefile (XMLTOC): Remove i386/*.xml.
4441 * features/i386/amd64-avx-avx512.c: Remove.
4442 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4443 * features/i386/amd64-avx-mpx.c: Remove.
4444 * features/i386/amd64-avx.c: Remove.
4445 * features/i386/amd64-mpx.c: Remove.
4446 * features/i386/amd64.c: Remove.
4447 * features/i386/i386-avx-avx512.c: Remove.
4448 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4449 * features/i386/i386-avx-mpx.c: Remove.
4450 * features/i386/i386-avx.c: Remove.
4451 * features/i386/i386-mmx.c: Remove.
4452 * features/i386/i386-mpx.c: Remove.
4453 * features/i386/i386.c: Remove.
4454 * i386-tdep.c: Don't include features/i386/i386*.c., include
4455 target-descriptions.h and arch/i386.h.
4456 (i386_target_description): Create target descriptions.
4457 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4458 functions. Do self tests.
4459
4460 2017-09-05 Yao Qi <yao.qi@linaro.org>
4461
4462 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4463 * features/i386/amd64-avx-avx512-linux.c: Removed.
4464 * features/i386/amd64-avx-linux.c: Removed.
4465 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4466 * features/i386/amd64-avx-mpx-linux.c: Removed.
4467 * features/i386/amd64-linux.c: Removed.
4468 * features/i386/amd64-mpx-linux.c: Removed.
4469 * features/i386/x32-avx-avx512-linux.c: Removed.
4470 * features/i386/x32-avx-linux.c: Removed.
4471 * features/i386/x32-linux.c: Removed.
4472
4473 2017-09-05 Yao Qi <yao.qi@linaro.org>
4474
4475 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4476 features/i386/*.c.
4477 (amd64_linux_read_description): Call
4478 amd64_create_target_description.
4479 * arch/amd64.c: New file.
4480 * arch/amd64.h: New file.
4481 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4482 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4483
4484 2017-09-05 Yao Qi <yao.qi@linaro.org>
4485
4486 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4487 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4488 (amd64_linux_read_description): Create target descriptions.
4489 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4490 functions. Add unit tests.
4491 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4492 x32-core.xml.
4493 * features/i386/64bit-avx.c: Generated.
4494 * features/i386/64bit-avx512.c: Generated.
4495 * features/i386/64bit-core.c: Generated.
4496 * features/i386/64bit-linux.c: Generated.
4497 * features/i386/64bit-mpx.c: Generated.
4498 * features/i386/64bit-pkeys.c: Generated.
4499 * features/i386/64bit-segments.c: Generated.
4500 * features/i386/64bit-sse.c: Generated.
4501 * features/i386/x32-core.c: Generated.
4502 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4503 c files for amd64-linux and x32-linux.
4504
4505 2017-09-05 Yao Qi <yao.qi@linaro.org>
4506
4507 * amd64-linux-tdep.c (amd64_linux_read_description): New
4508 function.
4509 (amd64_linux_core_read_description): Call
4510 amd64_linux_read_description.
4511 (amd64_linux_init_abi): Likewise.
4512 (amd64_x32_linux_init_abi): Likewise.
4513 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4514 * x86-linux-nat.c (x86_linux_read_description): Call
4515 amd64_linux_read_description.
4516
4517 2017-09-05 Yao Qi <yao.qi@linaro.org>
4518
4519 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4520 comments.
4521
4522 2017-09-05 Yao Qi <yao.qi@linaro.org>
4523
4524 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4525 * features/i386/i386-avx-avx512-linux.c: Remove.
4526 * features/i386/i386-avx-linux.c: Remove.
4527 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4528 * features/i386/i386-avx-mpx-linux.c: Remove.
4529 * features/i386/i386-linux.c: Remove.
4530 * features/i386/i386-mmx-linux.c: Remove.
4531 * features/i386/i386-mpx-linux.c: Remove.
4532
4533 2017-09-05 Yao Qi <yao.qi@linaro.org>
4534
4535 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4536 (SFILES): Add arch/i386.c.
4537 (HFILES_NO_SRCDIR): Add arch/i386.h.
4538 * arch/i386.c: New file.
4539 * arch/i386.h: New file.
4540 * arch/tdesc.h (allocate_target_description): Declare.
4541 (set_tdesc_architecture): Declare.
4542 (set_tdesc_osabi): Declare.
4543 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4544 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4545 include arch/i386.h.
4546 (i386_linux_read_description): Remove code and call
4547 i386_create_target_description.
4548 (set_tdesc_architecture): New function.
4549 (set_tdesc_osabi): New function.
4550 * target-descriptions.h (allocate_target_description): Remove.
4551
4552 2017-09-05 Yao Qi <yao.qi@linaro.org>
4553
4554 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4555 * target-descriptions.c (tdesc_create_feature): Likewise, and
4556 adjust code.
4557 * features/i386/32bit-avx.c: Re-generated.
4558 * features/i386/32bit-avx512.c: Re-generated.
4559 * features/i386/32bit-core.c: Re-generated.
4560 * features/i386/32bit-linux.c: Re-generated.
4561 * features/i386/32bit-mpx.c: Re-generated.
4562 * features/i386/32bit-pkeys.c: Re-generated.
4563 * features/i386/32bit-sse.c: Re-generated.
4564
4565 2017-09-05 Yao Qi <yao.qi@linaro.org>
4566
4567 * regformats/regdef.h (struct reg): Override operator == and !=.
4568
4569 2017-09-05 Yao Qi <yao.qi@linaro.org>
4570
4571 * arch/tdesc.h: New file.
4572 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4573 * target-descriptions.c: Update comments.
4574 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4575 declarations.
4576 * features/i386/32bit-avx.c: Re-generated.
4577 * features/i386/32bit-avx512.c: Re-generated.
4578 * features/i386/32bit-core.c: Re-generated.
4579 * features/i386/32bit-linux.c: Re-generated.
4580 * features/i386/32bit-mpx.c: Re-generated.
4581 * features/i386/32bit-pkeys.c: Re-generated.
4582 * features/i386/32bit-sse.c: Re-generated.
4583
4584 2017-09-05 Yao Qi <yao.qi@linaro.org>
4585
4586 * regformats/regdat.sh: Update generated code.
4587
4588 2017-09-05 Yao Qi <yao.qi@linaro.org>
4589
4590 * regformats/regdat.sh: Adjust code order.
4591
4592 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4593
4594 * expprint.c (dump_subexp_body_standard): Use constant format
4595 string in fprintf_filtered call.
4596
4597 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4598
4599 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4600 NetBSD/i386.
4601 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4602
4603 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4604
4605 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4606
4607 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4608
4609 * bsd-kvm.o: Define _KMEMUSER.
4610 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4611 * configure: Regenerate.
4612
4613 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4614
4615 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4616 * i386-fbsd-nat.c: Likewise.
4617
4618 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4619
4620 * unittests/array-view-selftests.c: Add include of <array>.
4621
4622 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4623
4624 * spu-tdep.c (flush_ea_cache): Add missing argument to
4625 call_function_by_hand.
4626
4627 2017-09-04 Pedro Alves <palves@redhat.com>
4628
4629 * NEWS (Safer support for debugging with no debug info): New.
4630
4631 2017-09-04 Pedro Alves <palves@redhat.com>
4632
4633 * c-exp.y (function_method, function_method_void): Add current
4634 instance flags to TYPE_INSTANCE.
4635 * dwarf2read.c (check_modifier): New.
4636 (compute_delayed_physnames): Assert that only C++ adds delayed
4637 physnames. Mark fn_fields as const/volatile depending on
4638 physname.
4639 * eval.c (make_params): New type_instance_flags parameter. Use
4640 it as the new type's instance flags.
4641 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4642 flags element and pass it to make_params.
4643 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4644 instance flags element.
4645 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4646 * gdbtypes.h: Include "enum-flags.h".
4647 (type_instance_flags): New enum-flags type.
4648 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4649 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4650 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4651 (follow_type_instance_flags): New function.
4652 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4653 * parser-defs.h (follow_type_instance_flags): Declare.
4654 * valops.c (value_struct_elt_for_reference): const/volatile must
4655 match too.
4656
4657 2017-09-04 Pedro Alves <palves@redhat.com>
4658
4659 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4660 function/method scopes; lookup the nested name as a function local
4661 static variable.
4662
4663 2017-09-04 Pedro Alves <palves@redhat.com>
4664
4665 (%type <voidval>): Add function_method.
4666 * c-exp.y (exp): New production for calls with no arguments.
4667 (function_method, function_method_void_or_typelist): New
4668 productions.
4669 (exp): New production for "method()::static_var".
4670 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4671 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4672 Handle OP_FUNC_STATIC_VAR.
4673 * parse.c (operator_length_standard):
4674 Handle OP_FUNC_STATIC_VAR.
4675
4676 2017-09-04 Pedro Alves <palves@redhat.com>
4677
4678 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4679 handling.
4680 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4681 Ditto.
4682 * parse.c (operator_length_standard, operator_check_standard):
4683 Ditto.
4684 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4685
4686 2017-09-04 Pedro Alves <palves@redhat.com>
4687
4688 * ax-gdb.c: Include "typeprint.h".
4689 (gen_expr_for_cast): New function.
4690 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4691 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4692 type is unknown.
4693 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4694 nodebug_data_symbol.
4695 * eval.c: Include "typeprint.h".
4696 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4697 Error out if symbol has unknown type.
4698 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4699 evaluate_subexp_for_cast.
4700 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4701 OP_VAR_MSYM_VALUE.
4702 (evaluate_subexp_for_cast): New function.
4703 * gdbtypes.c (init_nodebug_var_type): New function.
4704 (objfile_type): Use it to initialize types of variables with no
4705 debug info.
4706 * typeprint.c (error_unknown_type): New.
4707 * typeprint.h (error_unknown_type): New declaration.
4708 * compile/compile-c-types.c (convert_type_basic): Handle
4709 TYPE_CODE_ERROR; warn and fallback to int for variables with
4710 unknown type.
4711
4712 2017-09-04 Pedro Alves <palves@redhat.com>
4713
4714 * eval.c (evaluate_var_value): New function, factored out from ...
4715 (evaluate_subexp_standard): ... here.
4716
4717 2017-09-04 Pedro Alves <palves@redhat.com>
4718
4719 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4720 Remove useless assignments to 'op'.
4721
4722 2017-09-04 Pedro Alves <palves@redhat.com>
4723
4724 * eval.c (eval_skip_value): New function.
4725 (evaluate_subexp_standard): Use it.
4726
4727 2017-09-04 Pedro Alves <palves@redhat.com>
4728
4729 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4730 function name from symbol/minsym and pass it to
4731 error_call_unknown_return_type.
4732
4733 2017-09-04 Pedro Alves <palves@redhat.com>
4734
4735 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4736 * ax-gdb.c (gen_msym_var_ref): New function.
4737 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4738 * eval.c (evaluate_var_msym_value): New function.
4739 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4740 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4741 to call_function_by_hand.
4742 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4743 Handle OP_VAR_MSYM_VALUE.
4744 (union exp_element) <msymbol>: New field.
4745 * minsyms.h (struct type): Forward declare.
4746 (find_minsym_type_and_address): Declare.
4747 * parse.c (write_exp_elt_msym): New function.
4748 (write_exp_msymbol): Delete, refactored as ...
4749 (find_minsym_type_and_address): ... this new function.
4750 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4751 (operator_length_standard, operator_check_standard): Handle
4752 OP_VAR_MSYM_VALUE.
4753 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4754
4755 2017-09-04 Pedro Alves <palves@redhat.com>
4756
4757 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4758 TYPE_GNU_IFUNC specially here. Throw error if return type is
4759 unknown.
4760 * ada-typeprint.c (print_func_type): Handle functions with unknown
4761 return type.
4762 * c-typeprint.c (c_type_print_base): Handle functions and methods
4763 with unknown return type.
4764 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4765 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4766 * compile/compile-c-types.c: Include "objfiles.h".
4767 (convert_func): For functions with unknown return type, warn and
4768 default to int.
4769 * compile/compile-object-run.c (compile_object_run): Adjust call
4770 to call_function_by_hand_dummy.
4771 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4772 call_function_by_hand.
4773 * eval.c (evaluate_subexp_standard): Adjust calls to
4774 call_function_by_hand. Handle functions and methods with unknown
4775 return type. Pass expect_type to call_function_by_hand.
4776 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4777 return type.
4778 * gcore.c (call_target_sbrk): Adjust call to
4779 call_function_by_hand.
4780 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4781 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4782 an integer address type instead of nodebug.
4783 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4784 call_function_by_hand.
4785 * infcall.c (error_call_unknown_return_type): New function.
4786 (call_function_by_hand): New "default_return_type" parameter.
4787 Pass it down.
4788 (call_function_by_hand_dummy): New "default_return_type"
4789 parameter. Use it instead of defaulting to int. If there's no
4790 default and the return type is unknown, throw an error. If
4791 there's a default return type, and the called function has no
4792 debug info, then assume the function is prototyped.
4793 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4794 New "default_return_type" parameter.
4795 (error_call_unknown_return_type): New declaration.
4796 * linux-fork.c (call_lseek): Cast return type of lseek.
4797 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4798 call_function_by_hand.
4799 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4800 calls to call_function_by_hand.
4801 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4802 return type.
4803 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4804 (value_nsstring, print_object_command): Adjust calls to
4805 call_function_by_hand.
4806 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4807 functions with unknown return type.
4808 (pascal_type_print_func_varspec_suffix): New function.
4809 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4810 TYPE_CODE_METHOD>: Use it.
4811 * python/py-value.c (valpy_call): Adjust call to
4812 call_function_by_hand.
4813 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4814 call_function_by_hand.
4815 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4816 call_function_by_hand.
4817 * valops.c (value_allocate_space_in_inferior): Adjust call to
4818 call_function_by_hand.
4819 * typeprint.c (type_print_unknown_return_type): New function.
4820 * typeprint.h (type_print_unknown_return_type): New declaration.
4821
4822 2017-09-04 Pedro Alves <palves@redhat.com>
4823
4824 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4825 types with more than one parameter as prototyped.
4826
4827 2017-09-04 Pedro Alves <palves@redhat.com>
4828
4829 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4830 (disassemble_command): Use gdb_disassembly_flags instead of bare
4831 int.
4832 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4833 (dump_insns, do_mixed_source_and_assembly_deprecated)
4834 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4835 Use gdb_disassembly_flags instead of bare int.
4836 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4837 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4838 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4839 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4840 (enum gdb_disassembly_flag): ... values of this new enumeration.
4841 (gdb_disassembly_flags): Define.
4842 (gdb_disassembly)
4843 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4844 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4845 gdb_disassembly_flags instead of bare int.
4846 * record-btrace.c (btrace_insn_history)
4847 (record_btrace_insn_history, record_btrace_insn_history_range)
4848 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4849 instead of bare int.
4850 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4851 Use gdb_disassembly_flags instead of bare int.
4852 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4853 Define.
4854 * target-delegates.c: Regenerate.
4855 * target.c (target_insn_history, target_insn_history_from)
4856 (target_insn_history_range): Use gdb_disassembly_flags instead of
4857 bare int.
4858 * target.h: Include "disasm.h".
4859 (struct target_ops) <to_insn_history, to_insn_history_from,
4860 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4861 int.
4862 (target_insn_history, target_insn_history_from)
4863 (target_insn_history_range): Use gdb_disassembly_flags instead of
4864 bare int.
4865
4866 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4867
4868 * cli/cli-script.c (build_command_line): For if/while commands,
4869 check whether args is empty.
4870
4871 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4872
4873 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
4874 (enum command_control_type): Likewise.
4875 (struct command_line): Likewise.
4876 (free_command_lines): Likewise.
4877 (struct command_lines_deleter): Likewise.
4878 (command_line_up): Likewise.
4879 (read_command_lines): Likewise.
4880 (read_command_lines_1): Likewise.
4881 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
4882 (enum command_control_type): Likewise.
4883 (struct command_line): Likewise.
4884 (free_command_lines): Likewise.
4885 (struct command_lines_deleter): Likewise.
4886 (command_line_up): Likewise.
4887 (read_command_lines): Likewise.
4888 (read_command_lines_1): Likewise.
4889 * breakpoint.h: Include cli/cli-script.h.
4890 * extension-priv.h: Likewise.
4891 * gdbcmd.h: Likewise.
4892
4893 2017-09-04 Pedro Alves <palves@redhat.com>
4894
4895 * ada-lang.c (is_known_support_routine): Move sal declaration to
4896 where it is initialized.
4897 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
4898 (parse_breakpoint_sals, decode_static_tracepoint_spec)
4899 (clear_command, update_static_tracepoint): Remove init_sal
4900 references. Move declarations closer to initializations.
4901 * cli/cli-cmds.c (list_command): Move sal declarations closer to
4902 initializations.
4903 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
4904 references. Move sal declarations closer to initializations.
4905 * frame.c (find_frame_sal): Return a symtab_and_line via function
4906 return instead of output parameter. Remove init_sal references.
4907 * frame.h (find_frame_sal): Return a symtab_and_line via function
4908 return instead of output parameter.
4909 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
4910 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
4911 instead of memset.
4912 (gdbscm_find_pc_line): Remove init_sal reference.
4913 * infcall.c (call_function_by_hand_dummy): Remove init_sal
4914 references. Move declarations closer to initializations.
4915 * infcmd.c (set_step_frame): Update. Move declarations closer to
4916 initializations.
4917 (finish_backward): Remove init_sal references. Move declarations
4918 closer to initializations.
4919 * infrun.c (process_event_stop_test, handle_step_into_function)
4920 (insert_hp_step_resume_breakpoint_at_frame)
4921 (insert_step_resume_breakpoint_at_caller): Likewise.
4922 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
4923 (symbol_to_sal): Likewise.
4924 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
4925 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
4926 to its initialization.
4927 * reverse.c (save_bookmark_command): Use new/delete. Remove
4928 init_sal references. Move declarations closer to initializations.
4929 * source.c (get_current_source_symtab_and_line): Remove brace
4930 initialization.
4931 (set_current_source_symtab_and_line): Now takes the sal by const
4932 reference. Remove brace initialization.
4933 (line_info): Remove init_sal reference.
4934 * source.h (set_current_source_symtab_and_line): Now takes a
4935 symtab_and_line via const reference.
4936 * stack.c (set_current_sal_from_frame): Adjust.
4937 (print_frame_info): Adjust.
4938 (get_last_displayed_sal): Return the sal via function return
4939 instead of via output parameter. Simplify.
4940 (frame_info): Adjust.
4941 * stack.h (get_last_displayed_sal): Return the sal via function
4942 return instead of via output parameter.
4943 * symtab.c (init_sal): Delete.
4944 (find_pc_sect_line): Remove init_sal references. Move
4945 declarations closer to initializations.
4946 (find_function_start_sal): Remove init_sal references. Move
4947 declarations closer to initializations.
4948 * symtab.h (struct symtab_and_line): In-class initialize all
4949 fields.
4950 * tracepoint.c (set_traceframe_context)
4951 (print_one_static_tracepoint_marker): Remove init_sal references.
4952 Move declarations closer to initializations.
4953 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
4954 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
4955 declarations closer to initializations.
4956 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
4957 init_sal references. Adjust.
4958
4959 2017-09-04 Pedro Alves <palves@redhat.com>
4960
4961 * ax-gdb.c (agent_command_1): Use range-for.
4962 * break-catch-throw.c (re_set_exception_catchpoint): Update.
4963 * breakpoint.c: Include "common/array-view.h".
4964 (init_breakpoint_sal, create_breakpoint_sal): Change sals
4965 parameter from struct symtabs_and_lines to
4966 array_view<symtab_and_line>. Adjust. Use range-for. Update.
4967 (breakpoint_sals_to_pc): Change sals parameter from struct
4968 symtabs_and_lines to std::vector reference.
4969 (check_fast_tracepoint_sals): Change sals parameter from struct
4970 symtabs_and_lines to std::array_view. Use range-for.
4971 (decode_static_tracepoint_spec): Return a std::vector instead of
4972 symtabs_and_lines. Update.
4973 (create_breakpoint): Update.
4974 (break_range_command, until_break_command, clear_command): Update.
4975 (base_breakpoint_decode_location, bkpt_decode_location)
4976 (bkpt_probe_create_sals_from_location)
4977 (bkpt_probe_decode_location, tracepoint_decode_location)
4978 (tracepoint_probe_decode_location)
4979 (strace_marker_create_sals_from_location): Return a std::vector
4980 instead of symtabs_and_lines.
4981 (strace_marker_create_breakpoints_sal): Update.
4982 (strace_marker_decode_location): Return a std::vector instead of
4983 symtabs_and_lines. Update.
4984 (update_breakpoint_locations): Change struct symtabs_and_lines
4985 parameters to gdb::array_view. Adjust.
4986 (location_to_sals): Return a std::vector instead of
4987 symtabs_and_lines. Update.
4988 (breakpoint_re_set_default): Use std::vector instead of struct
4989 symtabs_and_lines.
4990 (decode_location_default): Return a std::vector instead of
4991 symtabs_and_lines. Update.
4992 * breakpoint.h: Include "common/array-view.h".
4993 (struct breakpoint_ops) <decode_location>: Now returns a
4994 std::vector instead of returning a symtabs_and_lines via output
4995 parameter.
4996 (update_breakpoint_locations): Change sals parameters to use
4997 gdb::array_view.
4998 * cli/cli-cmds.c (edit_command, list_command): Update to use
4999 std::vector and gdb::array_view.
5000 (ambiguous_line_spec): Adjust to use gdb::array_view and
5001 range-for.
5002 (compare_symtabs): Rename to ...
5003 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5004 const reference and adjust.
5005 (filter_sals): Rewrite using std::vector and standard algorithms.
5006 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5007 (jump_command): Update to use std::vector.
5008 * linespec.c (struct linespec_state) <canonical_names>: Update
5009 comment.
5010 (add_sal_to_sals_basic): Delete.
5011 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5012 (decode_line_2, create_sals_line_offset)
5013 (convert_address_location_to_sals, convert_linespec_to_sals)
5014 (convert_explicit_location_to_sals, parse_linespec)
5015 (event_location_to_sals, decode_line_full, decode_line_1)
5016 (decode_line_with_current_source)
5017 (decode_line_with_last_displayed, decode_objc)
5018 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5019 (linespec_result::~linespec_result): Adjust to use std::vector
5020 instead of symtabs_and_lines.
5021 * linespec.h (linespec_sals::sals): Now a std::vector.
5022 (struct linespec_result): Use std::vector, bool, and in-class
5023 initialization.
5024 (decode_line_1, decode_line_with_current_source)
5025 (decode_line_with_last_displayed): Return std::vector.
5026 * macrocmd.c (info_macros_command): Use std::vector.
5027 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5028 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5029 std::vector.
5030 * probe.h (parse_probes): Return a std::vector.
5031 * python/python.c (gdbpy_decode_line): Use std::vector and
5032 gdb::array_view.
5033 * source.c (select_source_symtab, line_info): Use std::vector.
5034 * stack.c (func_command): Use std::vector.
5035 * symtab.h (struct symtabs_and_lines): Delete.
5036 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5037
5038 2017-09-04 Pedro Alves <palves@redhat.com>
5039
5040 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5041 unittests/array-view-selftests.c.
5042 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5043 * common/array-view.h: New file.
5044 * unittests/array-view-selftests.c: New file.
5045
5046 2017-09-04 Pedro Alves <palves@redhat.com>
5047
5048 * cli/cli-cmds.c (edit_command): Pass message to
5049 ambiguous_line_spec.
5050 (list_command): Pass message to ambiguous_line_spec. Say
5051 "first"/"last" instead of "start" and "end" to be consistent with
5052 the manual.
5053 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5054 them to print formatted message.
5055
5056 2017-09-04 Pedro Alves <palves@redhat.com>
5057
5058 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5059 ftrace_update_insns by reference instead of pointer.
5060
5061 2017-09-04 Yao Qi <yao.qi@linaro.org>
5062
5063 * i386-go32-tdep.c: Include x86-xstate.h.
5064 (i386_go32_init_abi): Call i386_target_description.
5065 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5066 if xcr0 is X86_XSTATE_X87_MASK.
5067 * i386-tdep.h (tdesc_i386): Remove the declaration.
5068 (tdesc_i386_mmx): Likewise.
5069
5070 2017-09-04 Yao Qi <yao.qi@linaro.org>
5071
5072 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5073 X86_XSTATE_SSE_MASK instead of 0.
5074
5075 2017-09-04 Yao Qi <yao.qi@linaro.org>
5076
5077 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5078 i386_target_description.
5079 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5080 i386_target_description.
5081 * i386-tdep.c (i386_gdbarch_init): Likewise.
5082
5083 2017-09-04 Yao Qi <yao.qi@linaro.org>
5084
5085 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5086 (x86_darwin_init_abi_64): Call amd64_target_description.
5087 * amd64-dicos-tdep.c: Likewise.
5088 * amd64-fbsd-nat.c: Likewise.
5089 * amd64-fbsd-tdep.c: Likewise.
5090 * amd64-nbsd-tdep.c: Likewise.
5091 * amd64-obsd-tdep.c: Likewise.
5092 * amd64-sol2-tdep.c: Likewise.
5093 * amd64-windows-tdep.c: Likewise.
5094 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5095
5096 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5097
5098 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5099 (btrace_function) <insn>: Change type to use std::vector.
5100 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5101 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5102 ftrace_update_insns, ftrace_compute_global_level_offset,
5103 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5104 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5105 change to std::vector.
5106 (ftrace_update_insns): Adjust to change to std::vector, change
5107 type of INSN parameter.
5108 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5109 * record-btrace.c (btrace_call_history_insn_range,
5110 btrace_compute_src_line_range,
5111 record_btrace_frame_prev_register): Adjust to change to
5112 std::vector.
5113 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5114 to change to std::vector.
5115
5116 2017-09-03 Tom Tromey <tom@tromey.com>
5117
5118 * corefile.c (reopen_exec_file): Use std::string.
5119
5120 2017-09-03 Tom Tromey <tom@tromey.com>
5121
5122 * compile/compile.c (compile_register_name_mangled): Return
5123 std::string.
5124 * compile/compile-loc2c.c (pushf_register_address): Update.
5125 (pushf_register): Update.
5126 * compile/compile-c-types.c (convert_array): Update.
5127 * compile/compile-c-symbols.c (generate_vla_size): Update.
5128 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5129 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5130 (convert_one_symbol): Update.
5131 (generate_c_for_for_one_variable): Update.
5132 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5133 std::string.
5134 (generate_register_struct): Update.
5135 * compile/compile-internal.h (c_get_range_decl_name): Return a
5136 std::string.
5137 (compile_register_name_mangled): Return std::string.
5138
5139 2017-09-03 Tom Tromey <tom@tromey.com>
5140
5141 * utils.c (perror_string): Return a std::string.
5142 (throw_perror_with_name, perror_warning_with_name): Update.
5143
5144 2017-09-03 Tom Tromey <tom@tromey.com>
5145
5146 * demangle.c (demangle_command): Use std::string,
5147 unique_xmalloc_ptr.
5148
5149 2017-09-03 Tom Tromey <tom@tromey.com>
5150
5151 * cli/cli-setshow.c (do_set_command): Use std::string.
5152
5153 2017-09-03 Tom Tromey <tom@tromey.com>
5154
5155 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5156
5157 2017-09-03 Tom Tromey <tom@tromey.com>
5158
5159 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5160
5161 2017-09-03 Tom Tromey <tom@tromey.com>
5162
5163 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5164 gdb::unique_xmalloc_ptr.
5165
5166 2017-09-03 Tom Tromey <tom@tromey.com>
5167
5168 * thread.c (print_thread_info_1): Use string_printf.
5169 (thread_apply_command, thread_apply_all_command): Use
5170 std::string.
5171
5172 2017-09-03 Tom Tromey <tom@tromey.com>
5173
5174 * valprint.c (val_print_string): Update.
5175 * gdbcore.h (memory_error_message): Return std::string.
5176 * corefile.c (memory_error_message): Return std::string.
5177 (memory_error): Update.
5178 * breakpoint.c (insert_bp_location): Update.
5179
5180 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5181
5182 * target/waitstatus.h (target_waitstatus_to_string): Change
5183 return type to std::string.
5184 * target/waitstatus.c (target_waitstatus_to_string): Return
5185 std::string.
5186 * target.h (target_waitstatus_to_string): Remove declaration.
5187 * infrun.c (resume, clear_proceed_status_thread,
5188 print_target_wait_results, do_target_wait, save_waitstatus,
5189 stop_all_threads): Adjust.
5190 * record-btrace.c (record_btrace_wait): Adjust.
5191 * target-debug.h
5192 (target_debug_print_struct_target_waitstatus_p): Adjust.
5193
5194 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5195
5196 PR gdb/22046
5197 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5198 detection.
5199
5200 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5201
5202 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5203 for setting/unsetting environment variables on the remote target.
5204 (New remote packets): Add entries for QEnvironmentHexEncoded,
5205 QEnvironmentUnset and QEnvironmentReset.
5206 * common/environ.c (gdb_environ::operator=): Extend method to
5207 handle m_user_set_env_list and m_user_unset_env_list.
5208 (gdb_environ::clear): Likewise.
5209 (match_var_in_string): Change type of first parameter from 'char
5210 *' to 'const char *'.
5211 (gdb_environ::set): Extend method to handle
5212 m_user_set_env_list and m_user_unset_env_list.
5213 (gdb_environ::unset): Likewise.
5214 (gdb_environ::clear_user_set_env): New method.
5215 (gdb_environ::user_set_envp): Likewise.
5216 (gdb_environ::user_unset_envp): Likewise.
5217 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5218 m_user_unset_env_list on move constructor/assignment.
5219 (unset): Add new default parameter 'update_unset_list = true'.
5220 (clear_user_set_env): New method.
5221 (user_set_envp): Likewise.
5222 (user_unset_envp): Likewise.
5223 (m_user_set_env_list): New std::set.
5224 (m_user_unset_env_list): Likewise.
5225 * common/rsp-low.c (hex2str): New function.
5226 (bin2hex): New overload for bin2hex function.
5227 * common/rsp-low.c (hex2str): New prototype.
5228 (str2hex): New overload prototype.
5229 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5230 QEnvironmentUnset and QEnvironmentReset.
5231 (remote_protocol_features): Add QEnvironmentHexEncoded,
5232 QEnvironmentUnset and QEnvironmentReset packets.
5233 (send_environment_packet): New function.
5234 (extended_remote_environment_support): Likewise.
5235 (extended_remote_create_inferior): Call
5236 extended_remote_environment_support.
5237 (_initialize_remote): Add QEnvironmentHexEncoded,
5238 QEnvironmentUnset and QEnvironmentReset packet configs.
5239 * unittests/environ-selftests.c (gdb_selftest_env_var):
5240 New variable.
5241 (test_vector_initialization): New function.
5242 (test_init_from_host_environ): Likewise.
5243 (test_reinit_from_host_environ): Likewise.
5244 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5245 Likewise.
5246 (test_unset_set_empty_vector): Likewise.
5247 (test_vector_clear): Likewise.
5248 (test_std_move): Likewise.
5249 (test_move_constructor):
5250 (test_self_move): Likewise.
5251 (test_set_unset_reset): Likewise.
5252 (run_tests): Rewrite in terms of the functions above.
5253
5254 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
5255
5256 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5257 (adi_available): Use a temp variable of type CORE_ADDR as argument
5258 3 when calling target_auxv_search.
5259 (adi_normalize_address): Use masks and xor operators to calculate
5260 normalized address.
5261 (adi_read_versions, adi_write_versions, adi_print_versions)
5262 (do_examine, do_assign): Use paddress.
5263
5264 2017-08-29 John Baldwin <jhb@FreeBSD.org>
5265
5266 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5267 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5268 out of loop and add supply of FIR.
5269 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5270 add collect of FIR.
5271
5272 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5273
5274 PR gdb/21827
5275 * cli/cli-script.c (define_command): Don't convert command name
5276 to lower case.
5277
5278 2017-08-25 Joel Brobecker <brobecker@adacore.com>
5279
5280 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5281 Update all callers accordingly. Remove all code blocks handling
5282 the case where DISPP is not NULL.
5283
5284 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5285
5286 PR symtab/22003
5287 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5288 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5289 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5290
5291 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5292
5293 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5294 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5295 (read_comp_units_from_section): New parameter abbrev_section, use
5296 read_and_check_comp_unit_head, allocate signatured_type if needed.
5297 (create_all_comp_units): Update read_comp_units_from_section caller.
5298
5299 2017-08-23 Pedro Alves <palves@redhat.com>
5300
5301 PR remote/21852
5302 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5303 to null_ptid and switch to thread without reading the registers
5304 after adding the inferior.
5305
5306 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5307
5308 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5309 compile-gcc.
5310 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5311 (compile_to_object): Implement compile_gcc.
5312 (_initialize_compile): Install "set compile-gcc". Initialize
5313 compile_gcc.
5314
5315 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5316
5317 * compile/compile.c (compile_to_object): Conditionally call
5318 set_verbose. Conditionally call compile or compile_v0.
5319
5320 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
5321
5322 * sparc64-tdep.h: (adi_normalize_address): New export.
5323 * sparc-nat.h: (open_adi_tag_fd): New export.
5324 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5325 * sparc64-linux-tdep.c:
5326 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5327 (sparc64_linux_handle_segmentation_fault): New function.
5328 (sparc64_linux_init_abi): Register
5329 sparc64_linux_handle_segmentation_fault
5330 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5331 (sparc64_addr_bits_remove): New function.
5332 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5333 (MAX_PROC_NAME_SIZE): New macro.
5334 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5335 (sparc64adilist): New variable.
5336 (adi_proc_list): New variable.
5337 (find_adi_info): New function.
5338 (add_adi_info): New function.
5339 (get_adi_info_proc): New function.
5340 (get_adi_info): New function.
5341 (info_adi_command): New function.
5342 (read_maps_entry): New function.
5343 (adi_available): New function.
5344 (adi_normalize_address): New function.
5345 (adi_align_address): New function.
5346 (adi_convert_byte_count): New function.
5347 (adi_tag_fd): New function.
5348 (adi_is_addr_mapped): New function.
5349 (adi_read_versions): New function.
5350 (adi_write_versions): New function.
5351 (adi_print_versions): New function.
5352 (do_examine): New function.
5353 (do_assign): New function.
5354 (adi_examine_command): New function.
5355 (adi_assign_command): New function.
5356 (_initialize_sparc64_adi_tdep): New function.
5357
5358 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5359
5360 * breakpoint.c (breakpoints_info): Rename to ...
5361 (info_breakpoints_command): ... this.
5362 (watchpoints_info): Rename to ...
5363 (info_watchpoints_command): ... this.
5364 (tracepoints_info): Rename to ...
5365 (info_tracepoints_command): ... this.
5366 (_initialize_breakpoint): Adjust.
5367 * dcache.c (dcache_info): Rename to ...
5368 (info_display_command): ... this.
5369 (_initialize_dcache): Adjust.
5370 * frame.h (args_info): Rename to ...
5371 (info_args_command): ... this.
5372 (locals_info): Rename to ...
5373 (info_locals_command): ... this.
5374 * infcmd.c (nofp_registers_info): Rename to ...
5375 (info_registers_command): ... this.
5376 (float_info): Rename to ...
5377 (info_float_command): ... this.
5378 (program_info): Rename to ...
5379 (info_program_command): ... this.
5380 (all_registers_info): Rename to ...
5381 (info_all_registers_command): ... this.
5382 (vector_info): Rename to ...
5383 (info_vector_command): ... this.
5384 (float_info): Rename to ...
5385 (info_float_command): ... this.
5386 (_initialize_infcmd): Adjust.
5387 * inferior.h (term_info): Rename to ...
5388 (info_terminal_command): ... this.
5389 * inflow.c (term_info): Rename to ...
5390 (info_terminal_command): ... this.
5391 (_initialize_inflow): Adjust.
5392 * infrun.c (signals_info): Rename to ...
5393 (info_signals_command): ... this.
5394 (_initialize_infrun): Adjust.
5395 * objc-lang.c (classes_info): Rename to ...
5396 (info_classes_command): ... this.
5397 (selectors_info): Rename to ...
5398 (info_selectors_command): ... this.
5399 (_initialize_objc_language): Adjust.
5400 * printcmd.c (sym_info): Rename to ...
5401 (info_symbol_command): ... this.
5402 (address_info): Rename to ...
5403 (info_address_command): ... this.
5404 (display_info): Rename to ...
5405 (info_display_command): ... this.
5406 (_initialize_printcmd): Adjust.
5407 * reverse.c (bookmarks_info): Rename to ...
5408 (info_breakpoints_command): ... this.
5409 (_initialize_reverse): Adjust.
5410 * ser-go32.c (dos_info): Rename to ...
5411 (info_serial_command): ... this.
5412 (_initialize_ser_dos): Adjust.
5413 * skip.c (skip_info): Rename to ...
5414 (info_skip_command): ... this.
5415 (_initialize_step_skip): Adjust.
5416 * source.c (line_info): Rename to ...
5417 (info_line_command): ... this.
5418 (source_info): Rename to ...
5419 (info_source_command)
5420 * stack.c (frame_info): Rename to ...
5421 (info_frame_command): ... this.
5422 (locals_info): Rename to ...
5423 (info_locals_command): ... this.
5424 (args_info): Rename to ...
5425 (info_args_command): ... this.
5426 (_initialize_stack): Adjust.
5427 * symtab.c (sources_info): Rename to ...
5428 (info_sources_command): ... this.
5429 (variables_info): Rename to ...
5430 (info_variables_command): ... this.
5431 (functions_info): Rename to ...
5432 (info_functions_command): ... this.
5433 (types_info): Rename to ...
5434 (info_types_command): ... this.
5435 (_initialize_symtab): Adjust.
5436 * target.c (target_info): Rename to ...
5437 (info_target_command): ... this.
5438 (initialize_targets): Adjust.
5439 * tracepoint.c (tvariables_info): Rename to ...
5440 (info_tvariables_command): ... this.
5441 (scope_info): Rename to ...
5442 (info_scope_command): ... this.
5443 (trace_dump_actions): Adjust.
5444 (_initialize_tracepoint): Adjust.
5445
5446 2017-08-22 Tom Tromey <tom@tromey.com>
5447
5448 * breakpoint.h (install_breakpoint): Update.
5449 * breakpoint.c (add_solib_catchpoint): Update.
5450 (install_breakpoint): Change argument to a std::unique_ptr.
5451 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5452 (create_breakpoint_sal, create_breakpoint): Update.
5453 (watch_command_1, catch_exec_command_1)
5454 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5455 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5456 Return the breakpoint.
5457 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5458 (new_single_step_breakpoint): Update.
5459 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5460 std::unique_ptr.
5461 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5462 std::unique_ptr.
5463 * break-catch-sig.c (create_signal_catchpoint): Use
5464 std::unique_ptr.
5465 * ada-lang.c (create_ada_exception_catchpoint): Use
5466 std::unique_ptr.
5467
5468 2017-08-22 Tom Tromey <tom@tromey.com>
5469
5470 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5471
5472 2017-08-22 Tom Tromey <tom@tromey.com>
5473
5474 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5475 (lookup_partial_symbol): Update.
5476
5477 2017-08-22 Tom Tromey <tom@tromey.com>
5478
5479 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5480 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5481 (find_and_open_source, symtab_to_fullname): Update.
5482 * psymtab.c (psymtab_to_fullname): Update.
5483
5484 2017-08-22 Tom Tromey <tom@tromey.com>
5485
5486 * exec.c (exec_file_attach): Update.
5487 * linux-thread-db.c (try_thread_db_load): Update.
5488 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5489 * utils.c (gdb_realpath): Change return type.
5490 (gdb_realpath_keepfile): Update.
5491 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5492 (_initialize_utils): Register the new self test.
5493 * source.c (openp): Update.
5494 (find_and_open_source): Update.
5495 * nto-tdep.c (nto_find_and_open_solib): Update.
5496 * main.c (set_gdb_data_directory): Update.
5497 (captured_main_1): Update.
5498 * dwarf2read.c (dwarf2_get_dwz_file): Update
5499 (dw2_map_symbol_filenames): Update.
5500 * auto-load.c (auto_load_safe_path_vec_update): Update.
5501 (filename_is_in_auto_load_safe_path_vec): Change type of
5502 "filename_realp".
5503 (auto_load_objfile_script): Update.
5504 (file_is_auto_load_safe): Update. Use std::string.
5505 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5506
5507 2017-08-22 Tom Tromey <tom@tromey.com>
5508
5509 * utils.c (gdb_realpath_keepfile): Return a
5510 gdb::unique_xmalloc_ptr.
5511 * exec.c (exec_file_attach): Update.
5512 * utils.h (gdb_realpath_keepfile): Return a
5513 gdb::unique_xmalloc_ptr.
5514
5515 2017-08-22 Tom Tromey <tom@tromey.com>
5516
5517 * compile/compile.c (compile_file_command): Use
5518 gdb::unique_xmalloc_ptr, std::string.
5519 * utils.c (gdb_abspath): Change return type.
5520 * source.c (openp): Update.
5521 * objfiles.c (allocate_objfile): Update.
5522 * main.c (set_gdb_data_directory): Update.
5523 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5524
5525 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5526
5527 * cli-cmds.c (list_commands): List actual code around more than
5528 one location.
5529
5530 2017-08-21 John Baldwin <jhb@FreeBSD.org>
5531
5532 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5533
5534 2017-08-21 Pedro Alves <palves@redhat.com>
5535
5536 PR gdb/19487
5537 * c-exp.y (variable production): Handle function aliases.
5538 * minsyms.c (msymbol_is_text): New function.
5539 * minsyms.h (msymbol_is_text): Declare.
5540 * symtab.c (find_function_alias_target): New function.
5541 * symtab.h (find_function_alias_target): Declare.
5542
5543 2017-08-21 Pedro Alves <palves@redhat.com>
5544
5545 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5546 typedefs.
5547 * typeprint.c (whatis_exp): If handling "whatis", and expression
5548 is OP_TYPE, strip one typedef level. Otherwise don't strip
5549 typedefs here.
5550 * valops.c (value_cast): Save "to" type before resolving
5551 stubs/typedefs. Use that type as resulting value's type.
5552
5553 2017-08-18 Tom Tromey <tom@tromey.com>
5554 Pedro Alves <palves@redhat.com>
5555
5556 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5557 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5558 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5559 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5560 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5561 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5562 (linux_get_siginfo_data): Add "thread" argument. Use
5563 scoped_restore.
5564 * linux-nat.c (linux_child_follow_fork)
5565 (check_stopped_by_watchpoint): Use scoped_restore.
5566 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5567 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5568 (restore_inferior_ptid, save_inferior_ptid): Remove.
5569 * btrace.c (btrace_fetch): Use scoped_restore.
5570 * bsd-uthread.c (bsd_uthread_fetch_registers)
5571 (bsd_uthread_store_registers): Use scoped_restore.
5572 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5573 scoped_restore.
5574 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5575 (aix_thread_xfer_partial): Use scoped_restore.
5576 * inferior.h (save_inferior_ptid): Remove.
5577
5578 2017-08-18 Yao Qi <yao.qi@linaro.org>
5579
5580 PR tdep/21818
5581 * arm-tdep.c (gdb_print_insn_arm): Mark
5582 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5583
5584 2017-08-18 Yao Qi <yao.qi@linaro.org>
5585
5586 * NEWS: Mention GDBserver's new option "--selftest".
5587 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5588 * selftest.c: Move it to common/selftest.c.
5589 * selftest.h: Move it to common/selftest.h.
5590 * selftest-arch.c (reset): New function.
5591 (tests_with_arch): Call reset.
5592
5593 2017-08-18 Yao Qi <yao.qi@linaro.org>
5594
5595 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5596 instead of exception_fprintf and printf_filtered.
5597
5598 2017-08-18 Yao Qi <yao.qi@linaro.org>
5599
5600 * selftest.c (register_self_test): Rename it to
5601 selftests::register_test.
5602 (run_self_tests): selftest::run_tests.
5603 * selftest.h: Update declarations.
5604 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5605 selftests::register_test_foreach_arch.
5606 * selftest-arch.h: Update declaration.
5607 * aarch64-tdep.c: Update.
5608 * arm-tdep.c: Likewise.
5609 * disasm-selftests.c: Likewise.
5610 * dwarf2loc.c: Likewise.
5611 * dwarf2-frame.c: Likewise.
5612 * findvar.c: Likewise.
5613 * gdbarch-selftests.c: Likewise.
5614 * maint.c (maintenance_selftest): Likewise.
5615 * regcache.c: Likewise.
5616 * rust-exp.y: Likewise.
5617 * selftest-arch.c: Likewise.
5618 * unittests/environ-selftests.c: Likewise.
5619 * unittests/function-view-selftests.c: Likewise.
5620 * unittests/offset-type-selftests.c: Likewise.
5621 * unittests/optional-selftests.c: Likewise.
5622 * unittests/scoped_restore-selftests.c: Likewise.
5623 * utils-selftests.c: Likewise.
5624
5625 2017-08-17 Pedro Alves <palves@redhat.com>
5626
5627 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5628 local.
5629
5630 2017-08-17 Pedro Alves <palves@redhat.com>
5631
5632 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5633 field.
5634 (reset_die_in_process): Delete, replaced by ...
5635 (process_die_scope): ... this new class. Make it responsible for
5636 freeing cu->line_header too.
5637 (process_die): Use process_die_scope.
5638 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5639 cu->line_header_die_owner. Don't release the line header if it's
5640 owned by the CU.
5641 (setup_type_unit_groups): Make the CU/DIE own the line header.
5642 Don't release the line header here.
5643
5644 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5645
5646 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5647
5648 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5649
5650 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5651 Single-Key mode
5652
5653 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5654
5655 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5656 mode command list.
5657
5658 2017-08-15 Stafford Horne <shorne@gmail.com>
5659
5660 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5661
5662 2017-08-15 Stafford Horne <shorne@gmail.com>
5663
5664 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5665
5666 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5667
5668 PR gdb/21954
5669 * infcmd.c (unset_environment_command): Use the 'clear' method on
5670 the environment instead of resetting it.
5671
5672 2017-08-15 John Baldwin <jhb@FreeBSD.org>
5673
5674 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5675 platforms.
5676
5677 2017-08-14 Tom Tromey <tom@tromey.com>
5678
5679 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5680 (print_binary_chars): Likewise.
5681 (BITS_IN_BYTES): Remove.
5682
5683 2017-08-14 Tom Tromey <tom@tromey.com>
5684
5685 PR gdb/21675
5686 * valprint.c (LOW_ZERO): Change value to 034.
5687 (print_octal_chars): Add static_asserts for octal constants.
5688 * printcmd.c (print_scalar_formatted): Add 'd' case.
5689
5690 2017-08-11 Tom Tromey <tom@tromey.com>
5691
5692 * symfile.c (add_symbol_file_command): Use std::vector.
5693
5694 2017-08-14 Tom Tromey <tom@tromey.com>
5695
5696 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5697 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5698 std::move.
5699 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5700
5701 2017-08-11 Pedro Alves <palves@redhat.com>
5702
5703 * infrun.c (process_event_stop_test): Adjust
5704 function_name_is_marked_for_skip call.
5705 * skip.c: Include <list>.
5706 (skiplist_entry): Make it a class with private fields, and
5707 getters/setters.
5708 (skiplist_entry_chain): Delete.
5709 (skiplist_entries): New.
5710 (skiplist_entry_count): Delete.
5711 (highest_skiplist_entry_num): New.
5712 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5713 (add_skiplist_entry): Delete.
5714 (skiplist_entry::skiplist_entry): New.
5715 (skiplist_entry::add_entry): New.
5716 (skip_file_command, skip_function): Adjust.
5717 (compile_skip_regexp): Delete.
5718 (skip_command): Don't compile regexp here. Adjust to use
5719 skiplist_entry::add_entry.
5720 (skip_info): Adjust to use range-for and getters.
5721 (skip_enable_command, skip_disable_command): Adjust to use
5722 range-for and setters.
5723 (skip_delete_command): Adjust to use std::list.
5724 (add_skiplist_entry): Delete.
5725 (skip_file_p): Delete, refactored as ...
5726 (skiplist_entry::do_skip_file_p): ... this new method.
5727 (skip_gfile_p): Delete, refactored as ...
5728 (skiplist_entry::do_gskip_file_p): ... this new method.
5729 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5730 (skiplist_entry::skip_function_p): ... this new method.
5731 (function_name_is_marked_for_skip): Now returns bool, and takes
5732 the function sal by const reference. Adjust to use range-for and
5733 skiplist_entry methods.
5734 (_initialize_step_skip): Remove references to
5735 skiplist_entry_chain, skiplist_entry_count.
5736 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5737 takes the function sal by const reference.
5738
5739 2017-08-11 Yao Qi <yao.qi@linaro.org>
5740
5741 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5742 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5743 (dwarf2_frame_cache):
5744 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5745 RETURN_MASK_ALL and set *this_case to NULL.
5746 * frame-unwind.h: Update comments.
5747
5748 2017-08-11 Yao Qi <yao.qi@linaro.org>
5749
5750 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5751 (dwarf2_frame_state_copy_regs): Remove.
5752 (dwarf2_frame_state_free_regs): Remove.
5753 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5754 (dwarf2_restore_rule): Call method .alloc_regs instead of
5755 dwarf2_frame_state_alloc_regs.
5756 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5757 constructor. Call std::move.
5758 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5759 (dwarf2_frame_cache): Likewise.
5760
5761 [GDB_SELF_TEST]: Include selftest.h and
5762 selftest-arch.h.
5763 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5764 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5765 execute_cfa_program_test.
5766
5767 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5768 copy ctor, assignment operator, move assignment.
5769 <alloc_regs>: New method.
5770 <swap>: New method.
5771 (struct dwarf2_frame_state): Delete dtor.
5772 (dwarf2_frame_state_alloc_regs): Remove declaration.
5773 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5774 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5775
5776 2017-08-11 Yao Qi <yao.qi@linaro.org>
5777
5778 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5779 (dwarf2_frame_state::dwarf2_frame_state): New.
5780 (dwarf2_frame_state::~dwarf2_frame_state): New.
5781 (dwarf2_fetch_cfa_info): Update.
5782 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5783 rather than a pointer. Update code.
5784 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5785 dtor.
5786 <data_align, code_align, retaddr_column>: Change them to const.
5787 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5788 to bool.
5789
5790 2017-08-11 Yao Qi <yao.qi@linaro.org>
5791
5792 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5793 <loc.exp>: New field.
5794 * dwarf2-frame.c (execute_cfa_program): Update.
5795 (dwarf2_frame_prev_register): Update.
5796
5797 2017-08-10 Pedro Alves <palves@redhat.com>
5798
5799 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5800
5801 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5802
5803 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5804 (fbsd_pending_children): Use std::list.
5805 (fbsd_remember_child): Likewise.
5806 (fbsd_is_child_pending): Likewise.
5807 (fbsd_pending_vfork_done): Use std::forward_list.
5808 (fbsd_add_vfork_done): Likewise.
5809 (fbsd_is_vfork_done_pending): Likewise.
5810 (fbsd_next_vfork_done): Likewise.
5811
5812 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5813
5814 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5815 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5816 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5817 for `mapfilename'.
5818 (fbsd_xfer_partial): Use gdb::byte_vector.
5819 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
5820
5821 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5822
5823 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5824 "filestuff.h".
5825 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5826
5827 2017-08-09 Tom Tromey <tom@tromey.com>
5828
5829 * skip.c (skiplist_entry): New constructor.
5830 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5831 (skiplist_entry::file_is_glob): Now bool.
5832 (skiplist_entry::file, skiplist_entry::function): Now
5833 std::string.
5834 (make_skip_entry): Return a unique_ptr. Use new.
5835 (free_skiplist_entry, free_skiplist_entry_cleanup)
5836 (make_free_skiplist_entry_cleanup): Remove.
5837 (skip_command, skip_disable_command, add_skiplist_entry)
5838 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5839 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5840 (function_name_is_marked_for_skip): Update.
5841 (skip_delete_command): Update. Use delete.
5842
5843 2017-08-09 Jiong Wang <jiong.wang@arm.com>
5844
5845 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5846 (aarch64_linux_core_read_description): New function.
5847 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5848
5849 2017-08-09 Pedro Alves <palves@redhat.com>
5850
5851 * cp-name-parser.y (cp_comp_to_string): Return a
5852 gdb::unique_xmalloc_ptr<char>.
5853 * cp-support.c (replace_typedefs_qualified_name)
5854 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5855 (cp_canonicalize_string_full): Use op= instead of explicit
5856 convertion.
5857 (cp_class_name_from_physname, method_name_from_physname)
5858 (cp_func_name, cp_remove_params): Adjust to use
5859 gdb::unique_xmalloc_ptr<char>.
5860 * cp-support.h (cp_comp_to_string): Return a
5861 gdb::unique_xmalloc_ptr<char>.
5862 * python/py-type.c (typy_lookup_type): Adjust to use
5863 gdb::unique_xmalloc_ptr<char>.
5864
5865 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5866
5867 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5868
5869 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
5870 Yao Qi <yao.qi@linaro.org>
5871
5872 * cp-support.c (cp_canonicalize_string_full): Use
5873 gdb::unique_xmalloc_ptr<char>.
5874 (cp_canonicalize_string): Likewise.
5875
5876 2017-08-09 Yao Qi <yao.qi@linaro.org>
5877
5878 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
5879 * regformats/i386/amd64-avx-avx512.dat: Remove.
5880 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
5881 * regformats/i386/amd64-avx-mpx.dat:Remove.
5882 * regformats/i386/amd64-avx.dat: Remove.
5883 * regformats/i386/amd64-mpx.dat: Remove.
5884 * regformats/i386/i386-avx-avx512.dat: Remove.
5885 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
5886 * regformats/i386/i386-avx-mpx.dat: Remove.
5887 * regformats/i386/i386-mmx.dat: Remove.
5888 * regformats/i386/i386-mpx.dat: Remove.
5889
5890 2017-08-09 Yao Qi <yao.qi@linaro.org>
5891
5892 * amd64-tdep.h (tdesc_x32): Remove the declaration.
5893 * amd64-tdep.c: Don't include features/i386/x32*.c.
5894 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
5895 functions.
5896 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
5897 and i386/x32-avx-avx512.
5898 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
5899 and i386/x32.xml.
5900 * features/i386/x32-avx-avx512.c: Removed.
5901 * features/i386/x32-avx-avx512.xml: Removed.
5902 * features/i386/x32-avx.c: Removed.
5903 * features/i386/x32-avx.xml: Removed.
5904 * features/i386/x32.c: Removed.
5905 * features/i386/x32.xml: Removed.
5906 * regformats/i386/x32-avx-avx512.dat: Removed.
5907 * regformats/i386/x32-avx.dat: Removed.
5908 * regformats/i386/x32.dat: Removed.
5909
5910 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5911
5912 PR breakpoints/21886
5913 * mem-break.c (default_memory_insert_breakpoint): Use
5914 `->placed_address' rather than `->reqstd_address' for the
5915 breakpoint location.
5916
5917 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5918
5919 * arch-utils.c (default_print_insn): Remove arch/mach/endian
5920 assertions.
5921
5922 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5923
5924 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
5925 a union of `tdep_info', `tdesc_data' and `id'.
5926 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
5927 rather than `info.tdep_info'.
5928 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
5929 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5930 * i386-tdep.c (i386_gdbarch_init): Likewise.
5931 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
5932 * mips-tdep.c (mips_gdbarch_init): Likewise.
5933 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5934 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5935 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
5936 `info.tdep_info'.
5937 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
5938 `info.tdep_info'.
5939 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5940 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
5941 `info.tdep_info'.
5942 * spu-tdep.c (spu_gdbarch_init): Likewise.
5943 * gdbarch.h: Regenerate.
5944
5945 2017-08-07 Leszek Swirski <leszeks@google.com>
5946
5947 PR symtab/20899
5948 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
5949
5950 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
5951
5952 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
5953 (gdbsim_open): Rename gdb_argv args object to argv.
5954
5955 2017-08-05 Tom Tromey <tom@tromey.com>
5956
5957 * compile/compile-object-load.c (compile_object_load): Use
5958 gdb::unique_xmalloc_ptr.
5959 * cli/cli-dump.c (scan_filename): Rename from
5960 scan_filename_with_cleanup. Change return type.
5961 (scan_expression): Rename from scan_expression_with_cleanup.
5962 Change return type.
5963 (dump_memory_to_file, dump_value_to_file, restore_command):
5964 Use gdb::unique_xmalloc_ptr. Update.
5965 * cli/cli-cmds.c (find_and_open_script): Use
5966 gdb::unique_xmalloc_ptr.
5967 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
5968 * symmisc.c (maintenance_print_symbols)
5969 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
5970 * symfile.c (symfile_bfd_open, generic_load)
5971 (add_symbol_file_command, remove_symbol_file_command): Use
5972 gdb::unique_xmalloc_ptr.
5973 * source.c (openp): Use gdb::unique_xmalloc_ptr.
5974 * psymtab.c (maintenance_print_psymbols): Use
5975 gdb::unique_xmalloc_ptr.
5976 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
5977 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
5978 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
5979 (reload_shared_libraries_1): Likewise.
5980
5981 2017-08-05 Tom Tromey <tom@tromey.com>
5982
5983 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
5984 (rust_op_vector, rust_set_vector): New typedefs.
5985 (current_parser): New global.
5986 (work_obstack): Change to pointer type. Update all users.
5987 (rust_ast, pstate): Remove globals.
5988 (struct rust_parser): New.
5989 (%union) <params, field_inits>: Change type.
5990 (start, tuple_expr, unit_expr, struct_expr_list, literal)
5991 (field_expr, expr_list, maybe_expr_list, type_list): Update.
5992 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
5993 (convert_params_to_types, convert_params_to_expression): Change
5994 type of "params".
5995 (ast_string): Change type of "fields".
5996 (rust_parse): Make a rust_parser. Remove cleanups.
5997 (rust_lex_tests): Make and install an auto_obstack.
5998
5999 2017-08-04 Yao Qi <yao.qi@linaro.org>
6000
6001 * configure.srv (ipa_x32_linux_regobj): New.
6002 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6003 instead of X86_TDESC_AVX512.
6004 (initialize_low_tracepoint): Call
6005 init_registers_x32_avx_avx512_linux.
6006
6007 2017-08-04 Yao Qi <yao.qi@linaro.org>
6008
6009 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6010
6011 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6012
6013 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6014
6015 2017-08-03 Tom Tromey <tom@tromey.com>
6016
6017 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6018 Remove.
6019 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6020
6021 2017-08-03 Tom Tromey <tom@tromey.com>
6022
6023 * python/py-param.c (compute_enum_values): Use gdb_argv.
6024
6025 2017-08-03 Tom Tromey <tom@tromey.com>
6026
6027 * utils.h (struct gdb_argv_deleter): New.
6028 (gdb_argv): New class.
6029 * utils.c (gdb_argv::reset): New method.
6030 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6031 * tracefile.c (tsave_command): Use gdb_argv.
6032 * top.c (new_ui_command): Use gdb_argv.
6033 * symmisc.c (maintenance_print_symbols)
6034 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6035 * symfile.c (symbol_file_command, generic_load)
6036 (remove_symbol_file_command): Use gdb_argv.
6037 * stack.c (backtrace_command): Use gdb_argv.
6038 * source.c (add_path, show_substitute_path_command)
6039 (unset_substitute_path_command, set_substitute_path_command):
6040 Use gdb_argv.
6041 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6042 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6043 * remote.c (extended_remote_run, remote_put_command)
6044 (remote_get_command, remote_delete_command): Use gdb_argv.
6045 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6046 (gdbsim_open): Use gdb_argv.
6047 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6048 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6049 * procfs.c (procfs_info_proc): Use gdb_argv.
6050 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6051 * infrun.c (handle_command): Use gdb_argv.
6052 * inferior.c (add_inferior_command, clone_inferior_command):
6053 Use gdb_argv.
6054 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6055 * exec.c (exec_file_command): Use gdb_argv.
6056 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6057 * compile/compile.c (build_argc_argv): Use gdb_argv.
6058
6059 2017-08-03 Tom Tromey <tom@tromey.com>
6060
6061 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6062
6063 2017-08-03 Tom Tromey <tom@tromey.com>
6064
6065 * python/python.c (compute_python_string): Return std::string.
6066 (gdbpy_eval_from_control_command): Update.
6067 (do_start_initialization): Use std::string.
6068 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6069 xstrprintf.
6070 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6071 xstrprintf.
6072
6073 2017-08-03 Tom Tromey <tom@tromey.com>
6074
6075 * top.h (do_restore_instream_cleanup): Remove.
6076 * top.c (do_restore_instream_cleanup): Remove.
6077 (read_command_file): Use scoped_restore.
6078 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6079
6080 2017-08-03 Tom Tromey <tom@tromey.com>
6081
6082 * cli/cli-script.c (execute_user_command)
6083 (execute_control_command): Use scoped_restore.
6084
6085 2017-08-03 Tom Tromey <tom@tromey.com>
6086
6087 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6088 (execute_user_command): Remove user_call_depth; use
6089 user_args_stack's size instead.
6090
6091 2017-08-03 Tom Tromey <tom@tromey.com>
6092
6093 * top.h (in_user_command): Remove.
6094 * top.c (in_user_command): Remove.
6095 * cli/cli-script.c (do_restore_user_call_depth)
6096 (execute_user_command): Update.
6097
6098 2017-08-03 Tom Tromey <tom@tromey.com>
6099
6100 * valops.c (search_struct_method): Use gdb::byte_vector.
6101 * valarith.c (value_concat): Use std::vector.
6102 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6103 (simple_search_memory): Likewise.
6104 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6105 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6106 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6107 * elfread.c (elf_rel_plt_read): Use std::string.
6108 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6109 * cli/cli-dump.c (restore_section_callback): Use
6110 gdb::byte_vector.
6111
6112 2017-08-03 Tom Tromey <tom@tromey.com>
6113
6114 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6115
6116 2017-08-03 Tom Tromey <tom@tromey.com>
6117
6118 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6119 (tui_register_format): Use scoped_restore.
6120
6121 2017-08-03 Tom Tromey <tom@tromey.com>
6122
6123 * reverse.c (exec_direction_default): Remove.
6124 (exec_reverse_once): Use scoped_restore.
6125 * remote.c (restore_remote_timeout): Remove.
6126 (remote_flash_erase, remote_flash_write, remote_flash_done)
6127 (readchar, remote_serial_write): Use scoped_restore.
6128 * cli/cli-script.c (struct source_cleanup_lines_args)
6129 (source_cleanup_lines): Remove.
6130 (script_from_file): Use scoped_restore.
6131 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6132 (source_command): Use scoped_restore.
6133
6134 2017-08-03 Tom Tromey <tom@tromey.com>
6135
6136 * utils.h (make_cleanup_free_so): Remove.
6137 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6138 * solist.h (struct so_deleter): New.
6139 (so_list_up): New typedef.
6140 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6141
6142 2017-08-03 Tom Tromey <tom@tromey.com>
6143
6144 * utils.h (make_cleanup_restore_current_language): Remove.
6145 * utils.c (do_restore_current_language)
6146 (make_cleanup_restore_current_language): Remove.
6147 * parse.c (parse_exp_in_context_1)
6148 (parse_expression_with_language): Use
6149 scoped_restore_current_language.
6150 * mi/mi-main.c (mi_cmd_execute): Use
6151 scoped_restore_current_language.
6152 * language.h (scoped_restore_current_language): New class.
6153
6154 2017-08-03 Tom Tromey <tom@tromey.com>
6155
6156 * compile/compile.c (cleanup_unlink_file): Remove.
6157 (compile_to_object): Use gdb::unlinker.
6158 (eval_compile_command): Likewise.
6159
6160 2017-08-03 Tom Tromey <tom@tromey.com>
6161
6162 * utils.h (make_cleanup_fclose): Remove.
6163 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6164
6165 2017-08-03 Tom Tromey <tom@tromey.com>
6166
6167 * top.c (open_terminal_stream): Return gdb_file_up.
6168 (new_ui_command): Update.
6169
6170 2017-08-03 Tom Tromey <tom@tromey.com>
6171
6172 * source.c (print_source_lines_base, forward_search_command)
6173 (reverse_search_command): Use gdb_file_up.
6174
6175 2017-08-03 Tom Tromey <tom@tromey.com>
6176
6177 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6178
6179 2017-08-03 Tom Tromey <tom@tromey.com>
6180
6181 * cli/cli-cmds.c (find_and_open_script): Change return type.
6182 Remove "streamp" and "full_path" parameters.
6183 (source_script_with_search): Update.
6184 * auto-load.c (source_script_file): Update.
6185 * cli/cli-cmds.h (find_and_open_script): Change type.
6186 (open_script): New struct.
6187
6188 2017-08-03 Tom Tromey <tom@tromey.com>
6189
6190 * xml-support.c (xml_fetch_content_from_file): Update.
6191 * ui-file.c (stdio_file::open): Update.
6192 * tracefile-tfile.c (tfile_start): Update.
6193 * remote.c (remote_file_put, remote_file_get): Update.
6194 * nat/linux-procfs.c (linux_proc_get_int)
6195 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6196 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6197 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6198 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6199 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6200 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6201 * linux-nat.c (linux_proc_pending_signals): Update.
6202 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6203 (file_closer): Remove.
6204 * compile/compile.c (compile_to_object): Update.
6205 * common/filestuff.h (struct gdb_file_deleter): New.
6206 (gdb_file_up): New typedef.
6207 (gdb_fopen_cloexec): Change return type.
6208 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6209 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6210 (dump_binary_file, restore_binary_file): Update.
6211 * auto-load.c (auto_load_objfile_script_1): Update.
6212
6213 2017-08-03 Tom Tromey <tom@tromey.com>
6214
6215 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6216 (info_static_tracepoint_markers_command): Likewise.
6217 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6218 * skip.c (skip_info): Use ui_out_emit_table.
6219 * progspace.c (print_program_space): Use ui_out_emit_table.
6220 * osdata.c (info_osdata): Use ui_out_emit_table.
6221 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6222 ui_out_emit_table.
6223 * linux-thread-db.c (info_auto_load_libthread_db): Use
6224 ui_out_emit_table.
6225 * inferior.c (print_inferior): Use ui_out_emit_table.
6226 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6227 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6228 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6229 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6230 * ui-out.h (class ui_out_emit_table): New.
6231
6232 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6233
6234 * mips-tdep.c (mips_fpu_type_str): New function.
6235 (mips_dump_tdep): Call it.
6236
6237 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6238
6239 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6240 `->mips_fpu_type'.
6241
6242 2017-07-31 Xavier Roirand <roirand@adacore.com>
6243
6244 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6245
6246 2017-07-27 Xavier Roirand <roirand@adacore.com>
6247
6248 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6249
6250 2017-07-26 Yao Qi <yao.qi@linaro.org>
6251
6252 * cli/cli-cmds.c (maintenancechecklist): New variable.
6253 * gdbcmd.h (maintenancechecklist): Declare it.
6254 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6255 Call i386_linux_read_description with different masks.
6256 * maint.c (maintenance_check_command): New function.
6257 (_initialize_maint_cmds): Call add_prefix_cmd.
6258 * target-descriptions.c (tdesc_reg): override operator != and ==.
6259 (tdesc_type): Likewise.
6260 (tdesc_feature): Likewise.
6261 (target_desc): Likewise.
6262 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6263 (maintenance_check_xml_descriptions): New function.
6264 (_initialize_target_descriptions) Add command "xml-descriptions".
6265 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6266
6267 2017-07-26 Yao Qi <yao.qi@linaro.org>
6268
6269 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6270 Include features/i386/32bit-*.c.
6271 (i386_linux_read_description): Generate target description if it
6272 doesn't exist.
6273 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6274 functions.
6275 * features/i386/32bit-linux.c: Re-generated.
6276 * features/i386/32bit-sse.c: Likewise.
6277 * target-descriptions.c (print_c_feature::visit): Print code to
6278 set register number if needed.
6279 (print_c_feature) <m_next_regnum>: New field.
6280
6281 2017-07-26 Yao Qi <yao.qi@linaro.org>
6282
6283 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6284 (FEATURE_XMLFILES): New.
6285 (FEATURE_CFILES): New.
6286 New rules.
6287 (clean-cfiles): Remove generated c files.
6288 * features/i386/32bit-avx.c: Generated.
6289 * features/i386/32bit-avx512.c: Generated.
6290 * features/i386/32bit-core.c: Generated.
6291 * features/i386/32bit-linux.c: Generated.
6292 * features/i386/32bit-mpx.c: Generated.
6293 * features/i386/32bit-pkeys.c: Generated.
6294 * features/i386/32bit-sse.c: Generated.
6295 * target-descriptions.c: Include algorithm.
6296 (tdesc_element_visitor): Add method visit_end.
6297 (print_c_tdesc): Implement visit_end.
6298 (print_c_tdesc:: m_filename_after_features): Move it to
6299 protected.
6300 (print_c_feature): New class.
6301 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6302 name starts with "i386/32bit-".
6303
6304 2017-07-26 Yao Qi <yao.qi@linaro.org>
6305
6306 * target-descriptions.c (tdesc_element_visitor): New class.
6307 (tdesc_element): New class.
6308 (tdesc_reg): Inherit from tdesc_element.
6309 (tdesc_reg::accept): New function.
6310 (tdesc_type): Inherit from tdesc_element.
6311 (tdesc_type::accept): New function.
6312 (tdesc_feature): Inherit from tdesc_element.
6313 (tdesc_feature::accept): New function.
6314 (target_desc): Inherit from tdesc_element.
6315 (target_desc::target_desc): New.
6316 (target_desc::~target_desc): New.
6317 (target_desc::accept): New.
6318 (allocate_target_description): Use new.
6319 (free_target_description): Use delete.
6320 (print_c_tdesc): New class.
6321 (maint_print_c_tdesc_cmd): Adjust.
6322
6323 * features/aarch64.c: Re-generated.
6324 * features/arc-arcompact.c: Re-generated.
6325 * features/arc-v2.c: Re-generated.
6326 * features/arm/arm-with-iwmmxt.c: Re-generated.
6327 * features/arm/arm-with-m.c: Re-generated.
6328 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6329 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6330 * features/arm/arm-with-neon.c: Re-generated.
6331 * features/arm/arm-with-vfpv2.c: Re-generated.
6332 * features/arm/arm-with-vfpv3.c: Re-generated.
6333 * features/i386/amd64-avx-avx512.c: Re-generated.
6334 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6335 * features/i386/amd64-avx.c: Re-generated.
6336 * features/i386/amd64-avx-linux.c: Re-generated.
6337 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6338 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6339 * features/i386/amd64-avx-mpx.c: Re-generated.
6340 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6341 * features/i386/amd64.c: Re-generated.
6342 * features/i386/amd64-linux.c: Re-generated.
6343 * features/i386/amd64-mpx.c: Re-generated.
6344 * features/i386/amd64-mpx-linux.c: Re-generated.
6345 * features/i386/i386-avx-avx512.c: Re-generated.
6346 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6347 * features/i386/i386-avx.c: Re-generated.
6348 * features/i386/i386-avx-linux.c: Re-generated.
6349 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6350 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6351 * features/i386/i386-avx-mpx.c: Re-generated.
6352 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6353 * features/i386/i386.c: Re-generated.
6354 * features/i386/i386-linux.c: Re-generated.
6355 * features/i386/i386-mmx.c: Re-generated.
6356 * features/i386/i386-mmx-linux.c: Re-generated.
6357 * features/i386/i386-mpx.c: Re-generated.
6358 * features/i386/i386-mpx-linux.c: Re-generated.
6359 * features/i386/x32-avx-avx512.c: Re-generated.
6360 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6361 * features/i386/x32-avx.c: Re-generated.
6362 * features/i386/x32-avx-linux.c: Re-generated.
6363 * features/i386/x32.c: Re-generated.
6364 * features/i386/x32-linux.c: Re-generated.
6365 * features/microblaze.c: Re-generated.
6366 * features/microblaze-with-stack-protect.c: Re-generated.
6367 * features/mips64-dsp-linux.c: Re-generated.
6368 * features/mips64-linux.c: Re-generated.
6369 * features/mips-dsp-linux.c: Re-generated.
6370 * features/mips-linux.c: Re-generated.
6371 * features/nds32.c: Re-generated.
6372 * features/nios2.c: Re-generated.
6373 * features/nios2-linux.c: Re-generated.
6374 * features/rs6000/powerpc-32.c: Re-generated.
6375 * features/rs6000/powerpc-32l.c: Re-generated.
6376 * features/rs6000/powerpc-403.c: Re-generated.
6377 * features/rs6000/powerpc-403gc.c : Re-generated.
6378 * features/rs6000/powerpc-405.c: Re-generated.
6379 * features/rs6000/powerpc-505.c: Re-generated.
6380 * features/rs6000/powerpc-601.c: Re-generated.
6381 * features/rs6000/powerpc-602.c: Re-generated.
6382 * features/rs6000/powerpc-603.c: Re-generated.
6383 * features/rs6000/powerpc-604.c: Re-generated.
6384 * features/rs6000/powerpc-64.c: Re-generated.
6385 * features/rs6000/powerpc-64l.c: Re-generated.
6386 * features/rs6000/powerpc-7400.c: Re-generated.
6387 * features/rs6000/powerpc-750.c: Re-generated.
6388 * features/rs6000/powerpc-860.c: Re-generated.
6389 * features/rs6000/powerpc-altivec32.c: Re-generated.
6390 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6391 * features/rs6000/powerpc-altivec64.c: Re-generated.
6392 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6393 * features/rs6000/powerpc-cell32l.c: Re-generated.
6394 * features/rs6000/powerpc-cell64l.c: Re-generated.
6395 * features/rs6000/powerpc-e500.c: Re-generated.
6396 * features/rs6000/powerpc-e500l.c: Re-generated.
6397 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6398 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6399 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6400 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6401 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6402 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6403 * features/rs6000/powerpc-vsx32.c: Re-generated.
6404 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6405 * features/rs6000/powerpc-vsx64.c: Re-generated.
6406 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6407 * features/rs6000/rs6000.c: Re-generated.
6408 * features/s390-linux32.c: Re-generated.
6409 * features/s390-linux32v1.c: Re-generated.
6410 * features/s390-linux32v2.c: Re-generated.
6411 * features/s390-linux64.c: Re-generated.
6412 * features/s390-linux64v1.c: Re-generated.
6413 * features/s390-linux64v2.c: Re-generated.
6414 * features/s390-te-linux64.c: Re-generated.
6415 * features/s390-tevx-linux64.c: Re-generated.
6416 * features/s390-vx-linux64.c: Re-generated.
6417 * features/s390x-linux64.c: Re-generated.
6418 * features/s390x-linux64v1.c: Re-generated.
6419 * features/s390x-linux64v2.c: Re-generated.
6420 * features/s390x-te-linux64.c: Re-generated.
6421 * features/s390x-tevx-linux64.c: Re-generated.
6422 * features/s390x-vx-linux64.c: Re-generated.
6423 * features/sparc/sparc32-solaris.c: Re-generated.
6424 * features/sparc/sparc64-solaris.c: Re-generated.
6425 * features/tic6x-c62x.c: Re-generated.
6426 * features/tic6x-c62x-linux.c: Re-generated.
6427 * features/tic6x-c64x.c: Re-generated.
6428 * features/tic6x-c64x-linux.c: Re-generated.
6429 * features/tic6x-c64xp.c: Re-generated.
6430 * features/tic6x-c64xp-linux.c: Re-generated.
6431
6432 2017-07-26 Yao Qi <yao.qi@linaro.org>
6433
6434 * i386-linux-tdep.c (i386_linux_read_description): New function.
6435 (i386_linux_core_read_description): Call
6436 i386_linux_read_description.
6437 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6438 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6439 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6440 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6441 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6442 * x86-linux-nat.c (x86_linux_read_description): Call
6443 i386_linux_read_description.
6444
6445 2017-07-26 Yao Qi <yao.qi@linaro.org>
6446
6447 * NEWS: Mention it.
6448 * features/Makefile (%.c: %.xml): Pass the xml file name to
6449 command "maint print c-tdesc".
6450 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6451 name from 'arg'.
6452
6453 2017-07-26 Yao Qi <yao.qi@linaro.org>
6454
6455 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6456 in-class initialization.
6457 (tdesc_create_feature): Call new instead of XCNEW.
6458 (free_target_description): Ue delete.
6459
6460 2017-07-25 John Baldwin <jhb@FreeBSD.org>
6461
6462 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6463
6464 2017-07-25 Yao Qi <yao.qi@linaro.org>
6465
6466 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6467 constant.
6468 (amd64_x32_init_abi): Likewise.
6469 * amd64-tdep.h (amd64_init_abi): Update declaration.
6470 (amd64_x32_init_abi): Likewise.
6471
6472 2017-07-25 Yao Qi <yao.qi@linaro.org>
6473
6474 PR tdep/21717
6475 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6476 condition for FPSCR.
6477 (arm_linux_store_inferior_registers): Likewise.
6478
6479 2017-07-22 Tom Tromey <tom@tromey.com>
6480
6481 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6482 <syscalls_counts>: Now a std::vector.
6483 (get_catch_syscall_inferior_data): Use "new".
6484 (catch_syscall_inferior_data_cleanup): Use "delete".
6485 (insert_catch_syscall, remove_catch_syscall)
6486 (clear_syscall_counts): Update.
6487
6488 2017-07-22 Tom Tromey <tom@tromey.com>
6489
6490 * break-catch-syscall.c (syscall_catchpoint)
6491 <syscalls_to_be_caught>: Now a std::vector<int>
6492 (~syscall_catchpoint): Remove.
6493 (insert_catch_syscall, remove_catch_syscall)
6494 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6495 (print_mention_catch_syscall, print_recreate_catch_syscall):
6496 Update.
6497 (create_syscall_event_catchpoint): Change type of "filter"
6498 parameter.
6499 (catch_syscall_split_args): Return a std::vector.
6500 (catch_syscall_command_1, catching_syscall_number_1): Update.
6501
6502 2017-07-22 Tom Tromey <tom@tromey.com>
6503
6504 * break-catch-throw.c (struct exception_catchpoint)
6505 <exception_rx>: Now a std::string.
6506 (~exception_catchpoint): Remove.
6507 (print_one_detail_exception_catchpoint): Update.
6508 (handle_gnu_v3_exceptions): Change type of except_rx.
6509 (extract_exception_regexp): Return a std::string.
6510 (catch_exception_command_1): Update.
6511
6512 2017-07-22 Tom Tromey <tom@tromey.com>
6513
6514 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6515 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6516 std::vector.
6517 <catch_all>: Now a bool.
6518 (~signal_catchpoint): Remove.
6519 (signal_catchpoint_insert_location)
6520 (signal_catchpoint_remove_location)
6521 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6522 (signal_catchpoint_print_mention)
6523 (signal_catchpoint_print_recreate)
6524 (signal_catchpoint_explains_signal): Update.
6525 (create_signal_catchpoint): Change type of "filter" and
6526 "catch_all".
6527 (catch_signal_split_args): Return a std::vector. Change type of
6528 "catch_all".
6529 (catch_signal_command): Update.
6530
6531 2017-07-20 Pedro Alves <palves@redhat.com>
6532
6533 * ada-lang.c (ada_language_defn): Make extern.
6534 (_initialize_ada_language): Remove add_language call.
6535 * c-lang.c (c_language_defn, cplus_language_defn)
6536 (asm_language_defn, minimal_language_defn): Make extern.
6537 (_initialize_c_language): Delete.
6538 * completer.c (compare_cstrings): Delete, moved to utils.h.
6539 * d-lang.c (d_language_defn): Make extern.
6540 (_initialize_d_language): Remove add_language calls.
6541 * defs.h (enum language): Add comment.
6542 * f-lang.c (f_language_defn): Make extern.
6543 (_initialize_f_language): Remove add_language call.
6544 * go-lang.c (go_language_defn): Make extern.
6545 (_initialize_go_language): Remove add_language call.
6546 * language.c: Include <algorithm>.
6547 (languages): Redefine as const array.
6548 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6549 (set_language_command): Handle "local". Use for-range loop.
6550 (set_language): Remove loop.
6551 (language_enum): Rewrite.
6552 (language_def, language_str): Remove loops.
6553 (add_language): Delete.
6554 (add_set_language_command): New, based on add_languages.
6555 (skip_language_trampoline): Adjust.
6556 (local_language_defn): Delete.
6557 (language_gdbarch_post_init): Adjust.
6558 (_initialize_language): Remove add_language calls. Call
6559 add_set_language_command.
6560 * language.h (add_language): Delete.
6561 (auto_language_defn)
6562 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6563 (asm_language_defn, c_language_defn, cplus_language_defn)
6564 (d_language_defn, f_language_defn, go_language_defn)
6565 (m2_language_defn, objc_language_defn, opencl_language_defn)
6566 (pascal_language_defn, rust_language_defn): Declare.
6567 * m2-lang.c (m2_language_defn): Make extern.
6568 (_initialize_m2_language): Remove add_language call.
6569 * objc-lang.c (objc_language_defn): Make extern.
6570 (_initialize_objc_language): Remove add_language call.
6571 * opencl-lang.c (opencl_language_defn): Make extern.
6572 (_initialize_opencl_language): Remove add_language call.
6573 * p-lang.c (pascal_language_defn): Make extern.
6574 (_initialize_pascal_language): Delete.
6575 * rust-lang.c (rust_language_defn): Make extern.
6576 (_initialize_rust_language): Delete.
6577 * utils.h (compare_cstrings): New static inline function.
6578
6579 2017-07-20 Pedro Alves <palves@redhat.com>
6580
6581 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6582 (get_var_value): Constify parameters.
6583 (get_int_var_value): Change prototype.
6584 (to_fixed_range_type): Adjust.
6585 * ada-lang.h (get_int_var_value): Change prototype.
6586
6587 2017-07-20 Pedro Alves <palves@redhat.com>
6588
6589 * dwarf2read.c (dw2_lookup_symbol): Use
6590 SYMBOL_MATCHES_SEARCH_NAME.
6591 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6592
6593 2017-07-20 Pedro Alves <palves@redhat.com>
6594
6595 * block.c (block_iter_name_step, block_iter_name_first)
6596 (block_iter_name_next): Delete.
6597 (block_lookup_symbol_primary): Adjust to use
6598 dict_iter_match_first/dict_iter_match_next.
6599 * block.h (block_iter_name_first, block_iter_name_next): Delete
6600 declarations.
6601 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6602 dict_iter_match_first/dict_iter_match_next.
6603
6604 2017-07-20 Pedro Alves <palves@redhat.com>
6605
6606 * cp-support.c (cp_find_first_component_aux): Add missing case for
6607 end of string.
6608
6609 2017-07-18 David Blaikie <dblaikie@gmail.com>
6610
6611 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6612 of dwo_cu's dwo_file.
6613
6614 2017-07-18 Yao Qi <yao.qi@linaro.org>
6615
6616 * remote.c (store_registers_using_G): Remove one line comment.
6617
6618 2017-07-18 Yao Qi <yao.qi@linaro.org>
6619
6620 * regcache.c (regcache_cpy): Simplify it.
6621 (regcache::cpy_no_passthrough): Remove it.
6622 * regcache.h (cpy_no_passthrough): Remove it.
6623 (regcache_dup, regcache_cpy): Update comments.
6624
6625 2017-07-18 Pedro Alves <palves@redhat.com>
6626
6627 * remote-sim.c (sim_command_completer): Adjust to work with a
6628 completion_tracker instead of a VEC.
6629
6630 2017-07-17 Pedro Alves <palves@redhat.com>
6631
6632 * completer.c (complete_source_filenames): New function.
6633 (complete_address_and_linespec_locations): New function.
6634 (location_completer): Use complete_address_and_linespec_locations.
6635 (completion_tracker::build_completion_result): Honor the tracker's
6636 request to suppress append.
6637 * completer.h (completion_tracker::suppress_append_ws)
6638 (completion_tracker::set_suppress_append_ws): New methods.
6639 (completion_tracker::m_suppress_append_ws): New field.
6640 (complete_source_filenames): New declaration.
6641 * linespec.c (linespec_complete_what): New.
6642 (struct ls_parser) <complete_what, completion_word,
6643 completion_quote_char, completion_quote_end, completion_tracker>:
6644 New fields.
6645 (string_find_incomplete_keyword_at_end): New.
6646 (linespec_lexer_lex_string): Record quote char. If in completion
6647 mode, don't throw.
6648 (linespec_lexer_consume_token): Advance the completion word point.
6649 (linespec_lexer_peek_token): Save/restore completion info.
6650 (save_stream_and_consume_token): New.
6651 (set_completion_after_number): New.
6652 (linespec_parse_basic): Set what to complete next depending on
6653 token. Handle function and label completions specially.
6654 (parse_linespec): Disable objc shortcut in completion mode. Set
6655 what to complete next depending on token type. Skip keyword if in
6656 completion mode.
6657 (complete_linespec_component, linespec_complete): New.
6658 * linespec.h (linespec_complete): Declare.
6659
6660 2017-07-17 Pedro Alves <palves@redhat.com>
6661
6662 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6663 Handle 'operator<' / 'operator<<'.
6664
6665 2017-07-17 Pedro Alves <palves@redhat.com>
6666
6667 * completer.c (collect_explicit_location_matches): Handle
6668 MATCH_LABEL.
6669 (convert_explicit_location_to_linespec): New, factored out from
6670 ...
6671 (convert_explicit_location_to_sals): ... this.
6672 (complete_label): New.
6673 (linespec_complete_label, find_label_symbols_in_block): New.
6674 (find_label_symbols): Add completion_mode parameter and adjust to
6675 call find_label_symbols_in_block.
6676 * linespec.h (linespec_complete_label): Declare.
6677
6678 2017-07-17 Pedro Alves <palves@redhat.com>
6679
6680 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6681 complete_symbol_mode parameter.
6682 * cli/cli-cmds.c (complete_command): Get the completion result out
6683 of the handle_brkchars tracker if used a custom word point.
6684 * completer.c: Include "linespec.h".
6685 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6686 (advance_to_expression_complete_word_point): New.
6687 (completion_tracker::completes_to_completion_word): New.
6688 (complete_files_symbols): Pass down
6689 complete_symbol_mode::EXPRESSION.
6690 (explicit_options, probe_options): New.
6691 (collect_explicit_location_matches): Complete on the
6692 explictit_loc->foo instead of word. Use
6693 linespec_complete_function. Handle MATCH_LINE. Handle offering
6694 keyword and options completions.
6695 (backup_text_ptr): Delete.
6696 (skip_keyword): New.
6697 (complete_explicit_location): Remove 'word' parameter. Add
6698 language, quoted_arg_start and quoted_arg_end parameters.
6699 Rewrite, parsing left to right.
6700 (location_completer): Rewrite.
6701 (location_completer_handle_brkchars): New function.
6702 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6703 (enum complete_line_internal_reason): Adjust comments.
6704 (completion_tracker::discard_completions): New.
6705 (completer_handle_brkchars_func_for_completer): Handle
6706 location_completer.
6707 (gdb_custom_word_point_brkchars)
6708 (gdb_org_rl_basic_quote_characters): New.
6709 (gdb_completion_word_break_characters_throw)
6710 (completion_find_completion_word): Handle trackers that use a
6711 custom word point.
6712 (completion_tracker::advance_custom_word_point_by): New.
6713 (completion_tracker::build_completion_result): Don't rely on
6714 readline appending the quote char.
6715 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6716 use a custom word point.
6717 (gdb_rl_attempted_completion_function): Restore
6718 rl_basic_quote_characters.
6719 * completer.h (class completion_tracker): Extend intro comment.
6720 (completion_tracker::set_quote_char)
6721 (completion_tracker::quote_char)
6722 (completion_tracker::set_use_custom_word_point)
6723 (completion_tracker::use_custom_word_point)
6724 (completion_tracker::custom_word_point)
6725 (completion_tracker::set_custom_word_point)
6726 (completion_tracker::advance_custom_word_point_by)
6727 (completion_tracker::completes_to_completion_word)
6728 (completion_tracker::discard_completions): New methods.
6729 (completion_tracker::m_quote_char)
6730 (completion_tracker::m_use_custom_word_point)
6731 (completion_tracker::m_custom_word_point): New fields.
6732 (advance_to_expression_complete_word_point): Declare.
6733 * f-lang.c (f_collect_symbol_completion_matches): Add
6734 complete_symbol_mode parameter.
6735 * language.h (struct language_defn)
6736 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6737 parameter.
6738 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6739 (linespec_complete_function): New function.
6740 (linespec_lexer_lex_keyword): Adjust.
6741 * linespec.h (linespec_keywords, linespec_complete_function): New
6742 declarations.
6743 * location.c (find_end_quote): New function.
6744 (explicit_location_lex_one): Add explicit_completion_info
6745 parameter. Save quoting info. Don't throw if being called for
6746 completion. Don't handle Ada operators here.
6747 (is_cp_operator, skip_op_false_positives, first_of)
6748 (explicit_location_lex_one_function): New function.
6749 (string_to_explicit_location): Replace 'dont_throw' parameter with
6750 an explicit_completion_info pointer parameter. Handle it. Don't
6751 use explicit_location_lex_one to lex function names. Use
6752 explicit_location_lex_one_function instead.
6753 * location.h (struct explicit_completion_info): New.
6754 (string_to_explicit_location): Replace 'dont_throw' parameter with
6755 an explicit_completion_info pointer parameter.
6756 * symtab.c (default_collect_symbol_completion_matches_break_on):
6757 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6758 (default_collect_symbol_completion_matches)
6759 (collect_symbol_completion_matches): Add complete_symbol_mode
6760 parameter.
6761 (collect_symbol_completion_matches_type): Pass down
6762 complete_symbol_mode::EXPRESSION.
6763 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6764 parameter. Handle LINESPEC mode.
6765 * symtab.h (complete_symbol_mode): New.
6766 (default_collect_symbol_completion_matches_break_on)
6767 (default_collect_symbol_completion_matches)
6768 (collect_symbol_completion_matches)
6769 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6770 parameter.
6771
6772 2017-07-17 Pedro Alves <palves@redhat.com>
6773
6774 * utils.c (enum class strncmp_iw_mode): New.
6775 (strcmp_iw): Rename to ...
6776 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6777 parameters. Handle them.
6778 (strncmp_iw): New.
6779 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6780 * utils.h (strncmp_iw): Declare.
6781 (strcmp_iw): Move describing comments here.
6782
6783 2017-07-17 Pedro Alves <palves@redhat.com>
6784
6785 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6786 CP_OPERATOR_STR.
6787 * c-typeprint.c (is_type_conversion_operator): Use
6788 CP_OPERATOR_STR.
6789 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6790 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6791 CP_OPERATOR_LEN.
6792 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6793 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6794 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6795 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6796 CP_OPERATOR_STR.
6797 * location.c: Include "cp-support.h".
6798 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6799 CP_OPERATOR_STR.
6800 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6801 CP_OPERATOR_LEN.
6802
6803 2017-07-17 Pedro Alves <palves@redhat.com>
6804
6805 * cli/cli-cmds.c (complete_command): Use a completion tracker
6806 along with completion_find_completion_word for handle_brkchars
6807 phase.
6808 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6809 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6810 (struct gdb_rl_completion_word_info): New.
6811 (gdb_rl_find_completion_word): New.
6812 (completion_find_completion_word): New.
6813 * completer.h (completion_find_completion_word): Declare.
6814
6815 2017-07-17 Pedro Alves <palves@redhat.com>
6816
6817 * ada-lang.c (symbol_completion_match): Adjust comments.
6818 (symbol_completion_add): Replace vector parameter with
6819 completion_tracker parameter. Use it.
6820 (ada_make_symbol_completion_list): Rename to...
6821 (ada_collect_symbol_completion_matches): ... this. Add
6822 completion_tracker parameter and use it.
6823 (ada_language_defn): Adjust.
6824 * break-catch-syscall.c (catch_syscall_completer): Adjust
6825 prototype and work with completion_tracker instead of VEC.
6826 * breakpoint.c (condition_completer): Adjust prototype and work
6827 with completion_tracker instead of VEC.
6828 * c-lang.c (c_language_defn, cplus_language_defn)
6829 (asm_language_defn, minimal_language_defn): Adjust to renames.
6830 * cli/cli-cmds.c (complete_command): Rework using
6831 completion_tracker. Catch exceptions when completing.
6832 * cli/cli-decode.c (integer_unlimited_completer)
6833 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6834 with completion_tracker instead of VEC.
6835 * command.h (struct completion_tracker): Forward declare.
6836 (completer_ftype, completer_handle_brkchars_ftype): Change
6837 types.
6838 (complete_on_cmdlist, complete_on_enum): Adjust.
6839 * completer.c: Include <algorithm>.
6840 (struct gdb_completer_state): New.
6841 (current_completion): New global.
6842 (readline_line_completion_function): Delete.
6843 (noop_completer, filename_completer)
6844 (filename_completer_handle_brkchars, complete_files_symbols)
6845 (linespec_location_completer): Adjust to work with a
6846 completion_tracker instead of a VEC.
6847 (string_or_empty): New.
6848 (collect_explicit_location_matches): Adjust to work with a
6849 completion_tracker instead of a VEC.
6850 (explicit_location_completer): Rename to ...
6851 (complete_explicit_location): ... this and adjust to work with a
6852 completion_tracker instead of a VEC.
6853 (location_completer): Adjust to work with a completion_tracker
6854 instead of a VEC.
6855 (add_struct_fields): Adjust to work with a completion_list instead
6856 of VEC.
6857 (expression_completer): Rename to ...
6858 (complete_expression): ... this and adjust to work with a
6859 completion_tracker instead of a VEC. Use complete_files_symbols.
6860 (expression_completer): Reimplement on top of complete_expression.
6861 (symbol_completer): Adjust to work with a completion_tracker
6862 instead of a VEC.
6863 (enum complete_line_internal_reason): Add describing comments.
6864 (complete_line_internal_normal_command): Adjust to work with a
6865 completion_tracker instead of a VEC.
6866 (complete_line_internal): Rename to ...
6867 (complete_line_internal_1): ... this and adjust to work with a
6868 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6869 handle_brkchars phase.
6870 (new_completion_tracker): Delete.
6871 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
6872 complete_line_internal_1.
6873 (free_completion_tracker): Delete.
6874 (INITIAL_COMPLETION_HTAB_SIZE): New.
6875 (completion_tracker::completion_tracker)
6876 (completion_tracker::~completion_tracker): New.
6877 (maybe_add_completion): Delete.
6878 (completion_tracker::maybe_add_completion)
6879 (completion_tracker::add_completion)
6880 (completion_tracker::add_completions): New.
6881 (throw_max_completions_reached_error): Delete.
6882 (complete_line): Adjust to work with a completion_tracker instead
6883 of a VEC. Don't create a completion_tracker_t or check for max
6884 completions here.
6885 (command_completer, command_completer_handle_brkchars)
6886 (signal_completer, reg_or_group_completer_1)
6887 (reg_or_group_completer, default_completer_handle_brkchars):
6888 Adjust to work with a completion_tracker.
6889 (gdb_completion_word_break_characters_throw): New.
6890 (gdb_completion_word_break_characters): Reimplement.
6891 (line_completion_function): Delete.
6892 (completion_tracker::recompute_lowest_common_denominator)
6893 (expand_preserving_ws)
6894 (completion_tracker::build_completion_result)
6895 (completion_result::completion_result)
6896 (completion_result::completion_result)
6897 (completion_result::~completion_result)
6898 (completion_result::completion_result)
6899 (completion_result::release_match_list, compare_cstrings)
6900 (completion_result::sort_match_list)
6901 (completion_result::reset_match_list)
6902 (gdb_rl_attempted_completion_function_throw)
6903 (gdb_rl_attempted_completion_function): New.
6904 * completer.h (completion_list, struct completion_result)
6905 (class completion_tracker): New.
6906 (complete_line): Add completion_tracker parameter.
6907 (readline_line_completion_function): Delete.
6908 (gdb_rl_attempted_completion_function): New.
6909 (noop_completer, filename_completer, expression_completer)
6910 (location_completer, symbol_completer, command_completer)
6911 (signal_completer, reg_or_group_completer): Update prototypes.
6912 (completion_tracker_t, new_completion_tracker)
6913 (make_cleanup_free_completion_tracker): Delete.
6914 (enum maybe_add_completion_enum): Delete.
6915 (maybe_add_completion): Delete.
6916 (throw_max_completions_reached_error): Delete.
6917 * corefile.c (complete_set_gnutarget): Adjust to work with a
6918 completion_tracker instead of a VEC.
6919 * cp-abi.c (cp_abi_completer): Adjust to work with a
6920 completion_tracker instead of a VEC.
6921 * d-lang.c (d_language_defn): Adjust.
6922 * disasm.c (disassembler_options_completer): Adjust to work with a
6923 completion_tracker instead of a VEC.
6924 * f-lang.c (f_make_symbol_completion_list): Rename to ...
6925 (f_collect_symbol_completion_matches): ... this. Adjust to work
6926 with a completion_tracker instead of a VEC.
6927 (f_language_defn): Adjust.
6928 * go-lang.c (go_language_defn): Adjust.
6929 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
6930 Adjust to work with a completion_tracker instead of a VEC.
6931 * infrun.c (handle_completer): Likewise.
6932 * interps.c (interpreter_completer): Likewise.
6933 * interps.h (interpreter_completer): Likewise.
6934 * language.c (unknown_language_defn, auto_language_defn)
6935 (local_language_defn): Adjust.
6936 * language.h (language_defn::la_make_symbol_completion_list):
6937 Rename to ...
6938 (language_defn::la_collect_symbol_completion_matches): ... this
6939 and adjust to work with a completion_tracker instead of a VEC.
6940 * m2-lang.c (m2_language_defn): Adjust.
6941 * objc-lang.c (objc_language_defn): Adjust.
6942 * opencl-lang.c (opencl_language_defn): Adjust.
6943 * p-lang.c (pascal_language_defn): Adjust.
6944 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
6945 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
6946 with a completion_tracker.
6947 * rust-lang.c (rust_language_defn): Adjust.
6948 * symtab.c (free_completion_list, do_free_completion_list)
6949 (return_val, completion_tracker): Delete.
6950 (completion_list_add_name, completion_list_add_symbol)
6951 (completion_list_add_msymbol, completion_list_objc_symbol)
6952 (completion_list_add_fields, add_symtab_completions): Add
6953 completion_tracker parameter and use it.
6954 (default_make_symbol_completion_list_break_on_1): Rename to...
6955 (default_collect_symbol_completion_matches_break_on): ... this.
6956 Add completion_tracker parameter and use it instead of allocating
6957 a completion tracker here.
6958 (default_make_symbol_completion_list_break_on): Delete old
6959 implementation.
6960 (default_make_symbol_completion_list): Delete.
6961 (default_collect_symbol_completion_matches): New.
6962 (make_symbol_completion_list): Delete.
6963 (collect_symbol_completion_matches): New.
6964 (make_symbol_completion_type): Rename to ...
6965 (collect_symbol_completion_matches_type): ... this. Add
6966 completion_tracker parameter and use it instead of VEC.
6967 (make_file_symbol_completion_list_1): Rename to...
6968 (collect_file_symbol_completion_matches): ... this. Add
6969 completion_tracker parameter and use it instead of VEC.
6970 (make_file_symbol_completion_list): Delete.
6971 (add_filename_to_list): Use completion_list instead of a VEC.
6972 (add_partial_filename_data::list): Now a completion_list.
6973 (make_source_files_completion_list): Work with a completion_list
6974 instead of a VEC.
6975 * symtab.h: Include "completer.h".
6976 (default_make_symbol_completion_list_break_on)
6977 (default_make_symbol_completion_list, make_symbol_completion_list)
6978 (make_symbol_completion_type, make_file_symbol_completion_list)
6979 (make_source_files_completion_list): Delete.
6980 (default_collect_symbol_completion_matches_break_on)
6981 (default_collect_symbol_completion_matches)
6982 (collect_symbol_completion_matches)
6983 (collect_symbol_completion_matches_type)
6984 (collect_file_symbol_completion_matches)
6985 (make_source_files_completion_list): New.
6986 * top.c (init_main): Don't install a rl_completion_entry_function
6987 hook. Install a rl_attempted_completion_function hook instead.
6988 * tui/tui-layout.c (layout_completer): Adjust to work with a
6989 completion_tracker.
6990 * tui/tui-regs.c (tui_reggroup_completer):
6991 * tui/tui-win.c (window_name_completer, focus_completer)
6992 (winheight_completer): Adjust to work with a completion_tracker.
6993 * value.c: Include "completer.h".
6994 (complete_internalvar): Adjust to work with a completion_tracker.
6995 * value.h (complete_internalvar): Likewise.
6996
6997 2017-07-17 Pedro Alves <palves@redhat.com>
6998
6999 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7000 renames.
7001 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7002 comments to completer_ftype's declaration.
7003 <completer_handle_brkchars>: Change type to
7004 completer_handle_brkchars_ftype.
7005 * command.h (completer_ftype): Add describing comment and give
7006 names to parameters.
7007 (completer_ftype_void): Rename to ...
7008 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7009 (set_cmd_completer_handle_brkchars): Adjust.
7010 * completer.c (filename_completer_handle_brkchars): New function.
7011 (complete_line_internal_normal_command): New function, factored
7012 out from ...
7013 (complete_line_internal): ... here.
7014 (command_completer_handle_brkchars)
7015 (default_completer_handle_brkchars)
7016 (completer_handle_brkchars_func_for_completer): New functions.
7017 * completer.h (set_gdb_completion_word_break_characters): Delete
7018 declaration.
7019 (completer_handle_brkchars_func_for_completer): New declaration.
7020 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7021 completer_handle_brkchars_func_for_completer.
7022
7023 2017-07-17 Pedro Alves <palves@redhat.com>
7024
7025 * completer.c (symbol_completer): New function, based on
7026 make_symbol_completion_list_fn.
7027 * completer.h (symbol_completer): New declaration.
7028 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7029 * python/py-cmd.c (completers): Adjust.
7030 * symtab.c (make_symbol_completion_list_fn): Delete.
7031 * symtab.h (make_symbol_completion_list_fn): Delete.
7032 * cli/cli-decode.c (add_cmd): Adjust.
7033
7034 2017-07-17 Pedro Alves <palves@redhat.com>
7035
7036 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7037 * dwarf2read.c: Include "filename-seen-cache.h".
7038 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7039 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7040 * filename-seen-cache.c: New file.
7041 * filename-seen-cache.h: New file.
7042 * symtab.c: Include "filename-seen-cache.h".
7043 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7044 (create_filename_seen_cache, clear_filename_seen_cache)
7045 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7046 to filename-seen-cache.h/filename-seen-cache.c.
7047 (output_source_filename, sources_info)
7048 (maybe_add_partial_symtab_filename)
7049 (make_source_files_completion_list): Adjust to use
7050 filename_seen_cache.
7051
7052 2017-07-17 Pedro Alves <palves@redhat.com>
7053
7054 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7055 fields.
7056 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7057 dwarf2_debug_sections*)): New.
7058 (dwarf2_per_objfile::dwarf2_per_objfile(const
7059 dwarf2_per_objfile&)): Declare as deleted.
7060 (dwarf2_per_objfile::operator=): Declare as deleted.
7061 (dwarf2_per_objfile::dwarf2_per_objfile)
7062 (dwarf2_per_objfile::~dwarf2_per_objfile)
7063 (dwarf2_per_objfile::free_cached_comp_units): New.
7064 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7065 ctor. Call dwarf2_per_objfile's ctor manually.
7066 (dwarf2_locate_sections): Deleted/refactored as ...
7067 (dwarf2_per_objfile::locate_sections): ... this new method.
7068 (free_cached_comp_units): Defer to
7069 dwarf2_per_objfile::free_cached_comp_units.
7070 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7071
7072 2017-07-14 Tom Tromey <tom@tromey.com>
7073
7074 PR rust/21764:
7075 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7076 parameter.
7077 <UNOP_SIZEOF>: Split into separate case.
7078 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7079
7080 2017-07-14 Tom Tromey <tom@tromey.com>
7081
7082 PR rust/21763:
7083 * symtab.c (symbol_matches_domain): Add language_rust to special
7084 case.
7085 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7086 treat LOC_TYPEDEF symbols as variables.
7087
7088 2017-07-14 Pedro Alves <palves@redhat.com>
7089
7090 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7091 symtabs matching all symtabs with SRCFILE as file name instead of
7092 only considering the first hit, with lookup_symtab.
7093
7094 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7095
7096 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7097 operator_name parameters.
7098 (gen_expr): Update function call.
7099
7100 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7101
7102 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7103 parameter.
7104 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7105 Likewise.
7106 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7107 parameter, use agent_expr::gdbarch instead, update function
7108 calls.
7109 (locexpr_tracepoint_var_ref): Likewise.
7110 (loclist_tracepoint_var_ref): Likewise.
7111 * ax-gdb.c (gen_trace_static_fields): Likewise.
7112 (gen_traced_pop): Likewise.
7113 (gen_frame_args_address): Likewise.
7114 (gen_frame_locals_address): Likewise.
7115 (gen_var_ref): Likewise.
7116 (gen_struct_ref_recursive): Likewise.
7117 (gen_static_field): Likewise.
7118 (gen_maybe_namespace_elt): Likewise.
7119 (gen_expr): Likewise.
7120 (gen_trace_for_var): Likewise.
7121 (gen_trace_for_expr): Likewise.
7122 (gen_trace_for_return_address): Likewise.
7123
7124 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7125
7126 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7127 parameter.
7128 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7129
7130 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7131
7132 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7133 from ax, update calls.
7134 (gen_usual_arithmetic): Likewise.
7135 (gen_integral_promotions): Likewise.
7136 (gen_bitfield_ref): Likewise.
7137 (gen_primitive_field): Likewise.
7138 (gen_struct_ref_recursive): Likewise.
7139 (gen_struct_ref): Likewise.
7140 (gen_maybe_namespace_elt): Likewise.
7141 (gen_struct_elt_for_reference): Likewise.
7142 (gen_namespace_elt): Likewise.
7143 (gen_aggregate_elt_ref): Likewise.
7144 (gen_expr): Get gdbarch from ax, update calls.
7145 (gen_expr_binop_rest): Likewise.
7146
7147 2017-07-13 Pedro Alves <palves@redhat.com>
7148
7149 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7150 as default tdesc.
7151 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7152 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7153 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7154 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7155 tdep.
7156 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7157 Get final tdesc from the tdep.
7158 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7159 default tdesc.
7160 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7161 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7162 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7163 Use it as default tdesc.
7164 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7165 down to amd_init_abi. No longer handle fallback tdesc here.
7166 * amd64-tdep.h (tdesc_x32): Declare.
7167 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7168 parameter.
7169 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7170 as default tdesc.
7171
7172 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7173
7174 * s390-linux-tdep.c (s390_process_record): Add support for
7175 instructions new in arch12.
7176
7177 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7178
7179 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7180 PT_GETFSBASE and PT_GETGSBASE.
7181 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7182 PT_SETGSBASE.
7183
7184 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7185
7186 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7187 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7188 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7189 those rules.
7190 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7191 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7192 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7193 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7194 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7195 * features/i386/amd64.xml: Add 64bit-segments.xml.
7196 * features/i386/amd64-avx-avx512.c: Regenerated.
7197 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7198 * features/i386/amd64-avx-mpx.c: Regenerated.
7199 * features/i386/amd64-avx.c: Regenerated.
7200 * features/i386/amd64-mpx.c: Regenerated.
7201 * features/i386/amd64.c: Regenerated.
7202 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7203 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7204 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7205 * regformats/i386/amd64-avx.dat: Regenerated.
7206 * regformats/i386/amd64-mpx.dat: Regenerated.
7207 * regformats/i386/amd64.dat: Regenerated.
7208
7209 2017-07-10 Yao Qi <yao.qi@linaro.org>
7210
7211 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7212 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7213
7214 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7215
7216 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7217 unsetenv.
7218 * gnulib/aclocal.m4: Regenerate.
7219 * gnulib/config.in: Regenerate.
7220 * gnulib/configure: Regenerate.
7221 * gnulib/import/Makefile.am: Regenerate.
7222 * gnulib/import/Makefile.in: Regenerate.
7223 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7224 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7225 * gnulib/import/m4/environ.m4: New file.
7226 * gnulib/import/m4/setenv.m4: New file.
7227 * gnulib/import/setenv.c: New file.
7228 * gnulib/import/unsetenv.c: New file.
7229
7230 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7231
7232 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7233 address when op is DW_OP_addr.
7234
7235 2017-07-09 Tom Tromey <tom@tromey.com>
7236
7237 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7238 check and apply to outer type.
7239
7240 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7241
7242 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7243 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7244 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7245 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7246
7247 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7248
7249 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7250
7251 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7252
7253 * corelow.c (get_core_siginfo): Remove.
7254 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7255 instead of get_core_siginfo.
7256 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7257 * gdbarch.h: Re-generate.
7258 * gdbarch.c: Re-generate.
7259 * linux-tdep.c (linux_core_xfer_siginfo): New.
7260 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7261
7262 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7263
7264 * corelow.c (thread_section_name): Move to ...
7265 * gdbcore.h (thread_section_name): ... here.
7266
7267 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7268
7269 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7270 (struct siginfo32): New.
7271 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7272 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7273 via ptrace(PT_LWPINFO).
7274
7275 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7276
7277 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7278 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7279 (fbsd_get_siginfo_type): New.
7280 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7281 (_initialize_fbsd_tdep): New.
7282
7283 2017-07-06 David Blaikie <dblaikie@gmail.com>
7284
7285 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7286 a singular dwo_unit*) to support multiple CUs in the same way that
7287 multiple TUs are supported.
7288 (create_cus_hash_table): Replace create_dwo_cu with a function for
7289 parsing multiple CUs from a DWO file.
7290 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7291 create_dwo_cu.
7292 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7293 htab_find, rather than comparing the signature to a singleton CU in
7294 the dwo_file.
7295
7296 2017-07-06 Pedro Alves <palves@redhat.com>
7297
7298 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7299
7300 2017-07-04 Pedro Alves <palves@redhat.com>
7301
7302 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7303 * gdbtypes.h (TYPE_STATIC): Delete.
7304 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7305 is_synchronized, is_native>: Delete.
7306 <dummy>: Bump.
7307 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7308 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7309 (TYPE_FN_FIELD_ABSTRACT): Delete.
7310
7311 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7312
7313 * buffer.h (buffer_finish): Fix spelling mistakes.
7314
7315 2017-07-01 Eli Zaretskii <eliz@gnu.org>
7316
7317 * .dir-locals.el: Automatically switch to C-style comments in
7318 versions of Emacs that support the feature.
7319
7320 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7321 Pedro Alves <palves@redhat.com>
7322
7323 PR cli/21688
7324 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7325 (process_next_line): New variable 'inline_cmd'.
7326 Adjust 'if' clauses for "python", "compile" and "guile" to use
7327 'command_name_equals' and check for '!inline_cmd'.
7328
7329 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7330
7331 PR cli/21688
7332 * cli/cli-script.c (command_name_equals_not_inline): New function.
7333 (process_next_line): Adjust 'if' clauses for "python", "compile"
7334 and "guile" to use command_name_equals_not_inline.
7335
7336 2017-06-29 Pedro Alves <palves@redhat.com>
7337
7338 * completer.c (expression_completer): Call
7339 linespec_location_completer instead of location_completer.
7340
7341 2017-06-29 Pedro Alves <palves@redhat.com>
7342
7343 * completer.c (expression_completer): Remove code that recomputes
7344 'text' from 'word'.
7345
7346 2017-06-29 Yao Qi <yao.qi@linaro.org>
7347
7348 * regformats/regdat.sh: Generate code with
7349 "ifndef IN_PROCESS_AGENT".
7350
7351 2017-06-28 Pedro Alves <palves@redhat.com>
7352
7353 * command.h: Include "common/scoped_restore.h".
7354
7355 2017-06-28 Yao Qi <yao.qi@linaro.org>
7356
7357 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7358 instead of obstack_grow.
7359
7360 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7361
7362 PR gdb/21337
7363 * symfile.c (reread_symbols): Call objfiles_changed just before
7364 read_symbols.
7365
7366 2017-06-27 Pedro Alves <palves@redhat.com>
7367
7368 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7369 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7370 (completion_list_add_symbol, completion_list_add_msymbol):
7371 ... these new functions.
7372 (add_symtab_completions)
7373 (default_make_symbol_completion_list_break_on_1): Adjust.
7374
7375 2017-06-27 Pedro Alves <palves@redhat.com>
7376
7377 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7378 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7379 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7380 dtor.
7381 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7382 'storage_obstack' field an auto_obstack. In-class initialize all
7383 non-bitfield fields. Make minsyms_read bool.
7384 * symfile.c (read_symbols): Adjust.
7385
7386 2017-06-27 Alan Hayward <alan.hayward@arm.com>
7387
7388 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7389 (gdbsim_store_register): Likewise.
7390
7391 2017-06-27 Pedro Alves <palves@redhat.com>
7392
7393 * c-exp.y (name_obstack): Now an auto_obstack.
7394 (yylex): Use auto_obstack::clear.
7395 (c_parse): Use auto_obstack::clear instead of reinitializing and
7396 freeing the obstack.
7397 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7398 * d-exp.y (name_obstack): Now an auto_obstack.
7399 (yylex): Use auto_obstack::clear.
7400 (d_parse): Use auto_obstack::clear instead of reinitializing and
7401 freeing the obstack.
7402 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7403 auto_obstack.
7404 * dwarf2read.c (create_addrmap_from_index)
7405 (dwarf2_build_psymtabs_hard)
7406 (update_enumeration_type_from_children): Likewise.
7407 * gdb_obstack.h (auto_obstack): New type.
7408 * go-exp.y (name_obstack): Now an auto_obstack.
7409 (build_packaged_name): Use auto_obstack::clear.
7410 (go_parse): Use auto_obstack::clear instead of reinitializing and
7411 freeing the obstack.
7412 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7413 auto_obstack.
7414 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7415 * rust-exp.y (work_obstack): Now an auto_obstack.
7416 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7417 reinitializing and freeing the obstack.
7418 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7419 (host_char_to_target): Use auto_obstack.
7420 * utils.h (make_cleanup_obstack_free): Delete declaration.
7421 * valprint.c (generic_emit_char, generic_printstr): Use
7422 auto_obstack.
7423
7424 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7425
7426 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7427 thread.
7428 (darwin_init_thread_list): Don't update dummy thread.
7429 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7430
7431 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7432
7433 * record-full.c (netorder16): Remove.
7434
7435 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7436
7437 * common/diagnostics.h: Define macros for GCC.
7438 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7439 * common/vec.h: Include diagnostics.h.
7440 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7441 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7442 warning.
7443
7444 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7445
7446 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7447 New macro.
7448 * ada-lex.l: Ignore deprecated register warnings.
7449
7450 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7451
7452 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7453 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7454
7455 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7456
7457 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7458 its own line.
7459
7460 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7461
7462 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7463
7464 2017-06-23 Alan Hayward <alan.hayward@arm.com>
7465
7466 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7467 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7468 (xtensa_register_read_masked): Likewise.
7469
7470 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7471
7472 * common/environ.c (gdb_environ::unset): Update comment.
7473
7474 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7475
7476 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7477 registers.
7478
7479 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7480
7481 * record-full.c (record_full_exec_insn): Use byte_vector.
7482
7483 2017-06-22 Yao Qi <yao.qi@linaro.org>
7484
7485 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7486 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7487
7488 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7489
7490 * remote.c (cached_reg): Move from here...
7491 * regcache.h (cached_reg): ...to here.
7492 * python/py-unwind.c (struct reg_info): Remove.
7493 (cached_frame_info): Use cached_reg_t.
7494 (pyuw_prev_register): Likewise.
7495 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7496 (pyuw_dealloc_cache): Free all registers.
7497
7498 2017-06-22 Pedro Alves <palves@redhat.com>
7499 Simon Marchi <simon.marchi@ericsson.com>
7500
7501 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7502 warning.
7503 * common/diagnostics.h: New file.
7504
7505 2017-06-22 Pedro Alves <palves@redhat.com>
7506
7507 * common/agent.h: Add include guards.
7508
7509 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7510
7511 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7512 talk about addressable units instead of bytes.
7513
7514 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7515
7516 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7517 of '::const_iterator'.
7518
7519 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7520
7521 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7522 'unittests/environ-selftests.c'.
7523 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7524 * charset.c (find_charset_names): Declare object 'iconv_env'.
7525 Update code to use 'iconv_env' object. Remove call to
7526 'free_environ'.
7527 * common/environ.c: Include <utility>.
7528 (make_environ): Delete function.
7529 (free_environ): Delete function.
7530 (gdb_environ::clear): New function.
7531 (gdb_environ::operator=): New function.
7532 (gdb_environ::get): Likewise.
7533 (environ_vector): Delete function.
7534 (set_in_environ): Delete function.
7535 (gdb_environ::set): New function.
7536 (unset_in_environ): Delete function.
7537 (gdb_environ::unset): New function.
7538 (gdb_environ::envp): Likewise.
7539 * common/environ.h: Include <vector>.
7540 (struct gdb_environ): Delete; transform into...
7541 (class gdb_environ): ... this class.
7542 (free_environ): Delete prototype.
7543 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7544 environ_vector): Likewise.
7545 * infcmd.c (run_command_1): Update code to call
7546 'envp' from 'gdb_environ' class.
7547 (environment_info): Update code to call methods from 'gdb_environ'
7548 class.
7549 (unset_environment_command): Likewise.
7550 (path_info): Likewise.
7551 (path_command): Likewise.
7552 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7553 (inferior::inferior): Initialize 'environment' using the host's
7554 information.
7555 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7556 Include "environ.h".
7557 (class inferior) <environment>: Change type from 'struct
7558 gdb_environ' to 'gdb_environ'.
7559 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7560 methods from 'gdb_environ' class.
7561 * solib.c (solib_find_1): Likewise
7562 * unittests/environ-selftests.c: New file.
7563
7564 2017-06-20 Yao Qi <yao.qi@linaro.org>
7565
7566 * features/i386/i386-linux.xml: Exchange the order of including
7567 32bit-linux.xml and 32bit-sse.xml.
7568 * features/i386/i386-linux.c: Regenerated.
7569
7570 2017-06-20 Yao Qi <yao.qi@linaro.org>
7571
7572 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7573 Delete copy ctor and assignment operator.
7574 (tdesc_type): Likewise.
7575 (tdesc_feature): Likewise.
7576 (tdesc_free_reg): Remove.
7577 (tdesc_create_reg): Use new.
7578 (tdesc_free_type): Remove.
7579 (tdesc_create_vector): Use new.
7580 (tdesc_create_union): Likewise.
7581 (tdesc_create_flags): Likewise.
7582 (tdesc_create_enum): Likewise.
7583 (tdesc_free_feature): Delete.
7584 (free_target_description): Use delete.
7585
7586 2017-06-19 John Baldwin <jhb@FreeBSD.org>
7587
7588 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7589 registers.
7590
7591 2017-06-19 Pedro Alves <palves@redhat.com>
7592
7593 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7594 after gdb::unlinker.
7595
7596 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7597
7598 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7599 gdb_environ to access an environment variable.
7600
7601 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7602
7603 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7604 gdb_byte*.
7605
7606 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7607
7608 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7609
7610 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7611
7612 * configure: Re-generate.
7613 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7614
7615 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7616
7617 * configure: Re-generate.
7618 * warning.m4: Pass -Werror to compiler when checking for
7619 supported warning flags.
7620
7621 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7622
7623 * Makefile.in (COMPILE.pre): Add "-x c++".
7624
7625 2017-06-16 Alan Hayward <alan.hayward@arm.com>
7626 Pedro Alves <palves@redhat.com>
7627 Yao Qi <yao.qi@linaro.org>
7628
7629 * defs.h (RequireLongest): New.
7630 (extract_integer): Declare function template.
7631 (extract_signed_integer): Remove the declaration, but define it
7632 static inline.
7633 (extract_unsigned_integer): Likewise.
7634 (store_integer): Declare function template.
7635 (store_signed_integer): Remove the declaration, but define it
7636 static inline.
7637 (store_unsigned_integer): Likewise.
7638 * findvar.c (extract_integer): New function template.
7639 (extract_signed_integer): Remove.
7640 (extract_unsigned_integer): Remove.
7641 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7642 instantiations.
7643 (store_integer): New function template.
7644 (store_signed_integer): Remove.
7645 (store_unsigned_integer): Remove.
7646 (store_integer): Explicit instantiations.
7647 * regcache.c (regcache_raw_read_signed): Update.
7648 (regcache::raw_read): New function.
7649 (regcache::raw_read_signed): Remove.
7650 (regcache::raw_read_unsigned): Remove.
7651 (regcache_raw_read_unsigned): Update.
7652 (regcache_raw_write_unsigned): Update.
7653 (regcache::raw_write_signed): Remove.
7654 (regcache::raw_write): New function.
7655 (regcache_cooked_read_signed): Update.
7656 (regcache::raw_write_unsigned): Remove.
7657 (regcache::cooked_read_signed): Remove.
7658 (regcache_cooked_read_unsigned): Update.
7659 (regcache::cooked_read_unsigned): Remove.
7660 (regcache_cooked_write_signed): Update.
7661 (regcache_cooked_write_unsigned): Update.
7662 * regcache.h (regcache) <raw_read_signed>: Remove.
7663 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7664 <raw_read, raw_write>: New.
7665 <cooked_read_signed, cooked_write_signed>: Remove.
7666 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7667 <cooked_read, cooked_write>: New.
7668 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7669 (sh64_pseudo_register_write): Update.
7670
7671 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7672
7673 * arc-tdep.c (arc_disassembler_options): New variable.
7674 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7675 of default_print_insn.
7676 (arc_delayed_print_insn): Set info->section when needed,
7677 use default_print_insn to retrieve a disassembler.
7678
7679 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7680
7681 PR gdb/21574
7682 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7683 to mention $SHELL and startup-with-shell.
7684
7685 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7686
7687 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7688
7689 2017-06-14 Yao Qi <yao.qi@linaro.org>
7690
7691 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7692 default_print_insn instead of print_insn_aarch64.
7693 * arm-tdep.c (gdb_print_insn_arm): Call
7694 default_print_insn instead of print_insn_big_arm
7695 and print_insn_little_arm.
7696 * i386-tdep.c (i386_print_insn): Call default_print_insn
7697 instead of print_insn_i386.
7698 * ia64-tdep.c (ia64_print_insn): Call
7699 default_print_insn instead of print_insn_ia64.
7700 * mips-tdep.c (gdb_print_insn_mips): Call
7701 default_print_insn instead of print_insn_big_mips
7702 and print_insn_little_mips.
7703 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7704 instead of print_insn_spu.
7705
7706 2017-06-14 Pedro Alves <palves@redhat.com>
7707
7708 * ada-lang.c: Include "common/byte-vector.h".
7709 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7710 * charset.c (wchar_iterator::iterate): Resize the vector instead
7711 of reserving it.
7712 * common/byte-vector.h: Include "common/def-vector.h".
7713 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7714 * cli/cli-dump.c: Include "common/byte-vector.h".
7715 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7716 * common/byte-vector.h: New file.
7717 * common/def-vector.h: New file.
7718 * common/default-init-alloc.h: New file.
7719 * dwarf2loc.c: Include "common/byte-vector.h".
7720 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7721 instead of reserving it.
7722 * dwarf2read.c: Include "common/byte-vector.h".
7723 (data_buf::m_vec): Now a gdb::byte_vector.
7724 * gdb_regex.c: Include "common/def-vector.h".
7725 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7726 * mi/mi-main.c: Include "common/byte-vector.h".
7727 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7728 * printcmd.c: Include "common/byte-vector.h".
7729 (print_scalar_formatted): Use gdb::byte_vector.
7730 * valprint.c: Include "common/byte-vector.h".
7731 (maybe_negate_by_bytes, print_decimal_chars): Use
7732 gdb::byte_vector.
7733
7734 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7735
7736 * darwin-nat.c: Include "nat/fork-inferior.h".
7737
7738 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7739
7740 * configure.nat: Factor out Darwin bits that are not
7741 architecture-specific. Add fork-inferior.o.
7742
7743 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7744
7745 * configure.nat: Factor out AIX bits that are not
7746 architecture-specific. Add fork-inferior.o.
7747
7748 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7749
7750 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7751 (read_pieced_value, write_pieced_value): ...here. Reduce to
7752 wrappers that just call rw_pieced_value.
7753
7754 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7755
7756 * dwarf2loc.c (write_pieced_value): When writing the data for a
7757 memory piece, use write_memory_with_notification instead of
7758 write_memory.
7759
7760 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7761
7762 * valops.c (read_value_memory): Change embedded_offset to
7763 represent a bit offset instead of a byte offset.
7764 * value.h (read_value_memory): Adjust comment.
7765
7766 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7767
7768 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7769 dest_offset_bits and source_offset_bits.
7770 (write_pieced_value): Likewise.
7771
7772 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7773
7774 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7775 given by DW_OP_bit_piece.
7776 (write_pieced_value): Likewise.
7777
7778 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7779
7780 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7781 some other preparations to the places where sufficient information
7782 is available.
7783 (write_pieced_value): Likewise.
7784
7785 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7786
7787 * dwarf2loc.c (bits_to_bytes): New function.
7788 (read_pieced_value): Fix offset calculations for register pieces
7789 on big-endian targets.
7790 (write_pieced_value): Likewise.
7791
7792 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7793
7794 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7795 (write_pieced_value): Likewise.
7796
7797 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7798
7799 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7800 transfer the source value's least significant bits, instead of its
7801 lowest-addressed ones. Rename type_len to max_offset.
7802 (read_pieced_value): Mirror above changes to write_pieced_value as
7803 applicable.
7804
7805 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7806
7807 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7808 truncate full bytes from dest_offset_bits before using it as an
7809 offset into the buffer.
7810
7811 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7812
7813 * dwarf2loc.c (write_pieced_value): Include transfer size in
7814 byte-wise check.
7815
7816 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7817
7818 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7819 calculation of this_size.
7820
7821 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7822
7823 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7824 when targeting a bit-field.
7825 (write_pieced_value): Likewise.
7826
7827 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7828
7829 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7830 (allocate_piece_closure): Drop addr_size parameter.
7831 (dwarf2_evaluate_loc_desc_full): Adjust call to
7832 allocate_piece_closure.
7833
7834 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7835
7836 PR gdb/21226
7837 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7838 the LSB end, independent of endianness.
7839
7840 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7841
7842 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7843 size capping.
7844
7845 2017-06-13 Yao Qi <yao.qi@linaro.org>
7846
7847 * mips-linux-nat.c: Move include features/mips*-linux.c to
7848 mips-linux-tdep.c.
7849 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7850 to mips-linux-tdep.c.
7851 * mips-linux-tdep.c: Include features/mips*-linux.c
7852 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7853 functions.
7854 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7855 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7856 (tdesc_mips64_dsp_linux): Declare.
7857
7858 2017-06-12 Tom Tromey <tom@tromey.com>
7859
7860 * valprint.h (val_print_type_code_int): Remove.
7861 * valprint.c (generic_val_print_int): Always call
7862 val_print_scalar_formatted.
7863 (val_print_type_code_int): Remove.
7864 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7865 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7866 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7867 * ada-valprint.c (ada_val_print_num): Use
7868 val_print_scalar_formatted.
7869
7870 2017-06-12 Tom Tromey <tom@tromey.com>
7871
7872 * printcmd.c (print_scalar_formatted): Unify the two switches.
7873 Don't convert scalars to LONGEST.
7874
7875 2017-06-12 Tom Tromey <tom@tromey.com>
7876
7877 PR exp/16225:
7878 * valprint.h (print_decimal_chars): Update.
7879 * valprint.c (maybe_negate_by_bytes): New function.
7880 (print_decimal_chars): Add "is_signed" argument.
7881 * printcmd.c (print_scalar_formatted): Update.
7882
7883 2017-06-12 Tom Tromey <tom@tromey.com>
7884
7885 PR exp/16225:
7886 * valprint.h (print_binary_chars, print_hex_chars): Update.
7887 * valprint.c (val_print_type_code_int): Update.
7888 (print_binary_chars): Add "zero_pad" argument.
7889 (emit_octal_digit): New function.
7890 (print_octal_chars): Don't zero-pad.
7891 (print_decimal_chars): Likewise.
7892 (print_hex_chars): Add "zero_pad" argument.
7893 * sh64-tdep.c (sh64_do_fp_register): Update.
7894 * regcache.c (regcache::dump): Update.
7895 * printcmd.c (print_scalar_formatted): Update.
7896 * infcmd.c (default_print_one_register_info): Update.
7897
7898 2017-06-12 Pedro Alves <palves@redhat.com>
7899 Alan Hayward <alan.hayward@arm.com>
7900
7901 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
7902 (mips_eabi_push_dummy_call): Rename local 'regsize' to
7903 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
7904 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
7905 Assert that abi_regsize bytes fit in 'ref_valbuf'.
7906
7907 2017-06-12 Pedro Alves <palves@redhat.com>
7908
7909 * dwarf2read.c (mapped_symtab::data): Now a vector of
7910 symtab_index_entry instead of vector of
7911 std::unique_ptr<symtab_index_entry>. All users adjusted to check
7912 whether an element's name is NULL instead of checking whether the
7913 element itself is NULL.
7914 (find_slot): Change return type. Adjust.
7915 (hash_expand, , add_index_entry, uniquify_cu_indices)
7916 (write_hash_table): Adjust.
7917
7918 2017-06-12 Pedro Alves <palves@redhat.com>
7919
7920 * dwarf2read.c (recursively_count_psymbols): New function.
7921 (write_psymtabs_to_index): Call it to compute number of psyms and
7922 pass estimate size of psyms_seen to unordered_set's ctor.
7923
7924 2017-06-12 Pedro Alves <palves@redhat.com>
7925
7926 * dwarf2read.c (write_hash_table): Check if key already exists
7927 before emplacing.
7928
7929 2017-06-12 Pedro Alves <palves@redhat.com>
7930
7931 * dwarf2read.c (data_buf::append_space): Rename to...
7932 (data_buf::grow): ... this, and make private. Adjust all callers.
7933 (data_buf::append_uint): New method.
7934 (add_address_entry, write_one_signatured_type)
7935 (write_psymtabs_to_index): Use it.
7936
7937 2017-06-12 Pedro Alves <palves@redhat.com>
7938
7939 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
7940 (file_write (FILE *, const std::vector<Elem>&)): Delete.
7941 (data_buf::file_write): Call ::fwrite directly.
7942
7943 2017-06-12 Pedro Alves <palves@redhat.com>
7944
7945 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
7946 std::vector::erase.
7947
7948 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7949
7950 Code cleanup: C++ify .gdb_index producer.
7951 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
7952 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
7953 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
7954 (create_strtab, add_string): Remove.
7955 (file_write, data_buf): New.
7956 (struct symtab_index_entry): Use std::vector for cu_indices.
7957 (struct mapped_symtab): Use std::vector for data.
7958 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
7959 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
7960 Remove.
7961 (find_slot): Change return type. Update it to the new data structures.
7962 (hash_expand, add_index_entry): Update it to the new data structures.
7963 (offset_type_compare): Remove.
7964 (uniquify_cu_indices): Update it to the new data structures.
7965 (c_str_view, c_str_view_hasher, vector_hasher): New.
7966 (add_indices_to_cpool): Remove.
7967 (write_hash_table): Update it to the new data structures.
7968 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
7969 (eq_psymtab_cu_index): Remove.
7970 (psym_index_map): New typedef.
7971 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
7972 reference and std::unordered_map for cu_index_htab.
7973 (add_address_entry, add_address_entry_worker, write_address_map)
7974 (write_psymbols): Update it to the new data structures.
7975 (write_obstack): Remove.
7976 (struct signatured_type_index_data): Change types_list to a data_buf
7977 reference and psyms_seen to a std::unordered_set reference.
7978 (write_one_signatured_type, recursively_write_psymbols)
7979 (write_psymtabs_to_index): Update it to the new data structures.
7980
7981 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
7982
7983 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
7984 separate-debug-file commands.
7985 * symfile.h (separate_debug_file_debug): New global.
7986 * symfile.c (separate_debug_file_debug): New global.
7987 (separate_debug_file_exists, find_separate_debug_file): Add
7988 debug output.
7989 (_initialize_symfile): Add "set debug separate-debug-file"
7990 command.
7991 * build-id.c (build_id_to_debug_bfd,
7992 find_separate_debug_file_by_buildid): Add debug output.
7993
7994 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7995
7996 * gdbarch.sh (displaced_step_free_closure): Remove.
7997 * gdbarch.h, gdbarch.c: Re-generate.
7998 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
7999 displaced_step_free_closure.
8000 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8001 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8002 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8003 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8004 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8005 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8006 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8007 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8008 * infrun.c (displaced_step_clear): Call xfree instead of
8009 gdbarch_displaced_step_free_closure.
8010
8011 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8012
8013 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8014 NULL".
8015
8016 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8017
8018 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8019 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8020 (mn10300_push_dummy_call): Likewise.
8021
8022 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8023
8024 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8025
8026 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8027
8028 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8029
8030 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8031
8032 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8033 able to start inferiors using a shell.
8034 (New remote packets): Announce new packet "QStartupWithShell".
8035 * remote.c: Add PACKET_QStartupWithShell.
8036 (extended_remote_create_inferior): Handle new
8037 PACKET_QStartupWithShell.
8038 (remote_protocol_features) <QStartupWithShell>: New entry for
8039 PACKET_QStartupWithShell.
8040 (_initialize_remote): Call "add_packet_config_cmd" for
8041 QStartupShell.
8042
8043 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8044 Pedro Alves <palves@redhat.com>
8045
8046 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8047 and "nat/fork-inferior.h".
8048 * common/common-inferior.h: New file, with contents from
8049 "gdb/inferior.h".
8050 * commom/common-utils.c: Include "common-utils.h".
8051 (stringify_argv): New function.
8052 * common/common-utils.h (stringify_argv): New prototype.
8053 * configure.nat: Add "fork-inferior.o" as a dependency for
8054 "*linux*", "fbsd*" and "nbsd*" hosts.
8055 * corefile.c (get_exec_file): Update comment.
8056 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8057 instead of "startup_inferior".
8058 (darwin_create_inferior): Call "add_thread_silent" after
8059 "fork_inferior".
8060 * fork-child.c: Cleanup unnecessary includes.
8061 (SHELL_FILE): Move to "common/common-fork-child.c".
8062 (environ): Likewise.
8063 (exec_wrapper): Initialize.
8064 (get_exec_wrapper): New function.
8065 (breakup_args): Move to "common/common-fork-child.c"; rename to
8066 "breakup_args_for_exec".
8067 (escape_bang_in_quoted_argument): Move to
8068 "common/common-fork-child.c".
8069 (saved_ui): New variable.
8070 (prefork_hook): New function.
8071 (postfork_hook): Likewise.
8072 (postfork_child_hook): Likewise.
8073 (gdb_startup_inferior): Likewise.
8074 (fork_inferior): Move to "common/common-fork-child.c". Update
8075 function to support gdbserver.
8076 (startup_inferior): Likewise.
8077 * gdbcore.h (get_exec_file): Remove declaration.
8078 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8079 instead of "startup_inferior". Call "add_thread_silent" after
8080 "fork_inferior".
8081 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8082 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8083 instead of "startup_inferior". Call "add_thread_silent" after
8084 "fork_inferior".
8085 * inferior.h: Include "common-inferior.h".
8086 (trace_start_error): Move to "common/common-utils.h".
8087 (trace_start_error_with_name): Likewise.
8088 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8089 (startup_inferior): Likewise.
8090 (gdb_startup_inferior): New prototype.
8091 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8092 * nat/fork-inferior.h: New file.
8093 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8094 instead of "startup_inferior". Call "add_thread_silent" after
8095 "fork_inferior".
8096 * target.h (target_terminal_init): Move prototype to
8097 "target/target.h".
8098 (target_terminal_inferior): Likewise.
8099 (target_terminal_ours): Likewise.
8100 * target/target.h (target_terminal_init): New prototype, moved
8101 from "target.h".
8102 (target_terminal_inferior): Likewise.
8103 (target_terminal_ours): Likewise.
8104 * utils.c (gdb_flush_out_err): New function.
8105
8106 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8107
8108 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8109 * common/common-gdbthread.h: New file, with parts from
8110 "gdb/gdbthread.h".
8111 * gdbthread.h: Include "common-gdbthread.h".
8112 (switch_to_thread): Moved to "common/common-gdbthread.h".
8113
8114 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8115
8116 * Makefile.in (SFILES): Add "common/job-control.c".
8117 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8118 (COMMON_OBS): Add "job-control.o".
8119 * common/job-control.c: New file, with contents from
8120 "gdb/inflow.c".
8121 * common/job-control.h: New file, with contents from "terminal.h".
8122 * fork-child.c: Include "job-control.h".
8123 * inflow.c: Include "job-control.h".
8124 (gdb_setpgid): Move to "common/common-inflow.c".
8125 (_initialize_inflow): Move setting of "job_control" to
8126 "handle_job_control".
8127 * terminal.h (job_control): Moved to "common/common-terminal.h".
8128 (gdb_setpgid): Likewise.
8129 * top.c: Include "job_control.h".
8130 * utils.c: Likewise.
8131 (job_control): Moved to "job-control.c".
8132
8133 2017-06-07 Pedro Alves <palves@redhat.com>
8134
8135 * Makefile.in (SFILES): Add gdb_regex.c.
8136 (COMMON_OBS): Add gdb_regex.o.
8137 * ada-lang.c (ada_add_standard_exceptions)
8138 (ada_add_exceptions_from_frame, name_matches_regex)
8139 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8140 parameter type to compiled_regex. Adjust.
8141 (ada_exceptions_list): Use compiled_regex.
8142 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8143 std::unique_ptr<compiled_regex>.
8144 (exception_catchpoint::~exception_catchpoint): Remove regfree
8145 call.
8146 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8147 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8148 * breakpoint.c (solib_catchpoint::compiled): Now a
8149 std::unique_ptr<compiled_regex>.
8150 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8151 (check_status_catch_solib): Adjust to use compiled_regex.
8152 (add_solib_catchpoint): Adjust to use compiled_regex.
8153 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8154 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8155 compiled_regex reference. Adjust to use it.
8156 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8157 declaration. Include "gdb_regex.h".
8158 (apropos_cmd): Change regex parameter to compiled_regex reference.
8159 * gdb_regex.c: New file.
8160 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8161 declarations.
8162 (class compiled_regex): New.
8163 * linux-tdep.c: Include "common/gdb_optional.h".
8164 (struct mapping_regexes): New, factored out from
8165 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8166 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8167 gdb::optional and remove cleanups. Adjust to compiled_regex.
8168 * probe.c: Include "common/gdb_optional.h".
8169 (collect_probes): Use compiled_regex and gdb::optional and remove
8170 cleanups.
8171 * skip.c: Include "common/gdb_optional.h".
8172 (skiplist_entry::compiled_function_regexp): Now a
8173 gdb::optional<compiled_regex>.
8174 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8175 (free_skiplist_entry): Remove regfree call.
8176 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8177 compiled_regex and gdb::optional.
8178 * symtab.c: Include "common/gdb_optional.h".
8179 (search_symbols): Use compiled_regex and gdb::optional.
8180 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8181 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8182 to gdb_regex.c.
8183
8184 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8185
8186 * regcache.c (regcache::save): Avoid buffer use.
8187 (regcache::dump): Likewise.
8188
8189 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8190
8191 * sh-tdep.c (sh_pseudo_register_read): Remove
8192 MAX_REGISTER_SIZE.
8193 (sh_pseudo_register_write): Likewise.
8194 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8195 (sh64_pseudo_register_write): Likewise
8196
8197 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8198
8199 * aarch64-tdep.c (aarch64_store_return_value): Use
8200 V_REGISTER_SIZE.
8201 (aarch64_pseudo_read_value): Likewise.
8202 (aarch64_pseudo_write): Likewise.
8203
8204 2017-06-06 Yao Qi <yao.qi@linaro.org>
8205
8206 * regformats/regdef.h (set_register_cache): Remove the
8207 declaration.
8208
8209 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8210
8211 * frame.c (frame_unwind_register_signed): Use
8212 frame_unwind_register_value.
8213
8214 2017-06-06 Pedro Alves <palves@redhat.com>
8215
8216 PR breakpoints/21553
8217 * breakpoint.c (create_breakpoints_sal_default)
8218 (init_breakpoint_sal, create_breakpoint_sal): Use
8219 gdb::unique_xmalloc_ptr for string parameters.
8220 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8221 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8222 (base_breakpoint_create_breakpoints_sal)
8223 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8224 (strace_marker_create_breakpoints_sal)
8225 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8226 string parameters.
8227 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8228 gdb::unique_xmalloc_ptr for string parameters.
8229 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8230 parameters.
8231
8232 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8233
8234 * alpha-tdep.c (alpha_register_to_value): Use
8235 get_frame_register_value.
8236 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8237
8238 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8239
8240 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8241 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8242 (ia64_value_to_register): Likewise.
8243 (ia64_extract_return_value): Likewise.
8244 (ia64_store_return_value): Likewise.
8245 (ia64_push_dummy_call): Likewise.
8246
8247 2017-06-04 Joel Brobecker <brobecker@adacore.com>
8248
8249 GDB 8.0 released.
8250
8251 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8252
8253 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8254
8255 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8256
8257 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8258 parameter.
8259 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8260
8261 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8262
8263 * event-loop.c (poll_timers): Unallocate timer using delete
8264 instead of xfree.
8265
8266 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8267
8268 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8269 (struct breakpoint) <~breakpoint>: New.
8270 (struct watchpoint): Inherit from breakpoint.
8271 <~watchpoint>: New.
8272 <base>: Remove.
8273 (struct tracepoint): Inherit from breakpoint.
8274 <base>: Remove.
8275 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8276 (struct longjmp_breakpoint): Inherit from breakpoint.
8277 <~longjmp_breakpoint>: New.
8278 <base>: Remove.
8279 (new_breakpoint_from_type): Remove casts.
8280 (watchpoint_in_thread_scope): Remove reference to base field.
8281 (watchpoint_del_at_next_stop): Likewise.
8282 (update_watchpoint): Likewise.
8283 (watchpoint_check): Likewise.
8284 (bpstat_check_watchpoint): Likewise.
8285 (set_longjmp_breakpoint): Likewise.
8286 (struct fork_catchpoint): Inherit from breakpoint.
8287 <base>: Remove.
8288 (struct solib_catchpoint): Inherit from breakpoint.
8289 <~solib_catchpoint>: New.
8290 <base>: Remove.
8291 (dtor_catch_solib): Change to ...
8292 (solib_catchpoint::~solib_catchpoint): ... this.
8293 (breakpoint_hit_catch_solib): Remove reference to base field.
8294 (add_solib_catchpoint): Likewise.
8295 (create_fork_vfork_event_catchpoint): Likewise.
8296 (struct exec_catchpoint): Inherit from breakpoint.
8297 <~exec_catchpoint>: New.
8298 <base>: Remove.
8299 (dtor_catch_exec): Change to ...
8300 (exec_catchpoint::~exec_catchpoint): ... this.
8301 (dtor_watchpoint): Change to ...
8302 (watchpoint::~watchpoint): ... this.
8303 (watch_command_1): Remove reference to base field.
8304 (catch_exec_command_1): Likewise.
8305 (base_breakpoint_dtor): Change to ...
8306 (breakpoint::~breakpoint): ... this.
8307 (base_breakpoint_ops): Remove dtor field value.
8308 (longjmp_bkpt_dtor): Change to ...
8309 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8310 (strace_marker_create_breakpoints_sal): Remove reference to base
8311 field.
8312 (delete_breakpoint): Don't manually call breakpoint destructor.
8313 (create_tracepoint_from_upload): Remove reference to base field.
8314 (trace_pass_set_count): Likewise.
8315 (initialize_breakpoint_ops): Don't initialize
8316 momentary_breakpoint_ops, don't set dtors.
8317 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8318 <~ada_catchpoint>: New.
8319 <base>: Remove.
8320 (create_excep_cond_exprs): Remove reference to base field.
8321 (dtor_exception): Change to ...
8322 (ada_catchpoint::~ada_catchpoint): ... this.
8323 (dtor_catch_exception): Remove.
8324 (dtor_catch_exception_unhandled): Remove.
8325 (dtor_catch_assert): Remove.
8326 (create_ada_exception_catchpoint): Remove reference to base
8327 field.
8328 (initialize_ada_catchpoint_ops): Don't set dtors.
8329 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8330 breakpoint.
8331 <~signal_catchpoint>: New.
8332 <base>: Remove.
8333 (signal_catchpoint_dtor): Change to ...
8334 (signal_catchpoint::~signal_catchpoint): ... this.
8335 (create_signal_catchpoint): Remove reference to base field.
8336 (initialize_signal_catchpoint_ops): Don't set dtor.
8337 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8338 from breakpoint.
8339 <~syscall_catchpoint>: New.
8340 <base>: Remove.
8341 (dtor_catch_syscall): Change to ...
8342 (syscall_catchpoint::~syscall_catchpoint): ... this.
8343 (create_syscall_event_catchpoint): Remove reference to base
8344 field.
8345 (initialize_syscall_catchpoint_ops): Don't set dtor.
8346 * break-catch-throw.c (struct exception_catchpoint): Inherit
8347 from breakpoint.
8348 <~exception_catchpoint>: New.
8349 <base>: Remove.
8350 (dtor_exception_catchpoint): Change to ...
8351 (exception_catchpoint::~exception_catchpoint): ... this.
8352 (handle_gnu_v3_exceptions): Remove reference to base field.
8353 (initialize_throw_catchpoint_ops): Don't set dtor.
8354 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8355 field.
8356 * remote.c (remote_get_tracepoint_status): Likewise.
8357 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8358 * tracefile.c (tracefile_fetch_registers): Likewise.
8359 * tracepoint.c (actions_command): Likewise.
8360 (validate_actionline): Likewise.
8361 (tfind_1): Likewise.
8362 (get_traceframe_location): Likewise.
8363 (find_matching_tracepoint_location): Likewise.
8364 (parse_tracepoint_status): Likewise.
8365 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8366
8367 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8368
8369 * breakpoint.c (struct longjmp_breakpoint): New struct.
8370 (is_tracepoint_type): Change return type to bool.
8371 (is_longjmp_type): New function.
8372 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8373 (set_raw_breakpoint_without_location): Use
8374 new_breakpoint_from_type.
8375 (set_raw_breakpoint): Likewise.
8376
8377 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8378
8379 * breakpoint.c (new_breakpoint_from_type): New function.
8380 (create_breakpoint_sal): Use new_breakpoint_from_type and
8381 unique_ptr.
8382 (create_breakpoint): Likewise.
8383
8384 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8385
8386 * memattr.c (mem_info_command): Rename to ...
8387 (info_mem_command): ... this.
8388 (mem_enable_command): Rename to ...
8389 (enable_mem_command): ... this.
8390 (mem_disable_command): Rename to ...
8391 (disable_mem_command): ... this.
8392 (mem_delete_command): Rename to ...
8393 (delete_mem_command): ... this.
8394 (_initialize_mem): Adjust function names.
8395
8396 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8397
8398 * btrace.c (handle_pt_insn_events): New.
8399 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8400 STATUS. Split into this and ...
8401 (handle_pt_insn_event_flags): ... this.
8402
8403 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8404
8405 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8406 and struct pt_insn.resynced.
8407 * configure: Regenerated.
8408 * config.in: Regenerated.
8409
8410 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8411
8412 * btrace.c (ftrace_find_call_by_number): New function.
8413 (ftrace_new_function): Store objects, not pointers.
8414 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8415 ftrace_new_gap, ftrace_update_function,
8416 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8417 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8418 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8419 btrace_ends_with_single_insn, btrace_call_get): Account for
8420 btrace_thread_info::functions now storing objects.
8421 * btrace.h (struct btrace_thread_info): Add constructor.
8422 (struct btrace_thread_info) <functions>: Make std::vector.
8423 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8424 Initialize with default values.
8425 * record-btrace.c (record_btrace_frame_sniffer): Account for
8426 btrace_thread_info::functions now storing objects.
8427
8428 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8429
8430 * btrace.c: Remove typedef bfun_s.
8431 (ftrace_new_gap): Directly add gaps to the list of gaps.
8432 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8433 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8434 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8435 instead of gdb VEC.
8436
8437 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8438
8439 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8440 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8441 with btrace_thread_info::next_segment and
8442 btrace_thread_info::prev_segment.
8443 * btrace.h: Remove struct btrace_func_link.
8444 (struct btrace_function): Replace pair of function segment pointers
8445 with pair of indices.
8446 * python/py-record-btrace.c (btpy_call_prev_sibling,
8447 btpy_call_next_sibling): Replace references to
8448 btrace_thread_info::segment with btrace_thread_info::next_segment and
8449 btrace_thread_info::prev_segment.
8450 * record-btrace.c (record_btrace_frame_this_id): Use
8451 btrace_find_call_by_number.
8452
8453 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8454
8455 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8456 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8457 btrace_insn_next, btrace_insn_prev): Remove references to
8458 btrace_thread_info::flow.
8459 * btrace.h (struct btrace_function): Remove FLOW.
8460
8461 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8462
8463 * btrace.c (ftrace_find_call_by_number): New function.
8464 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8465 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8466 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8467 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8468 index.
8469 * btrace.h (struct btrace_function): Turn UP into an index.
8470 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8471 as an index.
8472 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8473 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8474 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8475
8476 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8477
8478 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8479 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8480 ftrace_update_function, ftrace_compute_global_level_offset,
8481 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8482 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8483 btrace_insn_end, btrace_is_empty): Remove references to
8484 btrace_thread_info::begin and btrace_thread_info::end.
8485 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8486 (struct btrace_thread_info) <functions>: Adjust comment.
8487 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8488 btrace_thread_info::begin.
8489
8490 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8491
8492 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8493 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8494 ftrace_update_function): Remove arguments that implicitly were always
8495 BTINFO->END.
8496 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8497 Don't pass BTINFO->END.
8498
8499 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8500
8501 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8502 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8503 btrace_find_insn_by_number): Replace function segment pointer with
8504 index.
8505 (btrace_insn_cmp): Simplify.
8506 * btrace.h: (struct btrace_insn_iterator) Rename index to
8507 insn_index. Replace function segment pointer with index into function
8508 segment vector.
8509 * record-btrace.c (record_btrace_call_history): Replace function
8510 segment pointer use with index.
8511 (record_btrace_frame_sniffer): Retrieve function call segment through
8512 vector.
8513 (record_btrace_set_replay): Remove defunc't safety check.
8514
8515 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8516
8517 * btrace.c (btrace_ends_with_single_insn): New function.
8518 (btrace_call_get, btrace_call_number, btrace_call_begin,
8519 btrace_call_end, btrace_call_next, btrace_call_prev,
8520 btrace_find_call_by_number): Use index into call segment vector
8521 instead of pointer.
8522 (btrace_call_cmp): Simplify.
8523 * btrace.h (struct btrace_call_iterator): Replace function call segment
8524 pointer with index into vector.
8525 * record-btrace.c (record_btrace_call_history): Use index instead of
8526 pointer.
8527
8528 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8529
8530 * btrace.c (btrace_insn_begin, btrace_insn_end,
8531 btrace_find_insn_by_number): Add btinfo to iterator.
8532 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8533
8534 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8535
8536 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8537 and save pointers directly.
8538 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8539 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8540 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8541 changed signature of functions.
8542 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8543 (btrace_fetch): Remove code that adds btrace_function pointers to
8544 vector of btrace_functions.
8545 (btrace_clear): Simplify freeing vector of btrace_functions.
8546
8547 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8548
8549 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8550 Replace VEC_* with std::vector functions.
8551 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8552 (struct btrace_thread_info)<functions>: Change type to std::vector.
8553
8554 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8555
8556 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8557 "Removed targets and native configurations" up. Merge duplicate
8558 "New commands" sub-sections. Add "New options" sub-sections.
8559
8560 2017-05-26 Alan Hayward <alan.hayward@arm.com>
8561
8562 * defs.h (copy_integer_to_size): New declaration.
8563 * findvar.c (copy_integer_to_size): New function.
8564 (do_cint_test): New selftest function.
8565 (copy_integer_to_size_test): Likewise.
8566 (_initialize_findvar): Likewise.
8567 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8568 (mips_fbsd_collect_reg): Use raw_collect_integer.
8569 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8570 (mips64_fill_gregset): Use raw_collect_integer
8571 (mips64_fill_fpregset): Use raw_supply_integer.
8572 * regcache.c (regcache::raw_supply_integer): New function.
8573 (regcache::raw_collect_integer): Likewise.
8574 * regcache.h: (regcache::raw_supply_integer): New declaration.
8575 (regcache::raw_collect_integer): Likewise.
8576
8577 2017-05-24 Yao Qi <yao.qi@linaro.org>
8578
8579 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8580 (COMMON_OBS): Add gdbarch-selftests.o.
8581 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8582 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8583 * gdbarch-selftests.c: New file.
8584 * regcache.h (regcache) <~regcache>: Mark it virtual if
8585 GDB_SELF_TEST.
8586 <raw_write>: Likewise.
8587
8588 2017-05-24 Yao Qi <yao.qi@linaro.org>
8589
8590 * regcache.c (current_regcache): Change it to
8591 regcache::current_regcache.
8592 (regcache_observer_target_changed): Update.
8593 (regcache_thread_ptid_changed): Make it a regcache static
8594 method.
8595 (regcache_thread_ptid_changed): Update.
8596 (class regcache_access): New.
8597 (current_regcache_test): Update.
8598 (_initialize_regcache): Update.
8599 * regcache.h: Include forward_list.
8600 (regcache): Declare regcache_thread_ptid_changed and declare
8601 registers_changed_ptid as friend.
8602
8603 2017-05-24 Yao Qi <yao.qi@linaro.org>
8604
8605 * i387-tdep.c (i387_register_to_value): Use register_size
8606 instead of TYPE_LENGTH.
8607 * m68k-tdep.c (m68k_register_to_value): Likewise.
8608
8609 2017-05-24 Yao Qi <yao.qi@linaro.org>
8610
8611 * i387-tdep.c (i387_convert_register_p): Return false if type
8612 code isn't TYPE_CODE_FLT.
8613
8614 2017-05-24 Yao Qi <yao.qi@linaro.org>
8615
8616 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8617 length is 4.
8618 (alpha_register_to_value): Remove type length check.
8619 (alpha_value_to_register): Likewise.
8620
8621 2017-05-24 Yao Qi <yao.qi@linaro.org>
8622
8623 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8624 TYPE_CODE_FLT.
8625
8626 2017-05-24 Yao Qi <yao.qi@linaro.org>
8627
8628 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8629 TYPE_CODE_FLT or not.
8630
8631 2017-05-24 Yao Qi <yao.qi@linaro.org>
8632
8633 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8634 * avr-tdep.c (avr_gdbarch_init): Likewise.
8635 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8636 * cris-tdep.c (cris_gdbarch_init): Likewise.
8637 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8638 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8639 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8641 * mep-tdep.c (mep_gdbarch_init): Likewise.
8642 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8643 * mips-tdep.c (mips_gdbarch_init): Likewise.
8644 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8645 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8646 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8647 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8648 * v850-tdep.c (v850_gdbarch_init): Likewise.
8649
8650 2017-05-24 Yao Qi <yao.qi@linaro.org>
8651
8652 * selftest-arch.c (tests_with_arch): Call registers_changed
8653 and reinit_frame_cache.
8654 * selftest.c (run_self_tests): Likewise.
8655
8656 2017-05-24 Yao Qi <yao.qi@linaro.org>
8657
8658 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8659 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8660
8661 2017-05-24 Yao Qi <yao.qi@linaro.org>
8662
8663 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8664 set_gdbarch_print_insn.
8665
8666 2017-05-24 Yao Qi <yao.qi@linaro.org>
8667
8668 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8669 set_gdbarch_print_insn.
8670
8671 2017-05-24 Yao Qi <yao.qi@linaro.org>
8672
8673 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8674 set_gdbarch_print_insn.
8675 * arc-tdep.c (arc_gdbarch_init): Likewise.
8676 * arch-utils.c: include dis-asm.h.
8677 (default_print_insn): New function.
8678 * arch-utils.h (default_print_insn): Declare.
8679 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8680 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8681 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8682 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8683 * frv-tdep.c (frv_gdbarch_init): Likewise.
8684 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8685 * gdbarch.sh (print_insn): Use default_print_insn.
8686 * gdbarch.c: Regenerated.
8687 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8688 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8689 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8690 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8691 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8692 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8693 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8694 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8695 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8696 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8697 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8698 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8699 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8700 * mt-tdep.c (mt_gdbarch_init): Likewise.
8701 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8702 * nios2-tdep.c (nios2_print_insn): Remove.
8703 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8704 * rx-tdep.c (rx_gdbarch_init): Likewise.
8705 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8706 * score-tdep.c (score_print_insn): Remove.
8707 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8708 * sh-tdep.c (sh_gdbarch_init): Likewise.
8709 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8710 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8711 * tic6x-tdep.c (tic6x_print_insn): Remove.
8712 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8713 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8714 * v850-tdep.c (v850_gdbarch_init): Likewise.
8715 * vax-tdep.c (vax_gdbarch_init): Likewise.
8716 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8717 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8718
8719 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8720
8721 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8722 (MIPS_FP0_REGNUM): Remove.
8723 (MIPS_FSR_REGNUM): Remove.
8724 (mips_fbsd_supply_fpregs): Use mips_regnum.
8725 (mips_fbsd_supply_gregs): Likewise.
8726 (mips_fbsd_collect_fpregs): Likewise.
8727 (mips_fbsd_collect_gregs): Likewise.
8728
8729 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8730
8731 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8732 (getpfpregs_supplies): New function.
8733 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8734 getfpregs_supplies.
8735 (mips_fbsd_store_inferior_registers): Likewise.
8736
8737 2017-05-22 Pedro Alves <palves@redhat.com>
8738
8739 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8740 maintainer.
8741
8742 2017-05-22 Alan Hayward <alan.hayward@arm.com>
8743
8744 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8745 (store_register): Likewise.
8746 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8747 (get_decimal_float_return_value): Likewise.
8748 (do_ppc_sysv_return_value): Likewise.
8749 (ppc64_sysv_abi_push_integer): Likewise.
8750 (ppc64_sysv_abi_push_freg): Likewise.
8751 (ppc64_sysv_abi_return_value_base): Likewise.
8752 (ppc64_sysv_abi_return_value): Likewise.
8753 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8754 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8755 * rs6000-nat.c: Likewise.
8756 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8757 (rs6000_value_to_register): Likewise.
8758 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8759
8760 2017-05-21 Tom Tromey <tom@tromey.com>
8761
8762 PR rust/21466:
8763 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8764 arrays as "[T]", not "[T; ]".
8765
8766 2017-05-19 Tom Tromey <tom@tromey.com>
8767
8768 PR rust/21484:
8769 * rust-lang.c (exp_descriptor_rust): New function.
8770 (rust_language_defn): Use it.
8771 * p-lang.c (pascal_language_defn): Update.
8772 * opencl-lang.c (opencl_language_defn): Update.
8773 * objc-lang.c (objc_language_defn): Update.
8774 * m2-lang.c (m2_language_defn): Update.
8775 * language.h (struct language_defn)
8776 <la_watch_location_expression>: New member.
8777 * language.c (unknown_language_defn, auto_language_defn)
8778 (local_language_defn): Update.
8779 * go-lang.c (go_language_defn): Update.
8780 * f-lang.c (f_language_defn): Update.
8781 * d-lang.c (d_language_defn): Update.
8782 * c-lang.h (c_watch_location_expression): Declare.
8783 * c-lang.c (c_watch_location_expression): New function.
8784 (c_language_defn, cplus_language_defn, asm_language_defn)
8785 (minimal_language_defn): Use it.
8786 * breakpoint.c (watch_command_1): Call
8787 la_watch_location_expression.
8788 * ada-lang.c (ada_language_defn): Update.
8789
8790 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8791
8792 PR tui/21482
8793 * gdb_curses.h (NOMACROS): Define.
8794 (NCURSES_NOMACROS): Define.
8795
8796 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8797
8798 PR tui/21482
8799 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8800 arg to char *.
8801 * tui/tui-wingeneral.c (box_win): Likewise.
8802 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8803 (tui_show_source_line): Likewise.
8804 (tui_show_exec_info_content): Likewise.
8805
8806 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8807
8808 * sparc-tdep.c (sparc_structure_return_p)
8809 (sparc_arg_on_registers_p): New functions.
8810 (sparc32_store_arguments): Use them.
8811 * sparc64-tdep.c (sparc64_16_byte_align_p)
8812 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8813 Handle TYPE_CODE_ARRAY.
8814
8815 2017-05-17 Yao Qi <yao.qi@linaro.org>
8816
8817 * cli/cli-decode.c (add_alias_cmd): New function.
8818 * command.h (add_alias_cmd): Declare.
8819 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8820 instead call add_alias_cmd.
8821
8822 2017-05-17 Pedro Alves <palves@redhat.com>
8823
8824 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8825 (nat_makefile_frag): ... this. All references updated.
8826 * configure.ac: Likewise.
8827 * configure.nat: Likewise. Enhance comments.
8828 * configure: Regenerate.
8829
8830 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8831
8832 * procfs.c (procfs_create_inferior): Change prototype to match
8833 definition.
8834
8835 2017-05-13 Eli Zaretskii <eliz@gnu.org>
8836
8837 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8838 C++ compiler warning.
8839
8840 2017-05-12 Tom Tromey <tom@tromey.com>
8841
8842 PR rust/21483:
8843 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8844 recurse, just call value_struct_elt directly.
8845
8846 2017-05-12 Tom Tromey <tom@tromey.com>
8847
8848 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8849 OP_RUST_ARRAY>: Fix.
8850
8851 2017-05-12 Tom Tromey <tom@tromey.com>
8852
8853 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8854
8855 2017-05-09 Yao Qi <yao.qi@linaro.org>
8856
8857 * regcache.c: Include <forward_list>.
8858 (struct regcache_list): Remove.
8859 (current_regcache): Update.
8860 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8861 (regcache_thread_ptid_changed): Likewise.
8862 (registers_changed_ptid): Likewise.
8863 (current_regcache_size): Likewise.
8864
8865 2017-05-09 Yao Qi <yao.qi@linaro.org>
8866
8867 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8868 (current_regcache_size): New function.
8869 (current_regcache_test): New function.
8870 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
8871
8872 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8873
8874 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
8875 (print_gp_register_row): Use get_frame_register_value.
8876
8877 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8878
8879 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
8880 (mips_supply_fpregset): Likewise.
8881 (mips64_supply_gregset): Likewise.
8882
8883 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8884
8885 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
8886 regcache->raw_supply_zeroed.
8887
8888 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8889
8890 * configure.nat: Rearrange 'case' statements to match
8891 host before cpu.
8892
8893 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8894
8895 * Makefile.in: Remove "@host_makefile_frag@". Add variables
8896 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
8897 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
8898 "@nat_extra_makefile_frag@".
8899 (Makefile): Remove dependency on "@frags@".
8900 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
8901 (data-directory/Makefile): Likewise.
8902 * config/aarch64/linux.mh: Deleted; moved contents to
8903 "gdb/configure.nat".
8904 * config/alpha/alpha-linux.mh: Likewise.
8905 * config/alpha/nbsd.mh: Likewise.
8906 * config/arm/linux.mh: Likewise.
8907 * config/arm/nbsdelf.mh: Likewise.
8908 * config/i386/cygwin.mh: Likewise.
8909 * config/i386/cygwin64.mh: Likewise.
8910 * config/i386/darwin.mh: Likewise.
8911 * config/i386/fbsd.mh: Likewise.
8912 * config/i386/fbsd64.mh: Likewise.
8913 * config/i386/go32.mh: Likewise.
8914 * config/i386/i386gnu.mh: Likewise.
8915 * config/i386/i386sol2.mh: Likewise.
8916 * config/i386/linux.mh: Likewise.
8917 * config/i386/linux64.mh: Likewise.
8918 * config/i386/mingw.mh: Likewise.
8919 * config/i386/mingw64.mh: Likewise.
8920 * config/i386/nbsd64.mh: Likewise.
8921 * config/i386/nbsdelf.mh: Likewise.
8922 * config/i386/nto.mh: Likewise.
8923 * config/i386/obsd.mh: Likewise.
8924 * config/i386/obsd64.mh: Likewise.
8925 * config/i386/sol2-64.mh: Likewise.
8926 * config/ia64/linux.mh: Likewise.
8927 * config/m32r/linux.mh: Likewise.
8928 * config/m68k/linux.mh: Likewise.
8929 * config/m68k/nbsdelf.mh: Likewise.
8930 * config/m68k/obsd.mh: Likewise.
8931 * config/m88k/obsd.mh: Likewise.
8932 * config/mips/fbsd.mh: Likewise.
8933 * config/mips/linux.mh: Likewise.
8934 * config/mips/nbsd.mh: Likewise.
8935 * config/mips/obsd64.mh: Likewise.
8936 * config/pa/linux.mh: Likewise.
8937 * config/pa/nbsd.mh: Likewise.
8938 * config/pa/obsd.mh: Likewise.
8939 * config/powerpc/aix.mh: Likewise.
8940 * config/powerpc/fbsd.mh: Likewise.
8941 * config/powerpc/linux.mh: Likewise.
8942 * config/powerpc/nbsd.mh: Likewise.
8943 * config/powerpc/obsd.mh: Likewise.
8944 * config/powerpc/ppc64-linux.mh: Likewise.
8945 * config/powerpc/spu-linux.mh: Likewise.
8946 * config/s390/linux.mh: Likewise.
8947 * config/sh/nbsd.mh: Likewise.
8948 * config/sparc/fbsd.mh: Likewise.
8949 * config/sparc/linux.mh: Likewise.
8950 * config/sparc/linux64.mh: Likewise.
8951 * config/sparc/nbsd64.mh: Likewise.
8952 * config/sparc/nbsdelf.mh: Likewise.
8953 * config/sparc/obsd64.mh: Likewise.
8954 * config/sparc/sol2.mh: Likewise.
8955 * config/tilegx/linux.mh: Likewise.
8956 * config/vax/nbsdelf.mh: Likewise.
8957 * config/vax/obsd.mh: Likewise.
8958 * config/xtensa/linux.mh: Likewise.
8959 * config/i386/i386gnu.mn: New file, with excerpts from
8960 "config/i386/i386gnu.mh".
8961 * configure: Regenerate.
8962 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
8963 *.mh files under "gdb/config".
8964 * configure.nat: New file, with contents from the
8965 "gdb/config/*/*.mh" files.
8966
8967 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
8968
8969 * btrace.c (btrace_clear): Free insn vector.
8970
8971 2017-05-05 Pedro Alves <palves@redhat.com>
8972
8973 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
8974 * configure: Regenerate.
8975
8976 2017-05-04 Pedro Alves <palves@redhat.com>
8977
8978 * Makefile.in (SFILES): Add progspace-and-thread.c.
8979 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
8980 (COMMON_OBS): Add progspace-and-thread.o.
8981 * breakpoint.c: Include "progspace-and-thread.h".
8982 (update_inserted_breakpoint_locations)
8983 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
8984 Use scoped_restore_current_pspace_and_thread.
8985 (create_std_terminate_master_breakpoint): Use
8986 scoped_restore_current_program_space.
8987 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
8988 (print_breakpoint_location): Use
8989 scoped_restore_current_program_space.
8990 (bp_loc_is_permanent): Use
8991 scoped_restore_current_pspace_and_thread.
8992 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
8993 (download_tracepoint_locations): Use
8994 scoped_restore_current_pspace_and_thread.
8995 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
8996 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
8997 (enum step_over_calls_kind): Moved from inferior.h.
8998 (class scoped_restore_current_thread): New class.
8999 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9000 declaration.
9001 (scoped_restore_current_thread): New class.
9002 * infcmd.c: Include "common/gdb_optional.h".
9003 (continue_1, proceed_after_attach): Use
9004 scoped_restore_current_thread.
9005 (notice_new_inferior): Use scoped_restore_current_thread.
9006 * inferior.c: Include "progspace-and-thread.h".
9007 (restore_inferior, save_current_inferior): Delete.
9008 (add_inferior_command, clone_inferior_command): Use
9009 scoped_restore_current_pspace_and_thread.
9010 * inferior.h (scoped_restore_current_inferior): New class.
9011 * infrun.c: Include "progspace-and-thread.h" and
9012 "common/gdb_optional.h".
9013 (follow_fork_inferior): Use
9014 scoped_restore_current_pspace_and_thread.
9015 (scoped_restore_exited_inferior): New class.
9016 (handle_vfork_child_exec_or_exit): Use
9017 scoped_restore_exited_inferior,
9018 scoped_restore_current_pspace_and_thread,
9019 scoped_restore_current_thread and scoped_restore.
9020 (fetch_inferior_event): Use scoped_restore_current_thread.
9021 * linespec.c (decode_line_full, decode_line_1): Use
9022 scoped_restore_current_program_space.
9023 * mi/mi-main.c: Include "progspace-and-thread.h".
9024 (exec_continue): Use scoped_restore_current_thread.
9025 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9026 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9027 * proc-service.c (ps_pglobal_lookup): Use
9028 scoped_restore_current_program_space.
9029 * progspace-and-thread.c: New file.
9030 * progspace-and-thread.h: New file.
9031 * progspace.c (release_program_space, clone_program_space): Use
9032 scoped_restore_current_program_space.
9033 (restore_program_space, save_current_program_space)
9034 (save_current_space_and_thread): Delete.
9035 (switch_to_program_space_and_thread): Moved to
9036 progspace-and-thread.c.
9037 * progspace.h (save_current_program_space)
9038 (save_current_space_and_thread): Delete declarations.
9039 (scoped_restore_current_program_space): New class.
9040 * remote.c (remote_btrace_maybe_reopen): Use
9041 scoped_restore_current_thread.
9042 * symtab.c: Include "progspace-and-thread.h".
9043 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9044 * thread.c (print_thread_info_1): Use
9045 scoped_restore_current_thread.
9046 (struct current_thread_cleanup): Delete.
9047 (do_restore_current_thread_cleanup)
9048 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9049 (scoped_restore_current_thread::~scoped_restore_current_thread):
9050 ... this new dtor.
9051 (make_cleanup_restore_current_thread): Rename/convert to ...
9052 (scoped_restore_current_thread::scoped_restore_current_thread):
9053 ... this new ctor.
9054 (thread_apply_all_command): Use scoped_restore_current_thread.
9055 (thread_apply_command): Use scoped_restore_current_thread.
9056 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9057 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9058
9059 2017-05-04 Pedro Alves <palves@redhat.com>
9060
9061 * thread.c (make_cleanup_restore_current_thread): Move
9062 find_thread_ptid call before the is_stopped call. Assert that the
9063 thread is found. Replace is_stopped call by checking the thread's
9064 state directly. Remove unnecessary NULL-thread check.
9065
9066 2017-05-04 Pedro Alves <palves@redhat.com>
9067
9068 * corelow.c (thread_section_name): New class.
9069 (get_core_register_section, get_core_siginfo): Use it.
9070
9071 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9072
9073 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9074 (get_core_register_section): Remove xfree of NULL pointer.
9075
9076 2017-05-03 Alan Hayward <alan.hayward@arm.com>
9077
9078 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9079 * regcache.c (regcache::raw_supply_zeroed): New function.
9080 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9081
9082 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9083
9084 * gdbarch.sh: Remove commented out definition of
9085 TARGET_CHAR_BIT.
9086 * gdbarch.h: Re-generate.
9087
9088 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9089
9090 * configure: Regenerate.
9091
9092 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9093
9094 * solib-target.c (solib_target_relocate_section_addresses):
9095 Remove num_section_bases, num_bases, segment_bases variables.
9096
9097 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9098
9099 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9100
9101 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9102
9103 * solib-target.c: Include <vector>
9104 (struct lm_info_target) <~lm_info_target>: Remove.
9105 <segment_bases, section_bases>: Change type to
9106 std::vector<CORE_ADDR>.
9107 (library_list_start_segment, library_list_start_section,
9108 library_list_end_library,
9109 solib_target_relocate_section_addresses): Adjust.
9110
9111 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9112
9113 * gdbarch.sh (software_single_step): Change return type to
9114 std::vector<CORE_ADDR>.
9115 * gdbarch.c, gdbarch.h: Re-generate.
9116 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9117 Adjust.
9118 (arm_deal_with_atomic_sequence_raw): Adjust.
9119 (thumb_get_next_pcs_raw): Adjust.
9120 (arm_get_next_pcs_raw): Adjust.
9121 (arm_get_next_pcs): Adjust.
9122 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9123 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9124 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9125 (alpha_software_single_step): Adjust.
9126 * alpha-tdep.h (alpha_software_single_step): Adjust.
9127 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9128 * arm-tdep.c (arm_software_single_step): Adjust.
9129 (arm_breakpoint_kind_from_current_state): Adjust.
9130 * arm-tdep.h (arm_software_single_step): Adjust.
9131 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9132 * cris-tdep.c (cris_software_single_step): Adjust.
9133 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9134 (micromips_deal_with_atomic_sequence): Adjust.
9135 (deal_with_atomic_sequence): Adjust.
9136 (mips_software_single_step): Adjust.
9137 * mips-tdep.h (mips_software_single_step): Adjust.
9138 * moxie-tdep.c (moxie_software_single_step): Adjust.
9139 * nios2-tdep.c (nios2_software_single_step): Adjust.
9140 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9141 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9142 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9143 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9144 * sparc-tdep.c (sparc_software_single_step): Adjust.
9145 * spu-tdep.c (spu_software_single_step): Adjust.
9146 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9147
9148 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9149
9150 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9151 * gdbarch.h: Re-generate.
9152
9153 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9154
9155 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9156 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9157 * python/py-instruction.c, python/py-instruction.h: New file.
9158 * python/py-record.c: Add py-instruction.h include.
9159 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9160 gdb.RecordInstruction.
9161 * python/python-internal.h: Add gdbpy_initialize_instruction
9162 declaration.
9163 * python/python.c (do_start_initialization): Add
9164 gdbpy_initialize_instruction.
9165
9166 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9167
9168 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9169 Remove.
9170 (btrace_func_from_recpy_func): New function.
9171 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9172 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9173 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9174 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9175 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9176 Also, use new helper functions.
9177 (btpy_list_item): Use new helper functions.
9178 (recpy_bt_function_call_history): Use new type name.
9179 (btpy_call_getset): Remove.
9180 (gdbpy_initialize_btrace): Remove code to initialize
9181 gdb.BtraceFunctionCall.
9182 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9183 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9184 recpy_bt_func_prev, recpy_bt_func_next): New export.
9185 * python/py-record.c (recpy_func_type): New static object.
9186 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9187 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9188 recpy_func_next): New function.
9189 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9190 (recpy_func_getset): New static object.
9191 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9192 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9193
9194 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9195
9196 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9197 (btpy_object, btpy_insn_type, btpy_new): Remove.
9198 (btpy_list_object): Use gdb.RecordInstruction type instead of
9199 gdb.BtraceInstruction type.
9200 (btrace_insn_from_recpy_insn): New function.
9201 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9202 btpy_new.
9203 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9204 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9205 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9206 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9207 instead of btpy_object.
9208 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9209 btpy_insn_data, btpy_insn_decode): Rename to ...
9210 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9211 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9212 recpy_bt_insn_decode): This. Also, use new helper functions.
9213 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9214 recpy_insn_type.
9215 (btpy_insn_getset): Remove.
9216 (gdbpy_initialize_btrace): Remove code to initialize
9217 gdb.BtraceInstruction. Use recpy_element_object.
9218 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9219 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9220 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9221 * python/py-record.c (recpy_insn_type): New static object.
9222 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9223 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9224 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9225 New function.
9226 (recpy_insn_getset): New static object.
9227 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9228 * python/py-record.h (recpy_element_object): New typedef.
9229 (recpy_insn_type, recpy_insn_new): New export.
9230
9231 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9232
9233 * py-record-btrace.c (btpy_insn_new): Removed.
9234 (btpy_insn_or_gap_new): New function.
9235 (btpy_insn_error): Removed.
9236 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9237 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9238 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9239 btpy_insn_or_gap_new instead of btpy_insn_new.
9240 (btpy_insn_getset): Remove btpy_insn_error.
9241 * py-record.c (recpy_gap_type): New static object.
9242 (recpy_gap_object): New typedef.
9243 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9244 recpy_gap_reason_string): New function.
9245 (recpy_gap_getset): New static object.
9246 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9247 * py-record.h (recpy_gap_new): New export.
9248
9249 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9250
9251 * python/py-record.c (recpy_ptid): Remove.
9252 (recpy_record_getset): Remove recpy_ptid.
9253
9254 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9255
9256 * btrace.c (btrace_fetch): Set inferior_ptid.
9257 * python/py-record-btrace.c: Add "py-record.h" include.
9258 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9259 recpy_bt_end, recpy_bt_instruction_history,
9260 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9261 in gdb.Record object instead of current ptid.
9262 * python/py-record.c: Include new "py-record.h" file.
9263 (recpy_record_object): Moved to py-record.h.
9264 * python/py-record.h: New file.
9265
9266 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9267
9268 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9269 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9270 indentation.
9271
9272 2017-05-01 Joel Brobecker <brobecker@adacore.com>
9273
9274 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9275 the past maintainers section.
9276
9277 2017-04-28 Yao Qi <yao.qi@linaro.org>
9278
9279 * infcmd.c (get_return_value): Use regcache ctor, and remove
9280 cleanup.
9281
9282 2017-04-28 Yao Qi <yao.qi@linaro.org>
9283 Pedro Alves <palves@redhat.com>
9284
9285 * regcache.c (regcache::regcache): New tag dispatch ctor.
9286 (do_cooked_read): Moved above.
9287 (regcache_dup): Use the tag dispatch ctor..
9288 * regcache.h (regcache): Declare ctor, delete copy ctor and
9289 assignment operator, remove friend regcache_dup.
9290
9291 2017-04-28 Yao Qi <yao.qi@linaro.org>
9292
9293 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9294 call method save instead of regcache_cpy.
9295 * regcache.h (struct regcache): Make regcache_dup a friend.
9296
9297 2017-04-28 Yao Qi <yao.qi@linaro.org>
9298
9299 * regcache.c (struct regcache): Move to regcache.h
9300 (regcache::arch): New method.
9301 (regcache_get_ptid): Update.
9302 (get_regcache_arch): Call arch method.
9303 (get_regcache_aspace): Call method aspace.
9304 (register_buffer): Change it to method.
9305 (regcache_save): Change it to regcache::save.
9306 (regcache_restore): Likewise.
9307 (regcache_cpy_no_passthrough): Remove the declaration.
9308 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9309 (regcache_cpy_no_passthrough): Change it to method
9310 cpy_no_passthrough.
9311 (regcache_register_status): Change it to method
9312 get_register_status.
9313 (regcache_invalidate): Change it to method invalidate.
9314 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9315 (regcache_raw_update): Change it to method raw_update.
9316 (regcache_raw_read): Likewise.
9317 (regcache_raw_read_signed): Likewise.
9318 (regcache_raw_read_unsigned): Likewise.
9319 (regcache_raw_write_signed): Likewise.
9320 (regcache_raw_write_unsigned): Likewise.
9321 (regcache_cooked_read): Likewise.
9322 (regcache_cooked_read_value): Likewise.
9323 (regcache_cooked_read_signed): Likewise.
9324 (regcache_cooked_read_unsigned): Likewise.
9325 (regcache_cooked_write_signed): Likewise.
9326 (regcache_cooked_write_unsigned): Likewise.
9327 (regcache_raw_set_cached_value): Likewise.
9328 (regcache_raw_write): Likewise.
9329 (regcache_cooked_write): Likewise.
9330 (regcache_xfer_part): Likewise.
9331 (regcache_raw_read_part): Likewise.
9332 (regcache_raw_write_part): Likewise.
9333 (regcache_cooked_read_part): Likewise.
9334 (regcache_cooked_write_part): Likewise.
9335 (regcache_raw_supply): Likewise.
9336 (regcache_raw_collect): Likewise.
9337 (regcache_transfer_regset): Likewise.
9338 (regcache_supply_regset): Likewise.
9339 (regcache_collect_regset): Likewise.
9340 (regcache_debug_print_register): Likewise.
9341 (enum regcache_dump_what): Move it to regcache.h.
9342 (regcache_dump): Change it to method dump.
9343 * regcache.h (enum regcache_dump_what): New.
9344 (class regcache): New.
9345 * target.c (target_fetch_registers): Call method
9346 debug_print_register.
9347 (target_store_registers): Likewise.
9348
9349 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9350
9351 * windows-nat.c (struct lm_info_windows): Initialize field.
9352 (windows_make_so): Allocate lm_info_windows with new.
9353 (windows_free_so): Free lm_info_windows with delete.
9354
9355 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9356
9357 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9358 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9359 cleanup.
9360 (darwin_free_so): Free lm_info_darwin with delete.
9361
9362 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9363
9364 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9365 <l_addr_p>: Change type to bool.
9366 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9367 (svr4_free_so): Free lm_info_svr4 with delete.
9368 (svr4_copy_library_list): Replace memcpy with call to copy
9369 constructor.
9370 (library_list_start_library, svr4_default_sos): Allocate
9371 lm_info_svr4 with new.
9372
9373 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9374
9375 * solib-target.c (struct lm_info_target): Add destructor,
9376 initialize fields.
9377 <name>: Change type to std::string.
9378 (library_list_start_library): Allocate lm_info_target with new.
9379 (solib_target_free_library_list): Free lm_info_target with
9380 delete.
9381 (solib_target_current_sos): Adapt to std::string.
9382 (solib_target_free_so): Free lm_info_target with delete.
9383
9384 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9385
9386 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9387 fields.
9388 (frv_current_sos): Allocate lm_info_frv with new.
9389 (frv_relocate_main_executable): Free lm_info_frv with delete,
9390 allocate with new.
9391 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9392
9393 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9394
9395 * solib-frv.c (struct lm_info_frv): Fix indentation.
9396
9397 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9398
9399 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9400 map field.
9401 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9402 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9403 and allocate with new.
9404 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9405
9406 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9407
9408 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9409 <filename, member_name>: Change type to std::string.
9410 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9411 (library_list_start_library): Allocate lm_info_aix with new.
9412 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9413 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9414 with copy constructor.
9415
9416 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9417
9418 * solist.h (struct lm_info): Remove.
9419 (struct lm_info_base): New class.
9420 (struct so_list) <lm_info>: Change type to lm_info_base *.
9421 * nto-tdep.c (struct lm_info): Remove.
9422 (lm_addr): Adjust.
9423 * solib-aix.c (struct lm_info): Rename to ...
9424 (struct lm_info_aix): ... this. Extend lm_info_base.
9425 (lm_info_p): Rename to ...
9426 (lm_info_aix_p): ... this, and adjust.
9427 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9428 solib_aix_parse_libraries, library_list_start_library,
9429 solib_aix_free_library_list, solib_aix_parse_libraries,
9430 solib_aix_get_library_list,
9431 solib_aix_relocate_section_addresses, solib_aix_free_so,
9432 solib_aix_get_section_offsets,
9433 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9434 Adjust.
9435 (struct solib_aix_inferior_data) <library_list>: Adjust.
9436 * solib-darwin.c (struct lm_info): Rename to ...
9437 (struct lm_info_darwin): ... this. Extend lm_info_base.
9438 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9439 * solib-dsbt.c (struct lm_info): Rename to ...
9440 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9441 (struct dsbt_info) <main_executable_lm_info): Adjust.
9442 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9443 dsbt_relocate_section_addresses): Adjust.
9444 * solib-frv.c (struct lm_info): Rename to ...
9445 (struct lm_info_frv): ... this. Extend lm_info_base.
9446 (main_executable_lm_info): Adjust.
9447 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9448 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9449 find_canonical_descriptor_in_load_object,
9450 frv_fdpic_find_canonical_descriptor): Adjust.
9451 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9452 to lm_info_svr4.
9453 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9454 svr4_clear_so, svr4_copy_library_list,
9455 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9456 svr4_current_sos, svr4_fetch_objfile_link_map,
9457 solist_update_incremental): Adjust.
9458 * solib-svr4.h (struct lm_info_svr4): Move here from
9459 solib-svr4.c.
9460 * solib-target.c (struct lm_info): Rename to ...
9461 (struct lm_info_target): ... this. Extend lm_info_base.
9462 (lm_info_p): Rename to ...
9463 (lm_info_target_p): ... this.
9464 (solib_target_parse_libraries, library_list_start_segment,
9465 library_list_start_section, library_list_start_library,
9466 library_list_end_library, solib_target_free_library_list,
9467 solib_target_current_sos, solib_target_free_so,
9468 solib_target_relocate_section_addresses): Adjust.
9469 * windows-nat.c (struct lm_info): Rename to ...
9470 (struct lm_info_windows): ... this. Extend lm_info_base.
9471 (windows_make_so, handle_load_dll, handle_unload_dll,
9472 windows_xfer_shared_libraries): Adjust.
9473
9474 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9475
9476 * solib-darwin.c (struct darwin_so_list): Remove.
9477 (darwin_current_sos): Allocate an so_list object instead of a
9478 darwin_so_list, separately allocate an lm_info object.
9479 (darwin_free_so): Free lm_info.
9480
9481 2017-04-28 John Baldwin <jhb@FreeBSD.org>
9482
9483 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9484 with fprintf_filtered.
9485
9486 2017-04-28 Yao Qi <yao.qi@linaro.org>
9487
9488 * regcache.c (regcache::regcache): New function.
9489 (regcache::~regcache): New function.
9490 (regcache_xmalloc_1): Remove.
9491 (regcache_xmalloc): Call new regcache.
9492 (regcache_xfree): Call delete regcache.
9493 (get_thread_arch_aspace_regcache): Call new regcache.
9494
9495 2017-04-28 Yao Qi <yao.qi@linaro.org>
9496
9497 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9498 lwp instead of ptid_get_lwp.
9499
9500 2017-04-28 Yao Qi <yao.qi@linaro.org>
9501
9502 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9503 lwp_info instead of getting from inferior_ptid.
9504
9505 2017-04-27 Keith Seitz <keiths@redhat.com>
9506
9507 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9508 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9509 (CV_CONVERSION_BADNESS): Define.
9510 (rank_one_type): Remove overly restrictive rvalue reference
9511 rank checks.
9512 Add cv-qualifier checks and subranks for type equality.
9513 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9514 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9515 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9516
9517 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9518
9519 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9520 count when creating the object.
9521
9522 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9523 Ulrich Weigand <uweigand@de.ibm.com>
9524
9525 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9526 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9527 is used in AIX.
9528 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9529 (process_xcoff_symbol): Likewise.
9530 (scan_xcoff_symtab): Likewise.
9531
9532 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9533
9534 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9535 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9536 (ia64_access_reg): Use get_frame_register_unsigned.
9537 (ia64_access_rse_reg): Likewise.
9538 (ia64_libunwind_frame_prev_register): Likewise.
9539
9540 2017-04-26 Jiong Wang <jiong.wang@arm.com>
9541
9542 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9543 * gdbarch.c: Regenerated.
9544 * gdbarch.h: Regenerated.
9545 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9546 visibility external.
9547 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9548 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9549 (enum cfa_how_kind): Move to ...
9550 (struct dwarf2_frame_state_reg_info): Likewise.
9551 (struct dwarf2_frame_state): Likewise.
9552 * dwarf2-frame.h: ... here.
9553 (dwarf2_frame_state_alloc_regs): New declaration.
9554 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9555 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9556
9557 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9558
9559 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9560 regcache_raw_read_unsigned.
9561 (xtensa_pseudo_register_write): Likewise.
9562
9563 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9564
9565 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9566 (nds32_pseudo_register_write): Likewise.
9567
9568 2017-04-25 Yao Qi <yao.qi@linaro.org>
9569
9570 * regcache.c (struct regcache) <readonly_p>: Change its type
9571 to bool.
9572 (regcache_xmalloc_1): Update parameter type and callers update.
9573
9574 2017-04-25 Yao Qi <yao.qi@linaro.org>
9575
9576 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9577 set_gdbarch_wchar_bit.
9578 * arm-tdep.c (arm_gdbarch_init): Likewise.
9579
9580 2017-04-25 Pedro Alves <palves@redhat.com>
9581
9582 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9583 (BothAreRelocatable, memcopy, memmove): Don't define.
9584 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9585 macros.
9586
9587 2017-04-25 Pedro Alves <palves@redhat.com>
9588
9589 * common/common-defs.h: Include "common/poison.h".
9590 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9591 and adjust.
9592 * common/poison.h: New file.
9593 * common/traits.h: Include <type_traits>.
9594 (Not, Or, Requires): New, moved from common/function-view.h.
9595
9596 2017-04-25 Pedro Alves <palves@redhat.com>
9597
9598 * breakpoint.h (struct breakpoint): In-class initialize all
9599 fields. Make boolean fields "bool".
9600 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9601 memset call and initializations no longer necessary.
9602
9603 2017-04-25 Pedro Alves <palves@redhat.com>
9604
9605 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9606 reference.
9607 (pt_btrace_insn): New function.
9608 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9609
9610 2017-04-25 Pedro Alves <palves@redhat.com>
9611
9612 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9613 "base" field and inherit from "bp_location" instead. Add
9614 non-default ctor.
9615 (allocate_location_exception): Use new non-default ctor.
9616 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9617 (init_bp_location): Convert to ...
9618 (bp_location::bp_location): ... this new ctor, and remove memset
9619 call.
9620 (base_breakpoint_allocate_location): Use the new non-default ctor.
9621 * breakpoint.h (bp_location): Now a class. Declare default and
9622 non-default ctors. In-class initialize all members.
9623 (init_bp_location): Remove declaration.
9624
9625 2017-04-25 Pedro Alves <palves@redhat.com>
9626
9627 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9628 assignment operator.
9629
9630 2017-04-24 Yao Qi <yao.qi@linaro.org>
9631
9632 * doublest.c (convert_doublest_to_floatformat): Call
9633 floatformat_totalsize_bytes.
9634
9635 2017-04-22 Tom Tromey <tom@tromey.com>
9636
9637 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9638 ui_out_emit_list.
9639 * stack.c (print_frame): Use ui_out_emit_list.
9640 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9641 ui_out_emit_list.
9642 * mi/mi-main.c (print_one_inferior)
9643 (mi_cmd_data_list_register_names)
9644 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9645 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9646 ui_out_emit_list.
9647 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9648 (mi_output_solib_attribs): Use ui_out_emit_list,
9649 ui_out_emit_tuple.
9650 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9651 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9652 (mi_cmd_stack_list_args, list_args_or_locals): Use
9653 ui_out_emit_list.
9654 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9655 * breakpoint.c (print_solib_event, output_thread_groups): Use
9656 ui_out_emit_list.
9657
9658 2017-04-22 Tom Tromey <tom@tromey.com>
9659
9660 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9661 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9662 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9663
9664 2017-04-22 Tom Tromey <tom@tromey.com>
9665
9666 * tracepoint.c (tvariables_info_1)
9667 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9668
9669 2017-04-22 Tom Tromey <tom@tromey.com>
9670
9671 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9672 annotate_arg_emitter.
9673 * breakpoint.c (print_mention_watchpoint)
9674 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9675 * annotate.h (struct annotate_arg_emitter): New.
9676
9677 2017-04-22 Tom Tromey <tom@tromey.com>
9678
9679 * record-btrace.c (record_btrace_insn_history)
9680 (record_btrace_insn_history_range, record_btrace_call_history)
9681 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9682 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9683 ui_out_emit_tuple.
9684 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9685 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9686 * skip.c (skip_info): Use ui_out_emit_tuple.
9687 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9688 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9689 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9690 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9691 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9692 ui_out_emit_tuple.
9693 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9694 (output_register, mi_cmd_data_read_memory)
9695 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9696 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9697 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9698 Use ui_out_emit_tuple.
9699 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9700 ui_out_emit_tuple.
9701 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9702 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9703 * linux-thread-db.c (info_auto_load_libthread_db): Use
9704 ui_out_emit_tuple.
9705 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9706 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9707 * disasm.c (do_mixed_source_and_assembly_deprecated)
9708 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9709 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9710 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9711 * breakpoint.c (print_one_breakpoint_location)
9712 (print_one_breakpoint): Use ui_out_emit_tuple.
9713 * auto-load.c (print_script, info_auto_load_cmd): Use
9714 ui_out_emit_tuple.
9715 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9716
9717 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9718
9719 * thread.c (print_thread_info_1): Remove dead code.
9720
9721 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9722
9723 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9724 GDB_SELF_TEST.
9725 * arm-tdep.c (selftests::arm_record_test): Likewise.
9726
9727 2017-04-21 Yao Qi <yao.qi@linaro.org>
9728
9729 * regcache.c (regcache_restore): Remove argument 2. Replace
9730 argument 3 with regcache. Get register status from
9731 src->register_status and get register contents from
9732 register_buffer (src, regnum).
9733 (regcache_cpy): Update.
9734
9735 2017-04-19 Pedro Alves <palves@redhat.com>
9736
9737 * gdbthread.h (thread): Add missing closing parenthesis in
9738 comment.
9739
9740 2017-04-19 Pedro Alves <palves@redhat.com>
9741
9742 * common/refcounted-object.h: New file.
9743 * gdbthread.h: Include "common/refcounted-object.h".
9744 (thread_info): Inherit from refcounted_object and add comments.
9745 (thread_info::incref, thread_info::decref)
9746 (thread_info::m_refcount): Delete.
9747 (thread_info::deletable): Use the refcounted_object::refcount()
9748 method.
9749 * inferior.c (current_inferior_): Add comment.
9750 (set_current_inferior): Increment/decrement refcounts.
9751 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9752 not-deletable instead of comparing with the current inferior.
9753 (initialize_inferiors): Increment the initial inferior's refcount.
9754 * inferior.h (struct inferior): Forward declare.
9755 Include "common/refcounted-object.h".
9756 (current_inferior, set_current_inferior): Move declaration to
9757 before struct inferior's definition, and fix comment.
9758 (inferior): Inherit from refcounted_object. Add comments.
9759 * thread.c (switch_to_thread_no_regs): Reference the thread's
9760 inferior pointer directly instead of doing a ptid lookup.
9761 (switch_to_no_thread): New function.
9762 (switch_to_thread(thread_info *)): New function, factored out
9763 from ...
9764 (switch_to_thread(ptid_t)): ... this.
9765 (restore_current_thread): Delete.
9766 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9767 fields, and add 'inf' field.
9768 (do_restore_current_thread_cleanup): Check whether old->inf is
9769 alive instead of looking up an inferior by ptid. Use
9770 switch_to_thread and switch_to_no_thread.
9771 (restore_current_thread_cleanup_dtor): Use old->inf directly
9772 instead of lookup up an inferior by id. Decref the inferior.
9773 Don't restore 'removable'.
9774 (make_cleanup_restore_current_thread): Same the inferior pointer
9775 in old, instead of the inferior number. Incref the inferior.
9776 Don't save/clear 'removable'.
9777
9778 2017-04-19 Pedro Alves <palves@redhat.com>
9779
9780 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9781 unittests/scoped_restore-selftests.c.
9782 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9783 * common/scoped_restore.h (scoped_restore_base): Make "class".
9784 (scoped_restore_base::release): New public method.
9785 (scoped_restore_base::scoped_restore_base): New protected ctor.
9786 (scoped_restore_base::m_saved_var): New protected field.
9787 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9788 scoped_restore_base base class instead of m_saved_var directly.
9789 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9790 (scoped_restore_tmpl::scoped_restore_tmpl(const
9791 scoped_restore_tmpl<T>&)): Likewise.
9792 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9793 method.
9794 (scoped_restore_tmpl::saved_var): New method.
9795 (scoped_restore_tmpl::m_saved_var): Delete.
9796 * inferior.h (inferior::detaching): Now a bool.
9797 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9798 cleanup.
9799 * unittests/scoped_restore-selftests.c: New file.
9800
9801 2017-04-19 Pedro Alves <palves@redhat.com>
9802
9803 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9804 Re-sort in alphabetic order.
9805
9806 2017-04-18 Pedro Alves <palves@redhat.com>
9807
9808 * xml-support.c (obstack_xml_printf): Delete.
9809 * xml-support.h (obstack_xml_printf): Delete.
9810
9811 2017-04-18 Pedro Alves <palves@redhat.com>
9812
9813 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9814 vdebug, verror, body_text, start_element, end_element, name,
9815 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9816 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9817 is_xinclude>: Make private and add m_ prefix.
9818 (gdb_xml_parser::body_text): New method, based on ...
9819 (gdb_xml_body_text): ... this. Adjust.
9820 (gdb_xml_parser::vdebug): New method, based on ...
9821 (gdb_xml_debug): ... this. Adjust.
9822 (gdb_xml_parser::verror): New method, based on ...
9823 (gdb_xml_error): ... this. Adjust.
9824 (gdb_xml_parser::start_element): New method, based on ...
9825 (gdb_xml_start_element): ... this. Adjust.
9826 (gdb_xml_start_element_wrapper): Defer to
9827 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9828 (gdb_xml_parser::end_element): New method, based on ...
9829 (gdb_xml_end_element_wrapper): ... this. Adjust.
9830 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9831 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9832 (gdb_xml_parser::use_dtd): New method, based on ...
9833 (gdb_xml_use_dtd): ... this. Adjust.
9834 (gdb_xml_parser::parse): New method, based on ...
9835 (gdb_xml_parse): ... this. Adjust.
9836 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9837 (xinclude_start_include): Adjust to call the parser's name method.
9838 (xml_xinclude_default, xml_xinclude_start_doctype)
9839 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9840 method.
9841 (xml_process_xincludes): Adjust to call parser methods.
9842 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9843 declarations.
9844
9845 2017-04-18 Pedro Alves <palves@redhat.com>
9846
9847 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9848 gdb::optional<std::string>.
9849 * xml-support.c: Include <string>.
9850 (scope_level::scope_level(scope_level &&))
9851 (scope_level::~scope_level): Delete.
9852 (scope_level::body): Now a std::string.
9853 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9854 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9855 parameter.
9856 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9857 (xinclude_parsing_data::output): Now a std::string reference.
9858 (xinclude_start_include): Adjust.
9859 (xml_xinclude_default): Adjust.
9860 (xml_process_xincludes): Add 'output' parameter, and return bool.
9861 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9862 and return bool.
9863 * xml-tdesc.c: Include <unordered_map> and <string>.
9864 (tdesc_xml_cache): Delete.
9865 (tdesc_xml_cache_s): Delete.
9866 (xml_cache): Now an std::unordered_map.
9867 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9868 (target_fetch_description_xml): Change return type to
9869 gdb::optional<std::string>, and adjust.
9870 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
9871 (target_fetch_description_xml): Change return type to
9872 gdb::optional<std::string>.
9873
9874 2017-04-18 Pedro Alves <palves@redhat.com>
9875
9876 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9877 unittests/optional-selftests.c.
9878 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
9879 * unittests/optional-selftests.c: New file.
9880 * unittests/optional/assignment/1.cc: New file.
9881 * unittests/optional/assignment/2.cc: New file.
9882 * unittests/optional/assignment/3.cc: New file.
9883 * unittests/optional/assignment/4.cc: New file.
9884 * unittests/optional/assignment/5.cc: New file.
9885 * unittests/optional/assignment/6.cc: New file.
9886 * unittests/optional/assignment/7.cc: New file.
9887 * unittests/optional/cons/copy.cc: New file.
9888 * unittests/optional/cons/default.cc: New file.
9889 * unittests/optional/cons/move.cc: New file.
9890 * unittests/optional/cons/value.cc: New file.
9891 * unittests/optional/in_place.cc: New file.
9892 * unittests/optional/observers/1.cc: New file.
9893 * unittests/optional/observers/2.cc: New file.
9894
9895 2017-04-18 Pedro Alves <palves@redhat.com>
9896
9897 * common/gdb_optional.h: Include common/traits.h.
9898 (in_place_t): New type.
9899 (in_place): New constexpr variable.
9900 (optional::optional): Remove member initialization of
9901 m_instantiated.
9902 (optional::optional(in_place_t...)): New constructor.
9903 (optional::~optional): Use reset.
9904 (optional::optional(const optional&)): New.
9905 (optional::optional(const optional&&)): New.
9906 (optional::optional(T &)): New.
9907 (optional::optional(T &&)): New.
9908 (operator::operator=(const optional &)): New.
9909 (operator::operator=(optional &&)): New.
9910 (operator::operator= (const T &))
9911 (operator::operator= (T &&))
9912 (operator::emplace (Args &&... args)): Return a T&. Use reset.
9913 (operator::reset): New.
9914 (operator::m_instantiated):: Add in-class initializer.
9915 * common/traits.h: Include <type_traits>.
9916 (struct And): New types.
9917
9918 2017-04-18 Pedro Alves <palves@redhat.com>
9919
9920 * xml-support.c: Include <vector>.
9921 (scope_level::scope_level(const gdb_xml_element *))
9922 (scope_level::scope_level(scope_level&&)): New.
9923 (scope_level::~scope_level): New.
9924 (scope_level_s): Delete.
9925 (gdb_xml_parser::scopes): Now a std::vector.
9926 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
9927 Use std::vector.
9928 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
9929 scope cleanup code.
9930 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
9931 of the scopes member. Use std::vector::emplace_back.
9932
9933 2017-04-18 Pedro Alves <palves@redhat.com>
9934
9935 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
9936 a bool.
9937 (gdb_xml_end_element): Change type of first parameter.
9938 (gdb_xml_cleanup): Rename to ...
9939 (gdb_xml_parser::~gdb_xml_parser): ... this.
9940 (gdb_xml_create_parser_and_cleanup): Delete with ...
9941 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
9942 to this new ctor.
9943 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
9944 using gdb_xml_create_parser_and_cleanup.
9945 (xinclude_parsing_data): Add ctor/dtor.
9946 (xml_xinclude_cleanup): Delete.
9947 (xml_process_xincludes): Create a local xinclude_parsing_data
9948 instead of heap-allocating one. Create a local gdb_xml_parser
9949 instead of heap-allocating one with
9950 gdb_xml_create_parser_and_cleanup.
9951
9952 2017-04-18 John Baldwin <jhb@FreeBSD.org>
9953
9954 PR threads/20743
9955 * fbsd-nat.c (resume_one_thread_cb): Remove.
9956 (resume_all_threads_cb): Remove.
9957 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
9958 iterate_over_threads.
9959
9960 2017-04-17 Joel Brobecker <brobecker@adacore.com>
9961
9962 * NEWS: Create a new section for the next release branch.
9963 Rename the section of the current branch, now that it has
9964 been cut.
9965
9966 2017-04-17 Joel Brobecker <brobecker@adacore.com>
9967
9968 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
9969 * version.in: Bump version to 8.0.50.DATE-git.
9970
9971 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
9972
9973 PR gdb/21385
9974 * windows-nat.c (windows_create_inferior): Declare 'allargs'
9975 independently of the host, and fix build breakage on Cygwin.
9976
9977 2017-04-13 Pedro Alves <palves@redhat.com>
9978
9979 * inferior.c (free_inferior): Convert to ...
9980 (inferior::~inferior): ... this dtor.
9981 (inferior::inferior): New ctor, factored out from ...
9982 (add_inferior_silent): ... here. Allocate the inferior with a new
9983 expression.
9984 (delete_inferior): Call delete instead of free_inferior.
9985 * inferior.h (gdb_environ, continuation): Forward declare.
9986 (inferior): Now a class. Add in-class initialization to all
9987 members. Make boolean fields bool, except 'detaching'.
9988 (inferior::inferior): New explicit ctor.
9989 (inferior::~inferior): New.
9990
9991 2017-04-13 Pedro Alves <palves@redhat.com>
9992
9993 * inferior.c (init_inferior_list): Delete.
9994 * inferior.h (init_inferior_list): Delete.
9995
9996 2017-04-13 Pedro Alves <palves@redhat.com>
9997
9998 PR threads/13217
9999 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10000 (top level): Call it twice, with different thread sets.
10001
10002 2017-04-13 Pedro Alves <palves@redhat.com>
10003
10004 * thread.c: Include <algorithm>.
10005 (thread_array_cleanup): Delete.
10006 (scoped_inc_dec_ref): New class.
10007 (live_threads_count): New function.
10008 (set_thread_refcount): Delete.
10009 (tp_array_compar_ascending): Now a bool.
10010 (tp_array_compar): Convert to a std::sort comparison function.
10011 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10012 and live_threads_count.
10013
10014 2017-04-13 Pedro Alves <palves@redhat.com>
10015
10016 * infrun.c (follow_fork_inferior): Also switch the current
10017 inferior.
10018
10019 2017-04-13 Pedro Alves <palves@redhat.com>
10020
10021 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10022 before calling create_internal_breakpoint.
10023
10024 2017-04-13 Pedro Alves <palves@redhat.com>
10025
10026 * fork-child.c (execv_argv): New class.
10027 (breakup_args): Refactored as ...
10028 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10029 Copy arguments to storage and replace separators with NULL
10030 terminators in place.
10031 (escape_bang_in_quoted_argument): Adjust to return bool.
10032 (execv_argv::execv_argv): New ctor.
10033 (execv_argv::init_for_shell): New method, factored out from
10034 fork_inferior. Don't strdup strings into the vector.
10035 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10036 Remove free_vector_argv call.
10037
10038 2017-04-13 Yao Qi <yao.qi@linaro.org>
10039
10040 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10041 tdep->rx_psw_type.
10042
10043 2017-04-13 Yao Qi <yao.qi@linaro.org>
10044
10045 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10046 * rx-tdep.c (rx_gdbarch_init): Likewise.
10047
10048 2017-04-13 Pedro Alves <palves@redhat.com>
10049
10050 * breakpoint.h (struct breakpoint): Reindent.
10051
10052 2017-04-13 Pedro Alves <palves@redhat.com>
10053
10054 * breakpoint.c (bp_location): Rename to ...
10055 (bp_locations): ... this. All references updated.
10056 (bp_location_count): Rename to ...
10057 (bp_locations_count): ... this. All references updated.
10058 (bp_location_placed_address_before_address_max): Rename to ...
10059 (bp_locations_placed_address_before_address_max): ... this. All
10060 references updated.
10061 (bp_location_shadow_len_after_address_max): Rename to ...
10062 (bp_locations_shadow_len_after_address_max): ... this. All
10063 references updated.
10064 (bp_location_compare_addrs): Rename to ...
10065 (bp_locations_compare_addrs): ... this. All references updated.
10066 (bp_location_compare):Rename to ...
10067 (bp_locations_compare): ... this. All references updated.
10068 (bp_location_target_extensions_update): Rename to ...
10069 (bp_locations_target_extensions_update): ... this. All references
10070 updated.
10071
10072 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10073
10074 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10075 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10076 'sgtty.h'.
10077 * common/gdb_termios.h: New file, with parts of "terminal.h".
10078 * inflow.c: Include "gdb_termios.h".
10079 * ser-unix.c: Include "gdb_termios.h".
10080 * terminal.h: Move terminal-related defines to
10081 "common/gdb_termios.h".
10082
10083 2017-04-12 Tom Tromey <tom@tromey.com>
10084
10085 * probe.c (parse_probes): Update.
10086 * location.h (delete_event_location): Don't declare.
10087 (event_location_deleter::operator()): Update.
10088 * location.c (event_location_deleter::operator()): Rename from
10089 delete_event_location.
10090 * linespec.h (linespec_result) <location>: Change type to
10091 event_location_up.
10092 * linespec.c (canonicalize_linespec, event_location_to_sals)
10093 (decode_objc): Update.
10094 (linespec_result): Don't call delete_event_location.
10095 * breakpoint.c (create_breakpoints_sal)
10096 (bkpt_probe_create_sals_from_location)
10097 (strace_marker_create_sals_from_location): Update.
10098
10099 2017-04-12 Tom Tromey <tom@tromey.com>
10100
10101 * linespec.h (struct linespec_result): Add constructor and
10102 destructor.
10103 (init_linespec_result, destroy_linespec_result)
10104 (make_cleanup_destroy_linespec_result): Don't declare.
10105 * linespec.c (init_linespec_result): Remove.
10106 (linespec_result::~linespec_result): Rename from
10107 destroy_linespec_result. Update.
10108 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10109 Remove.
10110 * breakpoint.c (create_breakpoint, break_range_command)
10111 (decode_location_default): Update.
10112 * ax-gdb.c (agent_command_1): Update.
10113
10114 2017-04-12 Tom Tromey <tom@tromey.com>
10115
10116 * remote.c (remote_download_tracepoint): Update.
10117 * python/py-breakpoint.c (bppy_get_location): Update.
10118 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10119 (gdbscm_breakpoint_location): Update.
10120 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10121 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10122 Change type to event_location_up.
10123 * breakpoint.c (create_overlay_event_breakpoint)
10124 (create_longjmp_master_breakpoint)
10125 (create_std_terminate_master_breakpoint)
10126 (create_exception_master_breakpoint)
10127 (breakpoint_event_location_empty_p, print_breakpoint_location)
10128 (print_one_breakpoint_location, create_thread_event_breakpoint)
10129 (init_breakpoint_sal, create_breakpoint)
10130 (print_recreate_ranged_breakpoint, break_range_command)
10131 (init_ada_exception_breakpoint, say_where): Update.
10132 (base_breakpoint_dtor): Don't call delete_event_location.
10133 (bkpt_print_recreate, tracepoint_print_recreate)
10134 (dprintf_print_recreate, update_static_tracepoint)
10135 (breakpoint_re_set_default): Update.
10136
10137 2017-04-12 Tom Tromey <tom@tromey.com>
10138
10139 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10140 type of "to_do". Update.
10141 (compute_stack_depth): Use std::vector.
10142
10143 2017-04-12 Tom Tromey <tom@tromey.com>
10144
10145 * printcmd.c (find_instruction_backward): Use std::vector.
10146
10147 2017-04-12 Tom Tromey <tom@tromey.com>
10148
10149 * symfile.c (objfilep): Remove typedef.
10150 (reread_symbols): Use a std::vector.
10151
10152 2017-04-12 Tom Tromey <tom@tromey.com>
10153
10154 * mi/mi-main.c (exec_direction_forward): Remove.
10155 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10156 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10157 scoped_restore.
10158 * guile/guile.c (guile_repl_command, guile_command)
10159 (gdbscm_execute_gdb_command): Use scoped_restore.
10160 * go-exp.y (go_parse): Use scoped_restore.
10161 * d-exp.y (d_parse): Use scoped_restore.
10162 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10163 * c-exp.y (c_parse): Use scoped_restore.
10164
10165 2017-04-12 Tom Tromey <tom@tromey.com>
10166
10167 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10168 (mi_parse): Update return type.
10169 (mi_parse_free): Remove.
10170 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10171 (mi_parse::~mi_parse): Rename from mi_parse_free.
10172 (mi_parse_cleanup): Remove.
10173 (mi_parse): Return a unique_ptr. Use new.
10174 * mi/mi-main.c (mi_execute_command): Update.
10175
10176 2017-04-12 Tom Tromey <tom@tromey.com>
10177
10178 * location.c (explicit_location_lex_one): Return a
10179 unique_xmalloc_ptr.
10180 (string_to_explicit_location): Update. Remove cleanups.
10181
10182 2017-04-12 Tom Tromey <tom@tromey.com>
10183
10184 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10185 (compare_value_and_voffset): Change type. Update.
10186 (compute_vtable_size): Change type of "offset_vec".
10187 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10188 (gnuv3_get_typeid): Remove extraneous declaration.
10189
10190 2017-04-12 Tom Tromey <tom@tromey.com>
10191
10192 * charset.h (wchar_iterator): Fix comment.
10193
10194 2017-04-12 Tom Tromey <tom@tromey.com>
10195
10196 * charset.c (iconv_wrapper): New class.
10197 (cleanup_iconv): Remove.
10198 (convert_between_encodings): Use it.
10199
10200 2017-04-12 Tom Tromey <tom@tromey.com>
10201
10202 * symfile.h (increment_reading_symtab): Update type.
10203 * symfile.c (decrement_reading_symtab): Remove.
10204 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10205 * psymtab.c (psymtab_to_symtab): Update.
10206 * dwarf2read.c (dw2_instantiate_symtab): Update.
10207
10208 2017-04-12 Tom Tromey <tom@tromey.com>
10209
10210 * jit.c (struct jit_reader): Declare separately. Add constructor
10211 and destructor. Change type of "handle".
10212 (loaded_jit_reader): Define separately.
10213 (jit_reader_load): Update. New "new".
10214 (jit_reader_unload_command): Use "delete".
10215 * gdb-dlfcn.h (struct dlclose_deleter): New.
10216 (gdb_dlhandle_up): New typedef.
10217 (gdb_dlopen, gdb_dlsym): Update types.
10218 (gdb_dlclose): Remove.
10219 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10220 (gdb_dlsym): Change type of "handle".
10221 (make_cleanup_dlclose): Remove.
10222 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10223 * compile/compile-c-support.c (load_libcc): Update.
10224
10225 2017-04-12 Tom Tromey <tom@tromey.com>
10226
10227 * symtab.h (find_pcs_for_symtab_line): Change return type.
10228 * symtab.c (find_pcs_for_symtab_line): Change return type.
10229 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10230 type of "vec". Update.
10231 (ltpy_get_pcs_for_line): Update.
10232 * linespec.c (decode_digits_ordinary): Update.
10233
10234 2017-04-12 Tom Tromey <tom@tromey.com>
10235
10236 * tracepoint.c (actions_command): Update.
10237 * python/python.c (python_command, python_interactive_command):
10238 Update.
10239 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10240 * guile/guile.c (guile_command): Update.
10241 * defs.h (read_command_lines, read_command_lines_1): Return
10242 command_line_up.
10243 (command_lines_deleter): New struct.
10244 (command_line_up): New typedef.
10245 * compile/compile.c (compile_code_command)
10246 (compile_print_command): Update.
10247 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10248 command_line_up.
10249 (make_cleanup_free_command_lines): Remove.
10250 * cli/cli-script.c (get_command_line, read_command_lines_1)
10251 (copy_command_lines): Return command_line_up.
10252 (while_command, if_command, read_command_lines, define_command)
10253 (document_command): Update.
10254 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10255 Remove.
10256 * breakpoint.h (breakpoint_set_commands): Change type of
10257 "commands".
10258 * breakpoint.c (breakpoint_set_commands): Change type of
10259 "commands". Update.
10260 (do_map_commands_command, update_dprintf_command_list)
10261 (create_tracepoint_from_upload): Update.
10262
10263 2017-04-12 Tom Tromey <tom@tromey.com>
10264
10265 * tracepoint.c (scope_info): Update.
10266 * spu-tdep.c (spu_catch_start): Update.
10267 * python/python.c (gdbpy_decode_line): Update.
10268 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10269 * python/py-breakpoint.c (bppy_init): Update.
10270 * probe.c (parse_probes): Update.
10271 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10272 * location.h (event_location_deleter): New struct.
10273 (event_location_up): New typedef.
10274 (new_linespec_location, new_address_location, new_probe_location)
10275 (new_explicit_location, copy_event_location)
10276 (string_to_event_location, string_to_event_location_basic)
10277 (string_to_explicit_location): Update return type.
10278 (make_cleanup_delete_event_location): Remove.
10279 * location.c (new_linespec_location, new_address_location)
10280 (new_probe_location, new_explicit_location, copy_event_location):
10281 Return event_location_up.
10282 (delete_event_location_cleanup)
10283 (make_cleanup_delete_event_location): Remove.
10284 (string_to_explicit_location, string_to_event_location_basic)
10285 (string_to_event_location): Return event_location_up.
10286 * linespec.c (canonicalize_linespec, event_location_to_sals)
10287 (decode_line_with_current_source)
10288 (decode_line_with_last_displayed, decode_objc): Update.
10289 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10290 * completer.c (location_completer): Update.
10291 * cli/cli-cmds.c (edit_command, list_command): Update.
10292 * breakpoint.c (create_overlay_event_breakpoint)
10293 (create_longjmp_master_breakpoint)
10294 (create_std_terminate_master_breakpoint)
10295 (create_exception_master_breakpoint)
10296 (create_thread_event_breakpoint): Update.
10297 (init_breakpoint_sal): Update. Remove some dead code.
10298 (create_breakpoint_sal): Change type of "location". Update.
10299 (create_breakpoints_sal, create_breakpoint, break_command_1)
10300 (dprintf_command, break_range_command, until_break_command)
10301 (init_ada_exception_breakpoint)
10302 (strace_marker_create_sals_from_location)
10303 (update_static_tracepoint, trace_command, ftrace_command)
10304 (strace_command, create_tracepoint_from_upload): Update.
10305 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10306 * ax-gdb.c (agent_command_1): Update.
10307
10308 2017-04-12 Pedro Alves <palves@redhat.com>
10309
10310 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10311 * configure.tgt: Handle i[34567]86-*-go32* and
10312 i[34567]86-*-msdosdjgpp*.
10313 * i386-tdep.c (i386_svr4_reg_to_regnum):
10314 Make extern.
10315 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10316 i386-go32-tdep.c.
10317 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10318 * i386-go32-tdep.c: New file.
10319 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10320 declarations.
10321
10322 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10323
10324 * aix-thread.c (pd_status2str): Change return type to const char *.
10325
10326 2017-04-12 Pedro Alves <palves@redhat.com>
10327
10328 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10329 calls to set_gdbarch_gnu_triplet_regexp.
10330
10331 2017-04-12 Pedro Alves <palves@redhat.com>
10332
10333 PR gdb/21323
10334 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10335 New enum value.
10336 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10337 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10338 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10339 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10340 * gdbarch.h, gdbarch.c: Regenerate.
10341 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10342 gdbarch_wchar_bit and gdbarch_wchar_signed.
10343 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10344 * arm-tdep.c (arm_gdbarch_init): Likewise.
10345 * avr-tdep.c (avr_gdbarch_init): Likewise.
10346 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10347 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10348 * i386-tdep.c (i386_go32_init_abi): Likewise.
10349 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10350 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10351 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10352 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10353 * sh-tdep.c (sh_gdbarch_init): Likewise.
10354 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10355 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10356 * windows-tdep.c (windows_init_abi): Likewise.
10357 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10358
10359 2017-04-12 Pedro Alves <palves@redhat.com>
10360
10361 PR c++/21323
10362 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10363 cplus_primitive_type_char32_t>: New enum values.
10364 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10365 and cplus_primitive_type_char32_t.
10366 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10367 32, use the archtecture's built-in type for char16_t and char32_t,
10368 respectively. Otherwise, fallback to init_integer_type as before,
10369 but make the type unsigned, and issue a complaint.
10370 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10371
10372 2017-04-12 Alan Hayward <alan.hayward@arm.com>
10373
10374 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
10375 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10376
10377 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10378
10379 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10380 'const char *'.
10381
10382 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10383
10384 * common/common-utils.c (free_vector_argv): New function.
10385 * common/common-utils.h: Include <vector>.
10386 (free_vector_argv): New prototype.
10387 * darwin-nat.c (darwin_create_inferior): Rewrite function
10388 prototype in order to constify "exec_file" and accept a
10389 "std::string" for "allargs".
10390 * fork-child.c: Include <vector>.
10391 (breakup_args): Rewrite function, using C++.
10392 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10393 and accept "std::string" for "allargs". Update the code to
10394 calculate "argv" based on "allargs". Update calls to "exec_fun"
10395 and "execvp".
10396 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10397 order to constify "exec_file" and accept a "std::string" for
10398 "allargs".
10399 * go32-nat.c (go32_create_inferior): Likewise.
10400 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10401 * infcmd.c (run_command_1): Constify "exec_file". Use
10402 "std::string" for inferior arguments.
10403 * inferior.h (fork_inferior): Update prototype.
10404 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10405 prototype in order to constify "exec_file" and accept a
10406 "std::string" for "allargs".
10407 * nto-procfs.c (procfs_create_inferior): Likewise.
10408 * procfs.c (procfs_create_inferior): Likewise.
10409 * remote-sim.c (gdbsim_create_inferior): Likewise.
10410 * remote.c (extended_remote_run): Update code to accept
10411 "std::string" as argument.
10412 (extended_remote_create_inferior): Rewrite function prototype in
10413 order to constify "exec_file" and accept a "std::string" for
10414 "allargs".
10415 * rs6000-nat.c (super_create_inferior): Likewise.
10416 (rs6000_create_inferior): Likewise.
10417 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10418 * windows-nat.c (windows_create_inferior): Likewise.
10419
10420 2017-04-11 Pedro Alves <palves@redhat.com>
10421
10422 * thread.c: Fix whitespace throughout.
10423
10424 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10425
10426 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10427
10428 2017-04-11 Alan Hayward <alan.hayward@arm.com>
10429
10430 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10431
10432 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10433
10434 PR gdb/21364
10435 * osdata.c (info_osdata): Check if 'type' is an empty string
10436 instead of NULL.
10437
10438 2017-04-10 Pedro Alves <palves@redhat.com>
10439
10440 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10441 (ptid_to_global_thread_id, in_thread_list)
10442 (do_captured_list_thread_ids, set_resumed, set_running)
10443 (set_executing, set_stop_requested, finish_thread_state)
10444 (validate_registers_access, can_access_registers_ptid)
10445 (print_thread_info_1, switch_to_thread)
10446 (do_restore_current_thread_cleanup)
10447 (make_cleanup_restore_current_thread, thread_command)
10448 (thread_name_command): Use operator== instead of ptid_equal.
10449
10450 2017-04-10 Pedro Alves <palves@redhat.com>
10451
10452 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10453 (current_thread_cleanup_chain): Delete.
10454 (restore_current_thread_cleanup_dtor)
10455 (make_cleanup_restore_current_thread): Remove references to
10456 current_thread_cleanup_chain.
10457
10458 2017-04-10 Alan Hayward <alan.hayward@arm.com>
10459
10460 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10461 REG_UNKNOWN.
10462
10463 2017-04-10 Yao Qi <yao.qi@linaro.org>
10464
10465 PR gdb/19942
10466 * gdbthread.h (thread_info::deletable): New method.
10467 (thread_info::incref): New method.
10468 (thread_info::decref): New method.
10469 (thread_info::refcount): Move it to private.
10470 * infrun.c (save_stop_context): Call inc_refcount.
10471 (release_stop_context_cleanup): Likewise.
10472 * thread.c (set_thread_exited): New function.
10473 (init_thread_list): Delete "tp" only it is deletable, otherwise
10474 call set_thread_exited.
10475 (delete_thread_1): Call set_thread_exited.
10476 (current_thread_cleanup) <inferior_pid>: Remove.
10477 <thread>: New field.
10478 (restore_current_thread_ptid_changed): Removed.
10479 (do_restore_current_thread_cleanup): Adjust.
10480 (restore_current_thread_cleanup_dtor): Don't call
10481 find_thread_ptid.
10482 (set_thread_refcount): Use dec_refcount.
10483 (make_cleanup_restore_current_thread): Adjust.
10484 (thread_apply_all_command): Call inc_refcount.
10485 (_initialize_thread): Don't call
10486 observer_attach_thread_ptid_changed.
10487
10488 2017-04-10 Yao Qi <yao.qi@linaro.org>
10489
10490 * thread.c (delete_thread_1): Hoist code on marking thread as
10491 exited.
10492
10493 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10494
10495 * windows-nat.c (windows_detach): Initialize ptid with
10496 minus_one_ptid.
10497
10498 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10499
10500 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10501
10502 2017-04-07 Alan Hayward <alan.hayward@arm.com>
10503
10504 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10505 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10506 (bfin_pseudo_register_write): Likewise
10507
10508 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10509
10510 * common/ptid.h (struct ptid): Change to...
10511 (class ptid_t): ... this.
10512 <ptid_t>: New constructors.
10513 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10514 matches>: New methods.
10515 <make_null, make_minus_one>: New static methods.
10516 <pid>: Rename to...
10517 <m_pid>: ...this.
10518 <lwp>: Rename to...
10519 <m_lwp>: ...this.
10520 <tid>: Rename to...
10521 <m_tid>: ...this.
10522 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10523 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10524 as references, move comment to class ptid_t.
10525 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10526 ptid_t static methods.
10527 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10528 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10529 Take ptid arguments as references, implement using ptid_t methods.
10530 * unittests/ptid-selftests.c: New file.
10531 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10532 unittests/ptid-selftests.c.
10533 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10534
10535 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10536
10537 * python/python.c (python_run_simple_file): Cast mode literal to
10538 non-const char pointer as expected by PyFile_FromString.
10539
10540 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10541
10542 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10543 minus_one_ptid and null_ptid.
10544
10545 2017-04-05 Pedro Alves <palves@redhat.com>
10546
10547 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10548 * configure: Regenerate.
10549
10550 2017-04-05 Pedro Alves <palves@redhat.com>
10551
10552 * ada-exp.y (yyerror): Constify.
10553 * ada-lang.c (bound_name, get_selections)
10554 (ada_variant_discrim_type)
10555 (ada_variant_discrim_name, ada_value_struct_elt)
10556 (ada_lookup_struct_elt_type, is_unchecked_variant)
10557 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10558 (catch_ada_exception_command_split)
10559 (catch_ada_assert_command_split, catch_assert_command)
10560 (ada_op_name): Constify.
10561 * ada-lang.h (ada_yyerror, get_selections)
10562 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10563 * arc-tdep.c (arc_print_frame_cache): Constify.
10564 * arm-tdep.c (arm_skip_stub): Constify.
10565 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10566 (gen_aggregate_elt_ref): Constify.
10567 * bcache.c (print_bcache_statistics): Constify.
10568 * bcache.h (print_bcache_statistics): Constify.
10569 * break-catch-throw.c (catch_exception_command_1):
10570 * breakpoint.c (struct ep_type_description::description):
10571 Constify.
10572 (add_solib_catchpoint): Constify.
10573 (catch_fork_command_1): Add cast.
10574 (add_catch_command): Constify.
10575 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10576 Constify.
10577 * bsd-uthread.c (bsd_uthread_state): Constify.
10578 * buildsym.c (patch_subfile_names): Constify.
10579 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10580 Constify.
10581 * c-exp.y (yyerror): Constify.
10582 (token::oper): Constify.
10583 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10584 * c-varobj.c (cplus_describe_child): Constify.
10585 * charset.c (find_charset_names): Add cast.
10586 (find_charset_names): Constify array and add const_cast.
10587 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10588 (edit_command): Constify.
10589 * cli/cli-decode.c (lookup_cmd): Constify.
10590 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10591 Constify.
10592 (struct dump_context): Constify.
10593 (add_dump_command, restore_command): Constify.
10594 * cli/cli-script.c (get_command_line): Constify.
10595 * cli/cli-script.h (get_command_line): Constify.
10596 * cli/cli-utils.c (check_for_argument): Constify.
10597 * cli/cli-utils.h (check_for_argument): Constify.
10598 * coff-pe-read.c (struct read_pe_section_data): Constify.
10599 * command.h (lookup_cmd): Constify.
10600 * common/print-utils.c (decimal2str): Constify.
10601 * completer.c (gdb_print_filename): Constify.
10602 * corefile.c (set_gnutarget): Constify.
10603 * cp-name-parser.y (yyerror): Constify.
10604 * cp-valprint.c (cp_print_class_member): Constify.
10605 * cris-tdep.c (cris_register_name, crisv32_register_name):
10606 Constify.
10607 * d-exp.y (yyerror): Constify.
10608 (struct token::oper): Constify.
10609 * d-lang.h (d_yyerror): Constify.
10610 * dbxread.c (struct header_file_location::name): Constify.
10611 (add_old_header_file, add_new_header_file, last_function_name)
10612 (dbx_next_symbol_text, add_bincl_to_list)
10613 (find_corresponding_bincl_psymtab, set_namestring)
10614 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10615 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10616 * defs.h (command_line_input, print_address_symbolic)
10617 (deprecated_readline_begin_hook): Constify.
10618 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10619 Constify.
10620 * event-top.c (handle_line_of_input): Constify and add cast.
10621 * exceptions.c (catch_errors): Constify.
10622 * exceptions.h (catch_errors): Constify.
10623 * expprint.c (print_subexp_standard, op_string, op_name)
10624 (op_name_standard, dump_raw_expression, dump_raw_expression):
10625 * expression.h (op_name, op_string, dump_raw_expression):
10626 Constify.
10627 * f-exp.y (yyerror): Constify.
10628 (struct token::oper): Constify.
10629 (struct f77_boolean_val::name): Constify.
10630 * f-lang.c (f_word_break_characters): Constify.
10631 * f-lang.h (f_yyerror): Constify.
10632 * fork-child.c (fork_inferior): Add cast.
10633 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10634 (new_variant): Constify.
10635 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10636 * gdbarch.c: Regenerate.
10637 * gdbcore.h (set_gnutarget): Constify.
10638 * go-exp.y (yyerror): Constify.
10639 (token::oper): Constify.
10640 * go-lang.h (go_yyerror): Constify.
10641 * go32-nat.c (go32_sysinfo): Constify.
10642 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10643 * guile/scm-cmd.c (cmdscm_function): Constify.
10644 * guile/scm-param.c (pascm_param_value): Constify.
10645 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10646 (h8300sx_register_name): Constify.
10647 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10648 Constify.
10649 * ia64-tdep.c (ia64_register_names): Constify.
10650 * infcmd.c (construct_inferior_arguments): Constify.
10651 (path_command, attach_post_wait): Constify.
10652 * language.c (show_range_command, show_case_command)
10653 (unk_lang_error): Constify.
10654 * language.h (language_defn::la_error)
10655 (language_defn::la_name_of_this): Constify.
10656 * linespec.c (decode_line_2): Constify.
10657 * linux-thread-db.c (thread_db_err_str): Constify.
10658 * lm32-tdep.c (lm32_register_name): Constify.
10659 * m2-exp.y (yyerror): Constify.
10660 * m2-lang.h (m2_yyerror): Constify.
10661 * m32r-tdep.c (m32r_register_names): Constify and make static.
10662 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10663 * m88k-tdep.c (m88k_register_name): Constify.
10664 * macroexp.c (appendmem): Constify.
10665 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10666 (upgrade_type, parse_external, parse_partial_symbols)
10667 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10668 (new_symbol): Constify.
10669 * memattr.c (mem_info_command): Constify.
10670 * mep-tdep.c (register_name_from_keyword): Constify.
10671 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10672 Constify.
10673 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10674 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10675 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10676 cast.
10677 (mi_execute_async_cli_command): Constify.
10678 * mips-tdep.c (mips_register_name): Constify.
10679 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10680 (am33_register_name, am33_2_register_name)
10681 * moxie-tdep.c (moxie_register_names): Constify.
10682 * nat/linux-osdata.c (osdata_type): Constify fields.
10683 * nto-tdep.c (nto_parse_redirection): Constify.
10684 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10685 (lookup_child_selector): Constify.
10686 (objc_methcall::name): Constify.
10687 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10688 (lookup_struct_typedef): Constify.
10689 * objfiles.c (pc_in_section): Constify.
10690 * objfiles.h (pc_in_section): Constify.
10691 * p-exp.y (struct token::oper): Constify.
10692 (yyerror): Constify.
10693 * p-lang.h (pascal_yyerror): Constify.
10694 * parser-defs.h (op_name_standard): Constify.
10695 (op_print::string): Constify.
10696 (exp_descriptor::op_name): Constify.
10697 * printcmd.c (print_address_symbolic): Constify.
10698 * psymtab.c (print_partial_symbols): Constify.
10699 * python/py-breakpoint.c (stop_func): Constify.
10700 (bppy_get_expression): Constify.
10701 * python/py-cmd.c (cmdpy_completer::name): Constify.
10702 (cmdpy_function): Constify.
10703 * python/py-event.c (evpy_add_attribute)
10704 (gdbpy_initialize_event_generic): Constify.
10705 * python/py-event.h (evpy_add_attribute)
10706 (gdbpy_initialize_event_generic): Constify.
10707 * python/py-evts.c (add_new_registry): Constify.
10708 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10709 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10710 * python/py-inferior.c (get_buffer): Add cast.
10711 * python/py-param.c (parm_constant::name): Constify.
10712 * python/py-unwind.c (fprint_frame_id): Constify.
10713 * python/python.c (gdbpy_parameter_value): Constify.
10714 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10715 * remote.c (memory_packet_config::name): Constify.
10716 (show_packet_config_cmd, remote_write_bytes)
10717 (remote_buffer_add_string):
10718 * reverse.c (exec_reverse_once): Constify.
10719 * rs6000-tdep.c (variant::name, variant::description): Constify.
10720 * rust-exp.y (rustyyerror): Constify.
10721 * rust-lang.c (rust_op_name): Constify.
10722 * rust-lang.h (rustyyerror): Constify.
10723 * serial.h (serial_ops::name): Constify.
10724 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10725 (sh_sh3e_register_name, sh_sh2e_register_name)
10726 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10727 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10728 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10729 (sh_sh4al_dsp_register_name): Constify.
10730 * sh64-tdep.c (sh64_register_name): Constify.
10731 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10732 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10733 * stabsread.c (patch_block_stabs, read_type_number)
10734 (ref_map::stabs, ref_add, process_reference)
10735 (symbol_reference_defined, define_symbol, define_symbol)
10736 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10737 (read_one_struct_field, read_struct_fields, read_baseclasses)
10738 (read_tilde_fields, read_struct_type, read_array_type)
10739 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10740 (read_huge_number, read_range_type, read_args, common_block_start)
10741 (find_name_end): Constify.
10742 * stabsread.h (common_block_start, define_symbol)
10743 (process_one_symbol, symbol_reference_defined, ref_add):
10744 * symfile.c (get_section_index, add_symbol_file_command):
10745 * symfile.h (get_section_index): Constify.
10746 * target-descriptions.c (tdesc_type::name): Constify.
10747 (tdesc_free_type): Add cast.
10748 * target.c (find_default_run_target):
10749 (add_deprecated_target_alias, find_default_run_target)
10750 (target_announce_detach): Constify.
10751 (do_option): Constify.
10752 * target.h (add_deprecated_target_alias): Constify.
10753 * thread.c (print_thread_info_1): Constify.
10754 * top.c (deprecated_readline_begin_hook, command_line_input):
10755 Constify.
10756 (init_main): Add casts.
10757 * top.h (handle_line_of_input): Constify.
10758 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10759 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10760 (tfind_command): Rename to ...
10761 (tfind_command_1): ... this and constify.
10762 (tfind_command): New function.
10763 (tfind_end_command, tfind_start_command): Adjust.
10764 (encode_source_string): Constify.
10765 * tracepoint.h (encode_source_string): Constify.
10766 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10767 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10768 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10769 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10770 * tui/tui-win.c (parse_scrolling_args): Constify.
10771 * tui/tui-windata.c (tui_erase_data_content): Constify.
10772 * tui/tui-windata.h (tui_erase_data_content): Constify.
10773 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10774 * tui/tui.c (tui_enable): Add cast.
10775 * utils.c (defaulted_query): Constify.
10776 (init_page_info): Add cast.
10777 (puts_debug, subset_compare): Constify.
10778 * utils.h (subset_compare): Constify.
10779 * varobj.c (varobj_format_string): Constify.
10780 * varobj.h (varobj_format_string): Constify.
10781 * vax-tdep.c (vax_register_name): Constify.
10782 * windows-nat.c (windows_detach): Constify.
10783 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10784 * xml-support.c (gdb_xml_end_element): Constify.
10785 * xml-tdesc.c (tdesc_start_reg): Constify.
10786 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10787 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10788 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10789
10790 2017-04-05 Pedro Alves <palves@redhat.com>
10791
10792 * proc-api.c (struct trans): Constify.
10793 (procfs_note): Constify.
10794 * proc-events.c (struct trans, syscall_table):
10795 * proc-flags.c (struct trans): Constify.
10796 * proc-utils.h (procfs_note): Constify.
10797 * proc-why.c (struct trans): Constify.
10798 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10799 (procfs_detach): Constify.
10800 * sol-thread.c (struct string_map): Constify.
10801 (td_err_string, td_state_string): Constify.
10802
10803 2017-04-05 Pedro Alves <palves@redhat.com>
10804
10805 * proc-api.c (procfs_filename): Don't initialize
10806 procfs_filename.
10807 (prepare_to_trace): Assume procfs_filename is non-NULL.
10808 (_initialize_proc_api): Give procfs_filename a default value here.
10809
10810 2017-04-05 Pedro Alves <palves@redhat.com>
10811
10812 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10813 'cond_string' parameter.
10814 (extract_exception_regexp): Constify 'string' parameter.
10815 (catch_exception_command_1): Constify.
10816 * breakpoint.c (init_catchpoint)
10817 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10818 parameter.
10819 (ep_parse_optional_if_clause, catch_fork_command_1)
10820 (catch_exec_command_1): Constify.
10821 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10822 parameter.
10823 (ep_parse_optional_if_clause): Constify.
10824 * cli/cli-utils.c (remove_trailing_whitespace)
10825 (check_for_argument): Constify.
10826 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10827 non-const overload.
10828 (check_for_argument): Likewise.
10829
10830 2017-04-05 Pedro Alves <palves@redhat.com>
10831
10832 * event-top.c (command_line_handler): Add cast to execute_command
10833 call.
10834 * record-btrace.c (cmd_record_btrace_bts_start)
10835 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10836 (cmd_record_btrace_start): Add cast to execute_command call.
10837 * record-full.c (record_full_goto_insn):
10838 * record.c (record_start, record_stop): Add cast to
10839 execute_command_to_string calls.
10840 (cmd_record_start): Add cast to execute_command calls.
10841
10842 2017-04-05 Pedro Alves <palves@redhat.com>
10843
10844 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10845 static inline function.
10846 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10847 array and use gdb_PyArg_ParseTupleAndKeywords.
10848 * python/py-cmd.c (cmdpy_init): Likewise.
10849 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10850 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10851 (infpy_search_memory): Likewise.
10852 * python/py-objfile.c (objfpy_add_separate_debug_file)
10853 (gdbpy_lookup_objfile): Likewise.
10854 * python/py-symbol.c (gdbpy_lookup_symbol)
10855 (gdbpy_lookup_global_symbol): Likewise.
10856 * python/py-type.c (gdbpy_lookup_type): Likewise.
10857 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10858 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10859 Likewise.
10860
10861 2017-04-05 Pedro Alves <palves@redhat.com>
10862
10863 * python/python-internal.h (gdb_PyGetSetDef): New type.
10864 * python/py-block.c (block_object_getset)
10865 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10866 * python/py-event.c (event_object_getset)
10867 (finish_breakpoint_object_getset): Likewise.
10868 * python/py-inferior.c (inferior_object_getset): Likewise.
10869 * python/py-infthread.c (thread_object_getset): Likewise.
10870 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
10871 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
10872 * python/py-objfile.c (objfile_getset): Likewise.
10873 * python/py-progspace.c (pspace_getset): Likewise.
10874 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
10875 Likewise.
10876 * python/py-record.c (recpy_record_getset): Likewise.
10877 * python/py-symbol.c (symbol_object_getset): Likewise.
10878 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
10879 Likewise.
10880 * python/py-type.c (type_object_getset, field_object_getset):
10881 Likewise.
10882 * python/py-value.c (value_object_getset): Likewise.
10883
10884 2017-04-05 Pedro Alves <palves@redhat.com>
10885
10886 * python/python-internal.h (gdb_PyObject_CallMethod)
10887 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
10888 New functions.
10889 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
10890 (PySys_GetObject, PySys_SetPath): New macros.
10891
10892 2017-04-05 Pedro Alves <palves@redhat.com>
10893
10894 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
10895 info_osdata_command.
10896 * osdata.c (info_osdata_command): Rename to ...
10897 (info_osdata): ... this. Constify 'type' parameter, and remove
10898 the 'from_tty' parameter. Accept NULL TYPE.
10899 (info_osdata_command): New function.
10900 * osdata.h (info_osdata_command): Remove declaration.
10901 (info_osdata): New declaration.
10902
10903 2017-04-05 Pedro Alves <palves@redhat.com>
10904
10905 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
10906 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
10907 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
10908 parameter.
10909 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
10910 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
10911 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
10912 parameter.
10913 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
10914 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
10915 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10916 (mi_cmd_file_list_exec_source_files)
10917 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
10918 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10919 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
10920 parameter.
10921 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
10922 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
10923 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10924 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
10925 (mi_cmd_stack_info_frame): Constify 'command' parameter.
10926 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
10927 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
10928 'command' parameter.
10929 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
10930 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
10931 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
10932 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
10933 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
10934 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
10935 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
10936 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
10937 (mi_cmd_var_set_update_range): Constify 'command' parameter.
10938 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
10939 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
10940 parameter.
10941 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
10942 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
10943 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
10944 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
10945 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
10946 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
10947 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
10948 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
10949 (mi_cmd_data_list_changed_registers)
10950 (mi_cmd_data_write_register_values)
10951 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
10952 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
10953 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
10954 (mi_cmd_list_features, mi_cmd_list_target_features)
10955 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
10956 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
10957 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
10958 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
10959 (mi_cmd_trace_frame_collected): Constify 'command'
10960 parameter.
10961 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
10962 'command' parameter.
10963
10964 2017-04-05 Pedro Alves <palves@redhat.com>
10965
10966 * ada-lang.c (ada_completer_word_break_characters): Now a const
10967 array.
10968 (ada_get_gdb_completer_word_break_characters): Constify.
10969 * completer.c (gdb_completer_command_word_break_characters)
10970 (gdb_completer_file_name_break_characters)
10971 (gdb_completer_quote_characters): Now const arrays.
10972 (get_gdb_completer_quote_characters): Constify.
10973 (set_rl_completer_word_break_characters): New function.
10974 (set_gdb_completion_word_break_characters)
10975 (complete_line_internal): Use it.
10976 * completer.h (get_gdb_completer_quote_characters): Constify.
10977 (set_rl_completer_word_break_characters): Declare.
10978 * f-lang.c (f_word_break_characters): Constify.
10979 * language.c (default_word_break_characters): Constify.
10980 * language.h (language_defn::la_word_break_characters): Constify.
10981 (default_word_break_characters): Constify.
10982 * top.c (init_main): Use set_rl_completer_word_break_characters.
10983
10984 2017-04-05 Pedro Alves <palves@redhat.com>
10985
10986 * aix-thread.c (aix_thread_pid_to_str)
10987 (aix_thread_extra_thread_info): Constify.
10988 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
10989 * bsd-uthread.c (bsd_uthread_extra_thread_info)
10990 (bsd_uthread_pid_to_str): Constify.
10991 * corelow.c (core_pid_to_str): Constify.
10992 * darwin-nat.c (darwin_pid_to_str): Constify.
10993 * fbsd-nat.c (fbsd_pid_to_str): Constify.
10994 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
10995 Constify.
10996 * gnu-nat.c (gnu_pid_to_str): Constify.
10997 * go32-nat.c (go32_pid_to_str): Constify.
10998 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
10999 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11000 * inferior.c (inferior_pid_to_str): Constify.
11001 * linux-nat.c (linux_nat_pid_to_str): Constify.
11002 * linux-tdep.c (linux_core_pid_to_str): Constify.
11003 * linux-thread-db.c (thread_db_pid_to_str)
11004 (thread_db_extra_thread_info): Constify.
11005 * nto-tdep.c (nto_extra_thread_info): Constify.
11006 * nto-tdep.h (nto_extra_thread_info): Constify.
11007 * obsd-nat.c (obsd_pid_to_str): Constify.
11008 * procfs.c (procfs_pid_to_str): Constify.
11009 * ravenscar-thread.c (ravenscar_extra_thread_info)
11010 (ravenscar_pid_to_str): Constify.
11011 * remote-sim.c (gdbsim_pid_to_str): Constify.
11012 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11013 Constify.
11014 * sol-thread.c (solaris_pid_to_str): Constify.
11015 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11016 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11017 * target.c (default_pid_to_str, target_pid_to_str)
11018 (normal_pid_to_str, default_pid_to_str): Constify.
11019 * target.h (target_ops::to_pid_to_str)
11020 (target_ops::to_extra_thread_info): Constify.
11021 (target_pid_to_str, normal_pid_to_str): Constify.
11022 * windows-nat.c (windows_pid_to_str): Constify.
11023 * gdbarch.sh (core_pid_to_str): Constify.
11024 * target-delegates.c: Regenerate.
11025 * gdbarch.h, gdbarch.c: Regenerate.
11026
11027 2017-04-05 Pedro Alves <palves@redhat.com>
11028
11029 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11030 the memory of the temporary warning_pre_print override.
11031 * utils.c (warning_pre_print): Constify.
11032 * utils.h (warning_pre_print): Constify.
11033
11034 2017-04-05 Pedro Alves <palves@redhat.com>
11035
11036 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11037 (shell_command): New function.
11038 (make_command): Use std::string.
11039 (init_cli_cmds): Register shell_command instead of shell_escape.
11040
11041 2017-04-05 Pedro Alves <palves@redhat.com>
11042
11043 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11044 * tracepoint.c (default_collect): Don't initialize.
11045
11046 2017-04-05 Pedro Alves <palves@redhat.com>
11047
11048 * macroexp.c (macro_buffer::shared): Now a bool.
11049 (init_buffer): Update.
11050 (init_shared_buffer): Constify 'addr' parameter.
11051 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11052 casts.
11053
11054 2017-04-05 Pedro Alves <palves@redhat.com>
11055
11056 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11057 * disasm.c (set_disassembler_options): Constify local.
11058 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11059
11060 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11061
11062 PR gdb/21352
11063 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11064 option.
11065
11066 2017-04-05 Yao Qi <yao.qi@linaro.org>
11067
11068 * frame.c (frame_unwind_register_unsigned): Call
11069 frame_unwind_register_value.
11070
11071 2017-04-05 Yao Qi <yao.qi@linaro.org>
11072
11073 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11074 Use gdb_test_multiple, and don't match anchor.
11075
11076 2017-04-05 Pedro Alves <palves@redhat.com>
11077
11078 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11079 (Write After Approval): Remove Simon Marchi.
11080
11081 2017-04-05 Pedro Alves <palves@redhat.com>
11082
11083 * common/gdb_optional.h (optional::optional): Make constexpr and
11084 initialize m_dummy.
11085
11086 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11087
11088 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11089 (amd64fbsd_jmp_buf_reg_offset): Remove.
11090 (amd64fbsd_supply_uthread): Remove function.
11091 (amd64fbsd_collect_uthread): Remove function.
11092 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11093 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11094 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11095 (fbsd-nat.c): Update comment.
11096 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11097 (i386fbsd_jmp_buf_reg_offset): Remove.
11098 (i386fbsd_supply_uthread): Remove function.
11099 (i386fbsd_collect_uthread): Remove function.
11100 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11101
11102 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11103
11104 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11105 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11106 * NEWS: Mention that support for FreeBSD/alpha was removed.
11107 * alpha-fbsd-tdep.c: Delete file.
11108 * config/alpha/fbsd.mh: Delete file.
11109 * configure.host: Delete alpha*-*-freebsd* and
11110 alpha*-*-kfreebsd*-gnu.
11111 * configure.tgt: Delete alpha*-*-freebsd* and
11112 alpha*-*-kfreebsd*-gnu.
11113
11114 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11115
11116 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11117 amd64bsd_store_inferior_registers): Use ptid from regcache.
11118
11119 2017-04-04 Pedro Alves <palves@redhat.com>
11120
11121 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11122 data fields, make them private and add "m_" prefixes.
11123 (lnp_state_machine::lnp_state_machine): New ctor.
11124 (record_line, check_line_address, handle_set_discriminator)
11125 (handle_set_address, handle_advance_pc, handle_special_opcode)
11126 (handle_advance_line, handle_set_file, handle_negate_stmt)
11127 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11128 (end_sequence, advance_line): New methods.
11129 (m_gdbarch, m_record_lines_p): New fields.
11130 (lnp_reader_state): Delete.
11131 (dwarf_record_line): Rename to ...
11132 (lnp_state_machine::record_line): ... adjust.
11133 (init_lnp_state_machine): Delete.
11134 (lnp_state_machine::lnp_state_machine): New.
11135 (check_line_address): Rename to ...
11136 (lnp_state_machine::check_line_address): This.
11137 (dwarf_decode_lines_1): Remove reference to "reader_state".
11138 Adjust lnp_state_machine having a non-default ctor. Use bool.
11139 State machine internal state manipulation moved to
11140 lnp_state_machine methods.
11141
11142 2017-04-04 Pedro Alves <palves@redhat.com>
11143
11144 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11145 unittests/offset-type-selftests.c.
11146 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11147 * common/offset-type.h: New file.
11148 * common/preprocessor.h: New file.
11149 * common/traits.h: New file.
11150 * common/valid-expr.h: New file.
11151 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11152 sect_offset and cu_offset strong typedefs throughout.
11153 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11154 typedefs throughout.
11155 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11156 sect_offset and cu_offset strong typedefs throughout.
11157 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11158 typedefs throughout.
11159 * gdbtypes.h: Include "common/offset-type.h".
11160 (cu_offset): Now an offset type (strong typedef) instead of a
11161 struct.
11162 (sect_offset): Likewise.
11163 (union call_site_parameter_u): Rename "param_offset" field to
11164 "param_cu_off".
11165 * unittests/offset-type-selftests.c: New file.
11166
11167 2017-04-04 Pedro Alves <palves@redhat.com>
11168
11169 * common/underlying.h: New file.
11170 * dwarf2read.c: Include "common/gdb_optional.h" and
11171 "common/underlying.h".
11172 (dir_index, file_name_index): New types.
11173 (file_entry): Use them.
11174 (file_entry::include): Use to_underlying.
11175 (line_header::add_file_name): Use dir_index.
11176 (read_formatted_entries): Use gdb::optional. Read form before
11177 writting to file_entry.
11178 (dwarf_decode_line_header): Use dir_index.
11179 (lnp_state_machine::current_file): Use to_underlying.
11180 (lnp_state_machine::file): Change type to file_name_index.
11181 (dwarf_record_line): Use to_underlying.
11182 (init_lnp_state_machine): Use file_name_index.
11183 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11184
11185 2017-04-04 Pedro Alves <palves@redhat.com>
11186
11187 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11188 operator bool, has_value and get methods.
11189
11190 2017-04-04 Pedro Alves <palves@redhat.com>
11191
11192 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11193 fields.
11194 (line_header): Initialize all data fields. Change type of
11195 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11196 Change type of include_dirs to std::vector<const char *>. Remove
11197 num_include_dirs, include_dirs_size. Change type of file_names to
11198 std::vector<file_entry>. Remove num_file_names, file_names_size.
11199 (line_header::line_header): New.
11200 (line_header::add_include_dir, line_header::add_file_name): New
11201 methods.
11202 (line_header::include_dir_at): Remove NULL check.
11203 (line_header::file_name_at): Add const overload.
11204 (line_header_up): New unique_ptr typedef.
11205 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11206 std::vector. Remove free_line_header call.
11207 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11208 free_line_header call.
11209 (free_cu_line_header): Delete.
11210 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11211 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11212 Adjust to use std::vector.
11213 (free_line_header): Delete.
11214 (free_line_header_voidp): Use delete.
11215 (add_include_dir): Replace with ...
11216 (line_header::add_include_dir): ... this method. Use std::vector.
11217 (add_file_name): Replace with ...
11218 (line_header::add_file_name): ... this method. Use std::vector.
11219 (add_include_dir_stub): Delete.
11220 (read_formatted_entries): Remove memset.
11221 (dwarf_decode_line_header): Return a line_header_up instead of a
11222 raw pointer. Remove cleanup handling. Pass lambdas to
11223 read_formatted_entries. Adjust to use line_header methods.
11224 (dwarf_decode_lines_1): Adjust to use line_header methods.
11225 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11226 use std::vector.
11227
11228 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11229
11230 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11231 instead of struct ptid.
11232
11233 2017-05-04 Alan Hayward <alan.hayward@arm.com>
11234
11235 * frame.c (get_frame_register_bytes): Unwind using value.
11236 (put_frame_register_bytes): Likewise.
11237
11238 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11239
11240 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11241 aggregate-like.
11242
11243 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11244
11245 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11246
11247 2017-03-29 Yao Qi <yao.qi@linaro.org>
11248
11249 * gdbthread.h (struct thread_info): Declare constructor and
11250 destructor. Add some in-class member initializers.
11251 * thread.c (free_thread): Remove.
11252 (init_thread_list): Call delete instead of free_thread.
11253 (new_thread): Call thread_info constructor.
11254 (thread_info::thread_info): New function.
11255 (thread_info::~thread_info): New function.
11256 (delete_thread_1): Call delete instead of free_thread.
11257 (make_cleanup_restore_current_thread): Move tp and frame to
11258 inner block.
11259
11260 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11261
11262 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11263 (arc_skip_prologue): Likewise.
11264 (arc_make_frame_cache): Likewise.
11265 (arc_pv_get_operand): New function.
11266 (arc_is_in_prologue): Likewise.
11267 (arc_analyze_prologue): Likewise.
11268 (arc_print_frame_cache): Likewise.
11269 (MAX_PROLOGUE_LENGTH): New constant.
11270
11271 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11272
11273 * configure.tgt: Add arc-insn.o.
11274 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11275 (dump_arc_instruction_command): New function.
11276 (arc_fprintf_disasm): Likewise.
11277 (arc_disassemble_info): Likewise.
11278 (arc_insn_get_operand_value): Likewise.
11279 (arc_insn_get_operand_value_signed): Likewise.
11280 (arc_insn_get_memory_base_reg): Likewise.
11281 (arc_insn_get_memory_offset): Likewise.
11282 (arc_insn_get_branch_target): Likewise.
11283 (arc_insn_dump): Likewise.
11284 (arc_insn_get_linear_next_pc): Likewise.
11285 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11286 (arc_disassemble_info): Likewise.
11287 (arc_insn_get_branch_target): Likewise.
11288 (arc_insn_get_linear_next_pc): Likewise.
11289 * NEWS: Mention new "maint print arc arc-instruction".
11290
11291 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11292
11293 * arc-tdep (maintenance_print_arc_list): New variable.
11294 (maintenance_print_arc_command): New function.
11295
11296 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11297
11298 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11299 Add "limm" and "reserved".
11300 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11301 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11302 * arc-tdep.h (arc_regnum): Likewise.
11303
11304 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11305
11306 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11307 for THREADPTR register.
11308 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11309 register.
11310 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11311 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11312 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11313
11314 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11315
11316 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11317 registers above gdbarch_num_regs (gdbarch) as privileged in
11318 call0 ABI.
11319
11320 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11321
11322 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11323 for a single specified register or for all registers in
11324 a0_base..a0_base + C0_NREGS range.
11325 (supply_gregset_reg): Call regcache_raw_supply for a single
11326 specified register or for all registers in a0_base..a0_base +
11327 C0_NREGS range.
11328
11329 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11330
11331 * arch/xtensa.h (C0_NREGS): Add definition.
11332 * xtensa-tdep.c (C0_NREGS): Remove definition.
11333
11334 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11335
11336 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11337 Drop xtensa_default_isa initialization.
11338 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11339
11340 2017-03-27 Pedro Alves <palves@redhat.com>
11341
11342 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11343 (file_entry::include_dir): New method.
11344 (line_header::include_dir_at, line_header::file_name_at): New
11345 methods.
11346 (setup_type_unit_groups, setup_type_unit_groups)
11347 (psymtab_include_file_name): Simplify using the new methods.
11348 (lnp_state_machine) <the_line_header>: New field.
11349 <file>: Add comment.
11350 (lnp_state_machine::current_file): New method.
11351 (dwarf_record_line): Simplify using the new methods.
11352 (init_lnp_state_machine): Initialize the "the_line_header" field.
11353 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11354 Simplify using the new methods.
11355
11356 2017-03-27 Pedro Alves <palves@redhat.com>
11357
11358 * cp-name-parser.y (make_empty): Delete.
11359 (demangler_special, nested_name, ptr_operator, array_indicator)
11360 (direct_declarator, declarator_1): Use fill_comp instead of
11361 make_empty.
11362
11363 2017-03-27 Pedro Alves <palves@redhat.com>
11364
11365 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11366 to ATTRIBUTE_PRINTF.
11367 * solib-target.c (library_list_start_list): Print "string" not
11368 "version".
11369 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11370 gdb_xml_error call.
11371
11372 2017-03-27 Pedro Alves <palves@redhat.com>
11373
11374 * dwarf2read.c (struct file_and_directory): New.
11375 (dwarf2_get_dwz_file): Adjust to use std::string.
11376 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11377 (find_file_and_directory): Adjust to return a file_and_directory
11378 object.
11379 (read_file_scope): Adjust to use file_and_directory. Remove
11380 make_cleanup/do_cleanups calls.
11381 (open_and_init_dwp_file): Adjust to use std::string. Remove
11382 make_cleanup/do_cleanups calls.
11383 * python/python.c (do_start_initialization): Adjust to ldirname
11384 returning a std::string.
11385 * utils.c (ldirname): Now returns a std::string.
11386 * utils.h (ldirname): Change return type to std::string.
11387 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11388 returning a std::string.
11389 * xml-tdesc.c (file_read_description_xml): Likewise.
11390
11391 2017-03-24 Alan Hayward <alan.hayward@arm.com>
11392
11393 * regcache.c (regcache_debug_print_register): New function.
11394 * regcache.h (regcache_debug_print_register): New declaration.
11395 * target.c (debug_print_register): Remove.
11396 (target_fetch_registers): Call regcache_debug_print_register.
11397 (target_store_registers): Likewise.
11398
11399 2017-03-24 Pádraig Brady <pbrady@fb.com>
11400
11401 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11402 reference beyond the 'lh->include_dirs' array before accessing to
11403 it.
11404 (psymtab_include_file_name): Likewise.
11405 (dwarf_decode_lines_1): Likewise.
11406 (dwarf_decode_lines): Likewise.
11407 (file_file_name): Likewise.
11408
11409 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11410
11411 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11412 inferior_ptid.
11413 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11414 ps_lsetfpregs): Likewise.
11415 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11416 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11417 ps_lsetfpregs): Likewise.
11418 * target.c (target_fetch_registers, target_store_registers):
11419 Remove asserts.
11420
11421 2017-03-23 Alan Hayward <alan.hayward@arm.com>
11422
11423 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11424
11425 2017-03-23 Yao Qi <yao.qi@linaro.org>
11426
11427 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11428 (_initialize_aarch64_tdep): Register it.
11429 (aarch64_record_load_store): Handle PRFM instruction.
11430 (aarch64_process_record_test): New function.
11431
11432 2017-03-23 Yao Qi <yao.qi@linaro.org>
11433
11434 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11435 indentation.
11436
11437 2017-03-23 Yao Qi <yao.qi@linaro.org>
11438
11439 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11440
11441 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11442
11443 python/python.c (do_start_initialization): Fix memory leak.
11444
11445 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11446
11447 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11448 using get_ptrace_pid.
11449 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11450 inferior_ptid.
11451 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11452 inferior_ptid instead of pid.
11453
11454 2017-03-22 Yao Qi <yao.qi@linaro.org>
11455
11456 * aarch64-tdep.c: Wrap locally used classes in anonymous
11457 namespace.
11458 * arm-tdep.c: Likewise.
11459 * linespec.c: Likewise.
11460 * ui-out.c: Likewise.
11461
11462 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
11463
11464 PR gdb/19637
11465 * python/lib/gdb/printer/bound_registers.py: Import sys.
11466
11467 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11468
11469 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11470 windows_thread_info parameter and use it instead of
11471 current_thread.
11472 (windows_fetch_inferior_registers): Don't set current_thread,
11473 pass the thread to do_windows_fetch_inferior_registers. Use
11474 ptid from regcache instead of inferior_ptid.
11475 (do_windows_store_inferior_registers): Add windows_thread_info
11476 parameter and use it instead of current_thread.
11477 (windows_store_inferior_registers): Don't set current_thread,
11478 pass the thread to do_windows_store_inferior_registers. Use
11479 ptid from regcache instead of inferior_ptid.
11480
11481 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11482
11483 * ser-mingw.c (ser_windows_raw): Remove reference to
11484 struct serial::current_timeout.
11485
11486 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11487
11488 PR tdep/20928
11489 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11490 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11491 (sparc64_fsr_type): Fix %fsr decoding.
11492
11493 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11494
11495 * python/py-record-btrace.c (btpy_insn_data): Change return type
11496 for Python 2.
11497
11498 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11499
11500 * spu-linux-nat.c (spu_fetch_inferior_registers,
11501 spu_store_inferior_registers): Use ptid from regcache, set and
11502 restore inferior_ptid.
11503 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11504 Likewise.
11505
11506 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11507
11508 * i386-linux-nat.c (fetch_register, store_register,
11509 i386_linux_fetch_inferior_registers,
11510 i386_linux_store_inferior_registers): Use ptid from regcache.
11511 * ia64-linux-nat.c (ia64_linux_fetch_register,
11512 ia64_linux_store_register): Likewise.
11513 * inf-ptrace.c (inf_ptrace_fetch_register,
11514 inf_ptrace_store_register): Likewise.
11515 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11516 m32r_linux_store_inferior_registers): Likewise.
11517 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11518 m68kbsd_store_inferior_registers): Likewise.
11519 * m68k-linux-nat.c (fetch_register, store_register,
11520 m68k_linux_fetch_inferior_registers,
11521 m68k_linux_store_inferior_registers): Likewise.
11522 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11523 m88kbsd_store_inferior_registers): Likewise.
11524 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11525 mips_fbsd_store_inferior_registers): Likewise.
11526 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11527 mips64_linux_regsets_store_registers): Likewise.
11528 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11529 mipsnbsd_store_inferior_registers): Likewise.
11530 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11531 mips64obsd_store_inferior_registers): Likewise.
11532 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11533 Likewise.
11534 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11535 ppcfbsd_store_inferior_registers): Likewise.
11536 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11537 ppc_linux_store_inferior_registers): Likewise.
11538 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11539 ppcnbsd_store_inferior_registers): Likewise.
11540 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11541 ppcobsd_store_registers): Likewise.
11542 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11543 Likewise.
11544 * ravenscar-thread.c (ravenscar_fetch_registers,
11545 ravenscar_store_registers, ravenscar_prepare_to_store):
11546 Likewise.
11547 * record-btrace.c (record_btrace_fetch_registers,
11548 record_btrace_store_registers, record_btrace_prepare_to_store):
11549 Likewise.
11550 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11551 Lookup inferior using ptid from regcache, instead of
11552 current_inferior.
11553 * remote.c (remote_fetch_registers, remote_store_registers): Use
11554 ptid from regcache.
11555 * rs6000-nat.c (fetch_register, store_register): Likewise.
11556 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11557 s390_linux_store_inferior_registers): Likewise.
11558 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11559 shnbsd_store_inferior_registers): Likewise.
11560 * sol-thread.c (sol_thread_fetch_registers,
11561 sol_thread_store_registers): Likewise.
11562 * sparc-nat.c (sparc_fetch_inferior_registers,
11563 sparc_store_inferior_registers): Likewise.
11564 * tilegx-linux-nat.c (fetch_inferior_registers,
11565 store_inferior_registers): Likewise.
11566 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11567 vaxbsd_store_inferior_registers): Likewise.
11568 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11569 store_xtregs): Likewise.
11570
11571 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11572
11573 PR gdb/14441
11574 * NEWS: Mention support for rvalue references in GDB and python.
11575 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11576 supports both lvalue and rvalue references.
11577
11578 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11579
11580 PR gdb/14441
11581 * gdbtypes.c (rank_one_type): Implement overloading
11582 resolution rules regarding rvalue references.
11583
11584 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11585
11586 PR gdb/14441
11587 * aarch64-tdep.c (aarch64_type_align)
11588 (aarch64_extract_return_value, aarch64_store_return_value): Change
11589 lvalue reference type checks to general reference type checks.
11590 * amd64-tdep.c (amd64_classify): Likewise.
11591 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11592 Likewise.
11593 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11594 (arm_store_return_value): Likewise.
11595 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11596 * c-typeprint.c (c_print_type): Likewise.
11597 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11598 (cplus_number_of_children, cplus_describe_child): Likewise.
11599 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11600 * completer.c (expression_completer): Likewise.
11601 * cp-support.c (make_symbol_overload_list_adl_namespace):
11602 Likewise.
11603 * darwin-nat-info.c (info_mach_region_command): Likewise.
11604 * dwarf2loc.c (entry_data_value_coerce_ref)
11605 (value_of_dwarf_reg_entry): Likewise.
11606 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11607 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11608 Likewise.
11609 * findvar.c (extract_typed_address, store_typed_address):
11610 Likewise.
11611 * gdbtypes.c (rank_one_type): Likewise.
11612 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11613 * infcall.c (value_arg_coerce): Likewise.
11614 * language.c (pointer_type): Likewise.
11615 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11616 Likewise.
11617 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11618 * mn10300-tdep.c (mn10300_type_align): Likewise.
11619 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11620 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11621 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11622 Likewise.
11623 * printcmd.c (print_formatted, x_command): Likewise.
11624 * python/py-type.c (typy_get_composite, typy_template_argument):
11625 Likewise.
11626 * python/py-value.c (valpy_referenced_value)
11627 (valpy_get_dynamic_type, value_has_field): Likewise.
11628 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11629 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11630 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11631 * spu-tdep.c (spu_scalar_value_p): Likewise.
11632 * symtab.c (lookup_symbol_aux): Likewise.
11633 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11634 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11635 Likewise.
11636 * valops.c (value_cast_pointers, value_cast)
11637 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11638 (value_struct_elt, value_struct_elt_bitpos)
11639 (value_find_oload_method_list, find_overload_match)
11640 (value_rtti_indirect_type): Likewise.
11641 * valprint.c (val_print_scalar_type_p, generic_val_print):
11642 Likewise.
11643 * value.c (value_actual_type, value_as_address, unpack_long)
11644 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11645 (coerce_ref): Likewise.
11646 * varobj.c (varobj_get_value_type): Likewise.
11647
11648 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11649
11650 PR gdb/14441
11651 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11652 table of constants.
11653 * python/lib/gdb/command/explore.py: Support exploring values
11654 of rvalue reference types.
11655 * python/lib/gdb/types.py: Implement get_basic_type() for
11656 rvalue reference types.
11657 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11658 constant.
11659 * python/py-value.c (valpy_getitem): Add an rvalue reference
11660 check.
11661 (valpy_reference_value): Add new parameter "refcode".
11662 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11663 New wrappers for valpy_reference_value().
11664 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11665 (gdbpy_invoke_xmethod): Likewise.
11666
11667 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11668
11669 PR gdb/14441
11670 * dwarf2read.c (process_die, read_type_die_1): Handle the
11671 DW_TAG_rvalue_reference_type DIE.
11672 (read_tag_reference_type): Add new parameter "refcode".
11673
11674 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11675
11676 PR gdb/14441
11677 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11678 (c_type_print_modifier, c_type_print_varspec_suffix)
11679 (c_type_print_base): Support printing rvalue reference types.
11680 * c-valprint.c (c_val_print, c_value_print): Support printing
11681 rvalue reference values.
11682
11683 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11684
11685 PR gdb/14441
11686 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11687 typename.
11688 * cp-support.c (replace_typedefs): Handle
11689 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11690 * python/py-type.c (typy_lookup_type): Likewise.
11691
11692 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11693
11694 PR gdb/14441
11695 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11696 * parse.c (insert_type): Change assert statement.
11697 (follow_types): Handle rvalue reference types.
11698 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11699 constant.
11700
11701 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11702
11703 PR gdb/14441
11704 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11705 value_ref() interface.
11706 * c-valprint.c (c_value_print): Likewise.
11707 * infcall.c (value_arg_coerce): Likewise.
11708 * python/py-value.c (valpy_reference_value): Likewise.
11709 * valops.c (value_cast, value_reinterpret_cast)
11710 (value_dynamic_cast, typecmp): Likewise.
11711 (value_ref): Parameterize by kind of return value reference type.
11712 * value.h (value_ref): Add new parameter "refcode".
11713
11714 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11715
11716 PR gdb/14441
11717 * dwarf2read.c (read_tag_reference_type): Use
11718 lookup_lvalue_reference_type() instead of lookup_reference_type().
11719 * eval.c (evaluate_subexp_standard): Likewise.
11720 * f-exp.y: Likewise.
11721 * gdbtypes.c (make_reference_type, lookup_reference_type):
11722 Generalize with rvalue reference types.
11723 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11724 convenience wrappers for lookup_reference_type().
11725 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11726 reference kind parameter.
11727 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11728 wrappers for lookup_reference_type().
11729 * guile/scm-type.c (gdbscm_type_reference): Use
11730 lookup_lvalue_reference_type() instead of lookup_reference_type().
11731 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11732 * parse.c (follow_types): Likewise.
11733 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11734 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11735 Likewise.
11736 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11737 (gdbpy_invoke_xmethod): Likewise.
11738 * stabsread.c: Provide extra argument to make_reference_type()
11739 call.
11740 * valops.c (value_ref, value_rtti_indirect_type): Use
11741 lookup_lvalue_reference_type() instead of lookup_reference_type().
11742
11743 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11744
11745 PR gdb/14441
11746 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11747 (TYPE_IS_REFERENCE): New macro.
11748 (struct type): Add rvalue_reference_type field.
11749 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11750
11751 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11752
11753 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11754 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11755 New function definition.
11756 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11757 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11758 New function declaration.
11759 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11760 * mi/mi-interp.h: New file.
11761 * solib.c (info_sharedlibrary_command): Replace for loop with
11762 ALL_SO_LIBS macro
11763 * solib.h (update_solib_list): New function declaration.
11764 (so_list_head): Move macro.
11765 * solist.h (ALL_SO_LIBS): New macro.
11766
11767 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11768
11769 * infcmd.c (post_create_inferior): Remove unused argument in
11770 call to solib_add.
11771 * remote.c (remote_start_remote): Likewise.
11772 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11773 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11774 (enable_break): Likewise.
11775 * solib.c (update_solib_list): Remove unused target argument
11776 and its documentation.
11777 (solib_add): Remove unused target argument. Remove unused
11778 argument in call to update_solib_list.
11779 (info_sharedlibrary_command): Remove unused argument in call
11780 to update_solib_list.
11781 (sharedlibrary_command): Remove unused argument in call to
11782 solib_add.
11783 (handle_solib_event): Likewise.
11784 (reload_shared_libraries): Likewise.
11785 * solib.h (solib_add): Remove unused target argument.
11786
11787 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11788
11789 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11790 (s390_displaced_step_fixup): Cover relative branches with the
11791 default fixup handling. This fixes lack of support for some
11792 relative branch instructions.
11793
11794 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11795
11796 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11797 ptid from regcache.
11798
11799 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11800
11801 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11802 i386_darwin_store_inferior_registers): Use ptid from regcache.
11803
11804 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11805
11806 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11807 i386bsd_store_inferior_registers): Use ptid from regcache.
11808
11809 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11810
11811 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11812 hppaobsd_store_registers): Use ptid from regcache.
11813
11814 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11815
11816 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11817 hppanbsd_store_registers): Use ptid from regcache.
11818
11819 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11820
11821 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11822 from regcache. Use get_ptrace_pid.
11823
11824 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11825
11826 * corelow.c (get_core_register_section): Use ptid from regcache,
11827 update doc.
11828
11829 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11830
11831 * bsd-uthread.c (bsd_uthread_fetch_registers,
11832 bsd_uthread_store_registers): Use ptid from regcache, set and
11833 restore inferior_ptid.
11834
11835 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11836
11837 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11838 fetch_fp_regs, store_register, store_regs, store_fp_register,
11839 store_fp_regs): Use ptid from regcache.
11840
11841 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11842
11843 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11844 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11845 store_vfp_regs): Use ptid from regcache.
11846
11847 2017-03-17 Pedro Alves <palves@redhat.com>
11848
11849 PR remote/21188
11850 * ser-base.c (ser_base_wait_for): Add comment.
11851 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11852 version.
11853 * ser-unix.c (hardwire_raw): Remove reference to
11854 scb->current_timeout.
11855 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11856 (hardwire_ops): Install ser_base_readchar instead of
11857 hardwire_readchar.
11858 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11859 Remove fields.
11860
11861 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
11862
11863 PR gdb/19637
11864 * python/lib/gdb/printer/bound_registers.py: Add support for
11865 Python 3.
11866
11867 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11868
11869 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
11870 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
11871 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
11872 byte_offset to subobj_byte_offset. Fix the handling of
11873 DWARF_VALUE_STACK on big-endian targets when coming via an
11874 implicit pointer.
11875 (dwarf2_evaluate_loc_desc): Adjust call to
11876 dwarf2_evaluate_loc_desc_full.
11877 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
11878 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
11879
11880 2017-03-16 Yao Qi <yao.qi@linaro.org>
11881
11882 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
11883 and REVSH instructions.
11884
11885 2017-03-16 Yao Qi <yao.qi@linaro.org>
11886
11887 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
11888 (arm_record_test): Declare.
11889 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
11890 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
11891 align with the manual.
11892 (thumb_record_misc): Adjust the code order to align with the
11893 manual.
11894 (thumb2_record_decode_insn_handler): Fix instruction matching.
11895 (instruction_reader_thumb): New class.
11896 (arm_record_test): New function.
11897
11898 2017-03-16 Yao Qi <yao.qi@linaro.org>
11899
11900 * arm-tdep.c (abstract_memory_reader): New class.
11901 (instruction_reader): New class.
11902 (extract_arm_insn): Add argument 'reader'. Callers updated.
11903 (decode_insn): Likewise.
11904
11905 2017-03-16 Doug Evans <dje@google.com>
11906
11907 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
11908 member. Change type of TYPE member to SCM. All uses updated.
11909 (lsscm_make_lazy_string_smob): Add assert.
11910 (lsscm_make_lazy_string): Flag bad length values.
11911 (lsscm_elt_type): New function.
11912 (gdbscm_lazy_string_to_value): Rewrite to use
11913 lsscm_safe_lazy_string_to_value.
11914 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
11915 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
11916 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
11917 in incoming type.
11918 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11919 * guile/scm-type.c (tyscm_scm_to_type): New function.
11920
11921 2017-03-15 Doug Evans <dje@google.com>
11922
11923 PR python/17728, python/18439, python/18779
11924 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
11925 member. Change type of TYPE member to PyObject *. All uses updated.
11926 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
11927 (gdbpy_create_lazy_string_object): Flag bad length values.
11928 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
11929 Handle typedefs in incoming type.
11930 (stpy_lazy_string_elt_type): New function.
11931 (gdbpy_extract_lazy_string): Call it.
11932 * python/py-value.c (valpy_lazy_string): Flag bad length values.
11933 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
11934 typedefs in incoming type.
11935
11936 2017-03-16 Doug Evans <dje@google.com>
11937
11938 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11939 * guile/scm-type.c (tyscm_scm_to_type): New function.
11940
11941 2017-03-16 Jiong Wang <jiong.wang@arm.com>
11942
11943 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
11944 "ULONGEST" for "skip".
11945
11946 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11947
11948 PR gdb/21220
11949 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
11950 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
11951 (inf_ptrace_peek_poke): ...here. New function. Now also loop
11952 over ptrace peek/poke until end of buffer or error.
11953
11954 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
11955
11956 * parse.c (length_of_subexp): Make static.
11957 * parser-defs.h (length_of_subexp): Remove.
11958
11959 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11960
11961 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
11962 as well.
11963
11964 2017-03-14 Pedro Alves <palves@redhat.com>
11965
11966 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
11967 (main): Use std::unique_ptr. Remove calls to
11968 cp_demangled_name_parse_free.
11969
11970 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11971
11972 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
11973 alphabsd_store_inferior_registers): Use regcache->ptid instead
11974 of inferior_ptid.
11975
11976 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11977
11978 * aix-thread.c (aix_thread_fetch_registers,
11979 aix_thread_store_registers): Use regcache->ptid instead of
11980 inferior_ptid.
11981
11982 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11983
11984 * aarch64-linux-nat.c (fetch_gregs_from_thread,
11985 store_gregs_to_thread, fetch_fpregs_from_thread,
11986 store_fpregs_to_thread): Use regcache->ptid instead of
11987 inferior_ptid.
11988
11989 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11990
11991 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
11992 amd64_linux_fetch_inferior_registers): Use regcache->ptid
11993 instead of inferior_ptid.
11994
11995 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11996
11997 * target.c (target_fetch_registers, target_store_registers): Add
11998 assert.
11999
12000 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12001
12002 * regcache.h (regcache_get_ptid): New function.
12003 * regcache.c (regcache_get_ptid): New function.
12004
12005 2017-03-13 Mark Wielaard <mark@klomp.org>
12006
12007 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12008
12009 2017-03-10 Keith Seitz <keiths@redhat.com>
12010
12011 PR c++/8218
12012 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12013
12014 2017-03-08 Pedro Alves <palves@redhat.com>
12015
12016 PR gdb/18360
12017 * infrun.c (start_step_over, do_target_resume, resume)
12018 (restart_threads): Assert we're not resuming a thread that is
12019 meant to be stopped.
12020 (infrun_thread_stop_requested_callback): Delete.
12021 (infrun_thread_stop_requested): If the thread is internally
12022 stopped, queue a pending stop event and clear the thread's
12023 inline-frame state.
12024 (handle_stop_requested): New function.
12025 (handle_syscall_event, handle_inferior_event_1): Use
12026 handle_stop_requested.
12027 (handle_stop_requested): New function.
12028 (handle_signal_stop): Set the thread's stop_signal here instead of
12029 at caller.
12030 (finish_step_over): Clear step over info unconditionally.
12031 (handle_signal_stop): If the user had interrupted the event
12032 thread, consider the stop a random signal.
12033 (handle_signal_stop) <signal arrived while stepping over
12034 breakpoint>: Don't restart threads here.
12035 (stop_waiting): Don't clear step-over info here.
12036
12037 2017-03-08 Pedro Alves <palves@redhat.com>
12038
12039 PR 21206
12040 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12041 goes to argument 2, not 1.
12042
12043 2017-03-08 Pedro Alves <palves@redhat.com>
12044
12045 PR cli/21218
12046 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12047 display_gdb_prompt.
12048 (command_line_input): Add comment.
12049
12050 2017-03-08 Pedro Alves <palves@redhat.com>
12051
12052 PR tui/21216
12053 * tui/tui-file.c (tui_file::write): New.
12054 * tui/tui-file.h (tui_file): Override "write".
12055 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12056 factored out from ...
12057 (tui_puts): ... here.
12058 (tui_putc): Use them.
12059 (tui_write): New function.
12060 * tui/tui-io.h (tui_write): Declare.
12061
12062 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12063
12064 * Makefile.in (SFILES): Replace "environ.c" with
12065 "common/environ.c".
12066 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12067 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12068 to...
12069 * common/environ.c: ... here.
12070 * environ.h: Moved to...
12071 * common/environ.h: ... here.
12072
12073 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12074
12075 * gdbarch.sh (pstring_ptr): New static function.
12076 (gdbarch_disassembler_options): Use it.
12077 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12078 not valid_disassembler_option->name.
12079 * gdbarch.c: Regenerate.
12080
12081 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12082
12083 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12084
12085 2017-03-07 Pedro Alves <palves@redhat.com>
12086
12087 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12088
12089 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
12090
12091 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12092 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12093 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
12094 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
12095
12096 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12097
12098 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12099
12100 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12101
12102 * remote.c (remote_add_target_side_commands): Use range-based
12103 for loop.
12104
12105 2017-03-03 Yao Qi <yao.qi@linaro.org>
12106
12107 PR gdb/21165
12108 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12109 value is lazy.
12110 * valprint.c (common_val_print): Likewise.
12111
12112 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12113
12114 * NEWS: Mention new set/show disassembler-options commands.
12115 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12116 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12117 (prospective_options): New static variable.
12118 (gdb_disassembler::gdb_disassembler): Initialize
12119 m_di.disassembler_options.
12120 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12121 (get_disassembler_options): New function.
12122 (set_disassembler_options): Likewise.
12123 (set_disassembler_options_sfunc): Likewise.
12124 (show_disassembler_options_sfunc): Likewise.
12125 (disassembler_options_completer): Likewise.
12126 (_initialize_disasm): Likewise.
12127 * disasm.h (get_disassembler_options): New prototype.
12128 (set_disassembler_options): Likewise.
12129 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12130 (gdbarch_verify_disassembler_options): Likewise.
12131 * gdbarch.c: Regenerate.
12132 * gdbarch.h: Likewise.
12133 * arm-tdep.c (num_disassembly_options): Delete.
12134 (set_disassembly_style): Likewise.
12135 (arm_disassembler_options): New static variable.
12136 (set_disassembly_style_sfunc): Convert short style name into long
12137 option name. Call set_disassembler_options.
12138 (show_disassembly_style_sfunc): New function.
12139 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12140 set_gdbarch_verify_disassembler_options.
12141 (_initialize_arm_tdep): Delete regnames variable and update callers.
12142 (arm_disassembler_options): Initialize.
12143 (disasm_options): New variable.
12144 (num_disassembly_options): Rename from this...
12145 (num_disassembly_styles): ...to this. Compute by scanning through
12146 disasm_options.
12147 (valid_disassembly_styles): Initialize using disasm_options.
12148 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12149 set_arm_regname_option.
12150 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12151 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12152 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12153 set_gdbarch_verify_disassembler_options.
12154 * s390-tdep.c (s390_disassembler_options): New static variable.
12155 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12156 set_gdbarch_verify_disassembler_options.
12157
12158 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12159
12160 * remote.c (remote_add_target_side_condition): Remove "struct"
12161 keyword from range-based for loop.
12162
12163 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12164
12165 * remote.c (remote_add_target_side_condition): Use range-based
12166 for loop. Update comment.
12167
12168 2017-02-27 Yao Qi <yao.qi@linaro.org>
12169
12170 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12171
12172 2017-02-26 Alan Hayward <alan.hayward@arm.com>
12173
12174 * regcache.c (regcache_raw_update): New function.
12175 (regcache_raw_read): Move code to regcache_raw_update.
12176 * regcache.h (regcache_raw_update): New declaration.
12177 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12178
12179 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12180
12181 * dwarf2read.c (create_debug_type_hash_table): Initialize
12182 header.signature and header.type_offset_in_tu.
12183
12184 2017-02-24 Pedro Alves <palves@redhat.com>
12185
12186 * symtab.c (make_file_symbol_completion_list_1): Use
12187 add_symtab_completions.
12188
12189 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12190
12191 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12192
12193 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12194
12195 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12196 I386_MAX_REGISTER_SIZE.
12197 (i386_pseudo_register_write): Likewise.
12198 (i386_process_record): Likewise.
12199 * i387-tdep.c (i387_supply_xsave): Likewise.
12200 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12201 (store_register): Likewise.
12202
12203 2017-02-23 Pedro Alves <palves@redhat.com>
12204
12205 * ada-lang.c: Include "common/function-view.h".
12206 (ada_iterate_over_symbols): Adjust to use function_view as
12207 callback type.
12208 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12209 (ada_make_symbol_completion_list): Use a lambda.
12210 (ada_exc_search_name_matches): Delete.
12211 (name_matches_regex): New.
12212 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12213 * compile/compile-c-support.c: Include "common/function-view.h".
12214 (print_one_macro): Change prototype to accept a ui_file pointer.
12215 (write_macro_definitions): Use a lambda.
12216 * dwarf2read.c: Include "common/function-view.h".
12217 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12218 (dw2_expand_symtabs_matching): Adjust to use function_view as
12219 callback type.
12220 * language.h: Include "common/function-view.h".
12221 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12222 function_view as callback type.
12223 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12224 * linespec.c: Include "common/function-view.h".
12225 (collect_info::add_symbol): New method.
12226 (struct symbol_and_data_callback, iterate_inline_only, struct
12227 symbol_matcher_data, iterate_name_matcher): Delete.
12228 (iterate_over_all_matching_symtabs): Adjust to use function_view
12229 as callback type and lambdas.
12230 (iterate_over_file_blocks): Adjust to use function_view as
12231 callback type.
12232 (decode_compound_collector): Now a class with private fields.
12233 (decode_compound_collector::release_symbols): New method.
12234 (collect_one_symbol): Rename to...
12235 (decode_compound_collector::operator()): ... this and adjust.
12236 (lookup_prefix_sym): decode_compound_collector construction bits
12237 move to decode_compound_collector ctor. Pass the
12238 decode_compound_collector object directly as callback. Remove
12239 cleanups and use decode_compound_collector::release_symbols
12240 instead.
12241 (symtab_collector): Now a class with private fields.
12242 (symtab_collector::release_symtabs): New method.
12243 (add_symtabs_to_list): Rename to...
12244 (symtab_collector::operator()): ... this and adjust.
12245 (collect_symtabs_from_filename): symtab_collector construction
12246 bits move to symtab_collector ctor. Pass the symtab_collector
12247 object directly as callback. Remove cleanups and use
12248 symtab_collector::release_symtabs instead.
12249 (collect_symbols): Delete.
12250 (add_matching_symbols_to_info): Use lambdas.
12251 * macrocmd.c (print_macro_callback): Delete.
12252 (info_macro_command): Use a lambda.
12253 (info_macros_command): Pass print_macro_definition as callable
12254 directly.
12255 (print_one_macro): Remove 'ignore' parameter.
12256 (macro_list_command): Adjust.
12257 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12258 (macro_for_each_data::user_data): Delete field.
12259 (foreach_macro): Adjust to call the function_view.
12260 (macro_for_each): Adjust to use function_view as callback type.
12261 (foreach_macro_in_scope): Adjust to call the function_view.
12262 (macro_for_each_in_scope): Adjust to use function_view as callback
12263 type.
12264 * macrotab.h: Include "common/function-view.h".
12265 (macro_callback_fn): Declare a prototype instead of a pointer.
12266 Remove "user_data" parameter.
12267 (macro_for_each, macro_for_each_in_scope): Adjust to use
12268 function_view as callback type.
12269 * psymtab.c (partial_map_expand_apply)
12270 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12271 Adjust to use function_view as callback type and to return bool.
12272 (psym_expand_symtabs_matching): Adjust to use function_view as
12273 callback types.
12274 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12275 to use function_view as callback type and to return bool.
12276 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12277 callback types.
12278 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12279 as callback types.
12280 * symfile.h: Include "common/function-view.h".
12281 (expand_symtabs_file_matcher_ftype)
12282 (expand_symtabs_symbol_matcher_ftype)
12283 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12284 return bool.
12285 (quick_symbol_functions::map_symtabs_matching_filename)
12286 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12287 function_view as callback type and return bool.
12288 (expand_symtabs_matching): Adjust to use function_view as callback
12289 type.
12290 (maintenance_expand_name_matcher)
12291 (maintenance_expand_file_matcher): Delete.
12292 (maintenance_expand_symtabs): Use lambdas.
12293 * symtab.c (iterate_over_some_symtabs): Adjust to use
12294 function_view as callback types and return bool.
12295 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12296 of a cleanup.
12297 (lookup_symtab_callback): Delete.
12298 (lookup_symtab): Use a lambda.
12299 (iterate_over_symbols): Adjust to use function_view as callback
12300 type.
12301 (struct search_symbols_data, search_symbols_file_matches)
12302 (search_symbols_name_matches): Delete.
12303 (search_symbols): Use a pair of lambdas.
12304 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12305 (symtab_expansion_callback): Delete.
12306 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12307 * symtab.h: Include "common/function-view.h".
12308 (iterate_over_some_symtabs): Adjust to use function_view as
12309 callback type and return bool.
12310 (iterate_over_symtabs): Adjust to use function_view as callback
12311 type.
12312 (symbol_found_callback_ftype): Remove 'data' parameter and return
12313 bool.
12314 (iterate_over_symbols): Adjust to use function_view as callback
12315 type.
12316
12317 2017-02-23 Pedro Alves <palves@redhat.com>
12318
12319 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12320 (%.o) <unittests/%.c>: New pattern.
12321 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12322 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12323 * common/function-view.h: New file.
12324 * unittests/function-view-selftests.c: New file.
12325 * configure: Regenerate.
12326
12327 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12328
12329 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12330 inferior_ptid.
12331 * go32-nat.c (go32_thread_alive): Likewise.
12332
12333 2017-02-23 Yao Qi <yao.qi@linaro.org>
12334
12335 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12336 delete.
12337
12338 2017-02-23 Yao Qi <yao.qi@linaro.org>
12339
12340 * varobj.c (varobj_clear_saved_item): Use delete instead of
12341 xfree.
12342 (update_dynamic_varobj_children): Likewise.
12343
12344 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12345
12346 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12347
12348 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12349
12350 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12351 m_enum_value to 0 in default constructor.
12352
12353 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12354
12355 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12356 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12357 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12358 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12359 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12360 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12361 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12362 IS_STORE_CONDITIONAL_INSN.
12363
12364 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12365
12366 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12367
12368 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12369
12370 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12371
12372 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12373
12374 * dwarf2read.c (skip_one_die, read_attribute_value)
12375 (dwarf2_const_value_attr, dump_die_shallow)
12376 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12377 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12378
12379 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12380
12381 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12382 (dwarf_parse_macro_header): Accept DWARF version 5.
12383 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12384
12385 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12386
12387 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12388 DW_AT_GNU_*.
12389 * common/common-exceptions.h (enum errors): Likewise.
12390 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12391 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12392 (dwarf_expr_context::execute_stack_op): Likewise.
12393 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12394 Likewise.
12395 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12396 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12397 (show_entry_values_debug, call_site_to_target_addr)
12398 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12399 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12400 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12401 (value_of_dwarf_block_entry, indirect_pieced_value)
12402 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12403 (disassemble_dwarf_expression): Likewise.
12404 * dwarf2read.c (process_die, inherit_abstract_dies)
12405 (read_call_site_scope): Likewise.
12406 * gdbtypes.h (struct func_type, struct call_site_parameter)
12407 (struct call_site): Likewise.
12408 * stack.c (read_frame_arg): Likewise.
12409 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12410
12411 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12412
12413 * defs.h (read_unsigned_leb128): New declaration.
12414 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12415 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12416 (dwarf2_find_location_expression): Call also
12417 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12418 * dwarf2loc.h (dwarf2_version): New declaration.
12419 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12420 rnglists.
12421 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12422 .debug_rnglists.
12423 (struct dwop_section_names): Add loclists_dwo.
12424 (dwop_section_names): Add .debug_loclists.dwo.
12425 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12426 (struct dwarf2_per_cu_data): Add dwarf_version.
12427 (struct dwo_sections): Add loclists.
12428 (struct attr_abbrev): Add implicit_const.
12429 (read_indirect_line_string): New declaration.
12430 (read_unsigned_leb128): Delete declaration.
12431 (rcuh_kind): New definition.
12432 (read_and_check_comp_unit_head): Change parameter
12433 is_debug_types_section to section_kind.
12434 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12435 (read_comp_unit_head): Change parameter abfd to section, add parameter
12436 section_kind. Handle DWARF-5.
12437 (error_check_comp_unit_head): Accept also DWARF version 5.
12438 (read_and_check_comp_unit_head): Change parameter
12439 is_debug_types_section to section_kind.
12440 (read_and_check_type_unit_head): Delete function.
12441 (read_abbrev_offset): Handle DWARF-5.
12442 (create_debug_type_hash_table): Add parameter section_kind. Process
12443 only DW_UT_type. Use signature and type_offset_in_tu from struct
12444 comp_unit_head.
12445 (create_debug_types_hash_table): Update create_debug_type_hash_table
12446 caller.
12447 (create_all_type_units): Call create_debug_type_hash_table.
12448 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12449 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12450 caller.
12451 (skip_one_die): Handle DW_FORM_implicit_const.
12452 (dwarf2_rnglists_process): New function.
12453 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12454 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12455 (read_attribute_value): Handle DW_FORM_implicit_const,
12456 DW_FORM_line_strp.
12457 (read_attribute): Handle DW_FORM_implicit_const.
12458 (read_indirect_string_at_offset_from): New function from
12459 read_indirect_string_at_offset.
12460 (read_indirect_string_at_offset): Call
12461 read_indirect_string_at_offset_from.
12462 (read_indirect_line_string_at_offset): New function.
12463 (read_indirect_string): New function comment.
12464 (read_indirect_line_string): New function.
12465 (read_unsigned_leb128): Make it global.
12466 (dwarf2_string_attr): Handle DWARF-5.
12467 (add_include_dir_stub, read_formatted_entries): New functions.
12468 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12469 Handle DWARF-5.
12470 (per_cu_header_read_in): Update read_comp_unit_head caller.
12471 (dwarf2_version): New function.
12472 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12473 rnglists.
12474 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12475 fields.
12476
12477 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12478
12479 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12480
12481 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12482
12483 * dwarf2read.c (dwarf2_ranges_process): New function from
12484 dwarf2_ranges_read.
12485 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12486 dwarf2_ranges_process.
12487
12488 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12489
12490 * dwarf2read.c (create_debug_type_hash_table): New function from
12491 create_debug_types_hash_table.
12492 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12493 (create_all_type_units, open_and_init_dwo_file): Update
12494 create_debug_types_hash_table callers.
12495
12496 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12497
12498 PR gdb/16188
12499 * fork-child.c (trace_start_error): Fix thinko. va_end should
12500 refer to 'ap', not 'args'.
12501
12502 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12503 Pedro Alves <palves@redhat.com>
12504
12505 PR gdb/16188
12506 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12507 calls succeeded.
12508 * fork-child.c (trace_start_error): New function.
12509 (trace_start_error_with_name): Likewise.
12510 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12511 * inf-ptrace.c (inf_ptrace_me): Likewise.
12512 * inferior.h (trace_start_error): New prototype.
12513 (trace_start_error_with_name): Likewise.
12514
12515 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12516
12517 PR gdb/21164
12518 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12519 NULL before using it.
12520 * symmisc.c (maintenance_print_symbols): Likewise.
12521 (maintenance_print_msymbols): Likewise.
12522
12523 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12524
12525 * NEWS: Add record Python bindings entry.
12526
12527 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12528
12529 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12530 py-record-full.o.
12531 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12532 * python/py-record-btrace.c, python/py-record-btrace.h,
12533 python/py-record-full.c, python/py-record-full.h: New file.
12534 * python/py-record.c: Add include for py-record-btrace.h and
12535 py-record-full.h.
12536 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12537 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12538 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12539 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12540 New definition.
12541 (gdbpy_initialize_btrace): New export.
12542 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12543
12544 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12545
12546 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12547 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12548 * python/py-record.c: New file.
12549 * python/python-internal.h (gdbpy_start_recording,
12550 gdbpy_current_recording, gdpy_stop_recording,
12551 gdbpy_initialize_record): New export.
12552 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12553 (python_GdbMethods): Add gdbpy_start_recording,
12554 gdbpy_current_recording and gdbpy_stop_recording.
12555
12556 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12557
12558 * record-btrace.c (record_btrace_record_method): New function.
12559 (init_record_btrace_ops): Initialize to_record_method.
12560 * record-full.c (record_full_record_method): New function.
12561 (init_record_full_ops, init_record_full_core_ops): Add
12562 record_full_record_method.
12563 * record.h (enum record_method): New enum.
12564 * target-debug.h (target_debug_print_enum_record_method: New define.
12565 * target-delegates.c: Regenerate.
12566 * target.c (target_record_method): New function.
12567 * target.h: Include record.h.
12568 (struct target_ops) <to_record_method>: New field.
12569 (target_record_method): New export.
12570
12571 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12572
12573 * record.h (record_start, record_stop): New export.
12574 * record.c (record_start, record_stop): New function.
12575
12576 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12577
12578 * btrace.c (btrace_fetch): Copy function call segments pointer
12579 into a vector.
12580 (btrace_clear): Clear the vector.
12581 (btrace_find_insn_by_number): Use binary search to find the correct
12582 function call segment.
12583 * btrace.h (brace_fun_p): New typedef.
12584 (struct btrace_thread_info) <functions>: New field.
12585
12586 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12587
12588 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12589 * btrace.c (btrace_decode_error): ... here. New function.
12590 * btrace.h (btrace_decode_error): New export.
12591
12592 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12593
12594 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12595 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12596 btrace_find_insn_by_number): Remove special case for gaps.
12597 * btrace.h (btrace_insn_get_error): New export.
12598 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12599 * record-btrace.c (btrace_insn_history): Print number for gaps.
12600 (record_btrace_info, record_btrace_goto): Handle gaps.
12601
12602 2017-02-14 Tom Tromey <tom@tromey.com>
12603
12604 PR python/13598:
12605 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12606 event.
12607 * python/py-evts.c (gdbpy_initialize_py_events): Add
12608 before_prompt registry.
12609 * python/py-events.h (events_object) <before_prompt>: New field.
12610
12611 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12612
12613 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12614
12615 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
12616
12617 * symfile (_initialize_symfile): Add usage text to the load command's
12618 help text.
12619
12620 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12621
12622 * utils.c (defaulted_query): Don't query on secondary UIs.
12623
12624 2017-02-10 Tom Tromey <tom@tromey.com>
12625
12626 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12627
12628 2017-02-10 Tom Tromey <tom@tromey.com>
12629
12630 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12631 "cleanup" local.
12632 * python/py-type.c (typy_legacy_template_argument): Remove
12633 unnecessary "cleanup" local.
12634
12635 2017-02-10 Tom Tromey <tom@tromey.com>
12636
12637 * python/python.c (do_start_initialization): New function, from
12638 _initialize_python.
12639 (_initialize_python): Call do_start_initialization.
12640 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12641 goto.
12642
12643 2017-02-10 Tom Tromey <tom@tromey.com>
12644
12645 * python/py-prettyprint.c (pretty_print_one_value): Use
12646 gdbpy_ref.
12647
12648 2017-02-10 Tom Tromey <tom@tromey.com>
12649
12650 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12651 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12652 gdbpy_ref.
12653 * python/py-type.c (field_new): Use gdbpy_ref.
12654 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12655 gdbpy_ref.
12656 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12657 (py_free_pspace): Likewise.
12658 (pspace_to_pspace_object): Likewise.
12659 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12660 (py_free_objfile): Likewise.
12661 (objfile_to_objfile_object): Likewise.
12662 * python/py-inferior.c (delete_thread_object): Use
12663 gdbpy_ref.
12664 (infpy_read_memory): Likewise.
12665 (py_free_inferior): Likewise.
12666 * python/py-evtregistry.c (create_eventregistry_object): Use
12667 gdbpy_ref.
12668 * python/py-event.c (create_event_object): Use gdbpy_ref.
12669
12670 2017-02-10 Tom Tromey <tom@tromey.com>
12671
12672 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12673 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12674 used.
12675 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12676 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12677 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12678 python/py-framefilter.c, python/py-function.c,
12679 python/py-inferior.c, python/py-infevents.c,
12680 python/py-linetable.c, python/py-newobjfileevent.c,
12681 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12682 python/py-signalevent.c, python/py-stopevent.c,
12683 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12684 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12685 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12686 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12687
12688 2017-02-10 Tom Tromey <tom@tromey.com>
12689
12690 * ui-out.h (ui_out_emit_type): New class.
12691 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12692 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12693 and ui_out_emit_tuple.
12694 (enumerate_locals): Likewise.
12695 (py_mi_print_variables, py_print_locals, py_print_args): Use
12696 ui_out_emit_list.
12697 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12698 ui_out_emit_list.
12699 * common/gdb_optional.h: New file.
12700
12701 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12702
12703 * MAINTAINERS (Write After Approval): Update my e-mail address.
12704
12705 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12706
12707 PR gdb/21122
12708 * breakpoint.c (_initialize_breakpoint): Update the help description
12709 of the 'commands' command to indicate that it takes a list argument.
12710
12711 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12712
12713 * interps.c (current_interp_set_logging): Remove "return".
12714
12715 2017-02-09 Gary Benson <gbenson@redhat.com>
12716
12717 * symtab.c (add_symtab_completions): Prevent NULL pointer
12718 dereference.
12719
12720 2017-02-08 Pedro Alves <palves@redhat.com>
12721
12722 * interps.c (interp::interp): Remove reference to quiet_p.
12723 (interp_set): Make static. Remove dead "Switching to" output
12724 code.
12725 (interp_quiet_p, interp_set_quiet): Delete.
12726 (interpreter_exec_cmd): Don't set the interpreter quiet.
12727 * interps.h (interp_quiet_p): Make static.
12728 (class interp) <quiet_p>: Remove field
12729
12730 2017-02-08 Jerome Guitton <guitton@adacore.com>
12731
12732 * cli/cli-decode.c (find_command_name_length): Make it extern.
12733 * cli/cli-decode.h (find_command_name_length): Declare.
12734 * cli/cli-script.c (command_name_equals, line_first_arg):
12735 New functions.
12736 (process_next_line): Use cli-decode to parse command names.
12737 (build_command_line): Make args a constant pointer.
12738
12739 2017-02-08 Jerome Guitton <guitton@adacore.com>
12740
12741 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12742 Remove case-insensitive search.
12743
12744 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12745
12746 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12747 at the end of the line. Avoids an ARI warning.
12748
12749 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
12750
12751 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12752 rdseed instructions.
12753 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12754
12755 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12756
12757 PR tdep/20936
12758 Provide and use sparc32 and sparc64 target description XML files.
12759 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12760 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12761 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12762 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12763 * features/sparc/sparc32-solaris.xml: New file.
12764 * features/sparc/sparc64-solaris.xml: New file.
12765 * features/sparc/sparc32-solaris.c: Generated.
12766 * features/sparc/sparc64-solaris.c: Generated.
12767 * sparc-tdep.h: Account for differences in target descriptions.
12768 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12769 (sparc32_register_type): Use target provided registers.
12770 (validate_tdesc_registers): New function.
12771 (sparc32_gdbarch_init): Use tdesc_has_registers.
12772 Set pseudoregister functions.
12773 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12774 (sparc64_register_type): Use target provided registers.
12775 (sparc64_init_abi): Set pseudoregister functions.
12776
12777 2017-02-03 Tom Tromey <tom@tromey.com>
12778
12779 PR rust/21097:
12780 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12781 with a single member.
12782
12783 2017-02-03 Pedro Alves <palves@redhat.com>
12784
12785 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12786 (cli_interp_base::~cli_interp_base): New.
12787 (cli_interp): New struct.
12788 (as_cli_interp): Cast the interp itself to cli_interp.
12789 (cli_interpreter_pre_command_loop): Rename to ...
12790 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12791 parameter.
12792 (cli_interpreter_init): Rename to ...
12793 (cli_interp::init): ... this. Remove 'self' parameter. Use
12794 boolean. Make extern.
12795 (cli_interpreter_resume): Rename to ...
12796 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12797 extern.
12798 (cli_interpreter_suspend): Rename to ...
12799 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12800 extern.
12801 (cli_interpreter_exec): Rename to ...
12802 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12803 extern.
12804 (cli_interpreter_supports_command_editing): Rename to ...
12805 (cli_interp_base::supports_command_editing): ... this. Remove
12806 'interp' parameter. Make extern.
12807 (cli_ui_out): Rename to ...
12808 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12809 Make extern.
12810 (cli_set_logging): Rename to ...
12811 (cli_interp_base::set_logging): ... this. Remove 'interp'
12812 parameter. Make extern.
12813 (cli_interp_procs): Delete.
12814 (cli_interp_factory): Adjust to use "new".
12815 * cli/cli-interp.h: Include "interps.h".
12816 (struct cli_interp_base): New struct.
12817 * interps.c (struct interp): Delete. Fields moved to interps.h.
12818 (interp_new): Delete.
12819 (interp::interp, interp::~interp): New.
12820 (interp_set): Use bool, and return void. Assume the interpreter
12821 has suspend, init and resume methods, and that the all return
12822 void.
12823 (set_top_level_interpreter): interp_set returns void.
12824 (interp_ui_out): Adapt.
12825 (current_interp_set_logging): Adapt.
12826 (interp_data): Delete.
12827 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12828 (interp_exec): Adapt.
12829 (top_level_interpreter_data): Delete.
12830 * interps.h (interp_init_ftype, interp_resume_ftype)
12831 (interp_suspend_ftype, interp_exec_ftype)
12832 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12833 (class interp): New.
12834 (interp_new): Delete.
12835 (interp_set): Now returns void. Use bool.
12836 (interp_data, top_level_interpreter_data): Delete.
12837 * mi/mi-common.h: Include interps.h.
12838 (class mi_interp): Inherit from interp. Define a ctor. Declare
12839 init, resume, suspect, exec, interp_ui_out, set_logging and
12840 pre_command_loop methods.
12841 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12842 (mi_interpreter_init): Rename to ...
12843 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12844 bool, return void and make extern. Adjust.
12845 (mi_interpreter_resume): ... Rename to ...
12846 (mi_interp::resume): ... this. Remove the 'data' parameter,
12847 return void and make extern. Adjust.
12848 (mi_interpreter_suspend): ... Rename to ...
12849 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12850 return void and make extern. Adjust.
12851 (mi_interpreter_exec): ... Rename to ...
12852 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12853 extern. Adjust.
12854 (mi_interpreter_pre_command_loop): ... Rename to ...
12855 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12856 parameter and make extern.
12857 (mi_on_normal_stop_1): Adjust.
12858 (mi_ui_out): Rename to ...
12859 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12860 parameter and make extern. Adjust.
12861 (mi_set_logging): Rename to ...
12862 (mi_interp::set_logging): ... this. Remove the 'interp'
12863 parameter and make extern. Adjust.
12864 (mi_interp_procs): Delete.
12865 (mi_interp_factory): Adjust to use 'new'.
12866 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12867 (mi_print_exception, mi_execute_command, mi_load_progress):
12868 Adjust.
12869 * tui/tui-interp.c (tui_interp): New class.
12870 (as_tui_interp): Return a tui_interp pointer.
12871 (tui_on_normal_stop, tui_on_signal_received)
12872 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
12873 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
12874 to use interp::interp_ui_out.
12875 (tui_init): Rename to ...
12876 (tui_interp::init): ... this. Remove the 'self' parameter, use
12877 bool, return void and make extern. Adjust.
12878 (tui_resume): Rename to ...
12879 (tui_interp::resume): ... this. Remove the 'data' parameter,
12880 return void and make extern. Adjust.
12881 (tui_suspend): Rename to ...
12882 (tui_interp::suspend): ... this. Remove the 'data' parameter,
12883 return void and make extern. Adjust.
12884 (tui_ui_out): Rename to ...
12885 (tui_interp::interp_ui_out): ... this. Remove the 'self'
12886 parameter, and make extern. Adjust.
12887 (tui_exec): Rename to ...
12888 (tui_interp::exec): ... this. Remove the 'data' parameter and
12889 make extern.
12890 (tui_interp_procs): Delete.
12891 (tui_interp_factory): Use "new".
12892
12893 2017-02-02 Tom Tromey <tom@tromey.com>
12894
12895 * rust-exp.y (ends_raw_string, space_then_number)
12896 (rust_identifier_start_p): Return bool.
12897 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
12898 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
12899 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
12900 (rust_chartype_p): Return bool.
12901 (val_print_struct, rust_print_struct_def, rust_print_type):
12902 Update.
12903 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
12904 Return bool.
12905
12906 2017-02-02 Tom Tromey <tom@tromey.com>
12907
12908 * rust-lang.c: Reindent.
12909
12910 2017-02-02 Tom Tromey <tom@tromey.com>
12911
12912 * rust-lang.h (rust_crate_for_block): Update.
12913 * rust-lang.c (rust_crate_for_block): Return std::string.
12914 (rust_get_disr_info): Use std:;string, not
12915 gdb::unique_xmalloc_ptr.
12916 * rust-exp.y (crate_name): Update.
12917
12918 2017-02-02 Pedro Alves <palves@redhat.com>
12919
12920 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
12921 field out of gdb_disassembler_test and make it static.
12922
12923 2017-02-02 Pedro Alves <palves@redhat.com>
12924
12925 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
12926 mi1_interp and mi_interp fields.
12927
12928 2017-02-02 Pedro Alves <palves@redhat.com>
12929
12930 * cli/cli-interp.c (struct saved_output_files, saved_output):
12931 Moved from cli/cli-logging.c.
12932 (cli_set_logging): New function.
12933 (cli_interp_procs): Install cli_set_logging.
12934 * cli/cli-interp.h (make_logging_output, cli_set_logging):
12935 Declare.
12936 * cli/cli-logging.c (struct saved_output_files, saved_output):
12937 Moved to cli/cli-interp.c.
12938 (pop_output_files): Don't save outputs here.
12939 (make_logging_output): New function.
12940 (handle_redirections): Don't build tee nor save previous outputs
12941 here.
12942 * interps.c (current_interp_set_logging): Change prototype.
12943 Assume there's always a set_logging_proc method installed.
12944 * interps.h (interp_set_logging_ftype): Change prototype.
12945 (current_interp_set_logging): Change prototype and adjust comment.
12946 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
12947 use make_logging_output.
12948 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
12949 2017-02-02 Pedro Alves <palves@redhat.com>
12950
12951 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
12952 from ...
12953 (set_logging_overwrite): ... here.
12954 (logging_no_redirect_file): Delete.
12955 (set_logging_redirect): Don't handle redirection on the fly.
12956 Instead warn that "logging off" / "logging on" is necessary.
12957 (pop_output_files): Delete references to logging_no_redirect_file.
12958 (show_logging_command): Always speak in terms of what will happen
12959 once logging is reenabled.
12960
12961 2017-02-02 Pedro Alves <palves@redhat.com>
12962
12963 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
12964
12965 2017-02-02 Pedro Alves <palves@redhat.com>
12966
12967 * disasm.c (gdb_pretty_print_insn): Rename to ...
12968 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
12969 Remove gdbarch parameter. Adapt to clear the object's buffers
12970 instead of allocating new buffers, and to print using the object's
12971 gdb_disassembler instead of calling gdb_print_insn.
12972 (dump_insns): Use gdb_pretty_print_disassembler.
12973 * disasm.h (gdb_pretty_print_insn): Delete declaration.
12974 (gdb_pretty_print_disassembler): New class.
12975 * record-btrace.c (btrace_insn_history): Use
12976 gdb_pretty_print_disassembler.
12977
12978 2017-02-02 Pedro Alves <palves@redhat.com>
12979
12980 * ada-lang.c (type_as_string): Use string_file.
12981 * ada-valprint.c (ada_print_floating): Use string_file.
12982 * ada-varobj.c (ada_varobj_scalar_image)
12983 (ada_varobj_get_value_image): Use string_file.
12984 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
12985 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
12986 * breakpoint.c (update_inserted_breakpoint_locations)
12987 (insert_breakpoint_locations, reattach_breakpoints)
12988 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
12989 (print_it_watchpoint): Use string_file.
12990 (save_breakpoints): Use stdio_file.
12991 * c-exp.y (oper): Use string_file.
12992 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
12993 tee_file.
12994 (pop_output_files): Use delete.
12995 (handle_redirections): Use stdio_file and tee_file.
12996 * cli/cli-setshow.c (do_show_command): Use string_file.
12997 * compile/compile-c-support.c (c_compute_program): Use
12998 string_file.
12999 * compile/compile-c-symbols.c (generate_vla_size): Take a
13000 'string_file &' instead of a 'ui_file *'.
13001 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13002 of a 'ui_file *'. Use string_file.
13003 (generate_c_for_variable_locations): Take a 'string_file &'
13004 instead of a 'ui_file *'.
13005 * compile/compile-internal.h (generate_c_for_for_one_variable):
13006 Take a 'string_file &' instead of a 'ui_file *'.
13007 * compile/compile-loc2c.c (push, pushf, unary, binary)
13008 (print_label, pushf_register_address, pushf_register)
13009 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13010 'ui_file *'. Adjust.
13011 * compile/compile.c (compile_to_object): Use string_file.
13012 * compile/compile.h (compile_dwarf_expr_to_c)
13013 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13014 'ui_file *'.
13015 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13016 (replace_typedefs_qualified_name): Use string_file and
13017 obstack_copy0.
13018 * disasm.c (gdb_pretty_print_insn): Use string_file.
13019 (gdb_disassembly): Adjust reference the null_stream global.
13020 (do_ui_file_delete): Delete.
13021 (gdb_insn_length): Use null_stream.
13022 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13023 * dwarf2loc.c (dwarf2_compile_property_to_c)
13024 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13025 'string_file &' instead of a 'ui_file *'.
13026 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13027 * dwarf2read.c (do_ui_file_peek_last): Delete.
13028 (dwarf2_compute_name): Use string_file.
13029 * event-top.c (gdb_setup_readline): Use stdio_file.
13030 * gdbarch.sh (verify_gdbarch): Use string_file.
13031 * gdbtypes.c (safe_parse_type): Use null_stream.
13032 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13033 string_file.
13034 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13035 'string_file *' instead of a 'ui_file *'.
13036 (gdbscm_arch_disassemble): Use string_file.
13037 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13038 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13039 inherits from ui_file.
13040 (ioscm_file_port_delete, ioscm_file_port_rewind)
13041 (ioscm_file_port_put): Delete.
13042 (ioscm_file_port_write): Rename to ...
13043 (ioscm_file_port::write): ... this. Remove file_port_magic
13044 checks.
13045 (ioscm_file_port_new): Delete.
13046 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13047 ui_file_up.
13048 * guile/scm-type.c (tyscm_type_name): Use string_file.
13049 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13050 Use string_file.
13051 * infcmd.c (print_return_value_1): Use string_file.
13052 * infrun.c (print_target_wait_results): Use string_file.
13053 * language.c (add_language): Use string_file.
13054 * location.c (explicit_to_string_internal): Use string_file.
13055 * main.c (captured_main_1): Use null_file.
13056 * maint.c (maintenance_print_architecture): Use stdio_file.
13057 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13058 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13059 event_channel>: Change type to mi_console_file pointer.
13060 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13061 (mi_console_file_delete): Delete.
13062 (struct mi_console_file): Delete.
13063 (mi_console_file_magic): Delete.
13064 (mi_console_file_new): Delete.
13065 (mi_console_file::mi_console_file): New.
13066 (mi_console_file_delete): Delete.
13067 (mi_console_file_fputs): Delete.
13068 (mi_console_file::write): New.
13069 (mi_console_raw_packet): Delete.
13070 (mi_console_file::flush): New.
13071 (mi_console_file_flush): Delete.
13072 (mi_console_set_raw): Rename to ...
13073 (mi_console_file::set_raw): ... this.
13074 * mi/mi-console.h (class mi_console_file): New class.
13075 (mi_console_file_new, mi_console_set_raw): Delete.
13076 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13077 (mi_set_logging): Use delete and tee_file. Adjust.
13078 * mi/mi-main.c (output_register): Use string_file.
13079 (mi_cmd_data_evaluate_expression): Use string_file.
13080 (mi_cmd_data_read_memory): Use string_file.
13081 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13082 * mi/mi-out.c (mi_ui_out::main_stream): New.
13083 (mi_ui_out::rewind): Use main_stream and
13084 string_file.
13085 (mi_ui_out::put): Use main_stream and string_file.
13086 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13087 Allocate a 'string_file' instead.
13088 (mi_out_new): Don't allocate a mem_fileopen stream here.
13089 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13090 (mi_ui_out::main_stream): Declare method.
13091 * printcmd.c (eval_command): Use string_file.
13092 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13093 * python/py-arch.c (archpy_disassemble): Use string_file.
13094 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13095 * python/py-frame.c (frapy_str): Use string_file.
13096 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13097 Use string_file.
13098 * python/py-type.c (typy_str): Use string_file.
13099 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13100 * python/py-value.c (valpy_str): Use string_file.
13101 * record-btrace.c (btrace_insn_history): Use string_file.
13102 * regcache.c (regcache_print): Use stdio_file.
13103 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13104 * remote.c (escape_buffer): Use string_file.
13105 * rust-lang.c (rust_get_disr_info): Use string_file.
13106 * serial.c (serial_open_ops_1): Use stdio_file.
13107 (do_serial_close): Use delete.
13108 * stack.c (print_frame_arg): Use string_file.
13109 (print_frame_args): Remove local mem_fileopen stream, not used.
13110 (print_frame): Use string_file.
13111 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13112 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13113 Take a 'string_file *' instead of a 'ui_file *'.
13114 * top.c (new_ui): Use stdio_file and stderr_file.
13115 (free_ui): Use delete.
13116 (execute_command_to_string): Use string_file.
13117 (quit_confirm): Use string_file.
13118 * tracepoint.c (collection_list::append_exp): Use string_file.
13119 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13120 * tui/tui-file.c: Don't include "ui-file.h".
13121 (enum streamtype, struct tui_stream): Delete.
13122 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13123 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13124 (tui_file::tui_file): New method.
13125 (tui_file_fputs): Delete.
13126 (tui_file_get_strbuf): Delete.
13127 (tui_file::puts): New method.
13128 (tui_file_adjust_strbuf): Delete.
13129 (tui_file_flush): Delete.
13130 (tui_file::flush): New method.
13131 * tui/tui-file.h: Tweak intro comment.
13132 Include ui-file.h.
13133 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13134 (tui_file_adjust_strbuf): Delete declarations.
13135 (class tui_file): New class.
13136 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13137 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13138 (tui_register_format): Use string_stream.
13139 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13140 (tui_get_function_from_frame): Use string_file.
13141 * typeprint.c (type_to_string): Use string_file.
13142 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13143 (null_stream): New global.
13144 (ui_file_delete): Delete.
13145 (ui_file::ui_file): New.
13146 (null_file_isatty): Delete.
13147 (ui_file::~ui_file): New.
13148 (null_file_rewind): Delete.
13149 (ui_file::printf): New.
13150 (null_file_put): Delete.
13151 (null_file_flush): Delete.
13152 (ui_file::putstr): New.
13153 (null_file_write): Delete.
13154 (ui_file::putstrn): New.
13155 (null_file_read): Delete.
13156 (ui_file::putc): New.
13157 (null_file_fputs): Delete.
13158 (null_file_write_async_safe): Delete.
13159 (ui_file::vprintf): New.
13160 (null_file_delete): Delete.
13161 (null_file::write): New.
13162 (null_file_fseek): Delete.
13163 (null_file::puts): New.
13164 (ui_file_data): Delete.
13165 (null_file::write_async_safe): New.
13166 (gdb_flush, ui_file_isatty): Adjust.
13167 (ui_file_put, ui_file_rewind): Delete.
13168 (ui_file_write): Adjust.
13169 (ui_file_write_for_put): Delete.
13170 (ui_file_write_async_safe, ui_file_read): Adjust.
13171 (ui_file_fseek): Delete.
13172 (fputs_unfiltered): Adjust.
13173 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13174 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13175 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13176 (set_ui_file_data): Delete.
13177 (string_file::~string_file, string_file::write)
13178 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13179 (do_ui_file_as_string, ui_file_as_string): Delete.
13180 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13181 (struct mem_file): Delete.
13182 (mem_file_new): Delete.
13183 (stdio_file::stdio_file): New.
13184 (mem_file_delete): Delete.
13185 (stdio_file::stdio_file): New.
13186 (mem_fileopen): Delete.
13187 (stdio_file::~stdio_file): New.
13188 (mem_file_rewind): Delete.
13189 (stdio_file::set_stream): New.
13190 (mem_file_put): Delete.
13191 (stdio_file::open): New.
13192 (mem_file_write): Delete.
13193 (stdio_file_magic, struct stdio_file): Delete.
13194 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13195 (stdio_file::flush): New.
13196 (stdio_file_read): Rename to ...
13197 (stdio_file::read): ... this. Adjust.
13198 (stdio_file_write): Rename to ...
13199 (stdio_file::write): ... this. Adjust.
13200 (stdio_file_write_async_safe): Rename to ...
13201 (stdio_file::write_async_safe) ... this. Adjust.
13202 (stdio_file_fputs): Rename to ...
13203 (stdio_file::puts) ... this. Adjust.
13204 (stdio_file_isatty): Delete.
13205 (stdio_file_fseek): Delete.
13206 (stdio_file::isatty): New.
13207 (stderr_file_write): Rename to ...
13208 (stderr_file::write) ... this. Adjust.
13209 (stderr_file_fputs): Rename to ...
13210 (stderr_file::puts) ... this. Adjust.
13211 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13212 (stderr_file::stderr_file): New.
13213 (tee_file_magic): Delete.
13214 (struct tee_file): Delete.
13215 (tee_file::tee_file): New.
13216 (tee_file_new): Delete.
13217 (tee_file::~tee_file): New.
13218 (tee_file_delete): Delete.
13219 (tee_file_flush): Rename to ...
13220 (tee_file::flush): ... this. Adjust.
13221 (tee_file_write): Rename to ...
13222 (tee_file::write): ... this. Adjust.
13223 (tee_file::write_async_safe): New.
13224 (tee_file_fputs): Rename to ...
13225 (tee_file::puts): ... this. Adjust.
13226 (tee_file_isatty): Rename to ...
13227 (tee_file::isatty): ... this. Adjust.
13228 * ui-file.h (struct obstack, struct ui_file): Don't
13229 forward-declare.
13230 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13231 (ui_file_write_ftype)
13232 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13233 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13234 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13235 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13236 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13237 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13238 (set_ui_file_fseek): Delete.
13239 (ui_file_data, ui_file_delete, ui_file_rewind)
13240 (struct ui_file): New.
13241 (ui_file_up): New.
13242 (class null_file): New.
13243 (null_stream): Declare.
13244 (ui_file_write_for_put, ui_file_put): Delete.
13245 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13246 Delete.
13247 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13248 (gdb_fopen, tee_file_new): Delete.
13249 (struct string_file): New.
13250 (struct stdio_file): New.
13251 (stdio_file_up): New.
13252 (struct stderr_file): New.
13253 (class tee_file): New.
13254 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13255 of a 'ui_file *'. Adjust.
13256 * ui-out.h (class ui_out) <field_stream>: Likewise.
13257 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13258 (null_stream): Delete.
13259 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13260 Adjust.
13261 * utils.h (struct ui_file): Delete forward declaration..
13262 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13263 (error_stream): Take a 'string_file &' instead of a
13264 'ui_file *'.
13265 * varobj.c (varobj_value_get_print_value): Use string_file.
13266 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13267 * gdbarch.c: Regenerate.
13268
13269 2017-02-02 Pedro Alves <palves@redhat.com>
13270
13271 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13272 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13273 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13274 Adjust to call gdb_print_insn instead of
13275 gdb_disassembler::print_insn.
13276 (dump_insns, do_mixed_source_and_assembly_deprecated)
13277 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13278 'gdbarch' parameter. Remove gdb_disassembler parameter.
13279 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13280 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13281 declaration.
13282 (gdb_pretty_print_insn): Re-add declaration.
13283 * record-btrace.c (btrace_insn_history): Don't allocate a
13284 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13285
13286 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13287
13288 * disasm.h (gdb_disassembly): Remove file_string parameter.
13289 * disasm.c (gdb_disassembly): Likewise.
13290 * cli/cli-cmds.c (print_disassembly): Adapt.
13291 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13292 * stack.c (do_gdb_disassembly): Likewise.
13293
13294 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13295
13296 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13297 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13298 targets. And if the implicit value is longer than needed, extract
13299 the first bytes instead of the "least significant" ones.
13300
13301 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13302
13303 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13304 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13305 (btrace_fetch): Assert can_access_registers_ptid.
13306 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13307 validate_registers_access.
13308
13309 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13310
13311 * gdbthread.h (can_access_registers_ptid): New.
13312 * thread.c (can_access_registers_ptid): New.
13313
13314 2017-02-01 Pedro Alves <palves@redhat.com>
13315
13316 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13317
13318 2017-01-31 Pedro Alves <palves@redhat.com>
13319
13320 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13321 Fix typos.
13322
13323 2017-01-31 Pedro Alves <palves@redhat.com>
13324
13325 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13326 not used.
13327
13328 2017-01-31 Pedro Alves <palves@redhat.com>
13329
13330 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13331
13332 2017-01-31 Pedro Alves <palves@redhat.com>
13333
13334 * common/scoped_restore.h
13335 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13336 change the value's parameter type to T2.
13337 (make_scoped_restore): Likewise.
13338
13339 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13340 Richard Henderson <rth@redhat.com>
13341
13342 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13343 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13344 GS_BASE for older kernels.
13345 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13346 GS_BASE for older kernels.
13347 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13348 and GS_BASE to the offset table.
13349 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13350 system register group.
13351 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13352 for older kernels.
13353 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13354 amd64 ABI.
13355 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13356 AMD64_GSBASE_REGNUM.
13357 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13358 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13359 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13360 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13361 i386/64bit-segments.xml in those rules.
13362 * features/i386/64bit-segments.xml: New file.
13363 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13364 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13365 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13366 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13367 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13368 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13369 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13370 * features/i386/amd64-avx-linux.c: Regenerated.
13371 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13372 * features/i386/amd64-avx-mpx.c: Regenerated.
13373 * features/i386/amd64-avx512-linux.c: Regenerated.
13374 * features/i386/amd64-linux.c: Regenerated.
13375 * features/i386/amd64-mpx-linux.c: Regenerated.
13376 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13377 * features/i386/i386-avx-mpx.c: Regenerated.
13378 * features/i386/x32-avx-linux.c: Regenerated.
13379 * features/i386/x32-avx512-linux.c: Regenerated.
13380 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13381 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13382 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13383 * regformats/i386/amd64-linux.dat: Regenerated.
13384 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13385 * regformats/i386/x32-avx-linux.dat: Regenerated.
13386 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13387 * regformats/i386/x32-linux.dat: Regenerated.
13388
13389 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13390
13391 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13392 Set to AMD64_NUM_REGS.
13393
13394 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13395
13396 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13397 that checks validity of a register number.
13398
13399 2017-01-27 Kees Cook <keescook@google.com>
13400
13401 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13402 fetch_fpregs if target has fpa registers.
13403 (arm_linux_store_inferior_registers): Call store_fpregs if target
13404 has fpa registers.
13405
13406 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13407
13408 * cris-tdep.c (cris_gdbarch_init): Remove check for
13409 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13410
13411 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13412
13413 * corelow.c (get_core_register_section): Check for regset
13414 existence before checking for REGSET_VARIABLE_SIZE.
13415
13416 2017-01-26 Yao Qi <yao.qi@linaro.org>
13417 Pedro Alves <palves@redhat.com>
13418
13419 PR gdb/20939
13420 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13421 call memory_error, save memaddr instead.
13422 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13423 negative, cal memory_error.
13424 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13425
13426 2017-01-26 Yao Qi <yao.qi@linaro.org>
13427
13428 * disasm-selftests.c (memory_error_test): New function.
13429 (_initialize_disasm_selftests): Register memory_error_test.
13430
13431 2017-01-26 Yao Qi <yao.qi@linaro.org>
13432
13433 * Makefile.in (SFILES): Add disasm-selftests.c and
13434 selftest-arch.c.
13435 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13436 * disasm-selftests.c: New file.
13437 * selftest-arch.c: New file.
13438 * selftest-arch.h: New file.
13439
13440 2017-01-26 Yao Qi <yao.qi@linaro.org>
13441
13442 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13443 to bfd_arch_mep. Don't return 0 if section is not
13444 found. Call print_insn_mep.
13445
13446 2017-01-26 Pedro Alves <palves@redhat.com>
13447 Yao Qi <yao.qi@linaro.org>
13448
13449 * arm-tdep.c: Include "disasm.h".
13450 (gdb_print_insn_arm): Update code to get gdbarch.
13451 * disasm.c (dis_asm_read_memory): Change it to
13452 gdb_disassembler::dis_asm_read_memory.
13453 (dis_asm_memory_error): Likewise.
13454 (dis_asm_print_address): Likewise.
13455 (gdb_pretty_print_insn): Change it to
13456 gdb_disassembler::pretty_print_insn.
13457 (dump_insns): Add one argument gdb_disassemlber. All
13458 callers updated.
13459 (do_mixed_source_and_assembly_deprecated): Likewise.
13460 (do_mixed_source_and_assembly): Likewise.
13461 (do_assembly_only): Likewise.
13462 (gdb_disassembler::gdb_disassembler): New.
13463 (gdb_disassembler::print_insn): New.
13464 * disasm.h (class gdb_disassembler): New.
13465 (gdb_pretty_print_insn): Remove declaration.
13466 (gdb_disassemble_info): Likewise.
13467 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13468 (gdbscm_disasm_read_memory_worker): Update.
13469 (gdbscm_disasm_read_memory): Update.
13470 (gdbscm_disasm_memory_error): Remove.
13471 (gdbscm_disasm_print_address): Remove.
13472 (gdbscm_disassembler::gdbscm_disassembler): New.
13473 (gdbscm_print_insn_from_port): Update.
13474 * mips-tdep.c: Include disasm.h.
13475 (gdb_print_insn_mips): Update code to get gdbarch.
13476 * record-btrace.c (btrace_insn_history): Update.
13477 * spu-tdep.c: Include disasm.h.
13478 (struct spu_dis_asm_data): Remove.
13479 (struct spu_dis_asm_info): New.
13480 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13481 SPU id.
13482 (gdb_print_insn_spu): Cast disassemble_info to
13483 spu_dis_asm_info.
13484
13485 2017-01-26 Yao Qi <yao.qi@linaro.org>
13486
13487 * disasm.c (do_ui_file_delete): Delete.
13488 (gdb_insn_length): Move code creating stream to ...
13489 * utils.c (null_stream): ... here. New function.
13490 * utils.h (null_stream): Declare.
13491
13492 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13493
13494 * python/py-inferior.c (find_thread_object): Return directly
13495 from the loop. Remove "found" variable.
13496
13497 2017-01-21 Joel Brobecker <brobecker@adacore.com>
13498
13499 GDB 7.12.1 released.
13500
13501 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13502
13503 * python/py-function.c (fnpy_call): Reorder declarations to have
13504 the gdbpy_enter object declared first.
13505 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13506
13507 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13508
13509 PR python/21068
13510 * python/python-internal.h (PyMem_RawMalloc): Define for
13511 Python < 3.4.
13512 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13513 PyMem_RawMalloc instead of PyMem_Malloc.
13514
13515 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13516 Luis Machado <lgustavo@codesourcery.com>
13517
13518 * NEWS (New commands): Mention flash-erase.
13519 (New MI commands): Mention target-flash-erase.
13520 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13521 command.
13522 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13523 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13524 * target.c (flash_erase_command): New function.
13525 (initialize_targets): Add new flash-erase command.
13526 * target.h (flash_erase_command): New declaration.
13527
13528 2017-01-20 Joel Brobecker <brobecker@adacore.com>
13529
13530 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13531 HAVE_SYS_PROCFS_H is defined.
13532
13533 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13534
13535 * remote.c (struct cached_reg): Change data into a pointer.
13536 * (stop_reply_dtr): Free data pointers before deleting vector.
13537 (process_stop_reply): Likewise.
13538 (remote_parse_stop_reply): Allocate space for data
13539
13540 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13541
13542 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13543 MAX_REGISTER_SIZE.
13544 (amd64_pseudo_register_read_value): Likewise.
13545 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13546 (store_register_using_P): Likewise.
13547 * regcache.c (regcache_xfer_part): Likewise.
13548
13549 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13550
13551 Split real and pseudo registers.
13552 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13553 (sparc32_pseudo_regnum): New enum.
13554 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13555 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13556 (SPARC32_CP0_REGISTERS): New macro.
13557 (sparc32_pseudo_register_name): New function.
13558 (sparc32_register_name): Use sparc32_pseudo_register_name.
13559 (sparc32_pseudo_register_type): New function.
13560 (sparc32_register_type): Use sparc32_pseudo_register_type.
13561 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13562 pseudo register numbers.
13563 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13564 (SPARC64_CP0_REGISTERS): New macro.
13565 (sparc64_pseudo_register_name): New function.
13566 (sparc64_register_name): Use sparc64_pseudo_register_name.
13567 (sparc64_pseudo_register_type): New function.
13568 (sparc64_register_type): Use sparc64_pseudo_register_type.
13569 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13570 pseudo register numbers.
13571 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13572 sparc64_store_arguments): Handle pseudo register numbers.
13573
13574 2017-01-13 Yao Qi <yao.qi@linaro.org>
13575
13576 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13577 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13578 output.
13579 (getpkt_or_notif_sane_1): Likewise.
13580
13581 2017-01-13 Yao Qi <yao.qi@linaro.org>
13582
13583 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13584 of CC. Pass "-x c++-header" instead of "-x c".
13585
13586 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13587
13588 * remote.c (remote_can_async_p): Update comment.
13589
13590 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13591
13592 * linux-nat.c (linux_nat_can_async_p): Update comment.
13593
13594 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13595
13596 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13597
13598 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13599
13600 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13601
13602 2017-01-10 Tom Tromey <tom@tromey.com>
13603
13604 * python/py-type.c (typy_legacy_template_argument): Update.
13605 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13606 ~demangle_parse_info): Declare new members.
13607 (cp_demangled_name_to_comp): Return unique_ptr.
13608 (cp_demangled_name_parse_free)
13609 (make_cleanup_cp_demangled_name_parse_free)
13610 (cp_new_demangle_parse_info): Remove.
13611 * cp-support.c (do_demangled_name_parse_free_cleanup)
13612 (make_cleanup_cp_demangled_name_parse_free): Remove.
13613 (inspect_type, cp_canonicalize_string_full)
13614 (cp_canonicalize_string): Update.
13615 (mangled_name_to_comp): Change return type.
13616 (cp_class_name_from_physname, method_name_from_physname)
13617 (cp_func_name, cp_remove_params): Update.
13618 * cp-name-parser.y (demangle_parse_info): New constructor, from
13619 cp_new_demangle_parse_info.
13620 (~demangle_parse_info): New destructor, from
13621 cp_demangled_name_parse_free.
13622 (cp_merge_demangle_parse_infos): Update.
13623 (cp_demangled_name_to_comp): Change return type.
13624
13625 2017-01-10 Tom Tromey <tom@tromey.com>
13626
13627 * top.c (prevent_dont_repeat): Change return type.
13628 * python/python.c (execute_gdb_command): Use std::string.
13629 Update.
13630 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13631 * command.h (prevent_dont_repeat): Change return type.
13632 * breakpoint.c (bpstat_do_actions_1): Update.
13633
13634 2017-01-10 Tom Tromey <tom@tromey.com>
13635
13636 * value.h (scoped_value_mark::~scoped_value_mark): Call
13637 free_to_mark.
13638 (scoped_value_mark::free_to_mark): New method.
13639 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13640 scoped_value_mark.
13641
13642 2017-01-10 Tom Tromey <tom@tromey.com>
13643
13644 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13645 (valpy_reference_value, valpy_const_value, valpy_get_address)
13646 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13647 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13648 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13649 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13650 scoped_value_mark.
13651 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13652 * value.h (scoped_value_mark): New class.
13653
13654 2017-01-10 Tom Tromey <tom@tromey.com>
13655
13656 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13657 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13658 * psymtab.c (discard_psymtabs_upto): Remove.
13659 (make_cleanup_discard_psymtabs): Remove.
13660 (struct psymtab_state): Remove.
13661
13662 2017-01-10 Tom Tromey <tom@tromey.com>
13663
13664 * record-full.c (record_full_save_cleanups): Remove.
13665 (record_full_save): Use gdb::unlinker.
13666 * gcore.c (do_bfd_delete_cleanup): Remove.
13667 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13668 cleanups.
13669 * dwarf2read.c (unlink_if_set): Remove.
13670 (write_psymtabs_to_index): Use gdb::unlinker.
13671 * common/gdb_unlinker.h: New file.
13672
13673 2017-01-10 Tom Tromey <tom@tromey.com>
13674
13675 * windows-tdep.c (windows_xfer_shared_library): Update.
13676 * windows-nat.c (windows_make_so): Update.
13677 * utils.h (make_cleanup_bfd_unref): Remove.
13678 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13679 * symfile.h (symfile_bfd_open)
13680 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13681 * symfile.c (read_symbols, symbol_file_add)
13682 (separate_debug_file_exists): Update.
13683 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13684 (generic_load, reread_symbols): Update.
13685 * symfile-mem.c (symbol_file_add_from_memory): Update.
13686 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13687 (spu_symbol_file_add_from_memory): Update.
13688 * solist.h (struct target_so_ops) <bfd_open>: Return
13689 gdb_bfd_ref_ptr.
13690 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13691 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13692 gdb_bfd_ref_ptr.
13693 (solib_map_sections, reload_shared_libraries_1): Update.
13694 * solib-svr4.c (enable_break): Update.
13695 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13696 * solib-frv.c (enable_break2): Update.
13697 * solib-dsbt.c (enable_break): Update.
13698 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13699 gdb_bfd_ref_ptr.
13700 (darwin_solib_get_all_image_info_addr_at_init): Update.
13701 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13702 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13703 * record-full.c (record_full_save): Update.
13704 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13705 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13706 * minidebug.c (find_separate_debug_file_in_section): Return
13707 gdb_bfd_ref_ptr.
13708 * machoread.c (macho_add_oso_symfile): Change abfd to
13709 gdb_bfd_ref_ptr.
13710 (macho_symfile_read_all_oso): Update.
13711 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13712 (macho_symfile_read): Update.
13713 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13714 (jit_bfd_try_read_symtab): Update.
13715 * gdb_bfd.h (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 (gdb_bfd_ref_policy): New struct.
13720 (gdb_bfd_ref_ptr): New typedef.
13721 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13722 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13723 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13724 gdb_bfd_ref_ptr.
13725 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13726 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13727 (gcore_command): Update.
13728 * exec.c (exec_file_attach): Update.
13729 * elfread.c (elf_symfile_read): Update.
13730 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13731 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13732 (open_and_init_dwo_file): Update.
13733 (open_dwp_file): Return gdb_bfd_ref_ptr.
13734 (open_and_init_dwp_file): Update.
13735 * corelow.c (core_open): Update.
13736 * compile/compile-object-load.c (compile_object_load): Update.
13737 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13738 * coffread.c (coff_symfile_read): Update.
13739 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13740 gdb_bfd_ref_ptr. Rename.
13741 (dump_bfd_file, restore_command): Update.
13742 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13743 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13744 (find_separate_debug_file_by_buildid): Update.
13745
13746 2017-01-10 Tom Tromey <tom@tromey.com>
13747
13748 * common/gdb_ref_ptr.h: New file.
13749 * python/py-ref.h (struct gdbpy_ref_policy): New.
13750 (gdbpy_ref): Now a typedef.
13751
13752 2017-01-10 Tom Tromey <tom@tromey.com>
13753
13754 * utils.h (make_cleanup_htab_delete): Don't declare.
13755 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13756 Remove.
13757 * linespec.c (decode_compound_collector): Add constructor,
13758 destructor.
13759 (lookup_prefix_sym): Remove cleanup.
13760 (symtab_collector): Add constructor, destructor.
13761 (collect_symtabs_from_filename): Remove cleanup.
13762 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13763 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13764 Use htab_up.
13765 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13766 * dwarf2read.c (dw2_expand_symtabs_matching)
13767 (dw2_map_symbol_filenames, dwarf_decode_macros)
13768 (write_psymtabs_to_index): Use htab_up.
13769 * dwarf2loc.c (func_verify_no_selftailcall)
13770 (call_site_find_chain_1, func_verify_no_selftailcall)
13771 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13772 std::vector, gdb::unique_xmalloc_ptr.
13773 (call_sitep): Remove typedef.
13774 (dwarf2_locexpr_baton_eval): Remove unused variable.
13775
13776 2017-01-10 Tom Tromey <tom@tromey.com>
13777
13778 * python/python-internal.h (make_cleanup_py_decref)
13779 (make_cleanup_py_xdecref): Don't declare.
13780 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13781 (py_xdecref, make_cleanup_py_xdecref): Remove.
13782
13783 2017-01-10 Tom Tromey <tom@tromey.com>
13784
13785 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13786 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13787
13788 2017-01-10 Tom Tromey <tom@tromey.com>
13789
13790 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13791
13792 2017-01-10 Tom Tromey <tom@tromey.com>
13793
13794 * python/py-utils.c (unicode_to_encoded_string)
13795 (python_string_to_target_string)
13796 (python_string_to_target_python_string)
13797 (python_string_to_host_string, gdbpy_obj_to_string)
13798 (get_addr_from_python): Use gdbpy_ref.
13799
13800 2017-01-10 Tom Tromey <tom@tromey.com>
13801
13802 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13803 gdbpy_ref.
13804
13805 2017-01-10 Tom Tromey <tom@tromey.com>
13806
13807 * python/python.c (eval_python_command, gdbpy_decode_line)
13808 (gdbpy_run_events, gdbpy_start_type_printers)
13809 (gdbpy_apply_type_printers): Use gdbpy_ref.
13810
13811 2017-01-10 Tom Tromey <tom@tromey.com>
13812
13813 * python/py-param.c (get_doc_string, compute_enum_values): Use
13814 gdbpy_ref.
13815
13816 2017-01-10 Tom Tromey <tom@tromey.com>
13817
13818 * python/py-inferior.c (find_thread_object, build_inferior_list):
13819 Use gdbpy_ref.
13820
13821 2017-01-10 Tom Tromey <tom@tromey.com>
13822
13823 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13824
13825 2017-01-10 Tom Tromey <tom@tromey.com>
13826
13827 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13828 gdbpy_ref.
13829
13830 2017-01-10 Tom Tromey <tom@tromey.com>
13831
13832 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13833 extra incref.
13834 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13835 Use gdbpy_ref.
13836
13837 2017-01-10 Tom Tromey <tom@tromey.com>
13838
13839 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13840 gdbpy_ref.
13841
13842 2017-01-10 Tom Tromey <tom@tromey.com>
13843
13844 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13845 decref results of PyArg_ParseTupleAndKeywords.
13846
13847 2017-01-10 Tom Tromey <tom@tromey.com>
13848
13849 * python/python.c (python_run_simple_file): Use
13850 unique_xmalloc_ptr, gdbpy_ref.
13851
13852 2017-01-10 Tom Tromey <tom@tromey.com>
13853
13854 * python/py-prettyprint.c (print_stack_unless_memory_error)
13855 (print_string_repr, print_children): Use gdbpy_ref.
13856 (dummy_python_frame): New class.
13857 (dummy_python_frame::dummy_python_frame): Rename from
13858 push_dummy_python_frame.
13859 (py_restore_tstate): Remove.
13860
13861 2017-01-10 Tom Tromey <tom@tromey.com>
13862
13863 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13864
13865 2017-01-10 Tom Tromey <tom@tromey.com>
13866
13867 * python/python.c (ensure_python_env, restore_python_env):
13868 Remove.
13869 * python/python-internal.h (ensure_python_env): Don't declare.
13870 * varobj.h (varobj_ensure_python_env): Don't declare.
13871 * varobj.c (varobj_ensure_python_env): Remove.
13872
13873 2017-01-10 Tom Tromey <tom@tromey.com>
13874
13875 * varobj.c (varobj_value_get_print_value): Use
13876 gdbpy_enter_varobj.
13877
13878 2017-01-10 Tom Tromey <tom@tromey.com>
13879
13880 * python/py-prettyprint.c (print_string_repr, print_children):
13881 Update.
13882 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
13883 of "encoding".
13884 * varobj.c (varobj_value_get_print_value): Update.
13885 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
13886
13887 2017-01-10 Tom Tromey <tom@tromey.com>
13888
13889 * varobj.c (varobj_get_display_hint)
13890 (dynamic_varobj_has_child_method, install_new_value_visualizer)
13891 (varobj_set_visualizer, free_variable): Use
13892 gdbpy_enter_varobj.
13893
13894 2017-01-10 Tom Tromey <tom@tromey.com>
13895
13896 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
13897 (do_finish_initialization): New function. Use gdbpy_ref.
13898 (gdbpy_finish_initialization): Use gdbpy_enter. Call
13899 do_finish_initialization.
13900
13901 2017-01-10 Tom Tromey <tom@tromey.com>
13902
13903 * python/py-param.c (get_set_value, get_show_value): Use
13904 gdbpy_enter, gdbpy_ref.
13905
13906 2017-01-10 Tom Tromey <tom@tromey.com>
13907
13908 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
13909
13910 2017-01-10 Tom Tromey <tom@tromey.com>
13911
13912 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
13913
13914 2017-01-10 Tom Tromey <tom@tromey.com>
13915
13916 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
13917 Use gdbpy_enter_varobj.
13918
13919 2017-01-10 Tom Tromey <tom@tromey.com>
13920
13921 * varobj.c (gdbpy_enter_varobj): New constructor.
13922 * python/python-internal.h (gdbpy_enter_varobj): New class.
13923 * python/py-varobj.c (py_varobj_get_iterator): Use
13924 gdbpy_enter_varobj.
13925
13926 2017-01-10 Tom Tromey <tom@tromey.com>
13927
13928 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
13929 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13930 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
13931 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
13932 unique_xmalloc_ptr.
13933 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
13934
13935 2017-01-10 Tom Tromey <tom@tromey.com>
13936
13937 * python/py-xmethods.c (invoke_match_method): Use
13938 gdbpy_ref.
13939
13940 2017-01-10 Tom Tromey <tom@tromey.com>
13941
13942 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
13943 gdbpy_enter, gdbpy_ref.
13944
13945 2017-01-10 Tom Tromey <tom@tromey.com>
13946
13947 * python/python.c (python_interactive_command): Use gdbpy_enter.
13948
13949 2017-01-10 Tom Tromey <tom@tromey.com>
13950
13951 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
13952 gdbpy_ref.
13953
13954 2017-01-10 Tom Tromey <tom@tromey.com>
13955
13956 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
13957 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13958
13959 2017-01-10 Tom Tromey <tom@tromey.com>
13960
13961 * utils.h (htab_deleter): New struct.
13962 (htab_up): New typedef.
13963 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
13964 gdbpy_enter, gdbpy_ref, htab_up.
13965
13966 2017-01-10 Tom Tromey <tom@tromey.com>
13967
13968 * python/py-unwind.c (pending_frame_invalidate): Remove.
13969 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
13970
13971 2017-01-10 Tom Tromey <tom@tromey.com>
13972
13973 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
13974 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
13975
13976 2017-01-10 Tom Tromey <tom@tromey.com>
13977
13978 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
13979
13980 2017-01-10 Tom Tromey <tom@tromey.com>
13981
13982 * python/python.c (gdbpy_eval_from_control_command)
13983 (gdbpy_source_script, gdbpy_run_events)
13984 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
13985 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
13986 gdbpy_enter.
13987
13988 2017-01-10 Tom Tromey <tom@tromey.com>
13989
13990 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
13991
13992 2017-01-10 Tom Tromey <tom@tromey.com>
13993
13994 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
13995
13996 2017-01-10 Tom Tromey <tom@tromey.com>
13997
13998 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
13999 (python_on_inferior_call_pre, python_on_inferior_call_post)
14000 (python_on_memory_change, python_on_register_change)
14001 (python_inferior_exit, python_new_objfile, add_thread_object)
14002 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14003
14004 2017-01-10 Tom Tromey <tom@tromey.com>
14005
14006 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14007 (bpfinishpy_handle_exit): Use gdbpy_enter.
14008
14009 2017-01-10 Tom Tromey <tom@tromey.com>
14010
14011 * python/py-cmd.c (cmdpy_destroyer)
14012 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14013 gdbpy_enter.
14014
14015 2017-01-10 Tom Tromey <tom@tromey.com>
14016
14017 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14018 gdbpy_enter.
14019 (gdbpy_breakpoint_has_cond): Likewise.
14020
14021 2017-01-10 Tom Tromey <tom@tromey.com>
14022
14023 * python/python.c (gdbpy_enter): New constructor.
14024 (~gdbpy_enter): New destructor.
14025 (restore_python_env, ensure_python_env): Rewrite.
14026 * python/python-internal.h (gdbpy_enter): New class.
14027
14028 2017-01-10 Tom Tromey <tom@tromey.com>
14029
14030 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14031
14032 2017-01-10 Tom Tromey <tom@tromey.com>
14033
14034 * python/py-value.c (value_has_field, get_field_flag)
14035 (get_field_type, valpy_getitem, convert_value_from_python): Use
14036 gdbpy_ref.
14037
14038 2017-01-10 Tom Tromey <tom@tromey.com>
14039
14040 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14041 gdbpy_ref.
14042
14043 2017-01-10 Tom Tromey <tom@tromey.com>
14044
14045 * python/py-prettyprint.c (search_pp_list)
14046 (find_pretty_printer_from_objfiles)
14047 (find_pretty_printer_from_progspace)
14048 (find_pretty_printer_from_gdb, find_pretty_printer)
14049 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14050 gdbpy_ref.
14051
14052 2017-01-10 Tom Tromey <tom@tromey.com>
14053
14054 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14055
14056 2017-01-10 Tom Tromey <tom@tromey.com>
14057
14058 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14059 (ltpy_get_all_source_lines): Use gdbpy_ref.
14060
14061 2017-01-10 Tom Tromey <tom@tromey.com>
14062
14063 * python/py-framefilter.c (extract_sym, extract_value)
14064 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14065 gdbpy_ref.
14066
14067 2017-01-10 Tom Tromey <tom@tromey.com>
14068
14069 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14070
14071 2017-01-10 Tom Tromey <tom@tromey.com>
14072
14073 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14074
14075 2017-01-10 Tom Tromey <tom@tromey.com>
14076
14077 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14078 gdbpy_ref.
14079
14080 2017-01-10 Tom Tromey <tom@tromey.com>
14081
14082 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14083
14084 2017-01-10 Tom Tromey <tom@tromey.com>
14085
14086 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14087 (typy_range): Use gdbpy_ref.
14088
14089 2017-01-10 Tom Tromey <tom@tromey.com>
14090
14091 * python/py-threadevent.c (create_thread_event_object): Use
14092 gdbpy_ref.
14093 * python/py-stopevent.c (create_stop_event_object): Simplify.
14094 (emit_stop_event): Use gdbpy_ref.
14095 * python/py-signalevent.c (create_signal_event_object): Use
14096 gdbpy_ref.
14097 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14098 (emit_new_objfile_event, create_clear_objfiles_event_object)
14099 (emit_clear_objfiles_event): Use gdbpy_ref.
14100 * python/py-infevents.c (create_inferior_call_event_object)
14101 (create_register_changed_event_object)
14102 (create_memory_changed_event_object, emit_inferior_call_event)
14103 (emit_memory_changed_event, emit_register_changed_event): Use
14104 gdbpy_ref.
14105 * python/py-exitedevent.c (create_exited_event_object)
14106 (emit_exited_event): Use gdbpy_ref.
14107 * python/py-event.h (evpy_emit_event): Remove
14108 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14109 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14110 * python/py-continueevent.c (emit_continue_event): Use
14111 gdbpy_ref.
14112 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14113 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14114 gdbpy_ref.
14115 * python/py-bpevent.c (create_breakpoint_event_object): Use
14116 gdbpy_ref.
14117
14118 2017-01-10 Tom Tromey <tom@tromey.com>
14119
14120 * python/py-ref.h: New file.
14121
14122 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14123
14124 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14125 void.
14126 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14127 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14128 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14129 * ui-out.c (ui_out::redirect): Likewise.
14130 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14131 * cli/cli-logging.c (set_logging_redirect): Update call site of
14132 ui_out::redirect.
14133 (handle_redirections): Likewise.
14134 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14135 * top.c (execute_command_to_string): Likewise.
14136 * utils.c (do_ui_out_redirect_pop): Likewise.
14137
14138 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14139
14140 * stack.c (_initialize_stack): Update "frame" command help message.
14141
14142 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14143
14144 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14145
14146 2017-01-06 Yao Qi <yao.qi@linaro.org>
14147
14148 * x86-linux-nat.h: Include gdb_proc_service.h.
14149
14150 2017-01-06 Yao Qi <yao.qi@linaro.org>
14151
14152 * ser-base.h: Include serial.h.
14153
14154 2017-01-06 Yao Qi <yao.qi@linaro.org>
14155
14156 * ppc-linux-tdep.h: Include ppc-tdep.h.
14157
14158 2017-01-06 Yao Qi <yao.qi@linaro.org>
14159
14160 * nat/amd64-linux-siginfo.h: Include signal.h.
14161
14162 2017-01-06 Yao Qi <yao.qi@linaro.org>
14163
14164 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14165
14166 2017-01-06 Yao Qi <yao.qi@linaro.org>
14167
14168 * mi/mi-parse.h: Include mi-cmds.h.
14169
14170 2017-01-06 Yao Qi <yao.qi@linaro.org>
14171
14172 * inf-loop.c: Don't include "target.h".
14173 * inf-loop.h: Include it here.
14174
14175 2017-01-06 Yao Qi <yao.qi@linaro.org>
14176
14177 * dfp.h: Include "dboulest.h" and "expression.h".
14178
14179 2017-01-06 Yao Qi <yao.qi@linaro.org>
14180
14181 * ax-gdb.h: Include "ax.h".
14182
14183 2017-01-06 Yao Qi <yao.qi@linaro.org>
14184
14185 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14186 with nat/gdb_ptrace.h.
14187
14188 2017-01-05 Yao Qi <yao.qi@linaro.org>
14189
14190 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14191 new line.
14192 (mips64_fbsd_sigframe_init): Likewise.
14193
14194 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14195
14196 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14197 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14198
14199 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14200
14201 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14202 * NEWS: Mention new FreeBSD/mips native configuration.
14203 * config/mips/fbsd.mh: New file.
14204 * configure.host: Add mips*-*-freebsd*.
14205 * mips-fbsd-nat.c: New file.
14206
14207 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14208
14209 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14210 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14211 * NEWS: Mention new FreeBSD/mips target.
14212 * configure.tgt: Add mips*-*-freebsd*.
14213 * mips-fbsd-tdep.c: New file.
14214 * mips-fbsd-tdep.h: New file.
14215
14216 2017-01-04 Yao Qi <yao.qi@linaro.org>
14217
14218 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14219 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14220
14221 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14222
14223 Update copyright year range in all GDB files.
14224
14225 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14226
14227 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
14228
14229 For older changes see ChangeLog-2016.
14230 \f
14231 Local Variables:
14232 mode: change-log
14233 left-margin: 8
14234 fill-column: 74
14235 version-control: never
14236 coding: utf-8
14237 End:
This page took 0.335906 seconds and 4 git commands to generate.