1 2017-11-04 Tom Tromey <tom@tromey.com>
3 * symfile.c (find_separate_debug_file_by_debuglink): Use
6 2017-11-04 Tom Tromey <tom@tromey.com>
8 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10 (compute_stack_depth): Likewise.
11 (do_compile_dwarf_expr_to_c): Use std::vector.
13 2017-11-04 Tom Tromey <tom@tromey.com>
15 * compile/compile-object-load.c (link_callbacks_einfo): Use
18 2017-11-04 Tom Tromey <tom@tromey.com>
20 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
21 Use scoped_free_pendings.
22 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
24 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
25 (xcoff_initial_scan): Likewise.
26 * buildsym.c (reset_symtab_globals): Update comment.
27 (scoped_free_pendings): Rename from really_free_pendings.
28 (prepare_for_building): Update comment.
29 (buildsym_init): Likewise.
30 * buildsym.h (class scoped_free_pendings): New class.
31 (really_free_pendings): Don't declare.
33 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
35 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
36 output when converting a zero value to a special byteorder format.
38 2017-11-02 Yao Qi <yao.qi@linaro.org>
40 * frame.c (do_frame_register_read): Remove aspace.
41 * jit.c (jit_frame_sniffer): Likwise.
42 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
43 * regcache.c (regcache::regcache): Pass nullptr.
44 (regcache_print): Caller updated.
45 * regcache.h (regcache::regcache): Remove one constructor
48 2017-11-02 Yao Qi <yao.qi@linaro.org>
50 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
52 2017-11-02 Yao Qi <yao.qi@linaro.org>
54 * breakpoint.c (insert_single_step_breakpoints): Update.
55 * frame.c (struct frame_info) <aspace>: Add const.
56 (frame_save_as_regcache): Add const.
57 (get_frame_address_space): Return const address_space *.
58 * frame.h (get_frame_address_space): Update declaration.
59 * infrun.c (struct step_over_info) <aspace>: Add const.
60 (set_step_over_info): Make aspace const.
61 (displaced_step_prepare_throw): Change variable const.
64 (adjust_pc_after_break): Likewise.
65 (save_waitstatus): Likewise.
66 (handle_signal_stop): Likewise.
67 (keep_going_pass_signal): Likewise.
68 * jit.c (jit_frame_sniffer): Add const.
69 * mips-tdep.c (mips_single_step_through_delay): Likewise.
70 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
71 * record-full.c (record_full_wait_1): Likewise.
72 * regcache.c (regcache::regcache): Change parameter to const.
73 * regcache.h (regcache::regcache): Likewise.
74 (regcache::aspace): Return const address_space *.
75 (regcache) <m_aspace>: Add const.
77 2017-11-02 Yao Qi <yao.qi@linaro.org>
79 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
80 * frame.c (create_sentinel_frame): Likewise.
81 * infrun.c (displaced_step_prepare_throw): Likewise.
83 (thread_still_needs_step_over_bp): Likewise.
85 (do_target_wait): Likewise.
86 (adjust_pc_after_break): Likewise.
87 (handle_syscall_event): Likewise.
88 (save_waitstatus): Likewise.
89 (handle_inferior_event_1): Likewise.
90 (handle_signal_stop): Likewise.
91 (keep_going_pass_signal): Likewise.
92 * linux-nat.c (status_callback): Likewise.
93 (save_stop_reason): Likewise.
94 (resume_stopped_resumed_lwps): Likewise.
95 * record-full.c (record_full_exec_insn): Likewise.
96 (record_full_wait_1): Likewise.
97 * regcache.c (get_regcache_aspace): Remove.
98 * regcache.h (get_regcache_aspace): Remove.
100 2017-11-02 Yao Qi <yao.qi@linaro.org>
102 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
103 (init_regcache_descr): Use gdbarch_num_regs.
104 (regcache::regcache): Likewise.
105 (regcache::get_register_status): Likewise.
106 (regcache::assert_raw_regnum): Likewise.
107 (regcache::cooked_read): Likewise.
108 (regcache::cooked_read_value): Likewise.
109 (regcache::cooked_write): Likewise.
110 (regcache::dump): Likewise.
111 (regcache::num_raw_registers): New method.
112 * regcache.h (class regcache) <num_raw_registers>: New.
114 2017-11-02 Yao Qi <yao.qi@linaro.org>
116 * regcache.c (regcache::assert_regnum): New method.
117 (regcache::invalidate): Call assert_regnum.
118 (regcache::raw_update): Likewise.
119 (regcache::raw_write): Likewise.
120 (regcache::raw_read_part): Likewise.
121 (regcache::raw_write_part): Likewise.
122 (regcache::raw_supply): Likewise.
123 (regcache::raw_supply_integer): Likewise.
124 (regcache::raw_supply_zeroed): Likewise.
125 (regcache::raw_collect): Likewise.
126 (regcache::raw_collect_integer): Likewise.
127 * regcache.h (regcache::assert_regnum): Declare.
129 2017-11-02 Yao Qi <yao.qi@linaro.org>
131 * regcache.c (regcache::dump): Remove code.
133 2017-11-02 Yao Qi <yao.qi@linaro.org>
135 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
137 <sizeof_cooked_register_status>: Remove.
138 (init_regcache_descr): Update.
139 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
140 (regcache::save): Likewise.
141 (regcache::dump): Likewise.
143 2017-11-01 James Bowman <james.bowman@ftdichip.com>
145 * ft32-tdep.c (ft32_fetch_instruction): New function.
146 (ft32_analyze_prologue): Use ft32_fetch_instruction().
148 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
150 * cli/cli-script.c (execute_control_command): Rename to ...
151 (execute_control_command_1): ... this.
152 (execute_control_command): New function.
154 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
156 * tracepoint.c (tfind_command): Remove const_cast.
158 2017-10-30 Mike Gulick <mgulick@mathworks.com>
160 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
162 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
164 * common/common-utils.h (in_inclusive_range): New function.
165 * arm-tdep.c (arm_record_extension_space): Use
167 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
168 * cris-tdep.c (cris_spec_reg_applicable): Use
171 2017-10-30 Pedro Alves <palves@redhat.com>
172 Simon Marchi <simon.marchi@ericsson.com>
174 * remote.c (remote_set_syscall_catchpoint): Build a std::string
175 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
177 2017-10-30 Pedro Alves <palves@redhat.com>
179 * common/common-utils.c (string_appendf, string_vappendf): New
181 * common/common-utils.h (string_appendf, string_vappendf): New
183 * unittests/common-utils-selftests.c (string_appendf_func)
184 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
185 (string_vappendf_tests): New functions.
186 (_initialize_common_utils_selftests): Register "string_appendf" and
187 "string_vappendf tests".
189 2017-10-30 Pedro Alves <palves@redhat.com>
191 * unittests/common-utils-selftests.c (format_func): New typedef.
192 (string_printf_tests, string_vprintf_tests): Tests factored out
194 (test_format_func): ... this new function.
195 (string_printf_tests, string_vprintf_tests): Reimplement on top of
198 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
200 * darwin-nat.c: Remove include of gdb.h.
202 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
204 * xtensa-xtregs.c: Fix formatting issues.
206 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
208 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
210 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
213 * python/py-infthread.c (thpy_get_inferior): Increment reference
214 of inferior before returning it.
216 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
218 * unittests/common-utils-selftests.c (format): Add
221 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
223 * xml-syscall.c (struct syscall_desc): Add constructor.
224 <name>: Change type to std::string.
225 (syscall_desc_up): New typedef.
226 (syscall_desc_p): Remove typeder.
227 (DEF_VEC_P(syscall_desc_p)): Remove.
228 (struct syscall_group_desc): Add constructor.
229 <name>: Change type to std::string.
230 <syscalls>: Change type to std::vector.
231 (syscall_group_desc_up): New typedef.
232 (syscall_group_desc_p): Remove typedef.
233 (DEF_VEC_P(syscall_group_desc_p)): Remove.
234 (struct syscalls_info) <syscalls>: Change type to std::vector of
237 <my_gdb_datadir>: Change type to std::string.
238 (syscalls_info_up): New typedef.
239 (allocate_syscalls_info): Remove.
240 (syscalls_info_free_syscalls_desc): Remove.
241 (syscalls_info_free_syscall_group_desc): Remove.
242 (free_syscalls_info): Remove.
243 (make_cleanup_free_syscalls_info): Remove.
244 (syscall_group_create_syscall_group_desc): Adjust.
245 (syscall_group_add_syscall): Adjust.
246 (syscall_create_syscall_desc): Adjust.
247 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
248 (init_syscalls_info): Adjust.
249 (syscall_group_get_group_by_name): Adjust.
250 (xml_get_syscall_number): Adjust.
251 (xml_get_syscall_name): Adjust.
252 (xml_list_of_syscalls): Adjust.
253 (xml_list_syscalls_by_group): Adjust.
254 (xml_list_of_groups): Adjust.
256 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
258 * probe.h: Don't include gdb_vecs.h.
259 (DEF_VEC_P (probe_p)): Remove.
260 (find_probes_in_objfile): Return an std::vector.
261 * probe.c (find_probes_in_objfile): Likewise.
262 * breakpoint.c (breakpoint_objfile_data)
263 <longjmp_probes>: Change type to std::vector.
264 <exception_probes>: Likewise.
265 (free_breakpoint_probes): Don't manually free vectors.
266 (create_longjmp_master_breakpoint): Adjust.
267 (create_exception_master_breakpoint): Adjust.
268 * solib-svr4.c (svr4_create_probe_breakpoints): Change
269 parameter type, adjust.
270 (svr4_create_solib_event_breakpoints): Adjust.
272 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
274 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
275 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
277 (free_breakpoint_probes): Rename to ...
278 (free_breakpoint_objfile_data): ... this, and call delete on
281 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
283 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
284 (loaded_script_ptr): Remove typedef.
285 (DEF_VEC_P (loaded_script_ptr)): Remove.
286 (struct collect_matching_scripts_data): Add constructor.
287 <scripts_p>: Change type to (pointer to) std::vector.
288 (collect_matching_scripts_data): Adjust.
289 (sort_scripts_by_name): Make suitable for std::sort.
290 (print_scripts): Don't sort vector, adjust to std::vector.
291 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
293 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
295 * symfile.c (filename_language): Make struct, not typedef. Add
297 <ext>: Change type to std::string.
298 (DEF_VEC_O (filename_language)): Remove.
299 (filename_language_table): Change type to std::vector.
300 (add_filename_language): Adjust.
301 (set_ext_lang_command): Adjust.
302 (info_ext_lang_command): Adjust.
303 (deduce_language_from_filename): Adjust.
304 (class scoped_restore_filename_language_table): Remove.
305 (test_filename_language): Use scoped_restore.
306 (test_set_ext_lang_command): Use scoped_restore, adjust to
309 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
311 * symfile.c: Include selftest.h.
312 (class scoped_restore_filename_language_table): New.
313 (test_filename_language): New test.
314 (test_set_ext_lang_command): New test.
315 (_initialize_symfile): Register tests.
317 2017-10-27 Keith Seitz <keiths@redhat.com>
319 * breakpoint.c (print_breakpoint_location): Use the symbol saved
320 in the bp_location, falling back to find_pc_sect_function when
322 (add_location_to_breakpoint): Save sal->symbol.
323 * breakpoint.h (struct bp_location) <symbol>: New field.
324 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
325 * symtab.h (struct symtab_and_line) <symbol>: New field.
327 2017-10-26 Patrick Frants <osscontribute@gmail.com>
330 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
333 2017-10-26 Pedro Alves <palves@redhat.com>
335 * remote.c (remote_async_terminal_ours_p): Delete.
336 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
337 Remove references to 'remote_async_terminal_ours_p'.
339 2017-10-26 Yao Qi <yao.qi@linaro.org>
341 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
343 2017-10-26 Yao Qi <yao.qi@linaro.org>
345 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
347 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
349 * breakpoint.c (bpstat_check_location): Remove cast.
350 (breakpoint_hit_catch_fork): Make aspce const.
351 (breakpoint_hit_catch_solib): Likewise.
352 (breakpoint_hit_catch_exec): Likewise.
353 (breakpoint_hit_ranged_breakpoint): Likewise.
354 (breakpoint_hit_watchpoint): Likewise.
355 (base_breakpoint_breakpoint_hit): Likewise.
356 (bkpt_breakpoint_hit): Likewise.
357 (dprintf_breakpoint_hit): Likewise.
358 (tracepoint_breakpoint_hit): Likewise.
359 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
361 2017-10-26 Yao Qi <yao.qi@linaro.org>
363 * breakpoint.c (breakpoint_location_address_match): Change
364 "struct address_space *" to "const address_space".
365 (breakpoint_location_address_range_overlap): Likewise.
366 (breakpoint_here_p): Likewise.
367 (breakpoint_in_range_p): Likewise.
368 (moribund_breakpoint_here_p): Likewise.
369 (bp_location_inserted_here_p): Likewise.
370 (software_breakpoint_inserted_here_p): Likewise.
371 (hardware_breakpoint_inserted_here_p): Likewise.
372 (hardware_watchpoint_inserted_in_range): Likewise.
373 (bpstat_check_location): Likewise.
374 (bpstat_stop_status): Likewise.
375 (breakpoint_address_match): Likewise.
376 (breakpoint_address_match_range): Likewise.
377 (breakpoint_location_address_match): Likewise.
378 (breakpoint_location_address_range_overlap): Likewise.
379 (insert_single_step_breakpoint): Likewise.
380 (breakpoint_has_location_inserted_here): Likewise.
381 (single_step_breakpoint_inserted_here_p): Likewise.
382 (pc_at_non_inline_function): Likewise.
383 * breakpoint.h (bpstat_stop_status): Update declaration.
384 (breakpoint_here_p): Likewise.
385 (breakpoint_in_range_p): Likewise.
386 (moribund_breakpoint_here_p): Likewise.
387 (breakpoint_inserted_here_p): Likewise.
388 (software_breakpoint_inserted_here_p): Likewise.
389 (hardware_breakpoint_inserted_here_p): Likewise.
390 (breakpoint_has_location_inserted_here): Likewise.
391 (single_step_breakpoint_inserted_here_p): Likewise.
392 (hardware_watchpoint_inserted_in_range): Likewise.
393 (breakpoint_address_match): Likewise.
394 (insert_single_step_breakpoint): Likewise.
395 (pc_at_non_inline_function): Likewise.
396 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
397 * record.c (record_check_stopped_by_breakpoint): Likewise.
398 * record.h (record_check_stopped_by_breakpoint): Likewise.
399 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
401 2017-10-25 Yao Qi <yao.qi@linaro.org>
403 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
404 regcache->arch () instead get_regcache_arch.
405 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
407 (aarch64_fbsd_store_inferior_registers): Likewise.
408 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
409 (store_gregs_to_thread): Likewise.
410 (fetch_fpregs_from_thread): Likewise.
411 (store_fpregs_to_thread): Likewise.
412 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
413 (aarch64_store_return_value): Likewise.
414 (aarch64_software_single_step): Likewise.
415 * aix-thread.c (aix_thread_wait): Likewise.
416 (supply_reg32): Likewise.
417 (supply_sprs64): Likewise.
418 (supply_sprs32): Likewise.
419 (fill_gprs64): Likewise.
420 (fill_gprs32): Likewise.
421 (fill_sprs64): Likewise.
422 (fill_sprs32): Likewise.
423 (store_regs_user_thread): Likewise.
424 (store_regs_kernel_thread): Likewise.
425 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
426 (alphabsd_store_inferior_registers): Likewise.
427 * alpha-tdep.c (alpha_extract_return_value): Likewise.
428 (alpha_store_return_value): Likewise.
429 (alpha_deal_with_atomic_sequence): Likewise.
430 (alpha_next_pc): Likewise.
431 (alpha_software_single_step): Likewise.
432 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
433 (amd64bsd_store_inferior_registers): Likewise.
434 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
436 (amd64_linux_store_inferior_registers): Likewise.
437 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
438 (amd64_collect_native_gregset): Likewise.
439 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
440 (amd64obsd_collect_uthread): Likewise.
441 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
442 (amd64_collect_fpregset): Likewise.
443 (amd64_supply_fxsave): Likewise.
444 (amd64_supply_xsave): Likewise.
445 (amd64_collect_fxsave): Likewise.
446 (amd64_collect_xsave): Likewise.
447 * arc-tdep.c (arc_write_pc): Likewise.
448 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
449 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
450 (arm_fbsd_store_inferior_registers): Likewise.
451 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
452 (store_vfp_regs): Likewise.
453 (arm_linux_fetch_inferior_registers): Likewise.
454 (arm_linux_store_inferior_registers): Likewise.
455 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
456 (arm_linux_sigreturn_next_pc): Likewise.
457 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
458 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
459 (fetch_register): Likewise.
460 (store_register): Likewise.
461 * arm-tdep.c (arm_is_thumb): Likewise.
462 (displaced_in_arm_mode): Likewise.
463 (bx_write_pc): Likewise.
464 (arm_get_next_pcs_addr_bits_remove): Likewise.
465 (arm_software_single_step): Likewise.
466 (arm_extract_return_value): Likewise.
467 (arm_store_return_value): Likewise.
468 (arm_write_pc): Likewise.
469 * bfin-tdep.c (bfin_extract_return_value): Likewise.
470 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
471 (bsd_uthread_store_registers): Likewise.
472 * core-regset.c (fetch_core_registers): Likewise.
473 * corelow.c (get_core_registers): Likewise.
474 * cris-tdep.c (cris_store_return_value): Likewise.
475 (cris_extract_return_value): Likewise.
476 (find_step_target): Likewise.
477 (find_step_target): Likewise.
478 (cris_software_single_step): Likewise.
479 * ctf.c (ctf_fetch_registers): Likewise.
480 * darwin-nat.c (cancel_breakpoint): Likewise.
481 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
482 * frv-tdep.c (frv_extract_return_value): Likewise.
483 * ft32-tdep.c (ft32_store_return_value): Likewise.
484 (ft32_extract_return_value): Likewise.
485 * go32-nat.c (fetch_register): Likewise.
486 (go32_fetch_registers): Likewise.
487 (go32_store_registers): Likewise.
488 (store_register): Likewise.
489 * h8300-tdep.c (h8300_extract_return_value): Likewise.
490 (h8300_store_return_value): Likewise.
491 * hppa-linux-nat.c (fetch_register): Likewise.
492 (store_register): Likewise.
493 (hppa_linux_fetch_inferior_registers): Likewise.
494 (hppa_linux_store_inferior_registers): Likewise.
495 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
496 (i386_darwin_store_inferior_registers): Likewise.
497 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
498 (gnu_store_registers): Likewise.
499 * i386-linux-nat.c (fetch_register): Likewise.
500 (store_register): Likewise.
501 (supply_gregset): Likewise.
502 (fill_gregset): Likewise.
503 (i386_linux_fetch_inferior_registers): Likewise.
504 (i386_linux_store_inferior_registers): Likewise.
505 (i386_linux_resume): Likewise.
506 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
508 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
509 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
510 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
511 (i386obsd_collect_uthread): Likewise.
512 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
513 (i386_supply_gregset): Likewise.
514 (i386_collect_gregset): Likewise.
515 (i386_supply_fpregset): Likewise.
516 (i386_collect_fpregset): Likewise.
517 (i386_mpx_bd_base): Likewise.
518 * i386-v4-nat.c (supply_fpregset): Likewise.
519 (fill_fpregset): Likewise.
520 * i387-tdep.c (i387_supply_fsave): Likewise.
521 (i387_collect_fsave): Likewise.
522 (i387_supply_fxsave): Likewise.
523 (i387_collect_fxsave): Likewise.
524 (i387_supply_xsave): Likewise.
525 (i387_collect_xsave): Likewise.
526 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
527 (ia64_linux_store_registers): Likewise.
528 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
529 (ia64_extract_return_value): Likewise.
530 (ia64_store_return_value): Likewise.
531 (find_func_descr): Likewise.
532 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
533 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
534 (inf_ptrace_store_registers): Likewise.
535 * infrun.c (use_displaced_stepping): Likewise.
536 (displaced_step_prepare_throw): Likewise.
539 (do_target_wait): Likewise.
540 (adjust_pc_after_break): Likewise.
541 (handle_inferior_event_1): Likewise.
542 (handle_signal_stop): Likewise.
543 (save_infcall_suspend_state): Likewise.
544 (restore_infcall_suspend_state): Likewise.
545 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
546 * jit.c (jit_frame_prev_register): Likewise.
547 * linux-nat.c (save_stop_reason): Likewise.
548 (linux_nat_wait_1): Likewise.
549 (resume_stopped_resumed_lwps): Likewise.
550 * linux-record.c (record_linux_sockaddr): Likewise.
551 (record_linux_msghdr): Likewise.
552 (record_linux_system_call): Likewise.
553 * linux-tdep.c (linux_collect_thread_registers): Likewise.
554 * lm32-tdep.c (lm32_extract_return_value): Likewise.
555 (lm32_store_return_value): Likewise.
556 * m32c-tdep.c (m32c_read_flg): Likewise.
557 (m32c_pseudo_register_read): Likewise.
558 (m32c_pseudo_register_write): Likewise.
559 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
560 (m32r_linux_collect_gregset): Likewise.
561 * m32r-tdep.c (m32r_store_return_value): Likewise.
562 (m32r_extract_return_value): Likewise.
563 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
564 (m68kbsd_collect_fpregset): Likewise.
565 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
566 * m68k-linux-nat.c (fetch_register): Likewise.
567 (old_fetch_inferior_registers): Likewise.
568 (old_store_inferior_registers): Likewise.
569 (store_regs): Likewise.
570 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
571 (m68k_svr4_store_return_value): Likewise.
572 * m88k-tdep.c (m88k_store_arguments): Likewise.
573 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
574 (mi_cmd_data_write_register_values): Likewise.
575 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
576 (mips_fbsd_store_inferior_registers): Likewise.
577 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
578 (mips_fbsd_supply_gregs): Likewise.
579 (mips_fbsd_collect_fpregs): Likewise.
580 (mips_fbsd_collect_gregs): Likewise.
581 (mips_fbsd_supply_fpregset): Likewise.
582 (mips_fbsd_collect_fpregset): Likewise.
583 (mips_fbsd_supply_gregset): Likewise.
584 (mips_fbsd_collect_gregset): Likewise.
585 * mips-linux-nat.c (supply_gregset): Likewise.
586 (fill_gregset): Likewise.
587 (supply_fpregset): Likewise.
588 (fill_fpregset): Likewise.
589 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
590 (mips_fill_gregset): Likewise.
591 (mips_supply_fpregset): Likewise.
592 (mips_fill_fpregset): Likewise.
593 (mips64_supply_gregset): Likewise.
594 (micromips_linux_sigframe_validate): Likewise.
595 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
596 (mipsnbsd_fetch_inferior_registers): Likewise.
597 (mipsnbsd_store_inferior_registers): Likewise.
598 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
599 (mipsnbsd_supply_gregset): Likewise.
600 (mipsnbsd_iterate_over_regset_sections): Likewise.
601 (mipsnbsd_supply_reg): Likewise.
602 (mipsnbsd_supply_fpreg): Likewise.
603 * mips-tdep.c (mips_in_frame_stub): Likewise.
604 (mips_dummy_id): Likewise.
605 (is_octeon_bbit_op): Likewise.
606 (micromips_bc1_pc): Likewise.
607 (extended_mips16_next_pc): Likewise.
608 (mips16_next_pc): Likewise.
609 (deal_with_atomic_sequence): Likewise.
610 * moxie-tdep.c (moxie_process_readu): Likewise.
611 * nios2-tdep.c (nios2_get_next_pc): Likewise.
612 * nto-procfs.c (procfs_store_registers): Likewise.
613 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
614 (ppcfbsd_store_inferior_registers): Likewise.
615 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
616 (fetch_altivec_register): Likewise.
617 (get_spe_registers): Likewise.
618 (fetch_spe_register): Likewise.
619 (fetch_altivec_registers): Likewise.
620 (fetch_all_gp_regs): Likewise.
621 (fetch_all_fp_regs): Likewise.
622 (store_vsx_register): Likewise.
623 (store_altivec_register): Likewise.
624 (set_spe_registers): Likewise.
625 (store_spe_register): Likewise.
626 (store_altivec_registers): Likewise.
627 (store_all_gp_regs): Likewise.
628 (store_all_fp_regs): Likewise.
629 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
630 (ppc_linux_collect_gregset): Likewise.
631 (ppc_canonicalize_syscall): Likewise.
632 (ppc_linux_record_signal): Likewise.
633 (ppu2spu_prev_register): Likewise.
634 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
635 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
636 (ppcobsd_store_registers): Likewise.
637 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
639 (ppc_ravenscar_generic_store_registers): Likewise.
640 * procfs.c (procfs_fetch_registers): Likewise.
641 (procfs_store_registers): Likewise.
642 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
643 (ravenscar_store_registers): Likewise.
644 (ravenscar_prepare_to_store): Likewise.
645 * record-btrace.c (record_btrace_fetch_registers): Likewise.
646 * record-full.c (record_full_wait_1): Likewise.
647 (record_full_registers_change): Likewise.
648 (record_full_store_registers): Likewise.
649 (record_full_core_fetch_registers): Likewise.
650 (record_full_save): Likewise.
651 (record_full_goto_insn): Likewise.
652 * regcache.c (regcache_register_size): Likewise.
653 (get_regcache_arch): Remove.
654 (regcache_read_pc): Likewise.
655 * regcache.h (get_regcache_arch): Remove.
656 * remote-sim.c (gdbsim_fetch_register): Likewise.
657 (gdbsim_store_register): Likewise.
658 * remote.c (fetch_register_using_p): Likewise.
659 (send_g_packet): Likewise.
660 (remote_prepare_to_store): Likewise.
661 (store_registers_using_G): Likewise.
662 * reverse.c (save_bookmark_command): Likewise.
663 (goto_bookmark_command): Likewise.
664 * rs6000-aix-tdep.c (branch_dest): Likewise.
665 * rs6000-nat.c (rs6000_ptrace64): Likewise.
666 (fetch_register): Likewise.
667 * rs6000-tdep.c (ppc_supply_reg): Likewise.
668 (ppc_collect_reg): Likewise.
669 (ppc_collect_gregset): Likewise.
670 (ppc_collect_fpregset): Likewise.
671 (ppc_collect_vsxregset): Likewise.
672 (ppc_collect_vrregset): Likewise.
673 (ppc_displaced_step_hw_singlestep): Likewise.
674 (rs6000_pseudo_register_read): Likewise.
675 (rs6000_pseudo_register_write): Likewise.
676 * s390-linux-nat.c (supply_gregset): Likewise.
677 (fill_gregset): Likewise.
678 (s390_linux_fetch_inferior_registers): Likewise.
679 * s390-linux-tdep.c (s390_write_pc): Likewise.
680 (s390_software_single_step): Likewise.
681 (s390_all_but_pc_registers_record): Likewise.
682 (s390_linux_syscall_record): Likewise.
683 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
684 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
685 (shnbsd_store_inferior_registers): Likewise.
686 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
687 (sh_extract_return_value_fpu): Likewise.
688 (sh_store_return_value_nofpu): Likewise.
689 (sh_corefile_supply_regset): Likewise.
690 (sh_corefile_collect_regset): Likewise.
691 * sh64-tdep.c (sh64_extract_return_value): Likewise.
692 (sh64_store_return_value): Likewise.
693 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
694 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
695 (sparc_store_inferior_registers): Likewise.
696 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
697 (sparc_ravenscar_prepare_to_store): Likewise.
698 * sparc-tdep.c (sparc32_store_arguments): Likewise.
699 (sparc_analyze_control_transfer): Likewise.
700 (sparc_step_trap): Likewise.
701 (sparc_software_single_step): Likewise.
702 (sparc32_gdbarch_init): Likewise.
703 (sparc_supply_rwindow): Likewise.
704 (sparc_collect_rwindow): Likewise.
705 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
706 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
707 (sparc64nbsd_collect_gregset): Likewise.
708 (sparc64nbsd_supply_fpregset): Likewise.
709 (sparc64nbsd_collect_fpregset): Likewise.
710 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
711 (sparc64_supply_gregset): Likewise.
712 (sparc64_collect_gregset): Likewise.
713 (sparc64_supply_fpregset): Likewise.
714 (sparc64_collect_fpregset): Likewise.
715 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
716 * spu-tdep.c (spu_unwind_sp): Likewise.
717 (spu2ppu_prev_register): Likewise.
718 (spu_memory_remove_breakpoint): Likewise.
719 * stack.c (return_command): Likewise.
720 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
721 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
722 * tracefile.c (trace_save_ctf): Likewise.
723 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
724 (do_windows_store_inferior_registers): Likewise.
725 (windows_resume): Likewise.
726 * xtensa-linux-nat.c (fill_gregset): Likewise.
727 (supply_gregset_reg): Likewise.
728 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
729 (xtensa_register_read_masked): Likewise.
730 (xtensa_supply_gregset): Likewise.
731 (xtensa_extract_return_value): Likewise.
732 (xtensa_store_return_value): Likewise.
734 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
736 * doublest.c (floatformat_from_string): New function.
737 * doublest.h (floatformat_from_string): Add prototype.
739 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
740 (OP_FLOAT): ... this.
741 * expression.h: Do not include "doublest.h".
742 (union exp_element): Replace doubleconst and decfloatconst by
743 new element floatconst.
744 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
745 (ada_evaluate_subexp): Likewise.
746 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
747 OP_DOUBLE and OP_DECFLOAT.
748 * expprint.c (print_subexp_standard): Likewise.
749 (dump_subexp_body_standard): Likewise.
750 * breakpoint.c (watchpoint_exp_is_const): Likewise.
752 * parse.c: Include "dfp.h".
753 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
754 (write_exp_elt_floatcst): New function.
755 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
757 (operator_check_standard): Likewise.
758 (parse_float): Do not accept suffix. Take type as input. Return bool.
759 Return target format buffer instead of host DOUBLEST.
760 Use floatformat_from_string and decimal_from_string to parse
761 either binary or decimal floating-point types.
762 (parse_c_float): Remove.
763 * parser-defs.h: Do not include "doublest.h".
764 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
765 (write_exp_elt_floatcst): Add prototype.
766 (parse_float): Update prototype.
767 (parse_c_float): Remove.
769 * c-exp.y: Do not include "dfp.h".
770 (typed_val_float): Use byte buffer instead of DOUBLEST.
771 (typed_val_decfloat): Remove.
773 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
774 (parse_number): Update to new parse_float interface.
775 Parse suffixes and determine type before calling parse_float.
776 Handle decimal and binary FP types the same way.
778 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
779 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
780 (parse_number): Update to new parse_float interface.
781 Parse suffixes and determine type before calling parse_float.
783 * f-exp.y: Replace dval by typed_val_float.
784 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
785 (parse_number): Use parse_float instead of atof.
787 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
788 (parse_go_float): Remove.
789 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
790 (parse_number): Call parse_float instead of parse_go_float.
791 Parse suffixes and determine type before calling parse_float.
793 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
794 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
795 (parse_number): Update to new parse_float interface.
796 Parse suffixes and determine type before calling parse_float.
798 * m2-exp.y: Replace dval by byte buffer val.
799 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
800 (parse_number): Call parse_float instead of atof.
802 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
803 (lex_number): Call parse_float instead of strtod.
804 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
805 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
806 Use write_exp_elt_floatcst.
807 (unit_testing): Remove static variable.
808 (rust_type): Do not check unit_testing.
809 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
811 * ada-exp.y (type_float, type_double): Remove.
812 (typed_val_float): Use byte buffer instead of DOUBLEST.
813 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
814 * ada-lex.l (processReal): Use parse_float instead of sscanf.
816 2017-10-25 Alan Hayward <alan.hayward@arm.com>
818 * aarch64-tdep.h (enum aarch64_regnum): Remove.
819 * arch/aarch64.h: New file.
821 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
823 * dfp.h (decimal_from_string): Use const reference for argument.
824 * dfp.c (decimal_from_string): Likewise.
826 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
828 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
829 * sh64-tdep.c (sh64_do_fp_register): Likewise.
830 * mips-tdep.c (mips_print_fp_register): Likewise.
832 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
834 * common/format.h (enum argclass): Replace decfloat_arg by
835 dec32float_arg, dec64float_arg, and dec128float_arg.
836 * common/format.c (parse_format_string): Update to return
837 new decimal float argument classes.
839 * printcmd.c (printf_decfloat): Rename to ...
840 (printf_floating): ... this. Add argclass argument, and use it
841 instead of parsing the format string again. Add support for
842 binary floating-point values, using floatformat_to_string.
843 Convert value to the target format if it doesn't already match.
844 (ui_printf): Call printf_floating instead of printf_decfloat,
845 also for double_arg / long_double_arg. Pass argclass.
847 * dfp.c (decimal_to_string): Add format string argument.
848 * dfp.h (decimal_to_string): Likewise.
850 * doublest.c (floatformat_to_string): Add format string argument.
851 * doublest.h (floatformat_to_string): Likewise.
853 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
855 * doublest.c (floatformat_precision): New routine.
856 (floatformat_to_string): Likewise.
857 * doublest.c (floatformat_to_string): Add prototype.
859 * printcmd.c (print_scalar_formatted): Only call print_floating
860 on floating-point types.
861 * valprint.c: Do not include "floatformat.h".
862 (generic_val_print_decfloat): Remove.
863 (generic_val_print): Call generic_val_print_float for both
864 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
865 (print_floating): Use floatformat_to_string. Handle decimal float.
866 (print_decimal_floating): Remove, merge into floatformat_to_string.
867 * value.h (print_decimal_floating): Remove.
869 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
871 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
873 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
875 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
877 * memattr.h: Don't include vec.h.
878 (struct mem_attrib): Initialize fields.
879 <unknown>: New static method.
880 (struct mem_region): Add constructors, operator<, initialize
882 * memattr.c: Include algorithm.
883 (default_mem_attrib, unknown_mem_attrib): Remove.
884 (user_mem_region_list): New global.
885 (target_mem_region_list, mem_region_list): Change type to
886 std::vector<mem_region>.
887 (mem_use_target): Now a function.
888 (target_mem_regions_valid): Change type to bool.
889 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
890 (require_user_regions): Adjust.
891 (require_target_regions): Adjust.
892 (create_mem_region): Adjust.
893 (lookup_mem_region): Adjust.
894 (invalidate_target_mem_regions): Adjust.
895 (mem_clear): Rename to...
896 (user_mem_clear): ... this, and adjust.
897 (mem_command): Adjust.
898 (info_mem_command): Adjust.
899 (mem_enable, enable_mem_command, mem_disable,
900 disable_mem_command): Adjust.
901 (mem_delete): Adjust.
902 (delete_mem_command): Adjust.
903 * memory-map.h (parse_memory_map): Return an std::vector.
904 * memory-map.c (parse_memory_map): Likewise.
905 (struct memory_map_parsing_data): Add constructor.
906 <memory_map>: Point to std::vector.
907 (memory_map_start_memory): Adjust.
908 (memory_map_end_memory): Adjust.
909 (memory_map_end_property): Adjust.
910 (clear_result): Remove.
911 * remote.c (remote_memory_map): Return an std::vector.
912 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
914 (target_debug_print_mem_region_vector): New.
915 * target-delegates.c: Regenerate.
916 * target.h (mem_region_vector): New typedef.
917 (to_memory_map): Return mem_region_vector.
918 (target_memory_map): Return an std::vector.
919 * target.c (target_memory_map): Return an std::vector.
920 (flash_erase_command): Adjust.
922 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
924 * memory-map.c (struct memory_map_parsing_data) <property_name>:
925 Change type to std::string.
926 (memory_map_start_property): Adjust.
927 (memory_map_end_property): Adjust.
929 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
931 * infrun.h: Include common/byte-vector.h.
932 (struct displaced_step_closure): New struct.
933 (struct buf_displaced_step_closure): New struct.
934 * infrun.c (displaced_step_closure::~displaced_step_closure):
935 Provide default implementation.
936 (displaced_step_clear): Deallocate step closure with delete.
937 * aarch64-tdep.c (displaced_step_closure): Rename to ...
938 (aarch64_displaced_step_closure): ... this, extend
939 displaced_step_closure.
940 (aarch64_displaced_step_data) <dsc>: Change type to
941 aarch64_displaced_step_closure.
942 (aarch64_displaced_step_copy_insn): Adjust to type change, use
944 (aarch64_displaced_step_fixup): Add cast for displaced step
946 * amd64-tdep.c (displaced_step_closure): Rename to ...
947 (amd64_displaced_step_closure): ... this, extend
948 displaced_step_closure.
949 <insn_buf>: Change type to std::vector<gdb_byte>.
951 (fixup_riprel): Change type of DSC parameter, adjust to type
953 (fixup_displaced_copy): Change type of DSC parameter.
954 (amd64_displaced_step_copy_insn): Instantiate
955 amd64_displaced_step_closure.
956 (amd64_displaced_step_fixup): Add cast for closure type, adjust
957 to type change of insn_buf.
958 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
960 (arm_linux_copy_svc): Likewise.
961 (cleanup_kernel_helper_return): Likewise.
962 (arm_catch_kernel_helper_return): Likewise.
963 (arm_linux_displaced_step_copy_insn): Instantiate
964 arm_displaced_step_closure.
965 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
966 (displaced_read_reg): Change type of parameter DSC.
967 (branch_write_pc): Likewise.
968 (load_write_pc): Likewise.
969 (alu_write_pc): Likewise.
970 (displaced_write_reg): Likewise.
971 (arm_copy_unmodified): Likewise.
972 (thumb_copy_unmodified_32bit): Likewise.
973 (thumb_copy_unmodified_16bit): Likewise.
974 (cleanup_preload): Likewise.
975 (install_preload): Likewise.
976 (arm_copy_preload): Likewise.
977 (thumb2_copy_preload): Likewise.
978 (install_preload_reg): Likewise.
979 (arm_copy_preload_reg): Likewise.
980 (cleanup_copro_load_store): Likewise.
981 (install_copro_load_store): Likewise.
982 (arm_copy_copro_load_store) Likewise.
983 (thumb2_copy_copro_load_store): Likewise.
984 (cleanup_branch): Likewise.
985 (install_b_bl_blx): Likewise.
986 (arm_copy_b_bl_blx): Likewise.
987 (thumb2_copy_b_bl_blx): Likewise.
988 (thumb_copy_b): Likewise.
989 (install_bx_blx_reg): Likewise.
990 (arm_copy_bx_blx_reg): Likewise.
991 (thumb_copy_bx_blx_reg): Likewise.
992 (cleanup_alu_imm): Likewise.
993 (arm_copy_alu_imm): Likewise.
994 (thumb2_copy_alu_imm): Likewise.
995 (cleanup_alu_reg): Likewise.
996 (install_alu_reg): Likewise.
997 (arm_copy_alu_reg): Likewise.
998 (thumb_copy_alu_reg): Likewise.
999 (cleanup_alu_shifted_reg): Likewise.
1000 (install_alu_shifted_reg): Likewise.
1001 (arm_copy_alu_shifted_reg): Likewise.
1002 (cleanup_load): Likewise.
1003 (cleanup_store): Likewise.
1004 (arm_copy_extra_ld_st): Likewise.
1005 (install_load_store): Likewise.
1006 (thumb2_copy_load_literal): Likewise.
1007 (thumb2_copy_load_reg_imm): Likewise.
1008 (arm_copy_ldr_str_ldrb_strb): Likewise.
1009 (cleanup_block_load_all): Likewise.
1010 (cleanup_block_store_pc): Likewise.
1011 (cleanup_block_load_pc): Likewise.
1012 (arm_copy_block_xfer): Likewise.
1013 (thumb2_copy_block_xfer): Likewise.
1014 (cleanup_svc): Likewise.
1015 (install_svc): Likewise.
1016 (arm_copy_svc): Likewise.
1017 (thumb_copy_svc): Likewise.
1018 (arm_copy_undef): Likewise.
1019 (thumb_32bit_copy_undef): Likewise.
1020 (arm_copy_unpred): Likewise.
1021 (arm_decode_misc_memhint_neon): Likewise.
1022 (arm_decode_unconditional): Likewise.
1023 (arm_decode_miscellaneous): Likewise.
1024 (arm_decode_dp_misc): Likewise.
1025 (arm_decode_ld_st_word_ubyte): Likewise.
1026 (arm_decode_media): Likewise.
1027 (arm_decode_b_bl_ldmstm): Likewise.
1028 (arm_decode_ext_reg_ld_st): Likewise.
1029 (thumb2_decode_dp_shift_reg): Likewise.
1030 (thumb2_decode_ext_reg_ld_st): Likewise.
1031 (arm_decode_svc_copro): Likewise.
1032 (thumb2_decode_svc_copro): Likewise.
1033 (install_pc_relative): Likewise.
1034 (thumb_copy_pc_relative_16bit): Likewise.
1035 (thumb_decode_pc_relative_16bit): Likewise.
1036 (thumb_copy_pc_relative_32bit): Likewise.
1037 (thumb_copy_16bit_ldr_literal): Likewise.
1038 (thumb_copy_cbnz_cbz): Likewise.
1039 (thumb2_copy_table_branch): Likewise.
1040 (cleanup_pop_pc_16bit_all): Likewise.
1041 (thumb_copy_pop_pc_16bit): Likewise.
1042 (thumb_process_displaced_16bit_insn): Likewise.
1043 (decode_thumb_32bit_ld_mem_hints): Likewise.
1044 (thumb_process_displaced_32bit_insn): Likewise.
1045 (thumb_process_displaced_insn): Likewise.
1046 (arm_process_displaced_insn): Likewise.
1047 (arm_displaced_init_closure): Likewise.
1048 (arm_displaced_step_fixup): Add cast for closure.
1049 * arm-tdep.h: Include infrun.h.
1050 (displaced_step_closure): Rename to ...
1051 (arm_displaced_step_closure): ... this, extend
1052 displaced_step_closure.
1053 <u::svc::copy_svc_os>: Change type of parameter DSC.
1054 <cleanup>: Likewise.
1055 (arm_process_displaced_insn): Likewise.
1056 (arm_displaced_init_closure): Likewise.
1057 (displaced_read_reg): Likewise.
1058 (displaced_write_reg): Likewise.
1059 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1061 * i386-tdep.h: Include infrun.h.
1062 (i386_displaced_step_closure): New typedef.
1063 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1064 i386_displaced_step_closure.
1065 (i386_displaced_step_fixup): Adjust.
1066 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1067 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1069 (ppc_displaced_step_fixup): Adjust.
1070 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1071 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1073 (s390_displaced_step_fixup): Adjust.
1075 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1077 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1078 Remove declarations.
1080 2017-10-20 Tom Tromey <tom@tromey.com>
1082 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1084 (gdb_bfd_record_inclusion): Update.
1085 (bfdp): Remove typedef.
1087 2017-10-20 Tom Tromey <tom@tromey.com>
1089 * gdb_bfd.c (gdb_bfd_ref): Use new.
1090 (struct gdb_bfd_data): Add constructor, destructor, and member
1092 (gdb_bfd_unref): Use delete.
1094 2017-10-20 Tom Tromey <tom@tromey.com>
1096 * exec.c (exec_file_attach): Use new_bfd_ref.
1097 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1098 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1099 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1101 * gdb_bfd.h (new_bfd_ref): New function.
1103 2017-10-20 Pedro Alves <palves@redhat.com>
1105 * main.c (captured_command_loop): Add attribute noinline.
1107 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1109 * interps.c (struct interp_factory): Add constructor.
1110 (interp_factory_p): Remove typedef.
1111 (DEF_VEC_P(interp_factory_p)): Remove.
1112 (interpreter_factories): Change type to std::vector.
1113 (interp_factory_register): Adjust.
1114 (interp_lookup): Adjust.
1115 (interpreter_completer): Adjust.
1117 2017-10-19 Tom Tromey <tom@tromey.com>
1119 * break-catch-syscall.c (catch_syscall_completer): Use
1120 std::string, gdb::unique_xmalloc_ptr.
1122 2017-10-19 Tom Tromey <tom@tromey.com>
1124 * infcall.c (call_function_by_hand_dummy): Use std::string.
1126 2017-10-19 Tom Tromey <tom@tromey.com>
1128 * mi/mi-main.c (mi_cmd_execute): Update.
1129 * top.h (prepare_execute_command): Return scoped_value_mark.
1130 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1131 Add move constructor.
1132 * top.c (prepare_execute_command): Return scoped_value_mark.
1133 (execute_command): Update.
1135 2017-10-19 Pedro Alves <palves@redhat.com>
1137 * xml-support.c (xml_fetch_content_from_file): Check fread's
1140 2017-10-19 Pedro Alves <palves@redhat.com>
1142 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1144 (handle_error_fd): New function.
1145 (ser_base_async): Add/delete an event loop file handler for
1148 2017-10-19 Pedro Alves <palves@redhat.com>
1150 * xml-support.c (xml_fetch_content_from_file): Don't read in
1151 chunks. Instead use fseek to determine the file's size, and read
1154 2017-11-18 Keith Seitz <keiths@redhat.com>
1156 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1158 Add whitespace to front of type name.
1160 2017-10-18 Keith Seitz <keiths@redhat.com>
1162 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1163 DW_AT_accessibility.
1165 2017-10-18 Yao Qi <yao.qi@linaro.org>
1167 * features/tic6x-c62x-linux.c: Remove.
1169 2017-10-17 Tom Tromey <tom@tromey.com>
1171 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1172 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1173 (do_mixed_source_and_assembly): Likewise.
1175 2017-10-17 Tom Tromey <tom@tromey.com>
1177 * regcache.c (regcache::xfer_part): Remove assertion.
1179 2017-10-17 Pedro Alves <palves@redhat.com>
1181 * xml-support.c (xml_fetch_content_from_file): Call
1182 unique_ptr::release() instead unique_ptr::get() when passing
1185 2017-10-17 Yao Qi <yao.qi@linaro.org>
1187 * regcache.c (regcache::xfer_part): Remove parameters read and
1188 write, add parameter is_raw. All callers are updated.
1190 2017-10-16 Keith Seitz <keiths@redhat.com>
1192 * c-typeprint.c (enum access_specifier): Moved here from
1194 (output_access_specifier): New function.
1195 (c_type_print_base): Consider typedefs when assessing
1196 whether access labels are needed.
1197 Use output_access_specifier as needed.
1198 Output access specifier for typedefs, if needed.
1199 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1200 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1202 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1205 2017-10-16 Tom Tromey <tom@tromey.com>
1207 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1208 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1209 * target.c (target_fileio_read_stralloc): Update.
1210 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1211 * target.h (target_fileio_read_stralloc): Return
1214 2017-10-16 Tom Tromey <tom@tromey.com>
1216 * xml-syscall.c (xml_init_syscalls_info): Update.
1217 * xml-support.c (xinclude_start_include): Update.
1218 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1219 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1220 (xml_fetch_content_from_file): Likewise.
1221 * osdata.c (get_osdata): Update.
1222 * target.h (target_read_stralloc, target_get_osdata): Return
1224 * solib-aix.c (solib_aix_get_library_list): Update.
1225 * solib-target.c (solib_target_current_sos): Update.
1226 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1227 * xml-tdesc.c (fetch_available_features_from_target): Update.
1228 (target_fetch_description_xml): Update.
1229 (file_read_description_xml): Update.
1230 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1231 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1232 (remote_pid_to_exec_file): Update.
1233 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1234 (target_get_osdata): Likewise.
1236 2017-10-16 Tom Tromey <tom@tromey.com>
1238 * remote.c (remote_register_number_and_offset): Use std::vector.
1239 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1240 (putpkt_binary): Use gdb::def_vector.
1241 (compare_sections_command): Use gdb::byte_vector.
1243 2017-10-16 Tom Tromey <tom@tromey.com>
1245 * ppc-linux-nat.c (hwdebug_insert_point): Use
1246 gdb::unique_xmalloc_ptr, XDUP.
1248 2017-10-16 Tom Tromey <tom@tromey.com>
1250 * probe.c (parse_probes): Use std::string.
1251 (info_probes_for_ops, enable_probes_command)
1252 (disable_probes_command): Remove cleanups.
1254 2017-10-16 Tom Tromey <tom@tromey.com>
1256 * buildsym.c (block_compar): Remove.
1257 (end_symtab_get_static_block): Use std::vector.
1259 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1261 * memrange.h (struct mem_range): Define operator< and operator==.
1262 (mem_range_s): Remove.
1263 (DEF_VEC_O (mem_range_s)): Remove.
1264 (normalize_mem_ranges): Change parameter type to std::vector.
1265 * memrange.c (compare_mem_ranges): Remove.
1266 (normalize_mem_ranges): Change parameter type to std::vector,
1267 adjust to vector change.
1268 * exec.c (section_table_available_memory): Return vector, remove
1270 (section_table_read_available_memory): Adjust to std::vector
1272 * remote.c (remote_read_bytes): Adjust to std::vector
1274 * tracepoint.h (traceframe_available_memory): Change parameter
1275 type to std::vector.
1276 * tracepoint.c (traceframe_available_memory): Change parameter
1277 type to std::vector, adjust.
1278 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1280 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1281 unittests/memrange-selftests.c.
1282 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1283 * gdb/unittests/memrange-selftests.c: New file.
1285 2017-10-16 Pedro Alves <palves@redhat.com>
1287 * elfread.c (probe_key_free): Rename range-for variable.
1288 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1289 (find_probe_by_pc, collect_probes): Rename range-for variable.
1291 2017-10-16 Yao Qi <yao.qi@linaro.org>
1293 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1294 * features/tic6x-c62x.c: Remove.
1295 * features/tic6x-c64x-linux.c: Remove.
1296 * features/tic6x-c64x.c: Remove.
1297 * features/tic6x-c64xp-linux.c: Remove.
1298 * features/tic6x-c64xp.c: Remove.
1299 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1300 initialize_tdesc_tic6x_*_linux functions.
1301 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1302 initialize_tdesc_tic6x_* functions.
1304 2017-10-16 Yao Qi <yao.qi@linaro.org>
1306 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1308 * regformats/tic6x-c62x.dat: Remove.
1309 * regformats/tic6x-c64x.dat: Remove.
1310 * regformats/tic6x-c64xp.dat: Remove.
1312 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1314 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1315 (the !HAVE_LIBEXPAT version).
1317 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1319 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1322 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1324 * target.h: Include tracepoint.h.
1325 (enum trace_find_type): Move to tracepoint.h.
1326 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1327 * tracepoint.h: Don't include target.h
1328 (enum trace_find_type): Move from target.h.
1329 (parse_traceframe_info): Return a unique ptr.
1330 * tracepoint.c (current_traceframe_info): Change type to unique
1332 (free_traceframe_info): Remove.
1333 (clear_traceframe_info): Don't manually free
1334 current_traceframe_info.
1335 (free_result): Remove.
1336 (parse_traceframe_info): Return a unique ptr.
1337 (get_traceframe_info): Adjust to unique ptr.
1338 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1339 * remote.c (remote_traceframe_info): Return a unique ptr.
1340 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1342 * target-debug.h (target_debug_print_traceframe_info_up): New
1344 * target-delegates.c: Regenerate.
1346 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1348 * memrange.h (struct mem_range): Add constructors.
1349 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1350 std::vector<mem_range>.
1351 * tracepoint.c (free_traceframe_info): Don't manually free
1353 (traceframe_info_start_memory): Adjust to vector change.
1354 (traceframe_available_memory): Likewise.
1355 * tracefile-tfile.c (build_traceframe_info): Likewise.
1356 * ctf.c (ctf_traceframe_info): Likewise.
1358 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1360 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1362 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1363 (traceframe_info_start_tvar): Adjust to vector change.
1364 (parse_traceframe_info): Allocate with new.
1365 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1367 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1369 tfile_traceframe_info): Allocate with new.
1370 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1373 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1375 * tracepoint.c (traceframe_info): Rename to...
1376 (current_traceframe_info): ...this.
1377 (clear_traceframe_info): Adjust.
1378 (get_traceframe_info): Adjust.
1380 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1382 * nat/linux-osdata.c: Include algorithm.
1383 (compare_processes): Remove.
1384 (struct pid_pgid_entry): New struct.
1385 (linux_xfer_osdata_processgroups): Use std::vector instead of
1388 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1390 * objfiles.h: Don't include symfile.h.
1391 (struct partial_symbol): Remove forward-declaration.
1392 (struct objfile) <global_psymbols, static_psymbols>: Change type
1393 to std::vector<partial_symbol *>.
1394 * objfiles.c (objfile::objfile): Don't memset those fields.
1395 (objfile::~objfile): Don't free those fields.
1396 * psympriv.h (struct psymbol_allocation_list): Remove
1397 forward-declaration.
1398 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1400 (start_psymtab_common): Change parameters to std::vector.
1401 * psymtab.c: Include algorithm.
1402 (require_partial_symbols): Call shrink_to_fit.
1403 (find_pc_sect_psymbol): Adjust to vector change.
1404 (match_partial_symbol): Likewise.
1405 (lookup_partial_symbol): Likewise.
1406 (psym_relocate): Likewise.
1407 (dump_psymtab): Likewise.
1408 (recursively_search_psymtabs): Likewise.
1409 (compare_psymbols): Remove.
1410 (sort_pst_symbols): Adjust to vector change.
1411 (start_psymtab_common): Likewise.
1412 (end_psymtab_common): Likewise.
1413 (psymbol_bcache_full): De-constify return value.
1414 (add_psymbol_to_bcache): Likewise.
1415 (extend_psymbol_list): Remove.
1416 (append_psymbol_to_list): Adjust to vector change.
1417 (add_psymbol_to_list): Likewise.
1418 (init_psymbol_list): Likewise.
1419 (maintenance_info_psymtabs): Likewise.
1420 (maintenance_check_psymtabs): Likewise.
1421 * symfile.h (struct psymbol_allocation_list): Remove.
1422 * symfile.c (reread_symbols): Adjust to vector change.
1423 * dbxread.c (start_psymtab): Change type of parameters.
1424 (dbx_symfile_read): Adjust to vector change.
1425 (read_dbx_symtab): Likewise.
1426 (start_psymtab): Change type of parameters.
1427 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1428 (create_partial_symtab): Likewise.
1429 (add_partial_symbol): Likewise.
1430 (write_one_signatured_type): Likewise.
1431 (recursively_write_psymbols): Likewise.
1432 * mdebugread.c (parse_partial_symbols): Likewise.
1433 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1434 (scan_xcoff_symtab): Adjust to vector change.
1435 (xcoff_initial_scan): Likewise.
1437 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1439 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1441 2017-10-13 Yao Qi <yao.qi@linaro.org>
1443 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1444 Remove s390x-*-expedite, add s390x-expedite.
1446 2017-10-13 Yao Qi <yao.qi@linaro.org>
1448 * features/s390-gs-linux64.c: Regenerated.
1449 * features/s390x-gs-linux64.c: Regenerated.
1451 2017-10-13 Tom Tromey <tom@tromey.com>
1453 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1454 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1456 * symfile.c (symbol_file_add_with_addrs): Use new.
1457 (symbol_file_add_separate): Update comment.
1458 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1459 * jit.c (jit_object_close_impl): Use new.
1460 (jit_unregister_code): Use delete.
1461 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1462 (~objfile): Rename from free_objfile.
1463 (free_objfile_separate_debug, do_free_objfile_cleanup)
1464 (free_all_objfiles, objfile_purge_solibs): Use delete.
1465 * objfiles.h (struct objfile): Add constructor and destructor.
1466 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1467 (allocate_objfile, free_objfile): Don't declare.
1468 (struct objstats): Add initializers.
1470 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1472 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1473 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1474 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1475 * gdbarch.h: Regenerate.
1476 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1478 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1479 (i386_displaced_step_fixup): Adjust comment.
1480 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1482 2017-10-12 Tom Tromey <tom@tromey.com>
1484 * prologue-value.h (pv_area::store_would_trash): Return bool.
1485 (pv_area::find_reg): Likewise.
1486 * prologue-value.c (pv_area::store_would_trash): Return bool.
1487 (pv_area::find_reg): Likewise.
1489 2017-10-12 Tom Tromey <tom@tromey.com>
1491 * s390-linux-tdep.c (s390_store, s390_load)
1492 (s390_check_for_saved, s390_analyze_prologue): Update.
1493 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1494 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1495 * prologue-value.h (class pv_area): Move from prologue-value.c.
1496 Change names of members. Add constructor, destructor, member
1498 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1499 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1500 (pv_area_fetch, pv_area_scan): Don't declare.
1501 * prologue-value.c (struct pv_area::area_entry): Now member of
1503 (struct pv_area): Move to prologue-value.h.
1504 (pv_area::pv_area): Rename from make_pv_area.
1505 (pv_area::~pv_area): Rename from free_pv_area.
1506 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1507 (clear_entries, find_entry, overlaps, store_would_trash, store)
1508 (fetch, find_reg, scan): Now member of pv_area.
1509 Remove "area" argument. Update.
1510 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1512 * mn10300-tdep.c (push_reg, check_for_saved)
1513 (mn10300_analyze_prologue): Update.
1514 * mep-tdep.c (is_arg_spill, check_for_saved)
1515 (mep_analyze_prologue): Update.
1516 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1517 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1518 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1519 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1521 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1522 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1524 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1526 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1527 * linux-nat.c (linux_nat_delete_thread): New variable.
1528 (lwp_free): Invoke linux_nat_delete_thread if set.
1529 (linux_nat_set_delete_thread): New function.
1530 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1531 thread delete callback.
1532 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1533 (_initialize_arm_linux_nat): Assign thread delete callback.
1534 * s390-linux-nat.c (s390_delete_thread): New function.
1535 (_initialize_s390_nat): Assign thread delete callback.
1536 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1537 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1539 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1541 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1542 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1544 2017-10-09 Tom Tromey <tom@tromey.com>
1546 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1548 * tui/tui-layout.c (enum tui_status): Use std::string.
1550 2017-10-11 Tom Tromey <tom@tromey.com>
1552 * gdbthread.h (thread_command): Constify.
1553 * inferior.h (detach_command): Constify.
1554 * top.h (set_history, show_history): Constify.
1555 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1556 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1557 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1558 * printcmd.c (set_command): Constify.
1559 (non_const_set_command): New function.
1560 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1561 * breakpoint.c (enable_command, disable_command, delete_command)
1562 (catch_command, tcatch_command, set_breakpoint_cmd)
1563 (show_breakpoint_cmd): Constify.
1564 * macrocmd.c (macro_command): Constify.
1565 * infcmd.c (unset_command, kill_command, detach_command)
1566 (info_proc_cmd): Constify.
1567 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1568 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1569 (info_auto_load_cmd): Constify.
1570 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1571 (unset_tdesc_cmd): Constify.
1572 * ada-lang.c (set_ada_command, show_ada_command)
1573 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1574 * guile/guile.c (set_guile_command, show_guile_command)
1575 (info_guile_command): Constify.
1576 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1578 * skip.c (skip_command): Constify.
1579 * compile/compile.c (_initialize_compile): Constify.
1580 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1581 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1582 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1583 (maint_btrace_pt_show_cmd): Constify.
1584 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1586 * python/python.c (user_show_python, user_set_python): Constify.
1587 * mips-tdep.c (set_mips_command, show_mips_command)
1588 (set_mipsfpu_command): Constify.
1589 * record-btrace.c (cmd_record_btrace_start)
1590 (cmd_set_record_btrace, cmd_show_record_btrace)
1591 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1592 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1593 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1595 * symfile.c (overlay_command): Constify.
1596 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1597 * cli/cli-logging.c (set_logging_command, show_logging_command):
1599 * cli/cli-dump.c (dump_command, append_command)
1600 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1601 (tekhex_dump_command, binary_dump_command)
1602 (binary_append_command): Constify.
1603 * cli/cli-decode.c (struct cmd_list_element): Change type of
1605 * cli/cli-cmds.c (info_command, show_command, set_debug)
1606 (show_debug): Constify.
1607 (show_command): Add non-const overload.
1608 * top.c (set_history, show_history): Constify.
1609 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1610 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1611 * target.c (target_command): Constify.
1612 * sparc64-tdep.c (info_adi_command): Constify.
1613 * record-full.c (cmd_record_full_start): Constify.
1614 (set_record_full_command): Constify. Fix typo.
1615 (show_record_full_command): Constify.
1616 * thread.c (thread_command, thread_apply_command): Constify.
1617 * memattr.c (dummy_cmd): Constify.
1618 * value.c (function_command): Constify.
1619 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1620 * probe.c (info_probes_command): Constify.
1621 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1622 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1623 (show_thread_cmd, set_thread_default_cmd)
1624 (show_thread_default_cmd): Constify.
1625 (check_empty): Constify.
1626 * tracepoint.c (tfind_command): Constify.
1627 * cp-support.c (maint_cplus_command): Constify.
1628 * windows-tdep.c (info_w32_command): Constify.
1629 * record.c (cmd_record_start, set_record_command)
1630 (show_record_command, info_record_command, cmd_record_goto):
1632 * ravenscar-thread.c (set_ravenscar_command)
1633 (show_ravenscar_command): Constify.
1634 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1636 (add_internal_problem_command): Remove casts.
1637 * arc-tdep.c (maintenance_print_arc_command): Constify.
1638 * valprint.c (set_print, show_print, set_print_raw)
1639 (show_print_raw): Constify.
1640 * maint.c (maintenance_command, maintenance_info_command)
1641 (maintenance_print_command, maintenance_set_cmd)
1642 (maintenance_show_cmd, set_per_command_cmd)
1643 (show_per_command_cmd, maintenance_check_command): Constify.
1644 * language.c (set_check, show_check): Constify.
1645 * typeprint.c (show_print_type, set_print_type): Constify.
1646 * go32-nat.c (go32_info_dos_command): Constify.
1648 2017-10-11 Tom Tromey <tom@tromey.com>
1650 * breakpoint.c (prepare_re_set_context): Remove.
1651 (breakpoint_re_set_one): Update. Don't use cleanups.
1652 (breakpoint_re_set): Use scoped_restore, std::string, and
1653 scoped_restore_current_language.
1655 2017-10-11 Tom Tromey <tom@tromey.com>
1657 * breakpoint.c (commands_command_1): Use std::string.
1658 (cleanup_executing_breakpoints): Remove.
1659 (bpstat_do_actions_1): Use scoped_restore.
1660 (bpstat_check_watchpoint): Use std::string.
1661 (decode_static_tracepoint_spec): Likewise.
1662 (break_range_command): Likewise.
1663 (watch_command_1): Likewise.
1664 (compare_breakpoints): Change argument types.
1665 (clear_command): Use std::vector.
1666 (cleanup_executing_breakpoints): Remove.
1667 (update_global_location_list): Use unique_xmalloc_ptr.
1668 (strace_command): Remove unused declaration.
1670 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1672 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1673 * NEWS: Mention new FreeBSD/arm native configuration.
1674 * configure.host: Add arm*-*-freebsd*.
1675 * configure.nat: Likewise.
1676 * arm-fbsd-nat.c: New file.
1678 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1680 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1681 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1682 * NEWS: Mention new FreeBSD/arm target.
1683 * configure.tgt: Add arm*-*-freebsd*.
1684 * arm-fbsd-tdep.c: New file.
1685 * arm-fbsd-tdep.h: New file.
1687 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1689 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1690 `gdbarch_elfcore_write_linux_prpsinfo'.
1691 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1693 (elf_internal_linux_prpsinfo): Remove declaration.
1694 * gdbarch.h: Regenerate.
1695 * gdbarch.c: Regenerate.
1697 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1699 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1700 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1702 2017-10-11 Pedro Alves <palves@redhat.com>
1704 * breakpoint.c (reattach_breakpoints): Delete.
1705 * breakpoint.h (reattach_breakpoints): Delete.
1707 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1709 * symfile.c (registered_sym_fns): Make struct, not typedef.
1710 (DEF_VEC_O (registered_sym_fns)): Remove.
1711 (symtab_fns): Change type to std::vector.
1712 (add_symtab_fns): Adjust.
1713 (find_sym_fns): Adjust.
1715 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1717 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1718 * arc-tdep.h (arc_arch_is_em): New function.
1719 (arc_arch_is_hs): Likewise.
1721 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1723 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1724 parentheses in the declaration.
1725 (macro_lookup_inclusion): Likewise.
1726 (macro_lookup_definition): Likewise.
1727 * p-lang.h (pascal_builtin_types): Likewise.
1728 * tui/tui-data.c (tui_win_list): Likewise.
1729 * tui/tui-data.h (tui_win_list): Likewise.
1730 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1732 2017-10-11 Mark Rages <markrages@gmail.com>
1734 * target-memory.c (block_boundaries): Fix for block address not
1735 aligned on block size.
1737 2017-10-10 Pedro Alves <palves@redhat.com>
1738 Tom Tromey <tom@tromey.com>
1740 * breakpoint.c (struct captured_breakpoint_query_args)
1741 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1742 (print_breakpoint): New.
1743 * breakpoint.h (print_breakpoint): Declare.
1744 * common/common-exceptions.h (enum return_reason): Remove
1745 references to catch_exceptions.
1746 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1748 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1749 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1751 * gdbthread.h (thread_select): Declare.
1752 * mi/mi-cmd-break.c: Don't include gdb.h.
1753 (breakpoint_notify): Use print_breakpoint.
1754 * mi/mi-cmd-catch.c: Don't include gdb.h.
1755 * mi/mi-interp.c: Don't include gdb.h.
1756 (mi_print_breakpoint_for_event): New.
1757 (mi_breakpoint_created, mi_breakpoint_modified): Use
1758 mi_print_breakpoint_for_event.
1759 * mi/mi-main.c: Don't include gdb.h.
1760 (mi_cmd_thread_select): Parse the global thread ID here. Use
1761 thread_select instead of gdb_thread_select.
1762 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1763 of using gdb_list_thread_ids.
1764 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1766 (remote_fileio_request): Use TRY/CATCH instead of
1768 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1769 (symbol_file_add_from_memory_wrapper): Delete.
1770 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1771 * thread.c: Don't include gdb.h.
1772 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1773 (thread_alive): Use thread_select.
1774 (do_captured_thread_select): Delete, parts salvaged as ...
1775 (thread_select): ... this new function.
1776 (gdb_thread_select): Delete.
1778 2017-10-10 Pedro Alves <palves@redhat.com>
1779 Tom Tromey <tom@tromey.com>
1781 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1783 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1784 No longer macros. Instead ...
1785 (enum wp_check_result): They're now values of this new
1787 (watchpoint_check): Change return type to wp_check_result and
1788 parameter type to bpstat.
1789 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1790 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1791 catch_errors. Reverse logic of watchpoint_check call.
1792 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1793 pointer as parameter.
1794 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1795 * common/common-exceptions.c (throw_exception_sjlj): Update
1796 comments to avoid mentioning catch_errors.
1797 * exceptions.c (catch_errors): Delete.
1798 * exceptions.h: Update comments to avoid mentioning catch_errors.
1799 (catch_errors_ftype, catch_errors): Delete.
1800 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1801 (hook_stop_stub): Delete.
1802 (restore_selected_frame): Change return type to void, and
1803 parameter type to const frame_id &.
1804 (restore_infcall_control_state): Use TRY/CATCH instead of
1806 * main.c (captured_command_loop): Return void and remove
1807 parameter. Remove references to catch_errors.
1808 (captured_main): Use TRY/CATCH instead of catch_errors.
1809 * objc-lang.c (objc_submethod_helper_data)
1810 (find_objc_msgcall_submethod_helper): Delete.
1811 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1813 * record-full.c (record_full_message): Return void.
1814 (record_full_message_args, record_full_message_wrapper): Delete.
1815 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1816 instead of catch_errors.
1817 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1818 parameter type to int.
1819 * solib-darwin.c (open_symbol_file_object): Ditto.
1820 * solib-dsbt.c (open_symbol_file_object): Ditto.
1821 * solib-frv.c (open_symbol_file_object): Ditto.
1822 * solib-svr4.c (open_symbol_file_object): Ditto.
1823 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1824 * solib.c (update_solib_list): Use TRY/CATCH instead of
1826 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1828 * symmisc.c (struct print_symbol_args): Remove.
1829 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1830 (print_symbol): Change type.
1831 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1832 and remove parameters.
1833 (catch_errors): New.
1834 (get_windows_debug_event): Adjust.
1836 2017-10-09 Tom Tromey <tom@tromey.com>
1838 * mi/mi-main.c (free_splay_tree): Remove.
1839 (list_available_thread_groups): Use splay_tree_up.
1840 * common/gdb_splay_tree.h: New file.
1842 2017-10-09 Tom Tromey <tom@tromey.com>
1844 * mi/mi-main.c (do_nothing): Remove.
1845 (list_available_thread_groups): Update.
1847 2017-10-09 Pedro Alves <palves@redhat.com>
1849 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1850 reading registers when switching context.
1852 2017-10-09 John Baldwin <jhb@FreeBSD.org>
1854 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1855 (fbsd_convert_siginfo): Likewise.
1856 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1858 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1860 * configure.ac (try_guile_versions): Remove guile-2.2.
1861 * configure: Regenerate.
1863 2017-10-09 Tom Tromey <tom@tromey.com>
1865 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1866 (COMPILE.pre): Use $(CXX).
1868 2017-10-09 Pedro Alves <palves@redhat.com>
1870 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1872 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1873 * cp-support.h (cp_remove_params): Now returns a
1874 gdb::unique_xmalloc_ptr.
1875 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1876 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1877 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1878 returning a gdb::unique_xmalloc_ptr.
1879 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1880 * stack.c (find_frame_funname): Adjust to cp_remove_params
1881 returning a gdb::unique_xmalloc_ptr.
1883 2017-10-08 Tom Tromey <tom@tromey.com>
1885 * dwarf2read.c (dwarf2_get_dwz_file): Use
1886 gdb::unique_xmalloc_ptr.
1887 (find_slot_in_mapped_hash): Likewise.
1888 (dwarf2_physname): Likewise.
1889 (create_dwo_unit_in_dwp_v1): Use std::string.
1890 (create_dwo_unit_in_dwp_v2): Likewise.
1891 (lookup_dwo_cutu): Likewise.
1892 (inherit_abstract_dies): Use std::vector.
1893 (read_array_type): Likewise.
1894 (dwarf_decode_macros): Remove unused declaration.
1895 (unsigned_int_compar): Remove.
1896 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1897 (psymtabs_addrmap_cleanup): Remove.
1899 2017-10-08 Tom Tromey <tom@tromey.com>
1901 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1902 * frame.h (frame_cleanup_after_sniffer): Declare.
1903 (frame_prepare_for_sniffer): Return void.
1904 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1906 (frame_prepare_for_sniffer): Return void.
1908 2017-10-08 Tom Tromey <tom@tromey.com>
1910 * utils.h (make_cleanup_value_free): Remove.
1911 * utils.c (do_value_free, struct cleanup): Remove.
1912 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1914 * value.h (struct value_deleter): New.
1915 (gdb_value_up): New typedef.
1917 2017-10-08 Tom Tromey <tom@tromey.com>
1919 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1920 (make_cleanup_free_search_symbols): Remove.
1921 (search_symbols): Return std::vector.
1922 (symbol_search::compare_search_syms): Now member of
1923 symbol_search. Change arguments.
1924 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1925 (symtab_symbol_info, rbreak_command): Update.
1926 * symtab.h (struct symbol_search) <next>: Remove.
1928 (symbol_search::operator<): New function.
1929 (symbol_search::operator==): New function.
1930 (search_symbols): Remove std::vector.
1931 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1932 (symbol_search::compare_search_syms): Declare.
1934 2017-10-06 Yao Qi <yao.qi@linaro.org>
1936 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1937 arch/aarch64-insn.o.
1939 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1941 2017-10-06 Yao Qi <yao.qi@linaro.org>
1943 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1944 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1945 arch/arm-linux.o respectively.
1946 * configure.tgt: Likewise.
1948 2017-10-06 Yao Qi <yao.qi@linaro.org>
1950 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1951 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1953 2017-10-06 Pedro Alves <palves@redhat.com>
1955 * windows-nat.c: Include <algorithm>.
1957 2017-10-06 Yao Qi <yao.qi@linaro.org>
1959 * configure.tgt (i386_tobjs): New variable.
1960 (amd64_tobjs): New variable.
1961 Set $cpu_obs and $os_obs.
1963 2017-10-06 Yao Qi <yao.qi@linaro.org>
1965 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1966 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1967 (clean): Remove object files and dependency files.
1968 (distclean): Remove the directory.
1969 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1970 * configure: Re-generated.
1971 * configure.tgt: Replace amd64.o with arch/amd64.o.
1973 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1976 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1979 2017-10-05 Pedro Alves <palves@redhat.com>
1981 * linux-nat.c (linux_child_follow_fork): When following the parent
1982 and detaching the child, consult the parent thread's architecture
1983 instead of the child's.
1985 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1987 * ax.h: Do not include "doublest.h".
1988 (union agent_val): Remove.
1990 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1992 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1993 (decimal_to_string): Return std::string object.
1994 (decimal_from_string): Accept std::string object. Return bool.
1995 (decimal_from_integral, decimal_from_doublest): Remove.
1996 (decimal_from_longest): Add prototype.
1997 (decimal_from_ulongest): Likewise.
1998 (decimal_to_longest): Likewise.
1999 (decimal_from_doublest): Likewise.
2000 * dfp.c: Do not include "gdbtypes.h" or "value.h".
2001 (MAX_DECIMAL_STRING): Move here.
2002 (decimal_to_string): Return std::string object.
2003 (decimal_from_string): Accept std::string object. Return bool.
2004 (decimal_from_integral): Remove, replace by ...
2005 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
2006 (decimal_to_longest): New function.
2007 (decimal_from_floating): Remove, replace by ...
2008 (decimal_from_doublest): ... this new function.
2009 (decimal_to_doublest): Update to new decimal_to_string interface.
2011 * value.c (unpack_long): Use decimal_to_longest.
2012 * valops.c (value_cast): Use decimal_from_doublest instead of
2013 decimal_from_floating. Use decimal_from_[u]longest isntead of
2014 decimal_from_integral.
2015 * valarith.c (value_args_as_decimal): Likewise.
2016 * valprint.c (print_decimal_floating): Update to new
2017 decimal_to_string interface.
2018 * printcmd.c (printf_decfloat): Likewise.
2019 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2021 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2023 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2024 * gdbtypes.c: Include "floatformat.h".
2025 * value.c: Likewise.
2026 * m68k-tdep.c: Likewise.
2028 * findvar.c: Do not include "floatformat.h".
2029 * amd64-darwin-tdep.c: Likewise.
2030 * arm-linux-tdep.c: Likewise.
2031 * i386-darwin-tdep.c: Likewise.
2032 * i387-tdep.c: Likewise.
2033 * m68k-linux-tdep.c: Likewise.
2034 * mep-tdep.c: Likewise.
2035 * mips-tdep.c: Likewise.
2036 * nios2-tdep.c: Likewise.
2037 * s390-linux-tdep.c: Likewise.
2038 * sparc-obsd-tdep.c: Likewise.
2039 * sparc-tdep.c: Likewise.
2040 * sparc64-tdep.c: Likewise.
2041 * spu-tdep.c: Likewise.
2042 * tic6x-tdep.c: Likewise.
2043 * tilegx-tdep.c: Likewise.
2044 * vax-tdep.c: Likewise.
2045 * xstormy16-tdep.c: Likewise.
2046 * xtensa-tdep.c: Likewise.
2048 * top.c: Do not include "doublest.h".
2049 * aarch64-tdep.c: Likewise.
2050 * alpha-tdep.c: Likewise.
2051 * arm-linux-tdep.c: Likewise.
2052 * m68k-linux-tdep.c: Likewise.
2053 * tilegx-tdep.c: Likewise.
2054 * xstormy16-tdep.c: Likewise.
2056 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2058 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2059 (mipsn32_fbsd_sigframe): Define.
2060 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2061 for FreeBSD/mipsn32.
2063 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2065 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2068 2017-10-05 Tristan Gingold <tgingold@free.fr>
2070 * MAINTAINERS (Misc): Update my email address.
2072 2017-10-04 Pedro Alves <palves@redhat.com>
2074 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2075 it instead of target_gdbarch.
2076 (get_remote_state, get_remote_packet_size): Adjust
2077 get_remote_arch_state calls, passing down target_gdbarch
2079 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2080 'gdbarch' and use it instead of target_gdbarch.
2081 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2082 passing down target_gdbarch explicitly.
2083 (struct stop_reply) <arch>: New field.
2084 (remote_parse_stop_reply): Use the stopped thread's architecture,
2085 not the current inferior's. Save the architecture in the
2087 (process_stop_reply): Use the stop reply's architecture.
2088 (process_g_packet, remote_fetch_registers)
2089 (remote_prepare_to_store, store_registers_using_G)
2090 (remote_store_registers): Adjust get_remote_arch_state calls,
2091 using the regcache's architecture.
2092 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2093 passing down target_gdbarch explicitly.
2094 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2095 beneath instead of calling target_gdbarch.
2096 * target.c (default_thread_architecture): Use the specified
2097 inferior's architecture, instead of the current inferior's
2098 architecture (via target_gdbarch).
2100 2017-10-04 Pedro Alves <palves@redhat.com>
2102 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2104 (regcache_print): Handle !target_has_registers here instead.
2106 2017-10-04 Pedro Alves <palves@redhat.com>
2108 * frame.c (create_test_frame): Delete.
2109 * frame.h (create_test_frame): Delete.
2110 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2111 (class regcache_test): Delete.
2112 (test_target_has_registers, test_target_has_stack)
2113 (test_target_has_memory, test_target_prepare_to_store)
2114 (test_target_store_registers): New functions.
2115 (test_target_ops): New class.
2116 (register_to_value_test): Error out if there's already a
2117 process_stratum (or higher) target pushed. Create a fuller mock
2118 environment, with mock target_ops, inferior, address space, thread
2120 * progspace.c (struct address_space): Move to ...
2121 * progspace.h (struct address_space): ... here.
2122 * regcache.h (regcache::~regcache, regcache::raw_write)
2123 [GDB_SELF_TEST]: No longer virtual.
2125 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2127 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2129 2017-10-04 Pedro Alves <palves@redhat.com>
2131 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2132 out of 'between TRY and CATCH'.
2134 2017-10-04 Pedro Alves <palves@redhat.com>
2136 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2137 * common/common-exceptions.h (TRY): Open an outermost scope.
2138 Expand intro comment.
2140 (END_CATCH): Close the outermost scope.
2141 * completer.c (complete_line_internal): Add missing END_CATCH.
2143 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2145 * NEWS (Changes since GDB 8.0): Add entry about new
2146 'set-cwd-on-gdbserver' feature.
2147 (New remote packets): Add entry for QSetWorkingDir.
2148 * common/common-inferior.h (set_inferior_cwd): New prototype.
2149 * infcmd.c (set_inferior_cwd): Remove "static".
2150 (show_cwd_command): Expand text to include remote debugging.
2151 * remote.c: Add PACKET_QSetWorkingDir.
2152 (remote_protocol_features) <QSetWorkingDir>: New entry for
2153 PACKET_QSetWorkingDir.
2154 (extended_remote_set_inferior_cwd): New function.
2155 (extended_remote_create_inferior): Call
2156 "extended_remote_set_inferior_cwd".
2157 (_initialize_remote): Call "add_packet_config_cmd" for
2160 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2162 * NEWS (New commands): Mention "set/show cwd".
2163 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2164 "cd" command's help text.
2165 * common/common-inferior.h (get_inferior_cwd): New prototype.
2166 * infcmd.c (inferior_cwd_scratch): New global variable.
2167 (set_inferior_cwd): New function.
2168 (get_inferior_cwd): Likewise.
2169 (set_cwd_command): Likewise.
2170 (show_cwd_command): Likewise.
2171 (_initialize_infcmd): Add "set/show cwd" commands.
2172 * inferior.h (class inferior) <cwd>: New field.
2173 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2174 (fork_inferior): Change inferior's cwd before its execution.
2175 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2178 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2180 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2181 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2182 (COMMON_OBS): Add gdb_tilde_expand.o.
2183 * common/gdb_tilde_expand.c: New file.
2184 * common/gdb_tilde_expand.h: Likewise.
2186 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2188 * gdbarch.sh (objfile): Remove duplicate declaration.
2189 * gdbarch.h: Regenerate.
2191 2017-10-03 Tom Tromey <tom@tromey.com>
2193 * utils.c (internal_vproblem): Use string_vprintf.
2195 2017-10-03 Tom Tromey <tom@tromey.com>
2197 * printcmd.c (info_symbol_command): Use std::string.
2199 2017-10-03 Tom Tromey <tom@tromey.com>
2201 * top.c (gdb_safe_append_history): Use std::string.
2203 2017-10-03 Tom Tromey <tom@tromey.com>
2205 * event-top.c (stdin_event_handler): Update.
2206 * main.c (captured_main_1): Update.
2207 * top.h (make_delete_ui_cleanup): Remove.
2208 (struct ui): Add constructor and destructor.
2209 (new_ui, delete_ui): Remove.
2210 * top.c (make_delete_ui_cleanup): Remove.
2211 (new_ui_command): Use std::unique_ptr.
2212 (delete_ui_cleanup): Remove.
2213 (ui::ui): Rename from new_ui. Update.
2215 (ui::~ui): Rename from delete_ui. Update.
2217 2017-10-03 Tom Tromey <tom@tromey.com>
2219 * symfile.c (load_progress): Use gdb::byte_vector.
2221 2017-10-03 Tom Tromey <tom@tromey.com>
2223 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2225 * printcmd.c (x_command): Remove unused declaration.
2226 * symfile.c (symbol_file_command): Remove unused declaration.
2228 2017-10-03 Tom Tromey <tom@tromey.com>
2230 * utils.c (internal_vproblem): Use std::string.
2231 (defaulted_query): Likewise.
2233 2017-10-03 Tom Tromey <tom@tromey.com>
2235 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2236 * top.c (execute_command_to_string): Update.
2237 * utils.c (make_cleanup_restore_page_info): Remove.
2238 (do_restore_page_info_cleanup): Remove.
2239 (set_batch_flag_and_restore_page_info):
2241 (make_cleanup_restore_page_info): Remove.
2242 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2243 (~set_batch_flag_and_restore_page_info): New
2244 (make_cleanup_restore_uinteger): Remove.
2245 (make_cleanup_restore_integer): Remove.
2246 (struct restore_integer_closure): Remove.
2247 (restore_integer): Remove.
2248 * utils.h (struct set_batch_flag_and_restore_page_info): New
2250 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2251 (make_cleanup_restore_page_info): Remove.
2252 (make_cleanup_restore_uinteger) Remove.
2253 (make_cleanup_restore_integer) Remove.
2255 2017-10-03 Tom Tromey <tom@tromey.com>
2257 * record-full.h (record_full_gdb_operation_disable_set): Return
2258 scoped_restore_tmpl<int>.
2259 * infrun.c (adjust_pc_after_break): Update.
2260 (handle_signal_stop): Update.
2261 * record-full.c (record_full_gdb_operation_disable_set): Return
2262 scoped_restore_tmpl<int>.
2263 (record_full_wait_1, record_full_insert_breakpoint)
2264 (record_full_remove_breakpoint, record_full_save)
2265 (record_full_goto_insn): Update.
2267 2017-10-02 Tom Tromey <tom@tromey.com>
2270 * rust-lang.c (rust_val_print_str): New function.
2271 (val_print_struct): Call it.
2272 (rust_subscript): Preserve name of slice type.
2274 2017-10-02 Tom Tromey <tom@tromey.com>
2276 * rust-lang.c (rust_subscript): Handle slices in
2277 EVAL_AVOID_SIDE_EFFECTS case.
2279 2017-10-02 Tom Tromey <tom@tromey.com>
2281 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2283 2017-10-02 Tom Tromey <tom@tromey.com>
2285 * rust-lang.h (rust_slice_type): Add "extern".
2287 2017-10-02 Tom Tromey <tom@tromey.com>
2288 Pedro Alves <palves@redhat.com>
2290 * ada-lang.h (ada_exc_info::operator<): Make const.
2291 (ada_exc_info::operator==): Make const.
2292 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2295 2017-09-29 Tom Tromey <tom@tromey.com>
2297 * target.c (read_whatever_is_readable): Change type of "result".
2299 (free_memory_read_result_vector): Remove.
2300 (read_memory_robust): Change return type. Update.
2301 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2302 bin2hex, std::string.
2303 * target.h (memory_read_result_s): Remove typedef.
2304 (free_memory_read_result_vector): Remove.
2305 (read_memory_robust): Return std::vector.
2307 2017-09-29 Tom Tromey <tom@tromey.com>
2309 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2311 2017-09-29 Tom Tromey <tom@tromey.com>
2313 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2314 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2315 operator< and operator==.
2316 (ada_exceptions_list): Return a std::vector.
2317 * ada-lang.c (ada_exc_info::operator<): Rename from
2318 compare_ada_exception_info.
2319 (ada_exc_info::operator==): New.
2320 (sort_remove_dups_ada_exceptions_list): Change type of
2322 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2323 (ada_add_global_exceptions): Likewise.
2324 (ada_exceptions_list_1): Return a std::vector.
2325 (ada_exceptions_list): Likewise.
2327 2017-09-29 Tom Tromey <tom@tromey.com>
2329 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2331 (print_one_inferior): Update.
2332 (free_vector_of_ints): Remove.
2333 (list_available_thread_groups): Change "ids" to std::set.
2334 (mi_cmd_list_thread_groups): Update.
2335 (struct collect_cores_data) <core>: Now a std::set.
2336 (collect_cores): Update.
2338 (print_one_inferior): Update.
2340 2017-09-29 Tom Tromey <tom@tromey.com>
2342 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2343 (mi_execute_async_cli_command): Likewise.
2344 (mi_cmd_trace_frame_collected): Use field_fmt.
2346 2017-09-29 Tom Tromey <tom@tromey.com>
2348 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2351 2017-09-29 Tom Tromey <tom@tromey.com>
2353 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2355 2017-09-29 Tom Tromey <tom@tromey.com>
2357 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2359 2017-09-29 Tom Tromey <tom@tromey.com>
2361 * varobj.h (varobj_gen_name): Return std::string.
2362 * varobj.c (varobj_gen_name): Return std::string.
2363 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2364 (mi_cmd_var_delete): Don't copy "name".
2366 2017-09-29 Tom Tromey <tom@tromey.com>
2368 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2369 (mi_cmd_break_insert_1): Update.
2371 2017-09-29 Tom Tromey <tom@tromey.com>
2373 * target.h (make_scoped_defer_target_commit_resume): Update.
2374 * target.c (make_scoped_defer_target_commit_resume): Rename from
2375 make_cleanup_defer_target_commit_resume. Return a
2377 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2379 2017-09-29 Tom Tromey <tom@tromey.com>
2381 * main.c (captured_main_1): Remove unused declaration.
2382 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2384 2017-09-29 Tom Tromey <tom@tromey.com>
2386 * symtab.c (search_symbols): Remove unused outer cleanup.
2387 (make_source_files_completion_list): Remove unused declaration.
2389 2017-09-29 Tom Tromey <tom@tromey.com>
2391 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2393 2017-09-29 Tom Tromey <tom@tromey.com>
2395 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2398 2017-09-29 Tom Tromey <tom@tromey.com>
2400 * complaints.c (vcomplaint): Use std::string.
2402 2017-09-29 Tom Tromey <tom@tromey.com>
2404 * tracepoint.c (trace_variable_command): Use std::string.
2405 (encode_actions_1): Remove unused declarations.
2406 (create_tsv_from_upload): Use std::string.
2408 2017-09-29 Tom Tromey <tom@tromey.com>
2410 * cp-support.c (gdb_demangle): Use std::string.
2412 2017-09-29 Tom Tromey <tom@tromey.com>
2414 * stack.c (parse_frame_specification): Use std::string
2415 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2417 2017-09-29 Tom Tromey <tom@tromey.com>
2419 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2421 2017-09-29 Tom Tromey <tom@tromey.com>
2423 * utils.c (vfprintf_maybe_filtered): Use std::string.
2424 (vfprintf_unfiltered): Likewise.
2426 2017-09-29 Tom Tromey <tom@tromey.com>
2428 * event-top.c (top_level_prompt): Return std::string.
2429 (display_gdb_prompt): Update.
2431 2017-09-29 Tom Tromey <tom@tromey.com>
2433 * unittests/common-utils-selftests.c (format): New function.
2434 (string_vprintf_tests): New function.
2435 (_initialize_common_utils_selftests): Register new tests.
2436 * common/common-utils.c (string_vprintf): New function.
2437 * common/common-utils.h (string_vprintf): Declare.
2439 2017-09-29 Pedro Alves <palves@redhat.com>
2441 * common/rsp-low.c (unpack_varlen_hex): Constify.
2442 * common/rsp-low.h (unpack_varlen_hex): Constify.
2443 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2445 * remote.c (remote_set_permissions, read_ptid)
2446 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2447 (remote_static_tracepoint_marker_at)
2448 (remote_static_tracepoint_markers_by_strid)
2449 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2450 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2451 (parse_tracepoint_definition, parse_tsv_definition)
2452 (parse_static_tracepoint_marker_definition): Constify.
2453 * tracepoint.h (parse_static_tracepoint_marker_definition)
2454 (parse_trace_status, parse_tracepoint_status)
2455 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2457 2017-09-29 Pedro Alves <palves@redhat.com>
2459 * remote.c (target_buf, target_buf_size): Delete.
2460 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2461 Use the connection's packet buffer instead.
2462 All callers adjusted.
2463 (_initialize_remote): Remove references to target_buf and
2466 2017-09-28 Pedro Alves <palves@redhat.com>
2468 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2469 unittests/common-utils-selftests.c.
2470 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2471 (COMMON_OBS): Remove utils-selftests.o.
2472 * utils-selftests.c: Move to ...
2473 * unittests/common-utils-selftests.c: ... here and rename self
2474 test to "string_printf".
2476 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2478 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2479 having NULL cus or tus.
2481 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2483 * arm-tdep.c: (convert_from_extended): Remove.
2484 (convert_to_extended): Likewise.
2485 (arm_extract_return_value): Use convert_typed_floating.
2486 (arm_store_return_value): Likewise.
2488 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2489 * sh-tdep.c: Do not include "floatformat.h".
2490 (sh_littlebyte_bigword_type): New function.
2491 (sh_register_convert_to_virtual): Use convert_typed_floating.
2492 (sh_register_convert_to_raw): Likewise.
2493 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2494 (sh64_littlebyte_bigword_type): New function.
2495 (sh64_extract_return_value): Use convert_typed_floating.
2496 (sh64_register_convert_to_virtual): Likewise.
2497 (sh64_register_convert_to_raw): Likewise.
2499 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2501 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2502 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2504 * gdbtypes.h (union type_specific): Make field floatformat hold
2505 just a single struct floatformat, not an array.
2506 (floatformat_from_type): Move here.
2507 * gdbtypes.c (floatformat_from_type): Move here. Update to
2508 changed TYPE_FLOATFORMAT definition.
2509 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2510 (recursive_dump_type): Likewise.
2511 (init_float_type): Install correct floatformat for byte order.
2512 (arch_float_type): Likewise.
2514 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2516 * gdbtypes.c (init_type): Change incoming argument from
2517 length-in-bytes to length-in-bits. Assert length is a
2518 multiple of TARGET_CHAR_BITS.
2519 (arch_type, arch_flags_type): Likewise.
2520 (init_integer_type): Update call to init_type.
2521 (init_character_type): Likewise.
2522 (init_boolean_type): Likewise.
2523 (init_float_type): Likewise.
2524 (init_decfloat_type): Likewise.
2525 (init_complex_type): Likewise.
2526 (init_pointer_type): Likewise.
2527 (objfile_type): Likewise.
2528 (arch_integer_type): Update call to arch_type.
2529 (arch_character_type): Likewise.
2530 (arch_boolean_type): Likewise.
2531 (arch_float_type): Likewise.
2532 (arch_decfloat_type): Likewise.
2533 (arch_complex_type): Likewise.
2534 (arch_pointer_type): Likewise.
2535 (gdbtypes_post_init): Likewise.
2537 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2538 (read_base_type): Likewise.
2539 * mdebugread.c (basic_type): Likewise.
2540 * stabsread.c (dbx_init_float_type): Likewise.
2541 (rs6000_builtin_type): Likewise.
2542 (read_range_type): Likewise. Also, fix call to init_integer_type
2543 with erroneous length argument.
2545 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2546 * d-lang.c (build_d_types): Likewise.
2547 * f-lang.c (build_fortran_types): Likewise.
2548 * go-lang.c (build_go_types): Likewise.
2549 * opencl-lang.c (build_opencl_types): Likewise.
2550 * jit.c (finalize_symtab): Likewise.
2551 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2552 (build_std_type_info_type): Likewise.
2553 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2554 update call to arch_flags_type.
2556 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2558 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2559 * windows-tdep.c (windows_get_tlb_type): Likewise.
2561 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2562 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2563 * m32c-tdep.c (make_types): Likewise.
2564 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2565 (rl78_psw_type): Update call to arch_flags_type.
2566 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2567 * rx-tdep.c (rx_psw_type): Likewise.
2568 (rx_fpsw_type): Likewise.
2569 * sparc-tdep.c (sparc_psr_type): Likewise.
2570 (sparc_fsr_type): Likewise.
2571 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2572 (sparc64_ccr_type): Likewise.
2573 (sparc64_fsr_type): Likewise.
2574 (sparc64_fprs_type): Likewise.
2576 2017-09-27 Tom Tromey <tom@tromey.com>
2578 * findcmd.c (find_command): Constify.
2580 2017-09-27 Tom Tromey <tom@tromey.com>
2582 * ada-tasks.c (task_command_1, task_command): Constify.
2584 2017-09-27 Tom Tromey <tom@tromey.com>
2586 * symtab.c (maintenance_print_symbol_cache)
2587 (maintenance_flush_symbol_cache)
2588 (maintenance_print_symbol_cache_statistics): Constify.
2590 2017-09-27 Tom Tromey <tom@tromey.com>
2592 * inferior.c (detach_inferior_command, kill_inferior_command)
2593 (inferior_command): Constify.
2595 2017-09-27 Tom Tromey <tom@tromey.com>
2597 * regcache.c (regcache_print, maintenance_print_registers)
2598 (maintenance_print_raw_registers)
2599 (maintenance_print_cooked_registers)
2600 (maintenance_print_register_groups)
2601 (maintenance_print_remote_registers): Constify.
2603 2017-09-27 Tom Tromey <tom@tromey.com>
2605 * printcmd.c (map_display_numbers, undisplay_command)
2606 (enable_disable_display_command, enable_display_command)
2607 (disable_display_command): Constify.
2609 2017-09-27 Tom Tromey <tom@tromey.com>
2611 * breakpoint.h (delete_command): Don't declare.
2612 * breakpoint.c (delete_command, enable_once_command)
2613 (enable_count_command, enable_delete_command, breakpoint_1)
2614 (maintenance_info_breakpoints, stopin_command, stopat_command)
2615 (delete_command, delete_trace_command, save_breakpoints)
2616 (save_breakpoints_command, save_tracepoints_command): Constify.
2618 2017-09-27 Tom Tromey <tom@tromey.com>
2620 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2621 (skip_ws, extract_identifier, macro_define_command)
2622 (macro_undef_command, macro_list_command): Constify.
2624 2017-09-27 Tom Tromey <tom@tromey.com>
2626 * infcmd.c (environment_info, set_environment_command)
2627 (unset_environment_command, path_info, info_proc_cmd_1)
2628 (info_proc_cmd_mappings, info_proc_cmd_stat)
2629 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2630 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2632 2017-09-27 Tom Tromey <tom@tromey.com>
2634 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2637 2017-09-27 Tom Tromey <tom@tromey.com>
2639 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2641 2017-09-27 Tom Tromey <tom@tromey.com>
2643 * demangle.c (demangle_command): Constify.
2645 2017-09-27 Tom Tromey <tom@tromey.com>
2647 * progspace.c (maintenance_info_program_spaces_command):
2650 2017-09-27 Tom Tromey <tom@tromey.com>
2652 * compile/compile.c (check_raw_argument, compile_file_command)
2653 (compile_code_command, compile_print_command): Constify.
2655 2017-09-27 Tom Tromey <tom@tromey.com>
2657 * reggroups.c (maintenance_print_reggroups): Constify.
2659 2017-09-27 Tom Tromey <tom@tromey.com>
2661 * dwarf2read.c (save_gdb_index_command): Constify.
2663 2017-09-27 Tom Tromey <tom@tromey.com>
2665 * stap-probe.c (info_probes_stap_command): Constify.
2667 2017-09-27 Tom Tromey <tom@tromey.com>
2669 * fork-child.c (unset_exec_wrapper_command): Constify.
2671 2017-09-27 Tom Tromey <tom@tromey.com>
2673 * btrace.c (get_uint, get_context_size, no_chunk)
2674 (maint_btrace_packet_history_cmd)
2675 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2676 (maint_info_btrace_cmd): Constify.
2678 2017-09-27 Tom Tromey <tom@tromey.com>
2680 * reverse.c (delete_bookmark_command): Constify.
2682 2017-09-27 Tom Tromey <tom@tromey.com>
2684 * remote.c (set_memory_packet_size)
2685 (set_memory_write_packet_size, show_memory_write_packet_size)
2686 (set_memory_read_packet_size, show_memory_read_packet_size)
2687 (compare_sections_command, packet_command, remote_put_command)
2688 (remote_get_command, remote_delete_command): Constify.
2690 2017-09-27 Tom Tromey <tom@tromey.com>
2692 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2693 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2694 (set_mipsfpu_auto_command): Constify.
2696 2017-09-27 Tom Tromey <tom@tromey.com>
2698 * cli/cli-cmds.h (cd_command): Constify.
2699 * cli/cli-cmds.c (cd_command): Constify.
2701 2017-09-27 Tom Tromey <tom@tromey.com>
2703 * thread.c (thread_name_command, thread_find_command): Constify.
2705 2017-09-27 Tom Tromey <tom@tromey.com>
2707 * probe.c (enable_probes_command, disable_probes_command):
2710 2017-09-27 Tom Tromey <tom@tromey.com>
2712 * symfile.c (symbol_file_command): Constify.
2713 * gdbcore.h (deprecated_file_changed_hook): Constify.
2714 * exec.c (deprecated_file_changed_hook, exec_file_command)
2715 (file_command): Constify.
2716 * defs.h (symbol_file_command): Constify.
2718 2017-09-27 Tom Tromey <tom@tromey.com>
2720 * remote-fileio.c (set_system_call_allowed)
2721 (show_system_call_allowed): Constify.
2723 2017-09-27 Tom Tromey <tom@tromey.com>
2725 * tracepoint.c (delete_trace_variable_command)
2726 (tfind_end_command, tfind_start_command, tfind_pc_command)
2727 (tfind_tracepoint_command, tfind_line_command)
2728 (tfind_range_command, tfind_outside_command): Constify.
2730 2017-09-27 Tom Tromey <tom@tromey.com>
2732 * ax-gdb.c (maint_agent_printf_command, agent_command)
2733 (agent_eval_command): Constify.
2735 2017-09-27 Tom Tromey <tom@tromey.com>
2737 * tracepoint.c (info_scope_command): Constify.
2738 * python/python.c (gdbpy_decode_line): Constify.
2739 * python/py-breakpoint.c (bppy_init): Constify.
2740 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2741 * location.h: (new_linespec_location)
2742 (string_to_event_location_basic, string_to_event_location):
2744 * location.c (new_linespec_location)
2745 (string_to_event_location_basic, string_to_event_location):
2747 * linespec.h (decode_line_with_current_source)
2748 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2749 * linespec.c (linespec_lex_to_end)
2750 (decode_line_with_current_source)
2751 (decode_line_with_last_displayed): Constify.
2752 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2754 * cli/cli-cmds.c (edit_command, list_command): Constify.
2755 * breakpoint.h (until_break_command, watch_command_wrapper)
2756 (awatch_command_wrapper, rwatch_command_wrapper)
2757 (init_ada_exception_breakpoint): Constify.
2758 * breakpoint.c (break_command_1, dprintf_command)
2759 (break_range_command, watch_command_wrapper)
2760 (rwatch_command_wrapper, awatch_command_wrapper)
2761 (until_break_command, init_ada_exception_breakpoint)
2762 (strace_marker_create_sals_from_location, trace_command)
2763 (ftrace_command, strace_command, struct tracepoint): Constify.
2764 * ax-gdb.c (agent_command_1): Constify.
2765 * ada-lang.c (ada_exception_sal): Constify.
2767 2017-09-27 Tom Tromey <tom@tromey.com>
2769 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2770 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2771 (get_context_size, no_chunk, get_insn_history_modifiers)
2772 (cmd_record_insn_history, get_call_history_modifiers)
2773 (cmd_record_call_history): Constify.
2775 2017-09-27 Tom Tromey <tom@tromey.com>
2777 * source.c (show_substitute_path_command)
2778 (unset_substitute_path_command, set_substitute_path_command):
2781 2017-09-27 Tom Tromey <tom@tromey.com>
2783 * typeprint.c (maintenance_print_type): Constify.
2784 * maint.c (maintenance_dump_me, maintenance_demangle)
2785 (maintenance_time_display, maintenance_info_sections)
2786 (maintenance_print_statistics, maintenance_deprecate)
2787 (maintenance_undeprecate): Constify.
2788 (maintenance_do_deprecate): Constify. Use std::string.
2789 (maintenance_selftest): Constify.
2790 * gdbtypes.h (maintenance_print_type): Constify.
2792 2017-09-27 Tom Tromey <tom@tromey.com>
2794 * hppa-tdep.c (unwind_command): Constify.
2796 2017-09-27 Tom Tromey <tom@tromey.com>
2798 * target-descriptions.c (unset_tdesc_filename_cmd)
2799 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2802 2017-09-27 Tom Tromey <tom@tromey.com>
2804 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2806 2017-09-27 Tom Tromey <tom@tromey.com>
2808 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2810 2017-09-27 Tom Tromey <tom@tromey.com>
2812 * tui/tui-regs.c (tui_reg_command): Constify.
2814 2017-09-27 Tom Tromey <tom@tromey.com>
2816 * skip.c (skip_file_command, skip_function_command)
2817 (skip_enable_command, skip_disable_command, skip_delete_command):
2820 2017-09-27 Tom Tromey <tom@tromey.com>
2822 * record-btrace.c (cmd_record_btrace_bts_start)
2823 (cmd_record_btrace_pt_start): Constify.
2825 2017-09-27 Tom Tromey <tom@tromey.com>
2827 * symmisc.c (maintenance_print_symbols)
2828 (maintenance_print_msymbols, maintenance_print_objfiles)
2829 (maintenance_info_symtabs, maintenance_check_symtabs)
2830 (maintenance_expand_symtabs, maintenance_info_line_tables):
2833 2017-09-27 Tom Tromey <tom@tromey.com>
2835 * top.c (new_ui_command): Constify.
2837 2017-09-27 Tom Tromey <tom@tromey.com>
2839 * symfile.c (add_symbol_file_command)
2840 (remove_symbol_file_command, list_overlays_command)
2841 (map_overlay_command, unmap_overlay_command)
2842 (overlay_auto_command, overlay_manual_command)
2843 (overlay_off_command, overlay_load_command): Constify.
2845 2017-09-27 Tom Tromey <tom@tromey.com>
2847 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2848 (info_spu_mailbox_command, info_spu_dma_command)
2849 (info_spu_proxydma_command): Constify.
2851 2017-09-27 Tom Tromey <tom@tromey.com>
2853 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2855 2017-09-27 Tom Tromey <tom@tromey.com>
2857 * cli/cli-script.c (user_defined_command): Constify.
2859 2017-09-27 Tom Tromey <tom@tromey.com>
2861 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2862 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2863 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2864 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2865 (dump_binary_value, append_binary_memory, append_binary_value):
2867 (struct dump_context) <func>: Constify.
2868 (add_dump_command): Update.
2870 2017-09-27 Tom Tromey <tom@tromey.com>
2872 * cli/cli-cmds.c (show_version, show_configuration)
2873 (source_command, show_user): Constify.
2875 2017-09-27 Tom Tromey <tom@tromey.com>
2877 * target.c (maintenance_print_target_stack): Constify.
2879 2017-09-27 Tom Tromey <tom@tromey.com>
2881 * interps.c (interpreter_exec_cmd): Constify.
2883 2017-09-27 Tom Tromey <tom@tromey.com>
2885 * record-full.c (cmd_record_full_restore): Constify.
2887 2017-09-27 Tom Tromey <tom@tromey.com>
2889 * memattr.c (enable_mem_command, disable_mem_command)
2890 (delete_mem_command): Constify.
2892 2017-09-27 Tom Tromey <tom@tromey.com>
2894 * value.c (show_convenience): Constify.
2896 2017-09-27 Tom Tromey <tom@tromey.com>
2898 * gdbcore.h (core_file_command): Update.
2899 * corefile.c (core_file_command): Constify.
2901 2017-09-27 Tom Tromey <tom@tromey.com>
2903 * user-regs.c (maintenance_print_user_registers): Constify.
2905 2017-09-27 Tom Tromey <tom@tromey.com>
2907 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2909 2017-09-27 Tom Tromey <tom@tromey.com>
2911 * cp-support.c (first_component_command): Constify.
2913 2017-09-27 Tom Tromey <tom@tromey.com>
2915 * psymtab.c (maintenance_print_psymbols)
2916 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2919 2017-09-27 Tom Tromey <tom@tromey.com>
2921 * windows-tdep.c (display_tib): Constify.
2923 2017-09-27 Tom Tromey <tom@tromey.com>
2925 * linux-fork.c (delete_checkpoint_command)
2926 (detach_checkpoint_command): Constify.
2928 2017-09-27 Tom Tromey <tom@tromey.com>
2930 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2932 2017-09-27 Tom Tromey <tom@tromey.com>
2934 * arc-tdep.c (dump_arc_instruction_command): Constify.
2936 2017-09-27 Tom Tromey <tom@tromey.com>
2938 * valprint.c (set_radix, show_radix): Constify.
2940 2017-09-27 Tom Tromey <tom@tromey.com>
2942 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2944 2017-09-27 Tom Tromey <tom@tromey.com>
2946 * command.h (not_just_help_class_command): Update.
2947 * cli/cli-decode.h (not_just_help_class_command): Update.
2948 * cli/cli-decode.c (not_just_help_class_command): Constify.
2950 2017-09-27 Tom Tromey <tom@tromey.com>
2952 * gdb_bfd.c (maintenance_info_bfds): Constify.
2954 2017-09-27 Tom Tromey <tom@tromey.com>
2956 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2958 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2959 (do_const_cfunc): New function.
2960 (cmd_cfunc_eq): New overload.
2961 (cli_user_command_p): Check do_const_cfunc.
2962 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2964 * command.h (add_cmd): Add const overload and no-function
2966 (set_cmd_cfunc): Add const overload.
2967 (cmd_const_cfunc_ftype): Declare.
2968 (cmd_cfunc_eq): Add const overload.
2969 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2970 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2973 2017-09-27 Tom Tromey <tom@tromey.com>
2975 * macroexp.c (get_next_token_for_substitution): New function.
2976 (substitute_args): Call it. Check for __VA_OPT__.
2978 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2979 Pedro Alves <palves@redhat.com>
2981 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2982 producer_is_icc_lt_14.
2983 (producer_is_icc_lt_14): New function.
2984 (check_producer): Add code for checking version of ICC.
2985 (producer_is_icc): Move to producer.c.
2986 (read_structure_type): Restrict ICC workaround to ICC<14.
2987 * producer.c: Include selftest.h.
2988 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2990 * producer.h (producer_is_icc): New declaration.
2992 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2994 * Makefile.in (SFILES): Add producer.c.
2995 (COMMON_OBS): Add producer.o
2996 * amd64-tdep.c (producer.h): Add new include.
2997 * dwarf2read.c (producer.h): Add new include.
2998 * producer.c: New file.
2999 * producer.h: New file.
3000 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
3002 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
3005 2017-09-26 Matthias Klose <doko@ubuntu.com>
3007 * configure.ac: Search ncursesw before ncurses.
3008 Check ncursesw/ncurses.h before ncurses/ncurses.h.
3009 * gdb_curses.h: Include <ncursesw/ncurses.h>
3010 * config.in, configure: Regenerate.
3012 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3015 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
3017 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3018 Remove i386sol2 support.
3019 * configure.nat <i386sol2>: Remove.
3020 <sol2-64>: Fold into ...
3022 Move common settings to default section.
3024 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3025 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3026 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3027 <i[34567]86-*-solaris*>: Remove.
3028 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3030 * configure.ac: Remove wctype in libw check.
3031 (_MSE_INT_H): Don't define on Solaris 7-9.
3032 <solaris*>: Remove libthread_db.so.1 check.
3033 * configure: Regenerate.
3034 * config.in: Regenerate.
3036 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3037 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3038 (gdb_ps_size_t): Remove.
3039 Use base types in users.
3040 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3042 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3044 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3047 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3048 (adi_is_addr_mapped): Likewise.
3049 (PSR_ICC): Don't redefine.
3050 (PSR_IMPL): Likewise.
3052 2017-09-25 Tom Tromey <tom@tromey.com>
3054 * regcache.c (regcache::dump): Use string_printf.
3056 2017-09-25 Tom Tromey <tom@tromey.com>
3058 * regcache.c (class regcache_invalidator): New.
3059 (struct register_to_invalidate): Remove.
3060 (make_cleanup_regcache_invalidate): Remove.
3061 (regcache::raw_write): Use regcache_invalidator.
3063 2017-09-25 Tom Tromey <tom@tromey.com>
3065 * spu-tdep.c (spu2ppu_sniffer): Update.
3066 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3067 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3069 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3070 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3071 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3072 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3073 (frame_pop): Update.
3075 2017-09-25 Tom Tromey <tom@tromey.com>
3077 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3078 * regcache.h (regcache_xfree): Don't declare.
3079 * regcache.c (regcache_xfree): Remove.
3080 (do_regcache_xfree): Use delete.
3081 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3082 * linux-fork.c (free_fork): Use delete.
3083 (fork_save_infrun_state): Likewise.
3084 * jit.c (jit_dealloc_cache): Use delete.
3085 * infrun.c (discard_infcall_suspend_state): Use delete.
3087 2017-09-25 Tom Tromey <tom@tromey.com>
3089 * regcache.h (regcache_xmalloc): Don't declare.
3090 (regcache_raw_set_cached_value): Update comment.
3091 * regcache.c (regcache_xmalloc): Remove.
3092 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3093 * jit.c (jit_frame_sniffer): Use new.
3094 * frame.c (frame_save_as_regcache): Use new.
3096 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3098 * NEWS: Advertise support for guarded-storage registers on IBM z.
3100 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3102 * s390-linux-nat.c (have_regset_gs): New static variable.
3103 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3104 control block and guarded-storage broadcast control regsets.
3105 (s390_read_description): Detect whether the target has
3106 guarded-storage support, return appropriate tdesc.
3107 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3108 (features/s390x-gs-linux64.c): Likewise.
3109 (struct gdbarch_tdep) <have_gs>: New field.
3110 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3111 (s390_gsbc_regset): New variables.
3112 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3113 and s390_gsbc_regset, if applicable.
3114 (s390_core_read_description): Check whether core file was from a
3115 target with guarded-storage support; include appropriate regsets.
3116 (s390_gdbarch_init): Add registers for guarded-storage support.
3117 (_initialize_s390_tdep): Initialize new target descriptions that
3118 include registers for guarded-storage support.
3119 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3120 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3121 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3122 (S390_NUM_REGS): Adjust macro definition.
3123 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3124 (tdesc_s390x_gs_linux64): New declarations.
3126 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3128 * features/s390-gs-linux64.xml: New file.
3129 * features/s390-gs.xml: New file.
3130 * features/s390-gsbc.xml: New file.
3131 * features/s390x-gs-linux64.xml: New file.
3132 * features/Makefile (WHICH): Add s390-gs-linux64 and
3134 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3135 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3136 * features/s390-gs-linux64.c: New generated file.
3137 * features/s390x-gs-linux64.c: New file.
3138 * regformats/s390-gs-linux64.dat: New file.
3139 * regformats/s390x-gs-linux64.dat: New file.
3141 2017-09-23 Tom Tromey <tom@tromey.com>
3143 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3145 2017-09-22 Tom Tromey <tom@tromey.com>
3147 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3148 type to scoped_restore_tmpl.
3149 <scoped_input_handler>: Initialize m_quit_handler directly.
3151 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3153 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3154 (cd_command): Likewise. Free "current_directory" before
3156 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3157 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3158 * top.c (gdb_dirbuf): Remove global declaration.
3159 * top.h (gdb_dirbuf): Likewise.
3161 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3163 * gnulib/aclocal.m4: Regenerate.
3164 * gnulib/config.in: Regenerate.
3165 * gnulib/configure: Regenerate.
3166 * gnulib/import/Makefile.am: Regenerate.
3167 * gnulib/import/Makefile.in: Regenerate.
3168 * gnulib/import/assure.h: New file.
3169 * gnulib/import/at-func.c: Likewise
3170 * gnulib/import/chdir-long.c: New file.
3171 * gnulib/import/chdir-long.h: New file.
3172 * gnulib/import/cloexec.c: New file.
3173 * gnulib/import/cloexec.h: New file.
3174 * gnulib/import/close.c: New file.
3175 * gnulib/import/closedir.c: New file.
3176 * gnulib/import/dirent-private.h: New file.
3177 * gnulib/import/dup-safer.c: New file.
3178 * gnulib/import/dup.c: New file.
3179 * gnulib/import/dup2.c: New file.
3180 * gnulib/import/error.c: New file.
3181 * gnulib/import/error.h: New file.
3182 * gnulib/import/exitfail.c: New file.
3183 * gnulib/import/exitfail.h: New file.
3184 * gnulib/import/fchdir.c: New file.
3185 * gnulib/import/fcntl.c: New file.
3186 * gnulib/import/fcntl.in.h: New file.
3187 * gnulib/import/fd-hook.c: New file.
3188 * gnulib/import/fd-hook.h: New file.
3189 * gnulib/import/fd-safer.c: New file.
3190 * gnulib/import/fdopendir.c: New file.
3191 * gnulib/import/filename.h: New file.
3192 * gnulib/import/filenamecat-lgpl.c: New file.
3193 * gnulib/import/filenamecat.h: New file.
3194 * gnulib/import/fstat.c: New file.
3195 * gnulib/import/fstatat.c: New file.
3196 * gnulib/import/getcwd-lgpl.c: New file.
3197 * gnulib/import/getcwd.c: New file.
3198 * gnulib/import/getdtablesize.c: New file.
3199 * gnulib/import/getlogin_r.c: New file.
3200 * gnulib/import/getprogname.c: New file.
3201 * gnulib/import/getprogname.h: New file.
3202 * gnulib/import/gettext.h: New file.
3203 * gnulib/import/glob-libc.h: New file.
3204 * gnulib/import/glob.c: New file.
3205 * gnulib/import/glob.in.h: New file.
3206 * gnulib/import/intprops.h: New file.
3207 * gnulib/import/m4/chdir-long.m4: New file.
3208 * gnulib/import/m4/close.m4: New file.
3209 * gnulib/import/m4/closedir.m4: New file.
3210 * gnulib/import/m4/d-ino.m4: New file.
3211 * gnulib/import/m4/d-type.m4: New file.
3212 * gnulib/import/m4/dup.m4: New file.
3213 * gnulib/import/m4/dup2.m4: New file.
3214 * gnulib/import/m4/error.m4: New file.
3215 * gnulib/import/m4/fchdir.m4: New file.
3216 * gnulib/import/m4/fcntl.m4: New file.
3217 * gnulib/import/m4/fcntl_h.m4: New file.
3218 * gnulib/import/m4/fdopendir.m4: New file.
3219 * gnulib/import/m4/filenamecat.m4: New file.
3220 * gnulib/import/m4/fstat.m4: New file.
3221 * gnulib/import/m4/fstatat.m4: New file.
3222 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3223 * gnulib/import/m4/getcwd-path-max.m4: New file.
3224 * gnulib/import/m4/getcwd.m4: New file.
3225 * gnulib/import/m4/getdtablesize.m4: New file.
3226 * gnulib/import/m4/getlogin_r.m4: New file.
3227 * gnulib/import/m4/getprogname.m4: New file.
3228 * gnulib/import/m4/glob.m4: New file.
3229 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3230 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3231 * gnulib/import/m4/mempcpy.m4: New file.
3232 * gnulib/import/m4/memrchr.m4: New file.
3233 * gnulib/import/m4/mode_t.m4: New file.
3234 * gnulib/import/m4/msvc-inval.m4: New file.
3235 * gnulib/import/m4/msvc-nothrow.m4: New file.
3236 * gnulib/import/m4/open.m4: New file.
3237 * gnulib/import/m4/openat.m4: New file.
3238 * gnulib/import/m4/opendir.m4: New file.
3239 * gnulib/import/m4/readdir.m4: New file.
3240 * gnulib/import/m4/realloc.m4: New file.
3241 * gnulib/import/m4/rewinddir.m4: New file.
3242 * gnulib/import/m4/save-cwd.m4: New file.
3243 * gnulib/import/m4/strdup.m4: New file.
3244 * gnulib/import/m4/strerror.m4: New file.
3245 * gnulib/import/m4/unistd-safer.m4: New file.
3246 * gnulib/import/mempcpy.c: New file.
3247 * gnulib/import/memrchr.c: New file.
3248 * gnulib/import/msvc-inval.c: New file.
3249 * gnulib/import/msvc-inval.h: New file.
3250 * gnulib/import/msvc-nothrow.c: New file.
3251 * gnulib/import/msvc-nothrow.h: New file.
3252 * gnulib/import/open.c: New file.
3253 * gnulib/import/openat-die.c: New file.
3254 * gnulib/import/openat-priv.h: New file.
3255 * gnulib/import/openat-proc.c: New file.
3256 * gnulib/import/openat.c: New file.
3257 * gnulib/import/openat.h: New file.
3258 * gnulib/import/opendir.c: New file.
3259 * gnulib/import/pipe-safer.c: New file.
3260 * gnulib/import/readdir.c: New file.
3261 * gnulib/import/realloc.c: New file.
3262 * gnulib/import/rewinddir.c: New file.
3263 * gnulib/import/save-cwd.c: New file.
3264 * gnulib/import/save-cwd.h: New file.
3265 * gnulib/import/strdup.c: New file.
3266 * gnulib/import/strerror-override.c: New file.
3267 * gnulib/import/strerror-override.h: New file.
3268 * gnulib/import/strerror.c: New file.
3269 * gnulib/import/unistd--.h: New file.
3270 * gnulib/import/unistd-safer.h: New file.
3271 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3272 "getcwd" and "glob".
3273 * ser-tcp.c: Undefine "close" before redefining it.
3275 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3277 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3280 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3282 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3283 <sol2,sparc>: Likewise.
3284 <sol2-64,i386>: Likewise.
3286 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3287 -Wdeprecated-declarations on *-*-solaris*.
3288 * configure: Regenerate.
3290 * procfs.c: Include "nat/inferior.h".
3291 (procfs_info_proc): Fix typo.
3293 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3295 * remote.c (vector): Include.
3296 (struct private_thread_info): Add field, thread_handle.
3297 (free_private_thread_info): Deallocate storage associated with
3299 (get_private_info_thread): Initialize `thread_handle' field.
3300 (struct thread_item): Add field, thread_handle.
3301 (clear_threads_listing_context): Deallocate storage associated
3303 (start_thread): Add support for "handle" attribute.
3304 (thread_attributes): Add "handle".
3305 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3307 (remote_update_thread_list): Update thread_handle.
3308 (remote_thread_handle_to_thread_info): New function.
3309 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3311 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3313 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3315 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3316 * python/python-internal.h (thread_object_type): Declare.
3318 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3320 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3321 (target_thread_handle_to_thread_info): Declare.
3322 * target.c (target_thread_handle_to_thread_info): New function.
3323 * target-delegates.c: Regenerate.
3324 * gdbthread.h (find_thread_by_handle): Declare.
3325 * thread.c (find_thread_by_handle): New function.
3326 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3328 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3330 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3332 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3334 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3336 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3338 2017-09-21 Yao Qi <yao.qi@linaro.org>
3340 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3343 2017-09-20 Tom Tromey <tom@tromey.com>
3345 * breakpoint.c (struct counted_command_line): Remove.
3346 (breakpoint_commands): Update.
3347 (alloc_counted_command_line, incref_counted_command_line)
3348 (decref_counted_command_line, do_cleanup_counted_command_line)
3349 (make_cleanup_decref_counted_command_line): Remove.
3350 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3351 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3352 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3353 (save_breakpoints): Update.
3354 * breakpoint.h (counted_command_line): Now a typedef to
3356 (struct breakpoint) <commands>: Now a counted_command_line.
3357 (struct bpstats) <command>: Likewise.
3359 2017-09-20 Tom Tromey <tom@tromey.com>
3361 * breakpoint.c (struct commands_info, do_map_commands_command):
3363 (commands_command_1): Update.
3364 (iterate_over_related_breakpoints): Take a function_view.
3365 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3366 (delete_command): Update.
3367 (map_breakpoint_numbers): Take a function_view.
3368 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3369 (disable_command): Update.
3370 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3371 (enable_command): Update.
3372 (struct disp_data, do_enable_breakpoint_disp)
3373 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3374 (do_map_enable_delete_breakpoint): Remove.
3375 (enable_once_command, enable_count_command, enable_delete_command)
3376 (delete_trace_variable_command): Update.
3378 2017-09-20 Tom Tromey <tom@tromey.com>
3380 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3381 (bpstat_clear): Use delete.
3382 (bpstats): New constructors.
3383 (bpstat_copy, bpstat_stop_status): Use new.
3384 (dprintf_after_condition_true): Update.
3385 * breakpoint.h (bpstats::bpstats): Add constructors.
3386 (bpstats::~bpstats): Add destructor.
3388 2017-09-20 Pedro Alves <palves@redhat.com>
3390 * eval.c (make_params): Delete, refactored as ...
3391 (class fake_method): ... this new type's ctor.
3392 (fake_method::~fake_method): New.
3393 (evaluate_subexp_standard): Use 'fake_method'.
3395 2017-09-20 Tom Tromey <tom@tromey.com>
3397 * windows-nat.c (get_windows_debug_event, windows_wait)
3398 (do_initial_windows_stuff, windows_attach): Update.
3399 * utils.c (vwarning, internal_vproblem): Update.
3400 (ui_unregister_input_event_handler_cleanup)
3401 (prepare_to_handle_input): Remove.
3402 (class scoped_input_handler): New.
3403 (defaulted_query, prompt_for_continue): Update.
3404 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3406 * top.c (undo_terminal_modifications_before_exit): Update.
3407 * target/target.h (target_terminal_init, target_terminal_inferior)
3408 (target_terminal_ours): Don't declare.
3409 (class target_terminal): New.
3410 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3411 (target_terminal_ours_for_output)
3412 (make_cleanup_restore_target_terminal): Don't declare.
3413 (target_terminal_info): Remove.
3414 * target.c (enum terminal_state, terminal_state): Remove.
3415 (target_terminal::terminal_state): Define.
3416 (target_terminal::init): Rename from target_terminal_init.
3417 (target_terminal::inferior): Rename from
3418 target_terminal_inferior.
3419 (target_terminal::ours): Rename from target_terminal_ours.
3420 (target_terminal::ours_for_output): Rename from
3421 target_terminal_ours_for_output.
3422 (target_terminal::info): New method.
3423 (cleanup_restore_target_terminal)
3424 (make_cleanup_restore_target_terminal): Remove.
3425 * solib.c (handle_solib_event): Update.
3426 * remote.c (remote_serial_quit_handler): Update.
3427 (remote_terminal_inferior, remote_wait_as): Update.
3428 * record-full.c (record_full_wait_1): Update.
3429 * nto-procfs.c (procfs_create_inferior): Update.
3430 * nat/fork-inferior.c (startup_inferior): Update.
3431 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3432 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3433 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3434 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3435 (mi_breakpoint_created, mi_breakpoint_deleted)
3436 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3437 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3438 (mi_user_selected_context_changed, report_initial_inferior):
3440 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3441 (linux_nat_terminal_inferior): Update.
3442 * infrun.c (follow_fork_inferior)
3443 (handle_vfork_child_exec_or_exit, do_target_resume)
3444 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3445 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3447 * inflow.c (child_terminal_init, info_terminal_command): Update.
3448 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3449 (attach_command): Update.
3450 * infcall.c (call_thread_fsm_should_stop): Update.
3451 * gnu-nat.c (gnu_attach): Update.
3452 * extension.c (struct active_ext_lang_state)
3453 (restore_active_ext_lang): Update.
3454 * exceptions.c (print_flush): Update.
3455 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3456 (struct quit_handler_cleanup_data, restore_quit_handler)
3457 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3459 * cp-support.c (gdb_demangle): Update.
3460 * breakpoint.c (update_inserted_breakpoint_locations)
3461 (insert_breakpoint_locations, handle_jit_event)
3462 (disable_breakpoints_in_unloaded_shlib): Update.
3463 * annotate.c (annotate_breakpoints_invalid)
3464 (annotate_frames_invalid): Update.
3466 2017-09-20 Tom Tromey <tom@tromey.com>
3468 * main.c (catch_command_errors): Rename from
3469 catch_command_errors_const.
3470 (captured_main_1): Update.
3472 2017-09-20 Pedro Alves <palves@redhat.com>
3474 * cli/cli-cmds.c (list_command): Use print_sal_location.
3475 (print_sal_location): New function.
3476 (ambiguous_line_spec): Use print_sal_location.
3477 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3478 * symtab.c (find_function_start_sal): Likewise.
3479 * symtab.h (symtab_and_line::symbol): New field.
3481 2017-09-20 Pedro Alves <palves@redhat.com>
3483 * linespec.c (minsym_found): Handle non-text minsyms.
3484 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3486 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3488 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3491 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3493 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3494 vmovups instead vmovaps.
3495 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3497 2017-09-19 John Baldwin <jhb@FreeBSD.org>
3499 * NEWS (Changes since GDB 8.0): Add starti.
3500 * infcmd.c (enum run_break): New.
3501 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3503 (run_command): Use enum run_how.
3504 (start_command): Likewise.
3505 (starti_command): New function.
3506 (RUN_ARGS_HELP): New macro.
3507 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3508 commands. Add starti command.
3510 2017-09-19 Yao Qi <yao.qi@linaro.org>
3512 * Makefile.in (monitor.o): Remove the rule.
3514 2017-09-19 Yao Qi <yao.qi@linaro.org>
3516 * annotate.h (struct annotate_arg_emitter): Use
3517 DISABLE_COPY_AND_ASSIGN.
3518 * common/refcounted-object.h (refcounted_object): Likewise.
3519 * completer.h (struct completion_result): Likewise.
3520 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3521 * filename-seen-cache.h (filename_seen_cache): Likewise.
3522 * gdbcore.h (thread_section_name): Likewise.
3523 * gdb_regex.h (compiled_regex): Likewise.
3524 * gdbthread.h (scoped_restore_current_thread): Likewise.
3525 * inferior.h (scoped_restore_current_inferior): Likewise.
3526 * jit.c (jit_reader): Likewise.
3527 * linespec.h (struct linespec_result): Likewise.
3528 * mi/mi-parse.h (struct mi_parse): Likewise.
3529 * nat/fork-inferior.c (execv_argv): Likewise.
3530 * progspace.h (scoped_restore_current_program_space): Likewise.
3531 * python/python-internal.h (class gdbpy_enter): Likewise.
3532 * regcache.h (regcache): Likewise.
3533 * target-descriptions.c (struct tdesc_reg): Likewise.
3534 (struct tdesc_type): Likewise.
3535 (struct tdesc_feature): Likewise.
3536 * ui-out.h (ui_out_emit_type): Likewise.
3538 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3540 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3541 label abort_expression.
3543 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3545 * common/buffer.c (buffer_xml_printf): Adjust.
3546 * common/xml-utils.c (xml_escape_text): Change return type to
3547 std::string, update code accordingly.
3548 * common/xml-utils.h (xml_escape_text): Change return type to
3550 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3551 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3552 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3555 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3557 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3558 (SUBDIR_UNITTESTS_OBS): Add new object file.
3559 * unittests/xml-utils-selftests.c: New file.
3561 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3563 * common/selftest.h (selftest): New struct/interface.
3564 (register_test): Add name parameter, add new overload.
3565 (run_tests): Add filter parameter.
3566 (for_each_selftest_ftype): New typedef.
3567 (for_each_selftest): New declaration.
3568 * common/selftest.c (tests): Change type to
3569 map<string, unique_ptr<selftest>>.
3570 (simple_selftest): New struct.
3571 (register_test): New function.
3572 (register_test): Add name parameter and use it.
3573 (run_tests): Add filter parameter and use it. Add prints.
3574 Adjust to vector -> map change.
3575 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3576 registering selftests.
3577 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3578 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3579 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3580 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3581 * findvar.c (_initialize_findvar): Likewise.
3582 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3583 * maint.c (maintenance_selftest): Update call to run_tests.
3584 (maintenance_info_selftests): New function.
3585 (_initialize_maint_cmds): Register "maintenance info selftests"
3586 command. Update "maintenance selftest" doc.
3587 * regcache.c (_initialize_regcache): Add names when registering
3589 * rust-exp.y (_initialize_rust_exp): Likewise.
3590 * selftest-arch.c (gdbarch_selftest): New struct.
3591 (gdbarch_tests): Remove.
3592 (register_test_foreach_arch): Add name parameter. Call
3594 (tests_with_arch): Remove, move most content to
3595 gdbarch_selftest::operator().
3596 (_initialize_selftests_foreach_arch): Remove.
3597 * selftest-arch.h (register_test_foreach_arch): Add name
3599 (run_tests_with_arch): New declaration.
3600 * utils-selftests.c (_initialize_utils_selftests): Add names
3601 when registering selftests.
3602 * utils.c (_initialize_utils): Likewise.
3603 * unittests/array-view-selftests.c
3604 (_initialize_array_view_selftests): Likewise.
3605 * unittests/environ-selftests.c (_initialize_environ_selftests):
3607 * unittests/function-view-selftests.c
3608 (_initialize_function_view_selftests): Likewise.
3609 * unittests/offset-type-selftests.c
3610 (_initialize_offset_type_selftests): Likewise.
3611 * unittests/optional-selftests.c
3612 (_initialize_optional_selftests): Likewise.
3613 * unittests/scoped_restore-selftests.c
3614 (_initialize_scoped_restore_selftests): Likewise.
3615 * NEWS: Document "maintenance selftest" and "maint info
3618 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3620 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3623 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3625 * mi/mi-main.c (mi_load_progress): Make uiout variable
3628 2017-09-15 Pedro Alves <palves@redhat.com>
3630 * compile/compile-c-types.c (convert_enum, convert_int)
3631 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3633 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3635 * dwarf2read.c (copy_string): Remove.
3636 (parse_macro_definition): Replace copy_string with savestring.
3638 2017-09-15 Yao Qi <yao.qi@linaro.org>
3640 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3642 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3644 (i[34567]86-*-linux*): Likewise.
3646 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3648 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3649 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3650 <stack>: Change type to std::vector.
3651 <stack_len, stack_allocated>: Remove.
3652 <grow_stack>: Remove.
3653 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3654 (dwarf_expr_context::~dwarf_expr_context): Remove.
3655 (dwarf_expr_context::grow_stack): Remove.
3656 (dwarf_expr_context::push): Adjust.
3657 (dwarf_expr_context::pop): Adjust.
3658 (dwarf_expr_context::fetch): Adjust.
3659 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3660 (dwarf_expr_context::stack_empty_p): Adjust.
3661 (dwarf_expr_context::execute_stack_op): Adjust.
3663 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3665 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3666 return type to bool.
3667 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3669 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3671 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3672 Change type to bool.
3673 (dwarf_stack_value) <in_stack_memory>: Likewise.
3674 (dwarf_expr_context) <push_address>: Change parameter type to
3676 <fetch_in_stack_memory>: Change return type to bool.
3677 <push>: Change parameter type to bool.
3678 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3680 (dwarf_expr_context::push_address): Likewise.
3681 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3683 (dwarf_expr_context::execute_stack_op): Adjust.
3684 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3686 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3688 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3689 (struct dwarf_expr_context) <n_pieces>: Remove.
3690 <pieces>: Change type to std::vector.
3691 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3692 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3694 (dwarf_expr_context::add_piece): Adjust.
3695 * dwarf2loc.c (struct piece_closure): Initialize fields.
3697 <pieces>: Change type to std::vector.
3698 (allocate_piece_closure): Adjust, change parameter to
3699 std::vector rvalue and std::move it to piece_closure.
3700 (rw_pieced_value): Adjust.
3701 (check_pieced_synthetic_pointer): Adjust.
3702 (indirect_synthetic_pointer): Adjust.
3703 (coerce_pieced_ref): Adjust.
3704 (free_pieced_value_closure): Adjust. Use delete to free
3706 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3707 to allocate_piece_closure.
3708 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3710 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3712 * probe.h (probe_ops_cp): Remove typedef.
3713 (DEF_VEC_P (probe_ops_cp)): Remove.
3714 (all_probe_ops): Change type to std::vector.
3715 * probe.c (info_probes_for_ops): Adjust to vector change.
3716 (probe_linespec_to_ops): Likewise.
3717 (all_probe_ops): Change type to std::vector.
3718 (_initialize_probe): Adjust to vector change.
3719 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3720 * elfread.c (elf_get_probes): Likewise.
3721 * stap-probe.c (_initialize_stap_probe): Likewise.
3723 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3725 * probe.h (struct bound_probe): Define constructors.
3726 * probe.c (bound_probe_s): Remove typedef.
3727 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3728 (collect_probes): Change return type to std::vector, remove
3730 (compare_probes): Return bool, change parameter type. Change
3731 semantic to "less than".
3732 (gen_ui_out_table_header_info): Change parameter to std::vector
3734 (exists_probe_with_pops): Likewise.
3735 (info_probes_for_ops): Update to std::vector change.
3736 (enable_probes_command): Likewise.
3737 (disable_probes_command): Likewise.
3739 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3741 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3743 * probe.c (parse_probes_in_pspace): Update.
3744 (find_probes_in_objfile): Update.
3745 (find_probe_by_pc): Update.
3746 (collect_probes): Update.
3747 (probe_any_get_probes): Update.
3748 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3749 return type to reference to std::vector.
3750 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3751 std::vector and update.
3752 (dtrace_process_dof): Likewise.
3753 (dtrace_get_probes): Likewise.
3754 * elfread.c (elf_get_probes): Change return type to std::vector,
3755 store an std::vector in bfd_data.
3756 (probe_key_free): Update to std::vector.
3757 * stap-probe.c (handle_stap_probe): Change parameter to
3758 std::vector and update.
3759 (stap_get_probes): Likewise.
3760 * symfile-debug.c (debug_sym_get_probes): Change return type to
3761 std::vector and update.
3763 2017-09-11 Tom Tromey <tom@tromey.com>
3765 * breakpoint.c (program_breakpoint_here_p): Update.
3766 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3767 from make_show_memory_breakpoints_cleanup. Return a
3768 scoped_restore_tmpl<int>.
3769 (restore_show_memory_breakpoints): Remove.
3770 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3771 * mem-break.c (memory_validate_breakpoint): Update.
3772 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3773 (ia64_memory_remove_breakpoint): Update.
3774 (ia64_breakpoint_from_pc): Update.
3775 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3776 from make_show_memory_breakpoints_cleanup.
3778 2017-09-11 Tom Tromey <tom@tromey.com>
3780 * d-namespace.c (d_lookup_symbol): Use std::string.
3781 (find_symbol_in_baseclass): Likewise.
3783 2017-09-11 Tom Tromey <tom@tromey.com>
3785 * ctf.c (ctf_start): Use std::string.
3787 2017-09-11 Tom Tromey <tom@tromey.com>
3789 * ada-lang.c (is_known_support_routine): Update.
3790 (ada_unhandled_exception_name_addr_from_raise): Update.
3791 * guile/scm-frame.c (gdbscm_frame_name): Update.
3792 * python/py-frame.c (frapy_name): Update.
3793 (frapy_function): Update.
3794 * stack.h (find_frame_funname): Update.
3795 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3796 (print_frame): Update.
3798 2017-09-11 Tom Tromey <tom@tromey.com>
3800 * findcmd.c (put_bits): Take a gdb::byte_vector.
3801 (parse_find_args): Return gdb::byte_vector. "args" now const.
3802 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3804 (find_command): Update.
3806 2017-09-11 Tom Tromey <tom@tromey.com>
3808 * cli/cli-script.c (class scoped_restore_hook_in): New.
3809 (clear_hook_in_cleanup): Remove.
3810 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3811 scoped_restore_hook_in.
3813 2017-09-11 Tom Tromey <tom@tromey.com>
3815 * cli/cli-script.c (restore_interp): Remove.
3816 (read_command_lines): Use scoped_restore_interp.
3817 * interps.c (scoped_restore_interp::set_temp): Rename from
3819 * interps.h (class scoped_restore_interp): New.
3820 (interp_set_temp): Remove.
3822 2017-09-11 Tom Tromey <tom@tromey.com>
3824 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3825 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3826 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3828 (mi_cmd_break_insert_1): Update.
3829 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3832 2017-09-11 Tom Tromey <tom@tromey.com>
3834 * demangle.c (demangle_command): Update.
3835 * breakpoint.c (disable_command): Update.
3836 (enable_command): Update.
3837 (find_location_by_number): Make "number" const. Use
3839 * cli/cli-utils.c (extract_arg): Return std::string.
3840 * probe.c (parse_probe_linespec): Update. Change types.
3841 (collect_probes): Take string arguments.
3842 (parse_probe_linespec): Likewise.
3843 (info_probes_for_ops): Update.
3844 (enable_probes_command): Update.
3845 (disable_probes_command): Update.
3846 * break-catch-sig.c (catch_signal_split_args): Update.
3847 * mi/mi-parse.c (mi_parse): Update.
3849 2017-09-11 Tom Tromey <tom@tromey.com>
3851 * language.h (language_enum): Make argument const.
3852 * language.c (language_enum): Make argument const.
3854 2017-09-11 Tom Tromey <tom@tromey.com>
3856 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3858 (skip_to_space): Rename from skip_to_space_const.
3859 * common/common-utils.c (skip_to_space): New function.
3860 (skip_to_space): Rename from skip_to_space_const.
3861 * cli/cli-utils.h (get_number): Rename from get_number_const.
3862 (extract_arg): Rename from extract_arg_const.
3863 * cli/cli-utils.c (get_number): Rename from get_number_const.
3864 (extract_arg): Rename from extract_arg_const.
3865 (number_or_range_parser::get_number): Use ::get_number.
3866 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3867 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3868 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3869 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3870 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3871 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3872 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3873 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3875 2017-09-11 Tom Tromey <tom@tromey.com>
3877 * python/python.c (do_start_initialization): Use
3878 py-event-types.def to initialize types.
3879 Define all object type structures.
3880 * python/python-internal.h: Don't declare event initialization
3882 * python/py-threadevent.c (thread_event_object_type): Don't
3884 * python/py-stopevent.c (stop_event_object_type): Don't define.
3885 * python/py-signalevent.c (signal_event_object_type): Don't
3887 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3888 (clear_objfiles_event_object_type): Don't declare or define.
3889 * python/py-infevents.c (inferior_call_pre_event_object_type)
3890 (inferior_call_post_event_object_type)
3891 (register_changed_event_object_type)
3892 (memory_changed_event_object_type): Don't declare or define.
3893 * python/py-inferior.c (new_thread_event_object_type)
3894 (new_inferior_event_object_type)
3895 (inferior_deleted_event_object_type): Don't declare or define.
3896 * python/py-exitedevent.c (exited_event_object_type): Don't
3898 * python/py-evts.c (gdbpy_initialize_py_events): Use
3900 * python/py-events.h (thread_event_object_type): Don't declare.
3901 (events_object): Use py-all-events.def.
3902 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3904 * python/py-event-types.def: New file.
3905 * python/py-continueevent.c (create_continue_event_object): Don't
3907 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3909 * python/py-all-events.def: New file.
3911 2017-09-11 Tom Tromey <tom@tromey.com>
3913 * python/py-threadevent.c (create_thread_event_object): Return
3915 * python/py-stopevent.h (create_stop_event_object)
3916 (create_breakpoint_event_object, create_signal_event_object):
3918 * python/py-stopevent.c (create_stop_event_object): Return
3920 (emit_stop_event): Update.
3921 * python/py-signalevent.c (create_signal_event_object): Return
3923 * python/py-infevents.c (create_inferior_call_event_object):
3925 * python/py-event.h (create_event_object)
3926 (create_thread_event_object): Update.
3927 * python/py-event.c (create_event_object): Return gdbpy_ref.
3928 * python/py-continueevent.c: Return gdbpy_ref.
3929 * python/py-bpevent.c (create_breakpoint_event_object): Return
3932 2017-09-11 Tom Tromey <tom@tromey.com>
3936 * python/python.c (do_start_initialization): Initialize new event
3938 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3939 (gdbpy_initialize_inferior_deleted_event)
3940 (gdbpy_initialize_new_thread_event): Declare.
3941 * python/py-threadevent.c (create_thread_event_object): Add option
3943 * python/py-inferior.c (new_thread_event_object_type)
3944 (new_inferior_event_object_type)
3945 (inferior_deleted_event_object_type): Declare.
3946 (python_new_inferior, python_inferior_deleted): New functions.
3947 (add_thread_object): Emit new_thread event.
3948 (gdbpy_initialize_inferior): Attach new functions to corresponding
3950 (new_thread, new_inferior, inferior_deleted): Define new event
3952 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3954 * python/py-events.h (events_object) <new_inferior,
3955 inferior_deleted, new_thread>: New fields.
3956 * python/py-event.h (create_thread_event_breakpoint): Add optional
3959 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3961 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3962 check current_ui instead.
3963 (internal_vproblem): Likewise.
3965 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3967 * thread.c (print_thread_info_1): Remove unnecessary calls to
3968 uiout->is_mi_like_p.
3970 2017-09-09 Tom Tromey <tom@tromey.com>
3972 * namespace.h (add_using_directive): Update.
3973 * namespace.c (add_using_directive): Change type of excludes to
3975 * dwarf2read.c (read_import_statement): Use std::vector.
3976 (read_namespace): Update.
3977 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3979 2017-09-09 Tom Tromey <tom@tromey.com>
3981 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3983 2017-09-09 Tom Tromey <tom@tromey.com>
3985 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3987 2017-09-09 Tom Tromey <tom@tromey.com>
3989 * stack.c (func_command): Use gdb::def_vector.
3991 2017-09-09 Tom Tromey <tom@tromey.com>
3993 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3994 ui_out_emit_list, ui_out_emit_tuple.
3995 (mi_cmd_var_update): Likewise.
3997 2017-09-09 Tom Tromey <tom@tromey.com>
3999 * mi/mi-interp.c (mi_user_selected_context_changed): Use
4000 ui_out_redirect_pop.
4001 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
4002 ui_out_redirect_pop.
4003 * utils.c (do_ui_out_redirect_pop)
4004 (make_cleanup_ui_out_redirect_pop): Remove.
4005 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
4006 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
4007 * ui-out.h (ui_out_redirect_pop): New class.
4009 2017-09-09 Tom Tromey <tom@tromey.com>
4011 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
4012 (list_available_thread_groups, mi_cmd_list_thread_groups)
4013 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
4014 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
4017 2017-09-09 Tom Tromey <tom@tromey.com>
4019 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4022 2017-09-09 Tom Tromey <tom@tromey.com>
4024 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4025 * stack.c (print_frame): Use ui_out_emit_tuple.
4026 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4027 (info_spu_mailbox_command, info_spu_dma_command)
4028 (info_spu_proxydma_command): Likewise.
4029 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4030 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4031 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4033 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4035 2017-09-09 Tom Tromey <tom@tromey.com>
4037 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4038 (class ui_out_emit_table): Update comment.
4039 * ui-out.c (do_cleanup_table_end)
4040 (make_cleanup_ui_out_table_begin_end): Remove.
4041 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4042 (info_spu_dma_cmdlist): Likewise.
4043 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4044 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4047 2017-09-09 Tom Tromey <tom@tromey.com>
4049 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4050 ui_out_emit_list, gdb::optional.
4052 2017-09-09 John Baldwin <jhb@FreeBSD.org>
4054 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4056 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4058 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4060 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4061 * ada-exp.y: Remove _initialize_ada_exp prototype.
4062 * ada-lang.c: Remove _initialize_ada_language prototype.
4063 * ada-tasks.c: Remove _initialize_tasks prototype.
4064 * addrmap.c: Remove _initialize_addrmap prototype.
4065 * agent.c: Remove _initialize_agent prototype.
4066 * aix-thread.c: Remove _initialize_aix_thread prototype.
4067 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4068 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4069 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4071 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4072 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4073 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4074 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4076 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4078 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4079 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4080 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4081 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4083 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4084 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4085 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4086 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4087 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4088 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4089 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4091 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4093 * annotate.c: Remove _initialize_annotate prototype.
4094 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4095 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4096 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4097 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4098 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4099 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4100 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4101 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4103 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4104 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4105 * auto-load.c: Remove _initialize_auto_load prototype.
4106 * auxv.c: Remove _initialize_auxv prototype.
4107 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4108 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4109 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4110 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4111 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4112 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4114 * break-catch-throw.c: Remove _initialize_break_catch_throw
4116 * breakpoint.c: Remove _initialize_breakpoint prototype.
4117 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4118 * btrace.c: Remove _initialize_btrace prototype.
4119 * charset.c: Remove _initialize_charset prototype.
4120 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4121 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4122 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4123 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4124 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4125 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4126 * coffread.c: Remove _initialize_coffread prototype.
4127 * compile/compile.c: Remove _initialize_compile prototype.
4128 * complaints.c: Remove _initialize_complaints prototype.
4129 * completer.c: Remove _initialize_completer prototype.
4130 * copying.awk: Remove _initialize_copying prototype.
4131 * copying.c: Regenerate.
4132 * core-regset.c: Remove _initialize_core_regset prototype.
4133 * corefile.c: Remove _initialize_core prototype.
4134 * corelow.c: Remove _initialize_corelow prototype.
4135 * cp-abi.c: Remove _initialize_cp_abi prototype.
4136 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4137 * cp-support.c: Remove _initialize_cp_support prototype.
4138 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4139 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4140 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4141 * ctf.c: Remove _initialize_ctf prototype.
4142 * d-lang.c: Remove _initialize_d_language prototype.
4143 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4145 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4146 * dbxread.c: Remove _initialize_dbxread prototype.
4147 * dcache.c: Remove _initialize_dcache prototype.
4148 * demangle.c: Remove _initialize_demangler prototype.
4149 * disasm-selftests.c: Remove _initialize_disasm_selftests
4151 * disasm.c: Remove _initialize_disasm prototype.
4152 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4153 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4154 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4156 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4157 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4158 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4159 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4160 * elfread.c: Remove _initialize_elfread prototype.
4161 * exec.c: Remove _initialize_exec prototype.
4162 * extension.c: Remove _initialize_extension prototype.
4163 * f-lang.c: Remove _initialize_f_language prototype.
4164 * f-valprint.c: Remove _initialize_f_valprint prototype.
4165 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4166 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4167 * filesystem.c: Remove _initialize_filesystem prototype.
4168 * findcmd.c: Remove _initialize_mem_search prototype.
4169 * fork-child.c: Remove _initialize_fork_child prototype.
4170 * frame-base.c: Remove _initialize_frame_base prototype.
4171 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4172 * frame.c: Remove _initialize_frame prototype.
4173 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4174 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4175 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4176 * gcore.c: Remove _initialize_gcore prototype.
4177 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4178 * gdbarch.c: Regenerate.
4179 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4180 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4181 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4182 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4183 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4184 * go-lang.c: Remove _initialize_go_language prototype.
4185 * go32-nat.c: Remove _initialize_go32_nat prototype.
4186 * guile/guile.c: Remove _initialize_guile prototype.
4187 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4188 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4189 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4190 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4191 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4192 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4193 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4194 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4195 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4196 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4198 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4200 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4201 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4202 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4203 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4204 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4205 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4206 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4207 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4208 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4209 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4210 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4211 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4212 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4213 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4214 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4215 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4217 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4219 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4220 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4221 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4222 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4223 * infcall.c: Remove _initialize_infcall prototype.
4224 * infcmd.c: Remove _initialize_infcmd prototype.
4225 * inferior.c: Remove _initialize_inferiors prototype.
4226 * inflow.c: Remove _initialize_inflow prototype.
4227 * infrun.c: Remove _initialize_infrun prototype.
4228 * interps.c: Remove _initialize_interpreter prototype.
4229 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4230 * jit.c: Remove _initialize_jit prototype.
4231 * language.c: Remove _initialize_language prototype.
4232 * linux-fork.c: Remove _initialize_linux_fork prototype.
4233 * linux-nat.c: Remove _initialize_linux_nat prototype.
4234 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4235 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4236 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4237 * m2-lang.c: Remove _initialize_m2_language prototype.
4238 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4239 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4240 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4241 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4242 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4243 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4244 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4245 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4246 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4247 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4248 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4249 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4250 * machoread.c: Remove _initialize_machoread prototype.
4251 * macrocmd.c: Remove _initialize_macrocmd prototype.
4252 * macroscope.c: Remove _initialize_macroscope prototype.
4253 * maint.c: Remove _initialize_maint_cmds prototype.
4254 * mdebugread.c: Remove _initialize_mdebugread prototype.
4255 * memattr.c: Remove _initialize_mem prototype.
4256 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4257 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4258 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4259 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4260 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4261 * microblaze-linux-tdep.c: Remove
4262 _initialize_microblaze_linux_tdep prototype.
4263 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4264 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4265 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4266 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4267 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4268 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4269 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4270 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4271 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4272 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4273 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4275 * mipsread.c: Remove _initialize_mipsread prototype.
4276 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4278 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4279 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4280 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4281 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4282 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4283 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4285 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4286 * nto-procfs.c: Remove _initialize_procfs prototype.
4287 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4288 * objc-lang.c: Remove _initialize_objc_language prototype.
4289 * objfiles.c: Remove _initialize_objfiles prototype.
4290 * observer.c: Remove observer_test_first_notification_function,
4291 observer_test_second_notification_function,
4292 observer_test_third_notification_function, and
4293 _initialize_observer prototypes.
4294 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4295 * osabi.c: Remove _initialize_gdb_osabi prototype.
4296 * osdata.c: Remove _initialize_osdata prototype.
4297 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4298 * parse.c: Remove _initialize_parse prototype.
4299 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4300 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4301 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4302 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4303 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4304 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4305 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4306 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4307 * printcmd.c: Remove _initialize_printcmd prototype.
4308 * probe.c: Remove _initialize_probe prototype.
4309 * proc-api.c: Remove _initialize_proc_api prototype.
4310 * proc-events.c: Remove _initialize_proc_events prototype.
4311 * proc-service.c: Remove _initialize_proc_service prototype.
4312 * procfs.c: Remove _initialize_procfs prototype.
4313 * psymtab.c: Remove _initialize_psymtab prototype.
4314 * python/python.c: Remove _initialize_python prototype.
4315 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4316 * record-btrace.c: Remove _initialize_record_btrace prototype.
4317 * record-full.c: Remove _initialize_record_full prototype.
4318 * record.c: Remove _initialize_record prototype.
4319 * regcache.c: Remove _initialize_regcache prototype.
4320 * reggroups.c: Remove _initialize_reggroup prototype.
4321 * remote-notif.c: Remove _initialize_notif prototype.
4322 * remote-sim.c: Remove _initialize_remote_sim prototype.
4323 * remote.c: Remove _initialize_remote prototype.
4324 * reverse.c: Remove _initialize_reverse prototype.
4325 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4326 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4327 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4329 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4330 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4331 * rust-exp.y: Remove _initialize_rust_exp prototype.
4332 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4333 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4334 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4335 * score-tdep.c: Remove _initialize_score_tdep prototype.
4336 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4338 * ser-go32.c: Remove _initialize_ser_dos prototype.
4339 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4340 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4341 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4342 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4343 * serial.c: Remove _initialize_serial prototype.
4344 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4345 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4346 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4347 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4348 * skip.c: Remove _initialize_step_skip prototype.
4349 * sol-thread.c: Remove _initialize_sol_thread prototype.
4350 * solib-aix.c: Remove _initialize_solib_aix prototype.
4351 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4352 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4353 * solib-frv.c: Remove _initialize_frv_solib prototype.
4354 * solib-spu.c: Remove _initialize_spu_solib prototype.
4355 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4356 * solib-target.c: Remove _initialize_solib_target prototype.
4357 * solib.c: Remove _initialize_solib prototype.
4358 * source.c: Remove _initialize_source prototype.
4359 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4360 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4362 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4363 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4364 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4365 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4367 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4368 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4369 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4370 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4372 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4374 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4376 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4378 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4379 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4381 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4383 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4385 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4387 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4389 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4390 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4391 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4392 * stabsread.c: Remove _initialize_stabsread prototype.
4393 * stack.c: Remove _initialize_stack prototype.
4394 * stap-probe.c: Remove _initialize_stap_probe prototype.
4395 * std-regs.c: Remove _initialize_frame_reg prototype.
4396 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4397 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4398 * symfile.c: Remove _initialize_symfile prototype.
4399 * symmisc.c: Remove _initialize_symmisc prototype.
4400 * symtab.c: Remove _initialize_symtab prototype.
4401 * target-dcache.c: Remove _initialize_target_dcache prototype.
4402 * target-descriptions.c: Remove _initialize_target_descriptions
4404 * thread.c: Remove _initialize_thread prototype.
4405 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4407 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4408 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4409 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4411 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4412 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4413 * tracefile.c: Remove _initialize_tracefile prototype.
4414 * tracepoint.c: Remove _initialize_tracepoint prototype.
4415 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4416 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4417 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4418 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4419 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4420 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4421 * tui/tui.c: Remove _initialize_tui prototype.
4422 * typeprint.c: Remove _initialize_typeprint prototype.
4423 * user-regs.c: Remove _initialize_user_regs prototype.
4424 * utils.c: Remove _initialize_utils prototype.
4425 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4426 * valarith.c: Remove _initialize_valarith prototype.
4427 * valops.c: Remove _initialize_valops prototype.
4428 * valprint.c: Remove _initialize_valprint prototype.
4429 * value.c: Remove _initialize_values prototype.
4430 * varobj.c: Remove _initialize_varobj prototype.
4431 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4432 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4433 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4434 * windows-nat.c: Remove _initialize_windows_nat,
4435 _initialize_check_for_gdb_ini, and _initialize_loadable
4437 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4438 * xcoffread.c: Remove _initialize_xcoffread prototype.
4439 * xml-support.c: Remove _initialize_xml_support prototype.
4440 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4441 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4443 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4445 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4447 2017-09-08 Keith Seitz <keiths@redhat.com>
4449 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4452 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4454 * f-valprint.c (f_val_print): Remove check for one byte
4455 sized integers. Remove printing of character type.
4457 2017-09-08 Frank Penczek <frank.penczek@intel.com>
4458 Christoph Weinmann <christoph.t.weinmann@intel.com>
4459 Bernhard Heckel <bernhard.heckel@intel.com>
4461 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4462 to maintain proper indentation when printing pointers/refs.
4464 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4468 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4470 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4472 2017-09-05 Tom Tromey <tom@tromey.com>
4474 * parse.c (funcall_chain): Now a std::vector.
4475 (start_arglist, end_arglist): Simplify.
4476 (free_funcalls): Remove.
4477 (parse_exp_in_context_1): Remove cleanup.
4479 2017-09-05 Tom Tromey <tom@tromey.com>
4481 * go-exp.y (go_parse): Don't create a cleanup.
4483 2017-09-05 Tom Tromey <tom@tromey.com>
4485 * d-exp.y (PrimaryExpression): Use std::string.
4486 (d_parse): Don't create a cleanup.
4488 2017-09-05 Tom Tromey <tom@tromey.com>
4490 * utils.c (do_clear_parser_state): Remove.
4491 (make_cleanup_clear_parser_state): Remove.
4492 * p-exp.y (pascal_parse): Use scoped_restore.
4493 * m2-exp.y (m2_parse): Use scoped_restore.
4494 * f-exp.y (f_parse): Use scoped_restore.
4495 * d-exp.y (d_parse): Use scoped_restore.
4496 * c-exp.y (c_parse): Use scoped_restore.
4497 * ada-exp.y (ada_parse): Use scoped_restore.
4498 * utils.h (make_cleanup_clear_parser_state): Remove.
4500 2017-09-06 Keith Seitz <keiths@redhat.com>
4502 * dwarf2read.c (dw2_linkage_name_attr): New function.
4503 (dw2_linkage_name): New function.
4504 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4505 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4506 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4508 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4510 * config/djgpp/djconfig.sh: Correct shell portability issue.
4512 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4514 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4516 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4518 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4519 * NEWS: Mention new FreeBSD/mips native configuration.
4520 * configure.host: Add aarch64*-*-freebsd*.
4521 * configure.nat: Likewise.
4522 * aarch64-fbsd-nat.c: New file.
4524 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4526 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4527 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4528 * NEWS: Mention new FreeBSD/aarch64 target.
4529 * configure.tgt: Add aarch64*-*-freebsd*.
4530 * aarch64-fbsd-tdep.c: New file.
4531 * aarch64-fbsd-tdep.h: New file.
4533 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4535 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4537 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4539 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4542 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4544 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4547 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4549 * infrun.c (follow_exec): Call add_thread after
4550 target_find_description.
4552 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4554 * infrun.c (handle_inferior_event_1): When exec'ing, read
4555 stop_pc after follow_exec.
4557 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4559 * remote.c (process_g_packet): Update error message.
4561 2017-09-05 Yao Qi <yao.qi@linaro.org>
4563 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4566 2017-09-05 Pedro Alves <palves@redhat.com>
4568 * eval.c (eval_call, evaluate_funcall): New functions, factored
4570 (evaluate_subexp_standard): ... this.
4572 2017-09-05 Yao Qi <yao.qi@linaro.org>
4574 * amd64-tdep.c (amd64_target_description): Create target
4576 (_initialize_amd64_tdep): Don't call functions
4577 initialize_tdesc_amd64_*. Add self tests.
4578 * arch/amd64.c (amd64_create_target_description): Add parameter
4579 is_linux. Call set_tdesc_osabi if is_linux is true.
4580 * arch/amd64.h (amd64_create_target_description): Update the
4582 * arch/i386.c (i386_create_target_description): Add parameter
4583 is_linux. Call set_tdesc_osabi if is_linux is true.
4584 * arch/i386.h (i386_create_target_description): Update
4586 * configure.tgt: Add i386.o to gdb_target_obs.
4587 * features/Makefile (XMLTOC): Remove i386/*.xml.
4588 * features/i386/amd64-avx-avx512.c: Remove.
4589 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4590 * features/i386/amd64-avx-mpx.c: Remove.
4591 * features/i386/amd64-avx.c: Remove.
4592 * features/i386/amd64-mpx.c: Remove.
4593 * features/i386/amd64.c: Remove.
4594 * features/i386/i386-avx-avx512.c: Remove.
4595 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4596 * features/i386/i386-avx-mpx.c: Remove.
4597 * features/i386/i386-avx.c: Remove.
4598 * features/i386/i386-mmx.c: Remove.
4599 * features/i386/i386-mpx.c: Remove.
4600 * features/i386/i386.c: Remove.
4601 * i386-tdep.c: Don't include features/i386/i386*.c., include
4602 target-descriptions.h and arch/i386.h.
4603 (i386_target_description): Create target descriptions.
4604 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4605 functions. Do self tests.
4607 2017-09-05 Yao Qi <yao.qi@linaro.org>
4609 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4610 * features/i386/amd64-avx-avx512-linux.c: Removed.
4611 * features/i386/amd64-avx-linux.c: Removed.
4612 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4613 * features/i386/amd64-avx-mpx-linux.c: Removed.
4614 * features/i386/amd64-linux.c: Removed.
4615 * features/i386/amd64-mpx-linux.c: Removed.
4616 * features/i386/x32-avx-avx512-linux.c: Removed.
4617 * features/i386/x32-avx-linux.c: Removed.
4618 * features/i386/x32-linux.c: Removed.
4620 2017-09-05 Yao Qi <yao.qi@linaro.org>
4622 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4624 (amd64_linux_read_description): Call
4625 amd64_create_target_description.
4626 * arch/amd64.c: New file.
4627 * arch/amd64.h: New file.
4628 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4629 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4631 2017-09-05 Yao Qi <yao.qi@linaro.org>
4633 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4634 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4635 (amd64_linux_read_description): Create target descriptions.
4636 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4637 functions. Add unit tests.
4638 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4640 * features/i386/64bit-avx.c: Generated.
4641 * features/i386/64bit-avx512.c: Generated.
4642 * features/i386/64bit-core.c: Generated.
4643 * features/i386/64bit-linux.c: Generated.
4644 * features/i386/64bit-mpx.c: Generated.
4645 * features/i386/64bit-pkeys.c: Generated.
4646 * features/i386/64bit-segments.c: Generated.
4647 * features/i386/64bit-sse.c: Generated.
4648 * features/i386/x32-core.c: Generated.
4649 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4650 c files for amd64-linux and x32-linux.
4652 2017-09-05 Yao Qi <yao.qi@linaro.org>
4654 * amd64-linux-tdep.c (amd64_linux_read_description): New
4656 (amd64_linux_core_read_description): Call
4657 amd64_linux_read_description.
4658 (amd64_linux_init_abi): Likewise.
4659 (amd64_x32_linux_init_abi): Likewise.
4660 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4661 * x86-linux-nat.c (x86_linux_read_description): Call
4662 amd64_linux_read_description.
4664 2017-09-05 Yao Qi <yao.qi@linaro.org>
4666 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4669 2017-09-05 Yao Qi <yao.qi@linaro.org>
4671 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4672 * features/i386/i386-avx-avx512-linux.c: Remove.
4673 * features/i386/i386-avx-linux.c: Remove.
4674 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4675 * features/i386/i386-avx-mpx-linux.c: Remove.
4676 * features/i386/i386-linux.c: Remove.
4677 * features/i386/i386-mmx-linux.c: Remove.
4678 * features/i386/i386-mpx-linux.c: Remove.
4680 2017-09-05 Yao Qi <yao.qi@linaro.org>
4682 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4683 (SFILES): Add arch/i386.c.
4684 (HFILES_NO_SRCDIR): Add arch/i386.h.
4685 * arch/i386.c: New file.
4686 * arch/i386.h: New file.
4687 * arch/tdesc.h (allocate_target_description): Declare.
4688 (set_tdesc_architecture): Declare.
4689 (set_tdesc_osabi): Declare.
4690 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4691 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4692 include arch/i386.h.
4693 (i386_linux_read_description): Remove code and call
4694 i386_create_target_description.
4695 (set_tdesc_architecture): New function.
4696 (set_tdesc_osabi): New function.
4697 * target-descriptions.h (allocate_target_description): Remove.
4699 2017-09-05 Yao Qi <yao.qi@linaro.org>
4701 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4702 * target-descriptions.c (tdesc_create_feature): Likewise, and
4704 * features/i386/32bit-avx.c: Re-generated.
4705 * features/i386/32bit-avx512.c: Re-generated.
4706 * features/i386/32bit-core.c: Re-generated.
4707 * features/i386/32bit-linux.c: Re-generated.
4708 * features/i386/32bit-mpx.c: Re-generated.
4709 * features/i386/32bit-pkeys.c: Re-generated.
4710 * features/i386/32bit-sse.c: Re-generated.
4712 2017-09-05 Yao Qi <yao.qi@linaro.org>
4714 * regformats/regdef.h (struct reg): Override operator == and !=.
4716 2017-09-05 Yao Qi <yao.qi@linaro.org>
4718 * arch/tdesc.h: New file.
4719 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4720 * target-descriptions.c: Update comments.
4721 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4723 * features/i386/32bit-avx.c: Re-generated.
4724 * features/i386/32bit-avx512.c: Re-generated.
4725 * features/i386/32bit-core.c: Re-generated.
4726 * features/i386/32bit-linux.c: Re-generated.
4727 * features/i386/32bit-mpx.c: Re-generated.
4728 * features/i386/32bit-pkeys.c: Re-generated.
4729 * features/i386/32bit-sse.c: Re-generated.
4731 2017-09-05 Yao Qi <yao.qi@linaro.org>
4733 * regformats/regdat.sh: Update generated code.
4735 2017-09-05 Yao Qi <yao.qi@linaro.org>
4737 * regformats/regdat.sh: Adjust code order.
4739 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4741 * expprint.c (dump_subexp_body_standard): Use constant format
4742 string in fprintf_filtered call.
4744 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4746 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4748 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4750 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4752 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4754 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4756 * bsd-kvm.o: Define _KMEMUSER.
4757 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4758 * configure: Regenerate.
4760 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4762 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4763 * i386-fbsd-nat.c: Likewise.
4765 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4767 * unittests/array-view-selftests.c: Add include of <array>.
4769 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4771 * spu-tdep.c (flush_ea_cache): Add missing argument to
4772 call_function_by_hand.
4774 2017-09-04 Pedro Alves <palves@redhat.com>
4776 * NEWS (Safer support for debugging with no debug info): New.
4778 2017-09-04 Pedro Alves <palves@redhat.com>
4780 * c-exp.y (function_method, function_method_void): Add current
4781 instance flags to TYPE_INSTANCE.
4782 * dwarf2read.c (check_modifier): New.
4783 (compute_delayed_physnames): Assert that only C++ adds delayed
4784 physnames. Mark fn_fields as const/volatile depending on
4786 * eval.c (make_params): New type_instance_flags parameter. Use
4787 it as the new type's instance flags.
4788 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4789 flags element and pass it to make_params.
4790 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4791 instance flags element.
4792 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4793 * gdbtypes.h: Include "enum-flags.h".
4794 (type_instance_flags): New enum-flags type.
4795 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4796 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4797 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4798 (follow_type_instance_flags): New function.
4799 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4800 * parser-defs.h (follow_type_instance_flags): Declare.
4801 * valops.c (value_struct_elt_for_reference): const/volatile must
4804 2017-09-04 Pedro Alves <palves@redhat.com>
4806 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4807 function/method scopes; lookup the nested name as a function local
4810 2017-09-04 Pedro Alves <palves@redhat.com>
4812 (%type <voidval>): Add function_method.
4813 * c-exp.y (exp): New production for calls with no arguments.
4814 (function_method, function_method_void_or_typelist): New
4816 (exp): New production for "method()::static_var".
4817 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4818 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4819 Handle OP_FUNC_STATIC_VAR.
4820 * parse.c (operator_length_standard):
4821 Handle OP_FUNC_STATIC_VAR.
4823 2017-09-04 Pedro Alves <palves@redhat.com>
4825 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4827 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4829 * parse.c (operator_length_standard, operator_check_standard):
4831 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4833 2017-09-04 Pedro Alves <palves@redhat.com>
4835 * ax-gdb.c: Include "typeprint.h".
4836 (gen_expr_for_cast): New function.
4837 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4838 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4840 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4841 nodebug_data_symbol.
4842 * eval.c: Include "typeprint.h".
4843 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4844 Error out if symbol has unknown type.
4845 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4846 evaluate_subexp_for_cast.
4847 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4849 (evaluate_subexp_for_cast): New function.
4850 * gdbtypes.c (init_nodebug_var_type): New function.
4851 (objfile_type): Use it to initialize types of variables with no
4853 * typeprint.c (error_unknown_type): New.
4854 * typeprint.h (error_unknown_type): New declaration.
4855 * compile/compile-c-types.c (convert_type_basic): Handle
4856 TYPE_CODE_ERROR; warn and fallback to int for variables with
4859 2017-09-04 Pedro Alves <palves@redhat.com>
4861 * eval.c (evaluate_var_value): New function, factored out from ...
4862 (evaluate_subexp_standard): ... here.
4864 2017-09-04 Pedro Alves <palves@redhat.com>
4866 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4867 Remove useless assignments to 'op'.
4869 2017-09-04 Pedro Alves <palves@redhat.com>
4871 * eval.c (eval_skip_value): New function.
4872 (evaluate_subexp_standard): Use it.
4874 2017-09-04 Pedro Alves <palves@redhat.com>
4876 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4877 function name from symbol/minsym and pass it to
4878 error_call_unknown_return_type.
4880 2017-09-04 Pedro Alves <palves@redhat.com>
4882 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4883 * ax-gdb.c (gen_msym_var_ref): New function.
4884 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4885 * eval.c (evaluate_var_msym_value): New function.
4886 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4887 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4888 to call_function_by_hand.
4889 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4890 Handle OP_VAR_MSYM_VALUE.
4891 (union exp_element) <msymbol>: New field.
4892 * minsyms.h (struct type): Forward declare.
4893 (find_minsym_type_and_address): Declare.
4894 * parse.c (write_exp_elt_msym): New function.
4895 (write_exp_msymbol): Delete, refactored as ...
4896 (find_minsym_type_and_address): ... this new function.
4897 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4898 (operator_length_standard, operator_check_standard): Handle
4900 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4902 2017-09-04 Pedro Alves <palves@redhat.com>
4904 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4905 TYPE_GNU_IFUNC specially here. Throw error if return type is
4907 * ada-typeprint.c (print_func_type): Handle functions with unknown
4909 * c-typeprint.c (c_type_print_base): Handle functions and methods
4910 with unknown return type.
4911 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4912 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4913 * compile/compile-c-types.c: Include "objfiles.h".
4914 (convert_func): For functions with unknown return type, warn and
4916 * compile/compile-object-run.c (compile_object_run): Adjust call
4917 to call_function_by_hand_dummy.
4918 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4919 call_function_by_hand.
4920 * eval.c (evaluate_subexp_standard): Adjust calls to
4921 call_function_by_hand. Handle functions and methods with unknown
4922 return type. Pass expect_type to call_function_by_hand.
4923 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4925 * gcore.c (call_target_sbrk): Adjust call to
4926 call_function_by_hand.
4927 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4928 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4929 an integer address type instead of nodebug.
4930 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4931 call_function_by_hand.
4932 * infcall.c (error_call_unknown_return_type): New function.
4933 (call_function_by_hand): New "default_return_type" parameter.
4935 (call_function_by_hand_dummy): New "default_return_type"
4936 parameter. Use it instead of defaulting to int. If there's no
4937 default and the return type is unknown, throw an error. If
4938 there's a default return type, and the called function has no
4939 debug info, then assume the function is prototyped.
4940 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4941 New "default_return_type" parameter.
4942 (error_call_unknown_return_type): New declaration.
4943 * linux-fork.c (call_lseek): Cast return type of lseek.
4944 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4945 call_function_by_hand.
4946 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4947 calls to call_function_by_hand.
4948 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4950 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4951 (value_nsstring, print_object_command): Adjust calls to
4952 call_function_by_hand.
4953 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4954 functions with unknown return type.
4955 (pascal_type_print_func_varspec_suffix): New function.
4956 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4957 TYPE_CODE_METHOD>: Use it.
4958 * python/py-value.c (valpy_call): Adjust call to
4959 call_function_by_hand.
4960 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4961 call_function_by_hand.
4962 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4963 call_function_by_hand.
4964 * valops.c (value_allocate_space_in_inferior): Adjust call to
4965 call_function_by_hand.
4966 * typeprint.c (type_print_unknown_return_type): New function.
4967 * typeprint.h (type_print_unknown_return_type): New declaration.
4969 2017-09-04 Pedro Alves <palves@redhat.com>
4971 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4972 types with more than one parameter as prototyped.
4974 2017-09-04 Pedro Alves <palves@redhat.com>
4976 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4977 (disassemble_command): Use gdb_disassembly_flags instead of bare
4979 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4980 (dump_insns, do_mixed_source_and_assembly_deprecated)
4981 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4982 Use gdb_disassembly_flags instead of bare int.
4983 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4984 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4985 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4986 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4987 (enum gdb_disassembly_flag): ... values of this new enumeration.
4988 (gdb_disassembly_flags): Define.
4990 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4991 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4992 gdb_disassembly_flags instead of bare int.
4993 * record-btrace.c (btrace_insn_history)
4994 (record_btrace_insn_history, record_btrace_insn_history_range)
4995 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4996 instead of bare int.
4997 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4998 Use gdb_disassembly_flags instead of bare int.
4999 * target-debug.h (target_debug_print_gdb_disassembly_flags):
5001 * target-delegates.c: Regenerate.
5002 * target.c (target_insn_history, target_insn_history_from)
5003 (target_insn_history_range): Use gdb_disassembly_flags instead of
5005 * target.h: Include "disasm.h".
5006 (struct target_ops) <to_insn_history, to_insn_history_from,
5007 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
5009 (target_insn_history, target_insn_history_from)
5010 (target_insn_history_range): Use gdb_disassembly_flags instead of
5013 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5015 * cli/cli-script.c (build_command_line): For if/while commands,
5016 check whether args is empty.
5018 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5020 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5021 (enum command_control_type): Likewise.
5022 (struct command_line): Likewise.
5023 (free_command_lines): Likewise.
5024 (struct command_lines_deleter): Likewise.
5025 (command_line_up): Likewise.
5026 (read_command_lines): Likewise.
5027 (read_command_lines_1): Likewise.
5028 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5029 (enum command_control_type): Likewise.
5030 (struct command_line): Likewise.
5031 (free_command_lines): Likewise.
5032 (struct command_lines_deleter): Likewise.
5033 (command_line_up): Likewise.
5034 (read_command_lines): Likewise.
5035 (read_command_lines_1): Likewise.
5036 * breakpoint.h: Include cli/cli-script.h.
5037 * extension-priv.h: Likewise.
5038 * gdbcmd.h: Likewise.
5040 2017-09-04 Pedro Alves <palves@redhat.com>
5042 * ada-lang.c (is_known_support_routine): Move sal declaration to
5043 where it is initialized.
5044 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5045 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5046 (clear_command, update_static_tracepoint): Remove init_sal
5047 references. Move declarations closer to initializations.
5048 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5050 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5051 references. Move sal declarations closer to initializations.
5052 * frame.c (find_frame_sal): Return a symtab_and_line via function
5053 return instead of output parameter. Remove init_sal references.
5054 * frame.h (find_frame_sal): Return a symtab_and_line via function
5055 return instead of output parameter.
5056 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5057 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5059 (gdbscm_find_pc_line): Remove init_sal reference.
5060 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5061 references. Move declarations closer to initializations.
5062 * infcmd.c (set_step_frame): Update. Move declarations closer to
5064 (finish_backward): Remove init_sal references. Move declarations
5065 closer to initializations.
5066 * infrun.c (process_event_stop_test, handle_step_into_function)
5067 (insert_hp_step_resume_breakpoint_at_frame)
5068 (insert_step_resume_breakpoint_at_caller): Likewise.
5069 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5070 (symbol_to_sal): Likewise.
5071 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5072 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5073 to its initialization.
5074 * reverse.c (save_bookmark_command): Use new/delete. Remove
5075 init_sal references. Move declarations closer to initializations.
5076 * source.c (get_current_source_symtab_and_line): Remove brace
5078 (set_current_source_symtab_and_line): Now takes the sal by const
5079 reference. Remove brace initialization.
5080 (line_info): Remove init_sal reference.
5081 * source.h (set_current_source_symtab_and_line): Now takes a
5082 symtab_and_line via const reference.
5083 * stack.c (set_current_sal_from_frame): Adjust.
5084 (print_frame_info): Adjust.
5085 (get_last_displayed_sal): Return the sal via function return
5086 instead of via output parameter. Simplify.
5087 (frame_info): Adjust.
5088 * stack.h (get_last_displayed_sal): Return the sal via function
5089 return instead of via output parameter.
5090 * symtab.c (init_sal): Delete.
5091 (find_pc_sect_line): Remove init_sal references. Move
5092 declarations closer to initializations.
5093 (find_function_start_sal): Remove init_sal references. Move
5094 declarations closer to initializations.
5095 * symtab.h (struct symtab_and_line): In-class initialize all
5097 * tracepoint.c (set_traceframe_context)
5098 (print_one_static_tracepoint_marker): Remove init_sal references.
5099 Move declarations closer to initializations.
5100 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5101 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5102 declarations closer to initializations.
5103 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5104 init_sal references. Adjust.
5106 2017-09-04 Pedro Alves <palves@redhat.com>
5108 * ax-gdb.c (agent_command_1): Use range-for.
5109 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5110 * breakpoint.c: Include "common/array-view.h".
5111 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5112 parameter from struct symtabs_and_lines to
5113 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5114 (breakpoint_sals_to_pc): Change sals parameter from struct
5115 symtabs_and_lines to std::vector reference.
5116 (check_fast_tracepoint_sals): Change sals parameter from struct
5117 symtabs_and_lines to std::array_view. Use range-for.
5118 (decode_static_tracepoint_spec): Return a std::vector instead of
5119 symtabs_and_lines. Update.
5120 (create_breakpoint): Update.
5121 (break_range_command, until_break_command, clear_command): Update.
5122 (base_breakpoint_decode_location, bkpt_decode_location)
5123 (bkpt_probe_create_sals_from_location)
5124 (bkpt_probe_decode_location, tracepoint_decode_location)
5125 (tracepoint_probe_decode_location)
5126 (strace_marker_create_sals_from_location): Return a std::vector
5127 instead of symtabs_and_lines.
5128 (strace_marker_create_breakpoints_sal): Update.
5129 (strace_marker_decode_location): Return a std::vector instead of
5130 symtabs_and_lines. Update.
5131 (update_breakpoint_locations): Change struct symtabs_and_lines
5132 parameters to gdb::array_view. Adjust.
5133 (location_to_sals): Return a std::vector instead of
5134 symtabs_and_lines. Update.
5135 (breakpoint_re_set_default): Use std::vector instead of struct
5137 (decode_location_default): Return a std::vector instead of
5138 symtabs_and_lines. Update.
5139 * breakpoint.h: Include "common/array-view.h".
5140 (struct breakpoint_ops) <decode_location>: Now returns a
5141 std::vector instead of returning a symtabs_and_lines via output
5143 (update_breakpoint_locations): Change sals parameters to use
5145 * cli/cli-cmds.c (edit_command, list_command): Update to use
5146 std::vector and gdb::array_view.
5147 (ambiguous_line_spec): Adjust to use gdb::array_view and
5149 (compare_symtabs): Rename to ...
5150 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5151 const reference and adjust.
5152 (filter_sals): Rewrite using std::vector and standard algorithms.
5153 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5154 (jump_command): Update to use std::vector.
5155 * linespec.c (struct linespec_state) <canonical_names>: Update
5157 (add_sal_to_sals_basic): Delete.
5158 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5159 (decode_line_2, create_sals_line_offset)
5160 (convert_address_location_to_sals, convert_linespec_to_sals)
5161 (convert_explicit_location_to_sals, parse_linespec)
5162 (event_location_to_sals, decode_line_full, decode_line_1)
5163 (decode_line_with_current_source)
5164 (decode_line_with_last_displayed, decode_objc)
5165 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5166 (linespec_result::~linespec_result): Adjust to use std::vector
5167 instead of symtabs_and_lines.
5168 * linespec.h (linespec_sals::sals): Now a std::vector.
5169 (struct linespec_result): Use std::vector, bool, and in-class
5171 (decode_line_1, decode_line_with_current_source)
5172 (decode_line_with_last_displayed): Return std::vector.
5173 * macrocmd.c (info_macros_command): Use std::vector.
5174 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5175 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5177 * probe.h (parse_probes): Return a std::vector.
5178 * python/python.c (gdbpy_decode_line): Use std::vector and
5180 * source.c (select_source_symtab, line_info): Use std::vector.
5181 * stack.c (func_command): Use std::vector.
5182 * symtab.h (struct symtabs_and_lines): Delete.
5183 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5185 2017-09-04 Pedro Alves <palves@redhat.com>
5187 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5188 unittests/array-view-selftests.c.
5189 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5190 * common/array-view.h: New file.
5191 * unittests/array-view-selftests.c: New file.
5193 2017-09-04 Pedro Alves <palves@redhat.com>
5195 * cli/cli-cmds.c (edit_command): Pass message to
5196 ambiguous_line_spec.
5197 (list_command): Pass message to ambiguous_line_spec. Say
5198 "first"/"last" instead of "start" and "end" to be consistent with
5200 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5201 them to print formatted message.
5203 2017-09-04 Pedro Alves <palves@redhat.com>
5205 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5206 ftrace_update_insns by reference instead of pointer.
5208 2017-09-04 Yao Qi <yao.qi@linaro.org>
5210 * i386-go32-tdep.c: Include x86-xstate.h.
5211 (i386_go32_init_abi): Call i386_target_description.
5212 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5213 if xcr0 is X86_XSTATE_X87_MASK.
5214 * i386-tdep.h (tdesc_i386): Remove the declaration.
5215 (tdesc_i386_mmx): Likewise.
5217 2017-09-04 Yao Qi <yao.qi@linaro.org>
5219 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5220 X86_XSTATE_SSE_MASK instead of 0.
5222 2017-09-04 Yao Qi <yao.qi@linaro.org>
5224 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5225 i386_target_description.
5226 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5227 i386_target_description.
5228 * i386-tdep.c (i386_gdbarch_init): Likewise.
5230 2017-09-04 Yao Qi <yao.qi@linaro.org>
5232 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5233 (x86_darwin_init_abi_64): Call amd64_target_description.
5234 * amd64-dicos-tdep.c: Likewise.
5235 * amd64-fbsd-nat.c: Likewise.
5236 * amd64-fbsd-tdep.c: Likewise.
5237 * amd64-nbsd-tdep.c: Likewise.
5238 * amd64-obsd-tdep.c: Likewise.
5239 * amd64-sol2-tdep.c: Likewise.
5240 * amd64-windows-tdep.c: Likewise.
5241 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5243 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5245 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5246 (btrace_function) <insn>: Change type to use std::vector.
5247 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5248 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5249 ftrace_update_insns, ftrace_compute_global_level_offset,
5250 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5251 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5252 change to std::vector.
5253 (ftrace_update_insns): Adjust to change to std::vector, change
5254 type of INSN parameter.
5255 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5256 * record-btrace.c (btrace_call_history_insn_range,
5257 btrace_compute_src_line_range,
5258 record_btrace_frame_prev_register): Adjust to change to
5260 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5261 to change to std::vector.
5263 2017-09-03 Tom Tromey <tom@tromey.com>
5265 * corefile.c (reopen_exec_file): Use std::string.
5267 2017-09-03 Tom Tromey <tom@tromey.com>
5269 * compile/compile.c (compile_register_name_mangled): Return
5271 * compile/compile-loc2c.c (pushf_register_address): Update.
5272 (pushf_register): Update.
5273 * compile/compile-c-types.c (convert_array): Update.
5274 * compile/compile-c-symbols.c (generate_vla_size): Update.
5275 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5276 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5277 (convert_one_symbol): Update.
5278 (generate_c_for_for_one_variable): Update.
5279 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5281 (generate_register_struct): Update.
5282 * compile/compile-internal.h (c_get_range_decl_name): Return a
5284 (compile_register_name_mangled): Return std::string.
5286 2017-09-03 Tom Tromey <tom@tromey.com>
5288 * utils.c (perror_string): Return a std::string.
5289 (throw_perror_with_name, perror_warning_with_name): Update.
5291 2017-09-03 Tom Tromey <tom@tromey.com>
5293 * demangle.c (demangle_command): Use std::string,
5296 2017-09-03 Tom Tromey <tom@tromey.com>
5298 * cli/cli-setshow.c (do_set_command): Use std::string.
5300 2017-09-03 Tom Tromey <tom@tromey.com>
5302 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5304 2017-09-03 Tom Tromey <tom@tromey.com>
5306 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5308 2017-09-03 Tom Tromey <tom@tromey.com>
5310 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5311 gdb::unique_xmalloc_ptr.
5313 2017-09-03 Tom Tromey <tom@tromey.com>
5315 * thread.c (print_thread_info_1): Use string_printf.
5316 (thread_apply_command, thread_apply_all_command): Use
5319 2017-09-03 Tom Tromey <tom@tromey.com>
5321 * valprint.c (val_print_string): Update.
5322 * gdbcore.h (memory_error_message): Return std::string.
5323 * corefile.c (memory_error_message): Return std::string.
5324 (memory_error): Update.
5325 * breakpoint.c (insert_bp_location): Update.
5327 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5329 * target/waitstatus.h (target_waitstatus_to_string): Change
5330 return type to std::string.
5331 * target/waitstatus.c (target_waitstatus_to_string): Return
5333 * target.h (target_waitstatus_to_string): Remove declaration.
5334 * infrun.c (resume, clear_proceed_status_thread,
5335 print_target_wait_results, do_target_wait, save_waitstatus,
5336 stop_all_threads): Adjust.
5337 * record-btrace.c (record_btrace_wait): Adjust.
5339 (target_debug_print_struct_target_waitstatus_p): Adjust.
5341 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5344 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5347 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5349 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5350 for setting/unsetting environment variables on the remote target.
5351 (New remote packets): Add entries for QEnvironmentHexEncoded,
5352 QEnvironmentUnset and QEnvironmentReset.
5353 * common/environ.c (gdb_environ::operator=): Extend method to
5354 handle m_user_set_env_list and m_user_unset_env_list.
5355 (gdb_environ::clear): Likewise.
5356 (match_var_in_string): Change type of first parameter from 'char
5357 *' to 'const char *'.
5358 (gdb_environ::set): Extend method to handle
5359 m_user_set_env_list and m_user_unset_env_list.
5360 (gdb_environ::unset): Likewise.
5361 (gdb_environ::clear_user_set_env): New method.
5362 (gdb_environ::user_set_envp): Likewise.
5363 (gdb_environ::user_unset_envp): Likewise.
5364 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5365 m_user_unset_env_list on move constructor/assignment.
5366 (unset): Add new default parameter 'update_unset_list = true'.
5367 (clear_user_set_env): New method.
5368 (user_set_envp): Likewise.
5369 (user_unset_envp): Likewise.
5370 (m_user_set_env_list): New std::set.
5371 (m_user_unset_env_list): Likewise.
5372 * common/rsp-low.c (hex2str): New function.
5373 (bin2hex): New overload for bin2hex function.
5374 * common/rsp-low.c (hex2str): New prototype.
5375 (str2hex): New overload prototype.
5376 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5377 QEnvironmentUnset and QEnvironmentReset.
5378 (remote_protocol_features): Add QEnvironmentHexEncoded,
5379 QEnvironmentUnset and QEnvironmentReset packets.
5380 (send_environment_packet): New function.
5381 (extended_remote_environment_support): Likewise.
5382 (extended_remote_create_inferior): Call
5383 extended_remote_environment_support.
5384 (_initialize_remote): Add QEnvironmentHexEncoded,
5385 QEnvironmentUnset and QEnvironmentReset packet configs.
5386 * unittests/environ-selftests.c (gdb_selftest_env_var):
5388 (test_vector_initialization): New function.
5389 (test_init_from_host_environ): Likewise.
5390 (test_reinit_from_host_environ): Likewise.
5391 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5393 (test_unset_set_empty_vector): Likewise.
5394 (test_vector_clear): Likewise.
5395 (test_std_move): Likewise.
5396 (test_move_constructor):
5397 (test_self_move): Likewise.
5398 (test_set_unset_reset): Likewise.
5399 (run_tests): Rewrite in terms of the functions above.
5401 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
5403 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5404 (adi_available): Use a temp variable of type CORE_ADDR as argument
5405 3 when calling target_auxv_search.
5406 (adi_normalize_address): Use masks and xor operators to calculate
5408 (adi_read_versions, adi_write_versions, adi_print_versions)
5409 (do_examine, do_assign): Use paddress.
5411 2017-08-29 John Baldwin <jhb@FreeBSD.org>
5413 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5414 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5415 out of loop and add supply of FIR.
5416 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5419 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5422 * cli/cli-script.c (define_command): Don't convert command name
5425 2017-08-25 Joel Brobecker <brobecker@adacore.com>
5427 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5428 Update all callers accordingly. Remove all code blocks handling
5429 the case where DISPP is not NULL.
5431 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5434 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5435 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5436 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5438 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5440 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5441 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5442 (read_comp_units_from_section): New parameter abbrev_section, use
5443 read_and_check_comp_unit_head, allocate signatured_type if needed.
5444 (create_all_comp_units): Update read_comp_units_from_section caller.
5446 2017-08-23 Pedro Alves <palves@redhat.com>
5449 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5450 to null_ptid and switch to thread without reading the registers
5451 after adding the inferior.
5453 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5455 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5457 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5458 (compile_to_object): Implement compile_gcc.
5459 (_initialize_compile): Install "set compile-gcc". Initialize
5462 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5464 * compile/compile.c (compile_to_object): Conditionally call
5465 set_verbose. Conditionally call compile or compile_v0.
5467 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
5469 * sparc64-tdep.h: (adi_normalize_address): New export.
5470 * sparc-nat.h: (open_adi_tag_fd): New export.
5471 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5472 * sparc64-linux-tdep.c:
5473 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5474 (sparc64_linux_handle_segmentation_fault): New function.
5475 (sparc64_linux_init_abi): Register
5476 sparc64_linux_handle_segmentation_fault
5477 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5478 (sparc64_addr_bits_remove): New function.
5479 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5480 (MAX_PROC_NAME_SIZE): New macro.
5481 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5482 (sparc64adilist): New variable.
5483 (adi_proc_list): New variable.
5484 (find_adi_info): New function.
5485 (add_adi_info): New function.
5486 (get_adi_info_proc): New function.
5487 (get_adi_info): New function.
5488 (info_adi_command): New function.
5489 (read_maps_entry): New function.
5490 (adi_available): New function.
5491 (adi_normalize_address): New function.
5492 (adi_align_address): New function.
5493 (adi_convert_byte_count): New function.
5494 (adi_tag_fd): New function.
5495 (adi_is_addr_mapped): New function.
5496 (adi_read_versions): New function.
5497 (adi_write_versions): New function.
5498 (adi_print_versions): New function.
5499 (do_examine): New function.
5500 (do_assign): New function.
5501 (adi_examine_command): New function.
5502 (adi_assign_command): New function.
5503 (_initialize_sparc64_adi_tdep): New function.
5505 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5507 * breakpoint.c (breakpoints_info): Rename to ...
5508 (info_breakpoints_command): ... this.
5509 (watchpoints_info): Rename to ...
5510 (info_watchpoints_command): ... this.
5511 (tracepoints_info): Rename to ...
5512 (info_tracepoints_command): ... this.
5513 (_initialize_breakpoint): Adjust.
5514 * dcache.c (dcache_info): Rename to ...
5515 (info_display_command): ... this.
5516 (_initialize_dcache): Adjust.
5517 * frame.h (args_info): Rename to ...
5518 (info_args_command): ... this.
5519 (locals_info): Rename to ...
5520 (info_locals_command): ... this.
5521 * infcmd.c (nofp_registers_info): Rename to ...
5522 (info_registers_command): ... this.
5523 (float_info): Rename to ...
5524 (info_float_command): ... this.
5525 (program_info): Rename to ...
5526 (info_program_command): ... this.
5527 (all_registers_info): Rename to ...
5528 (info_all_registers_command): ... this.
5529 (vector_info): Rename to ...
5530 (info_vector_command): ... this.
5531 (float_info): Rename to ...
5532 (info_float_command): ... this.
5533 (_initialize_infcmd): Adjust.
5534 * inferior.h (term_info): Rename to ...
5535 (info_terminal_command): ... this.
5536 * inflow.c (term_info): Rename to ...
5537 (info_terminal_command): ... this.
5538 (_initialize_inflow): Adjust.
5539 * infrun.c (signals_info): Rename to ...
5540 (info_signals_command): ... this.
5541 (_initialize_infrun): Adjust.
5542 * objc-lang.c (classes_info): Rename to ...
5543 (info_classes_command): ... this.
5544 (selectors_info): Rename to ...
5545 (info_selectors_command): ... this.
5546 (_initialize_objc_language): Adjust.
5547 * printcmd.c (sym_info): Rename to ...
5548 (info_symbol_command): ... this.
5549 (address_info): Rename to ...
5550 (info_address_command): ... this.
5551 (display_info): Rename to ...
5552 (info_display_command): ... this.
5553 (_initialize_printcmd): Adjust.
5554 * reverse.c (bookmarks_info): Rename to ...
5555 (info_breakpoints_command): ... this.
5556 (_initialize_reverse): Adjust.
5557 * ser-go32.c (dos_info): Rename to ...
5558 (info_serial_command): ... this.
5559 (_initialize_ser_dos): Adjust.
5560 * skip.c (skip_info): Rename to ...
5561 (info_skip_command): ... this.
5562 (_initialize_step_skip): Adjust.
5563 * source.c (line_info): Rename to ...
5564 (info_line_command): ... this.
5565 (source_info): Rename to ...
5566 (info_source_command)
5567 * stack.c (frame_info): Rename to ...
5568 (info_frame_command): ... this.
5569 (locals_info): Rename to ...
5570 (info_locals_command): ... this.
5571 (args_info): Rename to ...
5572 (info_args_command): ... this.
5573 (_initialize_stack): Adjust.
5574 * symtab.c (sources_info): Rename to ...
5575 (info_sources_command): ... this.
5576 (variables_info): Rename to ...
5577 (info_variables_command): ... this.
5578 (functions_info): Rename to ...
5579 (info_functions_command): ... this.
5580 (types_info): Rename to ...
5581 (info_types_command): ... this.
5582 (_initialize_symtab): Adjust.
5583 * target.c (target_info): Rename to ...
5584 (info_target_command): ... this.
5585 (initialize_targets): Adjust.
5586 * tracepoint.c (tvariables_info): Rename to ...
5587 (info_tvariables_command): ... this.
5588 (scope_info): Rename to ...
5589 (info_scope_command): ... this.
5590 (trace_dump_actions): Adjust.
5591 (_initialize_tracepoint): Adjust.
5593 2017-08-22 Tom Tromey <tom@tromey.com>
5595 * breakpoint.h (install_breakpoint): Update.
5596 * breakpoint.c (add_solib_catchpoint): Update.
5597 (install_breakpoint): Change argument to a std::unique_ptr.
5598 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5599 (create_breakpoint_sal, create_breakpoint): Update.
5600 (watch_command_1, catch_exec_command_1)
5601 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5602 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5603 Return the breakpoint.
5604 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5605 (new_single_step_breakpoint): Update.
5606 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5608 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5610 * break-catch-sig.c (create_signal_catchpoint): Use
5612 * ada-lang.c (create_ada_exception_catchpoint): Use
5615 2017-08-22 Tom Tromey <tom@tromey.com>
5617 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5619 2017-08-22 Tom Tromey <tom@tromey.com>
5621 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5622 (lookup_partial_symbol): Update.
5624 2017-08-22 Tom Tromey <tom@tromey.com>
5626 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5627 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5628 (find_and_open_source, symtab_to_fullname): Update.
5629 * psymtab.c (psymtab_to_fullname): Update.
5631 2017-08-22 Tom Tromey <tom@tromey.com>
5633 * exec.c (exec_file_attach): Update.
5634 * linux-thread-db.c (try_thread_db_load): Update.
5635 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5636 * utils.c (gdb_realpath): Change return type.
5637 (gdb_realpath_keepfile): Update.
5638 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5639 (_initialize_utils): Register the new self test.
5640 * source.c (openp): Update.
5641 (find_and_open_source): Update.
5642 * nto-tdep.c (nto_find_and_open_solib): Update.
5643 * main.c (set_gdb_data_directory): Update.
5644 (captured_main_1): Update.
5645 * dwarf2read.c (dwarf2_get_dwz_file): Update
5646 (dw2_map_symbol_filenames): Update.
5647 * auto-load.c (auto_load_safe_path_vec_update): Update.
5648 (filename_is_in_auto_load_safe_path_vec): Change type of
5650 (auto_load_objfile_script): Update.
5651 (file_is_auto_load_safe): Update. Use std::string.
5652 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5654 2017-08-22 Tom Tromey <tom@tromey.com>
5656 * utils.c (gdb_realpath_keepfile): Return a
5657 gdb::unique_xmalloc_ptr.
5658 * exec.c (exec_file_attach): Update.
5659 * utils.h (gdb_realpath_keepfile): Return a
5660 gdb::unique_xmalloc_ptr.
5662 2017-08-22 Tom Tromey <tom@tromey.com>
5664 * compile/compile.c (compile_file_command): Use
5665 gdb::unique_xmalloc_ptr, std::string.
5666 * utils.c (gdb_abspath): Change return type.
5667 * source.c (openp): Update.
5668 * objfiles.c (allocate_objfile): Update.
5669 * main.c (set_gdb_data_directory): Update.
5670 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5672 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5674 * cli-cmds.c (list_commands): List actual code around more than
5677 2017-08-21 John Baldwin <jhb@FreeBSD.org>
5679 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5681 2017-08-21 Pedro Alves <palves@redhat.com>
5684 * c-exp.y (variable production): Handle function aliases.
5685 * minsyms.c (msymbol_is_text): New function.
5686 * minsyms.h (msymbol_is_text): Declare.
5687 * symtab.c (find_function_alias_target): New function.
5688 * symtab.h (find_function_alias_target): Declare.
5690 2017-08-21 Pedro Alves <palves@redhat.com>
5692 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5694 * typeprint.c (whatis_exp): If handling "whatis", and expression
5695 is OP_TYPE, strip one typedef level. Otherwise don't strip
5697 * valops.c (value_cast): Save "to" type before resolving
5698 stubs/typedefs. Use that type as resulting value's type.
5700 2017-08-18 Tom Tromey <tom@tromey.com>
5701 Pedro Alves <palves@redhat.com>
5703 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5704 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5705 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5706 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5707 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5708 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5709 (linux_get_siginfo_data): Add "thread" argument. Use
5711 * linux-nat.c (linux_child_follow_fork)
5712 (check_stopped_by_watchpoint): Use scoped_restore.
5713 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5714 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5715 (restore_inferior_ptid, save_inferior_ptid): Remove.
5716 * btrace.c (btrace_fetch): Use scoped_restore.
5717 * bsd-uthread.c (bsd_uthread_fetch_registers)
5718 (bsd_uthread_store_registers): Use scoped_restore.
5719 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5721 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5722 (aix_thread_xfer_partial): Use scoped_restore.
5723 * inferior.h (save_inferior_ptid): Remove.
5725 2017-08-18 Yao Qi <yao.qi@linaro.org>
5728 * arm-tdep.c (gdb_print_insn_arm): Mark
5729 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5731 2017-08-18 Yao Qi <yao.qi@linaro.org>
5733 * NEWS: Mention GDBserver's new option "--selftest".
5734 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5735 * selftest.c: Move it to common/selftest.c.
5736 * selftest.h: Move it to common/selftest.h.
5737 * selftest-arch.c (reset): New function.
5738 (tests_with_arch): Call reset.
5740 2017-08-18 Yao Qi <yao.qi@linaro.org>
5742 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5743 instead of exception_fprintf and printf_filtered.
5745 2017-08-18 Yao Qi <yao.qi@linaro.org>
5747 * selftest.c (register_self_test): Rename it to
5748 selftests::register_test.
5749 (run_self_tests): selftest::run_tests.
5750 * selftest.h: Update declarations.
5751 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5752 selftests::register_test_foreach_arch.
5753 * selftest-arch.h: Update declaration.
5754 * aarch64-tdep.c: Update.
5755 * arm-tdep.c: Likewise.
5756 * disasm-selftests.c: Likewise.
5757 * dwarf2loc.c: Likewise.
5758 * dwarf2-frame.c: Likewise.
5759 * findvar.c: Likewise.
5760 * gdbarch-selftests.c: Likewise.
5761 * maint.c (maintenance_selftest): Likewise.
5762 * regcache.c: Likewise.
5763 * rust-exp.y: Likewise.
5764 * selftest-arch.c: Likewise.
5765 * unittests/environ-selftests.c: Likewise.
5766 * unittests/function-view-selftests.c: Likewise.
5767 * unittests/offset-type-selftests.c: Likewise.
5768 * unittests/optional-selftests.c: Likewise.
5769 * unittests/scoped_restore-selftests.c: Likewise.
5770 * utils-selftests.c: Likewise.
5772 2017-08-17 Pedro Alves <palves@redhat.com>
5774 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5777 2017-08-17 Pedro Alves <palves@redhat.com>
5779 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5781 (reset_die_in_process): Delete, replaced by ...
5782 (process_die_scope): ... this new class. Make it responsible for
5783 freeing cu->line_header too.
5784 (process_die): Use process_die_scope.
5785 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5786 cu->line_header_die_owner. Don't release the line header if it's
5788 (setup_type_unit_groups): Make the CU/DIE own the line header.
5789 Don't release the line header here.
5791 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5793 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5795 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5797 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5800 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5802 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5805 2017-08-15 Stafford Horne <shorne@gmail.com>
5807 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5809 2017-08-15 Stafford Horne <shorne@gmail.com>
5811 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5813 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5816 * infcmd.c (unset_environment_command): Use the 'clear' method on
5817 the environment instead of resetting it.
5819 2017-08-15 John Baldwin <jhb@FreeBSD.org>
5821 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5824 2017-08-14 Tom Tromey <tom@tromey.com>
5826 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5827 (print_binary_chars): Likewise.
5828 (BITS_IN_BYTES): Remove.
5830 2017-08-14 Tom Tromey <tom@tromey.com>
5833 * valprint.c (LOW_ZERO): Change value to 034.
5834 (print_octal_chars): Add static_asserts for octal constants.
5835 * printcmd.c (print_scalar_formatted): Add 'd' case.
5837 2017-08-11 Tom Tromey <tom@tromey.com>
5839 * symfile.c (add_symbol_file_command): Use std::vector.
5841 2017-08-14 Tom Tromey <tom@tromey.com>
5843 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5844 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5846 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5848 2017-08-11 Pedro Alves <palves@redhat.com>
5850 * infrun.c (process_event_stop_test): Adjust
5851 function_name_is_marked_for_skip call.
5852 * skip.c: Include <list>.
5853 (skiplist_entry): Make it a class with private fields, and
5855 (skiplist_entry_chain): Delete.
5856 (skiplist_entries): New.
5857 (skiplist_entry_count): Delete.
5858 (highest_skiplist_entry_num): New.
5859 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5860 (add_skiplist_entry): Delete.
5861 (skiplist_entry::skiplist_entry): New.
5862 (skiplist_entry::add_entry): New.
5863 (skip_file_command, skip_function): Adjust.
5864 (compile_skip_regexp): Delete.
5865 (skip_command): Don't compile regexp here. Adjust to use
5866 skiplist_entry::add_entry.
5867 (skip_info): Adjust to use range-for and getters.
5868 (skip_enable_command, skip_disable_command): Adjust to use
5869 range-for and setters.
5870 (skip_delete_command): Adjust to use std::list.
5871 (add_skiplist_entry): Delete.
5872 (skip_file_p): Delete, refactored as ...
5873 (skiplist_entry::do_skip_file_p): ... this new method.
5874 (skip_gfile_p): Delete, refactored as ...
5875 (skiplist_entry::do_gskip_file_p): ... this new method.
5876 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5877 (skiplist_entry::skip_function_p): ... this new method.
5878 (function_name_is_marked_for_skip): Now returns bool, and takes
5879 the function sal by const reference. Adjust to use range-for and
5880 skiplist_entry methods.
5881 (_initialize_step_skip): Remove references to
5882 skiplist_entry_chain, skiplist_entry_count.
5883 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5884 takes the function sal by const reference.
5886 2017-08-11 Yao Qi <yao.qi@linaro.org>
5888 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5889 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5890 (dwarf2_frame_cache):
5891 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5892 RETURN_MASK_ALL and set *this_case to NULL.
5893 * frame-unwind.h: Update comments.
5895 2017-08-11 Yao Qi <yao.qi@linaro.org>
5897 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5898 (dwarf2_frame_state_copy_regs): Remove.
5899 (dwarf2_frame_state_free_regs): Remove.
5900 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5901 (dwarf2_restore_rule): Call method .alloc_regs instead of
5902 dwarf2_frame_state_alloc_regs.
5903 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5904 constructor. Call std::move.
5905 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5906 (dwarf2_frame_cache): Likewise.
5908 [GDB_SELF_TEST]: Include selftest.h and
5910 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5911 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5912 execute_cfa_program_test.
5914 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5915 copy ctor, assignment operator, move assignment.
5916 <alloc_regs>: New method.
5918 (struct dwarf2_frame_state): Delete dtor.
5919 (dwarf2_frame_state_alloc_regs): Remove declaration.
5920 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5921 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5923 2017-08-11 Yao Qi <yao.qi@linaro.org>
5925 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5926 (dwarf2_frame_state::dwarf2_frame_state): New.
5927 (dwarf2_frame_state::~dwarf2_frame_state): New.
5928 (dwarf2_fetch_cfa_info): Update.
5929 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5930 rather than a pointer. Update code.
5931 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5933 <data_align, code_align, retaddr_column>: Change them to const.
5934 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5937 2017-08-11 Yao Qi <yao.qi@linaro.org>
5939 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5940 <loc.exp>: New field.
5941 * dwarf2-frame.c (execute_cfa_program): Update.
5942 (dwarf2_frame_prev_register): Update.
5944 2017-08-10 Pedro Alves <palves@redhat.com>
5946 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5948 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5950 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5951 (fbsd_pending_children): Use std::list.
5952 (fbsd_remember_child): Likewise.
5953 (fbsd_is_child_pending): Likewise.
5954 (fbsd_pending_vfork_done): Use std::forward_list.
5955 (fbsd_add_vfork_done): Likewise.
5956 (fbsd_is_vfork_done_pending): Likewise.
5957 (fbsd_next_vfork_done): Likewise.
5959 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5961 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5962 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5963 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5965 (fbsd_xfer_partial): Use gdb::byte_vector.
5966 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
5968 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5970 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5972 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5974 2017-08-09 Tom Tromey <tom@tromey.com>
5976 * skip.c (skiplist_entry): New constructor.
5977 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5978 (skiplist_entry::file_is_glob): Now bool.
5979 (skiplist_entry::file, skiplist_entry::function): Now
5981 (make_skip_entry): Return a unique_ptr. Use new.
5982 (free_skiplist_entry, free_skiplist_entry_cleanup)
5983 (make_free_skiplist_entry_cleanup): Remove.
5984 (skip_command, skip_disable_command, add_skiplist_entry)
5985 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5986 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5987 (function_name_is_marked_for_skip): Update.
5988 (skip_delete_command): Update. Use delete.
5990 2017-08-09 Jiong Wang <jiong.wang@arm.com>
5992 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5993 (aarch64_linux_core_read_description): New function.
5994 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5996 2017-08-09 Pedro Alves <palves@redhat.com>
5998 * cp-name-parser.y (cp_comp_to_string): Return a
5999 gdb::unique_xmalloc_ptr<char>.
6000 * cp-support.c (replace_typedefs_qualified_name)
6001 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
6002 (cp_canonicalize_string_full): Use op= instead of explicit
6004 (cp_class_name_from_physname, method_name_from_physname)
6005 (cp_func_name, cp_remove_params): Adjust to use
6006 gdb::unique_xmalloc_ptr<char>.
6007 * cp-support.h (cp_comp_to_string): Return a
6008 gdb::unique_xmalloc_ptr<char>.
6009 * python/py-type.c (typy_lookup_type): Adjust to use
6010 gdb::unique_xmalloc_ptr<char>.
6012 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
6014 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
6016 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6017 Yao Qi <yao.qi@linaro.org>
6019 * cp-support.c (cp_canonicalize_string_full): Use
6020 gdb::unique_xmalloc_ptr<char>.
6021 (cp_canonicalize_string): Likewise.
6023 2017-08-09 Yao Qi <yao.qi@linaro.org>
6025 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6026 * regformats/i386/amd64-avx-avx512.dat: Remove.
6027 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6028 * regformats/i386/amd64-avx-mpx.dat:Remove.
6029 * regformats/i386/amd64-avx.dat: Remove.
6030 * regformats/i386/amd64-mpx.dat: Remove.
6031 * regformats/i386/i386-avx-avx512.dat: Remove.
6032 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6033 * regformats/i386/i386-avx-mpx.dat: Remove.
6034 * regformats/i386/i386-mmx.dat: Remove.
6035 * regformats/i386/i386-mpx.dat: Remove.
6037 2017-08-09 Yao Qi <yao.qi@linaro.org>
6039 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6040 * amd64-tdep.c: Don't include features/i386/x32*.c.
6041 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6043 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6044 and i386/x32-avx-avx512.
6045 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6047 * features/i386/x32-avx-avx512.c: Removed.
6048 * features/i386/x32-avx-avx512.xml: Removed.
6049 * features/i386/x32-avx.c: Removed.
6050 * features/i386/x32-avx.xml: Removed.
6051 * features/i386/x32.c: Removed.
6052 * features/i386/x32.xml: Removed.
6053 * regformats/i386/x32-avx-avx512.dat: Removed.
6054 * regformats/i386/x32-avx.dat: Removed.
6055 * regformats/i386/x32.dat: Removed.
6057 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6059 PR breakpoints/21886
6060 * mem-break.c (default_memory_insert_breakpoint): Use
6061 `->placed_address' rather than `->reqstd_address' for the
6062 breakpoint location.
6064 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6066 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6069 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6071 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6072 a union of `tdep_info', `tdesc_data' and `id'.
6073 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6074 rather than `info.tdep_info'.
6075 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6076 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6077 * i386-tdep.c (i386_gdbarch_init): Likewise.
6078 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6079 * mips-tdep.c (mips_gdbarch_init): Likewise.
6080 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6081 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6082 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6084 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6086 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6087 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6089 * spu-tdep.c (spu_gdbarch_init): Likewise.
6090 * gdbarch.h: Regenerate.
6092 2017-08-07 Leszek Swirski <leszeks@google.com>
6095 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6097 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6099 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6100 (gdbsim_open): Rename gdb_argv args object to argv.
6102 2017-08-05 Tom Tromey <tom@tromey.com>
6104 * compile/compile-object-load.c (compile_object_load): Use
6105 gdb::unique_xmalloc_ptr.
6106 * cli/cli-dump.c (scan_filename): Rename from
6107 scan_filename_with_cleanup. Change return type.
6108 (scan_expression): Rename from scan_expression_with_cleanup.
6110 (dump_memory_to_file, dump_value_to_file, restore_command):
6111 Use gdb::unique_xmalloc_ptr. Update.
6112 * cli/cli-cmds.c (find_and_open_script): Use
6113 gdb::unique_xmalloc_ptr.
6114 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6115 * symmisc.c (maintenance_print_symbols)
6116 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6117 * symfile.c (symfile_bfd_open, generic_load)
6118 (add_symbol_file_command, remove_symbol_file_command): Use
6119 gdb::unique_xmalloc_ptr.
6120 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6121 * psymtab.c (maintenance_print_psymbols): Use
6122 gdb::unique_xmalloc_ptr.
6123 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6124 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6125 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6126 (reload_shared_libraries_1): Likewise.
6128 2017-08-05 Tom Tromey <tom@tromey.com>
6130 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6131 (rust_op_vector, rust_set_vector): New typedefs.
6132 (current_parser): New global.
6133 (work_obstack): Change to pointer type. Update all users.
6134 (rust_ast, pstate): Remove globals.
6135 (struct rust_parser): New.
6136 (%union) <params, field_inits>: Change type.
6137 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6138 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6139 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6140 (convert_params_to_types, convert_params_to_expression): Change
6142 (ast_string): Change type of "fields".
6143 (rust_parse): Make a rust_parser. Remove cleanups.
6144 (rust_lex_tests): Make and install an auto_obstack.
6146 2017-08-04 Yao Qi <yao.qi@linaro.org>
6148 * configure.srv (ipa_x32_linux_regobj): New.
6149 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6150 instead of X86_TDESC_AVX512.
6151 (initialize_low_tracepoint): Call
6152 init_registers_x32_avx_avx512_linux.
6154 2017-08-04 Yao Qi <yao.qi@linaro.org>
6156 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6158 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6160 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6162 2017-08-03 Tom Tromey <tom@tromey.com>
6164 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6166 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6168 2017-08-03 Tom Tromey <tom@tromey.com>
6170 * python/py-param.c (compute_enum_values): Use gdb_argv.
6172 2017-08-03 Tom Tromey <tom@tromey.com>
6174 * utils.h (struct gdb_argv_deleter): New.
6175 (gdb_argv): New class.
6176 * utils.c (gdb_argv::reset): New method.
6177 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6178 * tracefile.c (tsave_command): Use gdb_argv.
6179 * top.c (new_ui_command): Use gdb_argv.
6180 * symmisc.c (maintenance_print_symbols)
6181 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6182 * symfile.c (symbol_file_command, generic_load)
6183 (remove_symbol_file_command): Use gdb_argv.
6184 * stack.c (backtrace_command): Use gdb_argv.
6185 * source.c (add_path, show_substitute_path_command)
6186 (unset_substitute_path_command, set_substitute_path_command):
6188 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6189 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6190 * remote.c (extended_remote_run, remote_put_command)
6191 (remote_get_command, remote_delete_command): Use gdb_argv.
6192 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6193 (gdbsim_open): Use gdb_argv.
6194 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6195 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6196 * procfs.c (procfs_info_proc): Use gdb_argv.
6197 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6198 * infrun.c (handle_command): Use gdb_argv.
6199 * inferior.c (add_inferior_command, clone_inferior_command):
6201 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6202 * exec.c (exec_file_command): Use gdb_argv.
6203 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6204 * compile/compile.c (build_argc_argv): Use gdb_argv.
6206 2017-08-03 Tom Tromey <tom@tromey.com>
6208 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6210 2017-08-03 Tom Tromey <tom@tromey.com>
6212 * python/python.c (compute_python_string): Return std::string.
6213 (gdbpy_eval_from_control_command): Update.
6214 (do_start_initialization): Use std::string.
6215 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6217 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6220 2017-08-03 Tom Tromey <tom@tromey.com>
6222 * top.h (do_restore_instream_cleanup): Remove.
6223 * top.c (do_restore_instream_cleanup): Remove.
6224 (read_command_file): Use scoped_restore.
6225 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6227 2017-08-03 Tom Tromey <tom@tromey.com>
6229 * cli/cli-script.c (execute_user_command)
6230 (execute_control_command): Use scoped_restore.
6232 2017-08-03 Tom Tromey <tom@tromey.com>
6234 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6235 (execute_user_command): Remove user_call_depth; use
6236 user_args_stack's size instead.
6238 2017-08-03 Tom Tromey <tom@tromey.com>
6240 * top.h (in_user_command): Remove.
6241 * top.c (in_user_command): Remove.
6242 * cli/cli-script.c (do_restore_user_call_depth)
6243 (execute_user_command): Update.
6245 2017-08-03 Tom Tromey <tom@tromey.com>
6247 * valops.c (search_struct_method): Use gdb::byte_vector.
6248 * valarith.c (value_concat): Use std::vector.
6249 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6250 (simple_search_memory): Likewise.
6251 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6252 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6253 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6254 * elfread.c (elf_rel_plt_read): Use std::string.
6255 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6256 * cli/cli-dump.c (restore_section_callback): Use
6259 2017-08-03 Tom Tromey <tom@tromey.com>
6261 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6263 2017-08-03 Tom Tromey <tom@tromey.com>
6265 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6266 (tui_register_format): Use scoped_restore.
6268 2017-08-03 Tom Tromey <tom@tromey.com>
6270 * reverse.c (exec_direction_default): Remove.
6271 (exec_reverse_once): Use scoped_restore.
6272 * remote.c (restore_remote_timeout): Remove.
6273 (remote_flash_erase, remote_flash_write, remote_flash_done)
6274 (readchar, remote_serial_write): Use scoped_restore.
6275 * cli/cli-script.c (struct source_cleanup_lines_args)
6276 (source_cleanup_lines): Remove.
6277 (script_from_file): Use scoped_restore.
6278 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6279 (source_command): Use scoped_restore.
6281 2017-08-03 Tom Tromey <tom@tromey.com>
6283 * utils.h (make_cleanup_free_so): Remove.
6284 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6285 * solist.h (struct so_deleter): New.
6286 (so_list_up): New typedef.
6287 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6289 2017-08-03 Tom Tromey <tom@tromey.com>
6291 * utils.h (make_cleanup_restore_current_language): Remove.
6292 * utils.c (do_restore_current_language)
6293 (make_cleanup_restore_current_language): Remove.
6294 * parse.c (parse_exp_in_context_1)
6295 (parse_expression_with_language): Use
6296 scoped_restore_current_language.
6297 * mi/mi-main.c (mi_cmd_execute): Use
6298 scoped_restore_current_language.
6299 * language.h (scoped_restore_current_language): New class.
6301 2017-08-03 Tom Tromey <tom@tromey.com>
6303 * compile/compile.c (cleanup_unlink_file): Remove.
6304 (compile_to_object): Use gdb::unlinker.
6305 (eval_compile_command): Likewise.
6307 2017-08-03 Tom Tromey <tom@tromey.com>
6309 * utils.h (make_cleanup_fclose): Remove.
6310 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6312 2017-08-03 Tom Tromey <tom@tromey.com>
6314 * top.c (open_terminal_stream): Return gdb_file_up.
6315 (new_ui_command): Update.
6317 2017-08-03 Tom Tromey <tom@tromey.com>
6319 * source.c (print_source_lines_base, forward_search_command)
6320 (reverse_search_command): Use gdb_file_up.
6322 2017-08-03 Tom Tromey <tom@tromey.com>
6324 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6326 2017-08-03 Tom Tromey <tom@tromey.com>
6328 * cli/cli-cmds.c (find_and_open_script): Change return type.
6329 Remove "streamp" and "full_path" parameters.
6330 (source_script_with_search): Update.
6331 * auto-load.c (source_script_file): Update.
6332 * cli/cli-cmds.h (find_and_open_script): Change type.
6333 (open_script): New struct.
6335 2017-08-03 Tom Tromey <tom@tromey.com>
6337 * xml-support.c (xml_fetch_content_from_file): Update.
6338 * ui-file.c (stdio_file::open): Update.
6339 * tracefile-tfile.c (tfile_start): Update.
6340 * remote.c (remote_file_put, remote_file_get): Update.
6341 * nat/linux-procfs.c (linux_proc_get_int)
6342 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6343 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6344 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6345 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6346 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6347 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6348 * linux-nat.c (linux_proc_pending_signals): Update.
6349 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6350 (file_closer): Remove.
6351 * compile/compile.c (compile_to_object): Update.
6352 * common/filestuff.h (struct gdb_file_deleter): New.
6353 (gdb_file_up): New typedef.
6354 (gdb_fopen_cloexec): Change return type.
6355 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6356 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6357 (dump_binary_file, restore_binary_file): Update.
6358 * auto-load.c (auto_load_objfile_script_1): Update.
6360 2017-08-03 Tom Tromey <tom@tromey.com>
6362 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6363 (info_static_tracepoint_markers_command): Likewise.
6364 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6365 * skip.c (skip_info): Use ui_out_emit_table.
6366 * progspace.c (print_program_space): Use ui_out_emit_table.
6367 * osdata.c (info_osdata): Use ui_out_emit_table.
6368 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6370 * linux-thread-db.c (info_auto_load_libthread_db): Use
6372 * inferior.c (print_inferior): Use ui_out_emit_table.
6373 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6374 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6375 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6376 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6377 * ui-out.h (class ui_out_emit_table): New.
6379 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6381 * mips-tdep.c (mips_fpu_type_str): New function.
6382 (mips_dump_tdep): Call it.
6384 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6386 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6389 2017-07-31 Xavier Roirand <roirand@adacore.com>
6391 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6393 2017-07-27 Xavier Roirand <roirand@adacore.com>
6395 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6397 2017-07-26 Yao Qi <yao.qi@linaro.org>
6399 * cli/cli-cmds.c (maintenancechecklist): New variable.
6400 * gdbcmd.h (maintenancechecklist): Declare it.
6401 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6402 Call i386_linux_read_description with different masks.
6403 * maint.c (maintenance_check_command): New function.
6404 (_initialize_maint_cmds): Call add_prefix_cmd.
6405 * target-descriptions.c (tdesc_reg): override operator != and ==.
6406 (tdesc_type): Likewise.
6407 (tdesc_feature): Likewise.
6408 (target_desc): Likewise.
6409 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6410 (maintenance_check_xml_descriptions): New function.
6411 (_initialize_target_descriptions) Add command "xml-descriptions".
6412 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6414 2017-07-26 Yao Qi <yao.qi@linaro.org>
6416 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6417 Include features/i386/32bit-*.c.
6418 (i386_linux_read_description): Generate target description if it
6420 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6422 * features/i386/32bit-linux.c: Re-generated.
6423 * features/i386/32bit-sse.c: Likewise.
6424 * target-descriptions.c (print_c_feature::visit): Print code to
6425 set register number if needed.
6426 (print_c_feature) <m_next_regnum>: New field.
6428 2017-07-26 Yao Qi <yao.qi@linaro.org>
6430 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6431 (FEATURE_XMLFILES): New.
6432 (FEATURE_CFILES): New.
6434 (clean-cfiles): Remove generated c files.
6435 * features/i386/32bit-avx.c: Generated.
6436 * features/i386/32bit-avx512.c: Generated.
6437 * features/i386/32bit-core.c: Generated.
6438 * features/i386/32bit-linux.c: Generated.
6439 * features/i386/32bit-mpx.c: Generated.
6440 * features/i386/32bit-pkeys.c: Generated.
6441 * features/i386/32bit-sse.c: Generated.
6442 * target-descriptions.c: Include algorithm.
6443 (tdesc_element_visitor): Add method visit_end.
6444 (print_c_tdesc): Implement visit_end.
6445 (print_c_tdesc:: m_filename_after_features): Move it to
6447 (print_c_feature): New class.
6448 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6449 name starts with "i386/32bit-".
6451 2017-07-26 Yao Qi <yao.qi@linaro.org>
6453 * target-descriptions.c (tdesc_element_visitor): New class.
6454 (tdesc_element): New class.
6455 (tdesc_reg): Inherit from tdesc_element.
6456 (tdesc_reg::accept): New function.
6457 (tdesc_type): Inherit from tdesc_element.
6458 (tdesc_type::accept): New function.
6459 (tdesc_feature): Inherit from tdesc_element.
6460 (tdesc_feature::accept): New function.
6461 (target_desc): Inherit from tdesc_element.
6462 (target_desc::target_desc): New.
6463 (target_desc::~target_desc): New.
6464 (target_desc::accept): New.
6465 (allocate_target_description): Use new.
6466 (free_target_description): Use delete.
6467 (print_c_tdesc): New class.
6468 (maint_print_c_tdesc_cmd): Adjust.
6470 * features/aarch64.c: Re-generated.
6471 * features/arc-arcompact.c: Re-generated.
6472 * features/arc-v2.c: Re-generated.
6473 * features/arm/arm-with-iwmmxt.c: Re-generated.
6474 * features/arm/arm-with-m.c: Re-generated.
6475 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6476 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6477 * features/arm/arm-with-neon.c: Re-generated.
6478 * features/arm/arm-with-vfpv2.c: Re-generated.
6479 * features/arm/arm-with-vfpv3.c: Re-generated.
6480 * features/i386/amd64-avx-avx512.c: Re-generated.
6481 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6482 * features/i386/amd64-avx.c: Re-generated.
6483 * features/i386/amd64-avx-linux.c: Re-generated.
6484 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6485 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6486 * features/i386/amd64-avx-mpx.c: Re-generated.
6487 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6488 * features/i386/amd64.c: Re-generated.
6489 * features/i386/amd64-linux.c: Re-generated.
6490 * features/i386/amd64-mpx.c: Re-generated.
6491 * features/i386/amd64-mpx-linux.c: Re-generated.
6492 * features/i386/i386-avx-avx512.c: Re-generated.
6493 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6494 * features/i386/i386-avx.c: Re-generated.
6495 * features/i386/i386-avx-linux.c: Re-generated.
6496 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6497 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6498 * features/i386/i386-avx-mpx.c: Re-generated.
6499 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6500 * features/i386/i386.c: Re-generated.
6501 * features/i386/i386-linux.c: Re-generated.
6502 * features/i386/i386-mmx.c: Re-generated.
6503 * features/i386/i386-mmx-linux.c: Re-generated.
6504 * features/i386/i386-mpx.c: Re-generated.
6505 * features/i386/i386-mpx-linux.c: Re-generated.
6506 * features/i386/x32-avx-avx512.c: Re-generated.
6507 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6508 * features/i386/x32-avx.c: Re-generated.
6509 * features/i386/x32-avx-linux.c: Re-generated.
6510 * features/i386/x32.c: Re-generated.
6511 * features/i386/x32-linux.c: Re-generated.
6512 * features/microblaze.c: Re-generated.
6513 * features/microblaze-with-stack-protect.c: Re-generated.
6514 * features/mips64-dsp-linux.c: Re-generated.
6515 * features/mips64-linux.c: Re-generated.
6516 * features/mips-dsp-linux.c: Re-generated.
6517 * features/mips-linux.c: Re-generated.
6518 * features/nds32.c: Re-generated.
6519 * features/nios2.c: Re-generated.
6520 * features/nios2-linux.c: Re-generated.
6521 * features/rs6000/powerpc-32.c: Re-generated.
6522 * features/rs6000/powerpc-32l.c: Re-generated.
6523 * features/rs6000/powerpc-403.c: Re-generated.
6524 * features/rs6000/powerpc-403gc.c : Re-generated.
6525 * features/rs6000/powerpc-405.c: Re-generated.
6526 * features/rs6000/powerpc-505.c: Re-generated.
6527 * features/rs6000/powerpc-601.c: Re-generated.
6528 * features/rs6000/powerpc-602.c: Re-generated.
6529 * features/rs6000/powerpc-603.c: Re-generated.
6530 * features/rs6000/powerpc-604.c: Re-generated.
6531 * features/rs6000/powerpc-64.c: Re-generated.
6532 * features/rs6000/powerpc-64l.c: Re-generated.
6533 * features/rs6000/powerpc-7400.c: Re-generated.
6534 * features/rs6000/powerpc-750.c: Re-generated.
6535 * features/rs6000/powerpc-860.c: Re-generated.
6536 * features/rs6000/powerpc-altivec32.c: Re-generated.
6537 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6538 * features/rs6000/powerpc-altivec64.c: Re-generated.
6539 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6540 * features/rs6000/powerpc-cell32l.c: Re-generated.
6541 * features/rs6000/powerpc-cell64l.c: Re-generated.
6542 * features/rs6000/powerpc-e500.c: Re-generated.
6543 * features/rs6000/powerpc-e500l.c: Re-generated.
6544 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6545 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6546 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6547 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6548 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6549 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6550 * features/rs6000/powerpc-vsx32.c: Re-generated.
6551 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6552 * features/rs6000/powerpc-vsx64.c: Re-generated.
6553 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6554 * features/rs6000/rs6000.c: Re-generated.
6555 * features/s390-linux32.c: Re-generated.
6556 * features/s390-linux32v1.c: Re-generated.
6557 * features/s390-linux32v2.c: Re-generated.
6558 * features/s390-linux64.c: Re-generated.
6559 * features/s390-linux64v1.c: Re-generated.
6560 * features/s390-linux64v2.c: Re-generated.
6561 * features/s390-te-linux64.c: Re-generated.
6562 * features/s390-tevx-linux64.c: Re-generated.
6563 * features/s390-vx-linux64.c: Re-generated.
6564 * features/s390x-linux64.c: Re-generated.
6565 * features/s390x-linux64v1.c: Re-generated.
6566 * features/s390x-linux64v2.c: Re-generated.
6567 * features/s390x-te-linux64.c: Re-generated.
6568 * features/s390x-tevx-linux64.c: Re-generated.
6569 * features/s390x-vx-linux64.c: Re-generated.
6570 * features/sparc/sparc32-solaris.c: Re-generated.
6571 * features/sparc/sparc64-solaris.c: Re-generated.
6572 * features/tic6x-c62x.c: Re-generated.
6573 * features/tic6x-c62x-linux.c: Re-generated.
6574 * features/tic6x-c64x.c: Re-generated.
6575 * features/tic6x-c64x-linux.c: Re-generated.
6576 * features/tic6x-c64xp.c: Re-generated.
6577 * features/tic6x-c64xp-linux.c: Re-generated.
6579 2017-07-26 Yao Qi <yao.qi@linaro.org>
6581 * i386-linux-tdep.c (i386_linux_read_description): New function.
6582 (i386_linux_core_read_description): Call
6583 i386_linux_read_description.
6584 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6585 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6586 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6587 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6588 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6589 * x86-linux-nat.c (x86_linux_read_description): Call
6590 i386_linux_read_description.
6592 2017-07-26 Yao Qi <yao.qi@linaro.org>
6595 * features/Makefile (%.c: %.xml): Pass the xml file name to
6596 command "maint print c-tdesc".
6597 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6600 2017-07-26 Yao Qi <yao.qi@linaro.org>
6602 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6603 in-class initialization.
6604 (tdesc_create_feature): Call new instead of XCNEW.
6605 (free_target_description): Ue delete.
6607 2017-07-25 John Baldwin <jhb@FreeBSD.org>
6609 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6611 2017-07-25 Yao Qi <yao.qi@linaro.org>
6613 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6615 (amd64_x32_init_abi): Likewise.
6616 * amd64-tdep.h (amd64_init_abi): Update declaration.
6617 (amd64_x32_init_abi): Likewise.
6619 2017-07-25 Yao Qi <yao.qi@linaro.org>
6622 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6623 condition for FPSCR.
6624 (arm_linux_store_inferior_registers): Likewise.
6626 2017-07-22 Tom Tromey <tom@tromey.com>
6628 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6629 <syscalls_counts>: Now a std::vector.
6630 (get_catch_syscall_inferior_data): Use "new".
6631 (catch_syscall_inferior_data_cleanup): Use "delete".
6632 (insert_catch_syscall, remove_catch_syscall)
6633 (clear_syscall_counts): Update.
6635 2017-07-22 Tom Tromey <tom@tromey.com>
6637 * break-catch-syscall.c (syscall_catchpoint)
6638 <syscalls_to_be_caught>: Now a std::vector<int>
6639 (~syscall_catchpoint): Remove.
6640 (insert_catch_syscall, remove_catch_syscall)
6641 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6642 (print_mention_catch_syscall, print_recreate_catch_syscall):
6644 (create_syscall_event_catchpoint): Change type of "filter"
6646 (catch_syscall_split_args): Return a std::vector.
6647 (catch_syscall_command_1, catching_syscall_number_1): Update.
6649 2017-07-22 Tom Tromey <tom@tromey.com>
6651 * break-catch-throw.c (struct exception_catchpoint)
6652 <exception_rx>: Now a std::string.
6653 (~exception_catchpoint): Remove.
6654 (print_one_detail_exception_catchpoint): Update.
6655 (handle_gnu_v3_exceptions): Change type of except_rx.
6656 (extract_exception_regexp): Return a std::string.
6657 (catch_exception_command_1): Update.
6659 2017-07-22 Tom Tromey <tom@tromey.com>
6661 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6662 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6664 <catch_all>: Now a bool.
6665 (~signal_catchpoint): Remove.
6666 (signal_catchpoint_insert_location)
6667 (signal_catchpoint_remove_location)
6668 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6669 (signal_catchpoint_print_mention)
6670 (signal_catchpoint_print_recreate)
6671 (signal_catchpoint_explains_signal): Update.
6672 (create_signal_catchpoint): Change type of "filter" and
6674 (catch_signal_split_args): Return a std::vector. Change type of
6676 (catch_signal_command): Update.
6678 2017-07-20 Pedro Alves <palves@redhat.com>
6680 * ada-lang.c (ada_language_defn): Make extern.
6681 (_initialize_ada_language): Remove add_language call.
6682 * c-lang.c (c_language_defn, cplus_language_defn)
6683 (asm_language_defn, minimal_language_defn): Make extern.
6684 (_initialize_c_language): Delete.
6685 * completer.c (compare_cstrings): Delete, moved to utils.h.
6686 * d-lang.c (d_language_defn): Make extern.
6687 (_initialize_d_language): Remove add_language calls.
6688 * defs.h (enum language): Add comment.
6689 * f-lang.c (f_language_defn): Make extern.
6690 (_initialize_f_language): Remove add_language call.
6691 * go-lang.c (go_language_defn): Make extern.
6692 (_initialize_go_language): Remove add_language call.
6693 * language.c: Include <algorithm>.
6694 (languages): Redefine as const array.
6695 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6696 (set_language_command): Handle "local". Use for-range loop.
6697 (set_language): Remove loop.
6698 (language_enum): Rewrite.
6699 (language_def, language_str): Remove loops.
6700 (add_language): Delete.
6701 (add_set_language_command): New, based on add_languages.
6702 (skip_language_trampoline): Adjust.
6703 (local_language_defn): Delete.
6704 (language_gdbarch_post_init): Adjust.
6705 (_initialize_language): Remove add_language calls. Call
6706 add_set_language_command.
6707 * language.h (add_language): Delete.
6708 (auto_language_defn)
6709 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6710 (asm_language_defn, c_language_defn, cplus_language_defn)
6711 (d_language_defn, f_language_defn, go_language_defn)
6712 (m2_language_defn, objc_language_defn, opencl_language_defn)
6713 (pascal_language_defn, rust_language_defn): Declare.
6714 * m2-lang.c (m2_language_defn): Make extern.
6715 (_initialize_m2_language): Remove add_language call.
6716 * objc-lang.c (objc_language_defn): Make extern.
6717 (_initialize_objc_language): Remove add_language call.
6718 * opencl-lang.c (opencl_language_defn): Make extern.
6719 (_initialize_opencl_language): Remove add_language call.
6720 * p-lang.c (pascal_language_defn): Make extern.
6721 (_initialize_pascal_language): Delete.
6722 * rust-lang.c (rust_language_defn): Make extern.
6723 (_initialize_rust_language): Delete.
6724 * utils.h (compare_cstrings): New static inline function.
6726 2017-07-20 Pedro Alves <palves@redhat.com>
6728 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6729 (get_var_value): Constify parameters.
6730 (get_int_var_value): Change prototype.
6731 (to_fixed_range_type): Adjust.
6732 * ada-lang.h (get_int_var_value): Change prototype.
6734 2017-07-20 Pedro Alves <palves@redhat.com>
6736 * dwarf2read.c (dw2_lookup_symbol): Use
6737 SYMBOL_MATCHES_SEARCH_NAME.
6738 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6740 2017-07-20 Pedro Alves <palves@redhat.com>
6742 * block.c (block_iter_name_step, block_iter_name_first)
6743 (block_iter_name_next): Delete.
6744 (block_lookup_symbol_primary): Adjust to use
6745 dict_iter_match_first/dict_iter_match_next.
6746 * block.h (block_iter_name_first, block_iter_name_next): Delete
6748 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6749 dict_iter_match_first/dict_iter_match_next.
6751 2017-07-20 Pedro Alves <palves@redhat.com>
6753 * cp-support.c (cp_find_first_component_aux): Add missing case for
6756 2017-07-18 David Blaikie <dblaikie@gmail.com>
6758 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6759 of dwo_cu's dwo_file.
6761 2017-07-18 Yao Qi <yao.qi@linaro.org>
6763 * remote.c (store_registers_using_G): Remove one line comment.
6765 2017-07-18 Yao Qi <yao.qi@linaro.org>
6767 * regcache.c (regcache_cpy): Simplify it.
6768 (regcache::cpy_no_passthrough): Remove it.
6769 * regcache.h (cpy_no_passthrough): Remove it.
6770 (regcache_dup, regcache_cpy): Update comments.
6772 2017-07-18 Pedro Alves <palves@redhat.com>
6774 * remote-sim.c (sim_command_completer): Adjust to work with a
6775 completion_tracker instead of a VEC.
6777 2017-07-17 Pedro Alves <palves@redhat.com>
6779 * completer.c (complete_source_filenames): New function.
6780 (complete_address_and_linespec_locations): New function.
6781 (location_completer): Use complete_address_and_linespec_locations.
6782 (completion_tracker::build_completion_result): Honor the tracker's
6783 request to suppress append.
6784 * completer.h (completion_tracker::suppress_append_ws)
6785 (completion_tracker::set_suppress_append_ws): New methods.
6786 (completion_tracker::m_suppress_append_ws): New field.
6787 (complete_source_filenames): New declaration.
6788 * linespec.c (linespec_complete_what): New.
6789 (struct ls_parser) <complete_what, completion_word,
6790 completion_quote_char, completion_quote_end, completion_tracker>:
6792 (string_find_incomplete_keyword_at_end): New.
6793 (linespec_lexer_lex_string): Record quote char. If in completion
6795 (linespec_lexer_consume_token): Advance the completion word point.
6796 (linespec_lexer_peek_token): Save/restore completion info.
6797 (save_stream_and_consume_token): New.
6798 (set_completion_after_number): New.
6799 (linespec_parse_basic): Set what to complete next depending on
6800 token. Handle function and label completions specially.
6801 (parse_linespec): Disable objc shortcut in completion mode. Set
6802 what to complete next depending on token type. Skip keyword if in
6804 (complete_linespec_component, linespec_complete): New.
6805 * linespec.h (linespec_complete): Declare.
6807 2017-07-17 Pedro Alves <palves@redhat.com>
6809 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6810 Handle 'operator<' / 'operator<<'.
6812 2017-07-17 Pedro Alves <palves@redhat.com>
6814 * completer.c (collect_explicit_location_matches): Handle
6816 (convert_explicit_location_to_linespec): New, factored out from
6818 (convert_explicit_location_to_sals): ... this.
6819 (complete_label): New.
6820 (linespec_complete_label, find_label_symbols_in_block): New.
6821 (find_label_symbols): Add completion_mode parameter and adjust to
6822 call find_label_symbols_in_block.
6823 * linespec.h (linespec_complete_label): Declare.
6825 2017-07-17 Pedro Alves <palves@redhat.com>
6827 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6828 complete_symbol_mode parameter.
6829 * cli/cli-cmds.c (complete_command): Get the completion result out
6830 of the handle_brkchars tracker if used a custom word point.
6831 * completer.c: Include "linespec.h".
6832 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6833 (advance_to_expression_complete_word_point): New.
6834 (completion_tracker::completes_to_completion_word): New.
6835 (complete_files_symbols): Pass down
6836 complete_symbol_mode::EXPRESSION.
6837 (explicit_options, probe_options): New.
6838 (collect_explicit_location_matches): Complete on the
6839 explictit_loc->foo instead of word. Use
6840 linespec_complete_function. Handle MATCH_LINE. Handle offering
6841 keyword and options completions.
6842 (backup_text_ptr): Delete.
6843 (skip_keyword): New.
6844 (complete_explicit_location): Remove 'word' parameter. Add
6845 language, quoted_arg_start and quoted_arg_end parameters.
6846 Rewrite, parsing left to right.
6847 (location_completer): Rewrite.
6848 (location_completer_handle_brkchars): New function.
6849 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6850 (enum complete_line_internal_reason): Adjust comments.
6851 (completion_tracker::discard_completions): New.
6852 (completer_handle_brkchars_func_for_completer): Handle
6854 (gdb_custom_word_point_brkchars)
6855 (gdb_org_rl_basic_quote_characters): New.
6856 (gdb_completion_word_break_characters_throw)
6857 (completion_find_completion_word): Handle trackers that use a
6859 (completion_tracker::advance_custom_word_point_by): New.
6860 (completion_tracker::build_completion_result): Don't rely on
6861 readline appending the quote char.
6862 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6863 use a custom word point.
6864 (gdb_rl_attempted_completion_function): Restore
6865 rl_basic_quote_characters.
6866 * completer.h (class completion_tracker): Extend intro comment.
6867 (completion_tracker::set_quote_char)
6868 (completion_tracker::quote_char)
6869 (completion_tracker::set_use_custom_word_point)
6870 (completion_tracker::use_custom_word_point)
6871 (completion_tracker::custom_word_point)
6872 (completion_tracker::set_custom_word_point)
6873 (completion_tracker::advance_custom_word_point_by)
6874 (completion_tracker::completes_to_completion_word)
6875 (completion_tracker::discard_completions): New methods.
6876 (completion_tracker::m_quote_char)
6877 (completion_tracker::m_use_custom_word_point)
6878 (completion_tracker::m_custom_word_point): New fields.
6879 (advance_to_expression_complete_word_point): Declare.
6880 * f-lang.c (f_collect_symbol_completion_matches): Add
6881 complete_symbol_mode parameter.
6882 * language.h (struct language_defn)
6883 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6885 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6886 (linespec_complete_function): New function.
6887 (linespec_lexer_lex_keyword): Adjust.
6888 * linespec.h (linespec_keywords, linespec_complete_function): New
6890 * location.c (find_end_quote): New function.
6891 (explicit_location_lex_one): Add explicit_completion_info
6892 parameter. Save quoting info. Don't throw if being called for
6893 completion. Don't handle Ada operators here.
6894 (is_cp_operator, skip_op_false_positives, first_of)
6895 (explicit_location_lex_one_function): New function.
6896 (string_to_explicit_location): Replace 'dont_throw' parameter with
6897 an explicit_completion_info pointer parameter. Handle it. Don't
6898 use explicit_location_lex_one to lex function names. Use
6899 explicit_location_lex_one_function instead.
6900 * location.h (struct explicit_completion_info): New.
6901 (string_to_explicit_location): Replace 'dont_throw' parameter with
6902 an explicit_completion_info pointer parameter.
6903 * symtab.c (default_collect_symbol_completion_matches_break_on):
6904 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6905 (default_collect_symbol_completion_matches)
6906 (collect_symbol_completion_matches): Add complete_symbol_mode
6908 (collect_symbol_completion_matches_type): Pass down
6909 complete_symbol_mode::EXPRESSION.
6910 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6911 parameter. Handle LINESPEC mode.
6912 * symtab.h (complete_symbol_mode): New.
6913 (default_collect_symbol_completion_matches_break_on)
6914 (default_collect_symbol_completion_matches)
6915 (collect_symbol_completion_matches)
6916 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6919 2017-07-17 Pedro Alves <palves@redhat.com>
6921 * utils.c (enum class strncmp_iw_mode): New.
6922 (strcmp_iw): Rename to ...
6923 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6924 parameters. Handle them.
6926 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6927 * utils.h (strncmp_iw): Declare.
6928 (strcmp_iw): Move describing comments here.
6930 2017-07-17 Pedro Alves <palves@redhat.com>
6932 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6934 * c-typeprint.c (is_type_conversion_operator): Use
6936 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6937 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6939 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6940 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6941 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6942 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6944 * location.c: Include "cp-support.h".
6945 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6947 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6950 2017-07-17 Pedro Alves <palves@redhat.com>
6952 * cli/cli-cmds.c (complete_command): Use a completion tracker
6953 along with completion_find_completion_word for handle_brkchars
6955 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6956 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6957 (struct gdb_rl_completion_word_info): New.
6958 (gdb_rl_find_completion_word): New.
6959 (completion_find_completion_word): New.
6960 * completer.h (completion_find_completion_word): Declare.
6962 2017-07-17 Pedro Alves <palves@redhat.com>
6964 * ada-lang.c (symbol_completion_match): Adjust comments.
6965 (symbol_completion_add): Replace vector parameter with
6966 completion_tracker parameter. Use it.
6967 (ada_make_symbol_completion_list): Rename to...
6968 (ada_collect_symbol_completion_matches): ... this. Add
6969 completion_tracker parameter and use it.
6970 (ada_language_defn): Adjust.
6971 * break-catch-syscall.c (catch_syscall_completer): Adjust
6972 prototype and work with completion_tracker instead of VEC.
6973 * breakpoint.c (condition_completer): Adjust prototype and work
6974 with completion_tracker instead of VEC.
6975 * c-lang.c (c_language_defn, cplus_language_defn)
6976 (asm_language_defn, minimal_language_defn): Adjust to renames.
6977 * cli/cli-cmds.c (complete_command): Rework using
6978 completion_tracker. Catch exceptions when completing.
6979 * cli/cli-decode.c (integer_unlimited_completer)
6980 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6981 with completion_tracker instead of VEC.
6982 * command.h (struct completion_tracker): Forward declare.
6983 (completer_ftype, completer_handle_brkchars_ftype): Change
6985 (complete_on_cmdlist, complete_on_enum): Adjust.
6986 * completer.c: Include <algorithm>.
6987 (struct gdb_completer_state): New.
6988 (current_completion): New global.
6989 (readline_line_completion_function): Delete.
6990 (noop_completer, filename_completer)
6991 (filename_completer_handle_brkchars, complete_files_symbols)
6992 (linespec_location_completer): Adjust to work with a
6993 completion_tracker instead of a VEC.
6994 (string_or_empty): New.
6995 (collect_explicit_location_matches): Adjust to work with a
6996 completion_tracker instead of a VEC.
6997 (explicit_location_completer): Rename to ...
6998 (complete_explicit_location): ... this and adjust to work with a
6999 completion_tracker instead of a VEC.
7000 (location_completer): Adjust to work with a completion_tracker
7002 (add_struct_fields): Adjust to work with a completion_list instead
7004 (expression_completer): Rename to ...
7005 (complete_expression): ... this and adjust to work with a
7006 completion_tracker instead of a VEC. Use complete_files_symbols.
7007 (expression_completer): Reimplement on top of complete_expression.
7008 (symbol_completer): Adjust to work with a completion_tracker
7010 (enum complete_line_internal_reason): Add describing comments.
7011 (complete_line_internal_normal_command): Adjust to work with a
7012 completion_tracker instead of a VEC.
7013 (complete_line_internal): Rename to ...
7014 (complete_line_internal_1): ... this and adjust to work with a
7015 completion_tracker instead of a VEC. Assert TEXT is NULL in the
7016 handle_brkchars phase.
7017 (new_completion_tracker): Delete.
7018 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7019 complete_line_internal_1.
7020 (free_completion_tracker): Delete.
7021 (INITIAL_COMPLETION_HTAB_SIZE): New.
7022 (completion_tracker::completion_tracker)
7023 (completion_tracker::~completion_tracker): New.
7024 (maybe_add_completion): Delete.
7025 (completion_tracker::maybe_add_completion)
7026 (completion_tracker::add_completion)
7027 (completion_tracker::add_completions): New.
7028 (throw_max_completions_reached_error): Delete.
7029 (complete_line): Adjust to work with a completion_tracker instead
7030 of a VEC. Don't create a completion_tracker_t or check for max
7032 (command_completer, command_completer_handle_brkchars)
7033 (signal_completer, reg_or_group_completer_1)
7034 (reg_or_group_completer, default_completer_handle_brkchars):
7035 Adjust to work with a completion_tracker.
7036 (gdb_completion_word_break_characters_throw): New.
7037 (gdb_completion_word_break_characters): Reimplement.
7038 (line_completion_function): Delete.
7039 (completion_tracker::recompute_lowest_common_denominator)
7040 (expand_preserving_ws)
7041 (completion_tracker::build_completion_result)
7042 (completion_result::completion_result)
7043 (completion_result::completion_result)
7044 (completion_result::~completion_result)
7045 (completion_result::completion_result)
7046 (completion_result::release_match_list, compare_cstrings)
7047 (completion_result::sort_match_list)
7048 (completion_result::reset_match_list)
7049 (gdb_rl_attempted_completion_function_throw)
7050 (gdb_rl_attempted_completion_function): New.
7051 * completer.h (completion_list, struct completion_result)
7052 (class completion_tracker): New.
7053 (complete_line): Add completion_tracker parameter.
7054 (readline_line_completion_function): Delete.
7055 (gdb_rl_attempted_completion_function): New.
7056 (noop_completer, filename_completer, expression_completer)
7057 (location_completer, symbol_completer, command_completer)
7058 (signal_completer, reg_or_group_completer): Update prototypes.
7059 (completion_tracker_t, new_completion_tracker)
7060 (make_cleanup_free_completion_tracker): Delete.
7061 (enum maybe_add_completion_enum): Delete.
7062 (maybe_add_completion): Delete.
7063 (throw_max_completions_reached_error): Delete.
7064 * corefile.c (complete_set_gnutarget): Adjust to work with a
7065 completion_tracker instead of a VEC.
7066 * cp-abi.c (cp_abi_completer): Adjust to work with a
7067 completion_tracker instead of a VEC.
7068 * d-lang.c (d_language_defn): Adjust.
7069 * disasm.c (disassembler_options_completer): Adjust to work with a
7070 completion_tracker instead of a VEC.
7071 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7072 (f_collect_symbol_completion_matches): ... this. Adjust to work
7073 with a completion_tracker instead of a VEC.
7074 (f_language_defn): Adjust.
7075 * go-lang.c (go_language_defn): Adjust.
7076 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7077 Adjust to work with a completion_tracker instead of a VEC.
7078 * infrun.c (handle_completer): Likewise.
7079 * interps.c (interpreter_completer): Likewise.
7080 * interps.h (interpreter_completer): Likewise.
7081 * language.c (unknown_language_defn, auto_language_defn)
7082 (local_language_defn): Adjust.
7083 * language.h (language_defn::la_make_symbol_completion_list):
7085 (language_defn::la_collect_symbol_completion_matches): ... this
7086 and adjust to work with a completion_tracker instead of a VEC.
7087 * m2-lang.c (m2_language_defn): Adjust.
7088 * objc-lang.c (objc_language_defn): Adjust.
7089 * opencl-lang.c (opencl_language_defn): Adjust.
7090 * p-lang.c (pascal_language_defn): Adjust.
7091 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7092 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7093 with a completion_tracker.
7094 * rust-lang.c (rust_language_defn): Adjust.
7095 * symtab.c (free_completion_list, do_free_completion_list)
7096 (return_val, completion_tracker): Delete.
7097 (completion_list_add_name, completion_list_add_symbol)
7098 (completion_list_add_msymbol, completion_list_objc_symbol)
7099 (completion_list_add_fields, add_symtab_completions): Add
7100 completion_tracker parameter and use it.
7101 (default_make_symbol_completion_list_break_on_1): Rename to...
7102 (default_collect_symbol_completion_matches_break_on): ... this.
7103 Add completion_tracker parameter and use it instead of allocating
7104 a completion tracker here.
7105 (default_make_symbol_completion_list_break_on): Delete old
7107 (default_make_symbol_completion_list): Delete.
7108 (default_collect_symbol_completion_matches): New.
7109 (make_symbol_completion_list): Delete.
7110 (collect_symbol_completion_matches): New.
7111 (make_symbol_completion_type): Rename to ...
7112 (collect_symbol_completion_matches_type): ... this. Add
7113 completion_tracker parameter and use it instead of VEC.
7114 (make_file_symbol_completion_list_1): Rename to...
7115 (collect_file_symbol_completion_matches): ... this. Add
7116 completion_tracker parameter and use it instead of VEC.
7117 (make_file_symbol_completion_list): Delete.
7118 (add_filename_to_list): Use completion_list instead of a VEC.
7119 (add_partial_filename_data::list): Now a completion_list.
7120 (make_source_files_completion_list): Work with a completion_list
7122 * symtab.h: Include "completer.h".
7123 (default_make_symbol_completion_list_break_on)
7124 (default_make_symbol_completion_list, make_symbol_completion_list)
7125 (make_symbol_completion_type, make_file_symbol_completion_list)
7126 (make_source_files_completion_list): Delete.
7127 (default_collect_symbol_completion_matches_break_on)
7128 (default_collect_symbol_completion_matches)
7129 (collect_symbol_completion_matches)
7130 (collect_symbol_completion_matches_type)
7131 (collect_file_symbol_completion_matches)
7132 (make_source_files_completion_list): New.
7133 * top.c (init_main): Don't install a rl_completion_entry_function
7134 hook. Install a rl_attempted_completion_function hook instead.
7135 * tui/tui-layout.c (layout_completer): Adjust to work with a
7137 * tui/tui-regs.c (tui_reggroup_completer):
7138 * tui/tui-win.c (window_name_completer, focus_completer)
7139 (winheight_completer): Adjust to work with a completion_tracker.
7140 * value.c: Include "completer.h".
7141 (complete_internalvar): Adjust to work with a completion_tracker.
7142 * value.h (complete_internalvar): Likewise.
7144 2017-07-17 Pedro Alves <palves@redhat.com>
7146 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7148 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7149 comments to completer_ftype's declaration.
7150 <completer_handle_brkchars>: Change type to
7151 completer_handle_brkchars_ftype.
7152 * command.h (completer_ftype): Add describing comment and give
7153 names to parameters.
7154 (completer_ftype_void): Rename to ...
7155 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7156 (set_cmd_completer_handle_brkchars): Adjust.
7157 * completer.c (filename_completer_handle_brkchars): New function.
7158 (complete_line_internal_normal_command): New function, factored
7160 (complete_line_internal): ... here.
7161 (command_completer_handle_brkchars)
7162 (default_completer_handle_brkchars)
7163 (completer_handle_brkchars_func_for_completer): New functions.
7164 * completer.h (set_gdb_completion_word_break_characters): Delete
7166 (completer_handle_brkchars_func_for_completer): New declaration.
7167 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7168 completer_handle_brkchars_func_for_completer.
7170 2017-07-17 Pedro Alves <palves@redhat.com>
7172 * completer.c (symbol_completer): New function, based on
7173 make_symbol_completion_list_fn.
7174 * completer.h (symbol_completer): New declaration.
7175 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7176 * python/py-cmd.c (completers): Adjust.
7177 * symtab.c (make_symbol_completion_list_fn): Delete.
7178 * symtab.h (make_symbol_completion_list_fn): Delete.
7179 * cli/cli-decode.c (add_cmd): Adjust.
7181 2017-07-17 Pedro Alves <palves@redhat.com>
7183 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7184 * dwarf2read.c: Include "filename-seen-cache.h".
7185 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7186 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7187 * filename-seen-cache.c: New file.
7188 * filename-seen-cache.h: New file.
7189 * symtab.c: Include "filename-seen-cache.h".
7190 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7191 (create_filename_seen_cache, clear_filename_seen_cache)
7192 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7193 to filename-seen-cache.h/filename-seen-cache.c.
7194 (output_source_filename, sources_info)
7195 (maybe_add_partial_symtab_filename)
7196 (make_source_files_completion_list): Adjust to use
7197 filename_seen_cache.
7199 2017-07-17 Pedro Alves <palves@redhat.com>
7201 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7203 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7204 dwarf2_debug_sections*)): New.
7205 (dwarf2_per_objfile::dwarf2_per_objfile(const
7206 dwarf2_per_objfile&)): Declare as deleted.
7207 (dwarf2_per_objfile::operator=): Declare as deleted.
7208 (dwarf2_per_objfile::dwarf2_per_objfile)
7209 (dwarf2_per_objfile::~dwarf2_per_objfile)
7210 (dwarf2_per_objfile::free_cached_comp_units): New.
7211 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7212 ctor. Call dwarf2_per_objfile's ctor manually.
7213 (dwarf2_locate_sections): Deleted/refactored as ...
7214 (dwarf2_per_objfile::locate_sections): ... this new method.
7215 (free_cached_comp_units): Defer to
7216 dwarf2_per_objfile::free_cached_comp_units.
7217 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7219 2017-07-14 Tom Tromey <tom@tromey.com>
7222 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7224 <UNOP_SIZEOF>: Split into separate case.
7225 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7227 2017-07-14 Tom Tromey <tom@tromey.com>
7230 * symtab.c (symbol_matches_domain): Add language_rust to special
7232 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7233 treat LOC_TYPEDEF symbols as variables.
7235 2017-07-14 Pedro Alves <palves@redhat.com>
7237 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7238 symtabs matching all symtabs with SRCFILE as file name instead of
7239 only considering the first hit, with lookup_symtab.
7241 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7243 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7244 operator_name parameters.
7245 (gen_expr): Update function call.
7247 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7249 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7251 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7253 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7254 parameter, use agent_expr::gdbarch instead, update function
7256 (locexpr_tracepoint_var_ref): Likewise.
7257 (loclist_tracepoint_var_ref): Likewise.
7258 * ax-gdb.c (gen_trace_static_fields): Likewise.
7259 (gen_traced_pop): Likewise.
7260 (gen_frame_args_address): Likewise.
7261 (gen_frame_locals_address): Likewise.
7262 (gen_var_ref): Likewise.
7263 (gen_struct_ref_recursive): Likewise.
7264 (gen_static_field): Likewise.
7265 (gen_maybe_namespace_elt): Likewise.
7266 (gen_expr): Likewise.
7267 (gen_trace_for_var): Likewise.
7268 (gen_trace_for_expr): Likewise.
7269 (gen_trace_for_return_address): Likewise.
7271 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7273 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7275 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7277 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7279 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7280 from ax, update calls.
7281 (gen_usual_arithmetic): Likewise.
7282 (gen_integral_promotions): Likewise.
7283 (gen_bitfield_ref): Likewise.
7284 (gen_primitive_field): Likewise.
7285 (gen_struct_ref_recursive): Likewise.
7286 (gen_struct_ref): Likewise.
7287 (gen_maybe_namespace_elt): Likewise.
7288 (gen_struct_elt_for_reference): Likewise.
7289 (gen_namespace_elt): Likewise.
7290 (gen_aggregate_elt_ref): Likewise.
7291 (gen_expr): Get gdbarch from ax, update calls.
7292 (gen_expr_binop_rest): Likewise.
7294 2017-07-13 Pedro Alves <palves@redhat.com>
7296 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7298 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7299 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7300 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7301 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7303 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7304 Get final tdesc from the tdep.
7305 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7307 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7308 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7309 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7310 Use it as default tdesc.
7311 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7312 down to amd_init_abi. No longer handle fallback tdesc here.
7313 * amd64-tdep.h (tdesc_x32): Declare.
7314 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7316 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7319 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7321 * s390-linux-tdep.c (s390_process_record): Add support for
7322 instructions new in arch12.
7324 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7326 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7327 PT_GETFSBASE and PT_GETGSBASE.
7328 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7331 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7333 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7334 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7335 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7337 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7338 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7339 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7340 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7341 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7342 * features/i386/amd64.xml: Add 64bit-segments.xml.
7343 * features/i386/amd64-avx-avx512.c: Regenerated.
7344 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7345 * features/i386/amd64-avx-mpx.c: Regenerated.
7346 * features/i386/amd64-avx.c: Regenerated.
7347 * features/i386/amd64-mpx.c: Regenerated.
7348 * features/i386/amd64.c: Regenerated.
7349 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7350 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7351 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7352 * regformats/i386/amd64-avx.dat: Regenerated.
7353 * regformats/i386/amd64-mpx.dat: Regenerated.
7354 * regformats/i386/amd64.dat: Regenerated.
7356 2017-07-10 Yao Qi <yao.qi@linaro.org>
7358 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7359 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7361 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7363 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7365 * gnulib/aclocal.m4: Regenerate.
7366 * gnulib/config.in: Regenerate.
7367 * gnulib/configure: Regenerate.
7368 * gnulib/import/Makefile.am: Regenerate.
7369 * gnulib/import/Makefile.in: Regenerate.
7370 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7371 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7372 * gnulib/import/m4/environ.m4: New file.
7373 * gnulib/import/m4/setenv.m4: New file.
7374 * gnulib/import/setenv.c: New file.
7375 * gnulib/import/unsetenv.c: New file.
7377 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7379 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7380 address when op is DW_OP_addr.
7382 2017-07-09 Tom Tromey <tom@tromey.com>
7384 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7385 check and apply to outer type.
7387 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7389 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7390 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7391 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7392 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7394 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7396 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7398 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7400 * corelow.c (get_core_siginfo): Remove.
7401 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7402 instead of get_core_siginfo.
7403 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7404 * gdbarch.h: Re-generate.
7405 * gdbarch.c: Re-generate.
7406 * linux-tdep.c (linux_core_xfer_siginfo): New.
7407 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7409 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7411 * corelow.c (thread_section_name): Move to ...
7412 * gdbcore.h (thread_section_name): ... here.
7414 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7416 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7417 (struct siginfo32): New.
7418 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7419 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7420 via ptrace(PT_LWPINFO).
7422 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7424 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7425 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7426 (fbsd_get_siginfo_type): New.
7427 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7428 (_initialize_fbsd_tdep): New.
7430 2017-07-06 David Blaikie <dblaikie@gmail.com>
7432 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7433 a singular dwo_unit*) to support multiple CUs in the same way that
7434 multiple TUs are supported.
7435 (create_cus_hash_table): Replace create_dwo_cu with a function for
7436 parsing multiple CUs from a DWO file.
7437 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7439 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7440 htab_find, rather than comparing the signature to a singleton CU in
7443 2017-07-06 Pedro Alves <palves@redhat.com>
7445 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7447 2017-07-04 Pedro Alves <palves@redhat.com>
7449 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7450 * gdbtypes.h (TYPE_STATIC): Delete.
7451 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7452 is_synchronized, is_native>: Delete.
7454 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7455 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7456 (TYPE_FN_FIELD_ABSTRACT): Delete.
7458 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7460 * buffer.h (buffer_finish): Fix spelling mistakes.
7462 2017-07-01 Eli Zaretskii <eliz@gnu.org>
7464 * .dir-locals.el: Automatically switch to C-style comments in
7465 versions of Emacs that support the feature.
7467 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7468 Pedro Alves <palves@redhat.com>
7471 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7472 (process_next_line): New variable 'inline_cmd'.
7473 Adjust 'if' clauses for "python", "compile" and "guile" to use
7474 'command_name_equals' and check for '!inline_cmd'.
7476 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7479 * cli/cli-script.c (command_name_equals_not_inline): New function.
7480 (process_next_line): Adjust 'if' clauses for "python", "compile"
7481 and "guile" to use command_name_equals_not_inline.
7483 2017-06-29 Pedro Alves <palves@redhat.com>
7485 * completer.c (expression_completer): Call
7486 linespec_location_completer instead of location_completer.
7488 2017-06-29 Pedro Alves <palves@redhat.com>
7490 * completer.c (expression_completer): Remove code that recomputes
7493 2017-06-29 Yao Qi <yao.qi@linaro.org>
7495 * regformats/regdat.sh: Generate code with
7496 "ifndef IN_PROCESS_AGENT".
7498 2017-06-28 Pedro Alves <palves@redhat.com>
7500 * command.h: Include "common/scoped_restore.h".
7502 2017-06-28 Yao Qi <yao.qi@linaro.org>
7504 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7505 instead of obstack_grow.
7507 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7510 * symfile.c (reread_symbols): Call objfiles_changed just before
7513 2017-06-27 Pedro Alves <palves@redhat.com>
7515 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7516 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7517 (completion_list_add_symbol, completion_list_add_msymbol):
7518 ... these new functions.
7519 (add_symtab_completions)
7520 (default_make_symbol_completion_list_break_on_1): Adjust.
7522 2017-06-27 Pedro Alves <palves@redhat.com>
7524 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7525 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7526 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7528 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7529 'storage_obstack' field an auto_obstack. In-class initialize all
7530 non-bitfield fields. Make minsyms_read bool.
7531 * symfile.c (read_symbols): Adjust.
7533 2017-06-27 Alan Hayward <alan.hayward@arm.com>
7535 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7536 (gdbsim_store_register): Likewise.
7538 2017-06-27 Pedro Alves <palves@redhat.com>
7540 * c-exp.y (name_obstack): Now an auto_obstack.
7541 (yylex): Use auto_obstack::clear.
7542 (c_parse): Use auto_obstack::clear instead of reinitializing and
7543 freeing the obstack.
7544 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7545 * d-exp.y (name_obstack): Now an auto_obstack.
7546 (yylex): Use auto_obstack::clear.
7547 (d_parse): Use auto_obstack::clear instead of reinitializing and
7548 freeing the obstack.
7549 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7551 * dwarf2read.c (create_addrmap_from_index)
7552 (dwarf2_build_psymtabs_hard)
7553 (update_enumeration_type_from_children): Likewise.
7554 * gdb_obstack.h (auto_obstack): New type.
7555 * go-exp.y (name_obstack): Now an auto_obstack.
7556 (build_packaged_name): Use auto_obstack::clear.
7557 (go_parse): Use auto_obstack::clear instead of reinitializing and
7558 freeing the obstack.
7559 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7561 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7562 * rust-exp.y (work_obstack): Now an auto_obstack.
7563 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7564 reinitializing and freeing the obstack.
7565 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7566 (host_char_to_target): Use auto_obstack.
7567 * utils.h (make_cleanup_obstack_free): Delete declaration.
7568 * valprint.c (generic_emit_char, generic_printstr): Use
7571 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7573 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7575 (darwin_init_thread_list): Don't update dummy thread.
7576 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7578 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7580 * record-full.c (netorder16): Remove.
7582 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7584 * common/diagnostics.h: Define macros for GCC.
7585 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7586 * common/vec.h: Include diagnostics.h.
7587 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7588 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7591 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7593 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7595 * ada-lex.l: Ignore deprecated register warnings.
7597 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7599 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7600 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7602 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7604 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7607 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7609 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7611 2017-06-23 Alan Hayward <alan.hayward@arm.com>
7613 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7614 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7615 (xtensa_register_read_masked): Likewise.
7617 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7619 * common/environ.c (gdb_environ::unset): Update comment.
7621 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7623 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7626 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7628 * record-full.c (record_full_exec_insn): Use byte_vector.
7630 2017-06-22 Yao Qi <yao.qi@linaro.org>
7632 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7633 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7635 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7637 * remote.c (cached_reg): Move from here...
7638 * regcache.h (cached_reg): ...to here.
7639 * python/py-unwind.c (struct reg_info): Remove.
7640 (cached_frame_info): Use cached_reg_t.
7641 (pyuw_prev_register): Likewise.
7642 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7643 (pyuw_dealloc_cache): Free all registers.
7645 2017-06-22 Pedro Alves <palves@redhat.com>
7646 Simon Marchi <simon.marchi@ericsson.com>
7648 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7650 * common/diagnostics.h: New file.
7652 2017-06-22 Pedro Alves <palves@redhat.com>
7654 * common/agent.h: Add include guards.
7656 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7658 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7659 talk about addressable units instead of bytes.
7661 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7663 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7664 of '::const_iterator'.
7666 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7668 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7669 'unittests/environ-selftests.c'.
7670 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7671 * charset.c (find_charset_names): Declare object 'iconv_env'.
7672 Update code to use 'iconv_env' object. Remove call to
7674 * common/environ.c: Include <utility>.
7675 (make_environ): Delete function.
7676 (free_environ): Delete function.
7677 (gdb_environ::clear): New function.
7678 (gdb_environ::operator=): New function.
7679 (gdb_environ::get): Likewise.
7680 (environ_vector): Delete function.
7681 (set_in_environ): Delete function.
7682 (gdb_environ::set): New function.
7683 (unset_in_environ): Delete function.
7684 (gdb_environ::unset): New function.
7685 (gdb_environ::envp): Likewise.
7686 * common/environ.h: Include <vector>.
7687 (struct gdb_environ): Delete; transform into...
7688 (class gdb_environ): ... this class.
7689 (free_environ): Delete prototype.
7690 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7691 environ_vector): Likewise.
7692 * infcmd.c (run_command_1): Update code to call
7693 'envp' from 'gdb_environ' class.
7694 (environment_info): Update code to call methods from 'gdb_environ'
7696 (unset_environment_command): Likewise.
7697 (path_info): Likewise.
7698 (path_command): Likewise.
7699 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7700 (inferior::inferior): Initialize 'environment' using the host's
7702 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7703 Include "environ.h".
7704 (class inferior) <environment>: Change type from 'struct
7705 gdb_environ' to 'gdb_environ'.
7706 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7707 methods from 'gdb_environ' class.
7708 * solib.c (solib_find_1): Likewise
7709 * unittests/environ-selftests.c: New file.
7711 2017-06-20 Yao Qi <yao.qi@linaro.org>
7713 * features/i386/i386-linux.xml: Exchange the order of including
7714 32bit-linux.xml and 32bit-sse.xml.
7715 * features/i386/i386-linux.c: Regenerated.
7717 2017-06-20 Yao Qi <yao.qi@linaro.org>
7719 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7720 Delete copy ctor and assignment operator.
7721 (tdesc_type): Likewise.
7722 (tdesc_feature): Likewise.
7723 (tdesc_free_reg): Remove.
7724 (tdesc_create_reg): Use new.
7725 (tdesc_free_type): Remove.
7726 (tdesc_create_vector): Use new.
7727 (tdesc_create_union): Likewise.
7728 (tdesc_create_flags): Likewise.
7729 (tdesc_create_enum): Likewise.
7730 (tdesc_free_feature): Delete.
7731 (free_target_description): Use delete.
7733 2017-06-19 John Baldwin <jhb@FreeBSD.org>
7735 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7738 2017-06-19 Pedro Alves <palves@redhat.com>
7740 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7741 after gdb::unlinker.
7743 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7745 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7746 gdb_environ to access an environment variable.
7748 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7750 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7753 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7755 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7757 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7759 * configure: Re-generate.
7760 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7762 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7764 * configure: Re-generate.
7765 * warning.m4: Pass -Werror to compiler when checking for
7766 supported warning flags.
7768 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7770 * Makefile.in (COMPILE.pre): Add "-x c++".
7772 2017-06-16 Alan Hayward <alan.hayward@arm.com>
7773 Pedro Alves <palves@redhat.com>
7774 Yao Qi <yao.qi@linaro.org>
7776 * defs.h (RequireLongest): New.
7777 (extract_integer): Declare function template.
7778 (extract_signed_integer): Remove the declaration, but define it
7780 (extract_unsigned_integer): Likewise.
7781 (store_integer): Declare function template.
7782 (store_signed_integer): Remove the declaration, but define it
7784 (store_unsigned_integer): Likewise.
7785 * findvar.c (extract_integer): New function template.
7786 (extract_signed_integer): Remove.
7787 (extract_unsigned_integer): Remove.
7788 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7790 (store_integer): New function template.
7791 (store_signed_integer): Remove.
7792 (store_unsigned_integer): Remove.
7793 (store_integer): Explicit instantiations.
7794 * regcache.c (regcache_raw_read_signed): Update.
7795 (regcache::raw_read): New function.
7796 (regcache::raw_read_signed): Remove.
7797 (regcache::raw_read_unsigned): Remove.
7798 (regcache_raw_read_unsigned): Update.
7799 (regcache_raw_write_unsigned): Update.
7800 (regcache::raw_write_signed): Remove.
7801 (regcache::raw_write): New function.
7802 (regcache_cooked_read_signed): Update.
7803 (regcache::raw_write_unsigned): Remove.
7804 (regcache::cooked_read_signed): Remove.
7805 (regcache_cooked_read_unsigned): Update.
7806 (regcache::cooked_read_unsigned): Remove.
7807 (regcache_cooked_write_signed): Update.
7808 (regcache_cooked_write_unsigned): Update.
7809 * regcache.h (regcache) <raw_read_signed>: Remove.
7810 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7811 <raw_read, raw_write>: New.
7812 <cooked_read_signed, cooked_write_signed>: Remove.
7813 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7814 <cooked_read, cooked_write>: New.
7815 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7816 (sh64_pseudo_register_write): Update.
7818 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7820 * arc-tdep.c (arc_disassembler_options): New variable.
7821 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7822 of default_print_insn.
7823 (arc_delayed_print_insn): Set info->section when needed,
7824 use default_print_insn to retrieve a disassembler.
7826 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7829 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7830 to mention $SHELL and startup-with-shell.
7832 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7834 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7836 2017-06-14 Yao Qi <yao.qi@linaro.org>
7838 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7839 default_print_insn instead of print_insn_aarch64.
7840 * arm-tdep.c (gdb_print_insn_arm): Call
7841 default_print_insn instead of print_insn_big_arm
7842 and print_insn_little_arm.
7843 * i386-tdep.c (i386_print_insn): Call default_print_insn
7844 instead of print_insn_i386.
7845 * ia64-tdep.c (ia64_print_insn): Call
7846 default_print_insn instead of print_insn_ia64.
7847 * mips-tdep.c (gdb_print_insn_mips): Call
7848 default_print_insn instead of print_insn_big_mips
7849 and print_insn_little_mips.
7850 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7851 instead of print_insn_spu.
7853 2017-06-14 Pedro Alves <palves@redhat.com>
7855 * ada-lang.c: Include "common/byte-vector.h".
7856 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7857 * charset.c (wchar_iterator::iterate): Resize the vector instead
7859 * common/byte-vector.h: Include "common/def-vector.h".
7860 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7861 * cli/cli-dump.c: Include "common/byte-vector.h".
7862 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7863 * common/byte-vector.h: New file.
7864 * common/def-vector.h: New file.
7865 * common/default-init-alloc.h: New file.
7866 * dwarf2loc.c: Include "common/byte-vector.h".
7867 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7868 instead of reserving it.
7869 * dwarf2read.c: Include "common/byte-vector.h".
7870 (data_buf::m_vec): Now a gdb::byte_vector.
7871 * gdb_regex.c: Include "common/def-vector.h".
7872 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7873 * mi/mi-main.c: Include "common/byte-vector.h".
7874 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7875 * printcmd.c: Include "common/byte-vector.h".
7876 (print_scalar_formatted): Use gdb::byte_vector.
7877 * valprint.c: Include "common/byte-vector.h".
7878 (maybe_negate_by_bytes, print_decimal_chars): Use
7881 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7883 * darwin-nat.c: Include "nat/fork-inferior.h".
7885 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7887 * configure.nat: Factor out Darwin bits that are not
7888 architecture-specific. Add fork-inferior.o.
7890 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7892 * configure.nat: Factor out AIX bits that are not
7893 architecture-specific. Add fork-inferior.o.
7895 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7897 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7898 (read_pieced_value, write_pieced_value): ...here. Reduce to
7899 wrappers that just call rw_pieced_value.
7901 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7903 * dwarf2loc.c (write_pieced_value): When writing the data for a
7904 memory piece, use write_memory_with_notification instead of
7907 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7909 * valops.c (read_value_memory): Change embedded_offset to
7910 represent a bit offset instead of a byte offset.
7911 * value.h (read_value_memory): Adjust comment.
7913 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7915 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7916 dest_offset_bits and source_offset_bits.
7917 (write_pieced_value): Likewise.
7919 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7921 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7922 given by DW_OP_bit_piece.
7923 (write_pieced_value): Likewise.
7925 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7927 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7928 some other preparations to the places where sufficient information
7930 (write_pieced_value): Likewise.
7932 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7934 * dwarf2loc.c (bits_to_bytes): New function.
7935 (read_pieced_value): Fix offset calculations for register pieces
7936 on big-endian targets.
7937 (write_pieced_value): Likewise.
7939 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7941 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7942 (write_pieced_value): Likewise.
7944 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7946 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7947 transfer the source value's least significant bits, instead of its
7948 lowest-addressed ones. Rename type_len to max_offset.
7949 (read_pieced_value): Mirror above changes to write_pieced_value as
7952 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7954 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7955 truncate full bytes from dest_offset_bits before using it as an
7956 offset into the buffer.
7958 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7960 * dwarf2loc.c (write_pieced_value): Include transfer size in
7963 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7965 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7966 calculation of this_size.
7968 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7970 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7971 when targeting a bit-field.
7972 (write_pieced_value): Likewise.
7974 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7976 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7977 (allocate_piece_closure): Drop addr_size parameter.
7978 (dwarf2_evaluate_loc_desc_full): Adjust call to
7979 allocate_piece_closure.
7981 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7984 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7985 the LSB end, independent of endianness.
7987 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7989 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7992 2017-06-13 Yao Qi <yao.qi@linaro.org>
7994 * mips-linux-nat.c: Move include features/mips*-linux.c to
7996 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7997 to mips-linux-tdep.c.
7998 * mips-linux-tdep.c: Include features/mips*-linux.c
7999 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
8001 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
8002 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
8003 (tdesc_mips64_dsp_linux): Declare.
8005 2017-06-12 Tom Tromey <tom@tromey.com>
8007 * valprint.h (val_print_type_code_int): Remove.
8008 * valprint.c (generic_val_print_int): Always call
8009 val_print_scalar_formatted.
8010 (val_print_type_code_int): Remove.
8011 * printcmd.c (print_scalar_formatted): Handle options->format==0.
8012 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
8013 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
8014 * ada-valprint.c (ada_val_print_num): Use
8015 val_print_scalar_formatted.
8017 2017-06-12 Tom Tromey <tom@tromey.com>
8019 * printcmd.c (print_scalar_formatted): Unify the two switches.
8020 Don't convert scalars to LONGEST.
8022 2017-06-12 Tom Tromey <tom@tromey.com>
8025 * valprint.h (print_decimal_chars): Update.
8026 * valprint.c (maybe_negate_by_bytes): New function.
8027 (print_decimal_chars): Add "is_signed" argument.
8028 * printcmd.c (print_scalar_formatted): Update.
8030 2017-06-12 Tom Tromey <tom@tromey.com>
8033 * valprint.h (print_binary_chars, print_hex_chars): Update.
8034 * valprint.c (val_print_type_code_int): Update.
8035 (print_binary_chars): Add "zero_pad" argument.
8036 (emit_octal_digit): New function.
8037 (print_octal_chars): Don't zero-pad.
8038 (print_decimal_chars): Likewise.
8039 (print_hex_chars): Add "zero_pad" argument.
8040 * sh64-tdep.c (sh64_do_fp_register): Update.
8041 * regcache.c (regcache::dump): Update.
8042 * printcmd.c (print_scalar_formatted): Update.
8043 * infcmd.c (default_print_one_register_info): Update.
8045 2017-06-12 Pedro Alves <palves@redhat.com>
8046 Alan Hayward <alan.hayward@arm.com>
8048 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8049 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8050 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8051 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8052 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8054 2017-06-12 Pedro Alves <palves@redhat.com>
8056 * dwarf2read.c (mapped_symtab::data): Now a vector of
8057 symtab_index_entry instead of vector of
8058 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8059 whether an element's name is NULL instead of checking whether the
8060 element itself is NULL.
8061 (find_slot): Change return type. Adjust.
8062 (hash_expand, , add_index_entry, uniquify_cu_indices)
8063 (write_hash_table): Adjust.
8065 2017-06-12 Pedro Alves <palves@redhat.com>
8067 * dwarf2read.c (recursively_count_psymbols): New function.
8068 (write_psymtabs_to_index): Call it to compute number of psyms and
8069 pass estimate size of psyms_seen to unordered_set's ctor.
8071 2017-06-12 Pedro Alves <palves@redhat.com>
8073 * dwarf2read.c (write_hash_table): Check if key already exists
8076 2017-06-12 Pedro Alves <palves@redhat.com>
8078 * dwarf2read.c (data_buf::append_space): Rename to...
8079 (data_buf::grow): ... this, and make private. Adjust all callers.
8080 (data_buf::append_uint): New method.
8081 (add_address_entry, write_one_signatured_type)
8082 (write_psymtabs_to_index): Use it.
8084 2017-06-12 Pedro Alves <palves@redhat.com>
8086 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8087 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8088 (data_buf::file_write): Call ::fwrite directly.
8090 2017-06-12 Pedro Alves <palves@redhat.com>
8092 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8095 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8097 Code cleanup: C++ify .gdb_index producer.
8098 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8099 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8100 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8101 (create_strtab, add_string): Remove.
8102 (file_write, data_buf): New.
8103 (struct symtab_index_entry): Use std::vector for cu_indices.
8104 (struct mapped_symtab): Use std::vector for data.
8105 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8106 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8108 (find_slot): Change return type. Update it to the new data structures.
8109 (hash_expand, add_index_entry): Update it to the new data structures.
8110 (offset_type_compare): Remove.
8111 (uniquify_cu_indices): Update it to the new data structures.
8112 (c_str_view, c_str_view_hasher, vector_hasher): New.
8113 (add_indices_to_cpool): Remove.
8114 (write_hash_table): Update it to the new data structures.
8115 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8116 (eq_psymtab_cu_index): Remove.
8117 (psym_index_map): New typedef.
8118 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8119 reference and std::unordered_map for cu_index_htab.
8120 (add_address_entry, add_address_entry_worker, write_address_map)
8121 (write_psymbols): Update it to the new data structures.
8122 (write_obstack): Remove.
8123 (struct signatured_type_index_data): Change types_list to a data_buf
8124 reference and psyms_seen to a std::unordered_set reference.
8125 (write_one_signatured_type, recursively_write_psymbols)
8126 (write_psymtabs_to_index): Update it to the new data structures.
8128 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8130 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8131 separate-debug-file commands.
8132 * symfile.h (separate_debug_file_debug): New global.
8133 * symfile.c (separate_debug_file_debug): New global.
8134 (separate_debug_file_exists, find_separate_debug_file): Add
8136 (_initialize_symfile): Add "set debug separate-debug-file"
8138 * build-id.c (build_id_to_debug_bfd,
8139 find_separate_debug_file_by_buildid): Add debug output.
8141 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8143 * gdbarch.sh (displaced_step_free_closure): Remove.
8144 * gdbarch.h, gdbarch.c: Re-generate.
8145 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8146 displaced_step_free_closure.
8147 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8148 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8149 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8150 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8151 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8152 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8153 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8154 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8155 * infrun.c (displaced_step_clear): Call xfree instead of
8156 gdbarch_displaced_step_free_closure.
8158 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8160 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8163 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8165 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8166 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8167 (mn10300_push_dummy_call): Likewise.
8169 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8171 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8173 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8175 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8177 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8179 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8180 able to start inferiors using a shell.
8181 (New remote packets): Announce new packet "QStartupWithShell".
8182 * remote.c: Add PACKET_QStartupWithShell.
8183 (extended_remote_create_inferior): Handle new
8184 PACKET_QStartupWithShell.
8185 (remote_protocol_features) <QStartupWithShell>: New entry for
8186 PACKET_QStartupWithShell.
8187 (_initialize_remote): Call "add_packet_config_cmd" for
8190 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8191 Pedro Alves <palves@redhat.com>
8193 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8194 and "nat/fork-inferior.h".
8195 * common/common-inferior.h: New file, with contents from
8197 * commom/common-utils.c: Include "common-utils.h".
8198 (stringify_argv): New function.
8199 * common/common-utils.h (stringify_argv): New prototype.
8200 * configure.nat: Add "fork-inferior.o" as a dependency for
8201 "*linux*", "fbsd*" and "nbsd*" hosts.
8202 * corefile.c (get_exec_file): Update comment.
8203 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8204 instead of "startup_inferior".
8205 (darwin_create_inferior): Call "add_thread_silent" after
8207 * fork-child.c: Cleanup unnecessary includes.
8208 (SHELL_FILE): Move to "common/common-fork-child.c".
8209 (environ): Likewise.
8210 (exec_wrapper): Initialize.
8211 (get_exec_wrapper): New function.
8212 (breakup_args): Move to "common/common-fork-child.c"; rename to
8213 "breakup_args_for_exec".
8214 (escape_bang_in_quoted_argument): Move to
8215 "common/common-fork-child.c".
8216 (saved_ui): New variable.
8217 (prefork_hook): New function.
8218 (postfork_hook): Likewise.
8219 (postfork_child_hook): Likewise.
8220 (gdb_startup_inferior): Likewise.
8221 (fork_inferior): Move to "common/common-fork-child.c". Update
8222 function to support gdbserver.
8223 (startup_inferior): Likewise.
8224 * gdbcore.h (get_exec_file): Remove declaration.
8225 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8226 instead of "startup_inferior". Call "add_thread_silent" after
8228 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8229 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8230 instead of "startup_inferior". Call "add_thread_silent" after
8232 * inferior.h: Include "common-inferior.h".
8233 (trace_start_error): Move to "common/common-utils.h".
8234 (trace_start_error_with_name): Likewise.
8235 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8236 (startup_inferior): Likewise.
8237 (gdb_startup_inferior): New prototype.
8238 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8239 * nat/fork-inferior.h: New file.
8240 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8241 instead of "startup_inferior". Call "add_thread_silent" after
8243 * target.h (target_terminal_init): Move prototype to
8245 (target_terminal_inferior): Likewise.
8246 (target_terminal_ours): Likewise.
8247 * target/target.h (target_terminal_init): New prototype, moved
8249 (target_terminal_inferior): Likewise.
8250 (target_terminal_ours): Likewise.
8251 * utils.c (gdb_flush_out_err): New function.
8253 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8255 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8256 * common/common-gdbthread.h: New file, with parts from
8258 * gdbthread.h: Include "common-gdbthread.h".
8259 (switch_to_thread): Moved to "common/common-gdbthread.h".
8261 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8263 * Makefile.in (SFILES): Add "common/job-control.c".
8264 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8265 (COMMON_OBS): Add "job-control.o".
8266 * common/job-control.c: New file, with contents from
8268 * common/job-control.h: New file, with contents from "terminal.h".
8269 * fork-child.c: Include "job-control.h".
8270 * inflow.c: Include "job-control.h".
8271 (gdb_setpgid): Move to "common/common-inflow.c".
8272 (_initialize_inflow): Move setting of "job_control" to
8273 "handle_job_control".
8274 * terminal.h (job_control): Moved to "common/common-terminal.h".
8275 (gdb_setpgid): Likewise.
8276 * top.c: Include "job_control.h".
8277 * utils.c: Likewise.
8278 (job_control): Moved to "job-control.c".
8280 2017-06-07 Pedro Alves <palves@redhat.com>
8282 * Makefile.in (SFILES): Add gdb_regex.c.
8283 (COMMON_OBS): Add gdb_regex.o.
8284 * ada-lang.c (ada_add_standard_exceptions)
8285 (ada_add_exceptions_from_frame, name_matches_regex)
8286 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8287 parameter type to compiled_regex. Adjust.
8288 (ada_exceptions_list): Use compiled_regex.
8289 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8290 std::unique_ptr<compiled_regex>.
8291 (exception_catchpoint::~exception_catchpoint): Remove regfree
8293 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8294 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8295 * breakpoint.c (solib_catchpoint::compiled): Now a
8296 std::unique_ptr<compiled_regex>.
8297 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8298 (check_status_catch_solib): Adjust to use compiled_regex.
8299 (add_solib_catchpoint): Adjust to use compiled_regex.
8300 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8301 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8302 compiled_regex reference. Adjust to use it.
8303 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8304 declaration. Include "gdb_regex.h".
8305 (apropos_cmd): Change regex parameter to compiled_regex reference.
8306 * gdb_regex.c: New file.
8307 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8309 (class compiled_regex): New.
8310 * linux-tdep.c: Include "common/gdb_optional.h".
8311 (struct mapping_regexes): New, factored out from
8312 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8313 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8314 gdb::optional and remove cleanups. Adjust to compiled_regex.
8315 * probe.c: Include "common/gdb_optional.h".
8316 (collect_probes): Use compiled_regex and gdb::optional and remove
8318 * skip.c: Include "common/gdb_optional.h".
8319 (skiplist_entry::compiled_function_regexp): Now a
8320 gdb::optional<compiled_regex>.
8321 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8322 (free_skiplist_entry): Remove regfree call.
8323 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8324 compiled_regex and gdb::optional.
8325 * symtab.c: Include "common/gdb_optional.h".
8326 (search_symbols): Use compiled_regex and gdb::optional.
8327 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8328 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8331 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8333 * regcache.c (regcache::save): Avoid buffer use.
8334 (regcache::dump): Likewise.
8336 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8338 * sh-tdep.c (sh_pseudo_register_read): Remove
8340 (sh_pseudo_register_write): Likewise.
8341 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8342 (sh64_pseudo_register_write): Likewise
8344 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8346 * aarch64-tdep.c (aarch64_store_return_value): Use
8348 (aarch64_pseudo_read_value): Likewise.
8349 (aarch64_pseudo_write): Likewise.
8351 2017-06-06 Yao Qi <yao.qi@linaro.org>
8353 * regformats/regdef.h (set_register_cache): Remove the
8356 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8358 * frame.c (frame_unwind_register_signed): Use
8359 frame_unwind_register_value.
8361 2017-06-06 Pedro Alves <palves@redhat.com>
8363 PR breakpoints/21553
8364 * breakpoint.c (create_breakpoints_sal_default)
8365 (init_breakpoint_sal, create_breakpoint_sal): Use
8366 gdb::unique_xmalloc_ptr for string parameters.
8367 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8368 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8369 (base_breakpoint_create_breakpoints_sal)
8370 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8371 (strace_marker_create_breakpoints_sal)
8372 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8374 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8375 gdb::unique_xmalloc_ptr for string parameters.
8376 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8379 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8381 * alpha-tdep.c (alpha_register_to_value): Use
8382 get_frame_register_value.
8383 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8385 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8387 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8388 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8389 (ia64_value_to_register): Likewise.
8390 (ia64_extract_return_value): Likewise.
8391 (ia64_store_return_value): Likewise.
8392 (ia64_push_dummy_call): Likewise.
8394 2017-06-04 Joel Brobecker <brobecker@adacore.com>
8398 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8400 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8402 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8404 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8406 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8408 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8410 * event-loop.c (poll_timers): Unallocate timer using delete
8413 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8415 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8416 (struct breakpoint) <~breakpoint>: New.
8417 (struct watchpoint): Inherit from breakpoint.
8420 (struct tracepoint): Inherit from breakpoint.
8422 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8423 (struct longjmp_breakpoint): Inherit from breakpoint.
8424 <~longjmp_breakpoint>: New.
8426 (new_breakpoint_from_type): Remove casts.
8427 (watchpoint_in_thread_scope): Remove reference to base field.
8428 (watchpoint_del_at_next_stop): Likewise.
8429 (update_watchpoint): Likewise.
8430 (watchpoint_check): Likewise.
8431 (bpstat_check_watchpoint): Likewise.
8432 (set_longjmp_breakpoint): Likewise.
8433 (struct fork_catchpoint): Inherit from breakpoint.
8435 (struct solib_catchpoint): Inherit from breakpoint.
8436 <~solib_catchpoint>: New.
8438 (dtor_catch_solib): Change to ...
8439 (solib_catchpoint::~solib_catchpoint): ... this.
8440 (breakpoint_hit_catch_solib): Remove reference to base field.
8441 (add_solib_catchpoint): Likewise.
8442 (create_fork_vfork_event_catchpoint): Likewise.
8443 (struct exec_catchpoint): Inherit from breakpoint.
8444 <~exec_catchpoint>: New.
8446 (dtor_catch_exec): Change to ...
8447 (exec_catchpoint::~exec_catchpoint): ... this.
8448 (dtor_watchpoint): Change to ...
8449 (watchpoint::~watchpoint): ... this.
8450 (watch_command_1): Remove reference to base field.
8451 (catch_exec_command_1): Likewise.
8452 (base_breakpoint_dtor): Change to ...
8453 (breakpoint::~breakpoint): ... this.
8454 (base_breakpoint_ops): Remove dtor field value.
8455 (longjmp_bkpt_dtor): Change to ...
8456 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8457 (strace_marker_create_breakpoints_sal): Remove reference to base
8459 (delete_breakpoint): Don't manually call breakpoint destructor.
8460 (create_tracepoint_from_upload): Remove reference to base field.
8461 (trace_pass_set_count): Likewise.
8462 (initialize_breakpoint_ops): Don't initialize
8463 momentary_breakpoint_ops, don't set dtors.
8464 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8465 <~ada_catchpoint>: New.
8467 (create_excep_cond_exprs): Remove reference to base field.
8468 (dtor_exception): Change to ...
8469 (ada_catchpoint::~ada_catchpoint): ... this.
8470 (dtor_catch_exception): Remove.
8471 (dtor_catch_exception_unhandled): Remove.
8472 (dtor_catch_assert): Remove.
8473 (create_ada_exception_catchpoint): Remove reference to base
8475 (initialize_ada_catchpoint_ops): Don't set dtors.
8476 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8478 <~signal_catchpoint>: New.
8480 (signal_catchpoint_dtor): Change to ...
8481 (signal_catchpoint::~signal_catchpoint): ... this.
8482 (create_signal_catchpoint): Remove reference to base field.
8483 (initialize_signal_catchpoint_ops): Don't set dtor.
8484 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8486 <~syscall_catchpoint>: New.
8488 (dtor_catch_syscall): Change to ...
8489 (syscall_catchpoint::~syscall_catchpoint): ... this.
8490 (create_syscall_event_catchpoint): Remove reference to base
8492 (initialize_syscall_catchpoint_ops): Don't set dtor.
8493 * break-catch-throw.c (struct exception_catchpoint): Inherit
8495 <~exception_catchpoint>: New.
8497 (dtor_exception_catchpoint): Change to ...
8498 (exception_catchpoint::~exception_catchpoint): ... this.
8499 (handle_gnu_v3_exceptions): Remove reference to base field.
8500 (initialize_throw_catchpoint_ops): Don't set dtor.
8501 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8503 * remote.c (remote_get_tracepoint_status): Likewise.
8504 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8505 * tracefile.c (tracefile_fetch_registers): Likewise.
8506 * tracepoint.c (actions_command): Likewise.
8507 (validate_actionline): Likewise.
8508 (tfind_1): Likewise.
8509 (get_traceframe_location): Likewise.
8510 (find_matching_tracepoint_location): Likewise.
8511 (parse_tracepoint_status): Likewise.
8512 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8514 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8516 * breakpoint.c (struct longjmp_breakpoint): New struct.
8517 (is_tracepoint_type): Change return type to bool.
8518 (is_longjmp_type): New function.
8519 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8520 (set_raw_breakpoint_without_location): Use
8521 new_breakpoint_from_type.
8522 (set_raw_breakpoint): Likewise.
8524 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8526 * breakpoint.c (new_breakpoint_from_type): New function.
8527 (create_breakpoint_sal): Use new_breakpoint_from_type and
8529 (create_breakpoint): Likewise.
8531 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8533 * memattr.c (mem_info_command): Rename to ...
8534 (info_mem_command): ... this.
8535 (mem_enable_command): Rename to ...
8536 (enable_mem_command): ... this.
8537 (mem_disable_command): Rename to ...
8538 (disable_mem_command): ... this.
8539 (mem_delete_command): Rename to ...
8540 (delete_mem_command): ... this.
8541 (_initialize_mem): Adjust function names.
8543 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8545 * btrace.c (handle_pt_insn_events): New.
8546 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8547 STATUS. Split into this and ...
8548 (handle_pt_insn_event_flags): ... this.
8550 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8552 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8553 and struct pt_insn.resynced.
8554 * configure: Regenerated.
8555 * config.in: Regenerated.
8557 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8559 * btrace.c (ftrace_find_call_by_number): New function.
8560 (ftrace_new_function): Store objects, not pointers.
8561 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8562 ftrace_new_gap, ftrace_update_function,
8563 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8564 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8565 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8566 btrace_ends_with_single_insn, btrace_call_get): Account for
8567 btrace_thread_info::functions now storing objects.
8568 * btrace.h (struct btrace_thread_info): Add constructor.
8569 (struct btrace_thread_info) <functions>: Make std::vector.
8570 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8571 Initialize with default values.
8572 * record-btrace.c (record_btrace_frame_sniffer): Account for
8573 btrace_thread_info::functions now storing objects.
8575 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8577 * btrace.c: Remove typedef bfun_s.
8578 (ftrace_new_gap): Directly add gaps to the list of gaps.
8579 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8580 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8581 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8584 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8586 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8587 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8588 with btrace_thread_info::next_segment and
8589 btrace_thread_info::prev_segment.
8590 * btrace.h: Remove struct btrace_func_link.
8591 (struct btrace_function): Replace pair of function segment pointers
8592 with pair of indices.
8593 * python/py-record-btrace.c (btpy_call_prev_sibling,
8594 btpy_call_next_sibling): Replace references to
8595 btrace_thread_info::segment with btrace_thread_info::next_segment and
8596 btrace_thread_info::prev_segment.
8597 * record-btrace.c (record_btrace_frame_this_id): Use
8598 btrace_find_call_by_number.
8600 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8602 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8603 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8604 btrace_insn_next, btrace_insn_prev): Remove references to
8605 btrace_thread_info::flow.
8606 * btrace.h (struct btrace_function): Remove FLOW.
8608 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8610 * btrace.c (ftrace_find_call_by_number): New function.
8611 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8612 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8613 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8614 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8616 * btrace.h (struct btrace_function): Turn UP into an index.
8617 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8619 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8620 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8621 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8623 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8625 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8626 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8627 ftrace_update_function, ftrace_compute_global_level_offset,
8628 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8629 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8630 btrace_insn_end, btrace_is_empty): Remove references to
8631 btrace_thread_info::begin and btrace_thread_info::end.
8632 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8633 (struct btrace_thread_info) <functions>: Adjust comment.
8634 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8635 btrace_thread_info::begin.
8637 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8639 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8640 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8641 ftrace_update_function): Remove arguments that implicitly were always
8643 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8644 Don't pass BTINFO->END.
8646 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8648 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8649 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8650 btrace_find_insn_by_number): Replace function segment pointer with
8652 (btrace_insn_cmp): Simplify.
8653 * btrace.h: (struct btrace_insn_iterator) Rename index to
8654 insn_index. Replace function segment pointer with index into function
8656 * record-btrace.c (record_btrace_call_history): Replace function
8657 segment pointer use with index.
8658 (record_btrace_frame_sniffer): Retrieve function call segment through
8660 (record_btrace_set_replay): Remove defunc't safety check.
8662 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8664 * btrace.c (btrace_ends_with_single_insn): New function.
8665 (btrace_call_get, btrace_call_number, btrace_call_begin,
8666 btrace_call_end, btrace_call_next, btrace_call_prev,
8667 btrace_find_call_by_number): Use index into call segment vector
8669 (btrace_call_cmp): Simplify.
8670 * btrace.h (struct btrace_call_iterator): Replace function call segment
8671 pointer with index into vector.
8672 * record-btrace.c (record_btrace_call_history): Use index instead of
8675 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8677 * btrace.c (btrace_insn_begin, btrace_insn_end,
8678 btrace_find_insn_by_number): Add btinfo to iterator.
8679 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8681 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8683 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8684 and save pointers directly.
8685 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8686 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8687 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8688 changed signature of functions.
8689 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8690 (btrace_fetch): Remove code that adds btrace_function pointers to
8691 vector of btrace_functions.
8692 (btrace_clear): Simplify freeing vector of btrace_functions.
8694 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8696 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8697 Replace VEC_* with std::vector functions.
8698 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8699 (struct btrace_thread_info)<functions>: Change type to std::vector.
8701 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8703 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8704 "Removed targets and native configurations" up. Merge duplicate
8705 "New commands" sub-sections. Add "New options" sub-sections.
8707 2017-05-26 Alan Hayward <alan.hayward@arm.com>
8709 * defs.h (copy_integer_to_size): New declaration.
8710 * findvar.c (copy_integer_to_size): New function.
8711 (do_cint_test): New selftest function.
8712 (copy_integer_to_size_test): Likewise.
8713 (_initialize_findvar): Likewise.
8714 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8715 (mips_fbsd_collect_reg): Use raw_collect_integer.
8716 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8717 (mips64_fill_gregset): Use raw_collect_integer
8718 (mips64_fill_fpregset): Use raw_supply_integer.
8719 * regcache.c (regcache::raw_supply_integer): New function.
8720 (regcache::raw_collect_integer): Likewise.
8721 * regcache.h: (regcache::raw_supply_integer): New declaration.
8722 (regcache::raw_collect_integer): Likewise.
8724 2017-05-24 Yao Qi <yao.qi@linaro.org>
8726 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8727 (COMMON_OBS): Add gdbarch-selftests.o.
8728 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8729 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8730 * gdbarch-selftests.c: New file.
8731 * regcache.h (regcache) <~regcache>: Mark it virtual if
8733 <raw_write>: Likewise.
8735 2017-05-24 Yao Qi <yao.qi@linaro.org>
8737 * regcache.c (current_regcache): Change it to
8738 regcache::current_regcache.
8739 (regcache_observer_target_changed): Update.
8740 (regcache_thread_ptid_changed): Make it a regcache static
8742 (regcache_thread_ptid_changed): Update.
8743 (class regcache_access): New.
8744 (current_regcache_test): Update.
8745 (_initialize_regcache): Update.
8746 * regcache.h: Include forward_list.
8747 (regcache): Declare regcache_thread_ptid_changed and declare
8748 registers_changed_ptid as friend.
8750 2017-05-24 Yao Qi <yao.qi@linaro.org>
8752 * i387-tdep.c (i387_register_to_value): Use register_size
8753 instead of TYPE_LENGTH.
8754 * m68k-tdep.c (m68k_register_to_value): Likewise.
8756 2017-05-24 Yao Qi <yao.qi@linaro.org>
8758 * i387-tdep.c (i387_convert_register_p): Return false if type
8759 code isn't TYPE_CODE_FLT.
8761 2017-05-24 Yao Qi <yao.qi@linaro.org>
8763 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8765 (alpha_register_to_value): Remove type length check.
8766 (alpha_value_to_register): Likewise.
8768 2017-05-24 Yao Qi <yao.qi@linaro.org>
8770 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8773 2017-05-24 Yao Qi <yao.qi@linaro.org>
8775 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8776 TYPE_CODE_FLT or not.
8778 2017-05-24 Yao Qi <yao.qi@linaro.org>
8780 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8781 * avr-tdep.c (avr_gdbarch_init): Likewise.
8782 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8783 * cris-tdep.c (cris_gdbarch_init): Likewise.
8784 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8785 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8786 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8787 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8788 * mep-tdep.c (mep_gdbarch_init): Likewise.
8789 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8790 * mips-tdep.c (mips_gdbarch_init): Likewise.
8791 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8792 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8793 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8794 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8795 * v850-tdep.c (v850_gdbarch_init): Likewise.
8797 2017-05-24 Yao Qi <yao.qi@linaro.org>
8799 * selftest-arch.c (tests_with_arch): Call registers_changed
8800 and reinit_frame_cache.
8801 * selftest.c (run_self_tests): Likewise.
8803 2017-05-24 Yao Qi <yao.qi@linaro.org>
8805 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8806 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8808 2017-05-24 Yao Qi <yao.qi@linaro.org>
8810 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8811 set_gdbarch_print_insn.
8813 2017-05-24 Yao Qi <yao.qi@linaro.org>
8815 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8816 set_gdbarch_print_insn.
8818 2017-05-24 Yao Qi <yao.qi@linaro.org>
8820 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8821 set_gdbarch_print_insn.
8822 * arc-tdep.c (arc_gdbarch_init): Likewise.
8823 * arch-utils.c: include dis-asm.h.
8824 (default_print_insn): New function.
8825 * arch-utils.h (default_print_insn): Declare.
8826 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8827 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8828 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8829 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8830 * frv-tdep.c (frv_gdbarch_init): Likewise.
8831 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8832 * gdbarch.sh (print_insn): Use default_print_insn.
8833 * gdbarch.c: Regenerated.
8834 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8835 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8836 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8837 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8838 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8839 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8840 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8841 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8842 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8843 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8844 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8845 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8846 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8847 * mt-tdep.c (mt_gdbarch_init): Likewise.
8848 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8849 * nios2-tdep.c (nios2_print_insn): Remove.
8850 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8851 * rx-tdep.c (rx_gdbarch_init): Likewise.
8852 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8853 * score-tdep.c (score_print_insn): Remove.
8854 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8855 * sh-tdep.c (sh_gdbarch_init): Likewise.
8856 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8857 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8858 * tic6x-tdep.c (tic6x_print_insn): Remove.
8859 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8860 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8861 * v850-tdep.c (v850_gdbarch_init): Likewise.
8862 * vax-tdep.c (vax_gdbarch_init): Likewise.
8863 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8864 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8866 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8868 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8869 (MIPS_FP0_REGNUM): Remove.
8870 (MIPS_FSR_REGNUM): Remove.
8871 (mips_fbsd_supply_fpregs): Use mips_regnum.
8872 (mips_fbsd_supply_gregs): Likewise.
8873 (mips_fbsd_collect_fpregs): Likewise.
8874 (mips_fbsd_collect_gregs): Likewise.
8876 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8878 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8879 (getpfpregs_supplies): New function.
8880 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8882 (mips_fbsd_store_inferior_registers): Likewise.
8884 2017-05-22 Pedro Alves <palves@redhat.com>
8886 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8889 2017-05-22 Alan Hayward <alan.hayward@arm.com>
8891 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8892 (store_register): Likewise.
8893 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8894 (get_decimal_float_return_value): Likewise.
8895 (do_ppc_sysv_return_value): Likewise.
8896 (ppc64_sysv_abi_push_integer): Likewise.
8897 (ppc64_sysv_abi_push_freg): Likewise.
8898 (ppc64_sysv_abi_return_value_base): Likewise.
8899 (ppc64_sysv_abi_return_value): Likewise.
8900 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8901 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8902 * rs6000-nat.c: Likewise.
8903 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8904 (rs6000_value_to_register): Likewise.
8905 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8907 2017-05-21 Tom Tromey <tom@tromey.com>
8910 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8911 arrays as "[T]", not "[T; ]".
8913 2017-05-19 Tom Tromey <tom@tromey.com>
8916 * rust-lang.c (exp_descriptor_rust): New function.
8917 (rust_language_defn): Use it.
8918 * p-lang.c (pascal_language_defn): Update.
8919 * opencl-lang.c (opencl_language_defn): Update.
8920 * objc-lang.c (objc_language_defn): Update.
8921 * m2-lang.c (m2_language_defn): Update.
8922 * language.h (struct language_defn)
8923 <la_watch_location_expression>: New member.
8924 * language.c (unknown_language_defn, auto_language_defn)
8925 (local_language_defn): Update.
8926 * go-lang.c (go_language_defn): Update.
8927 * f-lang.c (f_language_defn): Update.
8928 * d-lang.c (d_language_defn): Update.
8929 * c-lang.h (c_watch_location_expression): Declare.
8930 * c-lang.c (c_watch_location_expression): New function.
8931 (c_language_defn, cplus_language_defn, asm_language_defn)
8932 (minimal_language_defn): Use it.
8933 * breakpoint.c (watch_command_1): Call
8934 la_watch_location_expression.
8935 * ada-lang.c (ada_language_defn): Update.
8937 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8940 * gdb_curses.h (NOMACROS): Define.
8941 (NCURSES_NOMACROS): Define.
8943 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8946 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8948 * tui/tui-wingeneral.c (box_win): Likewise.
8949 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8950 (tui_show_source_line): Likewise.
8951 (tui_show_exec_info_content): Likewise.
8953 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8955 * sparc-tdep.c (sparc_structure_return_p)
8956 (sparc_arg_on_registers_p): New functions.
8957 (sparc32_store_arguments): Use them.
8958 * sparc64-tdep.c (sparc64_16_byte_align_p)
8959 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8960 Handle TYPE_CODE_ARRAY.
8962 2017-05-17 Yao Qi <yao.qi@linaro.org>
8964 * cli/cli-decode.c (add_alias_cmd): New function.
8965 * command.h (add_alias_cmd): Declare.
8966 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8967 instead call add_alias_cmd.
8969 2017-05-17 Pedro Alves <palves@redhat.com>
8971 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8972 (nat_makefile_frag): ... this. All references updated.
8973 * configure.ac: Likewise.
8974 * configure.nat: Likewise. Enhance comments.
8975 * configure: Regenerate.
8977 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8979 * procfs.c (procfs_create_inferior): Change prototype to match
8982 2017-05-13 Eli Zaretskii <eliz@gnu.org>
8984 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8985 C++ compiler warning.
8987 2017-05-12 Tom Tromey <tom@tromey.com>
8990 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8991 recurse, just call value_struct_elt directly.
8993 2017-05-12 Tom Tromey <tom@tromey.com>
8995 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8996 OP_RUST_ARRAY>: Fix.
8998 2017-05-12 Tom Tromey <tom@tromey.com>
9000 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
9002 2017-05-09 Yao Qi <yao.qi@linaro.org>
9004 * regcache.c: Include <forward_list>.
9005 (struct regcache_list): Remove.
9006 (current_regcache): Update.
9007 (get_thread_arch_aspace_regcache): Update for std::forward_list.
9008 (regcache_thread_ptid_changed): Likewise.
9009 (registers_changed_ptid): Likewise.
9010 (current_regcache_size): Likewise.
9012 2017-05-09 Yao Qi <yao.qi@linaro.org>
9014 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
9015 (current_regcache_size): New function.
9016 (current_regcache_test): New function.
9017 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9019 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9021 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9022 (print_gp_register_row): Use get_frame_register_value.
9024 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9026 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9027 (mips_supply_fpregset): Likewise.
9028 (mips64_supply_gregset): Likewise.
9030 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9032 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9033 regcache->raw_supply_zeroed.
9035 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9037 * configure.nat: Rearrange 'case' statements to match
9040 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9042 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9043 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9044 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9045 "@nat_extra_makefile_frag@".
9046 (Makefile): Remove dependency on "@frags@".
9047 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9048 (data-directory/Makefile): Likewise.
9049 * config/aarch64/linux.mh: Deleted; moved contents to
9050 "gdb/configure.nat".
9051 * config/alpha/alpha-linux.mh: Likewise.
9052 * config/alpha/nbsd.mh: Likewise.
9053 * config/arm/linux.mh: Likewise.
9054 * config/arm/nbsdelf.mh: Likewise.
9055 * config/i386/cygwin.mh: Likewise.
9056 * config/i386/cygwin64.mh: Likewise.
9057 * config/i386/darwin.mh: Likewise.
9058 * config/i386/fbsd.mh: Likewise.
9059 * config/i386/fbsd64.mh: Likewise.
9060 * config/i386/go32.mh: Likewise.
9061 * config/i386/i386gnu.mh: Likewise.
9062 * config/i386/i386sol2.mh: Likewise.
9063 * config/i386/linux.mh: Likewise.
9064 * config/i386/linux64.mh: Likewise.
9065 * config/i386/mingw.mh: Likewise.
9066 * config/i386/mingw64.mh: Likewise.
9067 * config/i386/nbsd64.mh: Likewise.
9068 * config/i386/nbsdelf.mh: Likewise.
9069 * config/i386/nto.mh: Likewise.
9070 * config/i386/obsd.mh: Likewise.
9071 * config/i386/obsd64.mh: Likewise.
9072 * config/i386/sol2-64.mh: Likewise.
9073 * config/ia64/linux.mh: Likewise.
9074 * config/m32r/linux.mh: Likewise.
9075 * config/m68k/linux.mh: Likewise.
9076 * config/m68k/nbsdelf.mh: Likewise.
9077 * config/m68k/obsd.mh: Likewise.
9078 * config/m88k/obsd.mh: Likewise.
9079 * config/mips/fbsd.mh: Likewise.
9080 * config/mips/linux.mh: Likewise.
9081 * config/mips/nbsd.mh: Likewise.
9082 * config/mips/obsd64.mh: Likewise.
9083 * config/pa/linux.mh: Likewise.
9084 * config/pa/nbsd.mh: Likewise.
9085 * config/pa/obsd.mh: Likewise.
9086 * config/powerpc/aix.mh: Likewise.
9087 * config/powerpc/fbsd.mh: Likewise.
9088 * config/powerpc/linux.mh: Likewise.
9089 * config/powerpc/nbsd.mh: Likewise.
9090 * config/powerpc/obsd.mh: Likewise.
9091 * config/powerpc/ppc64-linux.mh: Likewise.
9092 * config/powerpc/spu-linux.mh: Likewise.
9093 * config/s390/linux.mh: Likewise.
9094 * config/sh/nbsd.mh: Likewise.
9095 * config/sparc/fbsd.mh: Likewise.
9096 * config/sparc/linux.mh: Likewise.
9097 * config/sparc/linux64.mh: Likewise.
9098 * config/sparc/nbsd64.mh: Likewise.
9099 * config/sparc/nbsdelf.mh: Likewise.
9100 * config/sparc/obsd64.mh: Likewise.
9101 * config/sparc/sol2.mh: Likewise.
9102 * config/tilegx/linux.mh: Likewise.
9103 * config/vax/nbsdelf.mh: Likewise.
9104 * config/vax/obsd.mh: Likewise.
9105 * config/xtensa/linux.mh: Likewise.
9106 * config/i386/i386gnu.mn: New file, with excerpts from
9107 "config/i386/i386gnu.mh".
9108 * configure: Regenerate.
9109 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9110 *.mh files under "gdb/config".
9111 * configure.nat: New file, with contents from the
9112 "gdb/config/*/*.mh" files.
9114 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9116 * btrace.c (btrace_clear): Free insn vector.
9118 2017-05-05 Pedro Alves <palves@redhat.com>
9120 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9121 * configure: Regenerate.
9123 2017-05-04 Pedro Alves <palves@redhat.com>
9125 * Makefile.in (SFILES): Add progspace-and-thread.c.
9126 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9127 (COMMON_OBS): Add progspace-and-thread.o.
9128 * breakpoint.c: Include "progspace-and-thread.h".
9129 (update_inserted_breakpoint_locations)
9130 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9131 Use scoped_restore_current_pspace_and_thread.
9132 (create_std_terminate_master_breakpoint): Use
9133 scoped_restore_current_program_space.
9134 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9135 (print_breakpoint_location): Use
9136 scoped_restore_current_program_space.
9137 (bp_loc_is_permanent): Use
9138 scoped_restore_current_pspace_and_thread.
9139 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9140 (download_tracepoint_locations): Use
9141 scoped_restore_current_pspace_and_thread.
9142 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9143 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9144 (enum step_over_calls_kind): Moved from inferior.h.
9145 (class scoped_restore_current_thread): New class.
9146 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9148 (scoped_restore_current_thread): New class.
9149 * infcmd.c: Include "common/gdb_optional.h".
9150 (continue_1, proceed_after_attach): Use
9151 scoped_restore_current_thread.
9152 (notice_new_inferior): Use scoped_restore_current_thread.
9153 * inferior.c: Include "progspace-and-thread.h".
9154 (restore_inferior, save_current_inferior): Delete.
9155 (add_inferior_command, clone_inferior_command): Use
9156 scoped_restore_current_pspace_and_thread.
9157 * inferior.h (scoped_restore_current_inferior): New class.
9158 * infrun.c: Include "progspace-and-thread.h" and
9159 "common/gdb_optional.h".
9160 (follow_fork_inferior): Use
9161 scoped_restore_current_pspace_and_thread.
9162 (scoped_restore_exited_inferior): New class.
9163 (handle_vfork_child_exec_or_exit): Use
9164 scoped_restore_exited_inferior,
9165 scoped_restore_current_pspace_and_thread,
9166 scoped_restore_current_thread and scoped_restore.
9167 (fetch_inferior_event): Use scoped_restore_current_thread.
9168 * linespec.c (decode_line_full, decode_line_1): Use
9169 scoped_restore_current_program_space.
9170 * mi/mi-main.c: Include "progspace-and-thread.h".
9171 (exec_continue): Use scoped_restore_current_thread.
9172 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9173 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9174 * proc-service.c (ps_pglobal_lookup): Use
9175 scoped_restore_current_program_space.
9176 * progspace-and-thread.c: New file.
9177 * progspace-and-thread.h: New file.
9178 * progspace.c (release_program_space, clone_program_space): Use
9179 scoped_restore_current_program_space.
9180 (restore_program_space, save_current_program_space)
9181 (save_current_space_and_thread): Delete.
9182 (switch_to_program_space_and_thread): Moved to
9183 progspace-and-thread.c.
9184 * progspace.h (save_current_program_space)
9185 (save_current_space_and_thread): Delete declarations.
9186 (scoped_restore_current_program_space): New class.
9187 * remote.c (remote_btrace_maybe_reopen): Use
9188 scoped_restore_current_thread.
9189 * symtab.c: Include "progspace-and-thread.h".
9190 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9191 * thread.c (print_thread_info_1): Use
9192 scoped_restore_current_thread.
9193 (struct current_thread_cleanup): Delete.
9194 (do_restore_current_thread_cleanup)
9195 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9196 (scoped_restore_current_thread::~scoped_restore_current_thread):
9198 (make_cleanup_restore_current_thread): Rename/convert to ...
9199 (scoped_restore_current_thread::scoped_restore_current_thread):
9201 (thread_apply_all_command): Use scoped_restore_current_thread.
9202 (thread_apply_command): Use scoped_restore_current_thread.
9203 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9204 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9206 2017-05-04 Pedro Alves <palves@redhat.com>
9208 * thread.c (make_cleanup_restore_current_thread): Move
9209 find_thread_ptid call before the is_stopped call. Assert that the
9210 thread is found. Replace is_stopped call by checking the thread's
9211 state directly. Remove unnecessary NULL-thread check.
9213 2017-05-04 Pedro Alves <palves@redhat.com>
9215 * corelow.c (thread_section_name): New class.
9216 (get_core_register_section, get_core_siginfo): Use it.
9218 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9220 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9221 (get_core_register_section): Remove xfree of NULL pointer.
9223 2017-05-03 Alan Hayward <alan.hayward@arm.com>
9225 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9226 * regcache.c (regcache::raw_supply_zeroed): New function.
9227 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9229 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9231 * gdbarch.sh: Remove commented out definition of
9233 * gdbarch.h: Re-generate.
9235 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9237 * configure: Regenerate.
9239 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9241 * solib-target.c (solib_target_relocate_section_addresses):
9242 Remove num_section_bases, num_bases, segment_bases variables.
9244 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9246 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9248 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9250 * solib-target.c: Include <vector>
9251 (struct lm_info_target) <~lm_info_target>: Remove.
9252 <segment_bases, section_bases>: Change type to
9253 std::vector<CORE_ADDR>.
9254 (library_list_start_segment, library_list_start_section,
9255 library_list_end_library,
9256 solib_target_relocate_section_addresses): Adjust.
9258 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9260 * gdbarch.sh (software_single_step): Change return type to
9261 std::vector<CORE_ADDR>.
9262 * gdbarch.c, gdbarch.h: Re-generate.
9263 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9265 (arm_deal_with_atomic_sequence_raw): Adjust.
9266 (thumb_get_next_pcs_raw): Adjust.
9267 (arm_get_next_pcs_raw): Adjust.
9268 (arm_get_next_pcs): Adjust.
9269 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9270 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9271 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9272 (alpha_software_single_step): Adjust.
9273 * alpha-tdep.h (alpha_software_single_step): Adjust.
9274 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9275 * arm-tdep.c (arm_software_single_step): Adjust.
9276 (arm_breakpoint_kind_from_current_state): Adjust.
9277 * arm-tdep.h (arm_software_single_step): Adjust.
9278 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9279 * cris-tdep.c (cris_software_single_step): Adjust.
9280 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9281 (micromips_deal_with_atomic_sequence): Adjust.
9282 (deal_with_atomic_sequence): Adjust.
9283 (mips_software_single_step): Adjust.
9284 * mips-tdep.h (mips_software_single_step): Adjust.
9285 * moxie-tdep.c (moxie_software_single_step): Adjust.
9286 * nios2-tdep.c (nios2_software_single_step): Adjust.
9287 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9288 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9289 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9290 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9291 * sparc-tdep.c (sparc_software_single_step): Adjust.
9292 * spu-tdep.c (spu_software_single_step): Adjust.
9293 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9295 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9297 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9298 * gdbarch.h: Re-generate.
9300 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9302 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9303 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9304 * python/py-instruction.c, python/py-instruction.h: New file.
9305 * python/py-record.c: Add py-instruction.h include.
9306 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9307 gdb.RecordInstruction.
9308 * python/python-internal.h: Add gdbpy_initialize_instruction
9310 * python/python.c (do_start_initialization): Add
9311 gdbpy_initialize_instruction.
9313 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9315 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9317 (btrace_func_from_recpy_func): New function.
9318 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9319 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9320 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9321 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9322 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9323 Also, use new helper functions.
9324 (btpy_list_item): Use new helper functions.
9325 (recpy_bt_function_call_history): Use new type name.
9326 (btpy_call_getset): Remove.
9327 (gdbpy_initialize_btrace): Remove code to initialize
9328 gdb.BtraceFunctionCall.
9329 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9330 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9331 recpy_bt_func_prev, recpy_bt_func_next): New export.
9332 * python/py-record.c (recpy_func_type): New static object.
9333 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9334 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9335 recpy_func_next): New function.
9336 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9337 (recpy_func_getset): New static object.
9338 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9339 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9341 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9343 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9344 (btpy_object, btpy_insn_type, btpy_new): Remove.
9345 (btpy_list_object): Use gdb.RecordInstruction type instead of
9346 gdb.BtraceInstruction type.
9347 (btrace_insn_from_recpy_insn): New function.
9348 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9350 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9351 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9352 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9353 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9354 instead of btpy_object.
9355 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9356 btpy_insn_data, btpy_insn_decode): Rename to ...
9357 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9358 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9359 recpy_bt_insn_decode): This. Also, use new helper functions.
9360 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9362 (btpy_insn_getset): Remove.
9363 (gdbpy_initialize_btrace): Remove code to initialize
9364 gdb.BtraceInstruction. Use recpy_element_object.
9365 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9366 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9367 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9368 * python/py-record.c (recpy_insn_type): New static object.
9369 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9370 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9371 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9373 (recpy_insn_getset): New static object.
9374 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9375 * python/py-record.h (recpy_element_object): New typedef.
9376 (recpy_insn_type, recpy_insn_new): New export.
9378 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9380 * py-record-btrace.c (btpy_insn_new): Removed.
9381 (btpy_insn_or_gap_new): New function.
9382 (btpy_insn_error): Removed.
9383 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9384 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9385 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9386 btpy_insn_or_gap_new instead of btpy_insn_new.
9387 (btpy_insn_getset): Remove btpy_insn_error.
9388 * py-record.c (recpy_gap_type): New static object.
9389 (recpy_gap_object): New typedef.
9390 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9391 recpy_gap_reason_string): New function.
9392 (recpy_gap_getset): New static object.
9393 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9394 * py-record.h (recpy_gap_new): New export.
9396 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9398 * python/py-record.c (recpy_ptid): Remove.
9399 (recpy_record_getset): Remove recpy_ptid.
9401 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9403 * btrace.c (btrace_fetch): Set inferior_ptid.
9404 * python/py-record-btrace.c: Add "py-record.h" include.
9405 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9406 recpy_bt_end, recpy_bt_instruction_history,
9407 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9408 in gdb.Record object instead of current ptid.
9409 * python/py-record.c: Include new "py-record.h" file.
9410 (recpy_record_object): Moved to py-record.h.
9411 * python/py-record.h: New file.
9413 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9415 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9416 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9419 2017-05-01 Joel Brobecker <brobecker@adacore.com>
9421 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9422 the past maintainers section.
9424 2017-04-28 Yao Qi <yao.qi@linaro.org>
9426 * infcmd.c (get_return_value): Use regcache ctor, and remove
9429 2017-04-28 Yao Qi <yao.qi@linaro.org>
9430 Pedro Alves <palves@redhat.com>
9432 * regcache.c (regcache::regcache): New tag dispatch ctor.
9433 (do_cooked_read): Moved above.
9434 (regcache_dup): Use the tag dispatch ctor..
9435 * regcache.h (regcache): Declare ctor, delete copy ctor and
9436 assignment operator, remove friend regcache_dup.
9438 2017-04-28 Yao Qi <yao.qi@linaro.org>
9440 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9441 call method save instead of regcache_cpy.
9442 * regcache.h (struct regcache): Make regcache_dup a friend.
9444 2017-04-28 Yao Qi <yao.qi@linaro.org>
9446 * regcache.c (struct regcache): Move to regcache.h
9447 (regcache::arch): New method.
9448 (regcache_get_ptid): Update.
9449 (get_regcache_arch): Call arch method.
9450 (get_regcache_aspace): Call method aspace.
9451 (register_buffer): Change it to method.
9452 (regcache_save): Change it to regcache::save.
9453 (regcache_restore): Likewise.
9454 (regcache_cpy_no_passthrough): Remove the declaration.
9455 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9456 (regcache_cpy_no_passthrough): Change it to method
9458 (regcache_register_status): Change it to method
9459 get_register_status.
9460 (regcache_invalidate): Change it to method invalidate.
9461 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9462 (regcache_raw_update): Change it to method raw_update.
9463 (regcache_raw_read): Likewise.
9464 (regcache_raw_read_signed): Likewise.
9465 (regcache_raw_read_unsigned): Likewise.
9466 (regcache_raw_write_signed): Likewise.
9467 (regcache_raw_write_unsigned): Likewise.
9468 (regcache_cooked_read): Likewise.
9469 (regcache_cooked_read_value): Likewise.
9470 (regcache_cooked_read_signed): Likewise.
9471 (regcache_cooked_read_unsigned): Likewise.
9472 (regcache_cooked_write_signed): Likewise.
9473 (regcache_cooked_write_unsigned): Likewise.
9474 (regcache_raw_set_cached_value): Likewise.
9475 (regcache_raw_write): Likewise.
9476 (regcache_cooked_write): Likewise.
9477 (regcache_xfer_part): Likewise.
9478 (regcache_raw_read_part): Likewise.
9479 (regcache_raw_write_part): Likewise.
9480 (regcache_cooked_read_part): Likewise.
9481 (regcache_cooked_write_part): Likewise.
9482 (regcache_raw_supply): Likewise.
9483 (regcache_raw_collect): Likewise.
9484 (regcache_transfer_regset): Likewise.
9485 (regcache_supply_regset): Likewise.
9486 (regcache_collect_regset): Likewise.
9487 (regcache_debug_print_register): Likewise.
9488 (enum regcache_dump_what): Move it to regcache.h.
9489 (regcache_dump): Change it to method dump.
9490 * regcache.h (enum regcache_dump_what): New.
9491 (class regcache): New.
9492 * target.c (target_fetch_registers): Call method
9493 debug_print_register.
9494 (target_store_registers): Likewise.
9496 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9498 * windows-nat.c (struct lm_info_windows): Initialize field.
9499 (windows_make_so): Allocate lm_info_windows with new.
9500 (windows_free_so): Free lm_info_windows with delete.
9502 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9504 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9505 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9507 (darwin_free_so): Free lm_info_darwin with delete.
9509 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9511 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9512 <l_addr_p>: Change type to bool.
9513 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9514 (svr4_free_so): Free lm_info_svr4 with delete.
9515 (svr4_copy_library_list): Replace memcpy with call to copy
9517 (library_list_start_library, svr4_default_sos): Allocate
9518 lm_info_svr4 with new.
9520 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9522 * solib-target.c (struct lm_info_target): Add destructor,
9524 <name>: Change type to std::string.
9525 (library_list_start_library): Allocate lm_info_target with new.
9526 (solib_target_free_library_list): Free lm_info_target with
9528 (solib_target_current_sos): Adapt to std::string.
9529 (solib_target_free_so): Free lm_info_target with delete.
9531 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9533 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9535 (frv_current_sos): Allocate lm_info_frv with new.
9536 (frv_relocate_main_executable): Free lm_info_frv with delete,
9538 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9540 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9542 * solib-frv.c (struct lm_info_frv): Fix indentation.
9544 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9546 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9548 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9549 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9550 and allocate with new.
9551 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9553 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9555 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9556 <filename, member_name>: Change type to std::string.
9557 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9558 (library_list_start_library): Allocate lm_info_aix with new.
9559 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9560 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9561 with copy constructor.
9563 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9565 * solist.h (struct lm_info): Remove.
9566 (struct lm_info_base): New class.
9567 (struct so_list) <lm_info>: Change type to lm_info_base *.
9568 * nto-tdep.c (struct lm_info): Remove.
9570 * solib-aix.c (struct lm_info): Rename to ...
9571 (struct lm_info_aix): ... this. Extend lm_info_base.
9572 (lm_info_p): Rename to ...
9573 (lm_info_aix_p): ... this, and adjust.
9574 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9575 solib_aix_parse_libraries, library_list_start_library,
9576 solib_aix_free_library_list, solib_aix_parse_libraries,
9577 solib_aix_get_library_list,
9578 solib_aix_relocate_section_addresses, solib_aix_free_so,
9579 solib_aix_get_section_offsets,
9580 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9582 (struct solib_aix_inferior_data) <library_list>: Adjust.
9583 * solib-darwin.c (struct lm_info): Rename to ...
9584 (struct lm_info_darwin): ... this. Extend lm_info_base.
9585 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9586 * solib-dsbt.c (struct lm_info): Rename to ...
9587 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9588 (struct dsbt_info) <main_executable_lm_info): Adjust.
9589 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9590 dsbt_relocate_section_addresses): Adjust.
9591 * solib-frv.c (struct lm_info): Rename to ...
9592 (struct lm_info_frv): ... this. Extend lm_info_base.
9593 (main_executable_lm_info): Adjust.
9594 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9595 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9596 find_canonical_descriptor_in_load_object,
9597 frv_fdpic_find_canonical_descriptor): Adjust.
9598 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9600 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9601 svr4_clear_so, svr4_copy_library_list,
9602 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9603 svr4_current_sos, svr4_fetch_objfile_link_map,
9604 solist_update_incremental): Adjust.
9605 * solib-svr4.h (struct lm_info_svr4): Move here from
9607 * solib-target.c (struct lm_info): Rename to ...
9608 (struct lm_info_target): ... this. Extend lm_info_base.
9609 (lm_info_p): Rename to ...
9610 (lm_info_target_p): ... this.
9611 (solib_target_parse_libraries, library_list_start_segment,
9612 library_list_start_section, library_list_start_library,
9613 library_list_end_library, solib_target_free_library_list,
9614 solib_target_current_sos, solib_target_free_so,
9615 solib_target_relocate_section_addresses): Adjust.
9616 * windows-nat.c (struct lm_info): Rename to ...
9617 (struct lm_info_windows): ... this. Extend lm_info_base.
9618 (windows_make_so, handle_load_dll, handle_unload_dll,
9619 windows_xfer_shared_libraries): Adjust.
9621 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9623 * solib-darwin.c (struct darwin_so_list): Remove.
9624 (darwin_current_sos): Allocate an so_list object instead of a
9625 darwin_so_list, separately allocate an lm_info object.
9626 (darwin_free_so): Free lm_info.
9628 2017-04-28 John Baldwin <jhb@FreeBSD.org>
9630 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9631 with fprintf_filtered.
9633 2017-04-28 Yao Qi <yao.qi@linaro.org>
9635 * regcache.c (regcache::regcache): New function.
9636 (regcache::~regcache): New function.
9637 (regcache_xmalloc_1): Remove.
9638 (regcache_xmalloc): Call new regcache.
9639 (regcache_xfree): Call delete regcache.
9640 (get_thread_arch_aspace_regcache): Call new regcache.
9642 2017-04-28 Yao Qi <yao.qi@linaro.org>
9644 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9645 lwp instead of ptid_get_lwp.
9647 2017-04-28 Yao Qi <yao.qi@linaro.org>
9649 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9650 lwp_info instead of getting from inferior_ptid.
9652 2017-04-27 Keith Seitz <keiths@redhat.com>
9654 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9655 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9656 (CV_CONVERSION_BADNESS): Define.
9657 (rank_one_type): Remove overly restrictive rvalue reference
9659 Add cv-qualifier checks and subranks for type equality.
9660 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9661 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9662 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9664 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9666 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9667 count when creating the object.
9669 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9670 Ulrich Weigand <uweigand@de.ibm.com>
9672 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9673 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9675 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9676 (process_xcoff_symbol): Likewise.
9677 (scan_xcoff_symtab): Likewise.
9679 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9681 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9682 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9683 (ia64_access_reg): Use get_frame_register_unsigned.
9684 (ia64_access_rse_reg): Likewise.
9685 (ia64_libunwind_frame_prev_register): Likewise.
9687 2017-04-26 Jiong Wang <jiong.wang@arm.com>
9689 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9690 * gdbarch.c: Regenerated.
9691 * gdbarch.h: Regenerated.
9692 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9693 visibility external.
9694 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9695 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9696 (enum cfa_how_kind): Move to ...
9697 (struct dwarf2_frame_state_reg_info): Likewise.
9698 (struct dwarf2_frame_state): Likewise.
9699 * dwarf2-frame.h: ... here.
9700 (dwarf2_frame_state_alloc_regs): New declaration.
9701 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9702 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9704 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9706 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9707 regcache_raw_read_unsigned.
9708 (xtensa_pseudo_register_write): Likewise.
9710 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9712 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9713 (nds32_pseudo_register_write): Likewise.
9715 2017-04-25 Yao Qi <yao.qi@linaro.org>
9717 * regcache.c (struct regcache) <readonly_p>: Change its type
9719 (regcache_xmalloc_1): Update parameter type and callers update.
9721 2017-04-25 Yao Qi <yao.qi@linaro.org>
9723 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9724 set_gdbarch_wchar_bit.
9725 * arm-tdep.c (arm_gdbarch_init): Likewise.
9727 2017-04-25 Pedro Alves <palves@redhat.com>
9729 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9730 (BothAreRelocatable, memcopy, memmove): Don't define.
9731 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9734 2017-04-25 Pedro Alves <palves@redhat.com>
9736 * common/common-defs.h: Include "common/poison.h".
9737 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9739 * common/poison.h: New file.
9740 * common/traits.h: Include <type_traits>.
9741 (Not, Or, Requires): New, moved from common/function-view.h.
9743 2017-04-25 Pedro Alves <palves@redhat.com>
9745 * breakpoint.h (struct breakpoint): In-class initialize all
9746 fields. Make boolean fields "bool".
9747 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9748 memset call and initializations no longer necessary.
9750 2017-04-25 Pedro Alves <palves@redhat.com>
9752 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9754 (pt_btrace_insn): New function.
9755 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9757 2017-04-25 Pedro Alves <palves@redhat.com>
9759 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9760 "base" field and inherit from "bp_location" instead. Add
9762 (allocate_location_exception): Use new non-default ctor.
9763 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9764 (init_bp_location): Convert to ...
9765 (bp_location::bp_location): ... this new ctor, and remove memset
9767 (base_breakpoint_allocate_location): Use the new non-default ctor.
9768 * breakpoint.h (bp_location): Now a class. Declare default and
9769 non-default ctors. In-class initialize all members.
9770 (init_bp_location): Remove declaration.
9772 2017-04-25 Pedro Alves <palves@redhat.com>
9774 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9775 assignment operator.
9777 2017-04-24 Yao Qi <yao.qi@linaro.org>
9779 * doublest.c (convert_doublest_to_floatformat): Call
9780 floatformat_totalsize_bytes.
9782 2017-04-22 Tom Tromey <tom@tromey.com>
9784 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9786 * stack.c (print_frame): Use ui_out_emit_list.
9787 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9789 * mi/mi-main.c (print_one_inferior)
9790 (mi_cmd_data_list_register_names)
9791 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9792 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9794 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9795 (mi_output_solib_attribs): Use ui_out_emit_list,
9797 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9798 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9799 (mi_cmd_stack_list_args, list_args_or_locals): Use
9801 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9802 * breakpoint.c (print_solib_event, output_thread_groups): Use
9805 2017-04-22 Tom Tromey <tom@tromey.com>
9807 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9808 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9809 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9811 2017-04-22 Tom Tromey <tom@tromey.com>
9813 * tracepoint.c (tvariables_info_1)
9814 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9816 2017-04-22 Tom Tromey <tom@tromey.com>
9818 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9819 annotate_arg_emitter.
9820 * breakpoint.c (print_mention_watchpoint)
9821 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9822 * annotate.h (struct annotate_arg_emitter): New.
9824 2017-04-22 Tom Tromey <tom@tromey.com>
9826 * record-btrace.c (record_btrace_insn_history)
9827 (record_btrace_insn_history_range, record_btrace_call_history)
9828 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9829 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9831 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9832 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9833 * skip.c (skip_info): Use ui_out_emit_tuple.
9834 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9835 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9836 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9837 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9838 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9840 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9841 (output_register, mi_cmd_data_read_memory)
9842 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9843 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9844 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9845 Use ui_out_emit_tuple.
9846 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9848 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9849 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9850 * linux-thread-db.c (info_auto_load_libthread_db): Use
9852 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9853 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9854 * disasm.c (do_mixed_source_and_assembly_deprecated)
9855 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9856 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9857 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9858 * breakpoint.c (print_one_breakpoint_location)
9859 (print_one_breakpoint): Use ui_out_emit_tuple.
9860 * auto-load.c (print_script, info_auto_load_cmd): Use
9862 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9864 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9866 * thread.c (print_thread_info_1): Remove dead code.
9868 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9870 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9872 * arm-tdep.c (selftests::arm_record_test): Likewise.
9874 2017-04-21 Yao Qi <yao.qi@linaro.org>
9876 * regcache.c (regcache_restore): Remove argument 2. Replace
9877 argument 3 with regcache. Get register status from
9878 src->register_status and get register contents from
9879 register_buffer (src, regnum).
9880 (regcache_cpy): Update.
9882 2017-04-19 Pedro Alves <palves@redhat.com>
9884 * gdbthread.h (thread): Add missing closing parenthesis in
9887 2017-04-19 Pedro Alves <palves@redhat.com>
9889 * common/refcounted-object.h: New file.
9890 * gdbthread.h: Include "common/refcounted-object.h".
9891 (thread_info): Inherit from refcounted_object and add comments.
9892 (thread_info::incref, thread_info::decref)
9893 (thread_info::m_refcount): Delete.
9894 (thread_info::deletable): Use the refcounted_object::refcount()
9896 * inferior.c (current_inferior_): Add comment.
9897 (set_current_inferior): Increment/decrement refcounts.
9898 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9899 not-deletable instead of comparing with the current inferior.
9900 (initialize_inferiors): Increment the initial inferior's refcount.
9901 * inferior.h (struct inferior): Forward declare.
9902 Include "common/refcounted-object.h".
9903 (current_inferior, set_current_inferior): Move declaration to
9904 before struct inferior's definition, and fix comment.
9905 (inferior): Inherit from refcounted_object. Add comments.
9906 * thread.c (switch_to_thread_no_regs): Reference the thread's
9907 inferior pointer directly instead of doing a ptid lookup.
9908 (switch_to_no_thread): New function.
9909 (switch_to_thread(thread_info *)): New function, factored out
9911 (switch_to_thread(ptid_t)): ... this.
9912 (restore_current_thread): Delete.
9913 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9914 fields, and add 'inf' field.
9915 (do_restore_current_thread_cleanup): Check whether old->inf is
9916 alive instead of looking up an inferior by ptid. Use
9917 switch_to_thread and switch_to_no_thread.
9918 (restore_current_thread_cleanup_dtor): Use old->inf directly
9919 instead of lookup up an inferior by id. Decref the inferior.
9920 Don't restore 'removable'.
9921 (make_cleanup_restore_current_thread): Same the inferior pointer
9922 in old, instead of the inferior number. Incref the inferior.
9923 Don't save/clear 'removable'.
9925 2017-04-19 Pedro Alves <palves@redhat.com>
9927 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9928 unittests/scoped_restore-selftests.c.
9929 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9930 * common/scoped_restore.h (scoped_restore_base): Make "class".
9931 (scoped_restore_base::release): New public method.
9932 (scoped_restore_base::scoped_restore_base): New protected ctor.
9933 (scoped_restore_base::m_saved_var): New protected field.
9934 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9935 scoped_restore_base base class instead of m_saved_var directly.
9936 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9937 (scoped_restore_tmpl::scoped_restore_tmpl(const
9938 scoped_restore_tmpl<T>&)): Likewise.
9939 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9941 (scoped_restore_tmpl::saved_var): New method.
9942 (scoped_restore_tmpl::m_saved_var): Delete.
9943 * inferior.h (inferior::detaching): Now a bool.
9944 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9946 * unittests/scoped_restore-selftests.c: New file.
9948 2017-04-19 Pedro Alves <palves@redhat.com>
9950 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9951 Re-sort in alphabetic order.
9953 2017-04-18 Pedro Alves <palves@redhat.com>
9955 * xml-support.c (obstack_xml_printf): Delete.
9956 * xml-support.h (obstack_xml_printf): Delete.
9958 2017-04-18 Pedro Alves <palves@redhat.com>
9960 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9961 vdebug, verror, body_text, start_element, end_element, name,
9962 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9963 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9964 is_xinclude>: Make private and add m_ prefix.
9965 (gdb_xml_parser::body_text): New method, based on ...
9966 (gdb_xml_body_text): ... this. Adjust.
9967 (gdb_xml_parser::vdebug): New method, based on ...
9968 (gdb_xml_debug): ... this. Adjust.
9969 (gdb_xml_parser::verror): New method, based on ...
9970 (gdb_xml_error): ... this. Adjust.
9971 (gdb_xml_parser::start_element): New method, based on ...
9972 (gdb_xml_start_element): ... this. Adjust.
9973 (gdb_xml_start_element_wrapper): Defer to
9974 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9975 (gdb_xml_parser::end_element): New method, based on ...
9976 (gdb_xml_end_element_wrapper): ... this. Adjust.
9977 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9978 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9979 (gdb_xml_parser::use_dtd): New method, based on ...
9980 (gdb_xml_use_dtd): ... this. Adjust.
9981 (gdb_xml_parser::parse): New method, based on ...
9982 (gdb_xml_parse): ... this. Adjust.
9983 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9984 (xinclude_start_include): Adjust to call the parser's name method.
9985 (xml_xinclude_default, xml_xinclude_start_doctype)
9986 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9988 (xml_process_xincludes): Adjust to call parser methods.
9989 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9992 2017-04-18 Pedro Alves <palves@redhat.com>
9994 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9995 gdb::optional<std::string>.
9996 * xml-support.c: Include <string>.
9997 (scope_level::scope_level(scope_level &&))
9998 (scope_level::~scope_level): Delete.
9999 (scope_level::body): Now a std::string.
10000 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
10001 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
10003 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
10004 (xinclude_parsing_data::output): Now a std::string reference.
10005 (xinclude_start_include): Adjust.
10006 (xml_xinclude_default): Adjust.
10007 (xml_process_xincludes): Add 'output' parameter, and return bool.
10008 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
10010 * xml-tdesc.c: Include <unordered_map> and <string>.
10011 (tdesc_xml_cache): Delete.
10012 (tdesc_xml_cache_s): Delete.
10013 (xml_cache): Now an std::unordered_map.
10014 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
10015 (target_fetch_description_xml): Change return type to
10016 gdb::optional<std::string>, and adjust.
10017 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10018 (target_fetch_description_xml): Change return type to
10019 gdb::optional<std::string>.
10021 2017-04-18 Pedro Alves <palves@redhat.com>
10023 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10024 unittests/optional-selftests.c.
10025 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10026 * unittests/optional-selftests.c: New file.
10027 * unittests/optional/assignment/1.cc: New file.
10028 * unittests/optional/assignment/2.cc: New file.
10029 * unittests/optional/assignment/3.cc: New file.
10030 * unittests/optional/assignment/4.cc: New file.
10031 * unittests/optional/assignment/5.cc: New file.
10032 * unittests/optional/assignment/6.cc: New file.
10033 * unittests/optional/assignment/7.cc: New file.
10034 * unittests/optional/cons/copy.cc: New file.
10035 * unittests/optional/cons/default.cc: New file.
10036 * unittests/optional/cons/move.cc: New file.
10037 * unittests/optional/cons/value.cc: New file.
10038 * unittests/optional/in_place.cc: New file.
10039 * unittests/optional/observers/1.cc: New file.
10040 * unittests/optional/observers/2.cc: New file.
10042 2017-04-18 Pedro Alves <palves@redhat.com>
10044 * common/gdb_optional.h: Include common/traits.h.
10045 (in_place_t): New type.
10046 (in_place): New constexpr variable.
10047 (optional::optional): Remove member initialization of
10049 (optional::optional(in_place_t...)): New constructor.
10050 (optional::~optional): Use reset.
10051 (optional::optional(const optional&)): New.
10052 (optional::optional(const optional&&)): New.
10053 (optional::optional(T &)): New.
10054 (optional::optional(T &&)): New.
10055 (operator::operator=(const optional &)): New.
10056 (operator::operator=(optional &&)): New.
10057 (operator::operator= (const T &))
10058 (operator::operator= (T &&))
10059 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10060 (operator::reset): New.
10061 (operator::m_instantiated):: Add in-class initializer.
10062 * common/traits.h: Include <type_traits>.
10063 (struct And): New types.
10065 2017-04-18 Pedro Alves <palves@redhat.com>
10067 * xml-support.c: Include <vector>.
10068 (scope_level::scope_level(const gdb_xml_element *))
10069 (scope_level::scope_level(scope_level&&)): New.
10070 (scope_level::~scope_level): New.
10071 (scope_level_s): Delete.
10072 (gdb_xml_parser::scopes): Now a std::vector.
10073 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10075 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10076 scope cleanup code.
10077 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10078 of the scopes member. Use std::vector::emplace_back.
10080 2017-04-18 Pedro Alves <palves@redhat.com>
10082 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10084 (gdb_xml_end_element): Change type of first parameter.
10085 (gdb_xml_cleanup): Rename to ...
10086 (gdb_xml_parser::~gdb_xml_parser): ... this.
10087 (gdb_xml_create_parser_and_cleanup): Delete with ...
10088 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10090 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10091 using gdb_xml_create_parser_and_cleanup.
10092 (xinclude_parsing_data): Add ctor/dtor.
10093 (xml_xinclude_cleanup): Delete.
10094 (xml_process_xincludes): Create a local xinclude_parsing_data
10095 instead of heap-allocating one. Create a local gdb_xml_parser
10096 instead of heap-allocating one with
10097 gdb_xml_create_parser_and_cleanup.
10099 2017-04-18 John Baldwin <jhb@FreeBSD.org>
10102 * fbsd-nat.c (resume_one_thread_cb): Remove.
10103 (resume_all_threads_cb): Remove.
10104 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10105 iterate_over_threads.
10107 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10109 * NEWS: Create a new section for the next release branch.
10110 Rename the section of the current branch, now that it has
10113 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10115 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10116 * version.in: Bump version to 8.0.50.DATE-git.
10118 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10121 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10122 independently of the host, and fix build breakage on Cygwin.
10124 2017-04-13 Pedro Alves <palves@redhat.com>
10126 * inferior.c (free_inferior): Convert to ...
10127 (inferior::~inferior): ... this dtor.
10128 (inferior::inferior): New ctor, factored out from ...
10129 (add_inferior_silent): ... here. Allocate the inferior with a new
10131 (delete_inferior): Call delete instead of free_inferior.
10132 * inferior.h (gdb_environ, continuation): Forward declare.
10133 (inferior): Now a class. Add in-class initialization to all
10134 members. Make boolean fields bool, except 'detaching'.
10135 (inferior::inferior): New explicit ctor.
10136 (inferior::~inferior): New.
10138 2017-04-13 Pedro Alves <palves@redhat.com>
10140 * inferior.c (init_inferior_list): Delete.
10141 * inferior.h (init_inferior_list): Delete.
10143 2017-04-13 Pedro Alves <palves@redhat.com>
10146 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10147 (top level): Call it twice, with different thread sets.
10149 2017-04-13 Pedro Alves <palves@redhat.com>
10151 * thread.c: Include <algorithm>.
10152 (thread_array_cleanup): Delete.
10153 (scoped_inc_dec_ref): New class.
10154 (live_threads_count): New function.
10155 (set_thread_refcount): Delete.
10156 (tp_array_compar_ascending): Now a bool.
10157 (tp_array_compar): Convert to a std::sort comparison function.
10158 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10159 and live_threads_count.
10161 2017-04-13 Pedro Alves <palves@redhat.com>
10163 * infrun.c (follow_fork_inferior): Also switch the current
10166 2017-04-13 Pedro Alves <palves@redhat.com>
10168 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10169 before calling create_internal_breakpoint.
10171 2017-04-13 Pedro Alves <palves@redhat.com>
10173 * fork-child.c (execv_argv): New class.
10174 (breakup_args): Refactored as ...
10175 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10176 Copy arguments to storage and replace separators with NULL
10177 terminators in place.
10178 (escape_bang_in_quoted_argument): Adjust to return bool.
10179 (execv_argv::execv_argv): New ctor.
10180 (execv_argv::init_for_shell): New method, factored out from
10181 fork_inferior. Don't strdup strings into the vector.
10182 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10183 Remove free_vector_argv call.
10185 2017-04-13 Yao Qi <yao.qi@linaro.org>
10187 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10190 2017-04-13 Yao Qi <yao.qi@linaro.org>
10192 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10193 * rx-tdep.c (rx_gdbarch_init): Likewise.
10195 2017-04-13 Pedro Alves <palves@redhat.com>
10197 * breakpoint.h (struct breakpoint): Reindent.
10199 2017-04-13 Pedro Alves <palves@redhat.com>
10201 * breakpoint.c (bp_location): Rename to ...
10202 (bp_locations): ... this. All references updated.
10203 (bp_location_count): Rename to ...
10204 (bp_locations_count): ... this. All references updated.
10205 (bp_location_placed_address_before_address_max): Rename to ...
10206 (bp_locations_placed_address_before_address_max): ... this. All
10207 references updated.
10208 (bp_location_shadow_len_after_address_max): Rename to ...
10209 (bp_locations_shadow_len_after_address_max): ... this. All
10210 references updated.
10211 (bp_location_compare_addrs): Rename to ...
10212 (bp_locations_compare_addrs): ... this. All references updated.
10213 (bp_location_compare):Rename to ...
10214 (bp_locations_compare): ... this. All references updated.
10215 (bp_location_target_extensions_update): Rename to ...
10216 (bp_locations_target_extensions_update): ... this. All references
10219 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10221 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10222 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10224 * common/gdb_termios.h: New file, with parts of "terminal.h".
10225 * inflow.c: Include "gdb_termios.h".
10226 * ser-unix.c: Include "gdb_termios.h".
10227 * terminal.h: Move terminal-related defines to
10228 "common/gdb_termios.h".
10230 2017-04-12 Tom Tromey <tom@tromey.com>
10232 * probe.c (parse_probes): Update.
10233 * location.h (delete_event_location): Don't declare.
10234 (event_location_deleter::operator()): Update.
10235 * location.c (event_location_deleter::operator()): Rename from
10236 delete_event_location.
10237 * linespec.h (linespec_result) <location>: Change type to
10239 * linespec.c (canonicalize_linespec, event_location_to_sals)
10240 (decode_objc): Update.
10241 (linespec_result): Don't call delete_event_location.
10242 * breakpoint.c (create_breakpoints_sal)
10243 (bkpt_probe_create_sals_from_location)
10244 (strace_marker_create_sals_from_location): Update.
10246 2017-04-12 Tom Tromey <tom@tromey.com>
10248 * linespec.h (struct linespec_result): Add constructor and
10250 (init_linespec_result, destroy_linespec_result)
10251 (make_cleanup_destroy_linespec_result): Don't declare.
10252 * linespec.c (init_linespec_result): Remove.
10253 (linespec_result::~linespec_result): Rename from
10254 destroy_linespec_result. Update.
10255 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10257 * breakpoint.c (create_breakpoint, break_range_command)
10258 (decode_location_default): Update.
10259 * ax-gdb.c (agent_command_1): Update.
10261 2017-04-12 Tom Tromey <tom@tromey.com>
10263 * remote.c (remote_download_tracepoint): Update.
10264 * python/py-breakpoint.c (bppy_get_location): Update.
10265 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10266 (gdbscm_breakpoint_location): Update.
10267 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10268 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10269 Change type to event_location_up.
10270 * breakpoint.c (create_overlay_event_breakpoint)
10271 (create_longjmp_master_breakpoint)
10272 (create_std_terminate_master_breakpoint)
10273 (create_exception_master_breakpoint)
10274 (breakpoint_event_location_empty_p, print_breakpoint_location)
10275 (print_one_breakpoint_location, create_thread_event_breakpoint)
10276 (init_breakpoint_sal, create_breakpoint)
10277 (print_recreate_ranged_breakpoint, break_range_command)
10278 (init_ada_exception_breakpoint, say_where): Update.
10279 (base_breakpoint_dtor): Don't call delete_event_location.
10280 (bkpt_print_recreate, tracepoint_print_recreate)
10281 (dprintf_print_recreate, update_static_tracepoint)
10282 (breakpoint_re_set_default): Update.
10284 2017-04-12 Tom Tromey <tom@tromey.com>
10286 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10287 type of "to_do". Update.
10288 (compute_stack_depth): Use std::vector.
10290 2017-04-12 Tom Tromey <tom@tromey.com>
10292 * printcmd.c (find_instruction_backward): Use std::vector.
10294 2017-04-12 Tom Tromey <tom@tromey.com>
10296 * symfile.c (objfilep): Remove typedef.
10297 (reread_symbols): Use a std::vector.
10299 2017-04-12 Tom Tromey <tom@tromey.com>
10301 * mi/mi-main.c (exec_direction_forward): Remove.
10302 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10303 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10305 * guile/guile.c (guile_repl_command, guile_command)
10306 (gdbscm_execute_gdb_command): Use scoped_restore.
10307 * go-exp.y (go_parse): Use scoped_restore.
10308 * d-exp.y (d_parse): Use scoped_restore.
10309 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10310 * c-exp.y (c_parse): Use scoped_restore.
10312 2017-04-12 Tom Tromey <tom@tromey.com>
10314 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10315 (mi_parse): Update return type.
10316 (mi_parse_free): Remove.
10317 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10318 (mi_parse::~mi_parse): Rename from mi_parse_free.
10319 (mi_parse_cleanup): Remove.
10320 (mi_parse): Return a unique_ptr. Use new.
10321 * mi/mi-main.c (mi_execute_command): Update.
10323 2017-04-12 Tom Tromey <tom@tromey.com>
10325 * location.c (explicit_location_lex_one): Return a
10326 unique_xmalloc_ptr.
10327 (string_to_explicit_location): Update. Remove cleanups.
10329 2017-04-12 Tom Tromey <tom@tromey.com>
10331 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10332 (compare_value_and_voffset): Change type. Update.
10333 (compute_vtable_size): Change type of "offset_vec".
10334 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10335 (gnuv3_get_typeid): Remove extraneous declaration.
10337 2017-04-12 Tom Tromey <tom@tromey.com>
10339 * charset.h (wchar_iterator): Fix comment.
10341 2017-04-12 Tom Tromey <tom@tromey.com>
10343 * charset.c (iconv_wrapper): New class.
10344 (cleanup_iconv): Remove.
10345 (convert_between_encodings): Use it.
10347 2017-04-12 Tom Tromey <tom@tromey.com>
10349 * symfile.h (increment_reading_symtab): Update type.
10350 * symfile.c (decrement_reading_symtab): Remove.
10351 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10352 * psymtab.c (psymtab_to_symtab): Update.
10353 * dwarf2read.c (dw2_instantiate_symtab): Update.
10355 2017-04-12 Tom Tromey <tom@tromey.com>
10357 * jit.c (struct jit_reader): Declare separately. Add constructor
10358 and destructor. Change type of "handle".
10359 (loaded_jit_reader): Define separately.
10360 (jit_reader_load): Update. New "new".
10361 (jit_reader_unload_command): Use "delete".
10362 * gdb-dlfcn.h (struct dlclose_deleter): New.
10363 (gdb_dlhandle_up): New typedef.
10364 (gdb_dlopen, gdb_dlsym): Update types.
10365 (gdb_dlclose): Remove.
10366 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10367 (gdb_dlsym): Change type of "handle".
10368 (make_cleanup_dlclose): Remove.
10369 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10370 * compile/compile-c-support.c (load_libcc): Update.
10372 2017-04-12 Tom Tromey <tom@tromey.com>
10374 * symtab.h (find_pcs_for_symtab_line): Change return type.
10375 * symtab.c (find_pcs_for_symtab_line): Change return type.
10376 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10377 type of "vec". Update.
10378 (ltpy_get_pcs_for_line): Update.
10379 * linespec.c (decode_digits_ordinary): Update.
10381 2017-04-12 Tom Tromey <tom@tromey.com>
10383 * tracepoint.c (actions_command): Update.
10384 * python/python.c (python_command, python_interactive_command):
10386 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10387 * guile/guile.c (guile_command): Update.
10388 * defs.h (read_command_lines, read_command_lines_1): Return
10390 (command_lines_deleter): New struct.
10391 (command_line_up): New typedef.
10392 * compile/compile.c (compile_code_command)
10393 (compile_print_command): Update.
10394 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10396 (make_cleanup_free_command_lines): Remove.
10397 * cli/cli-script.c (get_command_line, read_command_lines_1)
10398 (copy_command_lines): Return command_line_up.
10399 (while_command, if_command, read_command_lines, define_command)
10400 (document_command): Update.
10401 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10403 * breakpoint.h (breakpoint_set_commands): Change type of
10405 * breakpoint.c (breakpoint_set_commands): Change type of
10406 "commands". Update.
10407 (do_map_commands_command, update_dprintf_command_list)
10408 (create_tracepoint_from_upload): Update.
10410 2017-04-12 Tom Tromey <tom@tromey.com>
10412 * tracepoint.c (scope_info): Update.
10413 * spu-tdep.c (spu_catch_start): Update.
10414 * python/python.c (gdbpy_decode_line): Update.
10415 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10416 * python/py-breakpoint.c (bppy_init): Update.
10417 * probe.c (parse_probes): Update.
10418 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10419 * location.h (event_location_deleter): New struct.
10420 (event_location_up): New typedef.
10421 (new_linespec_location, new_address_location, new_probe_location)
10422 (new_explicit_location, copy_event_location)
10423 (string_to_event_location, string_to_event_location_basic)
10424 (string_to_explicit_location): Update return type.
10425 (make_cleanup_delete_event_location): Remove.
10426 * location.c (new_linespec_location, new_address_location)
10427 (new_probe_location, new_explicit_location, copy_event_location):
10428 Return event_location_up.
10429 (delete_event_location_cleanup)
10430 (make_cleanup_delete_event_location): Remove.
10431 (string_to_explicit_location, string_to_event_location_basic)
10432 (string_to_event_location): Return event_location_up.
10433 * linespec.c (canonicalize_linespec, event_location_to_sals)
10434 (decode_line_with_current_source)
10435 (decode_line_with_last_displayed, decode_objc): Update.
10436 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10437 * completer.c (location_completer): Update.
10438 * cli/cli-cmds.c (edit_command, list_command): Update.
10439 * breakpoint.c (create_overlay_event_breakpoint)
10440 (create_longjmp_master_breakpoint)
10441 (create_std_terminate_master_breakpoint)
10442 (create_exception_master_breakpoint)
10443 (create_thread_event_breakpoint): Update.
10444 (init_breakpoint_sal): Update. Remove some dead code.
10445 (create_breakpoint_sal): Change type of "location". Update.
10446 (create_breakpoints_sal, create_breakpoint, break_command_1)
10447 (dprintf_command, break_range_command, until_break_command)
10448 (init_ada_exception_breakpoint)
10449 (strace_marker_create_sals_from_location)
10450 (update_static_tracepoint, trace_command, ftrace_command)
10451 (strace_command, create_tracepoint_from_upload): Update.
10452 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10453 * ax-gdb.c (agent_command_1): Update.
10455 2017-04-12 Pedro Alves <palves@redhat.com>
10457 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10458 * configure.tgt: Handle i[34567]86-*-go32* and
10459 i[34567]86-*-msdosdjgpp*.
10460 * i386-tdep.c (i386_svr4_reg_to_regnum):
10462 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10464 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10465 * i386-go32-tdep.c: New file.
10466 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10469 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10471 * aix-thread.c (pd_status2str): Change return type to const char *.
10473 2017-04-12 Pedro Alves <palves@redhat.com>
10475 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10476 calls to set_gdbarch_gnu_triplet_regexp.
10478 2017-04-12 Pedro Alves <palves@redhat.com>
10481 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10483 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10484 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10485 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10486 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10487 * gdbarch.h, gdbarch.c: Regenerate.
10488 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10489 gdbarch_wchar_bit and gdbarch_wchar_signed.
10490 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10491 * arm-tdep.c (arm_gdbarch_init): Likewise.
10492 * avr-tdep.c (avr_gdbarch_init): Likewise.
10493 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10494 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10495 * i386-tdep.c (i386_go32_init_abi): Likewise.
10496 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10497 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10498 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10499 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10500 * sh-tdep.c (sh_gdbarch_init): Likewise.
10501 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10502 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10503 * windows-tdep.c (windows_init_abi): Likewise.
10504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10506 2017-04-12 Pedro Alves <palves@redhat.com>
10509 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10510 cplus_primitive_type_char32_t>: New enum values.
10511 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10512 and cplus_primitive_type_char32_t.
10513 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10514 32, use the archtecture's built-in type for char16_t and char32_t,
10515 respectively. Otherwise, fallback to init_integer_type as before,
10516 but make the type unsigned, and issue a complaint.
10517 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10519 2017-04-12 Alan Hayward <alan.hayward@arm.com>
10521 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
10522 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10524 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10526 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10529 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10531 * common/common-utils.c (free_vector_argv): New function.
10532 * common/common-utils.h: Include <vector>.
10533 (free_vector_argv): New prototype.
10534 * darwin-nat.c (darwin_create_inferior): Rewrite function
10535 prototype in order to constify "exec_file" and accept a
10536 "std::string" for "allargs".
10537 * fork-child.c: Include <vector>.
10538 (breakup_args): Rewrite function, using C++.
10539 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10540 and accept "std::string" for "allargs". Update the code to
10541 calculate "argv" based on "allargs". Update calls to "exec_fun"
10543 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10544 order to constify "exec_file" and accept a "std::string" for
10546 * go32-nat.c (go32_create_inferior): Likewise.
10547 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10548 * infcmd.c (run_command_1): Constify "exec_file". Use
10549 "std::string" for inferior arguments.
10550 * inferior.h (fork_inferior): Update prototype.
10551 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10552 prototype in order to constify "exec_file" and accept a
10553 "std::string" for "allargs".
10554 * nto-procfs.c (procfs_create_inferior): Likewise.
10555 * procfs.c (procfs_create_inferior): Likewise.
10556 * remote-sim.c (gdbsim_create_inferior): Likewise.
10557 * remote.c (extended_remote_run): Update code to accept
10558 "std::string" as argument.
10559 (extended_remote_create_inferior): Rewrite function prototype in
10560 order to constify "exec_file" and accept a "std::string" for
10562 * rs6000-nat.c (super_create_inferior): Likewise.
10563 (rs6000_create_inferior): Likewise.
10564 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10565 * windows-nat.c (windows_create_inferior): Likewise.
10567 2017-04-11 Pedro Alves <palves@redhat.com>
10569 * thread.c: Fix whitespace throughout.
10571 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10573 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10575 2017-04-11 Alan Hayward <alan.hayward@arm.com>
10577 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10579 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10582 * osdata.c (info_osdata): Check if 'type' is an empty string
10585 2017-04-10 Pedro Alves <palves@redhat.com>
10587 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10588 (ptid_to_global_thread_id, in_thread_list)
10589 (do_captured_list_thread_ids, set_resumed, set_running)
10590 (set_executing, set_stop_requested, finish_thread_state)
10591 (validate_registers_access, can_access_registers_ptid)
10592 (print_thread_info_1, switch_to_thread)
10593 (do_restore_current_thread_cleanup)
10594 (make_cleanup_restore_current_thread, thread_command)
10595 (thread_name_command): Use operator== instead of ptid_equal.
10597 2017-04-10 Pedro Alves <palves@redhat.com>
10599 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10600 (current_thread_cleanup_chain): Delete.
10601 (restore_current_thread_cleanup_dtor)
10602 (make_cleanup_restore_current_thread): Remove references to
10603 current_thread_cleanup_chain.
10605 2017-04-10 Alan Hayward <alan.hayward@arm.com>
10607 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10610 2017-04-10 Yao Qi <yao.qi@linaro.org>
10613 * gdbthread.h (thread_info::deletable): New method.
10614 (thread_info::incref): New method.
10615 (thread_info::decref): New method.
10616 (thread_info::refcount): Move it to private.
10617 * infrun.c (save_stop_context): Call inc_refcount.
10618 (release_stop_context_cleanup): Likewise.
10619 * thread.c (set_thread_exited): New function.
10620 (init_thread_list): Delete "tp" only it is deletable, otherwise
10621 call set_thread_exited.
10622 (delete_thread_1): Call set_thread_exited.
10623 (current_thread_cleanup) <inferior_pid>: Remove.
10624 <thread>: New field.
10625 (restore_current_thread_ptid_changed): Removed.
10626 (do_restore_current_thread_cleanup): Adjust.
10627 (restore_current_thread_cleanup_dtor): Don't call
10629 (set_thread_refcount): Use dec_refcount.
10630 (make_cleanup_restore_current_thread): Adjust.
10631 (thread_apply_all_command): Call inc_refcount.
10632 (_initialize_thread): Don't call
10633 observer_attach_thread_ptid_changed.
10635 2017-04-10 Yao Qi <yao.qi@linaro.org>
10637 * thread.c (delete_thread_1): Hoist code on marking thread as
10640 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10642 * windows-nat.c (windows_detach): Initialize ptid with
10645 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10647 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10649 2017-04-07 Alan Hayward <alan.hayward@arm.com>
10651 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10652 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10653 (bfin_pseudo_register_write): Likewise
10655 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10657 * common/ptid.h (struct ptid): Change to...
10658 (class ptid_t): ... this.
10659 <ptid_t>: New constructors.
10660 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10661 matches>: New methods.
10662 <make_null, make_minus_one>: New static methods.
10663 <pid>: Rename to...
10665 <lwp>: Rename to...
10667 <tid>: Rename to...
10669 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10670 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10671 as references, move comment to class ptid_t.
10672 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10673 ptid_t static methods.
10674 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10675 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10676 Take ptid arguments as references, implement using ptid_t methods.
10677 * unittests/ptid-selftests.c: New file.
10678 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10679 unittests/ptid-selftests.c.
10680 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10682 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10684 * python/python.c (python_run_simple_file): Cast mode literal to
10685 non-const char pointer as expected by PyFile_FromString.
10687 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10689 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10690 minus_one_ptid and null_ptid.
10692 2017-04-05 Pedro Alves <palves@redhat.com>
10694 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10695 * configure: Regenerate.
10697 2017-04-05 Pedro Alves <palves@redhat.com>
10699 * ada-exp.y (yyerror): Constify.
10700 * ada-lang.c (bound_name, get_selections)
10701 (ada_variant_discrim_type)
10702 (ada_variant_discrim_name, ada_value_struct_elt)
10703 (ada_lookup_struct_elt_type, is_unchecked_variant)
10704 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10705 (catch_ada_exception_command_split)
10706 (catch_ada_assert_command_split, catch_assert_command)
10707 (ada_op_name): Constify.
10708 * ada-lang.h (ada_yyerror, get_selections)
10709 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10710 * arc-tdep.c (arc_print_frame_cache): Constify.
10711 * arm-tdep.c (arm_skip_stub): Constify.
10712 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10713 (gen_aggregate_elt_ref): Constify.
10714 * bcache.c (print_bcache_statistics): Constify.
10715 * bcache.h (print_bcache_statistics): Constify.
10716 * break-catch-throw.c (catch_exception_command_1):
10717 * breakpoint.c (struct ep_type_description::description):
10719 (add_solib_catchpoint): Constify.
10720 (catch_fork_command_1): Add cast.
10721 (add_catch_command): Constify.
10722 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10724 * bsd-uthread.c (bsd_uthread_state): Constify.
10725 * buildsym.c (patch_subfile_names): Constify.
10726 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10728 * c-exp.y (yyerror): Constify.
10729 (token::oper): Constify.
10730 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10731 * c-varobj.c (cplus_describe_child): Constify.
10732 * charset.c (find_charset_names): Add cast.
10733 (find_charset_names): Constify array and add const_cast.
10734 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10735 (edit_command): Constify.
10736 * cli/cli-decode.c (lookup_cmd): Constify.
10737 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10739 (struct dump_context): Constify.
10740 (add_dump_command, restore_command): Constify.
10741 * cli/cli-script.c (get_command_line): Constify.
10742 * cli/cli-script.h (get_command_line): Constify.
10743 * cli/cli-utils.c (check_for_argument): Constify.
10744 * cli/cli-utils.h (check_for_argument): Constify.
10745 * coff-pe-read.c (struct read_pe_section_data): Constify.
10746 * command.h (lookup_cmd): Constify.
10747 * common/print-utils.c (decimal2str): Constify.
10748 * completer.c (gdb_print_filename): Constify.
10749 * corefile.c (set_gnutarget): Constify.
10750 * cp-name-parser.y (yyerror): Constify.
10751 * cp-valprint.c (cp_print_class_member): Constify.
10752 * cris-tdep.c (cris_register_name, crisv32_register_name):
10754 * d-exp.y (yyerror): Constify.
10755 (struct token::oper): Constify.
10756 * d-lang.h (d_yyerror): Constify.
10757 * dbxread.c (struct header_file_location::name): Constify.
10758 (add_old_header_file, add_new_header_file, last_function_name)
10759 (dbx_next_symbol_text, add_bincl_to_list)
10760 (find_corresponding_bincl_psymtab, set_namestring)
10761 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10762 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10763 * defs.h (command_line_input, print_address_symbolic)
10764 (deprecated_readline_begin_hook): Constify.
10765 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10767 * event-top.c (handle_line_of_input): Constify and add cast.
10768 * exceptions.c (catch_errors): Constify.
10769 * exceptions.h (catch_errors): Constify.
10770 * expprint.c (print_subexp_standard, op_string, op_name)
10771 (op_name_standard, dump_raw_expression, dump_raw_expression):
10772 * expression.h (op_name, op_string, dump_raw_expression):
10774 * f-exp.y (yyerror): Constify.
10775 (struct token::oper): Constify.
10776 (struct f77_boolean_val::name): Constify.
10777 * f-lang.c (f_word_break_characters): Constify.
10778 * f-lang.h (f_yyerror): Constify.
10779 * fork-child.c (fork_inferior): Add cast.
10780 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10781 (new_variant): Constify.
10782 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10783 * gdbarch.c: Regenerate.
10784 * gdbcore.h (set_gnutarget): Constify.
10785 * go-exp.y (yyerror): Constify.
10786 (token::oper): Constify.
10787 * go-lang.h (go_yyerror): Constify.
10788 * go32-nat.c (go32_sysinfo): Constify.
10789 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10790 * guile/scm-cmd.c (cmdscm_function): Constify.
10791 * guile/scm-param.c (pascm_param_value): Constify.
10792 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10793 (h8300sx_register_name): Constify.
10794 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10796 * ia64-tdep.c (ia64_register_names): Constify.
10797 * infcmd.c (construct_inferior_arguments): Constify.
10798 (path_command, attach_post_wait): Constify.
10799 * language.c (show_range_command, show_case_command)
10800 (unk_lang_error): Constify.
10801 * language.h (language_defn::la_error)
10802 (language_defn::la_name_of_this): Constify.
10803 * linespec.c (decode_line_2): Constify.
10804 * linux-thread-db.c (thread_db_err_str): Constify.
10805 * lm32-tdep.c (lm32_register_name): Constify.
10806 * m2-exp.y (yyerror): Constify.
10807 * m2-lang.h (m2_yyerror): Constify.
10808 * m32r-tdep.c (m32r_register_names): Constify and make static.
10809 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10810 * m88k-tdep.c (m88k_register_name): Constify.
10811 * macroexp.c (appendmem): Constify.
10812 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10813 (upgrade_type, parse_external, parse_partial_symbols)
10814 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10815 (new_symbol): Constify.
10816 * memattr.c (mem_info_command): Constify.
10817 * mep-tdep.c (register_name_from_keyword): Constify.
10818 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10820 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10821 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10822 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10824 (mi_execute_async_cli_command): Constify.
10825 * mips-tdep.c (mips_register_name): Constify.
10826 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10827 (am33_register_name, am33_2_register_name)
10828 * moxie-tdep.c (moxie_register_names): Constify.
10829 * nat/linux-osdata.c (osdata_type): Constify fields.
10830 * nto-tdep.c (nto_parse_redirection): Constify.
10831 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10832 (lookup_child_selector): Constify.
10833 (objc_methcall::name): Constify.
10834 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10835 (lookup_struct_typedef): Constify.
10836 * objfiles.c (pc_in_section): Constify.
10837 * objfiles.h (pc_in_section): Constify.
10838 * p-exp.y (struct token::oper): Constify.
10839 (yyerror): Constify.
10840 * p-lang.h (pascal_yyerror): Constify.
10841 * parser-defs.h (op_name_standard): Constify.
10842 (op_print::string): Constify.
10843 (exp_descriptor::op_name): Constify.
10844 * printcmd.c (print_address_symbolic): Constify.
10845 * psymtab.c (print_partial_symbols): Constify.
10846 * python/py-breakpoint.c (stop_func): Constify.
10847 (bppy_get_expression): Constify.
10848 * python/py-cmd.c (cmdpy_completer::name): Constify.
10849 (cmdpy_function): Constify.
10850 * python/py-event.c (evpy_add_attribute)
10851 (gdbpy_initialize_event_generic): Constify.
10852 * python/py-event.h (evpy_add_attribute)
10853 (gdbpy_initialize_event_generic): Constify.
10854 * python/py-evts.c (add_new_registry): Constify.
10855 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10856 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10857 * python/py-inferior.c (get_buffer): Add cast.
10858 * python/py-param.c (parm_constant::name): Constify.
10859 * python/py-unwind.c (fprint_frame_id): Constify.
10860 * python/python.c (gdbpy_parameter_value): Constify.
10861 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10862 * remote.c (memory_packet_config::name): Constify.
10863 (show_packet_config_cmd, remote_write_bytes)
10864 (remote_buffer_add_string):
10865 * reverse.c (exec_reverse_once): Constify.
10866 * rs6000-tdep.c (variant::name, variant::description): Constify.
10867 * rust-exp.y (rustyyerror): Constify.
10868 * rust-lang.c (rust_op_name): Constify.
10869 * rust-lang.h (rustyyerror): Constify.
10870 * serial.h (serial_ops::name): Constify.
10871 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10872 (sh_sh3e_register_name, sh_sh2e_register_name)
10873 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10874 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10875 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10876 (sh_sh4al_dsp_register_name): Constify.
10877 * sh64-tdep.c (sh64_register_name): Constify.
10878 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10879 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10880 * stabsread.c (patch_block_stabs, read_type_number)
10881 (ref_map::stabs, ref_add, process_reference)
10882 (symbol_reference_defined, define_symbol, define_symbol)
10883 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10884 (read_one_struct_field, read_struct_fields, read_baseclasses)
10885 (read_tilde_fields, read_struct_type, read_array_type)
10886 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10887 (read_huge_number, read_range_type, read_args, common_block_start)
10888 (find_name_end): Constify.
10889 * stabsread.h (common_block_start, define_symbol)
10890 (process_one_symbol, symbol_reference_defined, ref_add):
10891 * symfile.c (get_section_index, add_symbol_file_command):
10892 * symfile.h (get_section_index): Constify.
10893 * target-descriptions.c (tdesc_type::name): Constify.
10894 (tdesc_free_type): Add cast.
10895 * target.c (find_default_run_target):
10896 (add_deprecated_target_alias, find_default_run_target)
10897 (target_announce_detach): Constify.
10898 (do_option): Constify.
10899 * target.h (add_deprecated_target_alias): Constify.
10900 * thread.c (print_thread_info_1): Constify.
10901 * top.c (deprecated_readline_begin_hook, command_line_input):
10903 (init_main): Add casts.
10904 * top.h (handle_line_of_input): Constify.
10905 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10906 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10907 (tfind_command): Rename to ...
10908 (tfind_command_1): ... this and constify.
10909 (tfind_command): New function.
10910 (tfind_end_command, tfind_start_command): Adjust.
10911 (encode_source_string): Constify.
10912 * tracepoint.h (encode_source_string): Constify.
10913 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10914 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10915 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10916 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10917 * tui/tui-win.c (parse_scrolling_args): Constify.
10918 * tui/tui-windata.c (tui_erase_data_content): Constify.
10919 * tui/tui-windata.h (tui_erase_data_content): Constify.
10920 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10921 * tui/tui.c (tui_enable): Add cast.
10922 * utils.c (defaulted_query): Constify.
10923 (init_page_info): Add cast.
10924 (puts_debug, subset_compare): Constify.
10925 * utils.h (subset_compare): Constify.
10926 * varobj.c (varobj_format_string): Constify.
10927 * varobj.h (varobj_format_string): Constify.
10928 * vax-tdep.c (vax_register_name): Constify.
10929 * windows-nat.c (windows_detach): Constify.
10930 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10931 * xml-support.c (gdb_xml_end_element): Constify.
10932 * xml-tdesc.c (tdesc_start_reg): Constify.
10933 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10934 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10935 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10937 2017-04-05 Pedro Alves <palves@redhat.com>
10939 * proc-api.c (struct trans): Constify.
10940 (procfs_note): Constify.
10941 * proc-events.c (struct trans, syscall_table):
10942 * proc-flags.c (struct trans): Constify.
10943 * proc-utils.h (procfs_note): Constify.
10944 * proc-why.c (struct trans): Constify.
10945 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10946 (procfs_detach): Constify.
10947 * sol-thread.c (struct string_map): Constify.
10948 (td_err_string, td_state_string): Constify.
10950 2017-04-05 Pedro Alves <palves@redhat.com>
10952 * proc-api.c (procfs_filename): Don't initialize
10954 (prepare_to_trace): Assume procfs_filename is non-NULL.
10955 (_initialize_proc_api): Give procfs_filename a default value here.
10957 2017-04-05 Pedro Alves <palves@redhat.com>
10959 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10960 'cond_string' parameter.
10961 (extract_exception_regexp): Constify 'string' parameter.
10962 (catch_exception_command_1): Constify.
10963 * breakpoint.c (init_catchpoint)
10964 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10966 (ep_parse_optional_if_clause, catch_fork_command_1)
10967 (catch_exec_command_1): Constify.
10968 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10970 (ep_parse_optional_if_clause): Constify.
10971 * cli/cli-utils.c (remove_trailing_whitespace)
10972 (check_for_argument): Constify.
10973 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10974 non-const overload.
10975 (check_for_argument): Likewise.
10977 2017-04-05 Pedro Alves <palves@redhat.com>
10979 * event-top.c (command_line_handler): Add cast to execute_command
10981 * record-btrace.c (cmd_record_btrace_bts_start)
10982 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10983 (cmd_record_btrace_start): Add cast to execute_command call.
10984 * record-full.c (record_full_goto_insn):
10985 * record.c (record_start, record_stop): Add cast to
10986 execute_command_to_string calls.
10987 (cmd_record_start): Add cast to execute_command calls.
10989 2017-04-05 Pedro Alves <palves@redhat.com>
10991 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10992 static inline function.
10993 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10994 array and use gdb_PyArg_ParseTupleAndKeywords.
10995 * python/py-cmd.c (cmdpy_init): Likewise.
10996 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10997 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10998 (infpy_search_memory): Likewise.
10999 * python/py-objfile.c (objfpy_add_separate_debug_file)
11000 (gdbpy_lookup_objfile): Likewise.
11001 * python/py-symbol.c (gdbpy_lookup_symbol)
11002 (gdbpy_lookup_global_symbol): Likewise.
11003 * python/py-type.c (gdbpy_lookup_type): Likewise.
11004 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
11005 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
11008 2017-04-05 Pedro Alves <palves@redhat.com>
11010 * python/python-internal.h (gdb_PyGetSetDef): New type.
11011 * python/py-block.c (block_object_getset)
11012 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
11013 * python/py-event.c (event_object_getset)
11014 (finish_breakpoint_object_getset): Likewise.
11015 * python/py-inferior.c (inferior_object_getset): Likewise.
11016 * python/py-infthread.c (thread_object_getset): Likewise.
11017 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11018 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11019 * python/py-objfile.c (objfile_getset): Likewise.
11020 * python/py-progspace.c (pspace_getset): Likewise.
11021 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11023 * python/py-record.c (recpy_record_getset): Likewise.
11024 * python/py-symbol.c (symbol_object_getset): Likewise.
11025 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11027 * python/py-type.c (type_object_getset, field_object_getset):
11029 * python/py-value.c (value_object_getset): Likewise.
11031 2017-04-05 Pedro Alves <palves@redhat.com>
11033 * python/python-internal.h (gdb_PyObject_CallMethod)
11034 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11036 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11037 (PySys_GetObject, PySys_SetPath): New macros.
11039 2017-04-05 Pedro Alves <palves@redhat.com>
11041 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11042 info_osdata_command.
11043 * osdata.c (info_osdata_command): Rename to ...
11044 (info_osdata): ... this. Constify 'type' parameter, and remove
11045 the 'from_tty' parameter. Accept NULL TYPE.
11046 (info_osdata_command): New function.
11047 * osdata.h (info_osdata_command): Remove declaration.
11048 (info_osdata): New declaration.
11050 2017-04-05 Pedro Alves <palves@redhat.com>
11052 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11053 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11054 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11056 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11057 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11058 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11060 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11061 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11062 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11063 (mi_cmd_file_list_exec_source_files)
11064 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11065 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11066 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11068 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11069 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11070 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11071 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11072 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11073 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11074 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11075 'command' parameter.
11076 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11077 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11078 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11079 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11080 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11081 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11082 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11083 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11084 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11085 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11086 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11088 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11089 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11090 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11091 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11092 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11093 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11094 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11095 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11096 (mi_cmd_data_list_changed_registers)
11097 (mi_cmd_data_write_register_values)
11098 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11099 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11100 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11101 (mi_cmd_list_features, mi_cmd_list_target_features)
11102 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11103 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11104 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11105 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11106 (mi_cmd_trace_frame_collected): Constify 'command'
11108 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11109 'command' parameter.
11111 2017-04-05 Pedro Alves <palves@redhat.com>
11113 * ada-lang.c (ada_completer_word_break_characters): Now a const
11115 (ada_get_gdb_completer_word_break_characters): Constify.
11116 * completer.c (gdb_completer_command_word_break_characters)
11117 (gdb_completer_file_name_break_characters)
11118 (gdb_completer_quote_characters): Now const arrays.
11119 (get_gdb_completer_quote_characters): Constify.
11120 (set_rl_completer_word_break_characters): New function.
11121 (set_gdb_completion_word_break_characters)
11122 (complete_line_internal): Use it.
11123 * completer.h (get_gdb_completer_quote_characters): Constify.
11124 (set_rl_completer_word_break_characters): Declare.
11125 * f-lang.c (f_word_break_characters): Constify.
11126 * language.c (default_word_break_characters): Constify.
11127 * language.h (language_defn::la_word_break_characters): Constify.
11128 (default_word_break_characters): Constify.
11129 * top.c (init_main): Use set_rl_completer_word_break_characters.
11131 2017-04-05 Pedro Alves <palves@redhat.com>
11133 * aix-thread.c (aix_thread_pid_to_str)
11134 (aix_thread_extra_thread_info): Constify.
11135 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11136 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11137 (bsd_uthread_pid_to_str): Constify.
11138 * corelow.c (core_pid_to_str): Constify.
11139 * darwin-nat.c (darwin_pid_to_str): Constify.
11140 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11141 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11143 * gnu-nat.c (gnu_pid_to_str): Constify.
11144 * go32-nat.c (go32_pid_to_str): Constify.
11145 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11146 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11147 * inferior.c (inferior_pid_to_str): Constify.
11148 * linux-nat.c (linux_nat_pid_to_str): Constify.
11149 * linux-tdep.c (linux_core_pid_to_str): Constify.
11150 * linux-thread-db.c (thread_db_pid_to_str)
11151 (thread_db_extra_thread_info): Constify.
11152 * nto-tdep.c (nto_extra_thread_info): Constify.
11153 * nto-tdep.h (nto_extra_thread_info): Constify.
11154 * obsd-nat.c (obsd_pid_to_str): Constify.
11155 * procfs.c (procfs_pid_to_str): Constify.
11156 * ravenscar-thread.c (ravenscar_extra_thread_info)
11157 (ravenscar_pid_to_str): Constify.
11158 * remote-sim.c (gdbsim_pid_to_str): Constify.
11159 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11161 * sol-thread.c (solaris_pid_to_str): Constify.
11162 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11163 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11164 * target.c (default_pid_to_str, target_pid_to_str)
11165 (normal_pid_to_str, default_pid_to_str): Constify.
11166 * target.h (target_ops::to_pid_to_str)
11167 (target_ops::to_extra_thread_info): Constify.
11168 (target_pid_to_str, normal_pid_to_str): Constify.
11169 * windows-nat.c (windows_pid_to_str): Constify.
11170 * gdbarch.sh (core_pid_to_str): Constify.
11171 * target-delegates.c: Regenerate.
11172 * gdbarch.h, gdbarch.c: Regenerate.
11174 2017-04-05 Pedro Alves <palves@redhat.com>
11176 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11177 the memory of the temporary warning_pre_print override.
11178 * utils.c (warning_pre_print): Constify.
11179 * utils.h (warning_pre_print): Constify.
11181 2017-04-05 Pedro Alves <palves@redhat.com>
11183 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11184 (shell_command): New function.
11185 (make_command): Use std::string.
11186 (init_cli_cmds): Register shell_command instead of shell_escape.
11188 2017-04-05 Pedro Alves <palves@redhat.com>
11190 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11191 * tracepoint.c (default_collect): Don't initialize.
11193 2017-04-05 Pedro Alves <palves@redhat.com>
11195 * macroexp.c (macro_buffer::shared): Now a bool.
11196 (init_buffer): Update.
11197 (init_shared_buffer): Constify 'addr' parameter.
11198 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11201 2017-04-05 Pedro Alves <palves@redhat.com>
11203 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11204 * disasm.c (set_disassembler_options): Constify local.
11205 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11207 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11210 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11213 2017-04-05 Yao Qi <yao.qi@linaro.org>
11215 * frame.c (frame_unwind_register_unsigned): Call
11216 frame_unwind_register_value.
11218 2017-04-05 Yao Qi <yao.qi@linaro.org>
11220 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11221 Use gdb_test_multiple, and don't match anchor.
11223 2017-04-05 Pedro Alves <palves@redhat.com>
11225 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11226 (Write After Approval): Remove Simon Marchi.
11228 2017-04-05 Pedro Alves <palves@redhat.com>
11230 * common/gdb_optional.h (optional::optional): Make constexpr and
11231 initialize m_dummy.
11233 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11235 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11236 (amd64fbsd_jmp_buf_reg_offset): Remove.
11237 (amd64fbsd_supply_uthread): Remove function.
11238 (amd64fbsd_collect_uthread): Remove function.
11239 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11240 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11241 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11242 (fbsd-nat.c): Update comment.
11243 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11244 (i386fbsd_jmp_buf_reg_offset): Remove.
11245 (i386fbsd_supply_uthread): Remove function.
11246 (i386fbsd_collect_uthread): Remove function.
11247 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11249 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11251 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11252 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11253 * NEWS: Mention that support for FreeBSD/alpha was removed.
11254 * alpha-fbsd-tdep.c: Delete file.
11255 * config/alpha/fbsd.mh: Delete file.
11256 * configure.host: Delete alpha*-*-freebsd* and
11257 alpha*-*-kfreebsd*-gnu.
11258 * configure.tgt: Delete alpha*-*-freebsd* and
11259 alpha*-*-kfreebsd*-gnu.
11261 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11263 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11264 amd64bsd_store_inferior_registers): Use ptid from regcache.
11266 2017-04-04 Pedro Alves <palves@redhat.com>
11268 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11269 data fields, make them private and add "m_" prefixes.
11270 (lnp_state_machine::lnp_state_machine): New ctor.
11271 (record_line, check_line_address, handle_set_discriminator)
11272 (handle_set_address, handle_advance_pc, handle_special_opcode)
11273 (handle_advance_line, handle_set_file, handle_negate_stmt)
11274 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11275 (end_sequence, advance_line): New methods.
11276 (m_gdbarch, m_record_lines_p): New fields.
11277 (lnp_reader_state): Delete.
11278 (dwarf_record_line): Rename to ...
11279 (lnp_state_machine::record_line): ... adjust.
11280 (init_lnp_state_machine): Delete.
11281 (lnp_state_machine::lnp_state_machine): New.
11282 (check_line_address): Rename to ...
11283 (lnp_state_machine::check_line_address): This.
11284 (dwarf_decode_lines_1): Remove reference to "reader_state".
11285 Adjust lnp_state_machine having a non-default ctor. Use bool.
11286 State machine internal state manipulation moved to
11287 lnp_state_machine methods.
11289 2017-04-04 Pedro Alves <palves@redhat.com>
11291 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11292 unittests/offset-type-selftests.c.
11293 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11294 * common/offset-type.h: New file.
11295 * common/preprocessor.h: New file.
11296 * common/traits.h: New file.
11297 * common/valid-expr.h: New file.
11298 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11299 sect_offset and cu_offset strong typedefs throughout.
11300 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11301 typedefs throughout.
11302 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11303 sect_offset and cu_offset strong typedefs throughout.
11304 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11305 typedefs throughout.
11306 * gdbtypes.h: Include "common/offset-type.h".
11307 (cu_offset): Now an offset type (strong typedef) instead of a
11309 (sect_offset): Likewise.
11310 (union call_site_parameter_u): Rename "param_offset" field to
11312 * unittests/offset-type-selftests.c: New file.
11314 2017-04-04 Pedro Alves <palves@redhat.com>
11316 * common/underlying.h: New file.
11317 * dwarf2read.c: Include "common/gdb_optional.h" and
11318 "common/underlying.h".
11319 (dir_index, file_name_index): New types.
11320 (file_entry): Use them.
11321 (file_entry::include): Use to_underlying.
11322 (line_header::add_file_name): Use dir_index.
11323 (read_formatted_entries): Use gdb::optional. Read form before
11324 writting to file_entry.
11325 (dwarf_decode_line_header): Use dir_index.
11326 (lnp_state_machine::current_file): Use to_underlying.
11327 (lnp_state_machine::file): Change type to file_name_index.
11328 (dwarf_record_line): Use to_underlying.
11329 (init_lnp_state_machine): Use file_name_index.
11330 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11332 2017-04-04 Pedro Alves <palves@redhat.com>
11334 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11335 operator bool, has_value and get methods.
11337 2017-04-04 Pedro Alves <palves@redhat.com>
11339 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11341 (line_header): Initialize all data fields. Change type of
11342 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11343 Change type of include_dirs to std::vector<const char *>. Remove
11344 num_include_dirs, include_dirs_size. Change type of file_names to
11345 std::vector<file_entry>. Remove num_file_names, file_names_size.
11346 (line_header::line_header): New.
11347 (line_header::add_include_dir, line_header::add_file_name): New
11349 (line_header::include_dir_at): Remove NULL check.
11350 (line_header::file_name_at): Add const overload.
11351 (line_header_up): New unique_ptr typedef.
11352 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11353 std::vector. Remove free_line_header call.
11354 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11355 free_line_header call.
11356 (free_cu_line_header): Delete.
11357 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11358 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11359 Adjust to use std::vector.
11360 (free_line_header): Delete.
11361 (free_line_header_voidp): Use delete.
11362 (add_include_dir): Replace with ...
11363 (line_header::add_include_dir): ... this method. Use std::vector.
11364 (add_file_name): Replace with ...
11365 (line_header::add_file_name): ... this method. Use std::vector.
11366 (add_include_dir_stub): Delete.
11367 (read_formatted_entries): Remove memset.
11368 (dwarf_decode_line_header): Return a line_header_up instead of a
11369 raw pointer. Remove cleanup handling. Pass lambdas to
11370 read_formatted_entries. Adjust to use line_header methods.
11371 (dwarf_decode_lines_1): Adjust to use line_header methods.
11372 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11375 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11377 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11378 instead of struct ptid.
11380 2017-05-04 Alan Hayward <alan.hayward@arm.com>
11382 * frame.c (get_frame_register_bytes): Unwind using value.
11383 (put_frame_register_bytes): Likewise.
11385 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11387 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11390 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11392 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11394 2017-03-29 Yao Qi <yao.qi@linaro.org>
11396 * gdbthread.h (struct thread_info): Declare constructor and
11397 destructor. Add some in-class member initializers.
11398 * thread.c (free_thread): Remove.
11399 (init_thread_list): Call delete instead of free_thread.
11400 (new_thread): Call thread_info constructor.
11401 (thread_info::thread_info): New function.
11402 (thread_info::~thread_info): New function.
11403 (delete_thread_1): Call delete instead of free_thread.
11404 (make_cleanup_restore_current_thread): Move tp and frame to
11407 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11409 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11410 (arc_skip_prologue): Likewise.
11411 (arc_make_frame_cache): Likewise.
11412 (arc_pv_get_operand): New function.
11413 (arc_is_in_prologue): Likewise.
11414 (arc_analyze_prologue): Likewise.
11415 (arc_print_frame_cache): Likewise.
11416 (MAX_PROLOGUE_LENGTH): New constant.
11418 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11420 * configure.tgt: Add arc-insn.o.
11421 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11422 (dump_arc_instruction_command): New function.
11423 (arc_fprintf_disasm): Likewise.
11424 (arc_disassemble_info): Likewise.
11425 (arc_insn_get_operand_value): Likewise.
11426 (arc_insn_get_operand_value_signed): Likewise.
11427 (arc_insn_get_memory_base_reg): Likewise.
11428 (arc_insn_get_memory_offset): Likewise.
11429 (arc_insn_get_branch_target): Likewise.
11430 (arc_insn_dump): Likewise.
11431 (arc_insn_get_linear_next_pc): Likewise.
11432 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11433 (arc_disassemble_info): Likewise.
11434 (arc_insn_get_branch_target): Likewise.
11435 (arc_insn_get_linear_next_pc): Likewise.
11436 * NEWS: Mention new "maint print arc arc-instruction".
11438 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11440 * arc-tdep (maintenance_print_arc_list): New variable.
11441 (maintenance_print_arc_command): New function.
11443 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11445 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11446 Add "limm" and "reserved".
11447 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11448 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11449 * arc-tdep.h (arc_regnum): Likewise.
11451 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11453 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11454 for THREADPTR register.
11455 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11457 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11458 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11459 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11461 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11463 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11464 registers above gdbarch_num_regs (gdbarch) as privileged in
11467 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11469 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11470 for a single specified register or for all registers in
11471 a0_base..a0_base + C0_NREGS range.
11472 (supply_gregset_reg): Call regcache_raw_supply for a single
11473 specified register or for all registers in a0_base..a0_base +
11476 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11478 * arch/xtensa.h (C0_NREGS): Add definition.
11479 * xtensa-tdep.c (C0_NREGS): Remove definition.
11481 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11483 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11484 Drop xtensa_default_isa initialization.
11485 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11487 2017-03-27 Pedro Alves <palves@redhat.com>
11489 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11490 (file_entry::include_dir): New method.
11491 (line_header::include_dir_at, line_header::file_name_at): New
11493 (setup_type_unit_groups, setup_type_unit_groups)
11494 (psymtab_include_file_name): Simplify using the new methods.
11495 (lnp_state_machine) <the_line_header>: New field.
11496 <file>: Add comment.
11497 (lnp_state_machine::current_file): New method.
11498 (dwarf_record_line): Simplify using the new methods.
11499 (init_lnp_state_machine): Initialize the "the_line_header" field.
11500 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11501 Simplify using the new methods.
11503 2017-03-27 Pedro Alves <palves@redhat.com>
11505 * cp-name-parser.y (make_empty): Delete.
11506 (demangler_special, nested_name, ptr_operator, array_indicator)
11507 (direct_declarator, declarator_1): Use fill_comp instead of
11510 2017-03-27 Pedro Alves <palves@redhat.com>
11512 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11513 to ATTRIBUTE_PRINTF.
11514 * solib-target.c (library_list_start_list): Print "string" not
11516 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11517 gdb_xml_error call.
11519 2017-03-27 Pedro Alves <palves@redhat.com>
11521 * dwarf2read.c (struct file_and_directory): New.
11522 (dwarf2_get_dwz_file): Adjust to use std::string.
11523 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11524 (find_file_and_directory): Adjust to return a file_and_directory
11526 (read_file_scope): Adjust to use file_and_directory. Remove
11527 make_cleanup/do_cleanups calls.
11528 (open_and_init_dwp_file): Adjust to use std::string. Remove
11529 make_cleanup/do_cleanups calls.
11530 * python/python.c (do_start_initialization): Adjust to ldirname
11531 returning a std::string.
11532 * utils.c (ldirname): Now returns a std::string.
11533 * utils.h (ldirname): Change return type to std::string.
11534 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11535 returning a std::string.
11536 * xml-tdesc.c (file_read_description_xml): Likewise.
11538 2017-03-24 Alan Hayward <alan.hayward@arm.com>
11540 * regcache.c (regcache_debug_print_register): New function.
11541 * regcache.h (regcache_debug_print_register): New declaration.
11542 * target.c (debug_print_register): Remove.
11543 (target_fetch_registers): Call regcache_debug_print_register.
11544 (target_store_registers): Likewise.
11546 2017-03-24 Pádraig Brady <pbrady@fb.com>
11548 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11549 reference beyond the 'lh->include_dirs' array before accessing to
11551 (psymtab_include_file_name): Likewise.
11552 (dwarf_decode_lines_1): Likewise.
11553 (dwarf_decode_lines): Likewise.
11554 (file_file_name): Likewise.
11556 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11558 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11560 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11561 ps_lsetfpregs): Likewise.
11562 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11563 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11564 ps_lsetfpregs): Likewise.
11565 * target.c (target_fetch_registers, target_store_registers):
11568 2017-03-23 Alan Hayward <alan.hayward@arm.com>
11570 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11572 2017-03-23 Yao Qi <yao.qi@linaro.org>
11574 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11575 (_initialize_aarch64_tdep): Register it.
11576 (aarch64_record_load_store): Handle PRFM instruction.
11577 (aarch64_process_record_test): New function.
11579 2017-03-23 Yao Qi <yao.qi@linaro.org>
11581 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11584 2017-03-23 Yao Qi <yao.qi@linaro.org>
11586 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11588 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11590 python/python.c (do_start_initialization): Fix memory leak.
11592 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11594 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11595 using get_ptrace_pid.
11596 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11598 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11599 inferior_ptid instead of pid.
11601 2017-03-22 Yao Qi <yao.qi@linaro.org>
11603 * aarch64-tdep.c: Wrap locally used classes in anonymous
11605 * arm-tdep.c: Likewise.
11606 * linespec.c: Likewise.
11607 * ui-out.c: Likewise.
11609 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
11612 * python/lib/gdb/printer/bound_registers.py: Import sys.
11614 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11616 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11617 windows_thread_info parameter and use it instead of
11619 (windows_fetch_inferior_registers): Don't set current_thread,
11620 pass the thread to do_windows_fetch_inferior_registers. Use
11621 ptid from regcache instead of inferior_ptid.
11622 (do_windows_store_inferior_registers): Add windows_thread_info
11623 parameter and use it instead of current_thread.
11624 (windows_store_inferior_registers): Don't set current_thread,
11625 pass the thread to do_windows_store_inferior_registers. Use
11626 ptid from regcache instead of inferior_ptid.
11628 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11630 * ser-mingw.c (ser_windows_raw): Remove reference to
11631 struct serial::current_timeout.
11633 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11636 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11637 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11638 (sparc64_fsr_type): Fix %fsr decoding.
11640 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11642 * python/py-record-btrace.c (btpy_insn_data): Change return type
11645 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11647 * spu-linux-nat.c (spu_fetch_inferior_registers,
11648 spu_store_inferior_registers): Use ptid from regcache, set and
11649 restore inferior_ptid.
11650 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11653 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11655 * i386-linux-nat.c (fetch_register, store_register,
11656 i386_linux_fetch_inferior_registers,
11657 i386_linux_store_inferior_registers): Use ptid from regcache.
11658 * ia64-linux-nat.c (ia64_linux_fetch_register,
11659 ia64_linux_store_register): Likewise.
11660 * inf-ptrace.c (inf_ptrace_fetch_register,
11661 inf_ptrace_store_register): Likewise.
11662 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11663 m32r_linux_store_inferior_registers): Likewise.
11664 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11665 m68kbsd_store_inferior_registers): Likewise.
11666 * m68k-linux-nat.c (fetch_register, store_register,
11667 m68k_linux_fetch_inferior_registers,
11668 m68k_linux_store_inferior_registers): Likewise.
11669 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11670 m88kbsd_store_inferior_registers): Likewise.
11671 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11672 mips_fbsd_store_inferior_registers): Likewise.
11673 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11674 mips64_linux_regsets_store_registers): Likewise.
11675 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11676 mipsnbsd_store_inferior_registers): Likewise.
11677 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11678 mips64obsd_store_inferior_registers): Likewise.
11679 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11681 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11682 ppcfbsd_store_inferior_registers): Likewise.
11683 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11684 ppc_linux_store_inferior_registers): Likewise.
11685 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11686 ppcnbsd_store_inferior_registers): Likewise.
11687 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11688 ppcobsd_store_registers): Likewise.
11689 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11691 * ravenscar-thread.c (ravenscar_fetch_registers,
11692 ravenscar_store_registers, ravenscar_prepare_to_store):
11694 * record-btrace.c (record_btrace_fetch_registers,
11695 record_btrace_store_registers, record_btrace_prepare_to_store):
11697 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11698 Lookup inferior using ptid from regcache, instead of
11700 * remote.c (remote_fetch_registers, remote_store_registers): Use
11701 ptid from regcache.
11702 * rs6000-nat.c (fetch_register, store_register): Likewise.
11703 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11704 s390_linux_store_inferior_registers): Likewise.
11705 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11706 shnbsd_store_inferior_registers): Likewise.
11707 * sol-thread.c (sol_thread_fetch_registers,
11708 sol_thread_store_registers): Likewise.
11709 * sparc-nat.c (sparc_fetch_inferior_registers,
11710 sparc_store_inferior_registers): Likewise.
11711 * tilegx-linux-nat.c (fetch_inferior_registers,
11712 store_inferior_registers): Likewise.
11713 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11714 vaxbsd_store_inferior_registers): Likewise.
11715 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11716 store_xtregs): Likewise.
11718 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11721 * NEWS: Mention support for rvalue references in GDB and python.
11722 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11723 supports both lvalue and rvalue references.
11725 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11728 * gdbtypes.c (rank_one_type): Implement overloading
11729 resolution rules regarding rvalue references.
11731 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11734 * aarch64-tdep.c (aarch64_type_align)
11735 (aarch64_extract_return_value, aarch64_store_return_value): Change
11736 lvalue reference type checks to general reference type checks.
11737 * amd64-tdep.c (amd64_classify): Likewise.
11738 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11740 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11741 (arm_store_return_value): Likewise.
11742 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11743 * c-typeprint.c (c_print_type): Likewise.
11744 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11745 (cplus_number_of_children, cplus_describe_child): Likewise.
11746 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11747 * completer.c (expression_completer): Likewise.
11748 * cp-support.c (make_symbol_overload_list_adl_namespace):
11750 * darwin-nat-info.c (info_mach_region_command): Likewise.
11751 * dwarf2loc.c (entry_data_value_coerce_ref)
11752 (value_of_dwarf_reg_entry): Likewise.
11753 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11754 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11756 * findvar.c (extract_typed_address, store_typed_address):
11758 * gdbtypes.c (rank_one_type): Likewise.
11759 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11760 * infcall.c (value_arg_coerce): Likewise.
11761 * language.c (pointer_type): Likewise.
11762 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11764 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11765 * mn10300-tdep.c (mn10300_type_align): Likewise.
11766 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11767 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11768 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11770 * printcmd.c (print_formatted, x_command): Likewise.
11771 * python/py-type.c (typy_get_composite, typy_template_argument):
11773 * python/py-value.c (valpy_referenced_value)
11774 (valpy_get_dynamic_type, value_has_field): Likewise.
11775 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11776 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11777 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11778 * spu-tdep.c (spu_scalar_value_p): Likewise.
11779 * symtab.c (lookup_symbol_aux): Likewise.
11780 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11781 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11783 * valops.c (value_cast_pointers, value_cast)
11784 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11785 (value_struct_elt, value_struct_elt_bitpos)
11786 (value_find_oload_method_list, find_overload_match)
11787 (value_rtti_indirect_type): Likewise.
11788 * valprint.c (val_print_scalar_type_p, generic_val_print):
11790 * value.c (value_actual_type, value_as_address, unpack_long)
11791 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11792 (coerce_ref): Likewise.
11793 * varobj.c (varobj_get_value_type): Likewise.
11795 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11798 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11799 table of constants.
11800 * python/lib/gdb/command/explore.py: Support exploring values
11801 of rvalue reference types.
11802 * python/lib/gdb/types.py: Implement get_basic_type() for
11803 rvalue reference types.
11804 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11806 * python/py-value.c (valpy_getitem): Add an rvalue reference
11808 (valpy_reference_value): Add new parameter "refcode".
11809 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11810 New wrappers for valpy_reference_value().
11811 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11812 (gdbpy_invoke_xmethod): Likewise.
11814 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11817 * dwarf2read.c (process_die, read_type_die_1): Handle the
11818 DW_TAG_rvalue_reference_type DIE.
11819 (read_tag_reference_type): Add new parameter "refcode".
11821 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11824 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11825 (c_type_print_modifier, c_type_print_varspec_suffix)
11826 (c_type_print_base): Support printing rvalue reference types.
11827 * c-valprint.c (c_val_print, c_value_print): Support printing
11828 rvalue reference values.
11830 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11833 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11835 * cp-support.c (replace_typedefs): Handle
11836 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11837 * python/py-type.c (typy_lookup_type): Likewise.
11839 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11842 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11843 * parse.c (insert_type): Change assert statement.
11844 (follow_types): Handle rvalue reference types.
11845 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11848 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11851 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11852 value_ref() interface.
11853 * c-valprint.c (c_value_print): Likewise.
11854 * infcall.c (value_arg_coerce): Likewise.
11855 * python/py-value.c (valpy_reference_value): Likewise.
11856 * valops.c (value_cast, value_reinterpret_cast)
11857 (value_dynamic_cast, typecmp): Likewise.
11858 (value_ref): Parameterize by kind of return value reference type.
11859 * value.h (value_ref): Add new parameter "refcode".
11861 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11864 * dwarf2read.c (read_tag_reference_type): Use
11865 lookup_lvalue_reference_type() instead of lookup_reference_type().
11866 * eval.c (evaluate_subexp_standard): Likewise.
11867 * f-exp.y: Likewise.
11868 * gdbtypes.c (make_reference_type, lookup_reference_type):
11869 Generalize with rvalue reference types.
11870 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11871 convenience wrappers for lookup_reference_type().
11872 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11873 reference kind parameter.
11874 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11875 wrappers for lookup_reference_type().
11876 * guile/scm-type.c (gdbscm_type_reference): Use
11877 lookup_lvalue_reference_type() instead of lookup_reference_type().
11878 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11879 * parse.c (follow_types): Likewise.
11880 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11881 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11883 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11884 (gdbpy_invoke_xmethod): Likewise.
11885 * stabsread.c: Provide extra argument to make_reference_type()
11887 * valops.c (value_ref, value_rtti_indirect_type): Use
11888 lookup_lvalue_reference_type() instead of lookup_reference_type().
11890 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11893 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11894 (TYPE_IS_REFERENCE): New macro.
11895 (struct type): Add rvalue_reference_type field.
11896 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11898 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11900 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11901 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11902 New function definition.
11903 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11904 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11905 New function declaration.
11906 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11907 * mi/mi-interp.h: New file.
11908 * solib.c (info_sharedlibrary_command): Replace for loop with
11910 * solib.h (update_solib_list): New function declaration.
11911 (so_list_head): Move macro.
11912 * solist.h (ALL_SO_LIBS): New macro.
11914 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11916 * infcmd.c (post_create_inferior): Remove unused argument in
11918 * remote.c (remote_start_remote): Likewise.
11919 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11920 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11921 (enable_break): Likewise.
11922 * solib.c (update_solib_list): Remove unused target argument
11923 and its documentation.
11924 (solib_add): Remove unused target argument. Remove unused
11925 argument in call to update_solib_list.
11926 (info_sharedlibrary_command): Remove unused argument in call
11927 to update_solib_list.
11928 (sharedlibrary_command): Remove unused argument in call to
11930 (handle_solib_event): Likewise.
11931 (reload_shared_libraries): Likewise.
11932 * solib.h (solib_add): Remove unused target argument.
11934 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11936 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11937 (s390_displaced_step_fixup): Cover relative branches with the
11938 default fixup handling. This fixes lack of support for some
11939 relative branch instructions.
11941 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11943 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11944 ptid from regcache.
11946 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11948 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11949 i386_darwin_store_inferior_registers): Use ptid from regcache.
11951 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11953 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11954 i386bsd_store_inferior_registers): Use ptid from regcache.
11956 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11958 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11959 hppaobsd_store_registers): Use ptid from regcache.
11961 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11963 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11964 hppanbsd_store_registers): Use ptid from regcache.
11966 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11968 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11969 from regcache. Use get_ptrace_pid.
11971 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11973 * corelow.c (get_core_register_section): Use ptid from regcache,
11976 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11978 * bsd-uthread.c (bsd_uthread_fetch_registers,
11979 bsd_uthread_store_registers): Use ptid from regcache, set and
11980 restore inferior_ptid.
11982 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11984 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11985 fetch_fp_regs, store_register, store_regs, store_fp_register,
11986 store_fp_regs): Use ptid from regcache.
11988 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11990 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11991 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11992 store_vfp_regs): Use ptid from regcache.
11994 2017-03-17 Pedro Alves <palves@redhat.com>
11997 * ser-base.c (ser_base_wait_for): Add comment.
11998 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
12000 * ser-unix.c (hardwire_raw): Remove reference to
12001 scb->current_timeout.
12002 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
12003 (hardwire_ops): Install ser_base_readchar instead of
12005 * serial.h (struct serial) <current_timeout, timeout_remaining>:
12008 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
12011 * python/lib/gdb/printer/bound_registers.py: Add support for
12014 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
12016 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12017 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12018 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12019 byte_offset to subobj_byte_offset. Fix the handling of
12020 DWARF_VALUE_STACK on big-endian targets when coming via an
12022 (dwarf2_evaluate_loc_desc): Adjust call to
12023 dwarf2_evaluate_loc_desc_full.
12024 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12025 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12027 2017-03-16 Yao Qi <yao.qi@linaro.org>
12029 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12030 and REVSH instructions.
12032 2017-03-16 Yao Qi <yao.qi@linaro.org>
12034 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12035 (arm_record_test): Declare.
12036 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12037 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12038 align with the manual.
12039 (thumb_record_misc): Adjust the code order to align with the
12041 (thumb2_record_decode_insn_handler): Fix instruction matching.
12042 (instruction_reader_thumb): New class.
12043 (arm_record_test): New function.
12045 2017-03-16 Yao Qi <yao.qi@linaro.org>
12047 * arm-tdep.c (abstract_memory_reader): New class.
12048 (instruction_reader): New class.
12049 (extract_arm_insn): Add argument 'reader'. Callers updated.
12050 (decode_insn): Likewise.
12052 2017-03-16 Doug Evans <dje@google.com>
12054 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12055 member. Change type of TYPE member to SCM. All uses updated.
12056 (lsscm_make_lazy_string_smob): Add assert.
12057 (lsscm_make_lazy_string): Flag bad length values.
12058 (lsscm_elt_type): New function.
12059 (gdbscm_lazy_string_to_value): Rewrite to use
12060 lsscm_safe_lazy_string_to_value.
12061 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12062 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12063 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12065 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12066 * guile/scm-type.c (tyscm_scm_to_type): New function.
12068 2017-03-15 Doug Evans <dje@google.com>
12070 PR python/17728, python/18439, python/18779
12071 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12072 member. Change type of TYPE member to PyObject *. All uses updated.
12073 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12074 (gdbpy_create_lazy_string_object): Flag bad length values.
12075 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12076 Handle typedefs in incoming type.
12077 (stpy_lazy_string_elt_type): New function.
12078 (gdbpy_extract_lazy_string): Call it.
12079 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12080 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12081 typedefs in incoming type.
12083 2017-03-16 Doug Evans <dje@google.com>
12085 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12086 * guile/scm-type.c (tyscm_scm_to_type): New function.
12088 2017-03-16 Jiong Wang <jiong.wang@arm.com>
12090 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12091 "ULONGEST" for "skip".
12093 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12096 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12097 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12098 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12099 over ptrace peek/poke until end of buffer or error.
12101 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12103 * parse.c (length_of_subexp): Make static.
12104 * parser-defs.h (length_of_subexp): Remove.
12106 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12108 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12111 2017-03-14 Pedro Alves <palves@redhat.com>
12113 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12114 (main): Use std::unique_ptr. Remove calls to
12115 cp_demangled_name_parse_free.
12117 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12119 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12120 alphabsd_store_inferior_registers): Use regcache->ptid instead
12123 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12125 * aix-thread.c (aix_thread_fetch_registers,
12126 aix_thread_store_registers): Use regcache->ptid instead of
12129 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12131 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12132 store_gregs_to_thread, fetch_fpregs_from_thread,
12133 store_fpregs_to_thread): Use regcache->ptid instead of
12136 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12138 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12139 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12140 instead of inferior_ptid.
12142 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12144 * target.c (target_fetch_registers, target_store_registers): Add
12147 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12149 * regcache.h (regcache_get_ptid): New function.
12150 * regcache.c (regcache_get_ptid): New function.
12152 2017-03-13 Mark Wielaard <mark@klomp.org>
12154 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12156 2017-03-10 Keith Seitz <keiths@redhat.com>
12159 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12161 2017-03-08 Pedro Alves <palves@redhat.com>
12164 * infrun.c (start_step_over, do_target_resume, resume)
12165 (restart_threads): Assert we're not resuming a thread that is
12166 meant to be stopped.
12167 (infrun_thread_stop_requested_callback): Delete.
12168 (infrun_thread_stop_requested): If the thread is internally
12169 stopped, queue a pending stop event and clear the thread's
12170 inline-frame state.
12171 (handle_stop_requested): New function.
12172 (handle_syscall_event, handle_inferior_event_1): Use
12173 handle_stop_requested.
12174 (handle_stop_requested): New function.
12175 (handle_signal_stop): Set the thread's stop_signal here instead of
12177 (finish_step_over): Clear step over info unconditionally.
12178 (handle_signal_stop): If the user had interrupted the event
12179 thread, consider the stop a random signal.
12180 (handle_signal_stop) <signal arrived while stepping over
12181 breakpoint>: Don't restart threads here.
12182 (stop_waiting): Don't clear step-over info here.
12184 2017-03-08 Pedro Alves <palves@redhat.com>
12187 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12188 goes to argument 2, not 1.
12190 2017-03-08 Pedro Alves <palves@redhat.com>
12193 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12194 display_gdb_prompt.
12195 (command_line_input): Add comment.
12197 2017-03-08 Pedro Alves <palves@redhat.com>
12200 * tui/tui-file.c (tui_file::write): New.
12201 * tui/tui-file.h (tui_file): Override "write".
12202 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12203 factored out from ...
12204 (tui_puts): ... here.
12205 (tui_putc): Use them.
12206 (tui_write): New function.
12207 * tui/tui-io.h (tui_write): Declare.
12209 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12211 * Makefile.in (SFILES): Replace "environ.c" with
12212 "common/environ.c".
12213 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12214 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12216 * common/environ.c: ... here.
12217 * environ.h: Moved to...
12218 * common/environ.h: ... here.
12220 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12222 * gdbarch.sh (pstring_ptr): New static function.
12223 (gdbarch_disassembler_options): Use it.
12224 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12225 not valid_disassembler_option->name.
12226 * gdbarch.c: Regenerate.
12228 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12230 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12232 2017-03-07 Pedro Alves <palves@redhat.com>
12234 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12236 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
12238 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12239 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12240 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
12241 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
12243 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12245 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12247 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12249 * remote.c (remote_add_target_side_commands): Use range-based
12252 2017-03-03 Yao Qi <yao.qi@linaro.org>
12255 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12257 * valprint.c (common_val_print): Likewise.
12259 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12261 * NEWS: Mention new set/show disassembler-options commands.
12262 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12263 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12264 (prospective_options): New static variable.
12265 (gdb_disassembler::gdb_disassembler): Initialize
12266 m_di.disassembler_options.
12267 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12268 (get_disassembler_options): New function.
12269 (set_disassembler_options): Likewise.
12270 (set_disassembler_options_sfunc): Likewise.
12271 (show_disassembler_options_sfunc): Likewise.
12272 (disassembler_options_completer): Likewise.
12273 (_initialize_disasm): Likewise.
12274 * disasm.h (get_disassembler_options): New prototype.
12275 (set_disassembler_options): Likewise.
12276 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12277 (gdbarch_verify_disassembler_options): Likewise.
12278 * gdbarch.c: Regenerate.
12279 * gdbarch.h: Likewise.
12280 * arm-tdep.c (num_disassembly_options): Delete.
12281 (set_disassembly_style): Likewise.
12282 (arm_disassembler_options): New static variable.
12283 (set_disassembly_style_sfunc): Convert short style name into long
12284 option name. Call set_disassembler_options.
12285 (show_disassembly_style_sfunc): New function.
12286 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12287 set_gdbarch_verify_disassembler_options.
12288 (_initialize_arm_tdep): Delete regnames variable and update callers.
12289 (arm_disassembler_options): Initialize.
12290 (disasm_options): New variable.
12291 (num_disassembly_options): Rename from this...
12292 (num_disassembly_styles): ...to this. Compute by scanning through
12294 (valid_disassembly_styles): Initialize using disasm_options.
12295 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12296 set_arm_regname_option.
12297 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12298 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12299 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12300 set_gdbarch_verify_disassembler_options.
12301 * s390-tdep.c (s390_disassembler_options): New static variable.
12302 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12303 set_gdbarch_verify_disassembler_options.
12305 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12307 * remote.c (remote_add_target_side_condition): Remove "struct"
12308 keyword from range-based for loop.
12310 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12312 * remote.c (remote_add_target_side_condition): Use range-based
12313 for loop. Update comment.
12315 2017-02-27 Yao Qi <yao.qi@linaro.org>
12317 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12319 2017-02-26 Alan Hayward <alan.hayward@arm.com>
12321 * regcache.c (regcache_raw_update): New function.
12322 (regcache_raw_read): Move code to regcache_raw_update.
12323 * regcache.h (regcache_raw_update): New declaration.
12324 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12326 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12328 * dwarf2read.c (create_debug_type_hash_table): Initialize
12329 header.signature and header.type_offset_in_tu.
12331 2017-02-24 Pedro Alves <palves@redhat.com>
12333 * symtab.c (make_file_symbol_completion_list_1): Use
12334 add_symtab_completions.
12336 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12338 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12340 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12342 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12343 I386_MAX_REGISTER_SIZE.
12344 (i386_pseudo_register_write): Likewise.
12345 (i386_process_record): Likewise.
12346 * i387-tdep.c (i387_supply_xsave): Likewise.
12347 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12348 (store_register): Likewise.
12350 2017-02-23 Pedro Alves <palves@redhat.com>
12352 * ada-lang.c: Include "common/function-view.h".
12353 (ada_iterate_over_symbols): Adjust to use function_view as
12355 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12356 (ada_make_symbol_completion_list): Use a lambda.
12357 (ada_exc_search_name_matches): Delete.
12358 (name_matches_regex): New.
12359 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12360 * compile/compile-c-support.c: Include "common/function-view.h".
12361 (print_one_macro): Change prototype to accept a ui_file pointer.
12362 (write_macro_definitions): Use a lambda.
12363 * dwarf2read.c: Include "common/function-view.h".
12364 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12365 (dw2_expand_symtabs_matching): Adjust to use function_view as
12367 * language.h: Include "common/function-view.h".
12368 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12369 function_view as callback type.
12370 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12371 * linespec.c: Include "common/function-view.h".
12372 (collect_info::add_symbol): New method.
12373 (struct symbol_and_data_callback, iterate_inline_only, struct
12374 symbol_matcher_data, iterate_name_matcher): Delete.
12375 (iterate_over_all_matching_symtabs): Adjust to use function_view
12376 as callback type and lambdas.
12377 (iterate_over_file_blocks): Adjust to use function_view as
12379 (decode_compound_collector): Now a class with private fields.
12380 (decode_compound_collector::release_symbols): New method.
12381 (collect_one_symbol): Rename to...
12382 (decode_compound_collector::operator()): ... this and adjust.
12383 (lookup_prefix_sym): decode_compound_collector construction bits
12384 move to decode_compound_collector ctor. Pass the
12385 decode_compound_collector object directly as callback. Remove
12386 cleanups and use decode_compound_collector::release_symbols
12388 (symtab_collector): Now a class with private fields.
12389 (symtab_collector::release_symtabs): New method.
12390 (add_symtabs_to_list): Rename to...
12391 (symtab_collector::operator()): ... this and adjust.
12392 (collect_symtabs_from_filename): symtab_collector construction
12393 bits move to symtab_collector ctor. Pass the symtab_collector
12394 object directly as callback. Remove cleanups and use
12395 symtab_collector::release_symtabs instead.
12396 (collect_symbols): Delete.
12397 (add_matching_symbols_to_info): Use lambdas.
12398 * macrocmd.c (print_macro_callback): Delete.
12399 (info_macro_command): Use a lambda.
12400 (info_macros_command): Pass print_macro_definition as callable
12402 (print_one_macro): Remove 'ignore' parameter.
12403 (macro_list_command): Adjust.
12404 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12405 (macro_for_each_data::user_data): Delete field.
12406 (foreach_macro): Adjust to call the function_view.
12407 (macro_for_each): Adjust to use function_view as callback type.
12408 (foreach_macro_in_scope): Adjust to call the function_view.
12409 (macro_for_each_in_scope): Adjust to use function_view as callback
12411 * macrotab.h: Include "common/function-view.h".
12412 (macro_callback_fn): Declare a prototype instead of a pointer.
12413 Remove "user_data" parameter.
12414 (macro_for_each, macro_for_each_in_scope): Adjust to use
12415 function_view as callback type.
12416 * psymtab.c (partial_map_expand_apply)
12417 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12418 Adjust to use function_view as callback type and to return bool.
12419 (psym_expand_symtabs_matching): Adjust to use function_view as
12421 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12422 to use function_view as callback type and to return bool.
12423 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12425 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12427 * symfile.h: Include "common/function-view.h".
12428 (expand_symtabs_file_matcher_ftype)
12429 (expand_symtabs_symbol_matcher_ftype)
12430 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12432 (quick_symbol_functions::map_symtabs_matching_filename)
12433 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12434 function_view as callback type and return bool.
12435 (expand_symtabs_matching): Adjust to use function_view as callback
12437 (maintenance_expand_name_matcher)
12438 (maintenance_expand_file_matcher): Delete.
12439 (maintenance_expand_symtabs): Use lambdas.
12440 * symtab.c (iterate_over_some_symtabs): Adjust to use
12441 function_view as callback types and return bool.
12442 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12444 (lookup_symtab_callback): Delete.
12445 (lookup_symtab): Use a lambda.
12446 (iterate_over_symbols): Adjust to use function_view as callback
12448 (struct search_symbols_data, search_symbols_file_matches)
12449 (search_symbols_name_matches): Delete.
12450 (search_symbols): Use a pair of lambdas.
12451 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12452 (symtab_expansion_callback): Delete.
12453 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12454 * symtab.h: Include "common/function-view.h".
12455 (iterate_over_some_symtabs): Adjust to use function_view as
12456 callback type and return bool.
12457 (iterate_over_symtabs): Adjust to use function_view as callback
12459 (symbol_found_callback_ftype): Remove 'data' parameter and return
12461 (iterate_over_symbols): Adjust to use function_view as callback
12464 2017-02-23 Pedro Alves <palves@redhat.com>
12466 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12467 (%.o) <unittests/%.c>: New pattern.
12468 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12469 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12470 * common/function-view.h: New file.
12471 * unittests/function-view-selftests.c: New file.
12472 * configure: Regenerate.
12474 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12476 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12478 * go32-nat.c (go32_thread_alive): Likewise.
12480 2017-02-23 Yao Qi <yao.qi@linaro.org>
12482 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12485 2017-02-23 Yao Qi <yao.qi@linaro.org>
12487 * varobj.c (varobj_clear_saved_item): Use delete instead of
12489 (update_dynamic_varobj_children): Likewise.
12491 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12493 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12495 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12497 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12498 m_enum_value to 0 in default constructor.
12500 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12502 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12503 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12504 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12505 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12506 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12507 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12508 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12509 IS_STORE_CONDITIONAL_INSN.
12511 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12513 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12515 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12517 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12519 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12521 * dwarf2read.c (skip_one_die, read_attribute_value)
12522 (dwarf2_const_value_attr, dump_die_shallow)
12523 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12524 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12526 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12528 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12529 (dwarf_parse_macro_header): Accept DWARF version 5.
12530 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12532 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12534 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12536 * common/common-exceptions.h (enum errors): Likewise.
12537 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12538 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12539 (dwarf_expr_context::execute_stack_op): Likewise.
12540 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12542 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12543 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12544 (show_entry_values_debug, call_site_to_target_addr)
12545 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12546 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12547 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12548 (value_of_dwarf_block_entry, indirect_pieced_value)
12549 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12550 (disassemble_dwarf_expression): Likewise.
12551 * dwarf2read.c (process_die, inherit_abstract_dies)
12552 (read_call_site_scope): Likewise.
12553 * gdbtypes.h (struct func_type, struct call_site_parameter)
12554 (struct call_site): Likewise.
12555 * stack.c (read_frame_arg): Likewise.
12556 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12558 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12560 * defs.h (read_unsigned_leb128): New declaration.
12561 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12562 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12563 (dwarf2_find_location_expression): Call also
12564 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12565 * dwarf2loc.h (dwarf2_version): New declaration.
12566 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12568 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12570 (struct dwop_section_names): Add loclists_dwo.
12571 (dwop_section_names): Add .debug_loclists.dwo.
12572 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12573 (struct dwarf2_per_cu_data): Add dwarf_version.
12574 (struct dwo_sections): Add loclists.
12575 (struct attr_abbrev): Add implicit_const.
12576 (read_indirect_line_string): New declaration.
12577 (read_unsigned_leb128): Delete declaration.
12578 (rcuh_kind): New definition.
12579 (read_and_check_comp_unit_head): Change parameter
12580 is_debug_types_section to section_kind.
12581 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12582 (read_comp_unit_head): Change parameter abfd to section, add parameter
12583 section_kind. Handle DWARF-5.
12584 (error_check_comp_unit_head): Accept also DWARF version 5.
12585 (read_and_check_comp_unit_head): Change parameter
12586 is_debug_types_section to section_kind.
12587 (read_and_check_type_unit_head): Delete function.
12588 (read_abbrev_offset): Handle DWARF-5.
12589 (create_debug_type_hash_table): Add parameter section_kind. Process
12590 only DW_UT_type. Use signature and type_offset_in_tu from struct
12592 (create_debug_types_hash_table): Update create_debug_type_hash_table
12594 (create_all_type_units): Call create_debug_type_hash_table.
12595 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12596 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12598 (skip_one_die): Handle DW_FORM_implicit_const.
12599 (dwarf2_rnglists_process): New function.
12600 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12601 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12602 (read_attribute_value): Handle DW_FORM_implicit_const,
12604 (read_attribute): Handle DW_FORM_implicit_const.
12605 (read_indirect_string_at_offset_from): New function from
12606 read_indirect_string_at_offset.
12607 (read_indirect_string_at_offset): Call
12608 read_indirect_string_at_offset_from.
12609 (read_indirect_line_string_at_offset): New function.
12610 (read_indirect_string): New function comment.
12611 (read_indirect_line_string): New function.
12612 (read_unsigned_leb128): Make it global.
12613 (dwarf2_string_attr): Handle DWARF-5.
12614 (add_include_dir_stub, read_formatted_entries): New functions.
12615 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12617 (per_cu_header_read_in): Update read_comp_unit_head caller.
12618 (dwarf2_version): New function.
12619 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12621 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12624 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12626 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12628 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12630 * dwarf2read.c (dwarf2_ranges_process): New function from
12631 dwarf2_ranges_read.
12632 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12633 dwarf2_ranges_process.
12635 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12637 * dwarf2read.c (create_debug_type_hash_table): New function from
12638 create_debug_types_hash_table.
12639 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12640 (create_all_type_units, open_and_init_dwo_file): Update
12641 create_debug_types_hash_table callers.
12643 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12646 * fork-child.c (trace_start_error): Fix thinko. va_end should
12647 refer to 'ap', not 'args'.
12649 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12650 Pedro Alves <palves@redhat.com>
12653 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12655 * fork-child.c (trace_start_error): New function.
12656 (trace_start_error_with_name): Likewise.
12657 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12658 * inf-ptrace.c (inf_ptrace_me): Likewise.
12659 * inferior.h (trace_start_error): New prototype.
12660 (trace_start_error_with_name): Likewise.
12662 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12665 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12666 NULL before using it.
12667 * symmisc.c (maintenance_print_symbols): Likewise.
12668 (maintenance_print_msymbols): Likewise.
12670 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12672 * NEWS: Add record Python bindings entry.
12674 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12676 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12678 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12679 * python/py-record-btrace.c, python/py-record-btrace.h,
12680 python/py-record-full.c, python/py-record-full.h: New file.
12681 * python/py-record.c: Add include for py-record-btrace.h and
12683 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12684 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12685 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12686 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12688 (gdbpy_initialize_btrace): New export.
12689 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12691 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12693 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12694 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12695 * python/py-record.c: New file.
12696 * python/python-internal.h (gdbpy_start_recording,
12697 gdbpy_current_recording, gdpy_stop_recording,
12698 gdbpy_initialize_record): New export.
12699 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12700 (python_GdbMethods): Add gdbpy_start_recording,
12701 gdbpy_current_recording and gdbpy_stop_recording.
12703 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12705 * record-btrace.c (record_btrace_record_method): New function.
12706 (init_record_btrace_ops): Initialize to_record_method.
12707 * record-full.c (record_full_record_method): New function.
12708 (init_record_full_ops, init_record_full_core_ops): Add
12709 record_full_record_method.
12710 * record.h (enum record_method): New enum.
12711 * target-debug.h (target_debug_print_enum_record_method: New define.
12712 * target-delegates.c: Regenerate.
12713 * target.c (target_record_method): New function.
12714 * target.h: Include record.h.
12715 (struct target_ops) <to_record_method>: New field.
12716 (target_record_method): New export.
12718 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12720 * record.h (record_start, record_stop): New export.
12721 * record.c (record_start, record_stop): New function.
12723 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12725 * btrace.c (btrace_fetch): Copy function call segments pointer
12727 (btrace_clear): Clear the vector.
12728 (btrace_find_insn_by_number): Use binary search to find the correct
12729 function call segment.
12730 * btrace.h (brace_fun_p): New typedef.
12731 (struct btrace_thread_info) <functions>: New field.
12733 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12735 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12736 * btrace.c (btrace_decode_error): ... here. New function.
12737 * btrace.h (btrace_decode_error): New export.
12739 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12741 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12742 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12743 btrace_find_insn_by_number): Remove special case for gaps.
12744 * btrace.h (btrace_insn_get_error): New export.
12745 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12746 * record-btrace.c (btrace_insn_history): Print number for gaps.
12747 (record_btrace_info, record_btrace_goto): Handle gaps.
12749 2017-02-14 Tom Tromey <tom@tromey.com>
12752 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12754 * python/py-evts.c (gdbpy_initialize_py_events): Add
12755 before_prompt registry.
12756 * python/py-events.h (events_object) <before_prompt>: New field.
12758 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12760 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12762 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
12764 * symfile (_initialize_symfile): Add usage text to the load command's
12767 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12769 * utils.c (defaulted_query): Don't query on secondary UIs.
12771 2017-02-10 Tom Tromey <tom@tromey.com>
12773 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12775 2017-02-10 Tom Tromey <tom@tromey.com>
12777 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12779 * python/py-type.c (typy_legacy_template_argument): Remove
12780 unnecessary "cleanup" local.
12782 2017-02-10 Tom Tromey <tom@tromey.com>
12784 * python/python.c (do_start_initialization): New function, from
12785 _initialize_python.
12786 (_initialize_python): Call do_start_initialization.
12787 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12790 2017-02-10 Tom Tromey <tom@tromey.com>
12792 * python/py-prettyprint.c (pretty_print_one_value): Use
12795 2017-02-10 Tom Tromey <tom@tromey.com>
12797 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12798 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12800 * python/py-type.c (field_new): Use gdbpy_ref.
12801 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12803 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12804 (py_free_pspace): Likewise.
12805 (pspace_to_pspace_object): Likewise.
12806 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12807 (py_free_objfile): Likewise.
12808 (objfile_to_objfile_object): Likewise.
12809 * python/py-inferior.c (delete_thread_object): Use
12811 (infpy_read_memory): Likewise.
12812 (py_free_inferior): Likewise.
12813 * python/py-evtregistry.c (create_eventregistry_object): Use
12815 * python/py-event.c (create_event_object): Use gdbpy_ref.
12817 2017-02-10 Tom Tromey <tom@tromey.com>
12819 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12820 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12822 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12823 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12824 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12825 python/py-framefilter.c, python/py-function.c,
12826 python/py-inferior.c, python/py-infevents.c,
12827 python/py-linetable.c, python/py-newobjfileevent.c,
12828 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12829 python/py-signalevent.c, python/py-stopevent.c,
12830 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12831 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12832 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12833 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12835 2017-02-10 Tom Tromey <tom@tromey.com>
12837 * ui-out.h (ui_out_emit_type): New class.
12838 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12839 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12840 and ui_out_emit_tuple.
12841 (enumerate_locals): Likewise.
12842 (py_mi_print_variables, py_print_locals, py_print_args): Use
12844 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12846 * common/gdb_optional.h: New file.
12848 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12850 * MAINTAINERS (Write After Approval): Update my e-mail address.
12852 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12855 * breakpoint.c (_initialize_breakpoint): Update the help description
12856 of the 'commands' command to indicate that it takes a list argument.
12858 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12860 * interps.c (current_interp_set_logging): Remove "return".
12862 2017-02-09 Gary Benson <gbenson@redhat.com>
12864 * symtab.c (add_symtab_completions): Prevent NULL pointer
12867 2017-02-08 Pedro Alves <palves@redhat.com>
12869 * interps.c (interp::interp): Remove reference to quiet_p.
12870 (interp_set): Make static. Remove dead "Switching to" output
12872 (interp_quiet_p, interp_set_quiet): Delete.
12873 (interpreter_exec_cmd): Don't set the interpreter quiet.
12874 * interps.h (interp_quiet_p): Make static.
12875 (class interp) <quiet_p>: Remove field
12877 2017-02-08 Jerome Guitton <guitton@adacore.com>
12879 * cli/cli-decode.c (find_command_name_length): Make it extern.
12880 * cli/cli-decode.h (find_command_name_length): Declare.
12881 * cli/cli-script.c (command_name_equals, line_first_arg):
12883 (process_next_line): Use cli-decode to parse command names.
12884 (build_command_line): Make args a constant pointer.
12886 2017-02-08 Jerome Guitton <guitton@adacore.com>
12888 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12889 Remove case-insensitive search.
12891 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12893 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12894 at the end of the line. Avoids an ARI warning.
12896 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
12898 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12899 rdseed instructions.
12900 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12902 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12905 Provide and use sparc32 and sparc64 target description XML files.
12906 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12907 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12908 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12909 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12910 * features/sparc/sparc32-solaris.xml: New file.
12911 * features/sparc/sparc64-solaris.xml: New file.
12912 * features/sparc/sparc32-solaris.c: Generated.
12913 * features/sparc/sparc64-solaris.c: Generated.
12914 * sparc-tdep.h: Account for differences in target descriptions.
12915 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12916 (sparc32_register_type): Use target provided registers.
12917 (validate_tdesc_registers): New function.
12918 (sparc32_gdbarch_init): Use tdesc_has_registers.
12919 Set pseudoregister functions.
12920 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12921 (sparc64_register_type): Use target provided registers.
12922 (sparc64_init_abi): Set pseudoregister functions.
12924 2017-02-03 Tom Tromey <tom@tromey.com>
12927 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12928 with a single member.
12930 2017-02-03 Pedro Alves <palves@redhat.com>
12932 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12933 (cli_interp_base::~cli_interp_base): New.
12934 (cli_interp): New struct.
12935 (as_cli_interp): Cast the interp itself to cli_interp.
12936 (cli_interpreter_pre_command_loop): Rename to ...
12937 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12939 (cli_interpreter_init): Rename to ...
12940 (cli_interp::init): ... this. Remove 'self' parameter. Use
12941 boolean. Make extern.
12942 (cli_interpreter_resume): Rename to ...
12943 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12945 (cli_interpreter_suspend): Rename to ...
12946 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12948 (cli_interpreter_exec): Rename to ...
12949 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12951 (cli_interpreter_supports_command_editing): Rename to ...
12952 (cli_interp_base::supports_command_editing): ... this. Remove
12953 'interp' parameter. Make extern.
12954 (cli_ui_out): Rename to ...
12955 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12957 (cli_set_logging): Rename to ...
12958 (cli_interp_base::set_logging): ... this. Remove 'interp'
12959 parameter. Make extern.
12960 (cli_interp_procs): Delete.
12961 (cli_interp_factory): Adjust to use "new".
12962 * cli/cli-interp.h: Include "interps.h".
12963 (struct cli_interp_base): New struct.
12964 * interps.c (struct interp): Delete. Fields moved to interps.h.
12965 (interp_new): Delete.
12966 (interp::interp, interp::~interp): New.
12967 (interp_set): Use bool, and return void. Assume the interpreter
12968 has suspend, init and resume methods, and that the all return
12970 (set_top_level_interpreter): interp_set returns void.
12971 (interp_ui_out): Adapt.
12972 (current_interp_set_logging): Adapt.
12973 (interp_data): Delete.
12974 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12975 (interp_exec): Adapt.
12976 (top_level_interpreter_data): Delete.
12977 * interps.h (interp_init_ftype, interp_resume_ftype)
12978 (interp_suspend_ftype, interp_exec_ftype)
12979 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12980 (class interp): New.
12981 (interp_new): Delete.
12982 (interp_set): Now returns void. Use bool.
12983 (interp_data, top_level_interpreter_data): Delete.
12984 * mi/mi-common.h: Include interps.h.
12985 (class mi_interp): Inherit from interp. Define a ctor. Declare
12986 init, resume, suspect, exec, interp_ui_out, set_logging and
12987 pre_command_loop methods.
12988 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12989 (mi_interpreter_init): Rename to ...
12990 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12991 bool, return void and make extern. Adjust.
12992 (mi_interpreter_resume): ... Rename to ...
12993 (mi_interp::resume): ... this. Remove the 'data' parameter,
12994 return void and make extern. Adjust.
12995 (mi_interpreter_suspend): ... Rename to ...
12996 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12997 return void and make extern. Adjust.
12998 (mi_interpreter_exec): ... Rename to ...
12999 (mi_interp::exec): ... this. Remove the 'data' parameter and make
13001 (mi_interpreter_pre_command_loop): ... Rename to ...
13002 (mi_interp::pre_command_loop): ... this. Remove the 'self'
13003 parameter and make extern.
13004 (mi_on_normal_stop_1): Adjust.
13005 (mi_ui_out): Rename to ...
13006 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
13007 parameter and make extern. Adjust.
13008 (mi_set_logging): Rename to ...
13009 (mi_interp::set_logging): ... this. Remove the 'interp'
13010 parameter and make extern. Adjust.
13011 (mi_interp_procs): Delete.
13012 (mi_interp_factory): Adjust to use 'new'.
13013 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
13014 (mi_print_exception, mi_execute_command, mi_load_progress):
13016 * tui/tui-interp.c (tui_interp): New class.
13017 (as_tui_interp): Return a tui_interp pointer.
13018 (tui_on_normal_stop, tui_on_signal_received)
13019 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13020 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13021 to use interp::interp_ui_out.
13022 (tui_init): Rename to ...
13023 (tui_interp::init): ... this. Remove the 'self' parameter, use
13024 bool, return void and make extern. Adjust.
13025 (tui_resume): Rename to ...
13026 (tui_interp::resume): ... this. Remove the 'data' parameter,
13027 return void and make extern. Adjust.
13028 (tui_suspend): Rename to ...
13029 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13030 return void and make extern. Adjust.
13031 (tui_ui_out): Rename to ...
13032 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13033 parameter, and make extern. Adjust.
13034 (tui_exec): Rename to ...
13035 (tui_interp::exec): ... this. Remove the 'data' parameter and
13037 (tui_interp_procs): Delete.
13038 (tui_interp_factory): Use "new".
13040 2017-02-02 Tom Tromey <tom@tromey.com>
13042 * rust-exp.y (ends_raw_string, space_then_number)
13043 (rust_identifier_start_p): Return bool.
13044 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13045 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13046 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13047 (rust_chartype_p): Return bool.
13048 (val_print_struct, rust_print_struct_def, rust_print_type):
13050 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13053 2017-02-02 Tom Tromey <tom@tromey.com>
13055 * rust-lang.c: Reindent.
13057 2017-02-02 Tom Tromey <tom@tromey.com>
13059 * rust-lang.h (rust_crate_for_block): Update.
13060 * rust-lang.c (rust_crate_for_block): Return std::string.
13061 (rust_get_disr_info): Use std:;string, not
13062 gdb::unique_xmalloc_ptr.
13063 * rust-exp.y (crate_name): Update.
13065 2017-02-02 Pedro Alves <palves@redhat.com>
13067 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13068 field out of gdb_disassembler_test and make it static.
13070 2017-02-02 Pedro Alves <palves@redhat.com>
13072 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13073 mi1_interp and mi_interp fields.
13075 2017-02-02 Pedro Alves <palves@redhat.com>
13077 * cli/cli-interp.c (struct saved_output_files, saved_output):
13078 Moved from cli/cli-logging.c.
13079 (cli_set_logging): New function.
13080 (cli_interp_procs): Install cli_set_logging.
13081 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13083 * cli/cli-logging.c (struct saved_output_files, saved_output):
13084 Moved to cli/cli-interp.c.
13085 (pop_output_files): Don't save outputs here.
13086 (make_logging_output): New function.
13087 (handle_redirections): Don't build tee nor save previous outputs
13089 * interps.c (current_interp_set_logging): Change prototype.
13090 Assume there's always a set_logging_proc method installed.
13091 * interps.h (interp_set_logging_ftype): Change prototype.
13092 (current_interp_set_logging): Change prototype and adjust comment.
13093 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13094 use make_logging_output.
13095 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
13096 2017-02-02 Pedro Alves <palves@redhat.com>
13098 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13100 (set_logging_overwrite): ... here.
13101 (logging_no_redirect_file): Delete.
13102 (set_logging_redirect): Don't handle redirection on the fly.
13103 Instead warn that "logging off" / "logging on" is necessary.
13104 (pop_output_files): Delete references to logging_no_redirect_file.
13105 (show_logging_command): Always speak in terms of what will happen
13106 once logging is reenabled.
13108 2017-02-02 Pedro Alves <palves@redhat.com>
13110 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13112 2017-02-02 Pedro Alves <palves@redhat.com>
13114 * disasm.c (gdb_pretty_print_insn): Rename to ...
13115 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13116 Remove gdbarch parameter. Adapt to clear the object's buffers
13117 instead of allocating new buffers, and to print using the object's
13118 gdb_disassembler instead of calling gdb_print_insn.
13119 (dump_insns): Use gdb_pretty_print_disassembler.
13120 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13121 (gdb_pretty_print_disassembler): New class.
13122 * record-btrace.c (btrace_insn_history): Use
13123 gdb_pretty_print_disassembler.
13125 2017-02-02 Pedro Alves <palves@redhat.com>
13127 * ada-lang.c (type_as_string): Use string_file.
13128 * ada-valprint.c (ada_print_floating): Use string_file.
13129 * ada-varobj.c (ada_varobj_scalar_image)
13130 (ada_varobj_get_value_image): Use string_file.
13131 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13132 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13133 * breakpoint.c (update_inserted_breakpoint_locations)
13134 (insert_breakpoint_locations, reattach_breakpoints)
13135 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13136 (print_it_watchpoint): Use string_file.
13137 (save_breakpoints): Use stdio_file.
13138 * c-exp.y (oper): Use string_file.
13139 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13141 (pop_output_files): Use delete.
13142 (handle_redirections): Use stdio_file and tee_file.
13143 * cli/cli-setshow.c (do_show_command): Use string_file.
13144 * compile/compile-c-support.c (c_compute_program): Use
13146 * compile/compile-c-symbols.c (generate_vla_size): Take a
13147 'string_file &' instead of a 'ui_file *'.
13148 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13149 of a 'ui_file *'. Use string_file.
13150 (generate_c_for_variable_locations): Take a 'string_file &'
13151 instead of a 'ui_file *'.
13152 * compile/compile-internal.h (generate_c_for_for_one_variable):
13153 Take a 'string_file &' instead of a 'ui_file *'.
13154 * compile/compile-loc2c.c (push, pushf, unary, binary)
13155 (print_label, pushf_register_address, pushf_register)
13156 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13157 'ui_file *'. Adjust.
13158 * compile/compile.c (compile_to_object): Use string_file.
13159 * compile/compile.h (compile_dwarf_expr_to_c)
13160 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13162 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13163 (replace_typedefs_qualified_name): Use string_file and
13165 * disasm.c (gdb_pretty_print_insn): Use string_file.
13166 (gdb_disassembly): Adjust reference the null_stream global.
13167 (do_ui_file_delete): Delete.
13168 (gdb_insn_length): Use null_stream.
13169 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13170 * dwarf2loc.c (dwarf2_compile_property_to_c)
13171 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13172 'string_file &' instead of a 'ui_file *'.
13173 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13174 * dwarf2read.c (do_ui_file_peek_last): Delete.
13175 (dwarf2_compute_name): Use string_file.
13176 * event-top.c (gdb_setup_readline): Use stdio_file.
13177 * gdbarch.sh (verify_gdbarch): Use string_file.
13178 * gdbtypes.c (safe_parse_type): Use null_stream.
13179 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13181 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13182 'string_file *' instead of a 'ui_file *'.
13183 (gdbscm_arch_disassemble): Use string_file.
13184 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13185 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13186 inherits from ui_file.
13187 (ioscm_file_port_delete, ioscm_file_port_rewind)
13188 (ioscm_file_port_put): Delete.
13189 (ioscm_file_port_write): Rename to ...
13190 (ioscm_file_port::write): ... this. Remove file_port_magic
13192 (ioscm_file_port_new): Delete.
13193 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13195 * guile/scm-type.c (tyscm_type_name): Use string_file.
13196 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13198 * infcmd.c (print_return_value_1): Use string_file.
13199 * infrun.c (print_target_wait_results): Use string_file.
13200 * language.c (add_language): Use string_file.
13201 * location.c (explicit_to_string_internal): Use string_file.
13202 * main.c (captured_main_1): Use null_file.
13203 * maint.c (maintenance_print_architecture): Use stdio_file.
13204 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13205 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13206 event_channel>: Change type to mi_console_file pointer.
13207 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13208 (mi_console_file_delete): Delete.
13209 (struct mi_console_file): Delete.
13210 (mi_console_file_magic): Delete.
13211 (mi_console_file_new): Delete.
13212 (mi_console_file::mi_console_file): New.
13213 (mi_console_file_delete): Delete.
13214 (mi_console_file_fputs): Delete.
13215 (mi_console_file::write): New.
13216 (mi_console_raw_packet): Delete.
13217 (mi_console_file::flush): New.
13218 (mi_console_file_flush): Delete.
13219 (mi_console_set_raw): Rename to ...
13220 (mi_console_file::set_raw): ... this.
13221 * mi/mi-console.h (class mi_console_file): New class.
13222 (mi_console_file_new, mi_console_set_raw): Delete.
13223 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13224 (mi_set_logging): Use delete and tee_file. Adjust.
13225 * mi/mi-main.c (output_register): Use string_file.
13226 (mi_cmd_data_evaluate_expression): Use string_file.
13227 (mi_cmd_data_read_memory): Use string_file.
13228 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13229 * mi/mi-out.c (mi_ui_out::main_stream): New.
13230 (mi_ui_out::rewind): Use main_stream and
13232 (mi_ui_out::put): Use main_stream and string_file.
13233 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13234 Allocate a 'string_file' instead.
13235 (mi_out_new): Don't allocate a mem_fileopen stream here.
13236 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13237 (mi_ui_out::main_stream): Declare method.
13238 * printcmd.c (eval_command): Use string_file.
13239 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13240 * python/py-arch.c (archpy_disassemble): Use string_file.
13241 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13242 * python/py-frame.c (frapy_str): Use string_file.
13243 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13245 * python/py-type.c (typy_str): Use string_file.
13246 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13247 * python/py-value.c (valpy_str): Use string_file.
13248 * record-btrace.c (btrace_insn_history): Use string_file.
13249 * regcache.c (regcache_print): Use stdio_file.
13250 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13251 * remote.c (escape_buffer): Use string_file.
13252 * rust-lang.c (rust_get_disr_info): Use string_file.
13253 * serial.c (serial_open_ops_1): Use stdio_file.
13254 (do_serial_close): Use delete.
13255 * stack.c (print_frame_arg): Use string_file.
13256 (print_frame_args): Remove local mem_fileopen stream, not used.
13257 (print_frame): Use string_file.
13258 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13259 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13260 Take a 'string_file *' instead of a 'ui_file *'.
13261 * top.c (new_ui): Use stdio_file and stderr_file.
13262 (free_ui): Use delete.
13263 (execute_command_to_string): Use string_file.
13264 (quit_confirm): Use string_file.
13265 * tracepoint.c (collection_list::append_exp): Use string_file.
13266 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13267 * tui/tui-file.c: Don't include "ui-file.h".
13268 (enum streamtype, struct tui_stream): Delete.
13269 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13270 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13271 (tui_file::tui_file): New method.
13272 (tui_file_fputs): Delete.
13273 (tui_file_get_strbuf): Delete.
13274 (tui_file::puts): New method.
13275 (tui_file_adjust_strbuf): Delete.
13276 (tui_file_flush): Delete.
13277 (tui_file::flush): New method.
13278 * tui/tui-file.h: Tweak intro comment.
13280 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13281 (tui_file_adjust_strbuf): Delete declarations.
13282 (class tui_file): New class.
13283 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13284 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13285 (tui_register_format): Use string_stream.
13286 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13287 (tui_get_function_from_frame): Use string_file.
13288 * typeprint.c (type_to_string): Use string_file.
13289 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13290 (null_stream): New global.
13291 (ui_file_delete): Delete.
13292 (ui_file::ui_file): New.
13293 (null_file_isatty): Delete.
13294 (ui_file::~ui_file): New.
13295 (null_file_rewind): Delete.
13296 (ui_file::printf): New.
13297 (null_file_put): Delete.
13298 (null_file_flush): Delete.
13299 (ui_file::putstr): New.
13300 (null_file_write): Delete.
13301 (ui_file::putstrn): New.
13302 (null_file_read): Delete.
13303 (ui_file::putc): New.
13304 (null_file_fputs): Delete.
13305 (null_file_write_async_safe): Delete.
13306 (ui_file::vprintf): New.
13307 (null_file_delete): Delete.
13308 (null_file::write): New.
13309 (null_file_fseek): Delete.
13310 (null_file::puts): New.
13311 (ui_file_data): Delete.
13312 (null_file::write_async_safe): New.
13313 (gdb_flush, ui_file_isatty): Adjust.
13314 (ui_file_put, ui_file_rewind): Delete.
13315 (ui_file_write): Adjust.
13316 (ui_file_write_for_put): Delete.
13317 (ui_file_write_async_safe, ui_file_read): Adjust.
13318 (ui_file_fseek): Delete.
13319 (fputs_unfiltered): Adjust.
13320 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13321 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13322 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13323 (set_ui_file_data): Delete.
13324 (string_file::~string_file, string_file::write)
13325 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13326 (do_ui_file_as_string, ui_file_as_string): Delete.
13327 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13328 (struct mem_file): Delete.
13329 (mem_file_new): Delete.
13330 (stdio_file::stdio_file): New.
13331 (mem_file_delete): Delete.
13332 (stdio_file::stdio_file): New.
13333 (mem_fileopen): Delete.
13334 (stdio_file::~stdio_file): New.
13335 (mem_file_rewind): Delete.
13336 (stdio_file::set_stream): New.
13337 (mem_file_put): Delete.
13338 (stdio_file::open): New.
13339 (mem_file_write): Delete.
13340 (stdio_file_magic, struct stdio_file): Delete.
13341 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13342 (stdio_file::flush): New.
13343 (stdio_file_read): Rename to ...
13344 (stdio_file::read): ... this. Adjust.
13345 (stdio_file_write): Rename to ...
13346 (stdio_file::write): ... this. Adjust.
13347 (stdio_file_write_async_safe): Rename to ...
13348 (stdio_file::write_async_safe) ... this. Adjust.
13349 (stdio_file_fputs): Rename to ...
13350 (stdio_file::puts) ... this. Adjust.
13351 (stdio_file_isatty): Delete.
13352 (stdio_file_fseek): Delete.
13353 (stdio_file::isatty): New.
13354 (stderr_file_write): Rename to ...
13355 (stderr_file::write) ... this. Adjust.
13356 (stderr_file_fputs): Rename to ...
13357 (stderr_file::puts) ... this. Adjust.
13358 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13359 (stderr_file::stderr_file): New.
13360 (tee_file_magic): Delete.
13361 (struct tee_file): Delete.
13362 (tee_file::tee_file): New.
13363 (tee_file_new): Delete.
13364 (tee_file::~tee_file): New.
13365 (tee_file_delete): Delete.
13366 (tee_file_flush): Rename to ...
13367 (tee_file::flush): ... this. Adjust.
13368 (tee_file_write): Rename to ...
13369 (tee_file::write): ... this. Adjust.
13370 (tee_file::write_async_safe): New.
13371 (tee_file_fputs): Rename to ...
13372 (tee_file::puts): ... this. Adjust.
13373 (tee_file_isatty): Rename to ...
13374 (tee_file::isatty): ... this. Adjust.
13375 * ui-file.h (struct obstack, struct ui_file): Don't
13377 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13378 (ui_file_write_ftype)
13379 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13380 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13381 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13382 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13383 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13384 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13385 (set_ui_file_fseek): Delete.
13386 (ui_file_data, ui_file_delete, ui_file_rewind)
13387 (struct ui_file): New.
13389 (class null_file): New.
13390 (null_stream): Declare.
13391 (ui_file_write_for_put, ui_file_put): Delete.
13392 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13394 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13395 (gdb_fopen, tee_file_new): Delete.
13396 (struct string_file): New.
13397 (struct stdio_file): New.
13398 (stdio_file_up): New.
13399 (struct stderr_file): New.
13400 (class tee_file): New.
13401 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13402 of a 'ui_file *'. Adjust.
13403 * ui-out.h (class ui_out) <field_stream>: Likewise.
13404 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13405 (null_stream): Delete.
13406 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13408 * utils.h (struct ui_file): Delete forward declaration..
13409 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13410 (error_stream): Take a 'string_file &' instead of a
13412 * varobj.c (varobj_value_get_print_value): Use string_file.
13413 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13414 * gdbarch.c: Regenerate.
13416 2017-02-02 Pedro Alves <palves@redhat.com>
13418 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13419 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13420 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13421 Adjust to call gdb_print_insn instead of
13422 gdb_disassembler::print_insn.
13423 (dump_insns, do_mixed_source_and_assembly_deprecated)
13424 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13425 'gdbarch' parameter. Remove gdb_disassembler parameter.
13426 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13427 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13429 (gdb_pretty_print_insn): Re-add declaration.
13430 * record-btrace.c (btrace_insn_history): Don't allocate a
13431 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13433 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13435 * disasm.h (gdb_disassembly): Remove file_string parameter.
13436 * disasm.c (gdb_disassembly): Likewise.
13437 * cli/cli-cmds.c (print_disassembly): Adapt.
13438 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13439 * stack.c (do_gdb_disassembly): Likewise.
13441 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13443 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13444 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13445 targets. And if the implicit value is longer than needed, extract
13446 the first bytes instead of the "least significant" ones.
13448 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13450 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13451 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13452 (btrace_fetch): Assert can_access_registers_ptid.
13453 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13454 validate_registers_access.
13456 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13458 * gdbthread.h (can_access_registers_ptid): New.
13459 * thread.c (can_access_registers_ptid): New.
13461 2017-02-01 Pedro Alves <palves@redhat.com>
13463 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13465 2017-01-31 Pedro Alves <palves@redhat.com>
13467 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13470 2017-01-31 Pedro Alves <palves@redhat.com>
13472 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13475 2017-01-31 Pedro Alves <palves@redhat.com>
13477 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13479 2017-01-31 Pedro Alves <palves@redhat.com>
13481 * common/scoped_restore.h
13482 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13483 change the value's parameter type to T2.
13484 (make_scoped_restore): Likewise.
13486 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13487 Richard Henderson <rth@redhat.com>
13489 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13490 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13491 GS_BASE for older kernels.
13492 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13493 GS_BASE for older kernels.
13494 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13495 and GS_BASE to the offset table.
13496 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13497 system register group.
13498 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13500 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13502 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13503 AMD64_GSBASE_REGNUM.
13504 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13505 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13506 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13507 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13508 i386/64bit-segments.xml in those rules.
13509 * features/i386/64bit-segments.xml: New file.
13510 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13511 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13512 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13513 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13514 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13515 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13516 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13517 * features/i386/amd64-avx-linux.c: Regenerated.
13518 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13519 * features/i386/amd64-avx-mpx.c: Regenerated.
13520 * features/i386/amd64-avx512-linux.c: Regenerated.
13521 * features/i386/amd64-linux.c: Regenerated.
13522 * features/i386/amd64-mpx-linux.c: Regenerated.
13523 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13524 * features/i386/i386-avx-mpx.c: Regenerated.
13525 * features/i386/x32-avx-linux.c: Regenerated.
13526 * features/i386/x32-avx512-linux.c: Regenerated.
13527 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13528 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13529 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13530 * regformats/i386/amd64-linux.dat: Regenerated.
13531 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13532 * regformats/i386/x32-avx-linux.dat: Regenerated.
13533 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13534 * regformats/i386/x32-linux.dat: Regenerated.
13536 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13538 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13539 Set to AMD64_NUM_REGS.
13541 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13543 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13544 that checks validity of a register number.
13546 2017-01-27 Kees Cook <keescook@google.com>
13548 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13549 fetch_fpregs if target has fpa registers.
13550 (arm_linux_store_inferior_registers): Call store_fpregs if target
13553 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13555 * cris-tdep.c (cris_gdbarch_init): Remove check for
13556 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13558 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13560 * corelow.c (get_core_register_section): Check for regset
13561 existence before checking for REGSET_VARIABLE_SIZE.
13563 2017-01-26 Yao Qi <yao.qi@linaro.org>
13564 Pedro Alves <palves@redhat.com>
13567 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13568 call memory_error, save memaddr instead.
13569 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13570 negative, cal memory_error.
13571 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13573 2017-01-26 Yao Qi <yao.qi@linaro.org>
13575 * disasm-selftests.c (memory_error_test): New function.
13576 (_initialize_disasm_selftests): Register memory_error_test.
13578 2017-01-26 Yao Qi <yao.qi@linaro.org>
13580 * Makefile.in (SFILES): Add disasm-selftests.c and
13582 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13583 * disasm-selftests.c: New file.
13584 * selftest-arch.c: New file.
13585 * selftest-arch.h: New file.
13587 2017-01-26 Yao Qi <yao.qi@linaro.org>
13589 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13590 to bfd_arch_mep. Don't return 0 if section is not
13591 found. Call print_insn_mep.
13593 2017-01-26 Pedro Alves <palves@redhat.com>
13594 Yao Qi <yao.qi@linaro.org>
13596 * arm-tdep.c: Include "disasm.h".
13597 (gdb_print_insn_arm): Update code to get gdbarch.
13598 * disasm.c (dis_asm_read_memory): Change it to
13599 gdb_disassembler::dis_asm_read_memory.
13600 (dis_asm_memory_error): Likewise.
13601 (dis_asm_print_address): Likewise.
13602 (gdb_pretty_print_insn): Change it to
13603 gdb_disassembler::pretty_print_insn.
13604 (dump_insns): Add one argument gdb_disassemlber. All
13606 (do_mixed_source_and_assembly_deprecated): Likewise.
13607 (do_mixed_source_and_assembly): Likewise.
13608 (do_assembly_only): Likewise.
13609 (gdb_disassembler::gdb_disassembler): New.
13610 (gdb_disassembler::print_insn): New.
13611 * disasm.h (class gdb_disassembler): New.
13612 (gdb_pretty_print_insn): Remove declaration.
13613 (gdb_disassemble_info): Likewise.
13614 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13615 (gdbscm_disasm_read_memory_worker): Update.
13616 (gdbscm_disasm_read_memory): Update.
13617 (gdbscm_disasm_memory_error): Remove.
13618 (gdbscm_disasm_print_address): Remove.
13619 (gdbscm_disassembler::gdbscm_disassembler): New.
13620 (gdbscm_print_insn_from_port): Update.
13621 * mips-tdep.c: Include disasm.h.
13622 (gdb_print_insn_mips): Update code to get gdbarch.
13623 * record-btrace.c (btrace_insn_history): Update.
13624 * spu-tdep.c: Include disasm.h.
13625 (struct spu_dis_asm_data): Remove.
13626 (struct spu_dis_asm_info): New.
13627 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13629 (gdb_print_insn_spu): Cast disassemble_info to
13632 2017-01-26 Yao Qi <yao.qi@linaro.org>
13634 * disasm.c (do_ui_file_delete): Delete.
13635 (gdb_insn_length): Move code creating stream to ...
13636 * utils.c (null_stream): ... here. New function.
13637 * utils.h (null_stream): Declare.
13639 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13641 * python/py-inferior.c (find_thread_object): Return directly
13642 from the loop. Remove "found" variable.
13644 2017-01-21 Joel Brobecker <brobecker@adacore.com>
13646 GDB 7.12.1 released.
13648 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13650 * python/py-function.c (fnpy_call): Reorder declarations to have
13651 the gdbpy_enter object declared first.
13652 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13654 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13657 * python/python-internal.h (PyMem_RawMalloc): Define for
13659 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13660 PyMem_RawMalloc instead of PyMem_Malloc.
13662 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13663 Luis Machado <lgustavo@codesourcery.com>
13665 * NEWS (New commands): Mention flash-erase.
13666 (New MI commands): Mention target-flash-erase.
13667 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13669 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13670 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13671 * target.c (flash_erase_command): New function.
13672 (initialize_targets): Add new flash-erase command.
13673 * target.h (flash_erase_command): New declaration.
13675 2017-01-20 Joel Brobecker <brobecker@adacore.com>
13677 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13678 HAVE_SYS_PROCFS_H is defined.
13680 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13682 * remote.c (struct cached_reg): Change data into a pointer.
13683 * (stop_reply_dtr): Free data pointers before deleting vector.
13684 (process_stop_reply): Likewise.
13685 (remote_parse_stop_reply): Allocate space for data
13687 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13689 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13691 (amd64_pseudo_register_read_value): Likewise.
13692 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13693 (store_register_using_P): Likewise.
13694 * regcache.c (regcache_xfer_part): Likewise.
13696 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13698 Split real and pseudo registers.
13699 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13700 (sparc32_pseudo_regnum): New enum.
13701 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13702 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13703 (SPARC32_CP0_REGISTERS): New macro.
13704 (sparc32_pseudo_register_name): New function.
13705 (sparc32_register_name): Use sparc32_pseudo_register_name.
13706 (sparc32_pseudo_register_type): New function.
13707 (sparc32_register_type): Use sparc32_pseudo_register_type.
13708 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13709 pseudo register numbers.
13710 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13711 (SPARC64_CP0_REGISTERS): New macro.
13712 (sparc64_pseudo_register_name): New function.
13713 (sparc64_register_name): Use sparc64_pseudo_register_name.
13714 (sparc64_pseudo_register_type): New function.
13715 (sparc64_register_type): Use sparc64_pseudo_register_type.
13716 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13717 pseudo register numbers.
13718 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13719 sparc64_store_arguments): Handle pseudo register numbers.
13721 2017-01-13 Yao Qi <yao.qi@linaro.org>
13723 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13724 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13726 (getpkt_or_notif_sane_1): Likewise.
13728 2017-01-13 Yao Qi <yao.qi@linaro.org>
13730 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13731 of CC. Pass "-x c++-header" instead of "-x c".
13733 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13735 * remote.c (remote_can_async_p): Update comment.
13737 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13739 * linux-nat.c (linux_nat_can_async_p): Update comment.
13741 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13743 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13745 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13747 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13749 2017-01-10 Tom Tromey <tom@tromey.com>
13751 * python/py-type.c (typy_legacy_template_argument): Update.
13752 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13753 ~demangle_parse_info): Declare new members.
13754 (cp_demangled_name_to_comp): Return unique_ptr.
13755 (cp_demangled_name_parse_free)
13756 (make_cleanup_cp_demangled_name_parse_free)
13757 (cp_new_demangle_parse_info): Remove.
13758 * cp-support.c (do_demangled_name_parse_free_cleanup)
13759 (make_cleanup_cp_demangled_name_parse_free): Remove.
13760 (inspect_type, cp_canonicalize_string_full)
13761 (cp_canonicalize_string): Update.
13762 (mangled_name_to_comp): Change return type.
13763 (cp_class_name_from_physname, method_name_from_physname)
13764 (cp_func_name, cp_remove_params): Update.
13765 * cp-name-parser.y (demangle_parse_info): New constructor, from
13766 cp_new_demangle_parse_info.
13767 (~demangle_parse_info): New destructor, from
13768 cp_demangled_name_parse_free.
13769 (cp_merge_demangle_parse_infos): Update.
13770 (cp_demangled_name_to_comp): Change return type.
13772 2017-01-10 Tom Tromey <tom@tromey.com>
13774 * top.c (prevent_dont_repeat): Change return type.
13775 * python/python.c (execute_gdb_command): Use std::string.
13777 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13778 * command.h (prevent_dont_repeat): Change return type.
13779 * breakpoint.c (bpstat_do_actions_1): Update.
13781 2017-01-10 Tom Tromey <tom@tromey.com>
13783 * value.h (scoped_value_mark::~scoped_value_mark): Call
13785 (scoped_value_mark::free_to_mark): New method.
13786 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13789 2017-01-10 Tom Tromey <tom@tromey.com>
13791 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13792 (valpy_reference_value, valpy_const_value, valpy_get_address)
13793 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13794 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13795 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13796 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13798 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13799 * value.h (scoped_value_mark): New class.
13801 2017-01-10 Tom Tromey <tom@tromey.com>
13803 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13804 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13805 * psymtab.c (discard_psymtabs_upto): Remove.
13806 (make_cleanup_discard_psymtabs): Remove.
13807 (struct psymtab_state): Remove.
13809 2017-01-10 Tom Tromey <tom@tromey.com>
13811 * record-full.c (record_full_save_cleanups): Remove.
13812 (record_full_save): Use gdb::unlinker.
13813 * gcore.c (do_bfd_delete_cleanup): Remove.
13814 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13816 * dwarf2read.c (unlink_if_set): Remove.
13817 (write_psymtabs_to_index): Use gdb::unlinker.
13818 * common/gdb_unlinker.h: New file.
13820 2017-01-10 Tom Tromey <tom@tromey.com>
13822 * windows-tdep.c (windows_xfer_shared_library): Update.
13823 * windows-nat.c (windows_make_so): Update.
13824 * utils.h (make_cleanup_bfd_unref): Remove.
13825 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13826 * symfile.h (symfile_bfd_open)
13827 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13828 * symfile.c (read_symbols, symbol_file_add)
13829 (separate_debug_file_exists): Update.
13830 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13831 (generic_load, reread_symbols): Update.
13832 * symfile-mem.c (symbol_file_add_from_memory): Update.
13833 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13834 (spu_symbol_file_add_from_memory): Update.
13835 * solist.h (struct target_so_ops) <bfd_open>: Return
13837 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13838 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13840 (solib_map_sections, reload_shared_libraries_1): Update.
13841 * solib-svr4.c (enable_break): Update.
13842 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13843 * solib-frv.c (enable_break2): Update.
13844 * solib-dsbt.c (enable_break): Update.
13845 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13847 (darwin_solib_get_all_image_info_addr_at_init): Update.
13848 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13849 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13850 * record-full.c (record_full_save): Update.
13851 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13852 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13853 * minidebug.c (find_separate_debug_file_in_section): Return
13855 * machoread.c (macho_add_oso_symfile): Change abfd to
13857 (macho_symfile_read_all_oso): Update.
13858 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13859 (macho_symfile_read): Update.
13860 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13861 (jit_bfd_try_read_symtab): Update.
13862 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13863 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13864 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13866 (gdb_bfd_ref_policy): New struct.
13867 (gdb_bfd_ref_ptr): New typedef.
13868 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13869 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13870 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13872 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13873 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13874 (gcore_command): Update.
13875 * exec.c (exec_file_attach): Update.
13876 * elfread.c (elf_symfile_read): Update.
13877 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13878 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13879 (open_and_init_dwo_file): Update.
13880 (open_dwp_file): Return gdb_bfd_ref_ptr.
13881 (open_and_init_dwp_file): Update.
13882 * corelow.c (core_open): Update.
13883 * compile/compile-object-load.c (compile_object_load): Update.
13884 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13885 * coffread.c (coff_symfile_read): Update.
13886 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13887 gdb_bfd_ref_ptr. Rename.
13888 (dump_bfd_file, restore_command): Update.
13889 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13890 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13891 (find_separate_debug_file_by_buildid): Update.
13893 2017-01-10 Tom Tromey <tom@tromey.com>
13895 * common/gdb_ref_ptr.h: New file.
13896 * python/py-ref.h (struct gdbpy_ref_policy): New.
13897 (gdbpy_ref): Now a typedef.
13899 2017-01-10 Tom Tromey <tom@tromey.com>
13901 * utils.h (make_cleanup_htab_delete): Don't declare.
13902 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13904 * linespec.c (decode_compound_collector): Add constructor,
13906 (lookup_prefix_sym): Remove cleanup.
13907 (symtab_collector): Add constructor, destructor.
13908 (collect_symtabs_from_filename): Remove cleanup.
13909 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13910 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13912 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13913 * dwarf2read.c (dw2_expand_symtabs_matching)
13914 (dw2_map_symbol_filenames, dwarf_decode_macros)
13915 (write_psymtabs_to_index): Use htab_up.
13916 * dwarf2loc.c (func_verify_no_selftailcall)
13917 (call_site_find_chain_1, func_verify_no_selftailcall)
13918 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13919 std::vector, gdb::unique_xmalloc_ptr.
13920 (call_sitep): Remove typedef.
13921 (dwarf2_locexpr_baton_eval): Remove unused variable.
13923 2017-01-10 Tom Tromey <tom@tromey.com>
13925 * python/python-internal.h (make_cleanup_py_decref)
13926 (make_cleanup_py_xdecref): Don't declare.
13927 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13928 (py_xdecref, make_cleanup_py_xdecref): Remove.
13930 2017-01-10 Tom Tromey <tom@tromey.com>
13932 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13933 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13935 2017-01-10 Tom Tromey <tom@tromey.com>
13937 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13939 2017-01-10 Tom Tromey <tom@tromey.com>
13941 * python/py-utils.c (unicode_to_encoded_string)
13942 (python_string_to_target_string)
13943 (python_string_to_target_python_string)
13944 (python_string_to_host_string, gdbpy_obj_to_string)
13945 (get_addr_from_python): Use gdbpy_ref.
13947 2017-01-10 Tom Tromey <tom@tromey.com>
13949 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13952 2017-01-10 Tom Tromey <tom@tromey.com>
13954 * python/python.c (eval_python_command, gdbpy_decode_line)
13955 (gdbpy_run_events, gdbpy_start_type_printers)
13956 (gdbpy_apply_type_printers): Use gdbpy_ref.
13958 2017-01-10 Tom Tromey <tom@tromey.com>
13960 * python/py-param.c (get_doc_string, compute_enum_values): Use
13963 2017-01-10 Tom Tromey <tom@tromey.com>
13965 * python/py-inferior.c (find_thread_object, build_inferior_list):
13968 2017-01-10 Tom Tromey <tom@tromey.com>
13970 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13972 2017-01-10 Tom Tromey <tom@tromey.com>
13974 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13977 2017-01-10 Tom Tromey <tom@tromey.com>
13979 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13981 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13984 2017-01-10 Tom Tromey <tom@tromey.com>
13986 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13989 2017-01-10 Tom Tromey <tom@tromey.com>
13991 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13992 decref results of PyArg_ParseTupleAndKeywords.
13994 2017-01-10 Tom Tromey <tom@tromey.com>
13996 * python/python.c (python_run_simple_file): Use
13997 unique_xmalloc_ptr, gdbpy_ref.
13999 2017-01-10 Tom Tromey <tom@tromey.com>
14001 * python/py-prettyprint.c (print_stack_unless_memory_error)
14002 (print_string_repr, print_children): Use gdbpy_ref.
14003 (dummy_python_frame): New class.
14004 (dummy_python_frame::dummy_python_frame): Rename from
14005 push_dummy_python_frame.
14006 (py_restore_tstate): Remove.
14008 2017-01-10 Tom Tromey <tom@tromey.com>
14010 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14012 2017-01-10 Tom Tromey <tom@tromey.com>
14014 * python/python.c (ensure_python_env, restore_python_env):
14016 * python/python-internal.h (ensure_python_env): Don't declare.
14017 * varobj.h (varobj_ensure_python_env): Don't declare.
14018 * varobj.c (varobj_ensure_python_env): Remove.
14020 2017-01-10 Tom Tromey <tom@tromey.com>
14022 * varobj.c (varobj_value_get_print_value): Use
14023 gdbpy_enter_varobj.
14025 2017-01-10 Tom Tromey <tom@tromey.com>
14027 * python/py-prettyprint.c (print_string_repr, print_children):
14029 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14031 * varobj.c (varobj_value_get_print_value): Update.
14032 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14034 2017-01-10 Tom Tromey <tom@tromey.com>
14036 * varobj.c (varobj_get_display_hint)
14037 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14038 (varobj_set_visualizer, free_variable): Use
14039 gdbpy_enter_varobj.
14041 2017-01-10 Tom Tromey <tom@tromey.com>
14043 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14044 (do_finish_initialization): New function. Use gdbpy_ref.
14045 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14046 do_finish_initialization.
14048 2017-01-10 Tom Tromey <tom@tromey.com>
14050 * python/py-param.c (get_set_value, get_show_value): Use
14051 gdbpy_enter, gdbpy_ref.
14053 2017-01-10 Tom Tromey <tom@tromey.com>
14055 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14057 2017-01-10 Tom Tromey <tom@tromey.com>
14059 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14061 2017-01-10 Tom Tromey <tom@tromey.com>
14063 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14064 Use gdbpy_enter_varobj.
14066 2017-01-10 Tom Tromey <tom@tromey.com>
14068 * varobj.c (gdbpy_enter_varobj): New constructor.
14069 * python/python-internal.h (gdbpy_enter_varobj): New class.
14070 * python/py-varobj.c (py_varobj_get_iterator): Use
14071 gdbpy_enter_varobj.
14073 2017-01-10 Tom Tromey <tom@tromey.com>
14075 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14076 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14077 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14078 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14079 unique_xmalloc_ptr.
14080 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14082 2017-01-10 Tom Tromey <tom@tromey.com>
14084 * python/py-xmethods.c (invoke_match_method): Use
14087 2017-01-10 Tom Tromey <tom@tromey.com>
14089 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14090 gdbpy_enter, gdbpy_ref.
14092 2017-01-10 Tom Tromey <tom@tromey.com>
14094 * python/python.c (python_interactive_command): Use gdbpy_enter.
14096 2017-01-10 Tom Tromey <tom@tromey.com>
14098 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14101 2017-01-10 Tom Tromey <tom@tromey.com>
14103 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14104 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14106 2017-01-10 Tom Tromey <tom@tromey.com>
14108 * utils.h (htab_deleter): New struct.
14109 (htab_up): New typedef.
14110 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14111 gdbpy_enter, gdbpy_ref, htab_up.
14113 2017-01-10 Tom Tromey <tom@tromey.com>
14115 * python/py-unwind.c (pending_frame_invalidate): Remove.
14116 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14118 2017-01-10 Tom Tromey <tom@tromey.com>
14120 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14121 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14123 2017-01-10 Tom Tromey <tom@tromey.com>
14125 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14127 2017-01-10 Tom Tromey <tom@tromey.com>
14129 * python/python.c (gdbpy_eval_from_control_command)
14130 (gdbpy_source_script, gdbpy_run_events)
14131 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14132 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14135 2017-01-10 Tom Tromey <tom@tromey.com>
14137 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14139 2017-01-10 Tom Tromey <tom@tromey.com>
14141 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14143 2017-01-10 Tom Tromey <tom@tromey.com>
14145 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14146 (python_on_inferior_call_pre, python_on_inferior_call_post)
14147 (python_on_memory_change, python_on_register_change)
14148 (python_inferior_exit, python_new_objfile, add_thread_object)
14149 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14151 2017-01-10 Tom Tromey <tom@tromey.com>
14153 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14154 (bpfinishpy_handle_exit): Use gdbpy_enter.
14156 2017-01-10 Tom Tromey <tom@tromey.com>
14158 * python/py-cmd.c (cmdpy_destroyer)
14159 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14162 2017-01-10 Tom Tromey <tom@tromey.com>
14164 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14166 (gdbpy_breakpoint_has_cond): Likewise.
14168 2017-01-10 Tom Tromey <tom@tromey.com>
14170 * python/python.c (gdbpy_enter): New constructor.
14171 (~gdbpy_enter): New destructor.
14172 (restore_python_env, ensure_python_env): Rewrite.
14173 * python/python-internal.h (gdbpy_enter): New class.
14175 2017-01-10 Tom Tromey <tom@tromey.com>
14177 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14179 2017-01-10 Tom Tromey <tom@tromey.com>
14181 * python/py-value.c (value_has_field, get_field_flag)
14182 (get_field_type, valpy_getitem, convert_value_from_python): Use
14185 2017-01-10 Tom Tromey <tom@tromey.com>
14187 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14190 2017-01-10 Tom Tromey <tom@tromey.com>
14192 * python/py-prettyprint.c (search_pp_list)
14193 (find_pretty_printer_from_objfiles)
14194 (find_pretty_printer_from_progspace)
14195 (find_pretty_printer_from_gdb, find_pretty_printer)
14196 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14199 2017-01-10 Tom Tromey <tom@tromey.com>
14201 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14203 2017-01-10 Tom Tromey <tom@tromey.com>
14205 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14206 (ltpy_get_all_source_lines): Use gdbpy_ref.
14208 2017-01-10 Tom Tromey <tom@tromey.com>
14210 * python/py-framefilter.c (extract_sym, extract_value)
14211 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14214 2017-01-10 Tom Tromey <tom@tromey.com>
14216 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14218 2017-01-10 Tom Tromey <tom@tromey.com>
14220 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14222 2017-01-10 Tom Tromey <tom@tromey.com>
14224 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14227 2017-01-10 Tom Tromey <tom@tromey.com>
14229 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14231 2017-01-10 Tom Tromey <tom@tromey.com>
14233 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14234 (typy_range): Use gdbpy_ref.
14236 2017-01-10 Tom Tromey <tom@tromey.com>
14238 * python/py-threadevent.c (create_thread_event_object): Use
14240 * python/py-stopevent.c (create_stop_event_object): Simplify.
14241 (emit_stop_event): Use gdbpy_ref.
14242 * python/py-signalevent.c (create_signal_event_object): Use
14244 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14245 (emit_new_objfile_event, create_clear_objfiles_event_object)
14246 (emit_clear_objfiles_event): Use gdbpy_ref.
14247 * python/py-infevents.c (create_inferior_call_event_object)
14248 (create_register_changed_event_object)
14249 (create_memory_changed_event_object, emit_inferior_call_event)
14250 (emit_memory_changed_event, emit_register_changed_event): Use
14252 * python/py-exitedevent.c (create_exited_event_object)
14253 (emit_exited_event): Use gdbpy_ref.
14254 * python/py-event.h (evpy_emit_event): Remove
14255 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14256 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14257 * python/py-continueevent.c (emit_continue_event): Use
14259 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14260 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14262 * python/py-bpevent.c (create_breakpoint_event_object): Use
14265 2017-01-10 Tom Tromey <tom@tromey.com>
14267 * python/py-ref.h: New file.
14269 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14271 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14273 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14274 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14275 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14276 * ui-out.c (ui_out::redirect): Likewise.
14277 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14278 * cli/cli-logging.c (set_logging_redirect): Update call site of
14280 (handle_redirections): Likewise.
14281 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14282 * top.c (execute_command_to_string): Likewise.
14283 * utils.c (do_ui_out_redirect_pop): Likewise.
14285 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14287 * stack.c (_initialize_stack): Update "frame" command help message.
14289 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14291 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14293 2017-01-06 Yao Qi <yao.qi@linaro.org>
14295 * x86-linux-nat.h: Include gdb_proc_service.h.
14297 2017-01-06 Yao Qi <yao.qi@linaro.org>
14299 * ser-base.h: Include serial.h.
14301 2017-01-06 Yao Qi <yao.qi@linaro.org>
14303 * ppc-linux-tdep.h: Include ppc-tdep.h.
14305 2017-01-06 Yao Qi <yao.qi@linaro.org>
14307 * nat/amd64-linux-siginfo.h: Include signal.h.
14309 2017-01-06 Yao Qi <yao.qi@linaro.org>
14311 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14313 2017-01-06 Yao Qi <yao.qi@linaro.org>
14315 * mi/mi-parse.h: Include mi-cmds.h.
14317 2017-01-06 Yao Qi <yao.qi@linaro.org>
14319 * inf-loop.c: Don't include "target.h".
14320 * inf-loop.h: Include it here.
14322 2017-01-06 Yao Qi <yao.qi@linaro.org>
14324 * dfp.h: Include "dboulest.h" and "expression.h".
14326 2017-01-06 Yao Qi <yao.qi@linaro.org>
14328 * ax-gdb.h: Include "ax.h".
14330 2017-01-06 Yao Qi <yao.qi@linaro.org>
14332 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14333 with nat/gdb_ptrace.h.
14335 2017-01-05 Yao Qi <yao.qi@linaro.org>
14337 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14339 (mips64_fbsd_sigframe_init): Likewise.
14341 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14343 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14344 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14346 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14348 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14349 * NEWS: Mention new FreeBSD/mips native configuration.
14350 * config/mips/fbsd.mh: New file.
14351 * configure.host: Add mips*-*-freebsd*.
14352 * mips-fbsd-nat.c: New file.
14354 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14356 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14357 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14358 * NEWS: Mention new FreeBSD/mips target.
14359 * configure.tgt: Add mips*-*-freebsd*.
14360 * mips-fbsd-tdep.c: New file.
14361 * mips-fbsd-tdep.h: New file.
14363 2017-01-04 Yao Qi <yao.qi@linaro.org>
14365 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14366 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14368 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14370 Update copyright year range in all GDB files.
14372 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14374 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
14376 For older changes see ChangeLog-2016.
14382 version-control: never