1 2017-11-04 Tom Tromey <tom@tromey.com>
3 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
4 (adi_read_versions): Change "tags" to "gdb_byte *".
5 (adi_print_versions): Likewise.
7 2017-11-04 Tom Tromey <tom@tromey.com>
10 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
11 from start_rbreak_breakpoints.
12 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
13 * breakpoint.h (class scoped_rbreak_breakpoints): New.
14 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
15 * symtab.c (do_end_rbreak_breakpoints): Remove.
16 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
18 2017-11-04 Tom Tromey <tom@tromey.com>
20 * cp-namespace.c (reset_directive_searched): Remove.
21 (cp_lookup_symbol_via_imports): Use scoped_restore.
22 * cp-support.c (reset_directive_searched): Remove.
23 (make_symbol_overload_list_using): Use scoped_restore.
24 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
25 (reset_directive_searched): Remove.
27 2017-11-04 Tom Tromey <tom@tromey.com>
29 * symfile.c (find_separate_debug_file_by_debuglink): Use
32 2017-11-04 Tom Tromey <tom@tromey.com>
34 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
36 (compute_stack_depth): Likewise.
37 (do_compile_dwarf_expr_to_c): Use std::vector.
39 2017-11-04 Tom Tromey <tom@tromey.com>
41 * compile/compile-object-load.c (link_callbacks_einfo): Use
44 2017-11-04 Tom Tromey <tom@tromey.com>
46 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
47 Use scoped_free_pendings.
48 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
50 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
51 (xcoff_initial_scan): Likewise.
52 * buildsym.c (reset_symtab_globals): Update comment.
53 (scoped_free_pendings): Rename from really_free_pendings.
54 (prepare_for_building): Update comment.
55 (buildsym_init): Likewise.
56 * buildsym.h (class scoped_free_pendings): New class.
57 (really_free_pendings): Don't declare.
59 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
61 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
62 output when converting a zero value to a special byteorder format.
64 2017-11-02 Yao Qi <yao.qi@linaro.org>
66 * frame.c (do_frame_register_read): Remove aspace.
67 * jit.c (jit_frame_sniffer): Likwise.
68 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
69 * regcache.c (regcache::regcache): Pass nullptr.
70 (regcache_print): Caller updated.
71 * regcache.h (regcache::regcache): Remove one constructor
74 2017-11-02 Yao Qi <yao.qi@linaro.org>
76 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
78 2017-11-02 Yao Qi <yao.qi@linaro.org>
80 * breakpoint.c (insert_single_step_breakpoints): Update.
81 * frame.c (struct frame_info) <aspace>: Add const.
82 (frame_save_as_regcache): Add const.
83 (get_frame_address_space): Return const address_space *.
84 * frame.h (get_frame_address_space): Update declaration.
85 * infrun.c (struct step_over_info) <aspace>: Add const.
86 (set_step_over_info): Make aspace const.
87 (displaced_step_prepare_throw): Change variable const.
90 (adjust_pc_after_break): Likewise.
91 (save_waitstatus): Likewise.
92 (handle_signal_stop): Likewise.
93 (keep_going_pass_signal): Likewise.
94 * jit.c (jit_frame_sniffer): Add const.
95 * mips-tdep.c (mips_single_step_through_delay): Likewise.
96 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
97 * record-full.c (record_full_wait_1): Likewise.
98 * regcache.c (regcache::regcache): Change parameter to const.
99 * regcache.h (regcache::regcache): Likewise.
100 (regcache::aspace): Return const address_space *.
101 (regcache) <m_aspace>: Add const.
103 2017-11-02 Yao Qi <yao.qi@linaro.org>
105 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
106 * frame.c (create_sentinel_frame): Likewise.
107 * infrun.c (displaced_step_prepare_throw): Likewise.
109 (thread_still_needs_step_over_bp): Likewise.
111 (do_target_wait): Likewise.
112 (adjust_pc_after_break): Likewise.
113 (handle_syscall_event): Likewise.
114 (save_waitstatus): Likewise.
115 (handle_inferior_event_1): Likewise.
116 (handle_signal_stop): Likewise.
117 (keep_going_pass_signal): Likewise.
118 * linux-nat.c (status_callback): Likewise.
119 (save_stop_reason): Likewise.
120 (resume_stopped_resumed_lwps): Likewise.
121 * record-full.c (record_full_exec_insn): Likewise.
122 (record_full_wait_1): Likewise.
123 * regcache.c (get_regcache_aspace): Remove.
124 * regcache.h (get_regcache_aspace): Remove.
126 2017-11-02 Yao Qi <yao.qi@linaro.org>
128 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
129 (init_regcache_descr): Use gdbarch_num_regs.
130 (regcache::regcache): Likewise.
131 (regcache::get_register_status): Likewise.
132 (regcache::assert_raw_regnum): Likewise.
133 (regcache::cooked_read): Likewise.
134 (regcache::cooked_read_value): Likewise.
135 (regcache::cooked_write): Likewise.
136 (regcache::dump): Likewise.
137 (regcache::num_raw_registers): New method.
138 * regcache.h (class regcache) <num_raw_registers>: New.
140 2017-11-02 Yao Qi <yao.qi@linaro.org>
142 * regcache.c (regcache::assert_regnum): New method.
143 (regcache::invalidate): Call assert_regnum.
144 (regcache::raw_update): Likewise.
145 (regcache::raw_write): Likewise.
146 (regcache::raw_read_part): Likewise.
147 (regcache::raw_write_part): Likewise.
148 (regcache::raw_supply): Likewise.
149 (regcache::raw_supply_integer): Likewise.
150 (regcache::raw_supply_zeroed): Likewise.
151 (regcache::raw_collect): Likewise.
152 (regcache::raw_collect_integer): Likewise.
153 * regcache.h (regcache::assert_regnum): Declare.
155 2017-11-02 Yao Qi <yao.qi@linaro.org>
157 * regcache.c (regcache::dump): Remove code.
159 2017-11-02 Yao Qi <yao.qi@linaro.org>
161 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
163 <sizeof_cooked_register_status>: Remove.
164 (init_regcache_descr): Update.
165 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
166 (regcache::save): Likewise.
167 (regcache::dump): Likewise.
169 2017-11-01 James Bowman <james.bowman@ftdichip.com>
171 * ft32-tdep.c (ft32_fetch_instruction): New function.
172 (ft32_analyze_prologue): Use ft32_fetch_instruction().
174 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
176 * cli/cli-script.c (execute_control_command): Rename to ...
177 (execute_control_command_1): ... this.
178 (execute_control_command): New function.
180 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
182 * tracepoint.c (tfind_command): Remove const_cast.
184 2017-10-30 Mike Gulick <mgulick@mathworks.com>
186 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
188 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
190 * common/common-utils.h (in_inclusive_range): New function.
191 * arm-tdep.c (arm_record_extension_space): Use
193 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
194 * cris-tdep.c (cris_spec_reg_applicable): Use
197 2017-10-30 Pedro Alves <palves@redhat.com>
198 Simon Marchi <simon.marchi@ericsson.com>
200 * remote.c (remote_set_syscall_catchpoint): Build a std::string
201 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
203 2017-10-30 Pedro Alves <palves@redhat.com>
205 * common/common-utils.c (string_appendf, string_vappendf): New
207 * common/common-utils.h (string_appendf, string_vappendf): New
209 * unittests/common-utils-selftests.c (string_appendf_func)
210 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
211 (string_vappendf_tests): New functions.
212 (_initialize_common_utils_selftests): Register "string_appendf" and
213 "string_vappendf tests".
215 2017-10-30 Pedro Alves <palves@redhat.com>
217 * unittests/common-utils-selftests.c (format_func): New typedef.
218 (string_printf_tests, string_vprintf_tests): Tests factored out
220 (test_format_func): ... this new function.
221 (string_printf_tests, string_vprintf_tests): Reimplement on top of
224 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
226 * darwin-nat.c: Remove include of gdb.h.
228 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
230 * xtensa-xtregs.c: Fix formatting issues.
232 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
234 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
236 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
239 * python/py-infthread.c (thpy_get_inferior): Increment reference
240 of inferior before returning it.
242 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
244 * unittests/common-utils-selftests.c (format): Add
247 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
249 * xml-syscall.c (struct syscall_desc): Add constructor.
250 <name>: Change type to std::string.
251 (syscall_desc_up): New typedef.
252 (syscall_desc_p): Remove typeder.
253 (DEF_VEC_P(syscall_desc_p)): Remove.
254 (struct syscall_group_desc): Add constructor.
255 <name>: Change type to std::string.
256 <syscalls>: Change type to std::vector.
257 (syscall_group_desc_up): New typedef.
258 (syscall_group_desc_p): Remove typedef.
259 (DEF_VEC_P(syscall_group_desc_p)): Remove.
260 (struct syscalls_info) <syscalls>: Change type to std::vector of
263 <my_gdb_datadir>: Change type to std::string.
264 (syscalls_info_up): New typedef.
265 (allocate_syscalls_info): Remove.
266 (syscalls_info_free_syscalls_desc): Remove.
267 (syscalls_info_free_syscall_group_desc): Remove.
268 (free_syscalls_info): Remove.
269 (make_cleanup_free_syscalls_info): Remove.
270 (syscall_group_create_syscall_group_desc): Adjust.
271 (syscall_group_add_syscall): Adjust.
272 (syscall_create_syscall_desc): Adjust.
273 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
274 (init_syscalls_info): Adjust.
275 (syscall_group_get_group_by_name): Adjust.
276 (xml_get_syscall_number): Adjust.
277 (xml_get_syscall_name): Adjust.
278 (xml_list_of_syscalls): Adjust.
279 (xml_list_syscalls_by_group): Adjust.
280 (xml_list_of_groups): Adjust.
282 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
284 * probe.h: Don't include gdb_vecs.h.
285 (DEF_VEC_P (probe_p)): Remove.
286 (find_probes_in_objfile): Return an std::vector.
287 * probe.c (find_probes_in_objfile): Likewise.
288 * breakpoint.c (breakpoint_objfile_data)
289 <longjmp_probes>: Change type to std::vector.
290 <exception_probes>: Likewise.
291 (free_breakpoint_probes): Don't manually free vectors.
292 (create_longjmp_master_breakpoint): Adjust.
293 (create_exception_master_breakpoint): Adjust.
294 * solib-svr4.c (svr4_create_probe_breakpoints): Change
295 parameter type, adjust.
296 (svr4_create_solib_event_breakpoints): Adjust.
298 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
300 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
301 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
303 (free_breakpoint_probes): Rename to ...
304 (free_breakpoint_objfile_data): ... this, and call delete on
307 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
309 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
310 (loaded_script_ptr): Remove typedef.
311 (DEF_VEC_P (loaded_script_ptr)): Remove.
312 (struct collect_matching_scripts_data): Add constructor.
313 <scripts_p>: Change type to (pointer to) std::vector.
314 (collect_matching_scripts_data): Adjust.
315 (sort_scripts_by_name): Make suitable for std::sort.
316 (print_scripts): Don't sort vector, adjust to std::vector.
317 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
319 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
321 * symfile.c (filename_language): Make struct, not typedef. Add
323 <ext>: Change type to std::string.
324 (DEF_VEC_O (filename_language)): Remove.
325 (filename_language_table): Change type to std::vector.
326 (add_filename_language): Adjust.
327 (set_ext_lang_command): Adjust.
328 (info_ext_lang_command): Adjust.
329 (deduce_language_from_filename): Adjust.
330 (class scoped_restore_filename_language_table): Remove.
331 (test_filename_language): Use scoped_restore.
332 (test_set_ext_lang_command): Use scoped_restore, adjust to
335 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
337 * symfile.c: Include selftest.h.
338 (class scoped_restore_filename_language_table): New.
339 (test_filename_language): New test.
340 (test_set_ext_lang_command): New test.
341 (_initialize_symfile): Register tests.
343 2017-10-27 Keith Seitz <keiths@redhat.com>
345 * breakpoint.c (print_breakpoint_location): Use the symbol saved
346 in the bp_location, falling back to find_pc_sect_function when
348 (add_location_to_breakpoint): Save sal->symbol.
349 * breakpoint.h (struct bp_location) <symbol>: New field.
350 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
351 * symtab.h (struct symtab_and_line) <symbol>: New field.
353 2017-10-26 Patrick Frants <osscontribute@gmail.com>
356 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
359 2017-10-26 Pedro Alves <palves@redhat.com>
361 * remote.c (remote_async_terminal_ours_p): Delete.
362 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
363 Remove references to 'remote_async_terminal_ours_p'.
365 2017-10-26 Yao Qi <yao.qi@linaro.org>
367 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
369 2017-10-26 Yao Qi <yao.qi@linaro.org>
371 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
373 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
375 * breakpoint.c (bpstat_check_location): Remove cast.
376 (breakpoint_hit_catch_fork): Make aspce const.
377 (breakpoint_hit_catch_solib): Likewise.
378 (breakpoint_hit_catch_exec): Likewise.
379 (breakpoint_hit_ranged_breakpoint): Likewise.
380 (breakpoint_hit_watchpoint): Likewise.
381 (base_breakpoint_breakpoint_hit): Likewise.
382 (bkpt_breakpoint_hit): Likewise.
383 (dprintf_breakpoint_hit): Likewise.
384 (tracepoint_breakpoint_hit): Likewise.
385 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
387 2017-10-26 Yao Qi <yao.qi@linaro.org>
389 * breakpoint.c (breakpoint_location_address_match): Change
390 "struct address_space *" to "const address_space".
391 (breakpoint_location_address_range_overlap): Likewise.
392 (breakpoint_here_p): Likewise.
393 (breakpoint_in_range_p): Likewise.
394 (moribund_breakpoint_here_p): Likewise.
395 (bp_location_inserted_here_p): Likewise.
396 (software_breakpoint_inserted_here_p): Likewise.
397 (hardware_breakpoint_inserted_here_p): Likewise.
398 (hardware_watchpoint_inserted_in_range): Likewise.
399 (bpstat_check_location): Likewise.
400 (bpstat_stop_status): Likewise.
401 (breakpoint_address_match): Likewise.
402 (breakpoint_address_match_range): Likewise.
403 (breakpoint_location_address_match): Likewise.
404 (breakpoint_location_address_range_overlap): Likewise.
405 (insert_single_step_breakpoint): Likewise.
406 (breakpoint_has_location_inserted_here): Likewise.
407 (single_step_breakpoint_inserted_here_p): Likewise.
408 (pc_at_non_inline_function): Likewise.
409 * breakpoint.h (bpstat_stop_status): Update declaration.
410 (breakpoint_here_p): Likewise.
411 (breakpoint_in_range_p): Likewise.
412 (moribund_breakpoint_here_p): Likewise.
413 (breakpoint_inserted_here_p): Likewise.
414 (software_breakpoint_inserted_here_p): Likewise.
415 (hardware_breakpoint_inserted_here_p): Likewise.
416 (breakpoint_has_location_inserted_here): Likewise.
417 (single_step_breakpoint_inserted_here_p): Likewise.
418 (hardware_watchpoint_inserted_in_range): Likewise.
419 (breakpoint_address_match): Likewise.
420 (insert_single_step_breakpoint): Likewise.
421 (pc_at_non_inline_function): Likewise.
422 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
423 * record.c (record_check_stopped_by_breakpoint): Likewise.
424 * record.h (record_check_stopped_by_breakpoint): Likewise.
425 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
427 2017-10-25 Yao Qi <yao.qi@linaro.org>
429 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
430 regcache->arch () instead get_regcache_arch.
431 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
433 (aarch64_fbsd_store_inferior_registers): Likewise.
434 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
435 (store_gregs_to_thread): Likewise.
436 (fetch_fpregs_from_thread): Likewise.
437 (store_fpregs_to_thread): Likewise.
438 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
439 (aarch64_store_return_value): Likewise.
440 (aarch64_software_single_step): Likewise.
441 * aix-thread.c (aix_thread_wait): Likewise.
442 (supply_reg32): Likewise.
443 (supply_sprs64): Likewise.
444 (supply_sprs32): Likewise.
445 (fill_gprs64): Likewise.
446 (fill_gprs32): Likewise.
447 (fill_sprs64): Likewise.
448 (fill_sprs32): Likewise.
449 (store_regs_user_thread): Likewise.
450 (store_regs_kernel_thread): Likewise.
451 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
452 (alphabsd_store_inferior_registers): Likewise.
453 * alpha-tdep.c (alpha_extract_return_value): Likewise.
454 (alpha_store_return_value): Likewise.
455 (alpha_deal_with_atomic_sequence): Likewise.
456 (alpha_next_pc): Likewise.
457 (alpha_software_single_step): Likewise.
458 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
459 (amd64bsd_store_inferior_registers): Likewise.
460 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
462 (amd64_linux_store_inferior_registers): Likewise.
463 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
464 (amd64_collect_native_gregset): Likewise.
465 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
466 (amd64obsd_collect_uthread): Likewise.
467 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
468 (amd64_collect_fpregset): Likewise.
469 (amd64_supply_fxsave): Likewise.
470 (amd64_supply_xsave): Likewise.
471 (amd64_collect_fxsave): Likewise.
472 (amd64_collect_xsave): Likewise.
473 * arc-tdep.c (arc_write_pc): Likewise.
474 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
475 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
476 (arm_fbsd_store_inferior_registers): Likewise.
477 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
478 (store_vfp_regs): Likewise.
479 (arm_linux_fetch_inferior_registers): Likewise.
480 (arm_linux_store_inferior_registers): Likewise.
481 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
482 (arm_linux_sigreturn_next_pc): Likewise.
483 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
484 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
485 (fetch_register): Likewise.
486 (store_register): Likewise.
487 * arm-tdep.c (arm_is_thumb): Likewise.
488 (displaced_in_arm_mode): Likewise.
489 (bx_write_pc): Likewise.
490 (arm_get_next_pcs_addr_bits_remove): Likewise.
491 (arm_software_single_step): Likewise.
492 (arm_extract_return_value): Likewise.
493 (arm_store_return_value): Likewise.
494 (arm_write_pc): Likewise.
495 * bfin-tdep.c (bfin_extract_return_value): Likewise.
496 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
497 (bsd_uthread_store_registers): Likewise.
498 * core-regset.c (fetch_core_registers): Likewise.
499 * corelow.c (get_core_registers): Likewise.
500 * cris-tdep.c (cris_store_return_value): Likewise.
501 (cris_extract_return_value): Likewise.
502 (find_step_target): Likewise.
503 (find_step_target): Likewise.
504 (cris_software_single_step): Likewise.
505 * ctf.c (ctf_fetch_registers): Likewise.
506 * darwin-nat.c (cancel_breakpoint): Likewise.
507 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
508 * frv-tdep.c (frv_extract_return_value): Likewise.
509 * ft32-tdep.c (ft32_store_return_value): Likewise.
510 (ft32_extract_return_value): Likewise.
511 * go32-nat.c (fetch_register): Likewise.
512 (go32_fetch_registers): Likewise.
513 (go32_store_registers): Likewise.
514 (store_register): Likewise.
515 * h8300-tdep.c (h8300_extract_return_value): Likewise.
516 (h8300_store_return_value): Likewise.
517 * hppa-linux-nat.c (fetch_register): Likewise.
518 (store_register): Likewise.
519 (hppa_linux_fetch_inferior_registers): Likewise.
520 (hppa_linux_store_inferior_registers): Likewise.
521 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
522 (i386_darwin_store_inferior_registers): Likewise.
523 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
524 (gnu_store_registers): Likewise.
525 * i386-linux-nat.c (fetch_register): Likewise.
526 (store_register): Likewise.
527 (supply_gregset): Likewise.
528 (fill_gregset): Likewise.
529 (i386_linux_fetch_inferior_registers): Likewise.
530 (i386_linux_store_inferior_registers): Likewise.
531 (i386_linux_resume): Likewise.
532 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
534 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
535 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
536 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
537 (i386obsd_collect_uthread): Likewise.
538 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
539 (i386_supply_gregset): Likewise.
540 (i386_collect_gregset): Likewise.
541 (i386_supply_fpregset): Likewise.
542 (i386_collect_fpregset): Likewise.
543 (i386_mpx_bd_base): Likewise.
544 * i386-v4-nat.c (supply_fpregset): Likewise.
545 (fill_fpregset): Likewise.
546 * i387-tdep.c (i387_supply_fsave): Likewise.
547 (i387_collect_fsave): Likewise.
548 (i387_supply_fxsave): Likewise.
549 (i387_collect_fxsave): Likewise.
550 (i387_supply_xsave): Likewise.
551 (i387_collect_xsave): Likewise.
552 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
553 (ia64_linux_store_registers): Likewise.
554 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
555 (ia64_extract_return_value): Likewise.
556 (ia64_store_return_value): Likewise.
557 (find_func_descr): Likewise.
558 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
559 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
560 (inf_ptrace_store_registers): Likewise.
561 * infrun.c (use_displaced_stepping): Likewise.
562 (displaced_step_prepare_throw): Likewise.
565 (do_target_wait): Likewise.
566 (adjust_pc_after_break): Likewise.
567 (handle_inferior_event_1): Likewise.
568 (handle_signal_stop): Likewise.
569 (save_infcall_suspend_state): Likewise.
570 (restore_infcall_suspend_state): Likewise.
571 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
572 * jit.c (jit_frame_prev_register): Likewise.
573 * linux-nat.c (save_stop_reason): Likewise.
574 (linux_nat_wait_1): Likewise.
575 (resume_stopped_resumed_lwps): Likewise.
576 * linux-record.c (record_linux_sockaddr): Likewise.
577 (record_linux_msghdr): Likewise.
578 (record_linux_system_call): Likewise.
579 * linux-tdep.c (linux_collect_thread_registers): Likewise.
580 * lm32-tdep.c (lm32_extract_return_value): Likewise.
581 (lm32_store_return_value): Likewise.
582 * m32c-tdep.c (m32c_read_flg): Likewise.
583 (m32c_pseudo_register_read): Likewise.
584 (m32c_pseudo_register_write): Likewise.
585 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
586 (m32r_linux_collect_gregset): Likewise.
587 * m32r-tdep.c (m32r_store_return_value): Likewise.
588 (m32r_extract_return_value): Likewise.
589 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
590 (m68kbsd_collect_fpregset): Likewise.
591 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
592 * m68k-linux-nat.c (fetch_register): Likewise.
593 (old_fetch_inferior_registers): Likewise.
594 (old_store_inferior_registers): Likewise.
595 (store_regs): Likewise.
596 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
597 (m68k_svr4_store_return_value): Likewise.
598 * m88k-tdep.c (m88k_store_arguments): Likewise.
599 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
600 (mi_cmd_data_write_register_values): Likewise.
601 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
602 (mips_fbsd_store_inferior_registers): Likewise.
603 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
604 (mips_fbsd_supply_gregs): Likewise.
605 (mips_fbsd_collect_fpregs): Likewise.
606 (mips_fbsd_collect_gregs): Likewise.
607 (mips_fbsd_supply_fpregset): Likewise.
608 (mips_fbsd_collect_fpregset): Likewise.
609 (mips_fbsd_supply_gregset): Likewise.
610 (mips_fbsd_collect_gregset): Likewise.
611 * mips-linux-nat.c (supply_gregset): Likewise.
612 (fill_gregset): Likewise.
613 (supply_fpregset): Likewise.
614 (fill_fpregset): Likewise.
615 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
616 (mips_fill_gregset): Likewise.
617 (mips_supply_fpregset): Likewise.
618 (mips_fill_fpregset): Likewise.
619 (mips64_supply_gregset): Likewise.
620 (micromips_linux_sigframe_validate): Likewise.
621 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
622 (mipsnbsd_fetch_inferior_registers): Likewise.
623 (mipsnbsd_store_inferior_registers): Likewise.
624 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
625 (mipsnbsd_supply_gregset): Likewise.
626 (mipsnbsd_iterate_over_regset_sections): Likewise.
627 (mipsnbsd_supply_reg): Likewise.
628 (mipsnbsd_supply_fpreg): Likewise.
629 * mips-tdep.c (mips_in_frame_stub): Likewise.
630 (mips_dummy_id): Likewise.
631 (is_octeon_bbit_op): Likewise.
632 (micromips_bc1_pc): Likewise.
633 (extended_mips16_next_pc): Likewise.
634 (mips16_next_pc): Likewise.
635 (deal_with_atomic_sequence): Likewise.
636 * moxie-tdep.c (moxie_process_readu): Likewise.
637 * nios2-tdep.c (nios2_get_next_pc): Likewise.
638 * nto-procfs.c (procfs_store_registers): Likewise.
639 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
640 (ppcfbsd_store_inferior_registers): Likewise.
641 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
642 (fetch_altivec_register): Likewise.
643 (get_spe_registers): Likewise.
644 (fetch_spe_register): Likewise.
645 (fetch_altivec_registers): Likewise.
646 (fetch_all_gp_regs): Likewise.
647 (fetch_all_fp_regs): Likewise.
648 (store_vsx_register): Likewise.
649 (store_altivec_register): Likewise.
650 (set_spe_registers): Likewise.
651 (store_spe_register): Likewise.
652 (store_altivec_registers): Likewise.
653 (store_all_gp_regs): Likewise.
654 (store_all_fp_regs): Likewise.
655 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
656 (ppc_linux_collect_gregset): Likewise.
657 (ppc_canonicalize_syscall): Likewise.
658 (ppc_linux_record_signal): Likewise.
659 (ppu2spu_prev_register): Likewise.
660 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
661 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
662 (ppcobsd_store_registers): Likewise.
663 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
665 (ppc_ravenscar_generic_store_registers): Likewise.
666 * procfs.c (procfs_fetch_registers): Likewise.
667 (procfs_store_registers): Likewise.
668 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
669 (ravenscar_store_registers): Likewise.
670 (ravenscar_prepare_to_store): Likewise.
671 * record-btrace.c (record_btrace_fetch_registers): Likewise.
672 * record-full.c (record_full_wait_1): Likewise.
673 (record_full_registers_change): Likewise.
674 (record_full_store_registers): Likewise.
675 (record_full_core_fetch_registers): Likewise.
676 (record_full_save): Likewise.
677 (record_full_goto_insn): Likewise.
678 * regcache.c (regcache_register_size): Likewise.
679 (get_regcache_arch): Remove.
680 (regcache_read_pc): Likewise.
681 * regcache.h (get_regcache_arch): Remove.
682 * remote-sim.c (gdbsim_fetch_register): Likewise.
683 (gdbsim_store_register): Likewise.
684 * remote.c (fetch_register_using_p): Likewise.
685 (send_g_packet): Likewise.
686 (remote_prepare_to_store): Likewise.
687 (store_registers_using_G): Likewise.
688 * reverse.c (save_bookmark_command): Likewise.
689 (goto_bookmark_command): Likewise.
690 * rs6000-aix-tdep.c (branch_dest): Likewise.
691 * rs6000-nat.c (rs6000_ptrace64): Likewise.
692 (fetch_register): Likewise.
693 * rs6000-tdep.c (ppc_supply_reg): Likewise.
694 (ppc_collect_reg): Likewise.
695 (ppc_collect_gregset): Likewise.
696 (ppc_collect_fpregset): Likewise.
697 (ppc_collect_vsxregset): Likewise.
698 (ppc_collect_vrregset): Likewise.
699 (ppc_displaced_step_hw_singlestep): Likewise.
700 (rs6000_pseudo_register_read): Likewise.
701 (rs6000_pseudo_register_write): Likewise.
702 * s390-linux-nat.c (supply_gregset): Likewise.
703 (fill_gregset): Likewise.
704 (s390_linux_fetch_inferior_registers): Likewise.
705 * s390-linux-tdep.c (s390_write_pc): Likewise.
706 (s390_software_single_step): Likewise.
707 (s390_all_but_pc_registers_record): Likewise.
708 (s390_linux_syscall_record): Likewise.
709 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
710 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
711 (shnbsd_store_inferior_registers): Likewise.
712 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
713 (sh_extract_return_value_fpu): Likewise.
714 (sh_store_return_value_nofpu): Likewise.
715 (sh_corefile_supply_regset): Likewise.
716 (sh_corefile_collect_regset): Likewise.
717 * sh64-tdep.c (sh64_extract_return_value): Likewise.
718 (sh64_store_return_value): Likewise.
719 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
720 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
721 (sparc_store_inferior_registers): Likewise.
722 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
723 (sparc_ravenscar_prepare_to_store): Likewise.
724 * sparc-tdep.c (sparc32_store_arguments): Likewise.
725 (sparc_analyze_control_transfer): Likewise.
726 (sparc_step_trap): Likewise.
727 (sparc_software_single_step): Likewise.
728 (sparc32_gdbarch_init): Likewise.
729 (sparc_supply_rwindow): Likewise.
730 (sparc_collect_rwindow): Likewise.
731 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
732 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
733 (sparc64nbsd_collect_gregset): Likewise.
734 (sparc64nbsd_supply_fpregset): Likewise.
735 (sparc64nbsd_collect_fpregset): Likewise.
736 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
737 (sparc64_supply_gregset): Likewise.
738 (sparc64_collect_gregset): Likewise.
739 (sparc64_supply_fpregset): Likewise.
740 (sparc64_collect_fpregset): Likewise.
741 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
742 * spu-tdep.c (spu_unwind_sp): Likewise.
743 (spu2ppu_prev_register): Likewise.
744 (spu_memory_remove_breakpoint): Likewise.
745 * stack.c (return_command): Likewise.
746 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
747 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
748 * tracefile.c (trace_save_ctf): Likewise.
749 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
750 (do_windows_store_inferior_registers): Likewise.
751 (windows_resume): Likewise.
752 * xtensa-linux-nat.c (fill_gregset): Likewise.
753 (supply_gregset_reg): Likewise.
754 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
755 (xtensa_register_read_masked): Likewise.
756 (xtensa_supply_gregset): Likewise.
757 (xtensa_extract_return_value): Likewise.
758 (xtensa_store_return_value): Likewise.
760 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
762 * doublest.c (floatformat_from_string): New function.
763 * doublest.h (floatformat_from_string): Add prototype.
765 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
766 (OP_FLOAT): ... this.
767 * expression.h: Do not include "doublest.h".
768 (union exp_element): Replace doubleconst and decfloatconst by
769 new element floatconst.
770 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
771 (ada_evaluate_subexp): Likewise.
772 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
773 OP_DOUBLE and OP_DECFLOAT.
774 * expprint.c (print_subexp_standard): Likewise.
775 (dump_subexp_body_standard): Likewise.
776 * breakpoint.c (watchpoint_exp_is_const): Likewise.
778 * parse.c: Include "dfp.h".
779 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
780 (write_exp_elt_floatcst): New function.
781 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
783 (operator_check_standard): Likewise.
784 (parse_float): Do not accept suffix. Take type as input. Return bool.
785 Return target format buffer instead of host DOUBLEST.
786 Use floatformat_from_string and decimal_from_string to parse
787 either binary or decimal floating-point types.
788 (parse_c_float): Remove.
789 * parser-defs.h: Do not include "doublest.h".
790 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
791 (write_exp_elt_floatcst): Add prototype.
792 (parse_float): Update prototype.
793 (parse_c_float): Remove.
795 * c-exp.y: Do not include "dfp.h".
796 (typed_val_float): Use byte buffer instead of DOUBLEST.
797 (typed_val_decfloat): Remove.
799 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
800 (parse_number): Update to new parse_float interface.
801 Parse suffixes and determine type before calling parse_float.
802 Handle decimal and binary FP types the same way.
804 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
805 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
806 (parse_number): Update to new parse_float interface.
807 Parse suffixes and determine type before calling parse_float.
809 * f-exp.y: Replace dval by typed_val_float.
810 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
811 (parse_number): Use parse_float instead of atof.
813 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
814 (parse_go_float): Remove.
815 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
816 (parse_number): Call parse_float instead of parse_go_float.
817 Parse suffixes and determine type before calling parse_float.
819 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
820 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
821 (parse_number): Update to new parse_float interface.
822 Parse suffixes and determine type before calling parse_float.
824 * m2-exp.y: Replace dval by byte buffer val.
825 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
826 (parse_number): Call parse_float instead of atof.
828 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
829 (lex_number): Call parse_float instead of strtod.
830 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
831 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
832 Use write_exp_elt_floatcst.
833 (unit_testing): Remove static variable.
834 (rust_type): Do not check unit_testing.
835 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
837 * ada-exp.y (type_float, type_double): Remove.
838 (typed_val_float): Use byte buffer instead of DOUBLEST.
839 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
840 * ada-lex.l (processReal): Use parse_float instead of sscanf.
842 2017-10-25 Alan Hayward <alan.hayward@arm.com>
844 * aarch64-tdep.h (enum aarch64_regnum): Remove.
845 * arch/aarch64.h: New file.
847 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
849 * dfp.h (decimal_from_string): Use const reference for argument.
850 * dfp.c (decimal_from_string): Likewise.
852 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
854 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
855 * sh64-tdep.c (sh64_do_fp_register): Likewise.
856 * mips-tdep.c (mips_print_fp_register): Likewise.
858 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
860 * common/format.h (enum argclass): Replace decfloat_arg by
861 dec32float_arg, dec64float_arg, and dec128float_arg.
862 * common/format.c (parse_format_string): Update to return
863 new decimal float argument classes.
865 * printcmd.c (printf_decfloat): Rename to ...
866 (printf_floating): ... this. Add argclass argument, and use it
867 instead of parsing the format string again. Add support for
868 binary floating-point values, using floatformat_to_string.
869 Convert value to the target format if it doesn't already match.
870 (ui_printf): Call printf_floating instead of printf_decfloat,
871 also for double_arg / long_double_arg. Pass argclass.
873 * dfp.c (decimal_to_string): Add format string argument.
874 * dfp.h (decimal_to_string): Likewise.
876 * doublest.c (floatformat_to_string): Add format string argument.
877 * doublest.h (floatformat_to_string): Likewise.
879 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
881 * doublest.c (floatformat_precision): New routine.
882 (floatformat_to_string): Likewise.
883 * doublest.c (floatformat_to_string): Add prototype.
885 * printcmd.c (print_scalar_formatted): Only call print_floating
886 on floating-point types.
887 * valprint.c: Do not include "floatformat.h".
888 (generic_val_print_decfloat): Remove.
889 (generic_val_print): Call generic_val_print_float for both
890 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
891 (print_floating): Use floatformat_to_string. Handle decimal float.
892 (print_decimal_floating): Remove, merge into floatformat_to_string.
893 * value.h (print_decimal_floating): Remove.
895 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
897 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
899 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
901 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
903 * memattr.h: Don't include vec.h.
904 (struct mem_attrib): Initialize fields.
905 <unknown>: New static method.
906 (struct mem_region): Add constructors, operator<, initialize
908 * memattr.c: Include algorithm.
909 (default_mem_attrib, unknown_mem_attrib): Remove.
910 (user_mem_region_list): New global.
911 (target_mem_region_list, mem_region_list): Change type to
912 std::vector<mem_region>.
913 (mem_use_target): Now a function.
914 (target_mem_regions_valid): Change type to bool.
915 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
916 (require_user_regions): Adjust.
917 (require_target_regions): Adjust.
918 (create_mem_region): Adjust.
919 (lookup_mem_region): Adjust.
920 (invalidate_target_mem_regions): Adjust.
921 (mem_clear): Rename to...
922 (user_mem_clear): ... this, and adjust.
923 (mem_command): Adjust.
924 (info_mem_command): Adjust.
925 (mem_enable, enable_mem_command, mem_disable,
926 disable_mem_command): Adjust.
927 (mem_delete): Adjust.
928 (delete_mem_command): Adjust.
929 * memory-map.h (parse_memory_map): Return an std::vector.
930 * memory-map.c (parse_memory_map): Likewise.
931 (struct memory_map_parsing_data): Add constructor.
932 <memory_map>: Point to std::vector.
933 (memory_map_start_memory): Adjust.
934 (memory_map_end_memory): Adjust.
935 (memory_map_end_property): Adjust.
936 (clear_result): Remove.
937 * remote.c (remote_memory_map): Return an std::vector.
938 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
940 (target_debug_print_mem_region_vector): New.
941 * target-delegates.c: Regenerate.
942 * target.h (mem_region_vector): New typedef.
943 (to_memory_map): Return mem_region_vector.
944 (target_memory_map): Return an std::vector.
945 * target.c (target_memory_map): Return an std::vector.
946 (flash_erase_command): Adjust.
948 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
950 * memory-map.c (struct memory_map_parsing_data) <property_name>:
951 Change type to std::string.
952 (memory_map_start_property): Adjust.
953 (memory_map_end_property): Adjust.
955 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
957 * infrun.h: Include common/byte-vector.h.
958 (struct displaced_step_closure): New struct.
959 (struct buf_displaced_step_closure): New struct.
960 * infrun.c (displaced_step_closure::~displaced_step_closure):
961 Provide default implementation.
962 (displaced_step_clear): Deallocate step closure with delete.
963 * aarch64-tdep.c (displaced_step_closure): Rename to ...
964 (aarch64_displaced_step_closure): ... this, extend
965 displaced_step_closure.
966 (aarch64_displaced_step_data) <dsc>: Change type to
967 aarch64_displaced_step_closure.
968 (aarch64_displaced_step_copy_insn): Adjust to type change, use
970 (aarch64_displaced_step_fixup): Add cast for displaced step
972 * amd64-tdep.c (displaced_step_closure): Rename to ...
973 (amd64_displaced_step_closure): ... this, extend
974 displaced_step_closure.
975 <insn_buf>: Change type to std::vector<gdb_byte>.
977 (fixup_riprel): Change type of DSC parameter, adjust to type
979 (fixup_displaced_copy): Change type of DSC parameter.
980 (amd64_displaced_step_copy_insn): Instantiate
981 amd64_displaced_step_closure.
982 (amd64_displaced_step_fixup): Add cast for closure type, adjust
983 to type change of insn_buf.
984 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
986 (arm_linux_copy_svc): Likewise.
987 (cleanup_kernel_helper_return): Likewise.
988 (arm_catch_kernel_helper_return): Likewise.
989 (arm_linux_displaced_step_copy_insn): Instantiate
990 arm_displaced_step_closure.
991 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
992 (displaced_read_reg): Change type of parameter DSC.
993 (branch_write_pc): Likewise.
994 (load_write_pc): Likewise.
995 (alu_write_pc): Likewise.
996 (displaced_write_reg): Likewise.
997 (arm_copy_unmodified): Likewise.
998 (thumb_copy_unmodified_32bit): Likewise.
999 (thumb_copy_unmodified_16bit): Likewise.
1000 (cleanup_preload): Likewise.
1001 (install_preload): Likewise.
1002 (arm_copy_preload): Likewise.
1003 (thumb2_copy_preload): Likewise.
1004 (install_preload_reg): Likewise.
1005 (arm_copy_preload_reg): Likewise.
1006 (cleanup_copro_load_store): Likewise.
1007 (install_copro_load_store): Likewise.
1008 (arm_copy_copro_load_store) Likewise.
1009 (thumb2_copy_copro_load_store): Likewise.
1010 (cleanup_branch): Likewise.
1011 (install_b_bl_blx): Likewise.
1012 (arm_copy_b_bl_blx): Likewise.
1013 (thumb2_copy_b_bl_blx): Likewise.
1014 (thumb_copy_b): Likewise.
1015 (install_bx_blx_reg): Likewise.
1016 (arm_copy_bx_blx_reg): Likewise.
1017 (thumb_copy_bx_blx_reg): Likewise.
1018 (cleanup_alu_imm): Likewise.
1019 (arm_copy_alu_imm): Likewise.
1020 (thumb2_copy_alu_imm): Likewise.
1021 (cleanup_alu_reg): Likewise.
1022 (install_alu_reg): Likewise.
1023 (arm_copy_alu_reg): Likewise.
1024 (thumb_copy_alu_reg): Likewise.
1025 (cleanup_alu_shifted_reg): Likewise.
1026 (install_alu_shifted_reg): Likewise.
1027 (arm_copy_alu_shifted_reg): Likewise.
1028 (cleanup_load): Likewise.
1029 (cleanup_store): Likewise.
1030 (arm_copy_extra_ld_st): Likewise.
1031 (install_load_store): Likewise.
1032 (thumb2_copy_load_literal): Likewise.
1033 (thumb2_copy_load_reg_imm): Likewise.
1034 (arm_copy_ldr_str_ldrb_strb): Likewise.
1035 (cleanup_block_load_all): Likewise.
1036 (cleanup_block_store_pc): Likewise.
1037 (cleanup_block_load_pc): Likewise.
1038 (arm_copy_block_xfer): Likewise.
1039 (thumb2_copy_block_xfer): Likewise.
1040 (cleanup_svc): Likewise.
1041 (install_svc): Likewise.
1042 (arm_copy_svc): Likewise.
1043 (thumb_copy_svc): Likewise.
1044 (arm_copy_undef): Likewise.
1045 (thumb_32bit_copy_undef): Likewise.
1046 (arm_copy_unpred): Likewise.
1047 (arm_decode_misc_memhint_neon): Likewise.
1048 (arm_decode_unconditional): Likewise.
1049 (arm_decode_miscellaneous): Likewise.
1050 (arm_decode_dp_misc): Likewise.
1051 (arm_decode_ld_st_word_ubyte): Likewise.
1052 (arm_decode_media): Likewise.
1053 (arm_decode_b_bl_ldmstm): Likewise.
1054 (arm_decode_ext_reg_ld_st): Likewise.
1055 (thumb2_decode_dp_shift_reg): Likewise.
1056 (thumb2_decode_ext_reg_ld_st): Likewise.
1057 (arm_decode_svc_copro): Likewise.
1058 (thumb2_decode_svc_copro): Likewise.
1059 (install_pc_relative): Likewise.
1060 (thumb_copy_pc_relative_16bit): Likewise.
1061 (thumb_decode_pc_relative_16bit): Likewise.
1062 (thumb_copy_pc_relative_32bit): Likewise.
1063 (thumb_copy_16bit_ldr_literal): Likewise.
1064 (thumb_copy_cbnz_cbz): Likewise.
1065 (thumb2_copy_table_branch): Likewise.
1066 (cleanup_pop_pc_16bit_all): Likewise.
1067 (thumb_copy_pop_pc_16bit): Likewise.
1068 (thumb_process_displaced_16bit_insn): Likewise.
1069 (decode_thumb_32bit_ld_mem_hints): Likewise.
1070 (thumb_process_displaced_32bit_insn): Likewise.
1071 (thumb_process_displaced_insn): Likewise.
1072 (arm_process_displaced_insn): Likewise.
1073 (arm_displaced_init_closure): Likewise.
1074 (arm_displaced_step_fixup): Add cast for closure.
1075 * arm-tdep.h: Include infrun.h.
1076 (displaced_step_closure): Rename to ...
1077 (arm_displaced_step_closure): ... this, extend
1078 displaced_step_closure.
1079 <u::svc::copy_svc_os>: Change type of parameter DSC.
1080 <cleanup>: Likewise.
1081 (arm_process_displaced_insn): Likewise.
1082 (arm_displaced_init_closure): Likewise.
1083 (displaced_read_reg): Likewise.
1084 (displaced_write_reg): Likewise.
1085 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1087 * i386-tdep.h: Include infrun.h.
1088 (i386_displaced_step_closure): New typedef.
1089 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1090 i386_displaced_step_closure.
1091 (i386_displaced_step_fixup): Adjust.
1092 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1093 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1095 (ppc_displaced_step_fixup): Adjust.
1096 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1097 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1099 (s390_displaced_step_fixup): Adjust.
1101 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1103 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1104 Remove declarations.
1106 2017-10-20 Tom Tromey <tom@tromey.com>
1108 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1110 (gdb_bfd_record_inclusion): Update.
1111 (bfdp): Remove typedef.
1113 2017-10-20 Tom Tromey <tom@tromey.com>
1115 * gdb_bfd.c (gdb_bfd_ref): Use new.
1116 (struct gdb_bfd_data): Add constructor, destructor, and member
1118 (gdb_bfd_unref): Use delete.
1120 2017-10-20 Tom Tromey <tom@tromey.com>
1122 * exec.c (exec_file_attach): Use new_bfd_ref.
1123 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1124 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1125 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1127 * gdb_bfd.h (new_bfd_ref): New function.
1129 2017-10-20 Pedro Alves <palves@redhat.com>
1131 * main.c (captured_command_loop): Add attribute noinline.
1133 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1135 * interps.c (struct interp_factory): Add constructor.
1136 (interp_factory_p): Remove typedef.
1137 (DEF_VEC_P(interp_factory_p)): Remove.
1138 (interpreter_factories): Change type to std::vector.
1139 (interp_factory_register): Adjust.
1140 (interp_lookup): Adjust.
1141 (interpreter_completer): Adjust.
1143 2017-10-19 Tom Tromey <tom@tromey.com>
1145 * break-catch-syscall.c (catch_syscall_completer): Use
1146 std::string, gdb::unique_xmalloc_ptr.
1148 2017-10-19 Tom Tromey <tom@tromey.com>
1150 * infcall.c (call_function_by_hand_dummy): Use std::string.
1152 2017-10-19 Tom Tromey <tom@tromey.com>
1154 * mi/mi-main.c (mi_cmd_execute): Update.
1155 * top.h (prepare_execute_command): Return scoped_value_mark.
1156 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1157 Add move constructor.
1158 * top.c (prepare_execute_command): Return scoped_value_mark.
1159 (execute_command): Update.
1161 2017-10-19 Pedro Alves <palves@redhat.com>
1163 * xml-support.c (xml_fetch_content_from_file): Check fread's
1166 2017-10-19 Pedro Alves <palves@redhat.com>
1168 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1170 (handle_error_fd): New function.
1171 (ser_base_async): Add/delete an event loop file handler for
1174 2017-10-19 Pedro Alves <palves@redhat.com>
1176 * xml-support.c (xml_fetch_content_from_file): Don't read in
1177 chunks. Instead use fseek to determine the file's size, and read
1180 2017-11-18 Keith Seitz <keiths@redhat.com>
1182 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1184 Add whitespace to front of type name.
1186 2017-10-18 Keith Seitz <keiths@redhat.com>
1188 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1189 DW_AT_accessibility.
1191 2017-10-18 Yao Qi <yao.qi@linaro.org>
1193 * features/tic6x-c62x-linux.c: Remove.
1195 2017-10-17 Tom Tromey <tom@tromey.com>
1197 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1198 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1199 (do_mixed_source_and_assembly): Likewise.
1201 2017-10-17 Tom Tromey <tom@tromey.com>
1203 * regcache.c (regcache::xfer_part): Remove assertion.
1205 2017-10-17 Pedro Alves <palves@redhat.com>
1207 * xml-support.c (xml_fetch_content_from_file): Call
1208 unique_ptr::release() instead unique_ptr::get() when passing
1211 2017-10-17 Yao Qi <yao.qi@linaro.org>
1213 * regcache.c (regcache::xfer_part): Remove parameters read and
1214 write, add parameter is_raw. All callers are updated.
1216 2017-10-16 Keith Seitz <keiths@redhat.com>
1218 * c-typeprint.c (enum access_specifier): Moved here from
1220 (output_access_specifier): New function.
1221 (c_type_print_base): Consider typedefs when assessing
1222 whether access labels are needed.
1223 Use output_access_specifier as needed.
1224 Output access specifier for typedefs, if needed.
1225 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1226 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1228 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1231 2017-10-16 Tom Tromey <tom@tromey.com>
1233 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1234 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1235 * target.c (target_fileio_read_stralloc): Update.
1236 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1237 * target.h (target_fileio_read_stralloc): Return
1240 2017-10-16 Tom Tromey <tom@tromey.com>
1242 * xml-syscall.c (xml_init_syscalls_info): Update.
1243 * xml-support.c (xinclude_start_include): Update.
1244 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1245 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1246 (xml_fetch_content_from_file): Likewise.
1247 * osdata.c (get_osdata): Update.
1248 * target.h (target_read_stralloc, target_get_osdata): Return
1250 * solib-aix.c (solib_aix_get_library_list): Update.
1251 * solib-target.c (solib_target_current_sos): Update.
1252 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1253 * xml-tdesc.c (fetch_available_features_from_target): Update.
1254 (target_fetch_description_xml): Update.
1255 (file_read_description_xml): Update.
1256 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1257 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1258 (remote_pid_to_exec_file): Update.
1259 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1260 (target_get_osdata): Likewise.
1262 2017-10-16 Tom Tromey <tom@tromey.com>
1264 * remote.c (remote_register_number_and_offset): Use std::vector.
1265 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1266 (putpkt_binary): Use gdb::def_vector.
1267 (compare_sections_command): Use gdb::byte_vector.
1269 2017-10-16 Tom Tromey <tom@tromey.com>
1271 * ppc-linux-nat.c (hwdebug_insert_point): Use
1272 gdb::unique_xmalloc_ptr, XDUP.
1274 2017-10-16 Tom Tromey <tom@tromey.com>
1276 * probe.c (parse_probes): Use std::string.
1277 (info_probes_for_ops, enable_probes_command)
1278 (disable_probes_command): Remove cleanups.
1280 2017-10-16 Tom Tromey <tom@tromey.com>
1282 * buildsym.c (block_compar): Remove.
1283 (end_symtab_get_static_block): Use std::vector.
1285 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1287 * memrange.h (struct mem_range): Define operator< and operator==.
1288 (mem_range_s): Remove.
1289 (DEF_VEC_O (mem_range_s)): Remove.
1290 (normalize_mem_ranges): Change parameter type to std::vector.
1291 * memrange.c (compare_mem_ranges): Remove.
1292 (normalize_mem_ranges): Change parameter type to std::vector,
1293 adjust to vector change.
1294 * exec.c (section_table_available_memory): Return vector, remove
1296 (section_table_read_available_memory): Adjust to std::vector
1298 * remote.c (remote_read_bytes): Adjust to std::vector
1300 * tracepoint.h (traceframe_available_memory): Change parameter
1301 type to std::vector.
1302 * tracepoint.c (traceframe_available_memory): Change parameter
1303 type to std::vector, adjust.
1304 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1306 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1307 unittests/memrange-selftests.c.
1308 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1309 * gdb/unittests/memrange-selftests.c: New file.
1311 2017-10-16 Pedro Alves <palves@redhat.com>
1313 * elfread.c (probe_key_free): Rename range-for variable.
1314 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1315 (find_probe_by_pc, collect_probes): Rename range-for variable.
1317 2017-10-16 Yao Qi <yao.qi@linaro.org>
1319 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1320 * features/tic6x-c62x.c: Remove.
1321 * features/tic6x-c64x-linux.c: Remove.
1322 * features/tic6x-c64x.c: Remove.
1323 * features/tic6x-c64xp-linux.c: Remove.
1324 * features/tic6x-c64xp.c: Remove.
1325 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1326 initialize_tdesc_tic6x_*_linux functions.
1327 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1328 initialize_tdesc_tic6x_* functions.
1330 2017-10-16 Yao Qi <yao.qi@linaro.org>
1332 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1334 * regformats/tic6x-c62x.dat: Remove.
1335 * regformats/tic6x-c64x.dat: Remove.
1336 * regformats/tic6x-c64xp.dat: Remove.
1338 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1340 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1341 (the !HAVE_LIBEXPAT version).
1343 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1345 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1348 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1350 * target.h: Include tracepoint.h.
1351 (enum trace_find_type): Move to tracepoint.h.
1352 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1353 * tracepoint.h: Don't include target.h
1354 (enum trace_find_type): Move from target.h.
1355 (parse_traceframe_info): Return a unique ptr.
1356 * tracepoint.c (current_traceframe_info): Change type to unique
1358 (free_traceframe_info): Remove.
1359 (clear_traceframe_info): Don't manually free
1360 current_traceframe_info.
1361 (free_result): Remove.
1362 (parse_traceframe_info): Return a unique ptr.
1363 (get_traceframe_info): Adjust to unique ptr.
1364 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1365 * remote.c (remote_traceframe_info): Return a unique ptr.
1366 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1368 * target-debug.h (target_debug_print_traceframe_info_up): New
1370 * target-delegates.c: Regenerate.
1372 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1374 * memrange.h (struct mem_range): Add constructors.
1375 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1376 std::vector<mem_range>.
1377 * tracepoint.c (free_traceframe_info): Don't manually free
1379 (traceframe_info_start_memory): Adjust to vector change.
1380 (traceframe_available_memory): Likewise.
1381 * tracefile-tfile.c (build_traceframe_info): Likewise.
1382 * ctf.c (ctf_traceframe_info): Likewise.
1384 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1386 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1388 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1389 (traceframe_info_start_tvar): Adjust to vector change.
1390 (parse_traceframe_info): Allocate with new.
1391 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1393 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1395 tfile_traceframe_info): Allocate with new.
1396 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1399 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1401 * tracepoint.c (traceframe_info): Rename to...
1402 (current_traceframe_info): ...this.
1403 (clear_traceframe_info): Adjust.
1404 (get_traceframe_info): Adjust.
1406 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1408 * nat/linux-osdata.c: Include algorithm.
1409 (compare_processes): Remove.
1410 (struct pid_pgid_entry): New struct.
1411 (linux_xfer_osdata_processgroups): Use std::vector instead of
1414 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1416 * objfiles.h: Don't include symfile.h.
1417 (struct partial_symbol): Remove forward-declaration.
1418 (struct objfile) <global_psymbols, static_psymbols>: Change type
1419 to std::vector<partial_symbol *>.
1420 * objfiles.c (objfile::objfile): Don't memset those fields.
1421 (objfile::~objfile): Don't free those fields.
1422 * psympriv.h (struct psymbol_allocation_list): Remove
1423 forward-declaration.
1424 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1426 (start_psymtab_common): Change parameters to std::vector.
1427 * psymtab.c: Include algorithm.
1428 (require_partial_symbols): Call shrink_to_fit.
1429 (find_pc_sect_psymbol): Adjust to vector change.
1430 (match_partial_symbol): Likewise.
1431 (lookup_partial_symbol): Likewise.
1432 (psym_relocate): Likewise.
1433 (dump_psymtab): Likewise.
1434 (recursively_search_psymtabs): Likewise.
1435 (compare_psymbols): Remove.
1436 (sort_pst_symbols): Adjust to vector change.
1437 (start_psymtab_common): Likewise.
1438 (end_psymtab_common): Likewise.
1439 (psymbol_bcache_full): De-constify return value.
1440 (add_psymbol_to_bcache): Likewise.
1441 (extend_psymbol_list): Remove.
1442 (append_psymbol_to_list): Adjust to vector change.
1443 (add_psymbol_to_list): Likewise.
1444 (init_psymbol_list): Likewise.
1445 (maintenance_info_psymtabs): Likewise.
1446 (maintenance_check_psymtabs): Likewise.
1447 * symfile.h (struct psymbol_allocation_list): Remove.
1448 * symfile.c (reread_symbols): Adjust to vector change.
1449 * dbxread.c (start_psymtab): Change type of parameters.
1450 (dbx_symfile_read): Adjust to vector change.
1451 (read_dbx_symtab): Likewise.
1452 (start_psymtab): Change type of parameters.
1453 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1454 (create_partial_symtab): Likewise.
1455 (add_partial_symbol): Likewise.
1456 (write_one_signatured_type): Likewise.
1457 (recursively_write_psymbols): Likewise.
1458 * mdebugread.c (parse_partial_symbols): Likewise.
1459 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1460 (scan_xcoff_symtab): Adjust to vector change.
1461 (xcoff_initial_scan): Likewise.
1463 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1465 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1467 2017-10-13 Yao Qi <yao.qi@linaro.org>
1469 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1470 Remove s390x-*-expedite, add s390x-expedite.
1472 2017-10-13 Yao Qi <yao.qi@linaro.org>
1474 * features/s390-gs-linux64.c: Regenerated.
1475 * features/s390x-gs-linux64.c: Regenerated.
1477 2017-10-13 Tom Tromey <tom@tromey.com>
1479 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1480 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1482 * symfile.c (symbol_file_add_with_addrs): Use new.
1483 (symbol_file_add_separate): Update comment.
1484 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1485 * jit.c (jit_object_close_impl): Use new.
1486 (jit_unregister_code): Use delete.
1487 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1488 (~objfile): Rename from free_objfile.
1489 (free_objfile_separate_debug, do_free_objfile_cleanup)
1490 (free_all_objfiles, objfile_purge_solibs): Use delete.
1491 * objfiles.h (struct objfile): Add constructor and destructor.
1492 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1493 (allocate_objfile, free_objfile): Don't declare.
1494 (struct objstats): Add initializers.
1496 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1498 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1499 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1500 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1501 * gdbarch.h: Regenerate.
1502 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1504 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1505 (i386_displaced_step_fixup): Adjust comment.
1506 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1508 2017-10-12 Tom Tromey <tom@tromey.com>
1510 * prologue-value.h (pv_area::store_would_trash): Return bool.
1511 (pv_area::find_reg): Likewise.
1512 * prologue-value.c (pv_area::store_would_trash): Return bool.
1513 (pv_area::find_reg): Likewise.
1515 2017-10-12 Tom Tromey <tom@tromey.com>
1517 * s390-linux-tdep.c (s390_store, s390_load)
1518 (s390_check_for_saved, s390_analyze_prologue): Update.
1519 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1520 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1521 * prologue-value.h (class pv_area): Move from prologue-value.c.
1522 Change names of members. Add constructor, destructor, member
1524 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1525 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1526 (pv_area_fetch, pv_area_scan): Don't declare.
1527 * prologue-value.c (struct pv_area::area_entry): Now member of
1529 (struct pv_area): Move to prologue-value.h.
1530 (pv_area::pv_area): Rename from make_pv_area.
1531 (pv_area::~pv_area): Rename from free_pv_area.
1532 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1533 (clear_entries, find_entry, overlaps, store_would_trash, store)
1534 (fetch, find_reg, scan): Now member of pv_area.
1535 Remove "area" argument. Update.
1536 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1538 * mn10300-tdep.c (push_reg, check_for_saved)
1539 (mn10300_analyze_prologue): Update.
1540 * mep-tdep.c (is_arg_spill, check_for_saved)
1541 (mep_analyze_prologue): Update.
1542 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1543 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1544 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1545 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1547 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1548 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1550 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1552 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1553 * linux-nat.c (linux_nat_delete_thread): New variable.
1554 (lwp_free): Invoke linux_nat_delete_thread if set.
1555 (linux_nat_set_delete_thread): New function.
1556 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1557 thread delete callback.
1558 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1559 (_initialize_arm_linux_nat): Assign thread delete callback.
1560 * s390-linux-nat.c (s390_delete_thread): New function.
1561 (_initialize_s390_nat): Assign thread delete callback.
1562 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1563 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1565 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1567 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1568 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1570 2017-10-09 Tom Tromey <tom@tromey.com>
1572 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1574 * tui/tui-layout.c (enum tui_status): Use std::string.
1576 2017-10-11 Tom Tromey <tom@tromey.com>
1578 * gdbthread.h (thread_command): Constify.
1579 * inferior.h (detach_command): Constify.
1580 * top.h (set_history, show_history): Constify.
1581 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1582 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1583 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1584 * printcmd.c (set_command): Constify.
1585 (non_const_set_command): New function.
1586 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1587 * breakpoint.c (enable_command, disable_command, delete_command)
1588 (catch_command, tcatch_command, set_breakpoint_cmd)
1589 (show_breakpoint_cmd): Constify.
1590 * macrocmd.c (macro_command): Constify.
1591 * infcmd.c (unset_command, kill_command, detach_command)
1592 (info_proc_cmd): Constify.
1593 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1594 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1595 (info_auto_load_cmd): Constify.
1596 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1597 (unset_tdesc_cmd): Constify.
1598 * ada-lang.c (set_ada_command, show_ada_command)
1599 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1600 * guile/guile.c (set_guile_command, show_guile_command)
1601 (info_guile_command): Constify.
1602 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1604 * skip.c (skip_command): Constify.
1605 * compile/compile.c (_initialize_compile): Constify.
1606 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1607 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1608 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1609 (maint_btrace_pt_show_cmd): Constify.
1610 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1612 * python/python.c (user_show_python, user_set_python): Constify.
1613 * mips-tdep.c (set_mips_command, show_mips_command)
1614 (set_mipsfpu_command): Constify.
1615 * record-btrace.c (cmd_record_btrace_start)
1616 (cmd_set_record_btrace, cmd_show_record_btrace)
1617 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1618 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1619 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1621 * symfile.c (overlay_command): Constify.
1622 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1623 * cli/cli-logging.c (set_logging_command, show_logging_command):
1625 * cli/cli-dump.c (dump_command, append_command)
1626 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1627 (tekhex_dump_command, binary_dump_command)
1628 (binary_append_command): Constify.
1629 * cli/cli-decode.c (struct cmd_list_element): Change type of
1631 * cli/cli-cmds.c (info_command, show_command, set_debug)
1632 (show_debug): Constify.
1633 (show_command): Add non-const overload.
1634 * top.c (set_history, show_history): Constify.
1635 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1636 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1637 * target.c (target_command): Constify.
1638 * sparc64-tdep.c (info_adi_command): Constify.
1639 * record-full.c (cmd_record_full_start): Constify.
1640 (set_record_full_command): Constify. Fix typo.
1641 (show_record_full_command): Constify.
1642 * thread.c (thread_command, thread_apply_command): Constify.
1643 * memattr.c (dummy_cmd): Constify.
1644 * value.c (function_command): Constify.
1645 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1646 * probe.c (info_probes_command): Constify.
1647 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1648 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1649 (show_thread_cmd, set_thread_default_cmd)
1650 (show_thread_default_cmd): Constify.
1651 (check_empty): Constify.
1652 * tracepoint.c (tfind_command): Constify.
1653 * cp-support.c (maint_cplus_command): Constify.
1654 * windows-tdep.c (info_w32_command): Constify.
1655 * record.c (cmd_record_start, set_record_command)
1656 (show_record_command, info_record_command, cmd_record_goto):
1658 * ravenscar-thread.c (set_ravenscar_command)
1659 (show_ravenscar_command): Constify.
1660 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1662 (add_internal_problem_command): Remove casts.
1663 * arc-tdep.c (maintenance_print_arc_command): Constify.
1664 * valprint.c (set_print, show_print, set_print_raw)
1665 (show_print_raw): Constify.
1666 * maint.c (maintenance_command, maintenance_info_command)
1667 (maintenance_print_command, maintenance_set_cmd)
1668 (maintenance_show_cmd, set_per_command_cmd)
1669 (show_per_command_cmd, maintenance_check_command): Constify.
1670 * language.c (set_check, show_check): Constify.
1671 * typeprint.c (show_print_type, set_print_type): Constify.
1672 * go32-nat.c (go32_info_dos_command): Constify.
1674 2017-10-11 Tom Tromey <tom@tromey.com>
1676 * breakpoint.c (prepare_re_set_context): Remove.
1677 (breakpoint_re_set_one): Update. Don't use cleanups.
1678 (breakpoint_re_set): Use scoped_restore, std::string, and
1679 scoped_restore_current_language.
1681 2017-10-11 Tom Tromey <tom@tromey.com>
1683 * breakpoint.c (commands_command_1): Use std::string.
1684 (cleanup_executing_breakpoints): Remove.
1685 (bpstat_do_actions_1): Use scoped_restore.
1686 (bpstat_check_watchpoint): Use std::string.
1687 (decode_static_tracepoint_spec): Likewise.
1688 (break_range_command): Likewise.
1689 (watch_command_1): Likewise.
1690 (compare_breakpoints): Change argument types.
1691 (clear_command): Use std::vector.
1692 (cleanup_executing_breakpoints): Remove.
1693 (update_global_location_list): Use unique_xmalloc_ptr.
1694 (strace_command): Remove unused declaration.
1696 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1698 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1699 * NEWS: Mention new FreeBSD/arm native configuration.
1700 * configure.host: Add arm*-*-freebsd*.
1701 * configure.nat: Likewise.
1702 * arm-fbsd-nat.c: New file.
1704 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1706 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1707 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1708 * NEWS: Mention new FreeBSD/arm target.
1709 * configure.tgt: Add arm*-*-freebsd*.
1710 * arm-fbsd-tdep.c: New file.
1711 * arm-fbsd-tdep.h: New file.
1713 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1715 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1716 `gdbarch_elfcore_write_linux_prpsinfo'.
1717 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1719 (elf_internal_linux_prpsinfo): Remove declaration.
1720 * gdbarch.h: Regenerate.
1721 * gdbarch.c: Regenerate.
1723 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1725 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1726 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1728 2017-10-11 Pedro Alves <palves@redhat.com>
1730 * breakpoint.c (reattach_breakpoints): Delete.
1731 * breakpoint.h (reattach_breakpoints): Delete.
1733 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1735 * symfile.c (registered_sym_fns): Make struct, not typedef.
1736 (DEF_VEC_O (registered_sym_fns)): Remove.
1737 (symtab_fns): Change type to std::vector.
1738 (add_symtab_fns): Adjust.
1739 (find_sym_fns): Adjust.
1741 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1743 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1744 * arc-tdep.h (arc_arch_is_em): New function.
1745 (arc_arch_is_hs): Likewise.
1747 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1749 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1750 parentheses in the declaration.
1751 (macro_lookup_inclusion): Likewise.
1752 (macro_lookup_definition): Likewise.
1753 * p-lang.h (pascal_builtin_types): Likewise.
1754 * tui/tui-data.c (tui_win_list): Likewise.
1755 * tui/tui-data.h (tui_win_list): Likewise.
1756 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1758 2017-10-11 Mark Rages <markrages@gmail.com>
1760 * target-memory.c (block_boundaries): Fix for block address not
1761 aligned on block size.
1763 2017-10-10 Pedro Alves <palves@redhat.com>
1764 Tom Tromey <tom@tromey.com>
1766 * breakpoint.c (struct captured_breakpoint_query_args)
1767 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1768 (print_breakpoint): New.
1769 * breakpoint.h (print_breakpoint): Declare.
1770 * common/common-exceptions.h (enum return_reason): Remove
1771 references to catch_exceptions.
1772 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1774 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1775 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1777 * gdbthread.h (thread_select): Declare.
1778 * mi/mi-cmd-break.c: Don't include gdb.h.
1779 (breakpoint_notify): Use print_breakpoint.
1780 * mi/mi-cmd-catch.c: Don't include gdb.h.
1781 * mi/mi-interp.c: Don't include gdb.h.
1782 (mi_print_breakpoint_for_event): New.
1783 (mi_breakpoint_created, mi_breakpoint_modified): Use
1784 mi_print_breakpoint_for_event.
1785 * mi/mi-main.c: Don't include gdb.h.
1786 (mi_cmd_thread_select): Parse the global thread ID here. Use
1787 thread_select instead of gdb_thread_select.
1788 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1789 of using gdb_list_thread_ids.
1790 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1792 (remote_fileio_request): Use TRY/CATCH instead of
1794 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1795 (symbol_file_add_from_memory_wrapper): Delete.
1796 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1797 * thread.c: Don't include gdb.h.
1798 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1799 (thread_alive): Use thread_select.
1800 (do_captured_thread_select): Delete, parts salvaged as ...
1801 (thread_select): ... this new function.
1802 (gdb_thread_select): Delete.
1804 2017-10-10 Pedro Alves <palves@redhat.com>
1805 Tom Tromey <tom@tromey.com>
1807 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1809 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1810 No longer macros. Instead ...
1811 (enum wp_check_result): They're now values of this new
1813 (watchpoint_check): Change return type to wp_check_result and
1814 parameter type to bpstat.
1815 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1816 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1817 catch_errors. Reverse logic of watchpoint_check call.
1818 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1819 pointer as parameter.
1820 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1821 * common/common-exceptions.c (throw_exception_sjlj): Update
1822 comments to avoid mentioning catch_errors.
1823 * exceptions.c (catch_errors): Delete.
1824 * exceptions.h: Update comments to avoid mentioning catch_errors.
1825 (catch_errors_ftype, catch_errors): Delete.
1826 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1827 (hook_stop_stub): Delete.
1828 (restore_selected_frame): Change return type to void, and
1829 parameter type to const frame_id &.
1830 (restore_infcall_control_state): Use TRY/CATCH instead of
1832 * main.c (captured_command_loop): Return void and remove
1833 parameter. Remove references to catch_errors.
1834 (captured_main): Use TRY/CATCH instead of catch_errors.
1835 * objc-lang.c (objc_submethod_helper_data)
1836 (find_objc_msgcall_submethod_helper): Delete.
1837 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1839 * record-full.c (record_full_message): Return void.
1840 (record_full_message_args, record_full_message_wrapper): Delete.
1841 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1842 instead of catch_errors.
1843 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1844 parameter type to int.
1845 * solib-darwin.c (open_symbol_file_object): Ditto.
1846 * solib-dsbt.c (open_symbol_file_object): Ditto.
1847 * solib-frv.c (open_symbol_file_object): Ditto.
1848 * solib-svr4.c (open_symbol_file_object): Ditto.
1849 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1850 * solib.c (update_solib_list): Use TRY/CATCH instead of
1852 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1854 * symmisc.c (struct print_symbol_args): Remove.
1855 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1856 (print_symbol): Change type.
1857 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1858 and remove parameters.
1859 (catch_errors): New.
1860 (get_windows_debug_event): Adjust.
1862 2017-10-09 Tom Tromey <tom@tromey.com>
1864 * mi/mi-main.c (free_splay_tree): Remove.
1865 (list_available_thread_groups): Use splay_tree_up.
1866 * common/gdb_splay_tree.h: New file.
1868 2017-10-09 Tom Tromey <tom@tromey.com>
1870 * mi/mi-main.c (do_nothing): Remove.
1871 (list_available_thread_groups): Update.
1873 2017-10-09 Pedro Alves <palves@redhat.com>
1875 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1876 reading registers when switching context.
1878 2017-10-09 John Baldwin <jhb@FreeBSD.org>
1880 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1881 (fbsd_convert_siginfo): Likewise.
1882 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1884 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1886 * configure.ac (try_guile_versions): Remove guile-2.2.
1887 * configure: Regenerate.
1889 2017-10-09 Tom Tromey <tom@tromey.com>
1891 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1892 (COMPILE.pre): Use $(CXX).
1894 2017-10-09 Pedro Alves <palves@redhat.com>
1896 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1898 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1899 * cp-support.h (cp_remove_params): Now returns a
1900 gdb::unique_xmalloc_ptr.
1901 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1902 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1903 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1904 returning a gdb::unique_xmalloc_ptr.
1905 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1906 * stack.c (find_frame_funname): Adjust to cp_remove_params
1907 returning a gdb::unique_xmalloc_ptr.
1909 2017-10-08 Tom Tromey <tom@tromey.com>
1911 * dwarf2read.c (dwarf2_get_dwz_file): Use
1912 gdb::unique_xmalloc_ptr.
1913 (find_slot_in_mapped_hash): Likewise.
1914 (dwarf2_physname): Likewise.
1915 (create_dwo_unit_in_dwp_v1): Use std::string.
1916 (create_dwo_unit_in_dwp_v2): Likewise.
1917 (lookup_dwo_cutu): Likewise.
1918 (inherit_abstract_dies): Use std::vector.
1919 (read_array_type): Likewise.
1920 (dwarf_decode_macros): Remove unused declaration.
1921 (unsigned_int_compar): Remove.
1922 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1923 (psymtabs_addrmap_cleanup): Remove.
1925 2017-10-08 Tom Tromey <tom@tromey.com>
1927 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1928 * frame.h (frame_cleanup_after_sniffer): Declare.
1929 (frame_prepare_for_sniffer): Return void.
1930 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1932 (frame_prepare_for_sniffer): Return void.
1934 2017-10-08 Tom Tromey <tom@tromey.com>
1936 * utils.h (make_cleanup_value_free): Remove.
1937 * utils.c (do_value_free, struct cleanup): Remove.
1938 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1940 * value.h (struct value_deleter): New.
1941 (gdb_value_up): New typedef.
1943 2017-10-08 Tom Tromey <tom@tromey.com>
1945 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1946 (make_cleanup_free_search_symbols): Remove.
1947 (search_symbols): Return std::vector.
1948 (symbol_search::compare_search_syms): Now member of
1949 symbol_search. Change arguments.
1950 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1951 (symtab_symbol_info, rbreak_command): Update.
1952 * symtab.h (struct symbol_search) <next>: Remove.
1954 (symbol_search::operator<): New function.
1955 (symbol_search::operator==): New function.
1956 (search_symbols): Remove std::vector.
1957 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1958 (symbol_search::compare_search_syms): Declare.
1960 2017-10-06 Yao Qi <yao.qi@linaro.org>
1962 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1963 arch/aarch64-insn.o.
1965 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1967 2017-10-06 Yao Qi <yao.qi@linaro.org>
1969 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1970 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1971 arch/arm-linux.o respectively.
1972 * configure.tgt: Likewise.
1974 2017-10-06 Yao Qi <yao.qi@linaro.org>
1976 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1977 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1979 2017-10-06 Pedro Alves <palves@redhat.com>
1981 * windows-nat.c: Include <algorithm>.
1983 2017-10-06 Yao Qi <yao.qi@linaro.org>
1985 * configure.tgt (i386_tobjs): New variable.
1986 (amd64_tobjs): New variable.
1987 Set $cpu_obs and $os_obs.
1989 2017-10-06 Yao Qi <yao.qi@linaro.org>
1991 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1992 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1993 (clean): Remove object files and dependency files.
1994 (distclean): Remove the directory.
1995 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1996 * configure: Re-generated.
1997 * configure.tgt: Replace amd64.o with arch/amd64.o.
1999 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
2002 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
2005 2017-10-05 Pedro Alves <palves@redhat.com>
2007 * linux-nat.c (linux_child_follow_fork): When following the parent
2008 and detaching the child, consult the parent thread's architecture
2009 instead of the child's.
2011 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2013 * ax.h: Do not include "doublest.h".
2014 (union agent_val): Remove.
2016 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2018 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
2019 (decimal_to_string): Return std::string object.
2020 (decimal_from_string): Accept std::string object. Return bool.
2021 (decimal_from_integral, decimal_from_doublest): Remove.
2022 (decimal_from_longest): Add prototype.
2023 (decimal_from_ulongest): Likewise.
2024 (decimal_to_longest): Likewise.
2025 (decimal_from_doublest): Likewise.
2026 * dfp.c: Do not include "gdbtypes.h" or "value.h".
2027 (MAX_DECIMAL_STRING): Move here.
2028 (decimal_to_string): Return std::string object.
2029 (decimal_from_string): Accept std::string object. Return bool.
2030 (decimal_from_integral): Remove, replace by ...
2031 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
2032 (decimal_to_longest): New function.
2033 (decimal_from_floating): Remove, replace by ...
2034 (decimal_from_doublest): ... this new function.
2035 (decimal_to_doublest): Update to new decimal_to_string interface.
2037 * value.c (unpack_long): Use decimal_to_longest.
2038 * valops.c (value_cast): Use decimal_from_doublest instead of
2039 decimal_from_floating. Use decimal_from_[u]longest isntead of
2040 decimal_from_integral.
2041 * valarith.c (value_args_as_decimal): Likewise.
2042 * valprint.c (print_decimal_floating): Update to new
2043 decimal_to_string interface.
2044 * printcmd.c (printf_decfloat): Likewise.
2045 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2047 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2049 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2050 * gdbtypes.c: Include "floatformat.h".
2051 * value.c: Likewise.
2052 * m68k-tdep.c: Likewise.
2054 * findvar.c: Do not include "floatformat.h".
2055 * amd64-darwin-tdep.c: Likewise.
2056 * arm-linux-tdep.c: Likewise.
2057 * i386-darwin-tdep.c: Likewise.
2058 * i387-tdep.c: Likewise.
2059 * m68k-linux-tdep.c: Likewise.
2060 * mep-tdep.c: Likewise.
2061 * mips-tdep.c: Likewise.
2062 * nios2-tdep.c: Likewise.
2063 * s390-linux-tdep.c: Likewise.
2064 * sparc-obsd-tdep.c: Likewise.
2065 * sparc-tdep.c: Likewise.
2066 * sparc64-tdep.c: Likewise.
2067 * spu-tdep.c: Likewise.
2068 * tic6x-tdep.c: Likewise.
2069 * tilegx-tdep.c: Likewise.
2070 * vax-tdep.c: Likewise.
2071 * xstormy16-tdep.c: Likewise.
2072 * xtensa-tdep.c: Likewise.
2074 * top.c: Do not include "doublest.h".
2075 * aarch64-tdep.c: Likewise.
2076 * alpha-tdep.c: Likewise.
2077 * arm-linux-tdep.c: Likewise.
2078 * m68k-linux-tdep.c: Likewise.
2079 * tilegx-tdep.c: Likewise.
2080 * xstormy16-tdep.c: Likewise.
2082 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2084 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2085 (mipsn32_fbsd_sigframe): Define.
2086 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2087 for FreeBSD/mipsn32.
2089 2017-10-05 John Baldwin <jhb@FreeBSD.org>
2091 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2094 2017-10-05 Tristan Gingold <tgingold@free.fr>
2096 * MAINTAINERS (Misc): Update my email address.
2098 2017-10-04 Pedro Alves <palves@redhat.com>
2100 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2101 it instead of target_gdbarch.
2102 (get_remote_state, get_remote_packet_size): Adjust
2103 get_remote_arch_state calls, passing down target_gdbarch
2105 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2106 'gdbarch' and use it instead of target_gdbarch.
2107 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2108 passing down target_gdbarch explicitly.
2109 (struct stop_reply) <arch>: New field.
2110 (remote_parse_stop_reply): Use the stopped thread's architecture,
2111 not the current inferior's. Save the architecture in the
2113 (process_stop_reply): Use the stop reply's architecture.
2114 (process_g_packet, remote_fetch_registers)
2115 (remote_prepare_to_store, store_registers_using_G)
2116 (remote_store_registers): Adjust get_remote_arch_state calls,
2117 using the regcache's architecture.
2118 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2119 passing down target_gdbarch explicitly.
2120 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2121 beneath instead of calling target_gdbarch.
2122 * target.c (default_thread_architecture): Use the specified
2123 inferior's architecture, instead of the current inferior's
2124 architecture (via target_gdbarch).
2126 2017-10-04 Pedro Alves <palves@redhat.com>
2128 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2130 (regcache_print): Handle !target_has_registers here instead.
2132 2017-10-04 Pedro Alves <palves@redhat.com>
2134 * frame.c (create_test_frame): Delete.
2135 * frame.h (create_test_frame): Delete.
2136 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2137 (class regcache_test): Delete.
2138 (test_target_has_registers, test_target_has_stack)
2139 (test_target_has_memory, test_target_prepare_to_store)
2140 (test_target_store_registers): New functions.
2141 (test_target_ops): New class.
2142 (register_to_value_test): Error out if there's already a
2143 process_stratum (or higher) target pushed. Create a fuller mock
2144 environment, with mock target_ops, inferior, address space, thread
2146 * progspace.c (struct address_space): Move to ...
2147 * progspace.h (struct address_space): ... here.
2148 * regcache.h (regcache::~regcache, regcache::raw_write)
2149 [GDB_SELF_TEST]: No longer virtual.
2151 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2153 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2155 2017-10-04 Pedro Alves <palves@redhat.com>
2157 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2158 out of 'between TRY and CATCH'.
2160 2017-10-04 Pedro Alves <palves@redhat.com>
2162 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2163 * common/common-exceptions.h (TRY): Open an outermost scope.
2164 Expand intro comment.
2166 (END_CATCH): Close the outermost scope.
2167 * completer.c (complete_line_internal): Add missing END_CATCH.
2169 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2171 * NEWS (Changes since GDB 8.0): Add entry about new
2172 'set-cwd-on-gdbserver' feature.
2173 (New remote packets): Add entry for QSetWorkingDir.
2174 * common/common-inferior.h (set_inferior_cwd): New prototype.
2175 * infcmd.c (set_inferior_cwd): Remove "static".
2176 (show_cwd_command): Expand text to include remote debugging.
2177 * remote.c: Add PACKET_QSetWorkingDir.
2178 (remote_protocol_features) <QSetWorkingDir>: New entry for
2179 PACKET_QSetWorkingDir.
2180 (extended_remote_set_inferior_cwd): New function.
2181 (extended_remote_create_inferior): Call
2182 "extended_remote_set_inferior_cwd".
2183 (_initialize_remote): Call "add_packet_config_cmd" for
2186 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2188 * NEWS (New commands): Mention "set/show cwd".
2189 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2190 "cd" command's help text.
2191 * common/common-inferior.h (get_inferior_cwd): New prototype.
2192 * infcmd.c (inferior_cwd_scratch): New global variable.
2193 (set_inferior_cwd): New function.
2194 (get_inferior_cwd): Likewise.
2195 (set_cwd_command): Likewise.
2196 (show_cwd_command): Likewise.
2197 (_initialize_infcmd): Add "set/show cwd" commands.
2198 * inferior.h (class inferior) <cwd>: New field.
2199 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2200 (fork_inferior): Change inferior's cwd before its execution.
2201 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2204 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2206 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2207 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2208 (COMMON_OBS): Add gdb_tilde_expand.o.
2209 * common/gdb_tilde_expand.c: New file.
2210 * common/gdb_tilde_expand.h: Likewise.
2212 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2214 * gdbarch.sh (objfile): Remove duplicate declaration.
2215 * gdbarch.h: Regenerate.
2217 2017-10-03 Tom Tromey <tom@tromey.com>
2219 * utils.c (internal_vproblem): Use string_vprintf.
2221 2017-10-03 Tom Tromey <tom@tromey.com>
2223 * printcmd.c (info_symbol_command): Use std::string.
2225 2017-10-03 Tom Tromey <tom@tromey.com>
2227 * top.c (gdb_safe_append_history): Use std::string.
2229 2017-10-03 Tom Tromey <tom@tromey.com>
2231 * event-top.c (stdin_event_handler): Update.
2232 * main.c (captured_main_1): Update.
2233 * top.h (make_delete_ui_cleanup): Remove.
2234 (struct ui): Add constructor and destructor.
2235 (new_ui, delete_ui): Remove.
2236 * top.c (make_delete_ui_cleanup): Remove.
2237 (new_ui_command): Use std::unique_ptr.
2238 (delete_ui_cleanup): Remove.
2239 (ui::ui): Rename from new_ui. Update.
2241 (ui::~ui): Rename from delete_ui. Update.
2243 2017-10-03 Tom Tromey <tom@tromey.com>
2245 * symfile.c (load_progress): Use gdb::byte_vector.
2247 2017-10-03 Tom Tromey <tom@tromey.com>
2249 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2251 * printcmd.c (x_command): Remove unused declaration.
2252 * symfile.c (symbol_file_command): Remove unused declaration.
2254 2017-10-03 Tom Tromey <tom@tromey.com>
2256 * utils.c (internal_vproblem): Use std::string.
2257 (defaulted_query): Likewise.
2259 2017-10-03 Tom Tromey <tom@tromey.com>
2261 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2262 * top.c (execute_command_to_string): Update.
2263 * utils.c (make_cleanup_restore_page_info): Remove.
2264 (do_restore_page_info_cleanup): Remove.
2265 (set_batch_flag_and_restore_page_info):
2267 (make_cleanup_restore_page_info): Remove.
2268 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2269 (~set_batch_flag_and_restore_page_info): New
2270 (make_cleanup_restore_uinteger): Remove.
2271 (make_cleanup_restore_integer): Remove.
2272 (struct restore_integer_closure): Remove.
2273 (restore_integer): Remove.
2274 * utils.h (struct set_batch_flag_and_restore_page_info): New
2276 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2277 (make_cleanup_restore_page_info): Remove.
2278 (make_cleanup_restore_uinteger) Remove.
2279 (make_cleanup_restore_integer) Remove.
2281 2017-10-03 Tom Tromey <tom@tromey.com>
2283 * record-full.h (record_full_gdb_operation_disable_set): Return
2284 scoped_restore_tmpl<int>.
2285 * infrun.c (adjust_pc_after_break): Update.
2286 (handle_signal_stop): Update.
2287 * record-full.c (record_full_gdb_operation_disable_set): Return
2288 scoped_restore_tmpl<int>.
2289 (record_full_wait_1, record_full_insert_breakpoint)
2290 (record_full_remove_breakpoint, record_full_save)
2291 (record_full_goto_insn): Update.
2293 2017-10-02 Tom Tromey <tom@tromey.com>
2296 * rust-lang.c (rust_val_print_str): New function.
2297 (val_print_struct): Call it.
2298 (rust_subscript): Preserve name of slice type.
2300 2017-10-02 Tom Tromey <tom@tromey.com>
2302 * rust-lang.c (rust_subscript): Handle slices in
2303 EVAL_AVOID_SIDE_EFFECTS case.
2305 2017-10-02 Tom Tromey <tom@tromey.com>
2307 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2309 2017-10-02 Tom Tromey <tom@tromey.com>
2311 * rust-lang.h (rust_slice_type): Add "extern".
2313 2017-10-02 Tom Tromey <tom@tromey.com>
2314 Pedro Alves <palves@redhat.com>
2316 * ada-lang.h (ada_exc_info::operator<): Make const.
2317 (ada_exc_info::operator==): Make const.
2318 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2321 2017-09-29 Tom Tromey <tom@tromey.com>
2323 * target.c (read_whatever_is_readable): Change type of "result".
2325 (free_memory_read_result_vector): Remove.
2326 (read_memory_robust): Change return type. Update.
2327 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2328 bin2hex, std::string.
2329 * target.h (memory_read_result_s): Remove typedef.
2330 (free_memory_read_result_vector): Remove.
2331 (read_memory_robust): Return std::vector.
2333 2017-09-29 Tom Tromey <tom@tromey.com>
2335 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2337 2017-09-29 Tom Tromey <tom@tromey.com>
2339 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2340 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2341 operator< and operator==.
2342 (ada_exceptions_list): Return a std::vector.
2343 * ada-lang.c (ada_exc_info::operator<): Rename from
2344 compare_ada_exception_info.
2345 (ada_exc_info::operator==): New.
2346 (sort_remove_dups_ada_exceptions_list): Change type of
2348 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2349 (ada_add_global_exceptions): Likewise.
2350 (ada_exceptions_list_1): Return a std::vector.
2351 (ada_exceptions_list): Likewise.
2353 2017-09-29 Tom Tromey <tom@tromey.com>
2355 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2357 (print_one_inferior): Update.
2358 (free_vector_of_ints): Remove.
2359 (list_available_thread_groups): Change "ids" to std::set.
2360 (mi_cmd_list_thread_groups): Update.
2361 (struct collect_cores_data) <core>: Now a std::set.
2362 (collect_cores): Update.
2364 (print_one_inferior): Update.
2366 2017-09-29 Tom Tromey <tom@tromey.com>
2368 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2369 (mi_execute_async_cli_command): Likewise.
2370 (mi_cmd_trace_frame_collected): Use field_fmt.
2372 2017-09-29 Tom Tromey <tom@tromey.com>
2374 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2377 2017-09-29 Tom Tromey <tom@tromey.com>
2379 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2381 2017-09-29 Tom Tromey <tom@tromey.com>
2383 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2385 2017-09-29 Tom Tromey <tom@tromey.com>
2387 * varobj.h (varobj_gen_name): Return std::string.
2388 * varobj.c (varobj_gen_name): Return std::string.
2389 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2390 (mi_cmd_var_delete): Don't copy "name".
2392 2017-09-29 Tom Tromey <tom@tromey.com>
2394 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2395 (mi_cmd_break_insert_1): Update.
2397 2017-09-29 Tom Tromey <tom@tromey.com>
2399 * target.h (make_scoped_defer_target_commit_resume): Update.
2400 * target.c (make_scoped_defer_target_commit_resume): Rename from
2401 make_cleanup_defer_target_commit_resume. Return a
2403 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2405 2017-09-29 Tom Tromey <tom@tromey.com>
2407 * main.c (captured_main_1): Remove unused declaration.
2408 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2410 2017-09-29 Tom Tromey <tom@tromey.com>
2412 * symtab.c (search_symbols): Remove unused outer cleanup.
2413 (make_source_files_completion_list): Remove unused declaration.
2415 2017-09-29 Tom Tromey <tom@tromey.com>
2417 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2419 2017-09-29 Tom Tromey <tom@tromey.com>
2421 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2424 2017-09-29 Tom Tromey <tom@tromey.com>
2426 * complaints.c (vcomplaint): Use std::string.
2428 2017-09-29 Tom Tromey <tom@tromey.com>
2430 * tracepoint.c (trace_variable_command): Use std::string.
2431 (encode_actions_1): Remove unused declarations.
2432 (create_tsv_from_upload): Use std::string.
2434 2017-09-29 Tom Tromey <tom@tromey.com>
2436 * cp-support.c (gdb_demangle): Use std::string.
2438 2017-09-29 Tom Tromey <tom@tromey.com>
2440 * stack.c (parse_frame_specification): Use std::string
2441 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2443 2017-09-29 Tom Tromey <tom@tromey.com>
2445 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2447 2017-09-29 Tom Tromey <tom@tromey.com>
2449 * utils.c (vfprintf_maybe_filtered): Use std::string.
2450 (vfprintf_unfiltered): Likewise.
2452 2017-09-29 Tom Tromey <tom@tromey.com>
2454 * event-top.c (top_level_prompt): Return std::string.
2455 (display_gdb_prompt): Update.
2457 2017-09-29 Tom Tromey <tom@tromey.com>
2459 * unittests/common-utils-selftests.c (format): New function.
2460 (string_vprintf_tests): New function.
2461 (_initialize_common_utils_selftests): Register new tests.
2462 * common/common-utils.c (string_vprintf): New function.
2463 * common/common-utils.h (string_vprintf): Declare.
2465 2017-09-29 Pedro Alves <palves@redhat.com>
2467 * common/rsp-low.c (unpack_varlen_hex): Constify.
2468 * common/rsp-low.h (unpack_varlen_hex): Constify.
2469 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2471 * remote.c (remote_set_permissions, read_ptid)
2472 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2473 (remote_static_tracepoint_marker_at)
2474 (remote_static_tracepoint_markers_by_strid)
2475 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2476 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2477 (parse_tracepoint_definition, parse_tsv_definition)
2478 (parse_static_tracepoint_marker_definition): Constify.
2479 * tracepoint.h (parse_static_tracepoint_marker_definition)
2480 (parse_trace_status, parse_tracepoint_status)
2481 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2483 2017-09-29 Pedro Alves <palves@redhat.com>
2485 * remote.c (target_buf, target_buf_size): Delete.
2486 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2487 Use the connection's packet buffer instead.
2488 All callers adjusted.
2489 (_initialize_remote): Remove references to target_buf and
2492 2017-09-28 Pedro Alves <palves@redhat.com>
2494 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2495 unittests/common-utils-selftests.c.
2496 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2497 (COMMON_OBS): Remove utils-selftests.o.
2498 * utils-selftests.c: Move to ...
2499 * unittests/common-utils-selftests.c: ... here and rename self
2500 test to "string_printf".
2502 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2504 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2505 having NULL cus or tus.
2507 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2509 * arm-tdep.c: (convert_from_extended): Remove.
2510 (convert_to_extended): Likewise.
2511 (arm_extract_return_value): Use convert_typed_floating.
2512 (arm_store_return_value): Likewise.
2514 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2515 * sh-tdep.c: Do not include "floatformat.h".
2516 (sh_littlebyte_bigword_type): New function.
2517 (sh_register_convert_to_virtual): Use convert_typed_floating.
2518 (sh_register_convert_to_raw): Likewise.
2519 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2520 (sh64_littlebyte_bigword_type): New function.
2521 (sh64_extract_return_value): Use convert_typed_floating.
2522 (sh64_register_convert_to_virtual): Likewise.
2523 (sh64_register_convert_to_raw): Likewise.
2525 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2527 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2528 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2530 * gdbtypes.h (union type_specific): Make field floatformat hold
2531 just a single struct floatformat, not an array.
2532 (floatformat_from_type): Move here.
2533 * gdbtypes.c (floatformat_from_type): Move here. Update to
2534 changed TYPE_FLOATFORMAT definition.
2535 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2536 (recursive_dump_type): Likewise.
2537 (init_float_type): Install correct floatformat for byte order.
2538 (arch_float_type): Likewise.
2540 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2542 * gdbtypes.c (init_type): Change incoming argument from
2543 length-in-bytes to length-in-bits. Assert length is a
2544 multiple of TARGET_CHAR_BITS.
2545 (arch_type, arch_flags_type): Likewise.
2546 (init_integer_type): Update call to init_type.
2547 (init_character_type): Likewise.
2548 (init_boolean_type): Likewise.
2549 (init_float_type): Likewise.
2550 (init_decfloat_type): Likewise.
2551 (init_complex_type): Likewise.
2552 (init_pointer_type): Likewise.
2553 (objfile_type): Likewise.
2554 (arch_integer_type): Update call to arch_type.
2555 (arch_character_type): Likewise.
2556 (arch_boolean_type): Likewise.
2557 (arch_float_type): Likewise.
2558 (arch_decfloat_type): Likewise.
2559 (arch_complex_type): Likewise.
2560 (arch_pointer_type): Likewise.
2561 (gdbtypes_post_init): Likewise.
2563 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2564 (read_base_type): Likewise.
2565 * mdebugread.c (basic_type): Likewise.
2566 * stabsread.c (dbx_init_float_type): Likewise.
2567 (rs6000_builtin_type): Likewise.
2568 (read_range_type): Likewise. Also, fix call to init_integer_type
2569 with erroneous length argument.
2571 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2572 * d-lang.c (build_d_types): Likewise.
2573 * f-lang.c (build_fortran_types): Likewise.
2574 * go-lang.c (build_go_types): Likewise.
2575 * opencl-lang.c (build_opencl_types): Likewise.
2576 * jit.c (finalize_symtab): Likewise.
2577 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2578 (build_std_type_info_type): Likewise.
2579 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2580 update call to arch_flags_type.
2582 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2584 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2585 * windows-tdep.c (windows_get_tlb_type): Likewise.
2587 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2588 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2589 * m32c-tdep.c (make_types): Likewise.
2590 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2591 (rl78_psw_type): Update call to arch_flags_type.
2592 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2593 * rx-tdep.c (rx_psw_type): Likewise.
2594 (rx_fpsw_type): Likewise.
2595 * sparc-tdep.c (sparc_psr_type): Likewise.
2596 (sparc_fsr_type): Likewise.
2597 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2598 (sparc64_ccr_type): Likewise.
2599 (sparc64_fsr_type): Likewise.
2600 (sparc64_fprs_type): Likewise.
2602 2017-09-27 Tom Tromey <tom@tromey.com>
2604 * findcmd.c (find_command): Constify.
2606 2017-09-27 Tom Tromey <tom@tromey.com>
2608 * ada-tasks.c (task_command_1, task_command): Constify.
2610 2017-09-27 Tom Tromey <tom@tromey.com>
2612 * symtab.c (maintenance_print_symbol_cache)
2613 (maintenance_flush_symbol_cache)
2614 (maintenance_print_symbol_cache_statistics): Constify.
2616 2017-09-27 Tom Tromey <tom@tromey.com>
2618 * inferior.c (detach_inferior_command, kill_inferior_command)
2619 (inferior_command): Constify.
2621 2017-09-27 Tom Tromey <tom@tromey.com>
2623 * regcache.c (regcache_print, maintenance_print_registers)
2624 (maintenance_print_raw_registers)
2625 (maintenance_print_cooked_registers)
2626 (maintenance_print_register_groups)
2627 (maintenance_print_remote_registers): Constify.
2629 2017-09-27 Tom Tromey <tom@tromey.com>
2631 * printcmd.c (map_display_numbers, undisplay_command)
2632 (enable_disable_display_command, enable_display_command)
2633 (disable_display_command): Constify.
2635 2017-09-27 Tom Tromey <tom@tromey.com>
2637 * breakpoint.h (delete_command): Don't declare.
2638 * breakpoint.c (delete_command, enable_once_command)
2639 (enable_count_command, enable_delete_command, breakpoint_1)
2640 (maintenance_info_breakpoints, stopin_command, stopat_command)
2641 (delete_command, delete_trace_command, save_breakpoints)
2642 (save_breakpoints_command, save_tracepoints_command): Constify.
2644 2017-09-27 Tom Tromey <tom@tromey.com>
2646 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2647 (skip_ws, extract_identifier, macro_define_command)
2648 (macro_undef_command, macro_list_command): Constify.
2650 2017-09-27 Tom Tromey <tom@tromey.com>
2652 * infcmd.c (environment_info, set_environment_command)
2653 (unset_environment_command, path_info, info_proc_cmd_1)
2654 (info_proc_cmd_mappings, info_proc_cmd_stat)
2655 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2656 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2658 2017-09-27 Tom Tromey <tom@tromey.com>
2660 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2663 2017-09-27 Tom Tromey <tom@tromey.com>
2665 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2667 2017-09-27 Tom Tromey <tom@tromey.com>
2669 * demangle.c (demangle_command): Constify.
2671 2017-09-27 Tom Tromey <tom@tromey.com>
2673 * progspace.c (maintenance_info_program_spaces_command):
2676 2017-09-27 Tom Tromey <tom@tromey.com>
2678 * compile/compile.c (check_raw_argument, compile_file_command)
2679 (compile_code_command, compile_print_command): Constify.
2681 2017-09-27 Tom Tromey <tom@tromey.com>
2683 * reggroups.c (maintenance_print_reggroups): Constify.
2685 2017-09-27 Tom Tromey <tom@tromey.com>
2687 * dwarf2read.c (save_gdb_index_command): Constify.
2689 2017-09-27 Tom Tromey <tom@tromey.com>
2691 * stap-probe.c (info_probes_stap_command): Constify.
2693 2017-09-27 Tom Tromey <tom@tromey.com>
2695 * fork-child.c (unset_exec_wrapper_command): Constify.
2697 2017-09-27 Tom Tromey <tom@tromey.com>
2699 * btrace.c (get_uint, get_context_size, no_chunk)
2700 (maint_btrace_packet_history_cmd)
2701 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2702 (maint_info_btrace_cmd): Constify.
2704 2017-09-27 Tom Tromey <tom@tromey.com>
2706 * reverse.c (delete_bookmark_command): Constify.
2708 2017-09-27 Tom Tromey <tom@tromey.com>
2710 * remote.c (set_memory_packet_size)
2711 (set_memory_write_packet_size, show_memory_write_packet_size)
2712 (set_memory_read_packet_size, show_memory_read_packet_size)
2713 (compare_sections_command, packet_command, remote_put_command)
2714 (remote_get_command, remote_delete_command): Constify.
2716 2017-09-27 Tom Tromey <tom@tromey.com>
2718 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2719 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2720 (set_mipsfpu_auto_command): Constify.
2722 2017-09-27 Tom Tromey <tom@tromey.com>
2724 * cli/cli-cmds.h (cd_command): Constify.
2725 * cli/cli-cmds.c (cd_command): Constify.
2727 2017-09-27 Tom Tromey <tom@tromey.com>
2729 * thread.c (thread_name_command, thread_find_command): Constify.
2731 2017-09-27 Tom Tromey <tom@tromey.com>
2733 * probe.c (enable_probes_command, disable_probes_command):
2736 2017-09-27 Tom Tromey <tom@tromey.com>
2738 * symfile.c (symbol_file_command): Constify.
2739 * gdbcore.h (deprecated_file_changed_hook): Constify.
2740 * exec.c (deprecated_file_changed_hook, exec_file_command)
2741 (file_command): Constify.
2742 * defs.h (symbol_file_command): Constify.
2744 2017-09-27 Tom Tromey <tom@tromey.com>
2746 * remote-fileio.c (set_system_call_allowed)
2747 (show_system_call_allowed): Constify.
2749 2017-09-27 Tom Tromey <tom@tromey.com>
2751 * tracepoint.c (delete_trace_variable_command)
2752 (tfind_end_command, tfind_start_command, tfind_pc_command)
2753 (tfind_tracepoint_command, tfind_line_command)
2754 (tfind_range_command, tfind_outside_command): Constify.
2756 2017-09-27 Tom Tromey <tom@tromey.com>
2758 * ax-gdb.c (maint_agent_printf_command, agent_command)
2759 (agent_eval_command): Constify.
2761 2017-09-27 Tom Tromey <tom@tromey.com>
2763 * tracepoint.c (info_scope_command): Constify.
2764 * python/python.c (gdbpy_decode_line): Constify.
2765 * python/py-breakpoint.c (bppy_init): Constify.
2766 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2767 * location.h: (new_linespec_location)
2768 (string_to_event_location_basic, string_to_event_location):
2770 * location.c (new_linespec_location)
2771 (string_to_event_location_basic, string_to_event_location):
2773 * linespec.h (decode_line_with_current_source)
2774 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2775 * linespec.c (linespec_lex_to_end)
2776 (decode_line_with_current_source)
2777 (decode_line_with_last_displayed): Constify.
2778 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2780 * cli/cli-cmds.c (edit_command, list_command): Constify.
2781 * breakpoint.h (until_break_command, watch_command_wrapper)
2782 (awatch_command_wrapper, rwatch_command_wrapper)
2783 (init_ada_exception_breakpoint): Constify.
2784 * breakpoint.c (break_command_1, dprintf_command)
2785 (break_range_command, watch_command_wrapper)
2786 (rwatch_command_wrapper, awatch_command_wrapper)
2787 (until_break_command, init_ada_exception_breakpoint)
2788 (strace_marker_create_sals_from_location, trace_command)
2789 (ftrace_command, strace_command, struct tracepoint): Constify.
2790 * ax-gdb.c (agent_command_1): Constify.
2791 * ada-lang.c (ada_exception_sal): Constify.
2793 2017-09-27 Tom Tromey <tom@tromey.com>
2795 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2796 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2797 (get_context_size, no_chunk, get_insn_history_modifiers)
2798 (cmd_record_insn_history, get_call_history_modifiers)
2799 (cmd_record_call_history): Constify.
2801 2017-09-27 Tom Tromey <tom@tromey.com>
2803 * source.c (show_substitute_path_command)
2804 (unset_substitute_path_command, set_substitute_path_command):
2807 2017-09-27 Tom Tromey <tom@tromey.com>
2809 * typeprint.c (maintenance_print_type): Constify.
2810 * maint.c (maintenance_dump_me, maintenance_demangle)
2811 (maintenance_time_display, maintenance_info_sections)
2812 (maintenance_print_statistics, maintenance_deprecate)
2813 (maintenance_undeprecate): Constify.
2814 (maintenance_do_deprecate): Constify. Use std::string.
2815 (maintenance_selftest): Constify.
2816 * gdbtypes.h (maintenance_print_type): Constify.
2818 2017-09-27 Tom Tromey <tom@tromey.com>
2820 * hppa-tdep.c (unwind_command): Constify.
2822 2017-09-27 Tom Tromey <tom@tromey.com>
2824 * target-descriptions.c (unset_tdesc_filename_cmd)
2825 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2828 2017-09-27 Tom Tromey <tom@tromey.com>
2830 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2832 2017-09-27 Tom Tromey <tom@tromey.com>
2834 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2836 2017-09-27 Tom Tromey <tom@tromey.com>
2838 * tui/tui-regs.c (tui_reg_command): Constify.
2840 2017-09-27 Tom Tromey <tom@tromey.com>
2842 * skip.c (skip_file_command, skip_function_command)
2843 (skip_enable_command, skip_disable_command, skip_delete_command):
2846 2017-09-27 Tom Tromey <tom@tromey.com>
2848 * record-btrace.c (cmd_record_btrace_bts_start)
2849 (cmd_record_btrace_pt_start): Constify.
2851 2017-09-27 Tom Tromey <tom@tromey.com>
2853 * symmisc.c (maintenance_print_symbols)
2854 (maintenance_print_msymbols, maintenance_print_objfiles)
2855 (maintenance_info_symtabs, maintenance_check_symtabs)
2856 (maintenance_expand_symtabs, maintenance_info_line_tables):
2859 2017-09-27 Tom Tromey <tom@tromey.com>
2861 * top.c (new_ui_command): Constify.
2863 2017-09-27 Tom Tromey <tom@tromey.com>
2865 * symfile.c (add_symbol_file_command)
2866 (remove_symbol_file_command, list_overlays_command)
2867 (map_overlay_command, unmap_overlay_command)
2868 (overlay_auto_command, overlay_manual_command)
2869 (overlay_off_command, overlay_load_command): Constify.
2871 2017-09-27 Tom Tromey <tom@tromey.com>
2873 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2874 (info_spu_mailbox_command, info_spu_dma_command)
2875 (info_spu_proxydma_command): Constify.
2877 2017-09-27 Tom Tromey <tom@tromey.com>
2879 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2881 2017-09-27 Tom Tromey <tom@tromey.com>
2883 * cli/cli-script.c (user_defined_command): Constify.
2885 2017-09-27 Tom Tromey <tom@tromey.com>
2887 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2888 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2889 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2890 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2891 (dump_binary_value, append_binary_memory, append_binary_value):
2893 (struct dump_context) <func>: Constify.
2894 (add_dump_command): Update.
2896 2017-09-27 Tom Tromey <tom@tromey.com>
2898 * cli/cli-cmds.c (show_version, show_configuration)
2899 (source_command, show_user): Constify.
2901 2017-09-27 Tom Tromey <tom@tromey.com>
2903 * target.c (maintenance_print_target_stack): Constify.
2905 2017-09-27 Tom Tromey <tom@tromey.com>
2907 * interps.c (interpreter_exec_cmd): Constify.
2909 2017-09-27 Tom Tromey <tom@tromey.com>
2911 * record-full.c (cmd_record_full_restore): Constify.
2913 2017-09-27 Tom Tromey <tom@tromey.com>
2915 * memattr.c (enable_mem_command, disable_mem_command)
2916 (delete_mem_command): Constify.
2918 2017-09-27 Tom Tromey <tom@tromey.com>
2920 * value.c (show_convenience): Constify.
2922 2017-09-27 Tom Tromey <tom@tromey.com>
2924 * gdbcore.h (core_file_command): Update.
2925 * corefile.c (core_file_command): Constify.
2927 2017-09-27 Tom Tromey <tom@tromey.com>
2929 * user-regs.c (maintenance_print_user_registers): Constify.
2931 2017-09-27 Tom Tromey <tom@tromey.com>
2933 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2935 2017-09-27 Tom Tromey <tom@tromey.com>
2937 * cp-support.c (first_component_command): Constify.
2939 2017-09-27 Tom Tromey <tom@tromey.com>
2941 * psymtab.c (maintenance_print_psymbols)
2942 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2945 2017-09-27 Tom Tromey <tom@tromey.com>
2947 * windows-tdep.c (display_tib): Constify.
2949 2017-09-27 Tom Tromey <tom@tromey.com>
2951 * linux-fork.c (delete_checkpoint_command)
2952 (detach_checkpoint_command): Constify.
2954 2017-09-27 Tom Tromey <tom@tromey.com>
2956 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2958 2017-09-27 Tom Tromey <tom@tromey.com>
2960 * arc-tdep.c (dump_arc_instruction_command): Constify.
2962 2017-09-27 Tom Tromey <tom@tromey.com>
2964 * valprint.c (set_radix, show_radix): Constify.
2966 2017-09-27 Tom Tromey <tom@tromey.com>
2968 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2970 2017-09-27 Tom Tromey <tom@tromey.com>
2972 * command.h (not_just_help_class_command): Update.
2973 * cli/cli-decode.h (not_just_help_class_command): Update.
2974 * cli/cli-decode.c (not_just_help_class_command): Constify.
2976 2017-09-27 Tom Tromey <tom@tromey.com>
2978 * gdb_bfd.c (maintenance_info_bfds): Constify.
2980 2017-09-27 Tom Tromey <tom@tromey.com>
2982 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2984 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2985 (do_const_cfunc): New function.
2986 (cmd_cfunc_eq): New overload.
2987 (cli_user_command_p): Check do_const_cfunc.
2988 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2990 * command.h (add_cmd): Add const overload and no-function
2992 (set_cmd_cfunc): Add const overload.
2993 (cmd_const_cfunc_ftype): Declare.
2994 (cmd_cfunc_eq): Add const overload.
2995 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2996 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2999 2017-09-27 Tom Tromey <tom@tromey.com>
3001 * macroexp.c (get_next_token_for_substitution): New function.
3002 (substitute_args): Call it. Check for __VA_OPT__.
3004 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3005 Pedro Alves <palves@redhat.com>
3007 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
3008 producer_is_icc_lt_14.
3009 (producer_is_icc_lt_14): New function.
3010 (check_producer): Add code for checking version of ICC.
3011 (producer_is_icc): Move to producer.c.
3012 (read_structure_type): Restrict ICC workaround to ICC<14.
3013 * producer.c: Include selftest.h.
3014 (producer_is_icc, producer_parsing_tests, _initialize_producer):
3016 * producer.h (producer_is_icc): New declaration.
3018 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3020 * Makefile.in (SFILES): Add producer.c.
3021 (COMMON_OBS): Add producer.o
3022 * amd64-tdep.c (producer.h): Add new include.
3023 * dwarf2read.c (producer.h): Add new include.
3024 * producer.c: New file.
3025 * producer.h: New file.
3026 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
3028 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
3031 2017-09-26 Matthias Klose <doko@ubuntu.com>
3033 * configure.ac: Search ncursesw before ncurses.
3034 Check ncursesw/ncurses.h before ncurses/ncurses.h.
3035 * gdb_curses.h: Include <ncursesw/ncurses.h>
3036 * config.in, configure: Regenerate.
3038 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3041 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
3043 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3044 Remove i386sol2 support.
3045 * configure.nat <i386sol2>: Remove.
3046 <sol2-64>: Fold into ...
3048 Move common settings to default section.
3050 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3051 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3052 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3053 <i[34567]86-*-solaris*>: Remove.
3054 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3056 * configure.ac: Remove wctype in libw check.
3057 (_MSE_INT_H): Don't define on Solaris 7-9.
3058 <solaris*>: Remove libthread_db.so.1 check.
3059 * configure: Regenerate.
3060 * config.in: Regenerate.
3062 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3063 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3064 (gdb_ps_size_t): Remove.
3065 Use base types in users.
3066 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3068 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3070 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3073 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3074 (adi_is_addr_mapped): Likewise.
3075 (PSR_ICC): Don't redefine.
3076 (PSR_IMPL): Likewise.
3078 2017-09-25 Tom Tromey <tom@tromey.com>
3080 * regcache.c (regcache::dump): Use string_printf.
3082 2017-09-25 Tom Tromey <tom@tromey.com>
3084 * regcache.c (class regcache_invalidator): New.
3085 (struct register_to_invalidate): Remove.
3086 (make_cleanup_regcache_invalidate): Remove.
3087 (regcache::raw_write): Use regcache_invalidator.
3089 2017-09-25 Tom Tromey <tom@tromey.com>
3091 * spu-tdep.c (spu2ppu_sniffer): Update.
3092 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3093 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3095 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3096 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3097 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3098 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3099 (frame_pop): Update.
3101 2017-09-25 Tom Tromey <tom@tromey.com>
3103 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3104 * regcache.h (regcache_xfree): Don't declare.
3105 * regcache.c (regcache_xfree): Remove.
3106 (do_regcache_xfree): Use delete.
3107 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3108 * linux-fork.c (free_fork): Use delete.
3109 (fork_save_infrun_state): Likewise.
3110 * jit.c (jit_dealloc_cache): Use delete.
3111 * infrun.c (discard_infcall_suspend_state): Use delete.
3113 2017-09-25 Tom Tromey <tom@tromey.com>
3115 * regcache.h (regcache_xmalloc): Don't declare.
3116 (regcache_raw_set_cached_value): Update comment.
3117 * regcache.c (regcache_xmalloc): Remove.
3118 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3119 * jit.c (jit_frame_sniffer): Use new.
3120 * frame.c (frame_save_as_regcache): Use new.
3122 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3124 * NEWS: Advertise support for guarded-storage registers on IBM z.
3126 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3128 * s390-linux-nat.c (have_regset_gs): New static variable.
3129 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3130 control block and guarded-storage broadcast control regsets.
3131 (s390_read_description): Detect whether the target has
3132 guarded-storage support, return appropriate tdesc.
3133 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3134 (features/s390x-gs-linux64.c): Likewise.
3135 (struct gdbarch_tdep) <have_gs>: New field.
3136 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3137 (s390_gsbc_regset): New variables.
3138 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3139 and s390_gsbc_regset, if applicable.
3140 (s390_core_read_description): Check whether core file was from a
3141 target with guarded-storage support; include appropriate regsets.
3142 (s390_gdbarch_init): Add registers for guarded-storage support.
3143 (_initialize_s390_tdep): Initialize new target descriptions that
3144 include registers for guarded-storage support.
3145 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3146 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3147 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3148 (S390_NUM_REGS): Adjust macro definition.
3149 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3150 (tdesc_s390x_gs_linux64): New declarations.
3152 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3154 * features/s390-gs-linux64.xml: New file.
3155 * features/s390-gs.xml: New file.
3156 * features/s390-gsbc.xml: New file.
3157 * features/s390x-gs-linux64.xml: New file.
3158 * features/Makefile (WHICH): Add s390-gs-linux64 and
3160 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3161 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3162 * features/s390-gs-linux64.c: New generated file.
3163 * features/s390x-gs-linux64.c: New file.
3164 * regformats/s390-gs-linux64.dat: New file.
3165 * regformats/s390x-gs-linux64.dat: New file.
3167 2017-09-23 Tom Tromey <tom@tromey.com>
3169 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3171 2017-09-22 Tom Tromey <tom@tromey.com>
3173 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3174 type to scoped_restore_tmpl.
3175 <scoped_input_handler>: Initialize m_quit_handler directly.
3177 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3179 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3180 (cd_command): Likewise. Free "current_directory" before
3182 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3183 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3184 * top.c (gdb_dirbuf): Remove global declaration.
3185 * top.h (gdb_dirbuf): Likewise.
3187 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3189 * gnulib/aclocal.m4: Regenerate.
3190 * gnulib/config.in: Regenerate.
3191 * gnulib/configure: Regenerate.
3192 * gnulib/import/Makefile.am: Regenerate.
3193 * gnulib/import/Makefile.in: Regenerate.
3194 * gnulib/import/assure.h: New file.
3195 * gnulib/import/at-func.c: Likewise
3196 * gnulib/import/chdir-long.c: New file.
3197 * gnulib/import/chdir-long.h: New file.
3198 * gnulib/import/cloexec.c: New file.
3199 * gnulib/import/cloexec.h: New file.
3200 * gnulib/import/close.c: New file.
3201 * gnulib/import/closedir.c: New file.
3202 * gnulib/import/dirent-private.h: New file.
3203 * gnulib/import/dup-safer.c: New file.
3204 * gnulib/import/dup.c: New file.
3205 * gnulib/import/dup2.c: New file.
3206 * gnulib/import/error.c: New file.
3207 * gnulib/import/error.h: New file.
3208 * gnulib/import/exitfail.c: New file.
3209 * gnulib/import/exitfail.h: New file.
3210 * gnulib/import/fchdir.c: New file.
3211 * gnulib/import/fcntl.c: New file.
3212 * gnulib/import/fcntl.in.h: New file.
3213 * gnulib/import/fd-hook.c: New file.
3214 * gnulib/import/fd-hook.h: New file.
3215 * gnulib/import/fd-safer.c: New file.
3216 * gnulib/import/fdopendir.c: New file.
3217 * gnulib/import/filename.h: New file.
3218 * gnulib/import/filenamecat-lgpl.c: New file.
3219 * gnulib/import/filenamecat.h: New file.
3220 * gnulib/import/fstat.c: New file.
3221 * gnulib/import/fstatat.c: New file.
3222 * gnulib/import/getcwd-lgpl.c: New file.
3223 * gnulib/import/getcwd.c: New file.
3224 * gnulib/import/getdtablesize.c: New file.
3225 * gnulib/import/getlogin_r.c: New file.
3226 * gnulib/import/getprogname.c: New file.
3227 * gnulib/import/getprogname.h: New file.
3228 * gnulib/import/gettext.h: New file.
3229 * gnulib/import/glob-libc.h: New file.
3230 * gnulib/import/glob.c: New file.
3231 * gnulib/import/glob.in.h: New file.
3232 * gnulib/import/intprops.h: New file.
3233 * gnulib/import/m4/chdir-long.m4: New file.
3234 * gnulib/import/m4/close.m4: New file.
3235 * gnulib/import/m4/closedir.m4: New file.
3236 * gnulib/import/m4/d-ino.m4: New file.
3237 * gnulib/import/m4/d-type.m4: New file.
3238 * gnulib/import/m4/dup.m4: New file.
3239 * gnulib/import/m4/dup2.m4: New file.
3240 * gnulib/import/m4/error.m4: New file.
3241 * gnulib/import/m4/fchdir.m4: New file.
3242 * gnulib/import/m4/fcntl.m4: New file.
3243 * gnulib/import/m4/fcntl_h.m4: New file.
3244 * gnulib/import/m4/fdopendir.m4: New file.
3245 * gnulib/import/m4/filenamecat.m4: New file.
3246 * gnulib/import/m4/fstat.m4: New file.
3247 * gnulib/import/m4/fstatat.m4: New file.
3248 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3249 * gnulib/import/m4/getcwd-path-max.m4: New file.
3250 * gnulib/import/m4/getcwd.m4: New file.
3251 * gnulib/import/m4/getdtablesize.m4: New file.
3252 * gnulib/import/m4/getlogin_r.m4: New file.
3253 * gnulib/import/m4/getprogname.m4: New file.
3254 * gnulib/import/m4/glob.m4: New file.
3255 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3256 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3257 * gnulib/import/m4/mempcpy.m4: New file.
3258 * gnulib/import/m4/memrchr.m4: New file.
3259 * gnulib/import/m4/mode_t.m4: New file.
3260 * gnulib/import/m4/msvc-inval.m4: New file.
3261 * gnulib/import/m4/msvc-nothrow.m4: New file.
3262 * gnulib/import/m4/open.m4: New file.
3263 * gnulib/import/m4/openat.m4: New file.
3264 * gnulib/import/m4/opendir.m4: New file.
3265 * gnulib/import/m4/readdir.m4: New file.
3266 * gnulib/import/m4/realloc.m4: New file.
3267 * gnulib/import/m4/rewinddir.m4: New file.
3268 * gnulib/import/m4/save-cwd.m4: New file.
3269 * gnulib/import/m4/strdup.m4: New file.
3270 * gnulib/import/m4/strerror.m4: New file.
3271 * gnulib/import/m4/unistd-safer.m4: New file.
3272 * gnulib/import/mempcpy.c: New file.
3273 * gnulib/import/memrchr.c: New file.
3274 * gnulib/import/msvc-inval.c: New file.
3275 * gnulib/import/msvc-inval.h: New file.
3276 * gnulib/import/msvc-nothrow.c: New file.
3277 * gnulib/import/msvc-nothrow.h: New file.
3278 * gnulib/import/open.c: New file.
3279 * gnulib/import/openat-die.c: New file.
3280 * gnulib/import/openat-priv.h: New file.
3281 * gnulib/import/openat-proc.c: New file.
3282 * gnulib/import/openat.c: New file.
3283 * gnulib/import/openat.h: New file.
3284 * gnulib/import/opendir.c: New file.
3285 * gnulib/import/pipe-safer.c: New file.
3286 * gnulib/import/readdir.c: New file.
3287 * gnulib/import/realloc.c: New file.
3288 * gnulib/import/rewinddir.c: New file.
3289 * gnulib/import/save-cwd.c: New file.
3290 * gnulib/import/save-cwd.h: New file.
3291 * gnulib/import/strdup.c: New file.
3292 * gnulib/import/strerror-override.c: New file.
3293 * gnulib/import/strerror-override.h: New file.
3294 * gnulib/import/strerror.c: New file.
3295 * gnulib/import/unistd--.h: New file.
3296 * gnulib/import/unistd-safer.h: New file.
3297 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3298 "getcwd" and "glob".
3299 * ser-tcp.c: Undefine "close" before redefining it.
3301 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3303 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3306 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3308 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3309 <sol2,sparc>: Likewise.
3310 <sol2-64,i386>: Likewise.
3312 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3313 -Wdeprecated-declarations on *-*-solaris*.
3314 * configure: Regenerate.
3316 * procfs.c: Include "nat/inferior.h".
3317 (procfs_info_proc): Fix typo.
3319 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3321 * remote.c (vector): Include.
3322 (struct private_thread_info): Add field, thread_handle.
3323 (free_private_thread_info): Deallocate storage associated with
3325 (get_private_info_thread): Initialize `thread_handle' field.
3326 (struct thread_item): Add field, thread_handle.
3327 (clear_threads_listing_context): Deallocate storage associated
3329 (start_thread): Add support for "handle" attribute.
3330 (thread_attributes): Add "handle".
3331 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3333 (remote_update_thread_list): Update thread_handle.
3334 (remote_thread_handle_to_thread_info): New function.
3335 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3337 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3339 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3341 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3342 * python/python-internal.h (thread_object_type): Declare.
3344 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3346 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3347 (target_thread_handle_to_thread_info): Declare.
3348 * target.c (target_thread_handle_to_thread_info): New function.
3349 * target-delegates.c: Regenerate.
3350 * gdbthread.h (find_thread_by_handle): Declare.
3351 * thread.c (find_thread_by_handle): New function.
3352 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3354 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3356 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3358 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3360 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3362 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3364 2017-09-21 Yao Qi <yao.qi@linaro.org>
3366 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3369 2017-09-20 Tom Tromey <tom@tromey.com>
3371 * breakpoint.c (struct counted_command_line): Remove.
3372 (breakpoint_commands): Update.
3373 (alloc_counted_command_line, incref_counted_command_line)
3374 (decref_counted_command_line, do_cleanup_counted_command_line)
3375 (make_cleanup_decref_counted_command_line): Remove.
3376 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3377 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3378 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3379 (save_breakpoints): Update.
3380 * breakpoint.h (counted_command_line): Now a typedef to
3382 (struct breakpoint) <commands>: Now a counted_command_line.
3383 (struct bpstats) <command>: Likewise.
3385 2017-09-20 Tom Tromey <tom@tromey.com>
3387 * breakpoint.c (struct commands_info, do_map_commands_command):
3389 (commands_command_1): Update.
3390 (iterate_over_related_breakpoints): Take a function_view.
3391 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3392 (delete_command): Update.
3393 (map_breakpoint_numbers): Take a function_view.
3394 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3395 (disable_command): Update.
3396 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3397 (enable_command): Update.
3398 (struct disp_data, do_enable_breakpoint_disp)
3399 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3400 (do_map_enable_delete_breakpoint): Remove.
3401 (enable_once_command, enable_count_command, enable_delete_command)
3402 (delete_trace_variable_command): Update.
3404 2017-09-20 Tom Tromey <tom@tromey.com>
3406 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3407 (bpstat_clear): Use delete.
3408 (bpstats): New constructors.
3409 (bpstat_copy, bpstat_stop_status): Use new.
3410 (dprintf_after_condition_true): Update.
3411 * breakpoint.h (bpstats::bpstats): Add constructors.
3412 (bpstats::~bpstats): Add destructor.
3414 2017-09-20 Pedro Alves <palves@redhat.com>
3416 * eval.c (make_params): Delete, refactored as ...
3417 (class fake_method): ... this new type's ctor.
3418 (fake_method::~fake_method): New.
3419 (evaluate_subexp_standard): Use 'fake_method'.
3421 2017-09-20 Tom Tromey <tom@tromey.com>
3423 * windows-nat.c (get_windows_debug_event, windows_wait)
3424 (do_initial_windows_stuff, windows_attach): Update.
3425 * utils.c (vwarning, internal_vproblem): Update.
3426 (ui_unregister_input_event_handler_cleanup)
3427 (prepare_to_handle_input): Remove.
3428 (class scoped_input_handler): New.
3429 (defaulted_query, prompt_for_continue): Update.
3430 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3432 * top.c (undo_terminal_modifications_before_exit): Update.
3433 * target/target.h (target_terminal_init, target_terminal_inferior)
3434 (target_terminal_ours): Don't declare.
3435 (class target_terminal): New.
3436 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3437 (target_terminal_ours_for_output)
3438 (make_cleanup_restore_target_terminal): Don't declare.
3439 (target_terminal_info): Remove.
3440 * target.c (enum terminal_state, terminal_state): Remove.
3441 (target_terminal::terminal_state): Define.
3442 (target_terminal::init): Rename from target_terminal_init.
3443 (target_terminal::inferior): Rename from
3444 target_terminal_inferior.
3445 (target_terminal::ours): Rename from target_terminal_ours.
3446 (target_terminal::ours_for_output): Rename from
3447 target_terminal_ours_for_output.
3448 (target_terminal::info): New method.
3449 (cleanup_restore_target_terminal)
3450 (make_cleanup_restore_target_terminal): Remove.
3451 * solib.c (handle_solib_event): Update.
3452 * remote.c (remote_serial_quit_handler): Update.
3453 (remote_terminal_inferior, remote_wait_as): Update.
3454 * record-full.c (record_full_wait_1): Update.
3455 * nto-procfs.c (procfs_create_inferior): Update.
3456 * nat/fork-inferior.c (startup_inferior): Update.
3457 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3458 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3459 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3460 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3461 (mi_breakpoint_created, mi_breakpoint_deleted)
3462 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3463 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3464 (mi_user_selected_context_changed, report_initial_inferior):
3466 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3467 (linux_nat_terminal_inferior): Update.
3468 * infrun.c (follow_fork_inferior)
3469 (handle_vfork_child_exec_or_exit, do_target_resume)
3470 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3471 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3473 * inflow.c (child_terminal_init, info_terminal_command): Update.
3474 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3475 (attach_command): Update.
3476 * infcall.c (call_thread_fsm_should_stop): Update.
3477 * gnu-nat.c (gnu_attach): Update.
3478 * extension.c (struct active_ext_lang_state)
3479 (restore_active_ext_lang): Update.
3480 * exceptions.c (print_flush): Update.
3481 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3482 (struct quit_handler_cleanup_data, restore_quit_handler)
3483 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3485 * cp-support.c (gdb_demangle): Update.
3486 * breakpoint.c (update_inserted_breakpoint_locations)
3487 (insert_breakpoint_locations, handle_jit_event)
3488 (disable_breakpoints_in_unloaded_shlib): Update.
3489 * annotate.c (annotate_breakpoints_invalid)
3490 (annotate_frames_invalid): Update.
3492 2017-09-20 Tom Tromey <tom@tromey.com>
3494 * main.c (catch_command_errors): Rename from
3495 catch_command_errors_const.
3496 (captured_main_1): Update.
3498 2017-09-20 Pedro Alves <palves@redhat.com>
3500 * cli/cli-cmds.c (list_command): Use print_sal_location.
3501 (print_sal_location): New function.
3502 (ambiguous_line_spec): Use print_sal_location.
3503 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3504 * symtab.c (find_function_start_sal): Likewise.
3505 * symtab.h (symtab_and_line::symbol): New field.
3507 2017-09-20 Pedro Alves <palves@redhat.com>
3509 * linespec.c (minsym_found): Handle non-text minsyms.
3510 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3512 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3514 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3517 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3519 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3520 vmovups instead vmovaps.
3521 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3523 2017-09-19 John Baldwin <jhb@FreeBSD.org>
3525 * NEWS (Changes since GDB 8.0): Add starti.
3526 * infcmd.c (enum run_break): New.
3527 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3529 (run_command): Use enum run_how.
3530 (start_command): Likewise.
3531 (starti_command): New function.
3532 (RUN_ARGS_HELP): New macro.
3533 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3534 commands. Add starti command.
3536 2017-09-19 Yao Qi <yao.qi@linaro.org>
3538 * Makefile.in (monitor.o): Remove the rule.
3540 2017-09-19 Yao Qi <yao.qi@linaro.org>
3542 * annotate.h (struct annotate_arg_emitter): Use
3543 DISABLE_COPY_AND_ASSIGN.
3544 * common/refcounted-object.h (refcounted_object): Likewise.
3545 * completer.h (struct completion_result): Likewise.
3546 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3547 * filename-seen-cache.h (filename_seen_cache): Likewise.
3548 * gdbcore.h (thread_section_name): Likewise.
3549 * gdb_regex.h (compiled_regex): Likewise.
3550 * gdbthread.h (scoped_restore_current_thread): Likewise.
3551 * inferior.h (scoped_restore_current_inferior): Likewise.
3552 * jit.c (jit_reader): Likewise.
3553 * linespec.h (struct linespec_result): Likewise.
3554 * mi/mi-parse.h (struct mi_parse): Likewise.
3555 * nat/fork-inferior.c (execv_argv): Likewise.
3556 * progspace.h (scoped_restore_current_program_space): Likewise.
3557 * python/python-internal.h (class gdbpy_enter): Likewise.
3558 * regcache.h (regcache): Likewise.
3559 * target-descriptions.c (struct tdesc_reg): Likewise.
3560 (struct tdesc_type): Likewise.
3561 (struct tdesc_feature): Likewise.
3562 * ui-out.h (ui_out_emit_type): Likewise.
3564 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3566 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3567 label abort_expression.
3569 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3571 * common/buffer.c (buffer_xml_printf): Adjust.
3572 * common/xml-utils.c (xml_escape_text): Change return type to
3573 std::string, update code accordingly.
3574 * common/xml-utils.h (xml_escape_text): Change return type to
3576 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3577 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3578 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3581 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3583 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3584 (SUBDIR_UNITTESTS_OBS): Add new object file.
3585 * unittests/xml-utils-selftests.c: New file.
3587 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3589 * common/selftest.h (selftest): New struct/interface.
3590 (register_test): Add name parameter, add new overload.
3591 (run_tests): Add filter parameter.
3592 (for_each_selftest_ftype): New typedef.
3593 (for_each_selftest): New declaration.
3594 * common/selftest.c (tests): Change type to
3595 map<string, unique_ptr<selftest>>.
3596 (simple_selftest): New struct.
3597 (register_test): New function.
3598 (register_test): Add name parameter and use it.
3599 (run_tests): Add filter parameter and use it. Add prints.
3600 Adjust to vector -> map change.
3601 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3602 registering selftests.
3603 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3604 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3605 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3606 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3607 * findvar.c (_initialize_findvar): Likewise.
3608 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3609 * maint.c (maintenance_selftest): Update call to run_tests.
3610 (maintenance_info_selftests): New function.
3611 (_initialize_maint_cmds): Register "maintenance info selftests"
3612 command. Update "maintenance selftest" doc.
3613 * regcache.c (_initialize_regcache): Add names when registering
3615 * rust-exp.y (_initialize_rust_exp): Likewise.
3616 * selftest-arch.c (gdbarch_selftest): New struct.
3617 (gdbarch_tests): Remove.
3618 (register_test_foreach_arch): Add name parameter. Call
3620 (tests_with_arch): Remove, move most content to
3621 gdbarch_selftest::operator().
3622 (_initialize_selftests_foreach_arch): Remove.
3623 * selftest-arch.h (register_test_foreach_arch): Add name
3625 (run_tests_with_arch): New declaration.
3626 * utils-selftests.c (_initialize_utils_selftests): Add names
3627 when registering selftests.
3628 * utils.c (_initialize_utils): Likewise.
3629 * unittests/array-view-selftests.c
3630 (_initialize_array_view_selftests): Likewise.
3631 * unittests/environ-selftests.c (_initialize_environ_selftests):
3633 * unittests/function-view-selftests.c
3634 (_initialize_function_view_selftests): Likewise.
3635 * unittests/offset-type-selftests.c
3636 (_initialize_offset_type_selftests): Likewise.
3637 * unittests/optional-selftests.c
3638 (_initialize_optional_selftests): Likewise.
3639 * unittests/scoped_restore-selftests.c
3640 (_initialize_scoped_restore_selftests): Likewise.
3641 * NEWS: Document "maintenance selftest" and "maint info
3644 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3646 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3649 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3651 * mi/mi-main.c (mi_load_progress): Make uiout variable
3654 2017-09-15 Pedro Alves <palves@redhat.com>
3656 * compile/compile-c-types.c (convert_enum, convert_int)
3657 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3659 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3661 * dwarf2read.c (copy_string): Remove.
3662 (parse_macro_definition): Replace copy_string with savestring.
3664 2017-09-15 Yao Qi <yao.qi@linaro.org>
3666 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3668 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3670 (i[34567]86-*-linux*): Likewise.
3672 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3674 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3675 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3676 <stack>: Change type to std::vector.
3677 <stack_len, stack_allocated>: Remove.
3678 <grow_stack>: Remove.
3679 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3680 (dwarf_expr_context::~dwarf_expr_context): Remove.
3681 (dwarf_expr_context::grow_stack): Remove.
3682 (dwarf_expr_context::push): Adjust.
3683 (dwarf_expr_context::pop): Adjust.
3684 (dwarf_expr_context::fetch): Adjust.
3685 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3686 (dwarf_expr_context::stack_empty_p): Adjust.
3687 (dwarf_expr_context::execute_stack_op): Adjust.
3689 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3691 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3692 return type to bool.
3693 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3695 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3697 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3698 Change type to bool.
3699 (dwarf_stack_value) <in_stack_memory>: Likewise.
3700 (dwarf_expr_context) <push_address>: Change parameter type to
3702 <fetch_in_stack_memory>: Change return type to bool.
3703 <push>: Change parameter type to bool.
3704 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3706 (dwarf_expr_context::push_address): Likewise.
3707 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3709 (dwarf_expr_context::execute_stack_op): Adjust.
3710 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3712 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3714 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3715 (struct dwarf_expr_context) <n_pieces>: Remove.
3716 <pieces>: Change type to std::vector.
3717 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3718 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3720 (dwarf_expr_context::add_piece): Adjust.
3721 * dwarf2loc.c (struct piece_closure): Initialize fields.
3723 <pieces>: Change type to std::vector.
3724 (allocate_piece_closure): Adjust, change parameter to
3725 std::vector rvalue and std::move it to piece_closure.
3726 (rw_pieced_value): Adjust.
3727 (check_pieced_synthetic_pointer): Adjust.
3728 (indirect_synthetic_pointer): Adjust.
3729 (coerce_pieced_ref): Adjust.
3730 (free_pieced_value_closure): Adjust. Use delete to free
3732 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3733 to allocate_piece_closure.
3734 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3736 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3738 * probe.h (probe_ops_cp): Remove typedef.
3739 (DEF_VEC_P (probe_ops_cp)): Remove.
3740 (all_probe_ops): Change type to std::vector.
3741 * probe.c (info_probes_for_ops): Adjust to vector change.
3742 (probe_linespec_to_ops): Likewise.
3743 (all_probe_ops): Change type to std::vector.
3744 (_initialize_probe): Adjust to vector change.
3745 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3746 * elfread.c (elf_get_probes): Likewise.
3747 * stap-probe.c (_initialize_stap_probe): Likewise.
3749 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3751 * probe.h (struct bound_probe): Define constructors.
3752 * probe.c (bound_probe_s): Remove typedef.
3753 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3754 (collect_probes): Change return type to std::vector, remove
3756 (compare_probes): Return bool, change parameter type. Change
3757 semantic to "less than".
3758 (gen_ui_out_table_header_info): Change parameter to std::vector
3760 (exists_probe_with_pops): Likewise.
3761 (info_probes_for_ops): Update to std::vector change.
3762 (enable_probes_command): Likewise.
3763 (disable_probes_command): Likewise.
3765 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3767 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3769 * probe.c (parse_probes_in_pspace): Update.
3770 (find_probes_in_objfile): Update.
3771 (find_probe_by_pc): Update.
3772 (collect_probes): Update.
3773 (probe_any_get_probes): Update.
3774 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3775 return type to reference to std::vector.
3776 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3777 std::vector and update.
3778 (dtrace_process_dof): Likewise.
3779 (dtrace_get_probes): Likewise.
3780 * elfread.c (elf_get_probes): Change return type to std::vector,
3781 store an std::vector in bfd_data.
3782 (probe_key_free): Update to std::vector.
3783 * stap-probe.c (handle_stap_probe): Change parameter to
3784 std::vector and update.
3785 (stap_get_probes): Likewise.
3786 * symfile-debug.c (debug_sym_get_probes): Change return type to
3787 std::vector and update.
3789 2017-09-11 Tom Tromey <tom@tromey.com>
3791 * breakpoint.c (program_breakpoint_here_p): Update.
3792 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3793 from make_show_memory_breakpoints_cleanup. Return a
3794 scoped_restore_tmpl<int>.
3795 (restore_show_memory_breakpoints): Remove.
3796 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3797 * mem-break.c (memory_validate_breakpoint): Update.
3798 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3799 (ia64_memory_remove_breakpoint): Update.
3800 (ia64_breakpoint_from_pc): Update.
3801 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3802 from make_show_memory_breakpoints_cleanup.
3804 2017-09-11 Tom Tromey <tom@tromey.com>
3806 * d-namespace.c (d_lookup_symbol): Use std::string.
3807 (find_symbol_in_baseclass): Likewise.
3809 2017-09-11 Tom Tromey <tom@tromey.com>
3811 * ctf.c (ctf_start): Use std::string.
3813 2017-09-11 Tom Tromey <tom@tromey.com>
3815 * ada-lang.c (is_known_support_routine): Update.
3816 (ada_unhandled_exception_name_addr_from_raise): Update.
3817 * guile/scm-frame.c (gdbscm_frame_name): Update.
3818 * python/py-frame.c (frapy_name): Update.
3819 (frapy_function): Update.
3820 * stack.h (find_frame_funname): Update.
3821 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3822 (print_frame): Update.
3824 2017-09-11 Tom Tromey <tom@tromey.com>
3826 * findcmd.c (put_bits): Take a gdb::byte_vector.
3827 (parse_find_args): Return gdb::byte_vector. "args" now const.
3828 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3830 (find_command): Update.
3832 2017-09-11 Tom Tromey <tom@tromey.com>
3834 * cli/cli-script.c (class scoped_restore_hook_in): New.
3835 (clear_hook_in_cleanup): Remove.
3836 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3837 scoped_restore_hook_in.
3839 2017-09-11 Tom Tromey <tom@tromey.com>
3841 * cli/cli-script.c (restore_interp): Remove.
3842 (read_command_lines): Use scoped_restore_interp.
3843 * interps.c (scoped_restore_interp::set_temp): Rename from
3845 * interps.h (class scoped_restore_interp): New.
3846 (interp_set_temp): Remove.
3848 2017-09-11 Tom Tromey <tom@tromey.com>
3850 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3851 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3852 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3854 (mi_cmd_break_insert_1): Update.
3855 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3858 2017-09-11 Tom Tromey <tom@tromey.com>
3860 * demangle.c (demangle_command): Update.
3861 * breakpoint.c (disable_command): Update.
3862 (enable_command): Update.
3863 (find_location_by_number): Make "number" const. Use
3865 * cli/cli-utils.c (extract_arg): Return std::string.
3866 * probe.c (parse_probe_linespec): Update. Change types.
3867 (collect_probes): Take string arguments.
3868 (parse_probe_linespec): Likewise.
3869 (info_probes_for_ops): Update.
3870 (enable_probes_command): Update.
3871 (disable_probes_command): Update.
3872 * break-catch-sig.c (catch_signal_split_args): Update.
3873 * mi/mi-parse.c (mi_parse): Update.
3875 2017-09-11 Tom Tromey <tom@tromey.com>
3877 * language.h (language_enum): Make argument const.
3878 * language.c (language_enum): Make argument const.
3880 2017-09-11 Tom Tromey <tom@tromey.com>
3882 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3884 (skip_to_space): Rename from skip_to_space_const.
3885 * common/common-utils.c (skip_to_space): New function.
3886 (skip_to_space): Rename from skip_to_space_const.
3887 * cli/cli-utils.h (get_number): Rename from get_number_const.
3888 (extract_arg): Rename from extract_arg_const.
3889 * cli/cli-utils.c (get_number): Rename from get_number_const.
3890 (extract_arg): Rename from extract_arg_const.
3891 (number_or_range_parser::get_number): Use ::get_number.
3892 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3893 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3894 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3895 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3896 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3897 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3898 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3899 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3901 2017-09-11 Tom Tromey <tom@tromey.com>
3903 * python/python.c (do_start_initialization): Use
3904 py-event-types.def to initialize types.
3905 Define all object type structures.
3906 * python/python-internal.h: Don't declare event initialization
3908 * python/py-threadevent.c (thread_event_object_type): Don't
3910 * python/py-stopevent.c (stop_event_object_type): Don't define.
3911 * python/py-signalevent.c (signal_event_object_type): Don't
3913 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3914 (clear_objfiles_event_object_type): Don't declare or define.
3915 * python/py-infevents.c (inferior_call_pre_event_object_type)
3916 (inferior_call_post_event_object_type)
3917 (register_changed_event_object_type)
3918 (memory_changed_event_object_type): Don't declare or define.
3919 * python/py-inferior.c (new_thread_event_object_type)
3920 (new_inferior_event_object_type)
3921 (inferior_deleted_event_object_type): Don't declare or define.
3922 * python/py-exitedevent.c (exited_event_object_type): Don't
3924 * python/py-evts.c (gdbpy_initialize_py_events): Use
3926 * python/py-events.h (thread_event_object_type): Don't declare.
3927 (events_object): Use py-all-events.def.
3928 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3930 * python/py-event-types.def: New file.
3931 * python/py-continueevent.c (create_continue_event_object): Don't
3933 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3935 * python/py-all-events.def: New file.
3937 2017-09-11 Tom Tromey <tom@tromey.com>
3939 * python/py-threadevent.c (create_thread_event_object): Return
3941 * python/py-stopevent.h (create_stop_event_object)
3942 (create_breakpoint_event_object, create_signal_event_object):
3944 * python/py-stopevent.c (create_stop_event_object): Return
3946 (emit_stop_event): Update.
3947 * python/py-signalevent.c (create_signal_event_object): Return
3949 * python/py-infevents.c (create_inferior_call_event_object):
3951 * python/py-event.h (create_event_object)
3952 (create_thread_event_object): Update.
3953 * python/py-event.c (create_event_object): Return gdbpy_ref.
3954 * python/py-continueevent.c: Return gdbpy_ref.
3955 * python/py-bpevent.c (create_breakpoint_event_object): Return
3958 2017-09-11 Tom Tromey <tom@tromey.com>
3962 * python/python.c (do_start_initialization): Initialize new event
3964 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3965 (gdbpy_initialize_inferior_deleted_event)
3966 (gdbpy_initialize_new_thread_event): Declare.
3967 * python/py-threadevent.c (create_thread_event_object): Add option
3969 * python/py-inferior.c (new_thread_event_object_type)
3970 (new_inferior_event_object_type)
3971 (inferior_deleted_event_object_type): Declare.
3972 (python_new_inferior, python_inferior_deleted): New functions.
3973 (add_thread_object): Emit new_thread event.
3974 (gdbpy_initialize_inferior): Attach new functions to corresponding
3976 (new_thread, new_inferior, inferior_deleted): Define new event
3978 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3980 * python/py-events.h (events_object) <new_inferior,
3981 inferior_deleted, new_thread>: New fields.
3982 * python/py-event.h (create_thread_event_breakpoint): Add optional
3985 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3987 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3988 check current_ui instead.
3989 (internal_vproblem): Likewise.
3991 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3993 * thread.c (print_thread_info_1): Remove unnecessary calls to
3994 uiout->is_mi_like_p.
3996 2017-09-09 Tom Tromey <tom@tromey.com>
3998 * namespace.h (add_using_directive): Update.
3999 * namespace.c (add_using_directive): Change type of excludes to
4001 * dwarf2read.c (read_import_statement): Use std::vector.
4002 (read_namespace): Update.
4003 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4005 2017-09-09 Tom Tromey <tom@tromey.com>
4007 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
4009 2017-09-09 Tom Tromey <tom@tromey.com>
4011 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
4013 2017-09-09 Tom Tromey <tom@tromey.com>
4015 * stack.c (func_command): Use gdb::def_vector.
4017 2017-09-09 Tom Tromey <tom@tromey.com>
4019 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
4020 ui_out_emit_list, ui_out_emit_tuple.
4021 (mi_cmd_var_update): Likewise.
4023 2017-09-09 Tom Tromey <tom@tromey.com>
4025 * mi/mi-interp.c (mi_user_selected_context_changed): Use
4026 ui_out_redirect_pop.
4027 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
4028 ui_out_redirect_pop.
4029 * utils.c (do_ui_out_redirect_pop)
4030 (make_cleanup_ui_out_redirect_pop): Remove.
4031 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
4032 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
4033 * ui-out.h (ui_out_redirect_pop): New class.
4035 2017-09-09 Tom Tromey <tom@tromey.com>
4037 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
4038 (list_available_thread_groups, mi_cmd_list_thread_groups)
4039 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
4040 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
4043 2017-09-09 Tom Tromey <tom@tromey.com>
4045 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4048 2017-09-09 Tom Tromey <tom@tromey.com>
4050 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4051 * stack.c (print_frame): Use ui_out_emit_tuple.
4052 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4053 (info_spu_mailbox_command, info_spu_dma_command)
4054 (info_spu_proxydma_command): Likewise.
4055 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4056 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4057 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4059 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4061 2017-09-09 Tom Tromey <tom@tromey.com>
4063 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4064 (class ui_out_emit_table): Update comment.
4065 * ui-out.c (do_cleanup_table_end)
4066 (make_cleanup_ui_out_table_begin_end): Remove.
4067 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4068 (info_spu_dma_cmdlist): Likewise.
4069 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4070 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4073 2017-09-09 Tom Tromey <tom@tromey.com>
4075 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4076 ui_out_emit_list, gdb::optional.
4078 2017-09-09 John Baldwin <jhb@FreeBSD.org>
4080 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4082 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4084 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4086 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4087 * ada-exp.y: Remove _initialize_ada_exp prototype.
4088 * ada-lang.c: Remove _initialize_ada_language prototype.
4089 * ada-tasks.c: Remove _initialize_tasks prototype.
4090 * addrmap.c: Remove _initialize_addrmap prototype.
4091 * agent.c: Remove _initialize_agent prototype.
4092 * aix-thread.c: Remove _initialize_aix_thread prototype.
4093 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4094 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4095 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4097 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4098 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4099 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4100 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4102 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4104 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4105 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4106 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4107 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4109 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4110 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4111 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4112 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4113 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4114 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4115 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4117 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4119 * annotate.c: Remove _initialize_annotate prototype.
4120 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4121 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4122 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4123 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4124 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4125 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4126 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4127 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4129 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4130 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4131 * auto-load.c: Remove _initialize_auto_load prototype.
4132 * auxv.c: Remove _initialize_auxv prototype.
4133 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4134 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4135 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4136 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4137 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4138 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4140 * break-catch-throw.c: Remove _initialize_break_catch_throw
4142 * breakpoint.c: Remove _initialize_breakpoint prototype.
4143 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4144 * btrace.c: Remove _initialize_btrace prototype.
4145 * charset.c: Remove _initialize_charset prototype.
4146 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4147 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4148 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4149 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4150 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4151 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4152 * coffread.c: Remove _initialize_coffread prototype.
4153 * compile/compile.c: Remove _initialize_compile prototype.
4154 * complaints.c: Remove _initialize_complaints prototype.
4155 * completer.c: Remove _initialize_completer prototype.
4156 * copying.awk: Remove _initialize_copying prototype.
4157 * copying.c: Regenerate.
4158 * core-regset.c: Remove _initialize_core_regset prototype.
4159 * corefile.c: Remove _initialize_core prototype.
4160 * corelow.c: Remove _initialize_corelow prototype.
4161 * cp-abi.c: Remove _initialize_cp_abi prototype.
4162 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4163 * cp-support.c: Remove _initialize_cp_support prototype.
4164 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4165 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4166 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4167 * ctf.c: Remove _initialize_ctf prototype.
4168 * d-lang.c: Remove _initialize_d_language prototype.
4169 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4171 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4172 * dbxread.c: Remove _initialize_dbxread prototype.
4173 * dcache.c: Remove _initialize_dcache prototype.
4174 * demangle.c: Remove _initialize_demangler prototype.
4175 * disasm-selftests.c: Remove _initialize_disasm_selftests
4177 * disasm.c: Remove _initialize_disasm prototype.
4178 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4179 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4180 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4182 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4183 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4184 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4185 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4186 * elfread.c: Remove _initialize_elfread prototype.
4187 * exec.c: Remove _initialize_exec prototype.
4188 * extension.c: Remove _initialize_extension prototype.
4189 * f-lang.c: Remove _initialize_f_language prototype.
4190 * f-valprint.c: Remove _initialize_f_valprint prototype.
4191 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4192 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4193 * filesystem.c: Remove _initialize_filesystem prototype.
4194 * findcmd.c: Remove _initialize_mem_search prototype.
4195 * fork-child.c: Remove _initialize_fork_child prototype.
4196 * frame-base.c: Remove _initialize_frame_base prototype.
4197 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4198 * frame.c: Remove _initialize_frame prototype.
4199 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4200 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4201 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4202 * gcore.c: Remove _initialize_gcore prototype.
4203 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4204 * gdbarch.c: Regenerate.
4205 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4206 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4207 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4208 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4209 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4210 * go-lang.c: Remove _initialize_go_language prototype.
4211 * go32-nat.c: Remove _initialize_go32_nat prototype.
4212 * guile/guile.c: Remove _initialize_guile prototype.
4213 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4214 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4215 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4216 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4217 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4218 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4219 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4220 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4221 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4222 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4224 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4226 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4227 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4228 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4229 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4230 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4231 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4232 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4233 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4234 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4235 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4236 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4237 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4238 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4239 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4240 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4241 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4243 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4245 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4246 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4247 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4248 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4249 * infcall.c: Remove _initialize_infcall prototype.
4250 * infcmd.c: Remove _initialize_infcmd prototype.
4251 * inferior.c: Remove _initialize_inferiors prototype.
4252 * inflow.c: Remove _initialize_inflow prototype.
4253 * infrun.c: Remove _initialize_infrun prototype.
4254 * interps.c: Remove _initialize_interpreter prototype.
4255 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4256 * jit.c: Remove _initialize_jit prototype.
4257 * language.c: Remove _initialize_language prototype.
4258 * linux-fork.c: Remove _initialize_linux_fork prototype.
4259 * linux-nat.c: Remove _initialize_linux_nat prototype.
4260 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4261 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4262 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4263 * m2-lang.c: Remove _initialize_m2_language prototype.
4264 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4265 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4266 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4267 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4268 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4269 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4270 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4271 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4272 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4273 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4274 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4275 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4276 * machoread.c: Remove _initialize_machoread prototype.
4277 * macrocmd.c: Remove _initialize_macrocmd prototype.
4278 * macroscope.c: Remove _initialize_macroscope prototype.
4279 * maint.c: Remove _initialize_maint_cmds prototype.
4280 * mdebugread.c: Remove _initialize_mdebugread prototype.
4281 * memattr.c: Remove _initialize_mem prototype.
4282 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4283 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4284 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4285 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4286 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4287 * microblaze-linux-tdep.c: Remove
4288 _initialize_microblaze_linux_tdep prototype.
4289 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4290 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4291 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4292 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4293 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4294 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4295 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4296 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4297 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4298 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4299 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4301 * mipsread.c: Remove _initialize_mipsread prototype.
4302 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4304 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4305 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4306 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4307 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4308 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4309 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4311 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4312 * nto-procfs.c: Remove _initialize_procfs prototype.
4313 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4314 * objc-lang.c: Remove _initialize_objc_language prototype.
4315 * objfiles.c: Remove _initialize_objfiles prototype.
4316 * observer.c: Remove observer_test_first_notification_function,
4317 observer_test_second_notification_function,
4318 observer_test_third_notification_function, and
4319 _initialize_observer prototypes.
4320 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4321 * osabi.c: Remove _initialize_gdb_osabi prototype.
4322 * osdata.c: Remove _initialize_osdata prototype.
4323 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4324 * parse.c: Remove _initialize_parse prototype.
4325 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4326 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4327 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4328 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4329 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4330 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4331 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4332 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4333 * printcmd.c: Remove _initialize_printcmd prototype.
4334 * probe.c: Remove _initialize_probe prototype.
4335 * proc-api.c: Remove _initialize_proc_api prototype.
4336 * proc-events.c: Remove _initialize_proc_events prototype.
4337 * proc-service.c: Remove _initialize_proc_service prototype.
4338 * procfs.c: Remove _initialize_procfs prototype.
4339 * psymtab.c: Remove _initialize_psymtab prototype.
4340 * python/python.c: Remove _initialize_python prototype.
4341 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4342 * record-btrace.c: Remove _initialize_record_btrace prototype.
4343 * record-full.c: Remove _initialize_record_full prototype.
4344 * record.c: Remove _initialize_record prototype.
4345 * regcache.c: Remove _initialize_regcache prototype.
4346 * reggroups.c: Remove _initialize_reggroup prototype.
4347 * remote-notif.c: Remove _initialize_notif prototype.
4348 * remote-sim.c: Remove _initialize_remote_sim prototype.
4349 * remote.c: Remove _initialize_remote prototype.
4350 * reverse.c: Remove _initialize_reverse prototype.
4351 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4352 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4353 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4355 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4356 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4357 * rust-exp.y: Remove _initialize_rust_exp prototype.
4358 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4359 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4360 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4361 * score-tdep.c: Remove _initialize_score_tdep prototype.
4362 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4364 * ser-go32.c: Remove _initialize_ser_dos prototype.
4365 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4366 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4367 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4368 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4369 * serial.c: Remove _initialize_serial prototype.
4370 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4371 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4372 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4373 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4374 * skip.c: Remove _initialize_step_skip prototype.
4375 * sol-thread.c: Remove _initialize_sol_thread prototype.
4376 * solib-aix.c: Remove _initialize_solib_aix prototype.
4377 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4378 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4379 * solib-frv.c: Remove _initialize_frv_solib prototype.
4380 * solib-spu.c: Remove _initialize_spu_solib prototype.
4381 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4382 * solib-target.c: Remove _initialize_solib_target prototype.
4383 * solib.c: Remove _initialize_solib prototype.
4384 * source.c: Remove _initialize_source prototype.
4385 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4386 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4388 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4389 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4390 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4391 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4393 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4394 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4395 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4396 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4398 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4400 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4402 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4404 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4405 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4407 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4409 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4411 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4413 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4415 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4416 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4417 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4418 * stabsread.c: Remove _initialize_stabsread prototype.
4419 * stack.c: Remove _initialize_stack prototype.
4420 * stap-probe.c: Remove _initialize_stap_probe prototype.
4421 * std-regs.c: Remove _initialize_frame_reg prototype.
4422 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4423 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4424 * symfile.c: Remove _initialize_symfile prototype.
4425 * symmisc.c: Remove _initialize_symmisc prototype.
4426 * symtab.c: Remove _initialize_symtab prototype.
4427 * target-dcache.c: Remove _initialize_target_dcache prototype.
4428 * target-descriptions.c: Remove _initialize_target_descriptions
4430 * thread.c: Remove _initialize_thread prototype.
4431 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4433 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4434 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4435 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4437 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4438 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4439 * tracefile.c: Remove _initialize_tracefile prototype.
4440 * tracepoint.c: Remove _initialize_tracepoint prototype.
4441 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4442 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4443 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4444 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4445 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4446 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4447 * tui/tui.c: Remove _initialize_tui prototype.
4448 * typeprint.c: Remove _initialize_typeprint prototype.
4449 * user-regs.c: Remove _initialize_user_regs prototype.
4450 * utils.c: Remove _initialize_utils prototype.
4451 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4452 * valarith.c: Remove _initialize_valarith prototype.
4453 * valops.c: Remove _initialize_valops prototype.
4454 * valprint.c: Remove _initialize_valprint prototype.
4455 * value.c: Remove _initialize_values prototype.
4456 * varobj.c: Remove _initialize_varobj prototype.
4457 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4458 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4459 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4460 * windows-nat.c: Remove _initialize_windows_nat,
4461 _initialize_check_for_gdb_ini, and _initialize_loadable
4463 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4464 * xcoffread.c: Remove _initialize_xcoffread prototype.
4465 * xml-support.c: Remove _initialize_xml_support prototype.
4466 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4467 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4469 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4471 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4473 2017-09-08 Keith Seitz <keiths@redhat.com>
4475 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4478 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4480 * f-valprint.c (f_val_print): Remove check for one byte
4481 sized integers. Remove printing of character type.
4483 2017-09-08 Frank Penczek <frank.penczek@intel.com>
4484 Christoph Weinmann <christoph.t.weinmann@intel.com>
4485 Bernhard Heckel <bernhard.heckel@intel.com>
4487 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4488 to maintain proper indentation when printing pointers/refs.
4490 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4494 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4496 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4498 2017-09-05 Tom Tromey <tom@tromey.com>
4500 * parse.c (funcall_chain): Now a std::vector.
4501 (start_arglist, end_arglist): Simplify.
4502 (free_funcalls): Remove.
4503 (parse_exp_in_context_1): Remove cleanup.
4505 2017-09-05 Tom Tromey <tom@tromey.com>
4507 * go-exp.y (go_parse): Don't create a cleanup.
4509 2017-09-05 Tom Tromey <tom@tromey.com>
4511 * d-exp.y (PrimaryExpression): Use std::string.
4512 (d_parse): Don't create a cleanup.
4514 2017-09-05 Tom Tromey <tom@tromey.com>
4516 * utils.c (do_clear_parser_state): Remove.
4517 (make_cleanup_clear_parser_state): Remove.
4518 * p-exp.y (pascal_parse): Use scoped_restore.
4519 * m2-exp.y (m2_parse): Use scoped_restore.
4520 * f-exp.y (f_parse): Use scoped_restore.
4521 * d-exp.y (d_parse): Use scoped_restore.
4522 * c-exp.y (c_parse): Use scoped_restore.
4523 * ada-exp.y (ada_parse): Use scoped_restore.
4524 * utils.h (make_cleanup_clear_parser_state): Remove.
4526 2017-09-06 Keith Seitz <keiths@redhat.com>
4528 * dwarf2read.c (dw2_linkage_name_attr): New function.
4529 (dw2_linkage_name): New function.
4530 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4531 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4532 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4534 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4536 * config/djgpp/djconfig.sh: Correct shell portability issue.
4538 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4540 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4542 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4544 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4545 * NEWS: Mention new FreeBSD/mips native configuration.
4546 * configure.host: Add aarch64*-*-freebsd*.
4547 * configure.nat: Likewise.
4548 * aarch64-fbsd-nat.c: New file.
4550 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4552 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4553 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4554 * NEWS: Mention new FreeBSD/aarch64 target.
4555 * configure.tgt: Add aarch64*-*-freebsd*.
4556 * aarch64-fbsd-tdep.c: New file.
4557 * aarch64-fbsd-tdep.h: New file.
4559 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4561 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4563 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4565 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4568 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4570 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4573 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4575 * infrun.c (follow_exec): Call add_thread after
4576 target_find_description.
4578 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4580 * infrun.c (handle_inferior_event_1): When exec'ing, read
4581 stop_pc after follow_exec.
4583 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4585 * remote.c (process_g_packet): Update error message.
4587 2017-09-05 Yao Qi <yao.qi@linaro.org>
4589 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4592 2017-09-05 Pedro Alves <palves@redhat.com>
4594 * eval.c (eval_call, evaluate_funcall): New functions, factored
4596 (evaluate_subexp_standard): ... this.
4598 2017-09-05 Yao Qi <yao.qi@linaro.org>
4600 * amd64-tdep.c (amd64_target_description): Create target
4602 (_initialize_amd64_tdep): Don't call functions
4603 initialize_tdesc_amd64_*. Add self tests.
4604 * arch/amd64.c (amd64_create_target_description): Add parameter
4605 is_linux. Call set_tdesc_osabi if is_linux is true.
4606 * arch/amd64.h (amd64_create_target_description): Update the
4608 * arch/i386.c (i386_create_target_description): Add parameter
4609 is_linux. Call set_tdesc_osabi if is_linux is true.
4610 * arch/i386.h (i386_create_target_description): Update
4612 * configure.tgt: Add i386.o to gdb_target_obs.
4613 * features/Makefile (XMLTOC): Remove i386/*.xml.
4614 * features/i386/amd64-avx-avx512.c: Remove.
4615 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4616 * features/i386/amd64-avx-mpx.c: Remove.
4617 * features/i386/amd64-avx.c: Remove.
4618 * features/i386/amd64-mpx.c: Remove.
4619 * features/i386/amd64.c: Remove.
4620 * features/i386/i386-avx-avx512.c: Remove.
4621 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4622 * features/i386/i386-avx-mpx.c: Remove.
4623 * features/i386/i386-avx.c: Remove.
4624 * features/i386/i386-mmx.c: Remove.
4625 * features/i386/i386-mpx.c: Remove.
4626 * features/i386/i386.c: Remove.
4627 * i386-tdep.c: Don't include features/i386/i386*.c., include
4628 target-descriptions.h and arch/i386.h.
4629 (i386_target_description): Create target descriptions.
4630 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4631 functions. Do self tests.
4633 2017-09-05 Yao Qi <yao.qi@linaro.org>
4635 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4636 * features/i386/amd64-avx-avx512-linux.c: Removed.
4637 * features/i386/amd64-avx-linux.c: Removed.
4638 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4639 * features/i386/amd64-avx-mpx-linux.c: Removed.
4640 * features/i386/amd64-linux.c: Removed.
4641 * features/i386/amd64-mpx-linux.c: Removed.
4642 * features/i386/x32-avx-avx512-linux.c: Removed.
4643 * features/i386/x32-avx-linux.c: Removed.
4644 * features/i386/x32-linux.c: Removed.
4646 2017-09-05 Yao Qi <yao.qi@linaro.org>
4648 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4650 (amd64_linux_read_description): Call
4651 amd64_create_target_description.
4652 * arch/amd64.c: New file.
4653 * arch/amd64.h: New file.
4654 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4655 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4657 2017-09-05 Yao Qi <yao.qi@linaro.org>
4659 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4660 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4661 (amd64_linux_read_description): Create target descriptions.
4662 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4663 functions. Add unit tests.
4664 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4666 * features/i386/64bit-avx.c: Generated.
4667 * features/i386/64bit-avx512.c: Generated.
4668 * features/i386/64bit-core.c: Generated.
4669 * features/i386/64bit-linux.c: Generated.
4670 * features/i386/64bit-mpx.c: Generated.
4671 * features/i386/64bit-pkeys.c: Generated.
4672 * features/i386/64bit-segments.c: Generated.
4673 * features/i386/64bit-sse.c: Generated.
4674 * features/i386/x32-core.c: Generated.
4675 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4676 c files for amd64-linux and x32-linux.
4678 2017-09-05 Yao Qi <yao.qi@linaro.org>
4680 * amd64-linux-tdep.c (amd64_linux_read_description): New
4682 (amd64_linux_core_read_description): Call
4683 amd64_linux_read_description.
4684 (amd64_linux_init_abi): Likewise.
4685 (amd64_x32_linux_init_abi): Likewise.
4686 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4687 * x86-linux-nat.c (x86_linux_read_description): Call
4688 amd64_linux_read_description.
4690 2017-09-05 Yao Qi <yao.qi@linaro.org>
4692 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4695 2017-09-05 Yao Qi <yao.qi@linaro.org>
4697 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4698 * features/i386/i386-avx-avx512-linux.c: Remove.
4699 * features/i386/i386-avx-linux.c: Remove.
4700 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4701 * features/i386/i386-avx-mpx-linux.c: Remove.
4702 * features/i386/i386-linux.c: Remove.
4703 * features/i386/i386-mmx-linux.c: Remove.
4704 * features/i386/i386-mpx-linux.c: Remove.
4706 2017-09-05 Yao Qi <yao.qi@linaro.org>
4708 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4709 (SFILES): Add arch/i386.c.
4710 (HFILES_NO_SRCDIR): Add arch/i386.h.
4711 * arch/i386.c: New file.
4712 * arch/i386.h: New file.
4713 * arch/tdesc.h (allocate_target_description): Declare.
4714 (set_tdesc_architecture): Declare.
4715 (set_tdesc_osabi): Declare.
4716 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4717 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4718 include arch/i386.h.
4719 (i386_linux_read_description): Remove code and call
4720 i386_create_target_description.
4721 (set_tdesc_architecture): New function.
4722 (set_tdesc_osabi): New function.
4723 * target-descriptions.h (allocate_target_description): Remove.
4725 2017-09-05 Yao Qi <yao.qi@linaro.org>
4727 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4728 * target-descriptions.c (tdesc_create_feature): Likewise, and
4730 * features/i386/32bit-avx.c: Re-generated.
4731 * features/i386/32bit-avx512.c: Re-generated.
4732 * features/i386/32bit-core.c: Re-generated.
4733 * features/i386/32bit-linux.c: Re-generated.
4734 * features/i386/32bit-mpx.c: Re-generated.
4735 * features/i386/32bit-pkeys.c: Re-generated.
4736 * features/i386/32bit-sse.c: Re-generated.
4738 2017-09-05 Yao Qi <yao.qi@linaro.org>
4740 * regformats/regdef.h (struct reg): Override operator == and !=.
4742 2017-09-05 Yao Qi <yao.qi@linaro.org>
4744 * arch/tdesc.h: New file.
4745 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4746 * target-descriptions.c: Update comments.
4747 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4749 * features/i386/32bit-avx.c: Re-generated.
4750 * features/i386/32bit-avx512.c: Re-generated.
4751 * features/i386/32bit-core.c: Re-generated.
4752 * features/i386/32bit-linux.c: Re-generated.
4753 * features/i386/32bit-mpx.c: Re-generated.
4754 * features/i386/32bit-pkeys.c: Re-generated.
4755 * features/i386/32bit-sse.c: Re-generated.
4757 2017-09-05 Yao Qi <yao.qi@linaro.org>
4759 * regformats/regdat.sh: Update generated code.
4761 2017-09-05 Yao Qi <yao.qi@linaro.org>
4763 * regformats/regdat.sh: Adjust code order.
4765 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4767 * expprint.c (dump_subexp_body_standard): Use constant format
4768 string in fprintf_filtered call.
4770 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4772 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4774 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4776 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4778 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4780 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4782 * bsd-kvm.o: Define _KMEMUSER.
4783 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4784 * configure: Regenerate.
4786 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4788 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4789 * i386-fbsd-nat.c: Likewise.
4791 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4793 * unittests/array-view-selftests.c: Add include of <array>.
4795 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4797 * spu-tdep.c (flush_ea_cache): Add missing argument to
4798 call_function_by_hand.
4800 2017-09-04 Pedro Alves <palves@redhat.com>
4802 * NEWS (Safer support for debugging with no debug info): New.
4804 2017-09-04 Pedro Alves <palves@redhat.com>
4806 * c-exp.y (function_method, function_method_void): Add current
4807 instance flags to TYPE_INSTANCE.
4808 * dwarf2read.c (check_modifier): New.
4809 (compute_delayed_physnames): Assert that only C++ adds delayed
4810 physnames. Mark fn_fields as const/volatile depending on
4812 * eval.c (make_params): New type_instance_flags parameter. Use
4813 it as the new type's instance flags.
4814 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4815 flags element and pass it to make_params.
4816 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4817 instance flags element.
4818 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4819 * gdbtypes.h: Include "enum-flags.h".
4820 (type_instance_flags): New enum-flags type.
4821 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4822 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4823 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4824 (follow_type_instance_flags): New function.
4825 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4826 * parser-defs.h (follow_type_instance_flags): Declare.
4827 * valops.c (value_struct_elt_for_reference): const/volatile must
4830 2017-09-04 Pedro Alves <palves@redhat.com>
4832 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4833 function/method scopes; lookup the nested name as a function local
4836 2017-09-04 Pedro Alves <palves@redhat.com>
4838 (%type <voidval>): Add function_method.
4839 * c-exp.y (exp): New production for calls with no arguments.
4840 (function_method, function_method_void_or_typelist): New
4842 (exp): New production for "method()::static_var".
4843 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4844 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4845 Handle OP_FUNC_STATIC_VAR.
4846 * parse.c (operator_length_standard):
4847 Handle OP_FUNC_STATIC_VAR.
4849 2017-09-04 Pedro Alves <palves@redhat.com>
4851 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4853 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4855 * parse.c (operator_length_standard, operator_check_standard):
4857 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4859 2017-09-04 Pedro Alves <palves@redhat.com>
4861 * ax-gdb.c: Include "typeprint.h".
4862 (gen_expr_for_cast): New function.
4863 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4864 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4866 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4867 nodebug_data_symbol.
4868 * eval.c: Include "typeprint.h".
4869 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4870 Error out if symbol has unknown type.
4871 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4872 evaluate_subexp_for_cast.
4873 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4875 (evaluate_subexp_for_cast): New function.
4876 * gdbtypes.c (init_nodebug_var_type): New function.
4877 (objfile_type): Use it to initialize types of variables with no
4879 * typeprint.c (error_unknown_type): New.
4880 * typeprint.h (error_unknown_type): New declaration.
4881 * compile/compile-c-types.c (convert_type_basic): Handle
4882 TYPE_CODE_ERROR; warn and fallback to int for variables with
4885 2017-09-04 Pedro Alves <palves@redhat.com>
4887 * eval.c (evaluate_var_value): New function, factored out from ...
4888 (evaluate_subexp_standard): ... here.
4890 2017-09-04 Pedro Alves <palves@redhat.com>
4892 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4893 Remove useless assignments to 'op'.
4895 2017-09-04 Pedro Alves <palves@redhat.com>
4897 * eval.c (eval_skip_value): New function.
4898 (evaluate_subexp_standard): Use it.
4900 2017-09-04 Pedro Alves <palves@redhat.com>
4902 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4903 function name from symbol/minsym and pass it to
4904 error_call_unknown_return_type.
4906 2017-09-04 Pedro Alves <palves@redhat.com>
4908 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4909 * ax-gdb.c (gen_msym_var_ref): New function.
4910 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4911 * eval.c (evaluate_var_msym_value): New function.
4912 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4913 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4914 to call_function_by_hand.
4915 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4916 Handle OP_VAR_MSYM_VALUE.
4917 (union exp_element) <msymbol>: New field.
4918 * minsyms.h (struct type): Forward declare.
4919 (find_minsym_type_and_address): Declare.
4920 * parse.c (write_exp_elt_msym): New function.
4921 (write_exp_msymbol): Delete, refactored as ...
4922 (find_minsym_type_and_address): ... this new function.
4923 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4924 (operator_length_standard, operator_check_standard): Handle
4926 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4928 2017-09-04 Pedro Alves <palves@redhat.com>
4930 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4931 TYPE_GNU_IFUNC specially here. Throw error if return type is
4933 * ada-typeprint.c (print_func_type): Handle functions with unknown
4935 * c-typeprint.c (c_type_print_base): Handle functions and methods
4936 with unknown return type.
4937 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4938 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4939 * compile/compile-c-types.c: Include "objfiles.h".
4940 (convert_func): For functions with unknown return type, warn and
4942 * compile/compile-object-run.c (compile_object_run): Adjust call
4943 to call_function_by_hand_dummy.
4944 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4945 call_function_by_hand.
4946 * eval.c (evaluate_subexp_standard): Adjust calls to
4947 call_function_by_hand. Handle functions and methods with unknown
4948 return type. Pass expect_type to call_function_by_hand.
4949 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4951 * gcore.c (call_target_sbrk): Adjust call to
4952 call_function_by_hand.
4953 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4954 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4955 an integer address type instead of nodebug.
4956 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4957 call_function_by_hand.
4958 * infcall.c (error_call_unknown_return_type): New function.
4959 (call_function_by_hand): New "default_return_type" parameter.
4961 (call_function_by_hand_dummy): New "default_return_type"
4962 parameter. Use it instead of defaulting to int. If there's no
4963 default and the return type is unknown, throw an error. If
4964 there's a default return type, and the called function has no
4965 debug info, then assume the function is prototyped.
4966 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4967 New "default_return_type" parameter.
4968 (error_call_unknown_return_type): New declaration.
4969 * linux-fork.c (call_lseek): Cast return type of lseek.
4970 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4971 call_function_by_hand.
4972 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4973 calls to call_function_by_hand.
4974 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4976 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4977 (value_nsstring, print_object_command): Adjust calls to
4978 call_function_by_hand.
4979 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4980 functions with unknown return type.
4981 (pascal_type_print_func_varspec_suffix): New function.
4982 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4983 TYPE_CODE_METHOD>: Use it.
4984 * python/py-value.c (valpy_call): Adjust call to
4985 call_function_by_hand.
4986 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4987 call_function_by_hand.
4988 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4989 call_function_by_hand.
4990 * valops.c (value_allocate_space_in_inferior): Adjust call to
4991 call_function_by_hand.
4992 * typeprint.c (type_print_unknown_return_type): New function.
4993 * typeprint.h (type_print_unknown_return_type): New declaration.
4995 2017-09-04 Pedro Alves <palves@redhat.com>
4997 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4998 types with more than one parameter as prototyped.
5000 2017-09-04 Pedro Alves <palves@redhat.com>
5002 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
5003 (disassemble_command): Use gdb_disassembly_flags instead of bare
5005 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
5006 (dump_insns, do_mixed_source_and_assembly_deprecated)
5007 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
5008 Use gdb_disassembly_flags instead of bare int.
5009 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
5010 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
5011 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
5012 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
5013 (enum gdb_disassembly_flag): ... values of this new enumeration.
5014 (gdb_disassembly_flags): Define.
5016 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
5017 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
5018 gdb_disassembly_flags instead of bare int.
5019 * record-btrace.c (btrace_insn_history)
5020 (record_btrace_insn_history, record_btrace_insn_history_range)
5021 (record_btrace_insn_history_from): Use gdb_disassembly_flags
5022 instead of bare int.
5023 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
5024 Use gdb_disassembly_flags instead of bare int.
5025 * target-debug.h (target_debug_print_gdb_disassembly_flags):
5027 * target-delegates.c: Regenerate.
5028 * target.c (target_insn_history, target_insn_history_from)
5029 (target_insn_history_range): Use gdb_disassembly_flags instead of
5031 * target.h: Include "disasm.h".
5032 (struct target_ops) <to_insn_history, to_insn_history_from,
5033 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
5035 (target_insn_history, target_insn_history_from)
5036 (target_insn_history_range): Use gdb_disassembly_flags instead of
5039 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5041 * cli/cli-script.c (build_command_line): For if/while commands,
5042 check whether args is empty.
5044 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5046 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5047 (enum command_control_type): Likewise.
5048 (struct command_line): Likewise.
5049 (free_command_lines): Likewise.
5050 (struct command_lines_deleter): Likewise.
5051 (command_line_up): Likewise.
5052 (read_command_lines): Likewise.
5053 (read_command_lines_1): Likewise.
5054 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5055 (enum command_control_type): Likewise.
5056 (struct command_line): Likewise.
5057 (free_command_lines): Likewise.
5058 (struct command_lines_deleter): Likewise.
5059 (command_line_up): Likewise.
5060 (read_command_lines): Likewise.
5061 (read_command_lines_1): Likewise.
5062 * breakpoint.h: Include cli/cli-script.h.
5063 * extension-priv.h: Likewise.
5064 * gdbcmd.h: Likewise.
5066 2017-09-04 Pedro Alves <palves@redhat.com>
5068 * ada-lang.c (is_known_support_routine): Move sal declaration to
5069 where it is initialized.
5070 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5071 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5072 (clear_command, update_static_tracepoint): Remove init_sal
5073 references. Move declarations closer to initializations.
5074 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5076 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5077 references. Move sal declarations closer to initializations.
5078 * frame.c (find_frame_sal): Return a symtab_and_line via function
5079 return instead of output parameter. Remove init_sal references.
5080 * frame.h (find_frame_sal): Return a symtab_and_line via function
5081 return instead of output parameter.
5082 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5083 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5085 (gdbscm_find_pc_line): Remove init_sal reference.
5086 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5087 references. Move declarations closer to initializations.
5088 * infcmd.c (set_step_frame): Update. Move declarations closer to
5090 (finish_backward): Remove init_sal references. Move declarations
5091 closer to initializations.
5092 * infrun.c (process_event_stop_test, handle_step_into_function)
5093 (insert_hp_step_resume_breakpoint_at_frame)
5094 (insert_step_resume_breakpoint_at_caller): Likewise.
5095 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5096 (symbol_to_sal): Likewise.
5097 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5098 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5099 to its initialization.
5100 * reverse.c (save_bookmark_command): Use new/delete. Remove
5101 init_sal references. Move declarations closer to initializations.
5102 * source.c (get_current_source_symtab_and_line): Remove brace
5104 (set_current_source_symtab_and_line): Now takes the sal by const
5105 reference. Remove brace initialization.
5106 (line_info): Remove init_sal reference.
5107 * source.h (set_current_source_symtab_and_line): Now takes a
5108 symtab_and_line via const reference.
5109 * stack.c (set_current_sal_from_frame): Adjust.
5110 (print_frame_info): Adjust.
5111 (get_last_displayed_sal): Return the sal via function return
5112 instead of via output parameter. Simplify.
5113 (frame_info): Adjust.
5114 * stack.h (get_last_displayed_sal): Return the sal via function
5115 return instead of via output parameter.
5116 * symtab.c (init_sal): Delete.
5117 (find_pc_sect_line): Remove init_sal references. Move
5118 declarations closer to initializations.
5119 (find_function_start_sal): Remove init_sal references. Move
5120 declarations closer to initializations.
5121 * symtab.h (struct symtab_and_line): In-class initialize all
5123 * tracepoint.c (set_traceframe_context)
5124 (print_one_static_tracepoint_marker): Remove init_sal references.
5125 Move declarations closer to initializations.
5126 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5127 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5128 declarations closer to initializations.
5129 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5130 init_sal references. Adjust.
5132 2017-09-04 Pedro Alves <palves@redhat.com>
5134 * ax-gdb.c (agent_command_1): Use range-for.
5135 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5136 * breakpoint.c: Include "common/array-view.h".
5137 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5138 parameter from struct symtabs_and_lines to
5139 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5140 (breakpoint_sals_to_pc): Change sals parameter from struct
5141 symtabs_and_lines to std::vector reference.
5142 (check_fast_tracepoint_sals): Change sals parameter from struct
5143 symtabs_and_lines to std::array_view. Use range-for.
5144 (decode_static_tracepoint_spec): Return a std::vector instead of
5145 symtabs_and_lines. Update.
5146 (create_breakpoint): Update.
5147 (break_range_command, until_break_command, clear_command): Update.
5148 (base_breakpoint_decode_location, bkpt_decode_location)
5149 (bkpt_probe_create_sals_from_location)
5150 (bkpt_probe_decode_location, tracepoint_decode_location)
5151 (tracepoint_probe_decode_location)
5152 (strace_marker_create_sals_from_location): Return a std::vector
5153 instead of symtabs_and_lines.
5154 (strace_marker_create_breakpoints_sal): Update.
5155 (strace_marker_decode_location): Return a std::vector instead of
5156 symtabs_and_lines. Update.
5157 (update_breakpoint_locations): Change struct symtabs_and_lines
5158 parameters to gdb::array_view. Adjust.
5159 (location_to_sals): Return a std::vector instead of
5160 symtabs_and_lines. Update.
5161 (breakpoint_re_set_default): Use std::vector instead of struct
5163 (decode_location_default): Return a std::vector instead of
5164 symtabs_and_lines. Update.
5165 * breakpoint.h: Include "common/array-view.h".
5166 (struct breakpoint_ops) <decode_location>: Now returns a
5167 std::vector instead of returning a symtabs_and_lines via output
5169 (update_breakpoint_locations): Change sals parameters to use
5171 * cli/cli-cmds.c (edit_command, list_command): Update to use
5172 std::vector and gdb::array_view.
5173 (ambiguous_line_spec): Adjust to use gdb::array_view and
5175 (compare_symtabs): Rename to ...
5176 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5177 const reference and adjust.
5178 (filter_sals): Rewrite using std::vector and standard algorithms.
5179 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5180 (jump_command): Update to use std::vector.
5181 * linespec.c (struct linespec_state) <canonical_names>: Update
5183 (add_sal_to_sals_basic): Delete.
5184 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5185 (decode_line_2, create_sals_line_offset)
5186 (convert_address_location_to_sals, convert_linespec_to_sals)
5187 (convert_explicit_location_to_sals, parse_linespec)
5188 (event_location_to_sals, decode_line_full, decode_line_1)
5189 (decode_line_with_current_source)
5190 (decode_line_with_last_displayed, decode_objc)
5191 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5192 (linespec_result::~linespec_result): Adjust to use std::vector
5193 instead of symtabs_and_lines.
5194 * linespec.h (linespec_sals::sals): Now a std::vector.
5195 (struct linespec_result): Use std::vector, bool, and in-class
5197 (decode_line_1, decode_line_with_current_source)
5198 (decode_line_with_last_displayed): Return std::vector.
5199 * macrocmd.c (info_macros_command): Use std::vector.
5200 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5201 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5203 * probe.h (parse_probes): Return a std::vector.
5204 * python/python.c (gdbpy_decode_line): Use std::vector and
5206 * source.c (select_source_symtab, line_info): Use std::vector.
5207 * stack.c (func_command): Use std::vector.
5208 * symtab.h (struct symtabs_and_lines): Delete.
5209 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5211 2017-09-04 Pedro Alves <palves@redhat.com>
5213 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5214 unittests/array-view-selftests.c.
5215 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5216 * common/array-view.h: New file.
5217 * unittests/array-view-selftests.c: New file.
5219 2017-09-04 Pedro Alves <palves@redhat.com>
5221 * cli/cli-cmds.c (edit_command): Pass message to
5222 ambiguous_line_spec.
5223 (list_command): Pass message to ambiguous_line_spec. Say
5224 "first"/"last" instead of "start" and "end" to be consistent with
5226 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5227 them to print formatted message.
5229 2017-09-04 Pedro Alves <palves@redhat.com>
5231 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5232 ftrace_update_insns by reference instead of pointer.
5234 2017-09-04 Yao Qi <yao.qi@linaro.org>
5236 * i386-go32-tdep.c: Include x86-xstate.h.
5237 (i386_go32_init_abi): Call i386_target_description.
5238 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5239 if xcr0 is X86_XSTATE_X87_MASK.
5240 * i386-tdep.h (tdesc_i386): Remove the declaration.
5241 (tdesc_i386_mmx): Likewise.
5243 2017-09-04 Yao Qi <yao.qi@linaro.org>
5245 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5246 X86_XSTATE_SSE_MASK instead of 0.
5248 2017-09-04 Yao Qi <yao.qi@linaro.org>
5250 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5251 i386_target_description.
5252 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5253 i386_target_description.
5254 * i386-tdep.c (i386_gdbarch_init): Likewise.
5256 2017-09-04 Yao Qi <yao.qi@linaro.org>
5258 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5259 (x86_darwin_init_abi_64): Call amd64_target_description.
5260 * amd64-dicos-tdep.c: Likewise.
5261 * amd64-fbsd-nat.c: Likewise.
5262 * amd64-fbsd-tdep.c: Likewise.
5263 * amd64-nbsd-tdep.c: Likewise.
5264 * amd64-obsd-tdep.c: Likewise.
5265 * amd64-sol2-tdep.c: Likewise.
5266 * amd64-windows-tdep.c: Likewise.
5267 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5269 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5271 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5272 (btrace_function) <insn>: Change type to use std::vector.
5273 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5274 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5275 ftrace_update_insns, ftrace_compute_global_level_offset,
5276 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5277 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5278 change to std::vector.
5279 (ftrace_update_insns): Adjust to change to std::vector, change
5280 type of INSN parameter.
5281 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5282 * record-btrace.c (btrace_call_history_insn_range,
5283 btrace_compute_src_line_range,
5284 record_btrace_frame_prev_register): Adjust to change to
5286 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5287 to change to std::vector.
5289 2017-09-03 Tom Tromey <tom@tromey.com>
5291 * corefile.c (reopen_exec_file): Use std::string.
5293 2017-09-03 Tom Tromey <tom@tromey.com>
5295 * compile/compile.c (compile_register_name_mangled): Return
5297 * compile/compile-loc2c.c (pushf_register_address): Update.
5298 (pushf_register): Update.
5299 * compile/compile-c-types.c (convert_array): Update.
5300 * compile/compile-c-symbols.c (generate_vla_size): Update.
5301 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5302 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5303 (convert_one_symbol): Update.
5304 (generate_c_for_for_one_variable): Update.
5305 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5307 (generate_register_struct): Update.
5308 * compile/compile-internal.h (c_get_range_decl_name): Return a
5310 (compile_register_name_mangled): Return std::string.
5312 2017-09-03 Tom Tromey <tom@tromey.com>
5314 * utils.c (perror_string): Return a std::string.
5315 (throw_perror_with_name, perror_warning_with_name): Update.
5317 2017-09-03 Tom Tromey <tom@tromey.com>
5319 * demangle.c (demangle_command): Use std::string,
5322 2017-09-03 Tom Tromey <tom@tromey.com>
5324 * cli/cli-setshow.c (do_set_command): Use std::string.
5326 2017-09-03 Tom Tromey <tom@tromey.com>
5328 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5330 2017-09-03 Tom Tromey <tom@tromey.com>
5332 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5334 2017-09-03 Tom Tromey <tom@tromey.com>
5336 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5337 gdb::unique_xmalloc_ptr.
5339 2017-09-03 Tom Tromey <tom@tromey.com>
5341 * thread.c (print_thread_info_1): Use string_printf.
5342 (thread_apply_command, thread_apply_all_command): Use
5345 2017-09-03 Tom Tromey <tom@tromey.com>
5347 * valprint.c (val_print_string): Update.
5348 * gdbcore.h (memory_error_message): Return std::string.
5349 * corefile.c (memory_error_message): Return std::string.
5350 (memory_error): Update.
5351 * breakpoint.c (insert_bp_location): Update.
5353 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5355 * target/waitstatus.h (target_waitstatus_to_string): Change
5356 return type to std::string.
5357 * target/waitstatus.c (target_waitstatus_to_string): Return
5359 * target.h (target_waitstatus_to_string): Remove declaration.
5360 * infrun.c (resume, clear_proceed_status_thread,
5361 print_target_wait_results, do_target_wait, save_waitstatus,
5362 stop_all_threads): Adjust.
5363 * record-btrace.c (record_btrace_wait): Adjust.
5365 (target_debug_print_struct_target_waitstatus_p): Adjust.
5367 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5370 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5373 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5375 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5376 for setting/unsetting environment variables on the remote target.
5377 (New remote packets): Add entries for QEnvironmentHexEncoded,
5378 QEnvironmentUnset and QEnvironmentReset.
5379 * common/environ.c (gdb_environ::operator=): Extend method to
5380 handle m_user_set_env_list and m_user_unset_env_list.
5381 (gdb_environ::clear): Likewise.
5382 (match_var_in_string): Change type of first parameter from 'char
5383 *' to 'const char *'.
5384 (gdb_environ::set): Extend method to handle
5385 m_user_set_env_list and m_user_unset_env_list.
5386 (gdb_environ::unset): Likewise.
5387 (gdb_environ::clear_user_set_env): New method.
5388 (gdb_environ::user_set_envp): Likewise.
5389 (gdb_environ::user_unset_envp): Likewise.
5390 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5391 m_user_unset_env_list on move constructor/assignment.
5392 (unset): Add new default parameter 'update_unset_list = true'.
5393 (clear_user_set_env): New method.
5394 (user_set_envp): Likewise.
5395 (user_unset_envp): Likewise.
5396 (m_user_set_env_list): New std::set.
5397 (m_user_unset_env_list): Likewise.
5398 * common/rsp-low.c (hex2str): New function.
5399 (bin2hex): New overload for bin2hex function.
5400 * common/rsp-low.c (hex2str): New prototype.
5401 (str2hex): New overload prototype.
5402 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5403 QEnvironmentUnset and QEnvironmentReset.
5404 (remote_protocol_features): Add QEnvironmentHexEncoded,
5405 QEnvironmentUnset and QEnvironmentReset packets.
5406 (send_environment_packet): New function.
5407 (extended_remote_environment_support): Likewise.
5408 (extended_remote_create_inferior): Call
5409 extended_remote_environment_support.
5410 (_initialize_remote): Add QEnvironmentHexEncoded,
5411 QEnvironmentUnset and QEnvironmentReset packet configs.
5412 * unittests/environ-selftests.c (gdb_selftest_env_var):
5414 (test_vector_initialization): New function.
5415 (test_init_from_host_environ): Likewise.
5416 (test_reinit_from_host_environ): Likewise.
5417 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5419 (test_unset_set_empty_vector): Likewise.
5420 (test_vector_clear): Likewise.
5421 (test_std_move): Likewise.
5422 (test_move_constructor):
5423 (test_self_move): Likewise.
5424 (test_set_unset_reset): Likewise.
5425 (run_tests): Rewrite in terms of the functions above.
5427 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
5429 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5430 (adi_available): Use a temp variable of type CORE_ADDR as argument
5431 3 when calling target_auxv_search.
5432 (adi_normalize_address): Use masks and xor operators to calculate
5434 (adi_read_versions, adi_write_versions, adi_print_versions)
5435 (do_examine, do_assign): Use paddress.
5437 2017-08-29 John Baldwin <jhb@FreeBSD.org>
5439 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5440 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5441 out of loop and add supply of FIR.
5442 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5445 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5448 * cli/cli-script.c (define_command): Don't convert command name
5451 2017-08-25 Joel Brobecker <brobecker@adacore.com>
5453 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5454 Update all callers accordingly. Remove all code blocks handling
5455 the case where DISPP is not NULL.
5457 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5460 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5461 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5462 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5464 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5466 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5467 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5468 (read_comp_units_from_section): New parameter abbrev_section, use
5469 read_and_check_comp_unit_head, allocate signatured_type if needed.
5470 (create_all_comp_units): Update read_comp_units_from_section caller.
5472 2017-08-23 Pedro Alves <palves@redhat.com>
5475 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5476 to null_ptid and switch to thread without reading the registers
5477 after adding the inferior.
5479 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5481 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5483 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5484 (compile_to_object): Implement compile_gcc.
5485 (_initialize_compile): Install "set compile-gcc". Initialize
5488 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5490 * compile/compile.c (compile_to_object): Conditionally call
5491 set_verbose. Conditionally call compile or compile_v0.
5493 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
5495 * sparc64-tdep.h: (adi_normalize_address): New export.
5496 * sparc-nat.h: (open_adi_tag_fd): New export.
5497 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5498 * sparc64-linux-tdep.c:
5499 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5500 (sparc64_linux_handle_segmentation_fault): New function.
5501 (sparc64_linux_init_abi): Register
5502 sparc64_linux_handle_segmentation_fault
5503 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5504 (sparc64_addr_bits_remove): New function.
5505 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5506 (MAX_PROC_NAME_SIZE): New macro.
5507 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5508 (sparc64adilist): New variable.
5509 (adi_proc_list): New variable.
5510 (find_adi_info): New function.
5511 (add_adi_info): New function.
5512 (get_adi_info_proc): New function.
5513 (get_adi_info): New function.
5514 (info_adi_command): New function.
5515 (read_maps_entry): New function.
5516 (adi_available): New function.
5517 (adi_normalize_address): New function.
5518 (adi_align_address): New function.
5519 (adi_convert_byte_count): New function.
5520 (adi_tag_fd): New function.
5521 (adi_is_addr_mapped): New function.
5522 (adi_read_versions): New function.
5523 (adi_write_versions): New function.
5524 (adi_print_versions): New function.
5525 (do_examine): New function.
5526 (do_assign): New function.
5527 (adi_examine_command): New function.
5528 (adi_assign_command): New function.
5529 (_initialize_sparc64_adi_tdep): New function.
5531 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5533 * breakpoint.c (breakpoints_info): Rename to ...
5534 (info_breakpoints_command): ... this.
5535 (watchpoints_info): Rename to ...
5536 (info_watchpoints_command): ... this.
5537 (tracepoints_info): Rename to ...
5538 (info_tracepoints_command): ... this.
5539 (_initialize_breakpoint): Adjust.
5540 * dcache.c (dcache_info): Rename to ...
5541 (info_display_command): ... this.
5542 (_initialize_dcache): Adjust.
5543 * frame.h (args_info): Rename to ...
5544 (info_args_command): ... this.
5545 (locals_info): Rename to ...
5546 (info_locals_command): ... this.
5547 * infcmd.c (nofp_registers_info): Rename to ...
5548 (info_registers_command): ... this.
5549 (float_info): Rename to ...
5550 (info_float_command): ... this.
5551 (program_info): Rename to ...
5552 (info_program_command): ... this.
5553 (all_registers_info): Rename to ...
5554 (info_all_registers_command): ... this.
5555 (vector_info): Rename to ...
5556 (info_vector_command): ... this.
5557 (float_info): Rename to ...
5558 (info_float_command): ... this.
5559 (_initialize_infcmd): Adjust.
5560 * inferior.h (term_info): Rename to ...
5561 (info_terminal_command): ... this.
5562 * inflow.c (term_info): Rename to ...
5563 (info_terminal_command): ... this.
5564 (_initialize_inflow): Adjust.
5565 * infrun.c (signals_info): Rename to ...
5566 (info_signals_command): ... this.
5567 (_initialize_infrun): Adjust.
5568 * objc-lang.c (classes_info): Rename to ...
5569 (info_classes_command): ... this.
5570 (selectors_info): Rename to ...
5571 (info_selectors_command): ... this.
5572 (_initialize_objc_language): Adjust.
5573 * printcmd.c (sym_info): Rename to ...
5574 (info_symbol_command): ... this.
5575 (address_info): Rename to ...
5576 (info_address_command): ... this.
5577 (display_info): Rename to ...
5578 (info_display_command): ... this.
5579 (_initialize_printcmd): Adjust.
5580 * reverse.c (bookmarks_info): Rename to ...
5581 (info_breakpoints_command): ... this.
5582 (_initialize_reverse): Adjust.
5583 * ser-go32.c (dos_info): Rename to ...
5584 (info_serial_command): ... this.
5585 (_initialize_ser_dos): Adjust.
5586 * skip.c (skip_info): Rename to ...
5587 (info_skip_command): ... this.
5588 (_initialize_step_skip): Adjust.
5589 * source.c (line_info): Rename to ...
5590 (info_line_command): ... this.
5591 (source_info): Rename to ...
5592 (info_source_command)
5593 * stack.c (frame_info): Rename to ...
5594 (info_frame_command): ... this.
5595 (locals_info): Rename to ...
5596 (info_locals_command): ... this.
5597 (args_info): Rename to ...
5598 (info_args_command): ... this.
5599 (_initialize_stack): Adjust.
5600 * symtab.c (sources_info): Rename to ...
5601 (info_sources_command): ... this.
5602 (variables_info): Rename to ...
5603 (info_variables_command): ... this.
5604 (functions_info): Rename to ...
5605 (info_functions_command): ... this.
5606 (types_info): Rename to ...
5607 (info_types_command): ... this.
5608 (_initialize_symtab): Adjust.
5609 * target.c (target_info): Rename to ...
5610 (info_target_command): ... this.
5611 (initialize_targets): Adjust.
5612 * tracepoint.c (tvariables_info): Rename to ...
5613 (info_tvariables_command): ... this.
5614 (scope_info): Rename to ...
5615 (info_scope_command): ... this.
5616 (trace_dump_actions): Adjust.
5617 (_initialize_tracepoint): Adjust.
5619 2017-08-22 Tom Tromey <tom@tromey.com>
5621 * breakpoint.h (install_breakpoint): Update.
5622 * breakpoint.c (add_solib_catchpoint): Update.
5623 (install_breakpoint): Change argument to a std::unique_ptr.
5624 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5625 (create_breakpoint_sal, create_breakpoint): Update.
5626 (watch_command_1, catch_exec_command_1)
5627 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5628 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5629 Return the breakpoint.
5630 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5631 (new_single_step_breakpoint): Update.
5632 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5634 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5636 * break-catch-sig.c (create_signal_catchpoint): Use
5638 * ada-lang.c (create_ada_exception_catchpoint): Use
5641 2017-08-22 Tom Tromey <tom@tromey.com>
5643 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5645 2017-08-22 Tom Tromey <tom@tromey.com>
5647 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5648 (lookup_partial_symbol): Update.
5650 2017-08-22 Tom Tromey <tom@tromey.com>
5652 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5653 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5654 (find_and_open_source, symtab_to_fullname): Update.
5655 * psymtab.c (psymtab_to_fullname): Update.
5657 2017-08-22 Tom Tromey <tom@tromey.com>
5659 * exec.c (exec_file_attach): Update.
5660 * linux-thread-db.c (try_thread_db_load): Update.
5661 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5662 * utils.c (gdb_realpath): Change return type.
5663 (gdb_realpath_keepfile): Update.
5664 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5665 (_initialize_utils): Register the new self test.
5666 * source.c (openp): Update.
5667 (find_and_open_source): Update.
5668 * nto-tdep.c (nto_find_and_open_solib): Update.
5669 * main.c (set_gdb_data_directory): Update.
5670 (captured_main_1): Update.
5671 * dwarf2read.c (dwarf2_get_dwz_file): Update
5672 (dw2_map_symbol_filenames): Update.
5673 * auto-load.c (auto_load_safe_path_vec_update): Update.
5674 (filename_is_in_auto_load_safe_path_vec): Change type of
5676 (auto_load_objfile_script): Update.
5677 (file_is_auto_load_safe): Update. Use std::string.
5678 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5680 2017-08-22 Tom Tromey <tom@tromey.com>
5682 * utils.c (gdb_realpath_keepfile): Return a
5683 gdb::unique_xmalloc_ptr.
5684 * exec.c (exec_file_attach): Update.
5685 * utils.h (gdb_realpath_keepfile): Return a
5686 gdb::unique_xmalloc_ptr.
5688 2017-08-22 Tom Tromey <tom@tromey.com>
5690 * compile/compile.c (compile_file_command): Use
5691 gdb::unique_xmalloc_ptr, std::string.
5692 * utils.c (gdb_abspath): Change return type.
5693 * source.c (openp): Update.
5694 * objfiles.c (allocate_objfile): Update.
5695 * main.c (set_gdb_data_directory): Update.
5696 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5698 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5700 * cli-cmds.c (list_commands): List actual code around more than
5703 2017-08-21 John Baldwin <jhb@FreeBSD.org>
5705 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5707 2017-08-21 Pedro Alves <palves@redhat.com>
5710 * c-exp.y (variable production): Handle function aliases.
5711 * minsyms.c (msymbol_is_text): New function.
5712 * minsyms.h (msymbol_is_text): Declare.
5713 * symtab.c (find_function_alias_target): New function.
5714 * symtab.h (find_function_alias_target): Declare.
5716 2017-08-21 Pedro Alves <palves@redhat.com>
5718 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5720 * typeprint.c (whatis_exp): If handling "whatis", and expression
5721 is OP_TYPE, strip one typedef level. Otherwise don't strip
5723 * valops.c (value_cast): Save "to" type before resolving
5724 stubs/typedefs. Use that type as resulting value's type.
5726 2017-08-18 Tom Tromey <tom@tromey.com>
5727 Pedro Alves <palves@redhat.com>
5729 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5730 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5731 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5732 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5733 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5734 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5735 (linux_get_siginfo_data): Add "thread" argument. Use
5737 * linux-nat.c (linux_child_follow_fork)
5738 (check_stopped_by_watchpoint): Use scoped_restore.
5739 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5740 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5741 (restore_inferior_ptid, save_inferior_ptid): Remove.
5742 * btrace.c (btrace_fetch): Use scoped_restore.
5743 * bsd-uthread.c (bsd_uthread_fetch_registers)
5744 (bsd_uthread_store_registers): Use scoped_restore.
5745 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5747 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5748 (aix_thread_xfer_partial): Use scoped_restore.
5749 * inferior.h (save_inferior_ptid): Remove.
5751 2017-08-18 Yao Qi <yao.qi@linaro.org>
5754 * arm-tdep.c (gdb_print_insn_arm): Mark
5755 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5757 2017-08-18 Yao Qi <yao.qi@linaro.org>
5759 * NEWS: Mention GDBserver's new option "--selftest".
5760 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5761 * selftest.c: Move it to common/selftest.c.
5762 * selftest.h: Move it to common/selftest.h.
5763 * selftest-arch.c (reset): New function.
5764 (tests_with_arch): Call reset.
5766 2017-08-18 Yao Qi <yao.qi@linaro.org>
5768 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5769 instead of exception_fprintf and printf_filtered.
5771 2017-08-18 Yao Qi <yao.qi@linaro.org>
5773 * selftest.c (register_self_test): Rename it to
5774 selftests::register_test.
5775 (run_self_tests): selftest::run_tests.
5776 * selftest.h: Update declarations.
5777 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5778 selftests::register_test_foreach_arch.
5779 * selftest-arch.h: Update declaration.
5780 * aarch64-tdep.c: Update.
5781 * arm-tdep.c: Likewise.
5782 * disasm-selftests.c: Likewise.
5783 * dwarf2loc.c: Likewise.
5784 * dwarf2-frame.c: Likewise.
5785 * findvar.c: Likewise.
5786 * gdbarch-selftests.c: Likewise.
5787 * maint.c (maintenance_selftest): Likewise.
5788 * regcache.c: Likewise.
5789 * rust-exp.y: Likewise.
5790 * selftest-arch.c: Likewise.
5791 * unittests/environ-selftests.c: Likewise.
5792 * unittests/function-view-selftests.c: Likewise.
5793 * unittests/offset-type-selftests.c: Likewise.
5794 * unittests/optional-selftests.c: Likewise.
5795 * unittests/scoped_restore-selftests.c: Likewise.
5796 * utils-selftests.c: Likewise.
5798 2017-08-17 Pedro Alves <palves@redhat.com>
5800 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5803 2017-08-17 Pedro Alves <palves@redhat.com>
5805 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5807 (reset_die_in_process): Delete, replaced by ...
5808 (process_die_scope): ... this new class. Make it responsible for
5809 freeing cu->line_header too.
5810 (process_die): Use process_die_scope.
5811 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5812 cu->line_header_die_owner. Don't release the line header if it's
5814 (setup_type_unit_groups): Make the CU/DIE own the line header.
5815 Don't release the line header here.
5817 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5819 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5821 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5823 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5826 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5828 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5831 2017-08-15 Stafford Horne <shorne@gmail.com>
5833 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5835 2017-08-15 Stafford Horne <shorne@gmail.com>
5837 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5839 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5842 * infcmd.c (unset_environment_command): Use the 'clear' method on
5843 the environment instead of resetting it.
5845 2017-08-15 John Baldwin <jhb@FreeBSD.org>
5847 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5850 2017-08-14 Tom Tromey <tom@tromey.com>
5852 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5853 (print_binary_chars): Likewise.
5854 (BITS_IN_BYTES): Remove.
5856 2017-08-14 Tom Tromey <tom@tromey.com>
5859 * valprint.c (LOW_ZERO): Change value to 034.
5860 (print_octal_chars): Add static_asserts for octal constants.
5861 * printcmd.c (print_scalar_formatted): Add 'd' case.
5863 2017-08-11 Tom Tromey <tom@tromey.com>
5865 * symfile.c (add_symbol_file_command): Use std::vector.
5867 2017-08-14 Tom Tromey <tom@tromey.com>
5869 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5870 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5872 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5874 2017-08-11 Pedro Alves <palves@redhat.com>
5876 * infrun.c (process_event_stop_test): Adjust
5877 function_name_is_marked_for_skip call.
5878 * skip.c: Include <list>.
5879 (skiplist_entry): Make it a class with private fields, and
5881 (skiplist_entry_chain): Delete.
5882 (skiplist_entries): New.
5883 (skiplist_entry_count): Delete.
5884 (highest_skiplist_entry_num): New.
5885 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5886 (add_skiplist_entry): Delete.
5887 (skiplist_entry::skiplist_entry): New.
5888 (skiplist_entry::add_entry): New.
5889 (skip_file_command, skip_function): Adjust.
5890 (compile_skip_regexp): Delete.
5891 (skip_command): Don't compile regexp here. Adjust to use
5892 skiplist_entry::add_entry.
5893 (skip_info): Adjust to use range-for and getters.
5894 (skip_enable_command, skip_disable_command): Adjust to use
5895 range-for and setters.
5896 (skip_delete_command): Adjust to use std::list.
5897 (add_skiplist_entry): Delete.
5898 (skip_file_p): Delete, refactored as ...
5899 (skiplist_entry::do_skip_file_p): ... this new method.
5900 (skip_gfile_p): Delete, refactored as ...
5901 (skiplist_entry::do_gskip_file_p): ... this new method.
5902 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5903 (skiplist_entry::skip_function_p): ... this new method.
5904 (function_name_is_marked_for_skip): Now returns bool, and takes
5905 the function sal by const reference. Adjust to use range-for and
5906 skiplist_entry methods.
5907 (_initialize_step_skip): Remove references to
5908 skiplist_entry_chain, skiplist_entry_count.
5909 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5910 takes the function sal by const reference.
5912 2017-08-11 Yao Qi <yao.qi@linaro.org>
5914 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5915 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5916 (dwarf2_frame_cache):
5917 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5918 RETURN_MASK_ALL and set *this_case to NULL.
5919 * frame-unwind.h: Update comments.
5921 2017-08-11 Yao Qi <yao.qi@linaro.org>
5923 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5924 (dwarf2_frame_state_copy_regs): Remove.
5925 (dwarf2_frame_state_free_regs): Remove.
5926 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5927 (dwarf2_restore_rule): Call method .alloc_regs instead of
5928 dwarf2_frame_state_alloc_regs.
5929 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5930 constructor. Call std::move.
5931 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5932 (dwarf2_frame_cache): Likewise.
5934 [GDB_SELF_TEST]: Include selftest.h and
5936 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5937 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5938 execute_cfa_program_test.
5940 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5941 copy ctor, assignment operator, move assignment.
5942 <alloc_regs>: New method.
5944 (struct dwarf2_frame_state): Delete dtor.
5945 (dwarf2_frame_state_alloc_regs): Remove declaration.
5946 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5947 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5949 2017-08-11 Yao Qi <yao.qi@linaro.org>
5951 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5952 (dwarf2_frame_state::dwarf2_frame_state): New.
5953 (dwarf2_frame_state::~dwarf2_frame_state): New.
5954 (dwarf2_fetch_cfa_info): Update.
5955 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5956 rather than a pointer. Update code.
5957 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5959 <data_align, code_align, retaddr_column>: Change them to const.
5960 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5963 2017-08-11 Yao Qi <yao.qi@linaro.org>
5965 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5966 <loc.exp>: New field.
5967 * dwarf2-frame.c (execute_cfa_program): Update.
5968 (dwarf2_frame_prev_register): Update.
5970 2017-08-10 Pedro Alves <palves@redhat.com>
5972 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5974 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5976 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5977 (fbsd_pending_children): Use std::list.
5978 (fbsd_remember_child): Likewise.
5979 (fbsd_is_child_pending): Likewise.
5980 (fbsd_pending_vfork_done): Use std::forward_list.
5981 (fbsd_add_vfork_done): Likewise.
5982 (fbsd_is_vfork_done_pending): Likewise.
5983 (fbsd_next_vfork_done): Likewise.
5985 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5987 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5988 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5989 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5991 (fbsd_xfer_partial): Use gdb::byte_vector.
5992 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
5994 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5996 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5998 (fbsd_find_memory_regions): Fix `mapfile' initialization.
6000 2017-08-09 Tom Tromey <tom@tromey.com>
6002 * skip.c (skiplist_entry): New constructor.
6003 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
6004 (skiplist_entry::file_is_glob): Now bool.
6005 (skiplist_entry::file, skiplist_entry::function): Now
6007 (make_skip_entry): Return a unique_ptr. Use new.
6008 (free_skiplist_entry, free_skiplist_entry_cleanup)
6009 (make_free_skiplist_entry_cleanup): Remove.
6010 (skip_command, skip_disable_command, add_skiplist_entry)
6011 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
6012 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
6013 (function_name_is_marked_for_skip): Update.
6014 (skip_delete_command): Update. Use delete.
6016 2017-08-09 Jiong Wang <jiong.wang@arm.com>
6018 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
6019 (aarch64_linux_core_read_description): New function.
6020 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
6022 2017-08-09 Pedro Alves <palves@redhat.com>
6024 * cp-name-parser.y (cp_comp_to_string): Return a
6025 gdb::unique_xmalloc_ptr<char>.
6026 * cp-support.c (replace_typedefs_qualified_name)
6027 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
6028 (cp_canonicalize_string_full): Use op= instead of explicit
6030 (cp_class_name_from_physname, method_name_from_physname)
6031 (cp_func_name, cp_remove_params): Adjust to use
6032 gdb::unique_xmalloc_ptr<char>.
6033 * cp-support.h (cp_comp_to_string): Return a
6034 gdb::unique_xmalloc_ptr<char>.
6035 * python/py-type.c (typy_lookup_type): Adjust to use
6036 gdb::unique_xmalloc_ptr<char>.
6038 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
6040 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
6042 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6043 Yao Qi <yao.qi@linaro.org>
6045 * cp-support.c (cp_canonicalize_string_full): Use
6046 gdb::unique_xmalloc_ptr<char>.
6047 (cp_canonicalize_string): Likewise.
6049 2017-08-09 Yao Qi <yao.qi@linaro.org>
6051 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6052 * regformats/i386/amd64-avx-avx512.dat: Remove.
6053 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6054 * regformats/i386/amd64-avx-mpx.dat:Remove.
6055 * regformats/i386/amd64-avx.dat: Remove.
6056 * regformats/i386/amd64-mpx.dat: Remove.
6057 * regformats/i386/i386-avx-avx512.dat: Remove.
6058 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6059 * regformats/i386/i386-avx-mpx.dat: Remove.
6060 * regformats/i386/i386-mmx.dat: Remove.
6061 * regformats/i386/i386-mpx.dat: Remove.
6063 2017-08-09 Yao Qi <yao.qi@linaro.org>
6065 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6066 * amd64-tdep.c: Don't include features/i386/x32*.c.
6067 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6069 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6070 and i386/x32-avx-avx512.
6071 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6073 * features/i386/x32-avx-avx512.c: Removed.
6074 * features/i386/x32-avx-avx512.xml: Removed.
6075 * features/i386/x32-avx.c: Removed.
6076 * features/i386/x32-avx.xml: Removed.
6077 * features/i386/x32.c: Removed.
6078 * features/i386/x32.xml: Removed.
6079 * regformats/i386/x32-avx-avx512.dat: Removed.
6080 * regformats/i386/x32-avx.dat: Removed.
6081 * regformats/i386/x32.dat: Removed.
6083 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6085 PR breakpoints/21886
6086 * mem-break.c (default_memory_insert_breakpoint): Use
6087 `->placed_address' rather than `->reqstd_address' for the
6088 breakpoint location.
6090 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6092 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6095 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6097 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6098 a union of `tdep_info', `tdesc_data' and `id'.
6099 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6100 rather than `info.tdep_info'.
6101 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6102 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6103 * i386-tdep.c (i386_gdbarch_init): Likewise.
6104 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6105 * mips-tdep.c (mips_gdbarch_init): Likewise.
6106 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6107 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6108 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6110 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6112 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6113 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6115 * spu-tdep.c (spu_gdbarch_init): Likewise.
6116 * gdbarch.h: Regenerate.
6118 2017-08-07 Leszek Swirski <leszeks@google.com>
6121 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6123 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6125 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6126 (gdbsim_open): Rename gdb_argv args object to argv.
6128 2017-08-05 Tom Tromey <tom@tromey.com>
6130 * compile/compile-object-load.c (compile_object_load): Use
6131 gdb::unique_xmalloc_ptr.
6132 * cli/cli-dump.c (scan_filename): Rename from
6133 scan_filename_with_cleanup. Change return type.
6134 (scan_expression): Rename from scan_expression_with_cleanup.
6136 (dump_memory_to_file, dump_value_to_file, restore_command):
6137 Use gdb::unique_xmalloc_ptr. Update.
6138 * cli/cli-cmds.c (find_and_open_script): Use
6139 gdb::unique_xmalloc_ptr.
6140 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6141 * symmisc.c (maintenance_print_symbols)
6142 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6143 * symfile.c (symfile_bfd_open, generic_load)
6144 (add_symbol_file_command, remove_symbol_file_command): Use
6145 gdb::unique_xmalloc_ptr.
6146 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6147 * psymtab.c (maintenance_print_psymbols): Use
6148 gdb::unique_xmalloc_ptr.
6149 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6150 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6151 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6152 (reload_shared_libraries_1): Likewise.
6154 2017-08-05 Tom Tromey <tom@tromey.com>
6156 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6157 (rust_op_vector, rust_set_vector): New typedefs.
6158 (current_parser): New global.
6159 (work_obstack): Change to pointer type. Update all users.
6160 (rust_ast, pstate): Remove globals.
6161 (struct rust_parser): New.
6162 (%union) <params, field_inits>: Change type.
6163 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6164 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6165 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6166 (convert_params_to_types, convert_params_to_expression): Change
6168 (ast_string): Change type of "fields".
6169 (rust_parse): Make a rust_parser. Remove cleanups.
6170 (rust_lex_tests): Make and install an auto_obstack.
6172 2017-08-04 Yao Qi <yao.qi@linaro.org>
6174 * configure.srv (ipa_x32_linux_regobj): New.
6175 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6176 instead of X86_TDESC_AVX512.
6177 (initialize_low_tracepoint): Call
6178 init_registers_x32_avx_avx512_linux.
6180 2017-08-04 Yao Qi <yao.qi@linaro.org>
6182 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6184 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6186 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6188 2017-08-03 Tom Tromey <tom@tromey.com>
6190 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6192 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6194 2017-08-03 Tom Tromey <tom@tromey.com>
6196 * python/py-param.c (compute_enum_values): Use gdb_argv.
6198 2017-08-03 Tom Tromey <tom@tromey.com>
6200 * utils.h (struct gdb_argv_deleter): New.
6201 (gdb_argv): New class.
6202 * utils.c (gdb_argv::reset): New method.
6203 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6204 * tracefile.c (tsave_command): Use gdb_argv.
6205 * top.c (new_ui_command): Use gdb_argv.
6206 * symmisc.c (maintenance_print_symbols)
6207 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6208 * symfile.c (symbol_file_command, generic_load)
6209 (remove_symbol_file_command): Use gdb_argv.
6210 * stack.c (backtrace_command): Use gdb_argv.
6211 * source.c (add_path, show_substitute_path_command)
6212 (unset_substitute_path_command, set_substitute_path_command):
6214 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6215 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6216 * remote.c (extended_remote_run, remote_put_command)
6217 (remote_get_command, remote_delete_command): Use gdb_argv.
6218 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6219 (gdbsim_open): Use gdb_argv.
6220 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6221 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6222 * procfs.c (procfs_info_proc): Use gdb_argv.
6223 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6224 * infrun.c (handle_command): Use gdb_argv.
6225 * inferior.c (add_inferior_command, clone_inferior_command):
6227 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6228 * exec.c (exec_file_command): Use gdb_argv.
6229 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6230 * compile/compile.c (build_argc_argv): Use gdb_argv.
6232 2017-08-03 Tom Tromey <tom@tromey.com>
6234 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6236 2017-08-03 Tom Tromey <tom@tromey.com>
6238 * python/python.c (compute_python_string): Return std::string.
6239 (gdbpy_eval_from_control_command): Update.
6240 (do_start_initialization): Use std::string.
6241 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6243 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6246 2017-08-03 Tom Tromey <tom@tromey.com>
6248 * top.h (do_restore_instream_cleanup): Remove.
6249 * top.c (do_restore_instream_cleanup): Remove.
6250 (read_command_file): Use scoped_restore.
6251 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6253 2017-08-03 Tom Tromey <tom@tromey.com>
6255 * cli/cli-script.c (execute_user_command)
6256 (execute_control_command): Use scoped_restore.
6258 2017-08-03 Tom Tromey <tom@tromey.com>
6260 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6261 (execute_user_command): Remove user_call_depth; use
6262 user_args_stack's size instead.
6264 2017-08-03 Tom Tromey <tom@tromey.com>
6266 * top.h (in_user_command): Remove.
6267 * top.c (in_user_command): Remove.
6268 * cli/cli-script.c (do_restore_user_call_depth)
6269 (execute_user_command): Update.
6271 2017-08-03 Tom Tromey <tom@tromey.com>
6273 * valops.c (search_struct_method): Use gdb::byte_vector.
6274 * valarith.c (value_concat): Use std::vector.
6275 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6276 (simple_search_memory): Likewise.
6277 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6278 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6279 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6280 * elfread.c (elf_rel_plt_read): Use std::string.
6281 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6282 * cli/cli-dump.c (restore_section_callback): Use
6285 2017-08-03 Tom Tromey <tom@tromey.com>
6287 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6289 2017-08-03 Tom Tromey <tom@tromey.com>
6291 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6292 (tui_register_format): Use scoped_restore.
6294 2017-08-03 Tom Tromey <tom@tromey.com>
6296 * reverse.c (exec_direction_default): Remove.
6297 (exec_reverse_once): Use scoped_restore.
6298 * remote.c (restore_remote_timeout): Remove.
6299 (remote_flash_erase, remote_flash_write, remote_flash_done)
6300 (readchar, remote_serial_write): Use scoped_restore.
6301 * cli/cli-script.c (struct source_cleanup_lines_args)
6302 (source_cleanup_lines): Remove.
6303 (script_from_file): Use scoped_restore.
6304 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6305 (source_command): Use scoped_restore.
6307 2017-08-03 Tom Tromey <tom@tromey.com>
6309 * utils.h (make_cleanup_free_so): Remove.
6310 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6311 * solist.h (struct so_deleter): New.
6312 (so_list_up): New typedef.
6313 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6315 2017-08-03 Tom Tromey <tom@tromey.com>
6317 * utils.h (make_cleanup_restore_current_language): Remove.
6318 * utils.c (do_restore_current_language)
6319 (make_cleanup_restore_current_language): Remove.
6320 * parse.c (parse_exp_in_context_1)
6321 (parse_expression_with_language): Use
6322 scoped_restore_current_language.
6323 * mi/mi-main.c (mi_cmd_execute): Use
6324 scoped_restore_current_language.
6325 * language.h (scoped_restore_current_language): New class.
6327 2017-08-03 Tom Tromey <tom@tromey.com>
6329 * compile/compile.c (cleanup_unlink_file): Remove.
6330 (compile_to_object): Use gdb::unlinker.
6331 (eval_compile_command): Likewise.
6333 2017-08-03 Tom Tromey <tom@tromey.com>
6335 * utils.h (make_cleanup_fclose): Remove.
6336 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6338 2017-08-03 Tom Tromey <tom@tromey.com>
6340 * top.c (open_terminal_stream): Return gdb_file_up.
6341 (new_ui_command): Update.
6343 2017-08-03 Tom Tromey <tom@tromey.com>
6345 * source.c (print_source_lines_base, forward_search_command)
6346 (reverse_search_command): Use gdb_file_up.
6348 2017-08-03 Tom Tromey <tom@tromey.com>
6350 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6352 2017-08-03 Tom Tromey <tom@tromey.com>
6354 * cli/cli-cmds.c (find_and_open_script): Change return type.
6355 Remove "streamp" and "full_path" parameters.
6356 (source_script_with_search): Update.
6357 * auto-load.c (source_script_file): Update.
6358 * cli/cli-cmds.h (find_and_open_script): Change type.
6359 (open_script): New struct.
6361 2017-08-03 Tom Tromey <tom@tromey.com>
6363 * xml-support.c (xml_fetch_content_from_file): Update.
6364 * ui-file.c (stdio_file::open): Update.
6365 * tracefile-tfile.c (tfile_start): Update.
6366 * remote.c (remote_file_put, remote_file_get): Update.
6367 * nat/linux-procfs.c (linux_proc_get_int)
6368 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6369 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6370 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6371 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6372 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6373 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6374 * linux-nat.c (linux_proc_pending_signals): Update.
6375 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6376 (file_closer): Remove.
6377 * compile/compile.c (compile_to_object): Update.
6378 * common/filestuff.h (struct gdb_file_deleter): New.
6379 (gdb_file_up): New typedef.
6380 (gdb_fopen_cloexec): Change return type.
6381 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6382 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6383 (dump_binary_file, restore_binary_file): Update.
6384 * auto-load.c (auto_load_objfile_script_1): Update.
6386 2017-08-03 Tom Tromey <tom@tromey.com>
6388 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6389 (info_static_tracepoint_markers_command): Likewise.
6390 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6391 * skip.c (skip_info): Use ui_out_emit_table.
6392 * progspace.c (print_program_space): Use ui_out_emit_table.
6393 * osdata.c (info_osdata): Use ui_out_emit_table.
6394 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6396 * linux-thread-db.c (info_auto_load_libthread_db): Use
6398 * inferior.c (print_inferior): Use ui_out_emit_table.
6399 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6400 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6401 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6402 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6403 * ui-out.h (class ui_out_emit_table): New.
6405 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6407 * mips-tdep.c (mips_fpu_type_str): New function.
6408 (mips_dump_tdep): Call it.
6410 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6412 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6415 2017-07-31 Xavier Roirand <roirand@adacore.com>
6417 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6419 2017-07-27 Xavier Roirand <roirand@adacore.com>
6421 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6423 2017-07-26 Yao Qi <yao.qi@linaro.org>
6425 * cli/cli-cmds.c (maintenancechecklist): New variable.
6426 * gdbcmd.h (maintenancechecklist): Declare it.
6427 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6428 Call i386_linux_read_description with different masks.
6429 * maint.c (maintenance_check_command): New function.
6430 (_initialize_maint_cmds): Call add_prefix_cmd.
6431 * target-descriptions.c (tdesc_reg): override operator != and ==.
6432 (tdesc_type): Likewise.
6433 (tdesc_feature): Likewise.
6434 (target_desc): Likewise.
6435 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6436 (maintenance_check_xml_descriptions): New function.
6437 (_initialize_target_descriptions) Add command "xml-descriptions".
6438 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6440 2017-07-26 Yao Qi <yao.qi@linaro.org>
6442 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6443 Include features/i386/32bit-*.c.
6444 (i386_linux_read_description): Generate target description if it
6446 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6448 * features/i386/32bit-linux.c: Re-generated.
6449 * features/i386/32bit-sse.c: Likewise.
6450 * target-descriptions.c (print_c_feature::visit): Print code to
6451 set register number if needed.
6452 (print_c_feature) <m_next_regnum>: New field.
6454 2017-07-26 Yao Qi <yao.qi@linaro.org>
6456 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6457 (FEATURE_XMLFILES): New.
6458 (FEATURE_CFILES): New.
6460 (clean-cfiles): Remove generated c files.
6461 * features/i386/32bit-avx.c: Generated.
6462 * features/i386/32bit-avx512.c: Generated.
6463 * features/i386/32bit-core.c: Generated.
6464 * features/i386/32bit-linux.c: Generated.
6465 * features/i386/32bit-mpx.c: Generated.
6466 * features/i386/32bit-pkeys.c: Generated.
6467 * features/i386/32bit-sse.c: Generated.
6468 * target-descriptions.c: Include algorithm.
6469 (tdesc_element_visitor): Add method visit_end.
6470 (print_c_tdesc): Implement visit_end.
6471 (print_c_tdesc:: m_filename_after_features): Move it to
6473 (print_c_feature): New class.
6474 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6475 name starts with "i386/32bit-".
6477 2017-07-26 Yao Qi <yao.qi@linaro.org>
6479 * target-descriptions.c (tdesc_element_visitor): New class.
6480 (tdesc_element): New class.
6481 (tdesc_reg): Inherit from tdesc_element.
6482 (tdesc_reg::accept): New function.
6483 (tdesc_type): Inherit from tdesc_element.
6484 (tdesc_type::accept): New function.
6485 (tdesc_feature): Inherit from tdesc_element.
6486 (tdesc_feature::accept): New function.
6487 (target_desc): Inherit from tdesc_element.
6488 (target_desc::target_desc): New.
6489 (target_desc::~target_desc): New.
6490 (target_desc::accept): New.
6491 (allocate_target_description): Use new.
6492 (free_target_description): Use delete.
6493 (print_c_tdesc): New class.
6494 (maint_print_c_tdesc_cmd): Adjust.
6496 * features/aarch64.c: Re-generated.
6497 * features/arc-arcompact.c: Re-generated.
6498 * features/arc-v2.c: Re-generated.
6499 * features/arm/arm-with-iwmmxt.c: Re-generated.
6500 * features/arm/arm-with-m.c: Re-generated.
6501 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6502 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6503 * features/arm/arm-with-neon.c: Re-generated.
6504 * features/arm/arm-with-vfpv2.c: Re-generated.
6505 * features/arm/arm-with-vfpv3.c: Re-generated.
6506 * features/i386/amd64-avx-avx512.c: Re-generated.
6507 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6508 * features/i386/amd64-avx.c: Re-generated.
6509 * features/i386/amd64-avx-linux.c: Re-generated.
6510 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6511 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6512 * features/i386/amd64-avx-mpx.c: Re-generated.
6513 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6514 * features/i386/amd64.c: Re-generated.
6515 * features/i386/amd64-linux.c: Re-generated.
6516 * features/i386/amd64-mpx.c: Re-generated.
6517 * features/i386/amd64-mpx-linux.c: Re-generated.
6518 * features/i386/i386-avx-avx512.c: Re-generated.
6519 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6520 * features/i386/i386-avx.c: Re-generated.
6521 * features/i386/i386-avx-linux.c: Re-generated.
6522 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6523 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6524 * features/i386/i386-avx-mpx.c: Re-generated.
6525 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6526 * features/i386/i386.c: Re-generated.
6527 * features/i386/i386-linux.c: Re-generated.
6528 * features/i386/i386-mmx.c: Re-generated.
6529 * features/i386/i386-mmx-linux.c: Re-generated.
6530 * features/i386/i386-mpx.c: Re-generated.
6531 * features/i386/i386-mpx-linux.c: Re-generated.
6532 * features/i386/x32-avx-avx512.c: Re-generated.
6533 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6534 * features/i386/x32-avx.c: Re-generated.
6535 * features/i386/x32-avx-linux.c: Re-generated.
6536 * features/i386/x32.c: Re-generated.
6537 * features/i386/x32-linux.c: Re-generated.
6538 * features/microblaze.c: Re-generated.
6539 * features/microblaze-with-stack-protect.c: Re-generated.
6540 * features/mips64-dsp-linux.c: Re-generated.
6541 * features/mips64-linux.c: Re-generated.
6542 * features/mips-dsp-linux.c: Re-generated.
6543 * features/mips-linux.c: Re-generated.
6544 * features/nds32.c: Re-generated.
6545 * features/nios2.c: Re-generated.
6546 * features/nios2-linux.c: Re-generated.
6547 * features/rs6000/powerpc-32.c: Re-generated.
6548 * features/rs6000/powerpc-32l.c: Re-generated.
6549 * features/rs6000/powerpc-403.c: Re-generated.
6550 * features/rs6000/powerpc-403gc.c : Re-generated.
6551 * features/rs6000/powerpc-405.c: Re-generated.
6552 * features/rs6000/powerpc-505.c: Re-generated.
6553 * features/rs6000/powerpc-601.c: Re-generated.
6554 * features/rs6000/powerpc-602.c: Re-generated.
6555 * features/rs6000/powerpc-603.c: Re-generated.
6556 * features/rs6000/powerpc-604.c: Re-generated.
6557 * features/rs6000/powerpc-64.c: Re-generated.
6558 * features/rs6000/powerpc-64l.c: Re-generated.
6559 * features/rs6000/powerpc-7400.c: Re-generated.
6560 * features/rs6000/powerpc-750.c: Re-generated.
6561 * features/rs6000/powerpc-860.c: Re-generated.
6562 * features/rs6000/powerpc-altivec32.c: Re-generated.
6563 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6564 * features/rs6000/powerpc-altivec64.c: Re-generated.
6565 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6566 * features/rs6000/powerpc-cell32l.c: Re-generated.
6567 * features/rs6000/powerpc-cell64l.c: Re-generated.
6568 * features/rs6000/powerpc-e500.c: Re-generated.
6569 * features/rs6000/powerpc-e500l.c: Re-generated.
6570 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6571 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6572 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6573 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6574 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6575 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6576 * features/rs6000/powerpc-vsx32.c: Re-generated.
6577 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6578 * features/rs6000/powerpc-vsx64.c: Re-generated.
6579 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6580 * features/rs6000/rs6000.c: Re-generated.
6581 * features/s390-linux32.c: Re-generated.
6582 * features/s390-linux32v1.c: Re-generated.
6583 * features/s390-linux32v2.c: Re-generated.
6584 * features/s390-linux64.c: Re-generated.
6585 * features/s390-linux64v1.c: Re-generated.
6586 * features/s390-linux64v2.c: Re-generated.
6587 * features/s390-te-linux64.c: Re-generated.
6588 * features/s390-tevx-linux64.c: Re-generated.
6589 * features/s390-vx-linux64.c: Re-generated.
6590 * features/s390x-linux64.c: Re-generated.
6591 * features/s390x-linux64v1.c: Re-generated.
6592 * features/s390x-linux64v2.c: Re-generated.
6593 * features/s390x-te-linux64.c: Re-generated.
6594 * features/s390x-tevx-linux64.c: Re-generated.
6595 * features/s390x-vx-linux64.c: Re-generated.
6596 * features/sparc/sparc32-solaris.c: Re-generated.
6597 * features/sparc/sparc64-solaris.c: Re-generated.
6598 * features/tic6x-c62x.c: Re-generated.
6599 * features/tic6x-c62x-linux.c: Re-generated.
6600 * features/tic6x-c64x.c: Re-generated.
6601 * features/tic6x-c64x-linux.c: Re-generated.
6602 * features/tic6x-c64xp.c: Re-generated.
6603 * features/tic6x-c64xp-linux.c: Re-generated.
6605 2017-07-26 Yao Qi <yao.qi@linaro.org>
6607 * i386-linux-tdep.c (i386_linux_read_description): New function.
6608 (i386_linux_core_read_description): Call
6609 i386_linux_read_description.
6610 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6611 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6612 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6613 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6614 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6615 * x86-linux-nat.c (x86_linux_read_description): Call
6616 i386_linux_read_description.
6618 2017-07-26 Yao Qi <yao.qi@linaro.org>
6621 * features/Makefile (%.c: %.xml): Pass the xml file name to
6622 command "maint print c-tdesc".
6623 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6626 2017-07-26 Yao Qi <yao.qi@linaro.org>
6628 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6629 in-class initialization.
6630 (tdesc_create_feature): Call new instead of XCNEW.
6631 (free_target_description): Ue delete.
6633 2017-07-25 John Baldwin <jhb@FreeBSD.org>
6635 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6637 2017-07-25 Yao Qi <yao.qi@linaro.org>
6639 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6641 (amd64_x32_init_abi): Likewise.
6642 * amd64-tdep.h (amd64_init_abi): Update declaration.
6643 (amd64_x32_init_abi): Likewise.
6645 2017-07-25 Yao Qi <yao.qi@linaro.org>
6648 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6649 condition for FPSCR.
6650 (arm_linux_store_inferior_registers): Likewise.
6652 2017-07-22 Tom Tromey <tom@tromey.com>
6654 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6655 <syscalls_counts>: Now a std::vector.
6656 (get_catch_syscall_inferior_data): Use "new".
6657 (catch_syscall_inferior_data_cleanup): Use "delete".
6658 (insert_catch_syscall, remove_catch_syscall)
6659 (clear_syscall_counts): Update.
6661 2017-07-22 Tom Tromey <tom@tromey.com>
6663 * break-catch-syscall.c (syscall_catchpoint)
6664 <syscalls_to_be_caught>: Now a std::vector<int>
6665 (~syscall_catchpoint): Remove.
6666 (insert_catch_syscall, remove_catch_syscall)
6667 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6668 (print_mention_catch_syscall, print_recreate_catch_syscall):
6670 (create_syscall_event_catchpoint): Change type of "filter"
6672 (catch_syscall_split_args): Return a std::vector.
6673 (catch_syscall_command_1, catching_syscall_number_1): Update.
6675 2017-07-22 Tom Tromey <tom@tromey.com>
6677 * break-catch-throw.c (struct exception_catchpoint)
6678 <exception_rx>: Now a std::string.
6679 (~exception_catchpoint): Remove.
6680 (print_one_detail_exception_catchpoint): Update.
6681 (handle_gnu_v3_exceptions): Change type of except_rx.
6682 (extract_exception_regexp): Return a std::string.
6683 (catch_exception_command_1): Update.
6685 2017-07-22 Tom Tromey <tom@tromey.com>
6687 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6688 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6690 <catch_all>: Now a bool.
6691 (~signal_catchpoint): Remove.
6692 (signal_catchpoint_insert_location)
6693 (signal_catchpoint_remove_location)
6694 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6695 (signal_catchpoint_print_mention)
6696 (signal_catchpoint_print_recreate)
6697 (signal_catchpoint_explains_signal): Update.
6698 (create_signal_catchpoint): Change type of "filter" and
6700 (catch_signal_split_args): Return a std::vector. Change type of
6702 (catch_signal_command): Update.
6704 2017-07-20 Pedro Alves <palves@redhat.com>
6706 * ada-lang.c (ada_language_defn): Make extern.
6707 (_initialize_ada_language): Remove add_language call.
6708 * c-lang.c (c_language_defn, cplus_language_defn)
6709 (asm_language_defn, minimal_language_defn): Make extern.
6710 (_initialize_c_language): Delete.
6711 * completer.c (compare_cstrings): Delete, moved to utils.h.
6712 * d-lang.c (d_language_defn): Make extern.
6713 (_initialize_d_language): Remove add_language calls.
6714 * defs.h (enum language): Add comment.
6715 * f-lang.c (f_language_defn): Make extern.
6716 (_initialize_f_language): Remove add_language call.
6717 * go-lang.c (go_language_defn): Make extern.
6718 (_initialize_go_language): Remove add_language call.
6719 * language.c: Include <algorithm>.
6720 (languages): Redefine as const array.
6721 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6722 (set_language_command): Handle "local". Use for-range loop.
6723 (set_language): Remove loop.
6724 (language_enum): Rewrite.
6725 (language_def, language_str): Remove loops.
6726 (add_language): Delete.
6727 (add_set_language_command): New, based on add_languages.
6728 (skip_language_trampoline): Adjust.
6729 (local_language_defn): Delete.
6730 (language_gdbarch_post_init): Adjust.
6731 (_initialize_language): Remove add_language calls. Call
6732 add_set_language_command.
6733 * language.h (add_language): Delete.
6734 (auto_language_defn)
6735 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6736 (asm_language_defn, c_language_defn, cplus_language_defn)
6737 (d_language_defn, f_language_defn, go_language_defn)
6738 (m2_language_defn, objc_language_defn, opencl_language_defn)
6739 (pascal_language_defn, rust_language_defn): Declare.
6740 * m2-lang.c (m2_language_defn): Make extern.
6741 (_initialize_m2_language): Remove add_language call.
6742 * objc-lang.c (objc_language_defn): Make extern.
6743 (_initialize_objc_language): Remove add_language call.
6744 * opencl-lang.c (opencl_language_defn): Make extern.
6745 (_initialize_opencl_language): Remove add_language call.
6746 * p-lang.c (pascal_language_defn): Make extern.
6747 (_initialize_pascal_language): Delete.
6748 * rust-lang.c (rust_language_defn): Make extern.
6749 (_initialize_rust_language): Delete.
6750 * utils.h (compare_cstrings): New static inline function.
6752 2017-07-20 Pedro Alves <palves@redhat.com>
6754 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6755 (get_var_value): Constify parameters.
6756 (get_int_var_value): Change prototype.
6757 (to_fixed_range_type): Adjust.
6758 * ada-lang.h (get_int_var_value): Change prototype.
6760 2017-07-20 Pedro Alves <palves@redhat.com>
6762 * dwarf2read.c (dw2_lookup_symbol): Use
6763 SYMBOL_MATCHES_SEARCH_NAME.
6764 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6766 2017-07-20 Pedro Alves <palves@redhat.com>
6768 * block.c (block_iter_name_step, block_iter_name_first)
6769 (block_iter_name_next): Delete.
6770 (block_lookup_symbol_primary): Adjust to use
6771 dict_iter_match_first/dict_iter_match_next.
6772 * block.h (block_iter_name_first, block_iter_name_next): Delete
6774 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6775 dict_iter_match_first/dict_iter_match_next.
6777 2017-07-20 Pedro Alves <palves@redhat.com>
6779 * cp-support.c (cp_find_first_component_aux): Add missing case for
6782 2017-07-18 David Blaikie <dblaikie@gmail.com>
6784 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6785 of dwo_cu's dwo_file.
6787 2017-07-18 Yao Qi <yao.qi@linaro.org>
6789 * remote.c (store_registers_using_G): Remove one line comment.
6791 2017-07-18 Yao Qi <yao.qi@linaro.org>
6793 * regcache.c (regcache_cpy): Simplify it.
6794 (regcache::cpy_no_passthrough): Remove it.
6795 * regcache.h (cpy_no_passthrough): Remove it.
6796 (regcache_dup, regcache_cpy): Update comments.
6798 2017-07-18 Pedro Alves <palves@redhat.com>
6800 * remote-sim.c (sim_command_completer): Adjust to work with a
6801 completion_tracker instead of a VEC.
6803 2017-07-17 Pedro Alves <palves@redhat.com>
6805 * completer.c (complete_source_filenames): New function.
6806 (complete_address_and_linespec_locations): New function.
6807 (location_completer): Use complete_address_and_linespec_locations.
6808 (completion_tracker::build_completion_result): Honor the tracker's
6809 request to suppress append.
6810 * completer.h (completion_tracker::suppress_append_ws)
6811 (completion_tracker::set_suppress_append_ws): New methods.
6812 (completion_tracker::m_suppress_append_ws): New field.
6813 (complete_source_filenames): New declaration.
6814 * linespec.c (linespec_complete_what): New.
6815 (struct ls_parser) <complete_what, completion_word,
6816 completion_quote_char, completion_quote_end, completion_tracker>:
6818 (string_find_incomplete_keyword_at_end): New.
6819 (linespec_lexer_lex_string): Record quote char. If in completion
6821 (linespec_lexer_consume_token): Advance the completion word point.
6822 (linespec_lexer_peek_token): Save/restore completion info.
6823 (save_stream_and_consume_token): New.
6824 (set_completion_after_number): New.
6825 (linespec_parse_basic): Set what to complete next depending on
6826 token. Handle function and label completions specially.
6827 (parse_linespec): Disable objc shortcut in completion mode. Set
6828 what to complete next depending on token type. Skip keyword if in
6830 (complete_linespec_component, linespec_complete): New.
6831 * linespec.h (linespec_complete): Declare.
6833 2017-07-17 Pedro Alves <palves@redhat.com>
6835 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6836 Handle 'operator<' / 'operator<<'.
6838 2017-07-17 Pedro Alves <palves@redhat.com>
6840 * completer.c (collect_explicit_location_matches): Handle
6842 (convert_explicit_location_to_linespec): New, factored out from
6844 (convert_explicit_location_to_sals): ... this.
6845 (complete_label): New.
6846 (linespec_complete_label, find_label_symbols_in_block): New.
6847 (find_label_symbols): Add completion_mode parameter and adjust to
6848 call find_label_symbols_in_block.
6849 * linespec.h (linespec_complete_label): Declare.
6851 2017-07-17 Pedro Alves <palves@redhat.com>
6853 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6854 complete_symbol_mode parameter.
6855 * cli/cli-cmds.c (complete_command): Get the completion result out
6856 of the handle_brkchars tracker if used a custom word point.
6857 * completer.c: Include "linespec.h".
6858 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6859 (advance_to_expression_complete_word_point): New.
6860 (completion_tracker::completes_to_completion_word): New.
6861 (complete_files_symbols): Pass down
6862 complete_symbol_mode::EXPRESSION.
6863 (explicit_options, probe_options): New.
6864 (collect_explicit_location_matches): Complete on the
6865 explictit_loc->foo instead of word. Use
6866 linespec_complete_function. Handle MATCH_LINE. Handle offering
6867 keyword and options completions.
6868 (backup_text_ptr): Delete.
6869 (skip_keyword): New.
6870 (complete_explicit_location): Remove 'word' parameter. Add
6871 language, quoted_arg_start and quoted_arg_end parameters.
6872 Rewrite, parsing left to right.
6873 (location_completer): Rewrite.
6874 (location_completer_handle_brkchars): New function.
6875 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6876 (enum complete_line_internal_reason): Adjust comments.
6877 (completion_tracker::discard_completions): New.
6878 (completer_handle_brkchars_func_for_completer): Handle
6880 (gdb_custom_word_point_brkchars)
6881 (gdb_org_rl_basic_quote_characters): New.
6882 (gdb_completion_word_break_characters_throw)
6883 (completion_find_completion_word): Handle trackers that use a
6885 (completion_tracker::advance_custom_word_point_by): New.
6886 (completion_tracker::build_completion_result): Don't rely on
6887 readline appending the quote char.
6888 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6889 use a custom word point.
6890 (gdb_rl_attempted_completion_function): Restore
6891 rl_basic_quote_characters.
6892 * completer.h (class completion_tracker): Extend intro comment.
6893 (completion_tracker::set_quote_char)
6894 (completion_tracker::quote_char)
6895 (completion_tracker::set_use_custom_word_point)
6896 (completion_tracker::use_custom_word_point)
6897 (completion_tracker::custom_word_point)
6898 (completion_tracker::set_custom_word_point)
6899 (completion_tracker::advance_custom_word_point_by)
6900 (completion_tracker::completes_to_completion_word)
6901 (completion_tracker::discard_completions): New methods.
6902 (completion_tracker::m_quote_char)
6903 (completion_tracker::m_use_custom_word_point)
6904 (completion_tracker::m_custom_word_point): New fields.
6905 (advance_to_expression_complete_word_point): Declare.
6906 * f-lang.c (f_collect_symbol_completion_matches): Add
6907 complete_symbol_mode parameter.
6908 * language.h (struct language_defn)
6909 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6911 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6912 (linespec_complete_function): New function.
6913 (linespec_lexer_lex_keyword): Adjust.
6914 * linespec.h (linespec_keywords, linespec_complete_function): New
6916 * location.c (find_end_quote): New function.
6917 (explicit_location_lex_one): Add explicit_completion_info
6918 parameter. Save quoting info. Don't throw if being called for
6919 completion. Don't handle Ada operators here.
6920 (is_cp_operator, skip_op_false_positives, first_of)
6921 (explicit_location_lex_one_function): New function.
6922 (string_to_explicit_location): Replace 'dont_throw' parameter with
6923 an explicit_completion_info pointer parameter. Handle it. Don't
6924 use explicit_location_lex_one to lex function names. Use
6925 explicit_location_lex_one_function instead.
6926 * location.h (struct explicit_completion_info): New.
6927 (string_to_explicit_location): Replace 'dont_throw' parameter with
6928 an explicit_completion_info pointer parameter.
6929 * symtab.c (default_collect_symbol_completion_matches_break_on):
6930 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6931 (default_collect_symbol_completion_matches)
6932 (collect_symbol_completion_matches): Add complete_symbol_mode
6934 (collect_symbol_completion_matches_type): Pass down
6935 complete_symbol_mode::EXPRESSION.
6936 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6937 parameter. Handle LINESPEC mode.
6938 * symtab.h (complete_symbol_mode): New.
6939 (default_collect_symbol_completion_matches_break_on)
6940 (default_collect_symbol_completion_matches)
6941 (collect_symbol_completion_matches)
6942 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6945 2017-07-17 Pedro Alves <palves@redhat.com>
6947 * utils.c (enum class strncmp_iw_mode): New.
6948 (strcmp_iw): Rename to ...
6949 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6950 parameters. Handle them.
6952 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6953 * utils.h (strncmp_iw): Declare.
6954 (strcmp_iw): Move describing comments here.
6956 2017-07-17 Pedro Alves <palves@redhat.com>
6958 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6960 * c-typeprint.c (is_type_conversion_operator): Use
6962 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6963 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6965 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6966 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6967 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6968 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6970 * location.c: Include "cp-support.h".
6971 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6973 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6976 2017-07-17 Pedro Alves <palves@redhat.com>
6978 * cli/cli-cmds.c (complete_command): Use a completion tracker
6979 along with completion_find_completion_word for handle_brkchars
6981 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6982 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6983 (struct gdb_rl_completion_word_info): New.
6984 (gdb_rl_find_completion_word): New.
6985 (completion_find_completion_word): New.
6986 * completer.h (completion_find_completion_word): Declare.
6988 2017-07-17 Pedro Alves <palves@redhat.com>
6990 * ada-lang.c (symbol_completion_match): Adjust comments.
6991 (symbol_completion_add): Replace vector parameter with
6992 completion_tracker parameter. Use it.
6993 (ada_make_symbol_completion_list): Rename to...
6994 (ada_collect_symbol_completion_matches): ... this. Add
6995 completion_tracker parameter and use it.
6996 (ada_language_defn): Adjust.
6997 * break-catch-syscall.c (catch_syscall_completer): Adjust
6998 prototype and work with completion_tracker instead of VEC.
6999 * breakpoint.c (condition_completer): Adjust prototype and work
7000 with completion_tracker instead of VEC.
7001 * c-lang.c (c_language_defn, cplus_language_defn)
7002 (asm_language_defn, minimal_language_defn): Adjust to renames.
7003 * cli/cli-cmds.c (complete_command): Rework using
7004 completion_tracker. Catch exceptions when completing.
7005 * cli/cli-decode.c (integer_unlimited_completer)
7006 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
7007 with completion_tracker instead of VEC.
7008 * command.h (struct completion_tracker): Forward declare.
7009 (completer_ftype, completer_handle_brkchars_ftype): Change
7011 (complete_on_cmdlist, complete_on_enum): Adjust.
7012 * completer.c: Include <algorithm>.
7013 (struct gdb_completer_state): New.
7014 (current_completion): New global.
7015 (readline_line_completion_function): Delete.
7016 (noop_completer, filename_completer)
7017 (filename_completer_handle_brkchars, complete_files_symbols)
7018 (linespec_location_completer): Adjust to work with a
7019 completion_tracker instead of a VEC.
7020 (string_or_empty): New.
7021 (collect_explicit_location_matches): Adjust to work with a
7022 completion_tracker instead of a VEC.
7023 (explicit_location_completer): Rename to ...
7024 (complete_explicit_location): ... this and adjust to work with a
7025 completion_tracker instead of a VEC.
7026 (location_completer): Adjust to work with a completion_tracker
7028 (add_struct_fields): Adjust to work with a completion_list instead
7030 (expression_completer): Rename to ...
7031 (complete_expression): ... this and adjust to work with a
7032 completion_tracker instead of a VEC. Use complete_files_symbols.
7033 (expression_completer): Reimplement on top of complete_expression.
7034 (symbol_completer): Adjust to work with a completion_tracker
7036 (enum complete_line_internal_reason): Add describing comments.
7037 (complete_line_internal_normal_command): Adjust to work with a
7038 completion_tracker instead of a VEC.
7039 (complete_line_internal): Rename to ...
7040 (complete_line_internal_1): ... this and adjust to work with a
7041 completion_tracker instead of a VEC. Assert TEXT is NULL in the
7042 handle_brkchars phase.
7043 (new_completion_tracker): Delete.
7044 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7045 complete_line_internal_1.
7046 (free_completion_tracker): Delete.
7047 (INITIAL_COMPLETION_HTAB_SIZE): New.
7048 (completion_tracker::completion_tracker)
7049 (completion_tracker::~completion_tracker): New.
7050 (maybe_add_completion): Delete.
7051 (completion_tracker::maybe_add_completion)
7052 (completion_tracker::add_completion)
7053 (completion_tracker::add_completions): New.
7054 (throw_max_completions_reached_error): Delete.
7055 (complete_line): Adjust to work with a completion_tracker instead
7056 of a VEC. Don't create a completion_tracker_t or check for max
7058 (command_completer, command_completer_handle_brkchars)
7059 (signal_completer, reg_or_group_completer_1)
7060 (reg_or_group_completer, default_completer_handle_brkchars):
7061 Adjust to work with a completion_tracker.
7062 (gdb_completion_word_break_characters_throw): New.
7063 (gdb_completion_word_break_characters): Reimplement.
7064 (line_completion_function): Delete.
7065 (completion_tracker::recompute_lowest_common_denominator)
7066 (expand_preserving_ws)
7067 (completion_tracker::build_completion_result)
7068 (completion_result::completion_result)
7069 (completion_result::completion_result)
7070 (completion_result::~completion_result)
7071 (completion_result::completion_result)
7072 (completion_result::release_match_list, compare_cstrings)
7073 (completion_result::sort_match_list)
7074 (completion_result::reset_match_list)
7075 (gdb_rl_attempted_completion_function_throw)
7076 (gdb_rl_attempted_completion_function): New.
7077 * completer.h (completion_list, struct completion_result)
7078 (class completion_tracker): New.
7079 (complete_line): Add completion_tracker parameter.
7080 (readline_line_completion_function): Delete.
7081 (gdb_rl_attempted_completion_function): New.
7082 (noop_completer, filename_completer, expression_completer)
7083 (location_completer, symbol_completer, command_completer)
7084 (signal_completer, reg_or_group_completer): Update prototypes.
7085 (completion_tracker_t, new_completion_tracker)
7086 (make_cleanup_free_completion_tracker): Delete.
7087 (enum maybe_add_completion_enum): Delete.
7088 (maybe_add_completion): Delete.
7089 (throw_max_completions_reached_error): Delete.
7090 * corefile.c (complete_set_gnutarget): Adjust to work with a
7091 completion_tracker instead of a VEC.
7092 * cp-abi.c (cp_abi_completer): Adjust to work with a
7093 completion_tracker instead of a VEC.
7094 * d-lang.c (d_language_defn): Adjust.
7095 * disasm.c (disassembler_options_completer): Adjust to work with a
7096 completion_tracker instead of a VEC.
7097 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7098 (f_collect_symbol_completion_matches): ... this. Adjust to work
7099 with a completion_tracker instead of a VEC.
7100 (f_language_defn): Adjust.
7101 * go-lang.c (go_language_defn): Adjust.
7102 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7103 Adjust to work with a completion_tracker instead of a VEC.
7104 * infrun.c (handle_completer): Likewise.
7105 * interps.c (interpreter_completer): Likewise.
7106 * interps.h (interpreter_completer): Likewise.
7107 * language.c (unknown_language_defn, auto_language_defn)
7108 (local_language_defn): Adjust.
7109 * language.h (language_defn::la_make_symbol_completion_list):
7111 (language_defn::la_collect_symbol_completion_matches): ... this
7112 and adjust to work with a completion_tracker instead of a VEC.
7113 * m2-lang.c (m2_language_defn): Adjust.
7114 * objc-lang.c (objc_language_defn): Adjust.
7115 * opencl-lang.c (opencl_language_defn): Adjust.
7116 * p-lang.c (pascal_language_defn): Adjust.
7117 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7118 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7119 with a completion_tracker.
7120 * rust-lang.c (rust_language_defn): Adjust.
7121 * symtab.c (free_completion_list, do_free_completion_list)
7122 (return_val, completion_tracker): Delete.
7123 (completion_list_add_name, completion_list_add_symbol)
7124 (completion_list_add_msymbol, completion_list_objc_symbol)
7125 (completion_list_add_fields, add_symtab_completions): Add
7126 completion_tracker parameter and use it.
7127 (default_make_symbol_completion_list_break_on_1): Rename to...
7128 (default_collect_symbol_completion_matches_break_on): ... this.
7129 Add completion_tracker parameter and use it instead of allocating
7130 a completion tracker here.
7131 (default_make_symbol_completion_list_break_on): Delete old
7133 (default_make_symbol_completion_list): Delete.
7134 (default_collect_symbol_completion_matches): New.
7135 (make_symbol_completion_list): Delete.
7136 (collect_symbol_completion_matches): New.
7137 (make_symbol_completion_type): Rename to ...
7138 (collect_symbol_completion_matches_type): ... this. Add
7139 completion_tracker parameter and use it instead of VEC.
7140 (make_file_symbol_completion_list_1): Rename to...
7141 (collect_file_symbol_completion_matches): ... this. Add
7142 completion_tracker parameter and use it instead of VEC.
7143 (make_file_symbol_completion_list): Delete.
7144 (add_filename_to_list): Use completion_list instead of a VEC.
7145 (add_partial_filename_data::list): Now a completion_list.
7146 (make_source_files_completion_list): Work with a completion_list
7148 * symtab.h: Include "completer.h".
7149 (default_make_symbol_completion_list_break_on)
7150 (default_make_symbol_completion_list, make_symbol_completion_list)
7151 (make_symbol_completion_type, make_file_symbol_completion_list)
7152 (make_source_files_completion_list): Delete.
7153 (default_collect_symbol_completion_matches_break_on)
7154 (default_collect_symbol_completion_matches)
7155 (collect_symbol_completion_matches)
7156 (collect_symbol_completion_matches_type)
7157 (collect_file_symbol_completion_matches)
7158 (make_source_files_completion_list): New.
7159 * top.c (init_main): Don't install a rl_completion_entry_function
7160 hook. Install a rl_attempted_completion_function hook instead.
7161 * tui/tui-layout.c (layout_completer): Adjust to work with a
7163 * tui/tui-regs.c (tui_reggroup_completer):
7164 * tui/tui-win.c (window_name_completer, focus_completer)
7165 (winheight_completer): Adjust to work with a completion_tracker.
7166 * value.c: Include "completer.h".
7167 (complete_internalvar): Adjust to work with a completion_tracker.
7168 * value.h (complete_internalvar): Likewise.
7170 2017-07-17 Pedro Alves <palves@redhat.com>
7172 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7174 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7175 comments to completer_ftype's declaration.
7176 <completer_handle_brkchars>: Change type to
7177 completer_handle_brkchars_ftype.
7178 * command.h (completer_ftype): Add describing comment and give
7179 names to parameters.
7180 (completer_ftype_void): Rename to ...
7181 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7182 (set_cmd_completer_handle_brkchars): Adjust.
7183 * completer.c (filename_completer_handle_brkchars): New function.
7184 (complete_line_internal_normal_command): New function, factored
7186 (complete_line_internal): ... here.
7187 (command_completer_handle_brkchars)
7188 (default_completer_handle_brkchars)
7189 (completer_handle_brkchars_func_for_completer): New functions.
7190 * completer.h (set_gdb_completion_word_break_characters): Delete
7192 (completer_handle_brkchars_func_for_completer): New declaration.
7193 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7194 completer_handle_brkchars_func_for_completer.
7196 2017-07-17 Pedro Alves <palves@redhat.com>
7198 * completer.c (symbol_completer): New function, based on
7199 make_symbol_completion_list_fn.
7200 * completer.h (symbol_completer): New declaration.
7201 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7202 * python/py-cmd.c (completers): Adjust.
7203 * symtab.c (make_symbol_completion_list_fn): Delete.
7204 * symtab.h (make_symbol_completion_list_fn): Delete.
7205 * cli/cli-decode.c (add_cmd): Adjust.
7207 2017-07-17 Pedro Alves <palves@redhat.com>
7209 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7210 * dwarf2read.c: Include "filename-seen-cache.h".
7211 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7212 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7213 * filename-seen-cache.c: New file.
7214 * filename-seen-cache.h: New file.
7215 * symtab.c: Include "filename-seen-cache.h".
7216 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7217 (create_filename_seen_cache, clear_filename_seen_cache)
7218 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7219 to filename-seen-cache.h/filename-seen-cache.c.
7220 (output_source_filename, sources_info)
7221 (maybe_add_partial_symtab_filename)
7222 (make_source_files_completion_list): Adjust to use
7223 filename_seen_cache.
7225 2017-07-17 Pedro Alves <palves@redhat.com>
7227 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7229 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7230 dwarf2_debug_sections*)): New.
7231 (dwarf2_per_objfile::dwarf2_per_objfile(const
7232 dwarf2_per_objfile&)): Declare as deleted.
7233 (dwarf2_per_objfile::operator=): Declare as deleted.
7234 (dwarf2_per_objfile::dwarf2_per_objfile)
7235 (dwarf2_per_objfile::~dwarf2_per_objfile)
7236 (dwarf2_per_objfile::free_cached_comp_units): New.
7237 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7238 ctor. Call dwarf2_per_objfile's ctor manually.
7239 (dwarf2_locate_sections): Deleted/refactored as ...
7240 (dwarf2_per_objfile::locate_sections): ... this new method.
7241 (free_cached_comp_units): Defer to
7242 dwarf2_per_objfile::free_cached_comp_units.
7243 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7245 2017-07-14 Tom Tromey <tom@tromey.com>
7248 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7250 <UNOP_SIZEOF>: Split into separate case.
7251 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7253 2017-07-14 Tom Tromey <tom@tromey.com>
7256 * symtab.c (symbol_matches_domain): Add language_rust to special
7258 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7259 treat LOC_TYPEDEF symbols as variables.
7261 2017-07-14 Pedro Alves <palves@redhat.com>
7263 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7264 symtabs matching all symtabs with SRCFILE as file name instead of
7265 only considering the first hit, with lookup_symtab.
7267 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7269 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7270 operator_name parameters.
7271 (gen_expr): Update function call.
7273 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7275 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7277 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7279 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7280 parameter, use agent_expr::gdbarch instead, update function
7282 (locexpr_tracepoint_var_ref): Likewise.
7283 (loclist_tracepoint_var_ref): Likewise.
7284 * ax-gdb.c (gen_trace_static_fields): Likewise.
7285 (gen_traced_pop): Likewise.
7286 (gen_frame_args_address): Likewise.
7287 (gen_frame_locals_address): Likewise.
7288 (gen_var_ref): Likewise.
7289 (gen_struct_ref_recursive): Likewise.
7290 (gen_static_field): Likewise.
7291 (gen_maybe_namespace_elt): Likewise.
7292 (gen_expr): Likewise.
7293 (gen_trace_for_var): Likewise.
7294 (gen_trace_for_expr): Likewise.
7295 (gen_trace_for_return_address): Likewise.
7297 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7299 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7301 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7303 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7305 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7306 from ax, update calls.
7307 (gen_usual_arithmetic): Likewise.
7308 (gen_integral_promotions): Likewise.
7309 (gen_bitfield_ref): Likewise.
7310 (gen_primitive_field): Likewise.
7311 (gen_struct_ref_recursive): Likewise.
7312 (gen_struct_ref): Likewise.
7313 (gen_maybe_namespace_elt): Likewise.
7314 (gen_struct_elt_for_reference): Likewise.
7315 (gen_namespace_elt): Likewise.
7316 (gen_aggregate_elt_ref): Likewise.
7317 (gen_expr): Get gdbarch from ax, update calls.
7318 (gen_expr_binop_rest): Likewise.
7320 2017-07-13 Pedro Alves <palves@redhat.com>
7322 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7324 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7325 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7326 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7327 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7329 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7330 Get final tdesc from the tdep.
7331 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7333 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7334 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7335 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7336 Use it as default tdesc.
7337 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7338 down to amd_init_abi. No longer handle fallback tdesc here.
7339 * amd64-tdep.h (tdesc_x32): Declare.
7340 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7342 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7345 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7347 * s390-linux-tdep.c (s390_process_record): Add support for
7348 instructions new in arch12.
7350 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7352 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7353 PT_GETFSBASE and PT_GETGSBASE.
7354 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7357 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7359 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7360 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7361 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7363 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7364 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7365 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7366 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7367 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7368 * features/i386/amd64.xml: Add 64bit-segments.xml.
7369 * features/i386/amd64-avx-avx512.c: Regenerated.
7370 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7371 * features/i386/amd64-avx-mpx.c: Regenerated.
7372 * features/i386/amd64-avx.c: Regenerated.
7373 * features/i386/amd64-mpx.c: Regenerated.
7374 * features/i386/amd64.c: Regenerated.
7375 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7376 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7377 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7378 * regformats/i386/amd64-avx.dat: Regenerated.
7379 * regformats/i386/amd64-mpx.dat: Regenerated.
7380 * regformats/i386/amd64.dat: Regenerated.
7382 2017-07-10 Yao Qi <yao.qi@linaro.org>
7384 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7385 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7387 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7389 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7391 * gnulib/aclocal.m4: Regenerate.
7392 * gnulib/config.in: Regenerate.
7393 * gnulib/configure: Regenerate.
7394 * gnulib/import/Makefile.am: Regenerate.
7395 * gnulib/import/Makefile.in: Regenerate.
7396 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7397 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7398 * gnulib/import/m4/environ.m4: New file.
7399 * gnulib/import/m4/setenv.m4: New file.
7400 * gnulib/import/setenv.c: New file.
7401 * gnulib/import/unsetenv.c: New file.
7403 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7405 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7406 address when op is DW_OP_addr.
7408 2017-07-09 Tom Tromey <tom@tromey.com>
7410 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7411 check and apply to outer type.
7413 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7415 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7416 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7417 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7418 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7420 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7422 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7424 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7426 * corelow.c (get_core_siginfo): Remove.
7427 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7428 instead of get_core_siginfo.
7429 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7430 * gdbarch.h: Re-generate.
7431 * gdbarch.c: Re-generate.
7432 * linux-tdep.c (linux_core_xfer_siginfo): New.
7433 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7435 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7437 * corelow.c (thread_section_name): Move to ...
7438 * gdbcore.h (thread_section_name): ... here.
7440 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7442 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7443 (struct siginfo32): New.
7444 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7445 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7446 via ptrace(PT_LWPINFO).
7448 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7450 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7451 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7452 (fbsd_get_siginfo_type): New.
7453 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7454 (_initialize_fbsd_tdep): New.
7456 2017-07-06 David Blaikie <dblaikie@gmail.com>
7458 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7459 a singular dwo_unit*) to support multiple CUs in the same way that
7460 multiple TUs are supported.
7461 (create_cus_hash_table): Replace create_dwo_cu with a function for
7462 parsing multiple CUs from a DWO file.
7463 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7465 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7466 htab_find, rather than comparing the signature to a singleton CU in
7469 2017-07-06 Pedro Alves <palves@redhat.com>
7471 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7473 2017-07-04 Pedro Alves <palves@redhat.com>
7475 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7476 * gdbtypes.h (TYPE_STATIC): Delete.
7477 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7478 is_synchronized, is_native>: Delete.
7480 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7481 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7482 (TYPE_FN_FIELD_ABSTRACT): Delete.
7484 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7486 * buffer.h (buffer_finish): Fix spelling mistakes.
7488 2017-07-01 Eli Zaretskii <eliz@gnu.org>
7490 * .dir-locals.el: Automatically switch to C-style comments in
7491 versions of Emacs that support the feature.
7493 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7494 Pedro Alves <palves@redhat.com>
7497 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7498 (process_next_line): New variable 'inline_cmd'.
7499 Adjust 'if' clauses for "python", "compile" and "guile" to use
7500 'command_name_equals' and check for '!inline_cmd'.
7502 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7505 * cli/cli-script.c (command_name_equals_not_inline): New function.
7506 (process_next_line): Adjust 'if' clauses for "python", "compile"
7507 and "guile" to use command_name_equals_not_inline.
7509 2017-06-29 Pedro Alves <palves@redhat.com>
7511 * completer.c (expression_completer): Call
7512 linespec_location_completer instead of location_completer.
7514 2017-06-29 Pedro Alves <palves@redhat.com>
7516 * completer.c (expression_completer): Remove code that recomputes
7519 2017-06-29 Yao Qi <yao.qi@linaro.org>
7521 * regformats/regdat.sh: Generate code with
7522 "ifndef IN_PROCESS_AGENT".
7524 2017-06-28 Pedro Alves <palves@redhat.com>
7526 * command.h: Include "common/scoped_restore.h".
7528 2017-06-28 Yao Qi <yao.qi@linaro.org>
7530 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7531 instead of obstack_grow.
7533 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7536 * symfile.c (reread_symbols): Call objfiles_changed just before
7539 2017-06-27 Pedro Alves <palves@redhat.com>
7541 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7542 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7543 (completion_list_add_symbol, completion_list_add_msymbol):
7544 ... these new functions.
7545 (add_symtab_completions)
7546 (default_make_symbol_completion_list_break_on_1): Adjust.
7548 2017-06-27 Pedro Alves <palves@redhat.com>
7550 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7551 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7552 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7554 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7555 'storage_obstack' field an auto_obstack. In-class initialize all
7556 non-bitfield fields. Make minsyms_read bool.
7557 * symfile.c (read_symbols): Adjust.
7559 2017-06-27 Alan Hayward <alan.hayward@arm.com>
7561 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7562 (gdbsim_store_register): Likewise.
7564 2017-06-27 Pedro Alves <palves@redhat.com>
7566 * c-exp.y (name_obstack): Now an auto_obstack.
7567 (yylex): Use auto_obstack::clear.
7568 (c_parse): Use auto_obstack::clear instead of reinitializing and
7569 freeing the obstack.
7570 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7571 * d-exp.y (name_obstack): Now an auto_obstack.
7572 (yylex): Use auto_obstack::clear.
7573 (d_parse): Use auto_obstack::clear instead of reinitializing and
7574 freeing the obstack.
7575 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7577 * dwarf2read.c (create_addrmap_from_index)
7578 (dwarf2_build_psymtabs_hard)
7579 (update_enumeration_type_from_children): Likewise.
7580 * gdb_obstack.h (auto_obstack): New type.
7581 * go-exp.y (name_obstack): Now an auto_obstack.
7582 (build_packaged_name): Use auto_obstack::clear.
7583 (go_parse): Use auto_obstack::clear instead of reinitializing and
7584 freeing the obstack.
7585 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7587 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7588 * rust-exp.y (work_obstack): Now an auto_obstack.
7589 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7590 reinitializing and freeing the obstack.
7591 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7592 (host_char_to_target): Use auto_obstack.
7593 * utils.h (make_cleanup_obstack_free): Delete declaration.
7594 * valprint.c (generic_emit_char, generic_printstr): Use
7597 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7599 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7601 (darwin_init_thread_list): Don't update dummy thread.
7602 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7604 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7606 * record-full.c (netorder16): Remove.
7608 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7610 * common/diagnostics.h: Define macros for GCC.
7611 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7612 * common/vec.h: Include diagnostics.h.
7613 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7614 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7617 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7619 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7621 * ada-lex.l: Ignore deprecated register warnings.
7623 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7625 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7626 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7628 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7630 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7633 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7635 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7637 2017-06-23 Alan Hayward <alan.hayward@arm.com>
7639 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7640 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7641 (xtensa_register_read_masked): Likewise.
7643 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7645 * common/environ.c (gdb_environ::unset): Update comment.
7647 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7649 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7652 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7654 * record-full.c (record_full_exec_insn): Use byte_vector.
7656 2017-06-22 Yao Qi <yao.qi@linaro.org>
7658 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7659 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7661 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7663 * remote.c (cached_reg): Move from here...
7664 * regcache.h (cached_reg): ...to here.
7665 * python/py-unwind.c (struct reg_info): Remove.
7666 (cached_frame_info): Use cached_reg_t.
7667 (pyuw_prev_register): Likewise.
7668 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7669 (pyuw_dealloc_cache): Free all registers.
7671 2017-06-22 Pedro Alves <palves@redhat.com>
7672 Simon Marchi <simon.marchi@ericsson.com>
7674 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7676 * common/diagnostics.h: New file.
7678 2017-06-22 Pedro Alves <palves@redhat.com>
7680 * common/agent.h: Add include guards.
7682 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7684 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7685 talk about addressable units instead of bytes.
7687 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7689 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7690 of '::const_iterator'.
7692 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7694 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7695 'unittests/environ-selftests.c'.
7696 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7697 * charset.c (find_charset_names): Declare object 'iconv_env'.
7698 Update code to use 'iconv_env' object. Remove call to
7700 * common/environ.c: Include <utility>.
7701 (make_environ): Delete function.
7702 (free_environ): Delete function.
7703 (gdb_environ::clear): New function.
7704 (gdb_environ::operator=): New function.
7705 (gdb_environ::get): Likewise.
7706 (environ_vector): Delete function.
7707 (set_in_environ): Delete function.
7708 (gdb_environ::set): New function.
7709 (unset_in_environ): Delete function.
7710 (gdb_environ::unset): New function.
7711 (gdb_environ::envp): Likewise.
7712 * common/environ.h: Include <vector>.
7713 (struct gdb_environ): Delete; transform into...
7714 (class gdb_environ): ... this class.
7715 (free_environ): Delete prototype.
7716 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7717 environ_vector): Likewise.
7718 * infcmd.c (run_command_1): Update code to call
7719 'envp' from 'gdb_environ' class.
7720 (environment_info): Update code to call methods from 'gdb_environ'
7722 (unset_environment_command): Likewise.
7723 (path_info): Likewise.
7724 (path_command): Likewise.
7725 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7726 (inferior::inferior): Initialize 'environment' using the host's
7728 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7729 Include "environ.h".
7730 (class inferior) <environment>: Change type from 'struct
7731 gdb_environ' to 'gdb_environ'.
7732 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7733 methods from 'gdb_environ' class.
7734 * solib.c (solib_find_1): Likewise
7735 * unittests/environ-selftests.c: New file.
7737 2017-06-20 Yao Qi <yao.qi@linaro.org>
7739 * features/i386/i386-linux.xml: Exchange the order of including
7740 32bit-linux.xml and 32bit-sse.xml.
7741 * features/i386/i386-linux.c: Regenerated.
7743 2017-06-20 Yao Qi <yao.qi@linaro.org>
7745 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7746 Delete copy ctor and assignment operator.
7747 (tdesc_type): Likewise.
7748 (tdesc_feature): Likewise.
7749 (tdesc_free_reg): Remove.
7750 (tdesc_create_reg): Use new.
7751 (tdesc_free_type): Remove.
7752 (tdesc_create_vector): Use new.
7753 (tdesc_create_union): Likewise.
7754 (tdesc_create_flags): Likewise.
7755 (tdesc_create_enum): Likewise.
7756 (tdesc_free_feature): Delete.
7757 (free_target_description): Use delete.
7759 2017-06-19 John Baldwin <jhb@FreeBSD.org>
7761 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7764 2017-06-19 Pedro Alves <palves@redhat.com>
7766 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7767 after gdb::unlinker.
7769 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7771 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7772 gdb_environ to access an environment variable.
7774 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7776 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7779 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7781 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7783 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7785 * configure: Re-generate.
7786 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7788 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7790 * configure: Re-generate.
7791 * warning.m4: Pass -Werror to compiler when checking for
7792 supported warning flags.
7794 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7796 * Makefile.in (COMPILE.pre): Add "-x c++".
7798 2017-06-16 Alan Hayward <alan.hayward@arm.com>
7799 Pedro Alves <palves@redhat.com>
7800 Yao Qi <yao.qi@linaro.org>
7802 * defs.h (RequireLongest): New.
7803 (extract_integer): Declare function template.
7804 (extract_signed_integer): Remove the declaration, but define it
7806 (extract_unsigned_integer): Likewise.
7807 (store_integer): Declare function template.
7808 (store_signed_integer): Remove the declaration, but define it
7810 (store_unsigned_integer): Likewise.
7811 * findvar.c (extract_integer): New function template.
7812 (extract_signed_integer): Remove.
7813 (extract_unsigned_integer): Remove.
7814 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7816 (store_integer): New function template.
7817 (store_signed_integer): Remove.
7818 (store_unsigned_integer): Remove.
7819 (store_integer): Explicit instantiations.
7820 * regcache.c (regcache_raw_read_signed): Update.
7821 (regcache::raw_read): New function.
7822 (regcache::raw_read_signed): Remove.
7823 (regcache::raw_read_unsigned): Remove.
7824 (regcache_raw_read_unsigned): Update.
7825 (regcache_raw_write_unsigned): Update.
7826 (regcache::raw_write_signed): Remove.
7827 (regcache::raw_write): New function.
7828 (regcache_cooked_read_signed): Update.
7829 (regcache::raw_write_unsigned): Remove.
7830 (regcache::cooked_read_signed): Remove.
7831 (regcache_cooked_read_unsigned): Update.
7832 (regcache::cooked_read_unsigned): Remove.
7833 (regcache_cooked_write_signed): Update.
7834 (regcache_cooked_write_unsigned): Update.
7835 * regcache.h (regcache) <raw_read_signed>: Remove.
7836 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7837 <raw_read, raw_write>: New.
7838 <cooked_read_signed, cooked_write_signed>: Remove.
7839 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7840 <cooked_read, cooked_write>: New.
7841 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7842 (sh64_pseudo_register_write): Update.
7844 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7846 * arc-tdep.c (arc_disassembler_options): New variable.
7847 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7848 of default_print_insn.
7849 (arc_delayed_print_insn): Set info->section when needed,
7850 use default_print_insn to retrieve a disassembler.
7852 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7855 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7856 to mention $SHELL and startup-with-shell.
7858 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7860 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7862 2017-06-14 Yao Qi <yao.qi@linaro.org>
7864 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7865 default_print_insn instead of print_insn_aarch64.
7866 * arm-tdep.c (gdb_print_insn_arm): Call
7867 default_print_insn instead of print_insn_big_arm
7868 and print_insn_little_arm.
7869 * i386-tdep.c (i386_print_insn): Call default_print_insn
7870 instead of print_insn_i386.
7871 * ia64-tdep.c (ia64_print_insn): Call
7872 default_print_insn instead of print_insn_ia64.
7873 * mips-tdep.c (gdb_print_insn_mips): Call
7874 default_print_insn instead of print_insn_big_mips
7875 and print_insn_little_mips.
7876 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7877 instead of print_insn_spu.
7879 2017-06-14 Pedro Alves <palves@redhat.com>
7881 * ada-lang.c: Include "common/byte-vector.h".
7882 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7883 * charset.c (wchar_iterator::iterate): Resize the vector instead
7885 * common/byte-vector.h: Include "common/def-vector.h".
7886 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7887 * cli/cli-dump.c: Include "common/byte-vector.h".
7888 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7889 * common/byte-vector.h: New file.
7890 * common/def-vector.h: New file.
7891 * common/default-init-alloc.h: New file.
7892 * dwarf2loc.c: Include "common/byte-vector.h".
7893 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7894 instead of reserving it.
7895 * dwarf2read.c: Include "common/byte-vector.h".
7896 (data_buf::m_vec): Now a gdb::byte_vector.
7897 * gdb_regex.c: Include "common/def-vector.h".
7898 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7899 * mi/mi-main.c: Include "common/byte-vector.h".
7900 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7901 * printcmd.c: Include "common/byte-vector.h".
7902 (print_scalar_formatted): Use gdb::byte_vector.
7903 * valprint.c: Include "common/byte-vector.h".
7904 (maybe_negate_by_bytes, print_decimal_chars): Use
7907 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7909 * darwin-nat.c: Include "nat/fork-inferior.h".
7911 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7913 * configure.nat: Factor out Darwin bits that are not
7914 architecture-specific. Add fork-inferior.o.
7916 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7918 * configure.nat: Factor out AIX bits that are not
7919 architecture-specific. Add fork-inferior.o.
7921 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7923 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7924 (read_pieced_value, write_pieced_value): ...here. Reduce to
7925 wrappers that just call rw_pieced_value.
7927 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7929 * dwarf2loc.c (write_pieced_value): When writing the data for a
7930 memory piece, use write_memory_with_notification instead of
7933 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7935 * valops.c (read_value_memory): Change embedded_offset to
7936 represent a bit offset instead of a byte offset.
7937 * value.h (read_value_memory): Adjust comment.
7939 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7941 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7942 dest_offset_bits and source_offset_bits.
7943 (write_pieced_value): Likewise.
7945 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7947 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7948 given by DW_OP_bit_piece.
7949 (write_pieced_value): Likewise.
7951 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7953 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7954 some other preparations to the places where sufficient information
7956 (write_pieced_value): Likewise.
7958 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7960 * dwarf2loc.c (bits_to_bytes): New function.
7961 (read_pieced_value): Fix offset calculations for register pieces
7962 on big-endian targets.
7963 (write_pieced_value): Likewise.
7965 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7967 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7968 (write_pieced_value): Likewise.
7970 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7972 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7973 transfer the source value's least significant bits, instead of its
7974 lowest-addressed ones. Rename type_len to max_offset.
7975 (read_pieced_value): Mirror above changes to write_pieced_value as
7978 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7980 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7981 truncate full bytes from dest_offset_bits before using it as an
7982 offset into the buffer.
7984 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7986 * dwarf2loc.c (write_pieced_value): Include transfer size in
7989 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7991 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7992 calculation of this_size.
7994 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7996 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7997 when targeting a bit-field.
7998 (write_pieced_value): Likewise.
8000 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8002 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
8003 (allocate_piece_closure): Drop addr_size parameter.
8004 (dwarf2_evaluate_loc_desc_full): Adjust call to
8005 allocate_piece_closure.
8007 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8010 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
8011 the LSB end, independent of endianness.
8013 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8015 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
8018 2017-06-13 Yao Qi <yao.qi@linaro.org>
8020 * mips-linux-nat.c: Move include features/mips*-linux.c to
8022 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
8023 to mips-linux-tdep.c.
8024 * mips-linux-tdep.c: Include features/mips*-linux.c
8025 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
8027 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
8028 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
8029 (tdesc_mips64_dsp_linux): Declare.
8031 2017-06-12 Tom Tromey <tom@tromey.com>
8033 * valprint.h (val_print_type_code_int): Remove.
8034 * valprint.c (generic_val_print_int): Always call
8035 val_print_scalar_formatted.
8036 (val_print_type_code_int): Remove.
8037 * printcmd.c (print_scalar_formatted): Handle options->format==0.
8038 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
8039 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
8040 * ada-valprint.c (ada_val_print_num): Use
8041 val_print_scalar_formatted.
8043 2017-06-12 Tom Tromey <tom@tromey.com>
8045 * printcmd.c (print_scalar_formatted): Unify the two switches.
8046 Don't convert scalars to LONGEST.
8048 2017-06-12 Tom Tromey <tom@tromey.com>
8051 * valprint.h (print_decimal_chars): Update.
8052 * valprint.c (maybe_negate_by_bytes): New function.
8053 (print_decimal_chars): Add "is_signed" argument.
8054 * printcmd.c (print_scalar_formatted): Update.
8056 2017-06-12 Tom Tromey <tom@tromey.com>
8059 * valprint.h (print_binary_chars, print_hex_chars): Update.
8060 * valprint.c (val_print_type_code_int): Update.
8061 (print_binary_chars): Add "zero_pad" argument.
8062 (emit_octal_digit): New function.
8063 (print_octal_chars): Don't zero-pad.
8064 (print_decimal_chars): Likewise.
8065 (print_hex_chars): Add "zero_pad" argument.
8066 * sh64-tdep.c (sh64_do_fp_register): Update.
8067 * regcache.c (regcache::dump): Update.
8068 * printcmd.c (print_scalar_formatted): Update.
8069 * infcmd.c (default_print_one_register_info): Update.
8071 2017-06-12 Pedro Alves <palves@redhat.com>
8072 Alan Hayward <alan.hayward@arm.com>
8074 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8075 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8076 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8077 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8078 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8080 2017-06-12 Pedro Alves <palves@redhat.com>
8082 * dwarf2read.c (mapped_symtab::data): Now a vector of
8083 symtab_index_entry instead of vector of
8084 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8085 whether an element's name is NULL instead of checking whether the
8086 element itself is NULL.
8087 (find_slot): Change return type. Adjust.
8088 (hash_expand, , add_index_entry, uniquify_cu_indices)
8089 (write_hash_table): Adjust.
8091 2017-06-12 Pedro Alves <palves@redhat.com>
8093 * dwarf2read.c (recursively_count_psymbols): New function.
8094 (write_psymtabs_to_index): Call it to compute number of psyms and
8095 pass estimate size of psyms_seen to unordered_set's ctor.
8097 2017-06-12 Pedro Alves <palves@redhat.com>
8099 * dwarf2read.c (write_hash_table): Check if key already exists
8102 2017-06-12 Pedro Alves <palves@redhat.com>
8104 * dwarf2read.c (data_buf::append_space): Rename to...
8105 (data_buf::grow): ... this, and make private. Adjust all callers.
8106 (data_buf::append_uint): New method.
8107 (add_address_entry, write_one_signatured_type)
8108 (write_psymtabs_to_index): Use it.
8110 2017-06-12 Pedro Alves <palves@redhat.com>
8112 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8113 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8114 (data_buf::file_write): Call ::fwrite directly.
8116 2017-06-12 Pedro Alves <palves@redhat.com>
8118 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8121 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8123 Code cleanup: C++ify .gdb_index producer.
8124 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8125 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8126 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8127 (create_strtab, add_string): Remove.
8128 (file_write, data_buf): New.
8129 (struct symtab_index_entry): Use std::vector for cu_indices.
8130 (struct mapped_symtab): Use std::vector for data.
8131 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8132 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8134 (find_slot): Change return type. Update it to the new data structures.
8135 (hash_expand, add_index_entry): Update it to the new data structures.
8136 (offset_type_compare): Remove.
8137 (uniquify_cu_indices): Update it to the new data structures.
8138 (c_str_view, c_str_view_hasher, vector_hasher): New.
8139 (add_indices_to_cpool): Remove.
8140 (write_hash_table): Update it to the new data structures.
8141 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8142 (eq_psymtab_cu_index): Remove.
8143 (psym_index_map): New typedef.
8144 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8145 reference and std::unordered_map for cu_index_htab.
8146 (add_address_entry, add_address_entry_worker, write_address_map)
8147 (write_psymbols): Update it to the new data structures.
8148 (write_obstack): Remove.
8149 (struct signatured_type_index_data): Change types_list to a data_buf
8150 reference and psyms_seen to a std::unordered_set reference.
8151 (write_one_signatured_type, recursively_write_psymbols)
8152 (write_psymtabs_to_index): Update it to the new data structures.
8154 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8156 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8157 separate-debug-file commands.
8158 * symfile.h (separate_debug_file_debug): New global.
8159 * symfile.c (separate_debug_file_debug): New global.
8160 (separate_debug_file_exists, find_separate_debug_file): Add
8162 (_initialize_symfile): Add "set debug separate-debug-file"
8164 * build-id.c (build_id_to_debug_bfd,
8165 find_separate_debug_file_by_buildid): Add debug output.
8167 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8169 * gdbarch.sh (displaced_step_free_closure): Remove.
8170 * gdbarch.h, gdbarch.c: Re-generate.
8171 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8172 displaced_step_free_closure.
8173 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8174 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8175 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8176 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8177 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8178 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8179 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8180 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8181 * infrun.c (displaced_step_clear): Call xfree instead of
8182 gdbarch_displaced_step_free_closure.
8184 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8186 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8189 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8191 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8192 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8193 (mn10300_push_dummy_call): Likewise.
8195 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8197 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8199 2017-06-08 Alan Hayward <alan.hayward@arm.com>
8201 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8203 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8205 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8206 able to start inferiors using a shell.
8207 (New remote packets): Announce new packet "QStartupWithShell".
8208 * remote.c: Add PACKET_QStartupWithShell.
8209 (extended_remote_create_inferior): Handle new
8210 PACKET_QStartupWithShell.
8211 (remote_protocol_features) <QStartupWithShell>: New entry for
8212 PACKET_QStartupWithShell.
8213 (_initialize_remote): Call "add_packet_config_cmd" for
8216 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8217 Pedro Alves <palves@redhat.com>
8219 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8220 and "nat/fork-inferior.h".
8221 * common/common-inferior.h: New file, with contents from
8223 * commom/common-utils.c: Include "common-utils.h".
8224 (stringify_argv): New function.
8225 * common/common-utils.h (stringify_argv): New prototype.
8226 * configure.nat: Add "fork-inferior.o" as a dependency for
8227 "*linux*", "fbsd*" and "nbsd*" hosts.
8228 * corefile.c (get_exec_file): Update comment.
8229 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8230 instead of "startup_inferior".
8231 (darwin_create_inferior): Call "add_thread_silent" after
8233 * fork-child.c: Cleanup unnecessary includes.
8234 (SHELL_FILE): Move to "common/common-fork-child.c".
8235 (environ): Likewise.
8236 (exec_wrapper): Initialize.
8237 (get_exec_wrapper): New function.
8238 (breakup_args): Move to "common/common-fork-child.c"; rename to
8239 "breakup_args_for_exec".
8240 (escape_bang_in_quoted_argument): Move to
8241 "common/common-fork-child.c".
8242 (saved_ui): New variable.
8243 (prefork_hook): New function.
8244 (postfork_hook): Likewise.
8245 (postfork_child_hook): Likewise.
8246 (gdb_startup_inferior): Likewise.
8247 (fork_inferior): Move to "common/common-fork-child.c". Update
8248 function to support gdbserver.
8249 (startup_inferior): Likewise.
8250 * gdbcore.h (get_exec_file): Remove declaration.
8251 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8252 instead of "startup_inferior". Call "add_thread_silent" after
8254 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8255 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8256 instead of "startup_inferior". Call "add_thread_silent" after
8258 * inferior.h: Include "common-inferior.h".
8259 (trace_start_error): Move to "common/common-utils.h".
8260 (trace_start_error_with_name): Likewise.
8261 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8262 (startup_inferior): Likewise.
8263 (gdb_startup_inferior): New prototype.
8264 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8265 * nat/fork-inferior.h: New file.
8266 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8267 instead of "startup_inferior". Call "add_thread_silent" after
8269 * target.h (target_terminal_init): Move prototype to
8271 (target_terminal_inferior): Likewise.
8272 (target_terminal_ours): Likewise.
8273 * target/target.h (target_terminal_init): New prototype, moved
8275 (target_terminal_inferior): Likewise.
8276 (target_terminal_ours): Likewise.
8277 * utils.c (gdb_flush_out_err): New function.
8279 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8281 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8282 * common/common-gdbthread.h: New file, with parts from
8284 * gdbthread.h: Include "common-gdbthread.h".
8285 (switch_to_thread): Moved to "common/common-gdbthread.h".
8287 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8289 * Makefile.in (SFILES): Add "common/job-control.c".
8290 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8291 (COMMON_OBS): Add "job-control.o".
8292 * common/job-control.c: New file, with contents from
8294 * common/job-control.h: New file, with contents from "terminal.h".
8295 * fork-child.c: Include "job-control.h".
8296 * inflow.c: Include "job-control.h".
8297 (gdb_setpgid): Move to "common/common-inflow.c".
8298 (_initialize_inflow): Move setting of "job_control" to
8299 "handle_job_control".
8300 * terminal.h (job_control): Moved to "common/common-terminal.h".
8301 (gdb_setpgid): Likewise.
8302 * top.c: Include "job_control.h".
8303 * utils.c: Likewise.
8304 (job_control): Moved to "job-control.c".
8306 2017-06-07 Pedro Alves <palves@redhat.com>
8308 * Makefile.in (SFILES): Add gdb_regex.c.
8309 (COMMON_OBS): Add gdb_regex.o.
8310 * ada-lang.c (ada_add_standard_exceptions)
8311 (ada_add_exceptions_from_frame, name_matches_regex)
8312 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8313 parameter type to compiled_regex. Adjust.
8314 (ada_exceptions_list): Use compiled_regex.
8315 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8316 std::unique_ptr<compiled_regex>.
8317 (exception_catchpoint::~exception_catchpoint): Remove regfree
8319 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8320 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8321 * breakpoint.c (solib_catchpoint::compiled): Now a
8322 std::unique_ptr<compiled_regex>.
8323 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8324 (check_status_catch_solib): Adjust to use compiled_regex.
8325 (add_solib_catchpoint): Adjust to use compiled_regex.
8326 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8327 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8328 compiled_regex reference. Adjust to use it.
8329 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8330 declaration. Include "gdb_regex.h".
8331 (apropos_cmd): Change regex parameter to compiled_regex reference.
8332 * gdb_regex.c: New file.
8333 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8335 (class compiled_regex): New.
8336 * linux-tdep.c: Include "common/gdb_optional.h".
8337 (struct mapping_regexes): New, factored out from
8338 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8339 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8340 gdb::optional and remove cleanups. Adjust to compiled_regex.
8341 * probe.c: Include "common/gdb_optional.h".
8342 (collect_probes): Use compiled_regex and gdb::optional and remove
8344 * skip.c: Include "common/gdb_optional.h".
8345 (skiplist_entry::compiled_function_regexp): Now a
8346 gdb::optional<compiled_regex>.
8347 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8348 (free_skiplist_entry): Remove regfree call.
8349 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8350 compiled_regex and gdb::optional.
8351 * symtab.c: Include "common/gdb_optional.h".
8352 (search_symbols): Use compiled_regex and gdb::optional.
8353 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8354 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8357 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8359 * regcache.c (regcache::save): Avoid buffer use.
8360 (regcache::dump): Likewise.
8362 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8364 * sh-tdep.c (sh_pseudo_register_read): Remove
8366 (sh_pseudo_register_write): Likewise.
8367 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8368 (sh64_pseudo_register_write): Likewise
8370 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8372 * aarch64-tdep.c (aarch64_store_return_value): Use
8374 (aarch64_pseudo_read_value): Likewise.
8375 (aarch64_pseudo_write): Likewise.
8377 2017-06-06 Yao Qi <yao.qi@linaro.org>
8379 * regformats/regdef.h (set_register_cache): Remove the
8382 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8384 * frame.c (frame_unwind_register_signed): Use
8385 frame_unwind_register_value.
8387 2017-06-06 Pedro Alves <palves@redhat.com>
8389 PR breakpoints/21553
8390 * breakpoint.c (create_breakpoints_sal_default)
8391 (init_breakpoint_sal, create_breakpoint_sal): Use
8392 gdb::unique_xmalloc_ptr for string parameters.
8393 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8394 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8395 (base_breakpoint_create_breakpoints_sal)
8396 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8397 (strace_marker_create_breakpoints_sal)
8398 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8400 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8401 gdb::unique_xmalloc_ptr for string parameters.
8402 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8405 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8407 * alpha-tdep.c (alpha_register_to_value): Use
8408 get_frame_register_value.
8409 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8411 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8413 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8414 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8415 (ia64_value_to_register): Likewise.
8416 (ia64_extract_return_value): Likewise.
8417 (ia64_store_return_value): Likewise.
8418 (ia64_push_dummy_call): Likewise.
8420 2017-06-04 Joel Brobecker <brobecker@adacore.com>
8424 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8426 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8428 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8430 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8432 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8434 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8436 * event-loop.c (poll_timers): Unallocate timer using delete
8439 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8441 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8442 (struct breakpoint) <~breakpoint>: New.
8443 (struct watchpoint): Inherit from breakpoint.
8446 (struct tracepoint): Inherit from breakpoint.
8448 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8449 (struct longjmp_breakpoint): Inherit from breakpoint.
8450 <~longjmp_breakpoint>: New.
8452 (new_breakpoint_from_type): Remove casts.
8453 (watchpoint_in_thread_scope): Remove reference to base field.
8454 (watchpoint_del_at_next_stop): Likewise.
8455 (update_watchpoint): Likewise.
8456 (watchpoint_check): Likewise.
8457 (bpstat_check_watchpoint): Likewise.
8458 (set_longjmp_breakpoint): Likewise.
8459 (struct fork_catchpoint): Inherit from breakpoint.
8461 (struct solib_catchpoint): Inherit from breakpoint.
8462 <~solib_catchpoint>: New.
8464 (dtor_catch_solib): Change to ...
8465 (solib_catchpoint::~solib_catchpoint): ... this.
8466 (breakpoint_hit_catch_solib): Remove reference to base field.
8467 (add_solib_catchpoint): Likewise.
8468 (create_fork_vfork_event_catchpoint): Likewise.
8469 (struct exec_catchpoint): Inherit from breakpoint.
8470 <~exec_catchpoint>: New.
8472 (dtor_catch_exec): Change to ...
8473 (exec_catchpoint::~exec_catchpoint): ... this.
8474 (dtor_watchpoint): Change to ...
8475 (watchpoint::~watchpoint): ... this.
8476 (watch_command_1): Remove reference to base field.
8477 (catch_exec_command_1): Likewise.
8478 (base_breakpoint_dtor): Change to ...
8479 (breakpoint::~breakpoint): ... this.
8480 (base_breakpoint_ops): Remove dtor field value.
8481 (longjmp_bkpt_dtor): Change to ...
8482 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8483 (strace_marker_create_breakpoints_sal): Remove reference to base
8485 (delete_breakpoint): Don't manually call breakpoint destructor.
8486 (create_tracepoint_from_upload): Remove reference to base field.
8487 (trace_pass_set_count): Likewise.
8488 (initialize_breakpoint_ops): Don't initialize
8489 momentary_breakpoint_ops, don't set dtors.
8490 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8491 <~ada_catchpoint>: New.
8493 (create_excep_cond_exprs): Remove reference to base field.
8494 (dtor_exception): Change to ...
8495 (ada_catchpoint::~ada_catchpoint): ... this.
8496 (dtor_catch_exception): Remove.
8497 (dtor_catch_exception_unhandled): Remove.
8498 (dtor_catch_assert): Remove.
8499 (create_ada_exception_catchpoint): Remove reference to base
8501 (initialize_ada_catchpoint_ops): Don't set dtors.
8502 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8504 <~signal_catchpoint>: New.
8506 (signal_catchpoint_dtor): Change to ...
8507 (signal_catchpoint::~signal_catchpoint): ... this.
8508 (create_signal_catchpoint): Remove reference to base field.
8509 (initialize_signal_catchpoint_ops): Don't set dtor.
8510 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8512 <~syscall_catchpoint>: New.
8514 (dtor_catch_syscall): Change to ...
8515 (syscall_catchpoint::~syscall_catchpoint): ... this.
8516 (create_syscall_event_catchpoint): Remove reference to base
8518 (initialize_syscall_catchpoint_ops): Don't set dtor.
8519 * break-catch-throw.c (struct exception_catchpoint): Inherit
8521 <~exception_catchpoint>: New.
8523 (dtor_exception_catchpoint): Change to ...
8524 (exception_catchpoint::~exception_catchpoint): ... this.
8525 (handle_gnu_v3_exceptions): Remove reference to base field.
8526 (initialize_throw_catchpoint_ops): Don't set dtor.
8527 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8529 * remote.c (remote_get_tracepoint_status): Likewise.
8530 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8531 * tracefile.c (tracefile_fetch_registers): Likewise.
8532 * tracepoint.c (actions_command): Likewise.
8533 (validate_actionline): Likewise.
8534 (tfind_1): Likewise.
8535 (get_traceframe_location): Likewise.
8536 (find_matching_tracepoint_location): Likewise.
8537 (parse_tracepoint_status): Likewise.
8538 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8540 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8542 * breakpoint.c (struct longjmp_breakpoint): New struct.
8543 (is_tracepoint_type): Change return type to bool.
8544 (is_longjmp_type): New function.
8545 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8546 (set_raw_breakpoint_without_location): Use
8547 new_breakpoint_from_type.
8548 (set_raw_breakpoint): Likewise.
8550 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8552 * breakpoint.c (new_breakpoint_from_type): New function.
8553 (create_breakpoint_sal): Use new_breakpoint_from_type and
8555 (create_breakpoint): Likewise.
8557 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8559 * memattr.c (mem_info_command): Rename to ...
8560 (info_mem_command): ... this.
8561 (mem_enable_command): Rename to ...
8562 (enable_mem_command): ... this.
8563 (mem_disable_command): Rename to ...
8564 (disable_mem_command): ... this.
8565 (mem_delete_command): Rename to ...
8566 (delete_mem_command): ... this.
8567 (_initialize_mem): Adjust function names.
8569 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8571 * btrace.c (handle_pt_insn_events): New.
8572 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8573 STATUS. Split into this and ...
8574 (handle_pt_insn_event_flags): ... this.
8576 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8578 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8579 and struct pt_insn.resynced.
8580 * configure: Regenerated.
8581 * config.in: Regenerated.
8583 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8585 * btrace.c (ftrace_find_call_by_number): New function.
8586 (ftrace_new_function): Store objects, not pointers.
8587 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8588 ftrace_new_gap, ftrace_update_function,
8589 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8590 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8591 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8592 btrace_ends_with_single_insn, btrace_call_get): Account for
8593 btrace_thread_info::functions now storing objects.
8594 * btrace.h (struct btrace_thread_info): Add constructor.
8595 (struct btrace_thread_info) <functions>: Make std::vector.
8596 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8597 Initialize with default values.
8598 * record-btrace.c (record_btrace_frame_sniffer): Account for
8599 btrace_thread_info::functions now storing objects.
8601 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8603 * btrace.c: Remove typedef bfun_s.
8604 (ftrace_new_gap): Directly add gaps to the list of gaps.
8605 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8606 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8607 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8610 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8612 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8613 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8614 with btrace_thread_info::next_segment and
8615 btrace_thread_info::prev_segment.
8616 * btrace.h: Remove struct btrace_func_link.
8617 (struct btrace_function): Replace pair of function segment pointers
8618 with pair of indices.
8619 * python/py-record-btrace.c (btpy_call_prev_sibling,
8620 btpy_call_next_sibling): Replace references to
8621 btrace_thread_info::segment with btrace_thread_info::next_segment and
8622 btrace_thread_info::prev_segment.
8623 * record-btrace.c (record_btrace_frame_this_id): Use
8624 btrace_find_call_by_number.
8626 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8628 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8629 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8630 btrace_insn_next, btrace_insn_prev): Remove references to
8631 btrace_thread_info::flow.
8632 * btrace.h (struct btrace_function): Remove FLOW.
8634 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8636 * btrace.c (ftrace_find_call_by_number): New function.
8637 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8638 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8639 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8640 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8642 * btrace.h (struct btrace_function): Turn UP into an index.
8643 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8645 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8646 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8647 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8649 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8651 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8652 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8653 ftrace_update_function, ftrace_compute_global_level_offset,
8654 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8655 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8656 btrace_insn_end, btrace_is_empty): Remove references to
8657 btrace_thread_info::begin and btrace_thread_info::end.
8658 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8659 (struct btrace_thread_info) <functions>: Adjust comment.
8660 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8661 btrace_thread_info::begin.
8663 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8665 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8666 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8667 ftrace_update_function): Remove arguments that implicitly were always
8669 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8670 Don't pass BTINFO->END.
8672 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8674 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8675 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8676 btrace_find_insn_by_number): Replace function segment pointer with
8678 (btrace_insn_cmp): Simplify.
8679 * btrace.h: (struct btrace_insn_iterator) Rename index to
8680 insn_index. Replace function segment pointer with index into function
8682 * record-btrace.c (record_btrace_call_history): Replace function
8683 segment pointer use with index.
8684 (record_btrace_frame_sniffer): Retrieve function call segment through
8686 (record_btrace_set_replay): Remove defunc't safety check.
8688 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8690 * btrace.c (btrace_ends_with_single_insn): New function.
8691 (btrace_call_get, btrace_call_number, btrace_call_begin,
8692 btrace_call_end, btrace_call_next, btrace_call_prev,
8693 btrace_find_call_by_number): Use index into call segment vector
8695 (btrace_call_cmp): Simplify.
8696 * btrace.h (struct btrace_call_iterator): Replace function call segment
8697 pointer with index into vector.
8698 * record-btrace.c (record_btrace_call_history): Use index instead of
8701 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8703 * btrace.c (btrace_insn_begin, btrace_insn_end,
8704 btrace_find_insn_by_number): Add btinfo to iterator.
8705 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8707 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8709 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8710 and save pointers directly.
8711 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8712 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8713 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8714 changed signature of functions.
8715 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8716 (btrace_fetch): Remove code that adds btrace_function pointers to
8717 vector of btrace_functions.
8718 (btrace_clear): Simplify freeing vector of btrace_functions.
8720 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8722 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8723 Replace VEC_* with std::vector functions.
8724 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8725 (struct btrace_thread_info)<functions>: Change type to std::vector.
8727 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8729 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8730 "Removed targets and native configurations" up. Merge duplicate
8731 "New commands" sub-sections. Add "New options" sub-sections.
8733 2017-05-26 Alan Hayward <alan.hayward@arm.com>
8735 * defs.h (copy_integer_to_size): New declaration.
8736 * findvar.c (copy_integer_to_size): New function.
8737 (do_cint_test): New selftest function.
8738 (copy_integer_to_size_test): Likewise.
8739 (_initialize_findvar): Likewise.
8740 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8741 (mips_fbsd_collect_reg): Use raw_collect_integer.
8742 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8743 (mips64_fill_gregset): Use raw_collect_integer
8744 (mips64_fill_fpregset): Use raw_supply_integer.
8745 * regcache.c (regcache::raw_supply_integer): New function.
8746 (regcache::raw_collect_integer): Likewise.
8747 * regcache.h: (regcache::raw_supply_integer): New declaration.
8748 (regcache::raw_collect_integer): Likewise.
8750 2017-05-24 Yao Qi <yao.qi@linaro.org>
8752 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8753 (COMMON_OBS): Add gdbarch-selftests.o.
8754 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8755 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8756 * gdbarch-selftests.c: New file.
8757 * regcache.h (regcache) <~regcache>: Mark it virtual if
8759 <raw_write>: Likewise.
8761 2017-05-24 Yao Qi <yao.qi@linaro.org>
8763 * regcache.c (current_regcache): Change it to
8764 regcache::current_regcache.
8765 (regcache_observer_target_changed): Update.
8766 (regcache_thread_ptid_changed): Make it a regcache static
8768 (regcache_thread_ptid_changed): Update.
8769 (class regcache_access): New.
8770 (current_regcache_test): Update.
8771 (_initialize_regcache): Update.
8772 * regcache.h: Include forward_list.
8773 (regcache): Declare regcache_thread_ptid_changed and declare
8774 registers_changed_ptid as friend.
8776 2017-05-24 Yao Qi <yao.qi@linaro.org>
8778 * i387-tdep.c (i387_register_to_value): Use register_size
8779 instead of TYPE_LENGTH.
8780 * m68k-tdep.c (m68k_register_to_value): Likewise.
8782 2017-05-24 Yao Qi <yao.qi@linaro.org>
8784 * i387-tdep.c (i387_convert_register_p): Return false if type
8785 code isn't TYPE_CODE_FLT.
8787 2017-05-24 Yao Qi <yao.qi@linaro.org>
8789 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8791 (alpha_register_to_value): Remove type length check.
8792 (alpha_value_to_register): Likewise.
8794 2017-05-24 Yao Qi <yao.qi@linaro.org>
8796 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8799 2017-05-24 Yao Qi <yao.qi@linaro.org>
8801 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8802 TYPE_CODE_FLT or not.
8804 2017-05-24 Yao Qi <yao.qi@linaro.org>
8806 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8807 * avr-tdep.c (avr_gdbarch_init): Likewise.
8808 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8809 * cris-tdep.c (cris_gdbarch_init): Likewise.
8810 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8811 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8812 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8814 * mep-tdep.c (mep_gdbarch_init): Likewise.
8815 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8816 * mips-tdep.c (mips_gdbarch_init): Likewise.
8817 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8818 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8819 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8820 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8821 * v850-tdep.c (v850_gdbarch_init): Likewise.
8823 2017-05-24 Yao Qi <yao.qi@linaro.org>
8825 * selftest-arch.c (tests_with_arch): Call registers_changed
8826 and reinit_frame_cache.
8827 * selftest.c (run_self_tests): Likewise.
8829 2017-05-24 Yao Qi <yao.qi@linaro.org>
8831 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8832 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8834 2017-05-24 Yao Qi <yao.qi@linaro.org>
8836 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8837 set_gdbarch_print_insn.
8839 2017-05-24 Yao Qi <yao.qi@linaro.org>
8841 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8842 set_gdbarch_print_insn.
8844 2017-05-24 Yao Qi <yao.qi@linaro.org>
8846 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8847 set_gdbarch_print_insn.
8848 * arc-tdep.c (arc_gdbarch_init): Likewise.
8849 * arch-utils.c: include dis-asm.h.
8850 (default_print_insn): New function.
8851 * arch-utils.h (default_print_insn): Declare.
8852 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8853 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8854 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8855 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8856 * frv-tdep.c (frv_gdbarch_init): Likewise.
8857 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8858 * gdbarch.sh (print_insn): Use default_print_insn.
8859 * gdbarch.c: Regenerated.
8860 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8861 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8862 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8863 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8864 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8865 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8866 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8867 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8868 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8869 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8870 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8871 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8872 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8873 * mt-tdep.c (mt_gdbarch_init): Likewise.
8874 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8875 * nios2-tdep.c (nios2_print_insn): Remove.
8876 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8877 * rx-tdep.c (rx_gdbarch_init): Likewise.
8878 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8879 * score-tdep.c (score_print_insn): Remove.
8880 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8881 * sh-tdep.c (sh_gdbarch_init): Likewise.
8882 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8883 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8884 * tic6x-tdep.c (tic6x_print_insn): Remove.
8885 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8886 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8887 * v850-tdep.c (v850_gdbarch_init): Likewise.
8888 * vax-tdep.c (vax_gdbarch_init): Likewise.
8889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8890 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8892 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8894 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8895 (MIPS_FP0_REGNUM): Remove.
8896 (MIPS_FSR_REGNUM): Remove.
8897 (mips_fbsd_supply_fpregs): Use mips_regnum.
8898 (mips_fbsd_supply_gregs): Likewise.
8899 (mips_fbsd_collect_fpregs): Likewise.
8900 (mips_fbsd_collect_gregs): Likewise.
8902 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8904 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8905 (getpfpregs_supplies): New function.
8906 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8908 (mips_fbsd_store_inferior_registers): Likewise.
8910 2017-05-22 Pedro Alves <palves@redhat.com>
8912 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8915 2017-05-22 Alan Hayward <alan.hayward@arm.com>
8917 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8918 (store_register): Likewise.
8919 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8920 (get_decimal_float_return_value): Likewise.
8921 (do_ppc_sysv_return_value): Likewise.
8922 (ppc64_sysv_abi_push_integer): Likewise.
8923 (ppc64_sysv_abi_push_freg): Likewise.
8924 (ppc64_sysv_abi_return_value_base): Likewise.
8925 (ppc64_sysv_abi_return_value): Likewise.
8926 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8927 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8928 * rs6000-nat.c: Likewise.
8929 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8930 (rs6000_value_to_register): Likewise.
8931 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8933 2017-05-21 Tom Tromey <tom@tromey.com>
8936 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8937 arrays as "[T]", not "[T; ]".
8939 2017-05-19 Tom Tromey <tom@tromey.com>
8942 * rust-lang.c (exp_descriptor_rust): New function.
8943 (rust_language_defn): Use it.
8944 * p-lang.c (pascal_language_defn): Update.
8945 * opencl-lang.c (opencl_language_defn): Update.
8946 * objc-lang.c (objc_language_defn): Update.
8947 * m2-lang.c (m2_language_defn): Update.
8948 * language.h (struct language_defn)
8949 <la_watch_location_expression>: New member.
8950 * language.c (unknown_language_defn, auto_language_defn)
8951 (local_language_defn): Update.
8952 * go-lang.c (go_language_defn): Update.
8953 * f-lang.c (f_language_defn): Update.
8954 * d-lang.c (d_language_defn): Update.
8955 * c-lang.h (c_watch_location_expression): Declare.
8956 * c-lang.c (c_watch_location_expression): New function.
8957 (c_language_defn, cplus_language_defn, asm_language_defn)
8958 (minimal_language_defn): Use it.
8959 * breakpoint.c (watch_command_1): Call
8960 la_watch_location_expression.
8961 * ada-lang.c (ada_language_defn): Update.
8963 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8966 * gdb_curses.h (NOMACROS): Define.
8967 (NCURSES_NOMACROS): Define.
8969 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8972 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8974 * tui/tui-wingeneral.c (box_win): Likewise.
8975 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8976 (tui_show_source_line): Likewise.
8977 (tui_show_exec_info_content): Likewise.
8979 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8981 * sparc-tdep.c (sparc_structure_return_p)
8982 (sparc_arg_on_registers_p): New functions.
8983 (sparc32_store_arguments): Use them.
8984 * sparc64-tdep.c (sparc64_16_byte_align_p)
8985 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8986 Handle TYPE_CODE_ARRAY.
8988 2017-05-17 Yao Qi <yao.qi@linaro.org>
8990 * cli/cli-decode.c (add_alias_cmd): New function.
8991 * command.h (add_alias_cmd): Declare.
8992 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8993 instead call add_alias_cmd.
8995 2017-05-17 Pedro Alves <palves@redhat.com>
8997 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8998 (nat_makefile_frag): ... this. All references updated.
8999 * configure.ac: Likewise.
9000 * configure.nat: Likewise. Enhance comments.
9001 * configure: Regenerate.
9003 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9005 * procfs.c (procfs_create_inferior): Change prototype to match
9008 2017-05-13 Eli Zaretskii <eliz@gnu.org>
9010 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
9011 C++ compiler warning.
9013 2017-05-12 Tom Tromey <tom@tromey.com>
9016 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
9017 recurse, just call value_struct_elt directly.
9019 2017-05-12 Tom Tromey <tom@tromey.com>
9021 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
9022 OP_RUST_ARRAY>: Fix.
9024 2017-05-12 Tom Tromey <tom@tromey.com>
9026 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
9028 2017-05-09 Yao Qi <yao.qi@linaro.org>
9030 * regcache.c: Include <forward_list>.
9031 (struct regcache_list): Remove.
9032 (current_regcache): Update.
9033 (get_thread_arch_aspace_regcache): Update for std::forward_list.
9034 (regcache_thread_ptid_changed): Likewise.
9035 (registers_changed_ptid): Likewise.
9036 (current_regcache_size): Likewise.
9038 2017-05-09 Yao Qi <yao.qi@linaro.org>
9040 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
9041 (current_regcache_size): New function.
9042 (current_regcache_test): New function.
9043 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9045 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9047 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9048 (print_gp_register_row): Use get_frame_register_value.
9050 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9052 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9053 (mips_supply_fpregset): Likewise.
9054 (mips64_supply_gregset): Likewise.
9056 2017-05-08 Alan Hayward <alan.hayward@arm.com>
9058 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9059 regcache->raw_supply_zeroed.
9061 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9063 * configure.nat: Rearrange 'case' statements to match
9066 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9068 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9069 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9070 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9071 "@nat_extra_makefile_frag@".
9072 (Makefile): Remove dependency on "@frags@".
9073 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9074 (data-directory/Makefile): Likewise.
9075 * config/aarch64/linux.mh: Deleted; moved contents to
9076 "gdb/configure.nat".
9077 * config/alpha/alpha-linux.mh: Likewise.
9078 * config/alpha/nbsd.mh: Likewise.
9079 * config/arm/linux.mh: Likewise.
9080 * config/arm/nbsdelf.mh: Likewise.
9081 * config/i386/cygwin.mh: Likewise.
9082 * config/i386/cygwin64.mh: Likewise.
9083 * config/i386/darwin.mh: Likewise.
9084 * config/i386/fbsd.mh: Likewise.
9085 * config/i386/fbsd64.mh: Likewise.
9086 * config/i386/go32.mh: Likewise.
9087 * config/i386/i386gnu.mh: Likewise.
9088 * config/i386/i386sol2.mh: Likewise.
9089 * config/i386/linux.mh: Likewise.
9090 * config/i386/linux64.mh: Likewise.
9091 * config/i386/mingw.mh: Likewise.
9092 * config/i386/mingw64.mh: Likewise.
9093 * config/i386/nbsd64.mh: Likewise.
9094 * config/i386/nbsdelf.mh: Likewise.
9095 * config/i386/nto.mh: Likewise.
9096 * config/i386/obsd.mh: Likewise.
9097 * config/i386/obsd64.mh: Likewise.
9098 * config/i386/sol2-64.mh: Likewise.
9099 * config/ia64/linux.mh: Likewise.
9100 * config/m32r/linux.mh: Likewise.
9101 * config/m68k/linux.mh: Likewise.
9102 * config/m68k/nbsdelf.mh: Likewise.
9103 * config/m68k/obsd.mh: Likewise.
9104 * config/m88k/obsd.mh: Likewise.
9105 * config/mips/fbsd.mh: Likewise.
9106 * config/mips/linux.mh: Likewise.
9107 * config/mips/nbsd.mh: Likewise.
9108 * config/mips/obsd64.mh: Likewise.
9109 * config/pa/linux.mh: Likewise.
9110 * config/pa/nbsd.mh: Likewise.
9111 * config/pa/obsd.mh: Likewise.
9112 * config/powerpc/aix.mh: Likewise.
9113 * config/powerpc/fbsd.mh: Likewise.
9114 * config/powerpc/linux.mh: Likewise.
9115 * config/powerpc/nbsd.mh: Likewise.
9116 * config/powerpc/obsd.mh: Likewise.
9117 * config/powerpc/ppc64-linux.mh: Likewise.
9118 * config/powerpc/spu-linux.mh: Likewise.
9119 * config/s390/linux.mh: Likewise.
9120 * config/sh/nbsd.mh: Likewise.
9121 * config/sparc/fbsd.mh: Likewise.
9122 * config/sparc/linux.mh: Likewise.
9123 * config/sparc/linux64.mh: Likewise.
9124 * config/sparc/nbsd64.mh: Likewise.
9125 * config/sparc/nbsdelf.mh: Likewise.
9126 * config/sparc/obsd64.mh: Likewise.
9127 * config/sparc/sol2.mh: Likewise.
9128 * config/tilegx/linux.mh: Likewise.
9129 * config/vax/nbsdelf.mh: Likewise.
9130 * config/vax/obsd.mh: Likewise.
9131 * config/xtensa/linux.mh: Likewise.
9132 * config/i386/i386gnu.mn: New file, with excerpts from
9133 "config/i386/i386gnu.mh".
9134 * configure: Regenerate.
9135 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9136 *.mh files under "gdb/config".
9137 * configure.nat: New file, with contents from the
9138 "gdb/config/*/*.mh" files.
9140 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9142 * btrace.c (btrace_clear): Free insn vector.
9144 2017-05-05 Pedro Alves <palves@redhat.com>
9146 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9147 * configure: Regenerate.
9149 2017-05-04 Pedro Alves <palves@redhat.com>
9151 * Makefile.in (SFILES): Add progspace-and-thread.c.
9152 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9153 (COMMON_OBS): Add progspace-and-thread.o.
9154 * breakpoint.c: Include "progspace-and-thread.h".
9155 (update_inserted_breakpoint_locations)
9156 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9157 Use scoped_restore_current_pspace_and_thread.
9158 (create_std_terminate_master_breakpoint): Use
9159 scoped_restore_current_program_space.
9160 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9161 (print_breakpoint_location): Use
9162 scoped_restore_current_program_space.
9163 (bp_loc_is_permanent): Use
9164 scoped_restore_current_pspace_and_thread.
9165 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9166 (download_tracepoint_locations): Use
9167 scoped_restore_current_pspace_and_thread.
9168 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9169 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9170 (enum step_over_calls_kind): Moved from inferior.h.
9171 (class scoped_restore_current_thread): New class.
9172 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9174 (scoped_restore_current_thread): New class.
9175 * infcmd.c: Include "common/gdb_optional.h".
9176 (continue_1, proceed_after_attach): Use
9177 scoped_restore_current_thread.
9178 (notice_new_inferior): Use scoped_restore_current_thread.
9179 * inferior.c: Include "progspace-and-thread.h".
9180 (restore_inferior, save_current_inferior): Delete.
9181 (add_inferior_command, clone_inferior_command): Use
9182 scoped_restore_current_pspace_and_thread.
9183 * inferior.h (scoped_restore_current_inferior): New class.
9184 * infrun.c: Include "progspace-and-thread.h" and
9185 "common/gdb_optional.h".
9186 (follow_fork_inferior): Use
9187 scoped_restore_current_pspace_and_thread.
9188 (scoped_restore_exited_inferior): New class.
9189 (handle_vfork_child_exec_or_exit): Use
9190 scoped_restore_exited_inferior,
9191 scoped_restore_current_pspace_and_thread,
9192 scoped_restore_current_thread and scoped_restore.
9193 (fetch_inferior_event): Use scoped_restore_current_thread.
9194 * linespec.c (decode_line_full, decode_line_1): Use
9195 scoped_restore_current_program_space.
9196 * mi/mi-main.c: Include "progspace-and-thread.h".
9197 (exec_continue): Use scoped_restore_current_thread.
9198 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9199 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9200 * proc-service.c (ps_pglobal_lookup): Use
9201 scoped_restore_current_program_space.
9202 * progspace-and-thread.c: New file.
9203 * progspace-and-thread.h: New file.
9204 * progspace.c (release_program_space, clone_program_space): Use
9205 scoped_restore_current_program_space.
9206 (restore_program_space, save_current_program_space)
9207 (save_current_space_and_thread): Delete.
9208 (switch_to_program_space_and_thread): Moved to
9209 progspace-and-thread.c.
9210 * progspace.h (save_current_program_space)
9211 (save_current_space_and_thread): Delete declarations.
9212 (scoped_restore_current_program_space): New class.
9213 * remote.c (remote_btrace_maybe_reopen): Use
9214 scoped_restore_current_thread.
9215 * symtab.c: Include "progspace-and-thread.h".
9216 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9217 * thread.c (print_thread_info_1): Use
9218 scoped_restore_current_thread.
9219 (struct current_thread_cleanup): Delete.
9220 (do_restore_current_thread_cleanup)
9221 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9222 (scoped_restore_current_thread::~scoped_restore_current_thread):
9224 (make_cleanup_restore_current_thread): Rename/convert to ...
9225 (scoped_restore_current_thread::scoped_restore_current_thread):
9227 (thread_apply_all_command): Use scoped_restore_current_thread.
9228 (thread_apply_command): Use scoped_restore_current_thread.
9229 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9230 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9232 2017-05-04 Pedro Alves <palves@redhat.com>
9234 * thread.c (make_cleanup_restore_current_thread): Move
9235 find_thread_ptid call before the is_stopped call. Assert that the
9236 thread is found. Replace is_stopped call by checking the thread's
9237 state directly. Remove unnecessary NULL-thread check.
9239 2017-05-04 Pedro Alves <palves@redhat.com>
9241 * corelow.c (thread_section_name): New class.
9242 (get_core_register_section, get_core_siginfo): Use it.
9244 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9246 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9247 (get_core_register_section): Remove xfree of NULL pointer.
9249 2017-05-03 Alan Hayward <alan.hayward@arm.com>
9251 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9252 * regcache.c (regcache::raw_supply_zeroed): New function.
9253 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9255 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9257 * gdbarch.sh: Remove commented out definition of
9259 * gdbarch.h: Re-generate.
9261 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9263 * configure: Regenerate.
9265 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9267 * solib-target.c (solib_target_relocate_section_addresses):
9268 Remove num_section_bases, num_bases, segment_bases variables.
9270 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9272 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9274 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9276 * solib-target.c: Include <vector>
9277 (struct lm_info_target) <~lm_info_target>: Remove.
9278 <segment_bases, section_bases>: Change type to
9279 std::vector<CORE_ADDR>.
9280 (library_list_start_segment, library_list_start_section,
9281 library_list_end_library,
9282 solib_target_relocate_section_addresses): Adjust.
9284 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9286 * gdbarch.sh (software_single_step): Change return type to
9287 std::vector<CORE_ADDR>.
9288 * gdbarch.c, gdbarch.h: Re-generate.
9289 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9291 (arm_deal_with_atomic_sequence_raw): Adjust.
9292 (thumb_get_next_pcs_raw): Adjust.
9293 (arm_get_next_pcs_raw): Adjust.
9294 (arm_get_next_pcs): Adjust.
9295 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9296 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9297 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9298 (alpha_software_single_step): Adjust.
9299 * alpha-tdep.h (alpha_software_single_step): Adjust.
9300 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9301 * arm-tdep.c (arm_software_single_step): Adjust.
9302 (arm_breakpoint_kind_from_current_state): Adjust.
9303 * arm-tdep.h (arm_software_single_step): Adjust.
9304 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9305 * cris-tdep.c (cris_software_single_step): Adjust.
9306 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9307 (micromips_deal_with_atomic_sequence): Adjust.
9308 (deal_with_atomic_sequence): Adjust.
9309 (mips_software_single_step): Adjust.
9310 * mips-tdep.h (mips_software_single_step): Adjust.
9311 * moxie-tdep.c (moxie_software_single_step): Adjust.
9312 * nios2-tdep.c (nios2_software_single_step): Adjust.
9313 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9314 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9315 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9316 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9317 * sparc-tdep.c (sparc_software_single_step): Adjust.
9318 * spu-tdep.c (spu_software_single_step): Adjust.
9319 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9321 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9323 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9324 * gdbarch.h: Re-generate.
9326 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9328 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9329 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9330 * python/py-instruction.c, python/py-instruction.h: New file.
9331 * python/py-record.c: Add py-instruction.h include.
9332 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9333 gdb.RecordInstruction.
9334 * python/python-internal.h: Add gdbpy_initialize_instruction
9336 * python/python.c (do_start_initialization): Add
9337 gdbpy_initialize_instruction.
9339 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9341 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9343 (btrace_func_from_recpy_func): New function.
9344 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9345 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9346 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9347 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9348 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9349 Also, use new helper functions.
9350 (btpy_list_item): Use new helper functions.
9351 (recpy_bt_function_call_history): Use new type name.
9352 (btpy_call_getset): Remove.
9353 (gdbpy_initialize_btrace): Remove code to initialize
9354 gdb.BtraceFunctionCall.
9355 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9356 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9357 recpy_bt_func_prev, recpy_bt_func_next): New export.
9358 * python/py-record.c (recpy_func_type): New static object.
9359 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9360 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9361 recpy_func_next): New function.
9362 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9363 (recpy_func_getset): New static object.
9364 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9365 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9367 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9369 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9370 (btpy_object, btpy_insn_type, btpy_new): Remove.
9371 (btpy_list_object): Use gdb.RecordInstruction type instead of
9372 gdb.BtraceInstruction type.
9373 (btrace_insn_from_recpy_insn): New function.
9374 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9376 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9377 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9378 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9379 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9380 instead of btpy_object.
9381 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9382 btpy_insn_data, btpy_insn_decode): Rename to ...
9383 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9384 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9385 recpy_bt_insn_decode): This. Also, use new helper functions.
9386 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9388 (btpy_insn_getset): Remove.
9389 (gdbpy_initialize_btrace): Remove code to initialize
9390 gdb.BtraceInstruction. Use recpy_element_object.
9391 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9392 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9393 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9394 * python/py-record.c (recpy_insn_type): New static object.
9395 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9396 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9397 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9399 (recpy_insn_getset): New static object.
9400 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9401 * python/py-record.h (recpy_element_object): New typedef.
9402 (recpy_insn_type, recpy_insn_new): New export.
9404 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9406 * py-record-btrace.c (btpy_insn_new): Removed.
9407 (btpy_insn_or_gap_new): New function.
9408 (btpy_insn_error): Removed.
9409 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9410 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9411 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9412 btpy_insn_or_gap_new instead of btpy_insn_new.
9413 (btpy_insn_getset): Remove btpy_insn_error.
9414 * py-record.c (recpy_gap_type): New static object.
9415 (recpy_gap_object): New typedef.
9416 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9417 recpy_gap_reason_string): New function.
9418 (recpy_gap_getset): New static object.
9419 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9420 * py-record.h (recpy_gap_new): New export.
9422 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9424 * python/py-record.c (recpy_ptid): Remove.
9425 (recpy_record_getset): Remove recpy_ptid.
9427 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9429 * btrace.c (btrace_fetch): Set inferior_ptid.
9430 * python/py-record-btrace.c: Add "py-record.h" include.
9431 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9432 recpy_bt_end, recpy_bt_instruction_history,
9433 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9434 in gdb.Record object instead of current ptid.
9435 * python/py-record.c: Include new "py-record.h" file.
9436 (recpy_record_object): Moved to py-record.h.
9437 * python/py-record.h: New file.
9439 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9441 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9442 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9445 2017-05-01 Joel Brobecker <brobecker@adacore.com>
9447 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9448 the past maintainers section.
9450 2017-04-28 Yao Qi <yao.qi@linaro.org>
9452 * infcmd.c (get_return_value): Use regcache ctor, and remove
9455 2017-04-28 Yao Qi <yao.qi@linaro.org>
9456 Pedro Alves <palves@redhat.com>
9458 * regcache.c (regcache::regcache): New tag dispatch ctor.
9459 (do_cooked_read): Moved above.
9460 (regcache_dup): Use the tag dispatch ctor..
9461 * regcache.h (regcache): Declare ctor, delete copy ctor and
9462 assignment operator, remove friend regcache_dup.
9464 2017-04-28 Yao Qi <yao.qi@linaro.org>
9466 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9467 call method save instead of regcache_cpy.
9468 * regcache.h (struct regcache): Make regcache_dup a friend.
9470 2017-04-28 Yao Qi <yao.qi@linaro.org>
9472 * regcache.c (struct regcache): Move to regcache.h
9473 (regcache::arch): New method.
9474 (regcache_get_ptid): Update.
9475 (get_regcache_arch): Call arch method.
9476 (get_regcache_aspace): Call method aspace.
9477 (register_buffer): Change it to method.
9478 (regcache_save): Change it to regcache::save.
9479 (regcache_restore): Likewise.
9480 (regcache_cpy_no_passthrough): Remove the declaration.
9481 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9482 (regcache_cpy_no_passthrough): Change it to method
9484 (regcache_register_status): Change it to method
9485 get_register_status.
9486 (regcache_invalidate): Change it to method invalidate.
9487 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9488 (regcache_raw_update): Change it to method raw_update.
9489 (regcache_raw_read): Likewise.
9490 (regcache_raw_read_signed): Likewise.
9491 (regcache_raw_read_unsigned): Likewise.
9492 (regcache_raw_write_signed): Likewise.
9493 (regcache_raw_write_unsigned): Likewise.
9494 (regcache_cooked_read): Likewise.
9495 (regcache_cooked_read_value): Likewise.
9496 (regcache_cooked_read_signed): Likewise.
9497 (regcache_cooked_read_unsigned): Likewise.
9498 (regcache_cooked_write_signed): Likewise.
9499 (regcache_cooked_write_unsigned): Likewise.
9500 (regcache_raw_set_cached_value): Likewise.
9501 (regcache_raw_write): Likewise.
9502 (regcache_cooked_write): Likewise.
9503 (regcache_xfer_part): Likewise.
9504 (regcache_raw_read_part): Likewise.
9505 (regcache_raw_write_part): Likewise.
9506 (regcache_cooked_read_part): Likewise.
9507 (regcache_cooked_write_part): Likewise.
9508 (regcache_raw_supply): Likewise.
9509 (regcache_raw_collect): Likewise.
9510 (regcache_transfer_regset): Likewise.
9511 (regcache_supply_regset): Likewise.
9512 (regcache_collect_regset): Likewise.
9513 (regcache_debug_print_register): Likewise.
9514 (enum regcache_dump_what): Move it to regcache.h.
9515 (regcache_dump): Change it to method dump.
9516 * regcache.h (enum regcache_dump_what): New.
9517 (class regcache): New.
9518 * target.c (target_fetch_registers): Call method
9519 debug_print_register.
9520 (target_store_registers): Likewise.
9522 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9524 * windows-nat.c (struct lm_info_windows): Initialize field.
9525 (windows_make_so): Allocate lm_info_windows with new.
9526 (windows_free_so): Free lm_info_windows with delete.
9528 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9530 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9531 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9533 (darwin_free_so): Free lm_info_darwin with delete.
9535 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9537 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9538 <l_addr_p>: Change type to bool.
9539 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9540 (svr4_free_so): Free lm_info_svr4 with delete.
9541 (svr4_copy_library_list): Replace memcpy with call to copy
9543 (library_list_start_library, svr4_default_sos): Allocate
9544 lm_info_svr4 with new.
9546 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9548 * solib-target.c (struct lm_info_target): Add destructor,
9550 <name>: Change type to std::string.
9551 (library_list_start_library): Allocate lm_info_target with new.
9552 (solib_target_free_library_list): Free lm_info_target with
9554 (solib_target_current_sos): Adapt to std::string.
9555 (solib_target_free_so): Free lm_info_target with delete.
9557 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9559 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9561 (frv_current_sos): Allocate lm_info_frv with new.
9562 (frv_relocate_main_executable): Free lm_info_frv with delete,
9564 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9566 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9568 * solib-frv.c (struct lm_info_frv): Fix indentation.
9570 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9572 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9574 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9575 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9576 and allocate with new.
9577 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9579 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9581 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9582 <filename, member_name>: Change type to std::string.
9583 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9584 (library_list_start_library): Allocate lm_info_aix with new.
9585 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9586 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9587 with copy constructor.
9589 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9591 * solist.h (struct lm_info): Remove.
9592 (struct lm_info_base): New class.
9593 (struct so_list) <lm_info>: Change type to lm_info_base *.
9594 * nto-tdep.c (struct lm_info): Remove.
9596 * solib-aix.c (struct lm_info): Rename to ...
9597 (struct lm_info_aix): ... this. Extend lm_info_base.
9598 (lm_info_p): Rename to ...
9599 (lm_info_aix_p): ... this, and adjust.
9600 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9601 solib_aix_parse_libraries, library_list_start_library,
9602 solib_aix_free_library_list, solib_aix_parse_libraries,
9603 solib_aix_get_library_list,
9604 solib_aix_relocate_section_addresses, solib_aix_free_so,
9605 solib_aix_get_section_offsets,
9606 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9608 (struct solib_aix_inferior_data) <library_list>: Adjust.
9609 * solib-darwin.c (struct lm_info): Rename to ...
9610 (struct lm_info_darwin): ... this. Extend lm_info_base.
9611 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9612 * solib-dsbt.c (struct lm_info): Rename to ...
9613 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9614 (struct dsbt_info) <main_executable_lm_info): Adjust.
9615 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9616 dsbt_relocate_section_addresses): Adjust.
9617 * solib-frv.c (struct lm_info): Rename to ...
9618 (struct lm_info_frv): ... this. Extend lm_info_base.
9619 (main_executable_lm_info): Adjust.
9620 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9621 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9622 find_canonical_descriptor_in_load_object,
9623 frv_fdpic_find_canonical_descriptor): Adjust.
9624 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9626 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9627 svr4_clear_so, svr4_copy_library_list,
9628 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9629 svr4_current_sos, svr4_fetch_objfile_link_map,
9630 solist_update_incremental): Adjust.
9631 * solib-svr4.h (struct lm_info_svr4): Move here from
9633 * solib-target.c (struct lm_info): Rename to ...
9634 (struct lm_info_target): ... this. Extend lm_info_base.
9635 (lm_info_p): Rename to ...
9636 (lm_info_target_p): ... this.
9637 (solib_target_parse_libraries, library_list_start_segment,
9638 library_list_start_section, library_list_start_library,
9639 library_list_end_library, solib_target_free_library_list,
9640 solib_target_current_sos, solib_target_free_so,
9641 solib_target_relocate_section_addresses): Adjust.
9642 * windows-nat.c (struct lm_info): Rename to ...
9643 (struct lm_info_windows): ... this. Extend lm_info_base.
9644 (windows_make_so, handle_load_dll, handle_unload_dll,
9645 windows_xfer_shared_libraries): Adjust.
9647 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9649 * solib-darwin.c (struct darwin_so_list): Remove.
9650 (darwin_current_sos): Allocate an so_list object instead of a
9651 darwin_so_list, separately allocate an lm_info object.
9652 (darwin_free_so): Free lm_info.
9654 2017-04-28 John Baldwin <jhb@FreeBSD.org>
9656 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9657 with fprintf_filtered.
9659 2017-04-28 Yao Qi <yao.qi@linaro.org>
9661 * regcache.c (regcache::regcache): New function.
9662 (regcache::~regcache): New function.
9663 (regcache_xmalloc_1): Remove.
9664 (regcache_xmalloc): Call new regcache.
9665 (regcache_xfree): Call delete regcache.
9666 (get_thread_arch_aspace_regcache): Call new regcache.
9668 2017-04-28 Yao Qi <yao.qi@linaro.org>
9670 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9671 lwp instead of ptid_get_lwp.
9673 2017-04-28 Yao Qi <yao.qi@linaro.org>
9675 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9676 lwp_info instead of getting from inferior_ptid.
9678 2017-04-27 Keith Seitz <keiths@redhat.com>
9680 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9681 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9682 (CV_CONVERSION_BADNESS): Define.
9683 (rank_one_type): Remove overly restrictive rvalue reference
9685 Add cv-qualifier checks and subranks for type equality.
9686 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9687 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9688 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9690 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9692 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9693 count when creating the object.
9695 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9696 Ulrich Weigand <uweigand@de.ibm.com>
9698 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9699 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9701 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9702 (process_xcoff_symbol): Likewise.
9703 (scan_xcoff_symtab): Likewise.
9705 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9707 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9708 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9709 (ia64_access_reg): Use get_frame_register_unsigned.
9710 (ia64_access_rse_reg): Likewise.
9711 (ia64_libunwind_frame_prev_register): Likewise.
9713 2017-04-26 Jiong Wang <jiong.wang@arm.com>
9715 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9716 * gdbarch.c: Regenerated.
9717 * gdbarch.h: Regenerated.
9718 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9719 visibility external.
9720 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9721 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9722 (enum cfa_how_kind): Move to ...
9723 (struct dwarf2_frame_state_reg_info): Likewise.
9724 (struct dwarf2_frame_state): Likewise.
9725 * dwarf2-frame.h: ... here.
9726 (dwarf2_frame_state_alloc_regs): New declaration.
9727 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9728 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9730 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9732 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9733 regcache_raw_read_unsigned.
9734 (xtensa_pseudo_register_write): Likewise.
9736 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9738 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9739 (nds32_pseudo_register_write): Likewise.
9741 2017-04-25 Yao Qi <yao.qi@linaro.org>
9743 * regcache.c (struct regcache) <readonly_p>: Change its type
9745 (regcache_xmalloc_1): Update parameter type and callers update.
9747 2017-04-25 Yao Qi <yao.qi@linaro.org>
9749 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9750 set_gdbarch_wchar_bit.
9751 * arm-tdep.c (arm_gdbarch_init): Likewise.
9753 2017-04-25 Pedro Alves <palves@redhat.com>
9755 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9756 (BothAreRelocatable, memcopy, memmove): Don't define.
9757 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9760 2017-04-25 Pedro Alves <palves@redhat.com>
9762 * common/common-defs.h: Include "common/poison.h".
9763 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9765 * common/poison.h: New file.
9766 * common/traits.h: Include <type_traits>.
9767 (Not, Or, Requires): New, moved from common/function-view.h.
9769 2017-04-25 Pedro Alves <palves@redhat.com>
9771 * breakpoint.h (struct breakpoint): In-class initialize all
9772 fields. Make boolean fields "bool".
9773 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9774 memset call and initializations no longer necessary.
9776 2017-04-25 Pedro Alves <palves@redhat.com>
9778 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9780 (pt_btrace_insn): New function.
9781 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9783 2017-04-25 Pedro Alves <palves@redhat.com>
9785 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9786 "base" field and inherit from "bp_location" instead. Add
9788 (allocate_location_exception): Use new non-default ctor.
9789 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9790 (init_bp_location): Convert to ...
9791 (bp_location::bp_location): ... this new ctor, and remove memset
9793 (base_breakpoint_allocate_location): Use the new non-default ctor.
9794 * breakpoint.h (bp_location): Now a class. Declare default and
9795 non-default ctors. In-class initialize all members.
9796 (init_bp_location): Remove declaration.
9798 2017-04-25 Pedro Alves <palves@redhat.com>
9800 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9801 assignment operator.
9803 2017-04-24 Yao Qi <yao.qi@linaro.org>
9805 * doublest.c (convert_doublest_to_floatformat): Call
9806 floatformat_totalsize_bytes.
9808 2017-04-22 Tom Tromey <tom@tromey.com>
9810 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9812 * stack.c (print_frame): Use ui_out_emit_list.
9813 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9815 * mi/mi-main.c (print_one_inferior)
9816 (mi_cmd_data_list_register_names)
9817 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9818 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9820 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9821 (mi_output_solib_attribs): Use ui_out_emit_list,
9823 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9824 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9825 (mi_cmd_stack_list_args, list_args_or_locals): Use
9827 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9828 * breakpoint.c (print_solib_event, output_thread_groups): Use
9831 2017-04-22 Tom Tromey <tom@tromey.com>
9833 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9834 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9835 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9837 2017-04-22 Tom Tromey <tom@tromey.com>
9839 * tracepoint.c (tvariables_info_1)
9840 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9842 2017-04-22 Tom Tromey <tom@tromey.com>
9844 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9845 annotate_arg_emitter.
9846 * breakpoint.c (print_mention_watchpoint)
9847 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9848 * annotate.h (struct annotate_arg_emitter): New.
9850 2017-04-22 Tom Tromey <tom@tromey.com>
9852 * record-btrace.c (record_btrace_insn_history)
9853 (record_btrace_insn_history_range, record_btrace_call_history)
9854 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9855 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9857 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9858 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9859 * skip.c (skip_info): Use ui_out_emit_tuple.
9860 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9861 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9862 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9863 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9864 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9866 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9867 (output_register, mi_cmd_data_read_memory)
9868 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9869 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9870 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9871 Use ui_out_emit_tuple.
9872 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9874 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9875 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9876 * linux-thread-db.c (info_auto_load_libthread_db): Use
9878 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9879 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9880 * disasm.c (do_mixed_source_and_assembly_deprecated)
9881 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9882 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9883 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9884 * breakpoint.c (print_one_breakpoint_location)
9885 (print_one_breakpoint): Use ui_out_emit_tuple.
9886 * auto-load.c (print_script, info_auto_load_cmd): Use
9888 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9890 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9892 * thread.c (print_thread_info_1): Remove dead code.
9894 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9896 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9898 * arm-tdep.c (selftests::arm_record_test): Likewise.
9900 2017-04-21 Yao Qi <yao.qi@linaro.org>
9902 * regcache.c (regcache_restore): Remove argument 2. Replace
9903 argument 3 with regcache. Get register status from
9904 src->register_status and get register contents from
9905 register_buffer (src, regnum).
9906 (regcache_cpy): Update.
9908 2017-04-19 Pedro Alves <palves@redhat.com>
9910 * gdbthread.h (thread): Add missing closing parenthesis in
9913 2017-04-19 Pedro Alves <palves@redhat.com>
9915 * common/refcounted-object.h: New file.
9916 * gdbthread.h: Include "common/refcounted-object.h".
9917 (thread_info): Inherit from refcounted_object and add comments.
9918 (thread_info::incref, thread_info::decref)
9919 (thread_info::m_refcount): Delete.
9920 (thread_info::deletable): Use the refcounted_object::refcount()
9922 * inferior.c (current_inferior_): Add comment.
9923 (set_current_inferior): Increment/decrement refcounts.
9924 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9925 not-deletable instead of comparing with the current inferior.
9926 (initialize_inferiors): Increment the initial inferior's refcount.
9927 * inferior.h (struct inferior): Forward declare.
9928 Include "common/refcounted-object.h".
9929 (current_inferior, set_current_inferior): Move declaration to
9930 before struct inferior's definition, and fix comment.
9931 (inferior): Inherit from refcounted_object. Add comments.
9932 * thread.c (switch_to_thread_no_regs): Reference the thread's
9933 inferior pointer directly instead of doing a ptid lookup.
9934 (switch_to_no_thread): New function.
9935 (switch_to_thread(thread_info *)): New function, factored out
9937 (switch_to_thread(ptid_t)): ... this.
9938 (restore_current_thread): Delete.
9939 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9940 fields, and add 'inf' field.
9941 (do_restore_current_thread_cleanup): Check whether old->inf is
9942 alive instead of looking up an inferior by ptid. Use
9943 switch_to_thread and switch_to_no_thread.
9944 (restore_current_thread_cleanup_dtor): Use old->inf directly
9945 instead of lookup up an inferior by id. Decref the inferior.
9946 Don't restore 'removable'.
9947 (make_cleanup_restore_current_thread): Same the inferior pointer
9948 in old, instead of the inferior number. Incref the inferior.
9949 Don't save/clear 'removable'.
9951 2017-04-19 Pedro Alves <palves@redhat.com>
9953 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9954 unittests/scoped_restore-selftests.c.
9955 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9956 * common/scoped_restore.h (scoped_restore_base): Make "class".
9957 (scoped_restore_base::release): New public method.
9958 (scoped_restore_base::scoped_restore_base): New protected ctor.
9959 (scoped_restore_base::m_saved_var): New protected field.
9960 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9961 scoped_restore_base base class instead of m_saved_var directly.
9962 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9963 (scoped_restore_tmpl::scoped_restore_tmpl(const
9964 scoped_restore_tmpl<T>&)): Likewise.
9965 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9967 (scoped_restore_tmpl::saved_var): New method.
9968 (scoped_restore_tmpl::m_saved_var): Delete.
9969 * inferior.h (inferior::detaching): Now a bool.
9970 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9972 * unittests/scoped_restore-selftests.c: New file.
9974 2017-04-19 Pedro Alves <palves@redhat.com>
9976 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9977 Re-sort in alphabetic order.
9979 2017-04-18 Pedro Alves <palves@redhat.com>
9981 * xml-support.c (obstack_xml_printf): Delete.
9982 * xml-support.h (obstack_xml_printf): Delete.
9984 2017-04-18 Pedro Alves <palves@redhat.com>
9986 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9987 vdebug, verror, body_text, start_element, end_element, name,
9988 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9989 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9990 is_xinclude>: Make private and add m_ prefix.
9991 (gdb_xml_parser::body_text): New method, based on ...
9992 (gdb_xml_body_text): ... this. Adjust.
9993 (gdb_xml_parser::vdebug): New method, based on ...
9994 (gdb_xml_debug): ... this. Adjust.
9995 (gdb_xml_parser::verror): New method, based on ...
9996 (gdb_xml_error): ... this. Adjust.
9997 (gdb_xml_parser::start_element): New method, based on ...
9998 (gdb_xml_start_element): ... this. Adjust.
9999 (gdb_xml_start_element_wrapper): Defer to
10000 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
10001 (gdb_xml_parser::end_element): New method, based on ...
10002 (gdb_xml_end_element_wrapper): ... this. Adjust.
10003 (gdb_xml_parser::~gdb_xml_parser): Adjust.
10004 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
10005 (gdb_xml_parser::use_dtd): New method, based on ...
10006 (gdb_xml_use_dtd): ... this. Adjust.
10007 (gdb_xml_parser::parse): New method, based on ...
10008 (gdb_xml_parse): ... this. Adjust.
10009 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
10010 (xinclude_start_include): Adjust to call the parser's name method.
10011 (xml_xinclude_default, xml_xinclude_start_doctype)
10012 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
10014 (xml_process_xincludes): Adjust to call parser methods.
10015 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
10018 2017-04-18 Pedro Alves <palves@redhat.com>
10020 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
10021 gdb::optional<std::string>.
10022 * xml-support.c: Include <string>.
10023 (scope_level::scope_level(scope_level &&))
10024 (scope_level::~scope_level): Delete.
10025 (scope_level::body): Now a std::string.
10026 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
10027 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
10029 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
10030 (xinclude_parsing_data::output): Now a std::string reference.
10031 (xinclude_start_include): Adjust.
10032 (xml_xinclude_default): Adjust.
10033 (xml_process_xincludes): Add 'output' parameter, and return bool.
10034 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
10036 * xml-tdesc.c: Include <unordered_map> and <string>.
10037 (tdesc_xml_cache): Delete.
10038 (tdesc_xml_cache_s): Delete.
10039 (xml_cache): Now an std::unordered_map.
10040 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
10041 (target_fetch_description_xml): Change return type to
10042 gdb::optional<std::string>, and adjust.
10043 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10044 (target_fetch_description_xml): Change return type to
10045 gdb::optional<std::string>.
10047 2017-04-18 Pedro Alves <palves@redhat.com>
10049 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10050 unittests/optional-selftests.c.
10051 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10052 * unittests/optional-selftests.c: New file.
10053 * unittests/optional/assignment/1.cc: New file.
10054 * unittests/optional/assignment/2.cc: New file.
10055 * unittests/optional/assignment/3.cc: New file.
10056 * unittests/optional/assignment/4.cc: New file.
10057 * unittests/optional/assignment/5.cc: New file.
10058 * unittests/optional/assignment/6.cc: New file.
10059 * unittests/optional/assignment/7.cc: New file.
10060 * unittests/optional/cons/copy.cc: New file.
10061 * unittests/optional/cons/default.cc: New file.
10062 * unittests/optional/cons/move.cc: New file.
10063 * unittests/optional/cons/value.cc: New file.
10064 * unittests/optional/in_place.cc: New file.
10065 * unittests/optional/observers/1.cc: New file.
10066 * unittests/optional/observers/2.cc: New file.
10068 2017-04-18 Pedro Alves <palves@redhat.com>
10070 * common/gdb_optional.h: Include common/traits.h.
10071 (in_place_t): New type.
10072 (in_place): New constexpr variable.
10073 (optional::optional): Remove member initialization of
10075 (optional::optional(in_place_t...)): New constructor.
10076 (optional::~optional): Use reset.
10077 (optional::optional(const optional&)): New.
10078 (optional::optional(const optional&&)): New.
10079 (optional::optional(T &)): New.
10080 (optional::optional(T &&)): New.
10081 (operator::operator=(const optional &)): New.
10082 (operator::operator=(optional &&)): New.
10083 (operator::operator= (const T &))
10084 (operator::operator= (T &&))
10085 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10086 (operator::reset): New.
10087 (operator::m_instantiated):: Add in-class initializer.
10088 * common/traits.h: Include <type_traits>.
10089 (struct And): New types.
10091 2017-04-18 Pedro Alves <palves@redhat.com>
10093 * xml-support.c: Include <vector>.
10094 (scope_level::scope_level(const gdb_xml_element *))
10095 (scope_level::scope_level(scope_level&&)): New.
10096 (scope_level::~scope_level): New.
10097 (scope_level_s): Delete.
10098 (gdb_xml_parser::scopes): Now a std::vector.
10099 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10101 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10102 scope cleanup code.
10103 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10104 of the scopes member. Use std::vector::emplace_back.
10106 2017-04-18 Pedro Alves <palves@redhat.com>
10108 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10110 (gdb_xml_end_element): Change type of first parameter.
10111 (gdb_xml_cleanup): Rename to ...
10112 (gdb_xml_parser::~gdb_xml_parser): ... this.
10113 (gdb_xml_create_parser_and_cleanup): Delete with ...
10114 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10116 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10117 using gdb_xml_create_parser_and_cleanup.
10118 (xinclude_parsing_data): Add ctor/dtor.
10119 (xml_xinclude_cleanup): Delete.
10120 (xml_process_xincludes): Create a local xinclude_parsing_data
10121 instead of heap-allocating one. Create a local gdb_xml_parser
10122 instead of heap-allocating one with
10123 gdb_xml_create_parser_and_cleanup.
10125 2017-04-18 John Baldwin <jhb@FreeBSD.org>
10128 * fbsd-nat.c (resume_one_thread_cb): Remove.
10129 (resume_all_threads_cb): Remove.
10130 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10131 iterate_over_threads.
10133 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10135 * NEWS: Create a new section for the next release branch.
10136 Rename the section of the current branch, now that it has
10139 2017-04-17 Joel Brobecker <brobecker@adacore.com>
10141 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10142 * version.in: Bump version to 8.0.50.DATE-git.
10144 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10147 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10148 independently of the host, and fix build breakage on Cygwin.
10150 2017-04-13 Pedro Alves <palves@redhat.com>
10152 * inferior.c (free_inferior): Convert to ...
10153 (inferior::~inferior): ... this dtor.
10154 (inferior::inferior): New ctor, factored out from ...
10155 (add_inferior_silent): ... here. Allocate the inferior with a new
10157 (delete_inferior): Call delete instead of free_inferior.
10158 * inferior.h (gdb_environ, continuation): Forward declare.
10159 (inferior): Now a class. Add in-class initialization to all
10160 members. Make boolean fields bool, except 'detaching'.
10161 (inferior::inferior): New explicit ctor.
10162 (inferior::~inferior): New.
10164 2017-04-13 Pedro Alves <palves@redhat.com>
10166 * inferior.c (init_inferior_list): Delete.
10167 * inferior.h (init_inferior_list): Delete.
10169 2017-04-13 Pedro Alves <palves@redhat.com>
10172 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10173 (top level): Call it twice, with different thread sets.
10175 2017-04-13 Pedro Alves <palves@redhat.com>
10177 * thread.c: Include <algorithm>.
10178 (thread_array_cleanup): Delete.
10179 (scoped_inc_dec_ref): New class.
10180 (live_threads_count): New function.
10181 (set_thread_refcount): Delete.
10182 (tp_array_compar_ascending): Now a bool.
10183 (tp_array_compar): Convert to a std::sort comparison function.
10184 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10185 and live_threads_count.
10187 2017-04-13 Pedro Alves <palves@redhat.com>
10189 * infrun.c (follow_fork_inferior): Also switch the current
10192 2017-04-13 Pedro Alves <palves@redhat.com>
10194 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10195 before calling create_internal_breakpoint.
10197 2017-04-13 Pedro Alves <palves@redhat.com>
10199 * fork-child.c (execv_argv): New class.
10200 (breakup_args): Refactored as ...
10201 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10202 Copy arguments to storage and replace separators with NULL
10203 terminators in place.
10204 (escape_bang_in_quoted_argument): Adjust to return bool.
10205 (execv_argv::execv_argv): New ctor.
10206 (execv_argv::init_for_shell): New method, factored out from
10207 fork_inferior. Don't strdup strings into the vector.
10208 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10209 Remove free_vector_argv call.
10211 2017-04-13 Yao Qi <yao.qi@linaro.org>
10213 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10216 2017-04-13 Yao Qi <yao.qi@linaro.org>
10218 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10219 * rx-tdep.c (rx_gdbarch_init): Likewise.
10221 2017-04-13 Pedro Alves <palves@redhat.com>
10223 * breakpoint.h (struct breakpoint): Reindent.
10225 2017-04-13 Pedro Alves <palves@redhat.com>
10227 * breakpoint.c (bp_location): Rename to ...
10228 (bp_locations): ... this. All references updated.
10229 (bp_location_count): Rename to ...
10230 (bp_locations_count): ... this. All references updated.
10231 (bp_location_placed_address_before_address_max): Rename to ...
10232 (bp_locations_placed_address_before_address_max): ... this. All
10233 references updated.
10234 (bp_location_shadow_len_after_address_max): Rename to ...
10235 (bp_locations_shadow_len_after_address_max): ... this. All
10236 references updated.
10237 (bp_location_compare_addrs): Rename to ...
10238 (bp_locations_compare_addrs): ... this. All references updated.
10239 (bp_location_compare):Rename to ...
10240 (bp_locations_compare): ... this. All references updated.
10241 (bp_location_target_extensions_update): Rename to ...
10242 (bp_locations_target_extensions_update): ... this. All references
10245 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10247 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10248 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10250 * common/gdb_termios.h: New file, with parts of "terminal.h".
10251 * inflow.c: Include "gdb_termios.h".
10252 * ser-unix.c: Include "gdb_termios.h".
10253 * terminal.h: Move terminal-related defines to
10254 "common/gdb_termios.h".
10256 2017-04-12 Tom Tromey <tom@tromey.com>
10258 * probe.c (parse_probes): Update.
10259 * location.h (delete_event_location): Don't declare.
10260 (event_location_deleter::operator()): Update.
10261 * location.c (event_location_deleter::operator()): Rename from
10262 delete_event_location.
10263 * linespec.h (linespec_result) <location>: Change type to
10265 * linespec.c (canonicalize_linespec, event_location_to_sals)
10266 (decode_objc): Update.
10267 (linespec_result): Don't call delete_event_location.
10268 * breakpoint.c (create_breakpoints_sal)
10269 (bkpt_probe_create_sals_from_location)
10270 (strace_marker_create_sals_from_location): Update.
10272 2017-04-12 Tom Tromey <tom@tromey.com>
10274 * linespec.h (struct linespec_result): Add constructor and
10276 (init_linespec_result, destroy_linespec_result)
10277 (make_cleanup_destroy_linespec_result): Don't declare.
10278 * linespec.c (init_linespec_result): Remove.
10279 (linespec_result::~linespec_result): Rename from
10280 destroy_linespec_result. Update.
10281 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10283 * breakpoint.c (create_breakpoint, break_range_command)
10284 (decode_location_default): Update.
10285 * ax-gdb.c (agent_command_1): Update.
10287 2017-04-12 Tom Tromey <tom@tromey.com>
10289 * remote.c (remote_download_tracepoint): Update.
10290 * python/py-breakpoint.c (bppy_get_location): Update.
10291 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10292 (gdbscm_breakpoint_location): Update.
10293 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10294 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10295 Change type to event_location_up.
10296 * breakpoint.c (create_overlay_event_breakpoint)
10297 (create_longjmp_master_breakpoint)
10298 (create_std_terminate_master_breakpoint)
10299 (create_exception_master_breakpoint)
10300 (breakpoint_event_location_empty_p, print_breakpoint_location)
10301 (print_one_breakpoint_location, create_thread_event_breakpoint)
10302 (init_breakpoint_sal, create_breakpoint)
10303 (print_recreate_ranged_breakpoint, break_range_command)
10304 (init_ada_exception_breakpoint, say_where): Update.
10305 (base_breakpoint_dtor): Don't call delete_event_location.
10306 (bkpt_print_recreate, tracepoint_print_recreate)
10307 (dprintf_print_recreate, update_static_tracepoint)
10308 (breakpoint_re_set_default): Update.
10310 2017-04-12 Tom Tromey <tom@tromey.com>
10312 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10313 type of "to_do". Update.
10314 (compute_stack_depth): Use std::vector.
10316 2017-04-12 Tom Tromey <tom@tromey.com>
10318 * printcmd.c (find_instruction_backward): Use std::vector.
10320 2017-04-12 Tom Tromey <tom@tromey.com>
10322 * symfile.c (objfilep): Remove typedef.
10323 (reread_symbols): Use a std::vector.
10325 2017-04-12 Tom Tromey <tom@tromey.com>
10327 * mi/mi-main.c (exec_direction_forward): Remove.
10328 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10329 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10331 * guile/guile.c (guile_repl_command, guile_command)
10332 (gdbscm_execute_gdb_command): Use scoped_restore.
10333 * go-exp.y (go_parse): Use scoped_restore.
10334 * d-exp.y (d_parse): Use scoped_restore.
10335 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10336 * c-exp.y (c_parse): Use scoped_restore.
10338 2017-04-12 Tom Tromey <tom@tromey.com>
10340 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10341 (mi_parse): Update return type.
10342 (mi_parse_free): Remove.
10343 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10344 (mi_parse::~mi_parse): Rename from mi_parse_free.
10345 (mi_parse_cleanup): Remove.
10346 (mi_parse): Return a unique_ptr. Use new.
10347 * mi/mi-main.c (mi_execute_command): Update.
10349 2017-04-12 Tom Tromey <tom@tromey.com>
10351 * location.c (explicit_location_lex_one): Return a
10352 unique_xmalloc_ptr.
10353 (string_to_explicit_location): Update. Remove cleanups.
10355 2017-04-12 Tom Tromey <tom@tromey.com>
10357 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10358 (compare_value_and_voffset): Change type. Update.
10359 (compute_vtable_size): Change type of "offset_vec".
10360 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10361 (gnuv3_get_typeid): Remove extraneous declaration.
10363 2017-04-12 Tom Tromey <tom@tromey.com>
10365 * charset.h (wchar_iterator): Fix comment.
10367 2017-04-12 Tom Tromey <tom@tromey.com>
10369 * charset.c (iconv_wrapper): New class.
10370 (cleanup_iconv): Remove.
10371 (convert_between_encodings): Use it.
10373 2017-04-12 Tom Tromey <tom@tromey.com>
10375 * symfile.h (increment_reading_symtab): Update type.
10376 * symfile.c (decrement_reading_symtab): Remove.
10377 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10378 * psymtab.c (psymtab_to_symtab): Update.
10379 * dwarf2read.c (dw2_instantiate_symtab): Update.
10381 2017-04-12 Tom Tromey <tom@tromey.com>
10383 * jit.c (struct jit_reader): Declare separately. Add constructor
10384 and destructor. Change type of "handle".
10385 (loaded_jit_reader): Define separately.
10386 (jit_reader_load): Update. New "new".
10387 (jit_reader_unload_command): Use "delete".
10388 * gdb-dlfcn.h (struct dlclose_deleter): New.
10389 (gdb_dlhandle_up): New typedef.
10390 (gdb_dlopen, gdb_dlsym): Update types.
10391 (gdb_dlclose): Remove.
10392 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10393 (gdb_dlsym): Change type of "handle".
10394 (make_cleanup_dlclose): Remove.
10395 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10396 * compile/compile-c-support.c (load_libcc): Update.
10398 2017-04-12 Tom Tromey <tom@tromey.com>
10400 * symtab.h (find_pcs_for_symtab_line): Change return type.
10401 * symtab.c (find_pcs_for_symtab_line): Change return type.
10402 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10403 type of "vec". Update.
10404 (ltpy_get_pcs_for_line): Update.
10405 * linespec.c (decode_digits_ordinary): Update.
10407 2017-04-12 Tom Tromey <tom@tromey.com>
10409 * tracepoint.c (actions_command): Update.
10410 * python/python.c (python_command, python_interactive_command):
10412 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10413 * guile/guile.c (guile_command): Update.
10414 * defs.h (read_command_lines, read_command_lines_1): Return
10416 (command_lines_deleter): New struct.
10417 (command_line_up): New typedef.
10418 * compile/compile.c (compile_code_command)
10419 (compile_print_command): Update.
10420 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10422 (make_cleanup_free_command_lines): Remove.
10423 * cli/cli-script.c (get_command_line, read_command_lines_1)
10424 (copy_command_lines): Return command_line_up.
10425 (while_command, if_command, read_command_lines, define_command)
10426 (document_command): Update.
10427 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10429 * breakpoint.h (breakpoint_set_commands): Change type of
10431 * breakpoint.c (breakpoint_set_commands): Change type of
10432 "commands". Update.
10433 (do_map_commands_command, update_dprintf_command_list)
10434 (create_tracepoint_from_upload): Update.
10436 2017-04-12 Tom Tromey <tom@tromey.com>
10438 * tracepoint.c (scope_info): Update.
10439 * spu-tdep.c (spu_catch_start): Update.
10440 * python/python.c (gdbpy_decode_line): Update.
10441 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10442 * python/py-breakpoint.c (bppy_init): Update.
10443 * probe.c (parse_probes): Update.
10444 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10445 * location.h (event_location_deleter): New struct.
10446 (event_location_up): New typedef.
10447 (new_linespec_location, new_address_location, new_probe_location)
10448 (new_explicit_location, copy_event_location)
10449 (string_to_event_location, string_to_event_location_basic)
10450 (string_to_explicit_location): Update return type.
10451 (make_cleanup_delete_event_location): Remove.
10452 * location.c (new_linespec_location, new_address_location)
10453 (new_probe_location, new_explicit_location, copy_event_location):
10454 Return event_location_up.
10455 (delete_event_location_cleanup)
10456 (make_cleanup_delete_event_location): Remove.
10457 (string_to_explicit_location, string_to_event_location_basic)
10458 (string_to_event_location): Return event_location_up.
10459 * linespec.c (canonicalize_linespec, event_location_to_sals)
10460 (decode_line_with_current_source)
10461 (decode_line_with_last_displayed, decode_objc): Update.
10462 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10463 * completer.c (location_completer): Update.
10464 * cli/cli-cmds.c (edit_command, list_command): Update.
10465 * breakpoint.c (create_overlay_event_breakpoint)
10466 (create_longjmp_master_breakpoint)
10467 (create_std_terminate_master_breakpoint)
10468 (create_exception_master_breakpoint)
10469 (create_thread_event_breakpoint): Update.
10470 (init_breakpoint_sal): Update. Remove some dead code.
10471 (create_breakpoint_sal): Change type of "location". Update.
10472 (create_breakpoints_sal, create_breakpoint, break_command_1)
10473 (dprintf_command, break_range_command, until_break_command)
10474 (init_ada_exception_breakpoint)
10475 (strace_marker_create_sals_from_location)
10476 (update_static_tracepoint, trace_command, ftrace_command)
10477 (strace_command, create_tracepoint_from_upload): Update.
10478 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10479 * ax-gdb.c (agent_command_1): Update.
10481 2017-04-12 Pedro Alves <palves@redhat.com>
10483 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10484 * configure.tgt: Handle i[34567]86-*-go32* and
10485 i[34567]86-*-msdosdjgpp*.
10486 * i386-tdep.c (i386_svr4_reg_to_regnum):
10488 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10490 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10491 * i386-go32-tdep.c: New file.
10492 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10495 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10497 * aix-thread.c (pd_status2str): Change return type to const char *.
10499 2017-04-12 Pedro Alves <palves@redhat.com>
10501 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10502 calls to set_gdbarch_gnu_triplet_regexp.
10504 2017-04-12 Pedro Alves <palves@redhat.com>
10507 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10509 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10510 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10511 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10512 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10513 * gdbarch.h, gdbarch.c: Regenerate.
10514 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10515 gdbarch_wchar_bit and gdbarch_wchar_signed.
10516 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10517 * arm-tdep.c (arm_gdbarch_init): Likewise.
10518 * avr-tdep.c (avr_gdbarch_init): Likewise.
10519 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10520 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10521 * i386-tdep.c (i386_go32_init_abi): Likewise.
10522 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10523 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10524 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10525 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10526 * sh-tdep.c (sh_gdbarch_init): Likewise.
10527 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10528 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10529 * windows-tdep.c (windows_init_abi): Likewise.
10530 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10532 2017-04-12 Pedro Alves <palves@redhat.com>
10535 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10536 cplus_primitive_type_char32_t>: New enum values.
10537 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10538 and cplus_primitive_type_char32_t.
10539 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10540 32, use the archtecture's built-in type for char16_t and char32_t,
10541 respectively. Otherwise, fallback to init_integer_type as before,
10542 but make the type unsigned, and issue a complaint.
10543 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10545 2017-04-12 Alan Hayward <alan.hayward@arm.com>
10547 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
10548 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10550 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10552 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10555 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10557 * common/common-utils.c (free_vector_argv): New function.
10558 * common/common-utils.h: Include <vector>.
10559 (free_vector_argv): New prototype.
10560 * darwin-nat.c (darwin_create_inferior): Rewrite function
10561 prototype in order to constify "exec_file" and accept a
10562 "std::string" for "allargs".
10563 * fork-child.c: Include <vector>.
10564 (breakup_args): Rewrite function, using C++.
10565 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10566 and accept "std::string" for "allargs". Update the code to
10567 calculate "argv" based on "allargs". Update calls to "exec_fun"
10569 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10570 order to constify "exec_file" and accept a "std::string" for
10572 * go32-nat.c (go32_create_inferior): Likewise.
10573 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10574 * infcmd.c (run_command_1): Constify "exec_file". Use
10575 "std::string" for inferior arguments.
10576 * inferior.h (fork_inferior): Update prototype.
10577 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10578 prototype in order to constify "exec_file" and accept a
10579 "std::string" for "allargs".
10580 * nto-procfs.c (procfs_create_inferior): Likewise.
10581 * procfs.c (procfs_create_inferior): Likewise.
10582 * remote-sim.c (gdbsim_create_inferior): Likewise.
10583 * remote.c (extended_remote_run): Update code to accept
10584 "std::string" as argument.
10585 (extended_remote_create_inferior): Rewrite function prototype in
10586 order to constify "exec_file" and accept a "std::string" for
10588 * rs6000-nat.c (super_create_inferior): Likewise.
10589 (rs6000_create_inferior): Likewise.
10590 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10591 * windows-nat.c (windows_create_inferior): Likewise.
10593 2017-04-11 Pedro Alves <palves@redhat.com>
10595 * thread.c: Fix whitespace throughout.
10597 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10599 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10601 2017-04-11 Alan Hayward <alan.hayward@arm.com>
10603 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10605 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10608 * osdata.c (info_osdata): Check if 'type' is an empty string
10611 2017-04-10 Pedro Alves <palves@redhat.com>
10613 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10614 (ptid_to_global_thread_id, in_thread_list)
10615 (do_captured_list_thread_ids, set_resumed, set_running)
10616 (set_executing, set_stop_requested, finish_thread_state)
10617 (validate_registers_access, can_access_registers_ptid)
10618 (print_thread_info_1, switch_to_thread)
10619 (do_restore_current_thread_cleanup)
10620 (make_cleanup_restore_current_thread, thread_command)
10621 (thread_name_command): Use operator== instead of ptid_equal.
10623 2017-04-10 Pedro Alves <palves@redhat.com>
10625 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10626 (current_thread_cleanup_chain): Delete.
10627 (restore_current_thread_cleanup_dtor)
10628 (make_cleanup_restore_current_thread): Remove references to
10629 current_thread_cleanup_chain.
10631 2017-04-10 Alan Hayward <alan.hayward@arm.com>
10633 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10636 2017-04-10 Yao Qi <yao.qi@linaro.org>
10639 * gdbthread.h (thread_info::deletable): New method.
10640 (thread_info::incref): New method.
10641 (thread_info::decref): New method.
10642 (thread_info::refcount): Move it to private.
10643 * infrun.c (save_stop_context): Call inc_refcount.
10644 (release_stop_context_cleanup): Likewise.
10645 * thread.c (set_thread_exited): New function.
10646 (init_thread_list): Delete "tp" only it is deletable, otherwise
10647 call set_thread_exited.
10648 (delete_thread_1): Call set_thread_exited.
10649 (current_thread_cleanup) <inferior_pid>: Remove.
10650 <thread>: New field.
10651 (restore_current_thread_ptid_changed): Removed.
10652 (do_restore_current_thread_cleanup): Adjust.
10653 (restore_current_thread_cleanup_dtor): Don't call
10655 (set_thread_refcount): Use dec_refcount.
10656 (make_cleanup_restore_current_thread): Adjust.
10657 (thread_apply_all_command): Call inc_refcount.
10658 (_initialize_thread): Don't call
10659 observer_attach_thread_ptid_changed.
10661 2017-04-10 Yao Qi <yao.qi@linaro.org>
10663 * thread.c (delete_thread_1): Hoist code on marking thread as
10666 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10668 * windows-nat.c (windows_detach): Initialize ptid with
10671 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10673 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10675 2017-04-07 Alan Hayward <alan.hayward@arm.com>
10677 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10678 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10679 (bfin_pseudo_register_write): Likewise
10681 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10683 * common/ptid.h (struct ptid): Change to...
10684 (class ptid_t): ... this.
10685 <ptid_t>: New constructors.
10686 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10687 matches>: New methods.
10688 <make_null, make_minus_one>: New static methods.
10689 <pid>: Rename to...
10691 <lwp>: Rename to...
10693 <tid>: Rename to...
10695 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10696 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10697 as references, move comment to class ptid_t.
10698 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10699 ptid_t static methods.
10700 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10701 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10702 Take ptid arguments as references, implement using ptid_t methods.
10703 * unittests/ptid-selftests.c: New file.
10704 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10705 unittests/ptid-selftests.c.
10706 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10708 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10710 * python/python.c (python_run_simple_file): Cast mode literal to
10711 non-const char pointer as expected by PyFile_FromString.
10713 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10715 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10716 minus_one_ptid and null_ptid.
10718 2017-04-05 Pedro Alves <palves@redhat.com>
10720 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10721 * configure: Regenerate.
10723 2017-04-05 Pedro Alves <palves@redhat.com>
10725 * ada-exp.y (yyerror): Constify.
10726 * ada-lang.c (bound_name, get_selections)
10727 (ada_variant_discrim_type)
10728 (ada_variant_discrim_name, ada_value_struct_elt)
10729 (ada_lookup_struct_elt_type, is_unchecked_variant)
10730 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10731 (catch_ada_exception_command_split)
10732 (catch_ada_assert_command_split, catch_assert_command)
10733 (ada_op_name): Constify.
10734 * ada-lang.h (ada_yyerror, get_selections)
10735 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10736 * arc-tdep.c (arc_print_frame_cache): Constify.
10737 * arm-tdep.c (arm_skip_stub): Constify.
10738 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10739 (gen_aggregate_elt_ref): Constify.
10740 * bcache.c (print_bcache_statistics): Constify.
10741 * bcache.h (print_bcache_statistics): Constify.
10742 * break-catch-throw.c (catch_exception_command_1):
10743 * breakpoint.c (struct ep_type_description::description):
10745 (add_solib_catchpoint): Constify.
10746 (catch_fork_command_1): Add cast.
10747 (add_catch_command): Constify.
10748 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10750 * bsd-uthread.c (bsd_uthread_state): Constify.
10751 * buildsym.c (patch_subfile_names): Constify.
10752 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10754 * c-exp.y (yyerror): Constify.
10755 (token::oper): Constify.
10756 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10757 * c-varobj.c (cplus_describe_child): Constify.
10758 * charset.c (find_charset_names): Add cast.
10759 (find_charset_names): Constify array and add const_cast.
10760 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10761 (edit_command): Constify.
10762 * cli/cli-decode.c (lookup_cmd): Constify.
10763 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10765 (struct dump_context): Constify.
10766 (add_dump_command, restore_command): Constify.
10767 * cli/cli-script.c (get_command_line): Constify.
10768 * cli/cli-script.h (get_command_line): Constify.
10769 * cli/cli-utils.c (check_for_argument): Constify.
10770 * cli/cli-utils.h (check_for_argument): Constify.
10771 * coff-pe-read.c (struct read_pe_section_data): Constify.
10772 * command.h (lookup_cmd): Constify.
10773 * common/print-utils.c (decimal2str): Constify.
10774 * completer.c (gdb_print_filename): Constify.
10775 * corefile.c (set_gnutarget): Constify.
10776 * cp-name-parser.y (yyerror): Constify.
10777 * cp-valprint.c (cp_print_class_member): Constify.
10778 * cris-tdep.c (cris_register_name, crisv32_register_name):
10780 * d-exp.y (yyerror): Constify.
10781 (struct token::oper): Constify.
10782 * d-lang.h (d_yyerror): Constify.
10783 * dbxread.c (struct header_file_location::name): Constify.
10784 (add_old_header_file, add_new_header_file, last_function_name)
10785 (dbx_next_symbol_text, add_bincl_to_list)
10786 (find_corresponding_bincl_psymtab, set_namestring)
10787 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10788 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10789 * defs.h (command_line_input, print_address_symbolic)
10790 (deprecated_readline_begin_hook): Constify.
10791 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10793 * event-top.c (handle_line_of_input): Constify and add cast.
10794 * exceptions.c (catch_errors): Constify.
10795 * exceptions.h (catch_errors): Constify.
10796 * expprint.c (print_subexp_standard, op_string, op_name)
10797 (op_name_standard, dump_raw_expression, dump_raw_expression):
10798 * expression.h (op_name, op_string, dump_raw_expression):
10800 * f-exp.y (yyerror): Constify.
10801 (struct token::oper): Constify.
10802 (struct f77_boolean_val::name): Constify.
10803 * f-lang.c (f_word_break_characters): Constify.
10804 * f-lang.h (f_yyerror): Constify.
10805 * fork-child.c (fork_inferior): Add cast.
10806 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10807 (new_variant): Constify.
10808 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10809 * gdbarch.c: Regenerate.
10810 * gdbcore.h (set_gnutarget): Constify.
10811 * go-exp.y (yyerror): Constify.
10812 (token::oper): Constify.
10813 * go-lang.h (go_yyerror): Constify.
10814 * go32-nat.c (go32_sysinfo): Constify.
10815 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10816 * guile/scm-cmd.c (cmdscm_function): Constify.
10817 * guile/scm-param.c (pascm_param_value): Constify.
10818 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10819 (h8300sx_register_name): Constify.
10820 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10822 * ia64-tdep.c (ia64_register_names): Constify.
10823 * infcmd.c (construct_inferior_arguments): Constify.
10824 (path_command, attach_post_wait): Constify.
10825 * language.c (show_range_command, show_case_command)
10826 (unk_lang_error): Constify.
10827 * language.h (language_defn::la_error)
10828 (language_defn::la_name_of_this): Constify.
10829 * linespec.c (decode_line_2): Constify.
10830 * linux-thread-db.c (thread_db_err_str): Constify.
10831 * lm32-tdep.c (lm32_register_name): Constify.
10832 * m2-exp.y (yyerror): Constify.
10833 * m2-lang.h (m2_yyerror): Constify.
10834 * m32r-tdep.c (m32r_register_names): Constify and make static.
10835 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10836 * m88k-tdep.c (m88k_register_name): Constify.
10837 * macroexp.c (appendmem): Constify.
10838 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10839 (upgrade_type, parse_external, parse_partial_symbols)
10840 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10841 (new_symbol): Constify.
10842 * memattr.c (mem_info_command): Constify.
10843 * mep-tdep.c (register_name_from_keyword): Constify.
10844 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10846 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10847 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10848 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10850 (mi_execute_async_cli_command): Constify.
10851 * mips-tdep.c (mips_register_name): Constify.
10852 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10853 (am33_register_name, am33_2_register_name)
10854 * moxie-tdep.c (moxie_register_names): Constify.
10855 * nat/linux-osdata.c (osdata_type): Constify fields.
10856 * nto-tdep.c (nto_parse_redirection): Constify.
10857 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10858 (lookup_child_selector): Constify.
10859 (objc_methcall::name): Constify.
10860 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10861 (lookup_struct_typedef): Constify.
10862 * objfiles.c (pc_in_section): Constify.
10863 * objfiles.h (pc_in_section): Constify.
10864 * p-exp.y (struct token::oper): Constify.
10865 (yyerror): Constify.
10866 * p-lang.h (pascal_yyerror): Constify.
10867 * parser-defs.h (op_name_standard): Constify.
10868 (op_print::string): Constify.
10869 (exp_descriptor::op_name): Constify.
10870 * printcmd.c (print_address_symbolic): Constify.
10871 * psymtab.c (print_partial_symbols): Constify.
10872 * python/py-breakpoint.c (stop_func): Constify.
10873 (bppy_get_expression): Constify.
10874 * python/py-cmd.c (cmdpy_completer::name): Constify.
10875 (cmdpy_function): Constify.
10876 * python/py-event.c (evpy_add_attribute)
10877 (gdbpy_initialize_event_generic): Constify.
10878 * python/py-event.h (evpy_add_attribute)
10879 (gdbpy_initialize_event_generic): Constify.
10880 * python/py-evts.c (add_new_registry): Constify.
10881 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10882 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10883 * python/py-inferior.c (get_buffer): Add cast.
10884 * python/py-param.c (parm_constant::name): Constify.
10885 * python/py-unwind.c (fprint_frame_id): Constify.
10886 * python/python.c (gdbpy_parameter_value): Constify.
10887 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10888 * remote.c (memory_packet_config::name): Constify.
10889 (show_packet_config_cmd, remote_write_bytes)
10890 (remote_buffer_add_string):
10891 * reverse.c (exec_reverse_once): Constify.
10892 * rs6000-tdep.c (variant::name, variant::description): Constify.
10893 * rust-exp.y (rustyyerror): Constify.
10894 * rust-lang.c (rust_op_name): Constify.
10895 * rust-lang.h (rustyyerror): Constify.
10896 * serial.h (serial_ops::name): Constify.
10897 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10898 (sh_sh3e_register_name, sh_sh2e_register_name)
10899 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10900 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10901 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10902 (sh_sh4al_dsp_register_name): Constify.
10903 * sh64-tdep.c (sh64_register_name): Constify.
10904 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10905 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10906 * stabsread.c (patch_block_stabs, read_type_number)
10907 (ref_map::stabs, ref_add, process_reference)
10908 (symbol_reference_defined, define_symbol, define_symbol)
10909 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10910 (read_one_struct_field, read_struct_fields, read_baseclasses)
10911 (read_tilde_fields, read_struct_type, read_array_type)
10912 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10913 (read_huge_number, read_range_type, read_args, common_block_start)
10914 (find_name_end): Constify.
10915 * stabsread.h (common_block_start, define_symbol)
10916 (process_one_symbol, symbol_reference_defined, ref_add):
10917 * symfile.c (get_section_index, add_symbol_file_command):
10918 * symfile.h (get_section_index): Constify.
10919 * target-descriptions.c (tdesc_type::name): Constify.
10920 (tdesc_free_type): Add cast.
10921 * target.c (find_default_run_target):
10922 (add_deprecated_target_alias, find_default_run_target)
10923 (target_announce_detach): Constify.
10924 (do_option): Constify.
10925 * target.h (add_deprecated_target_alias): Constify.
10926 * thread.c (print_thread_info_1): Constify.
10927 * top.c (deprecated_readline_begin_hook, command_line_input):
10929 (init_main): Add casts.
10930 * top.h (handle_line_of_input): Constify.
10931 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10932 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10933 (tfind_command): Rename to ...
10934 (tfind_command_1): ... this and constify.
10935 (tfind_command): New function.
10936 (tfind_end_command, tfind_start_command): Adjust.
10937 (encode_source_string): Constify.
10938 * tracepoint.h (encode_source_string): Constify.
10939 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10940 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10941 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10942 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10943 * tui/tui-win.c (parse_scrolling_args): Constify.
10944 * tui/tui-windata.c (tui_erase_data_content): Constify.
10945 * tui/tui-windata.h (tui_erase_data_content): Constify.
10946 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10947 * tui/tui.c (tui_enable): Add cast.
10948 * utils.c (defaulted_query): Constify.
10949 (init_page_info): Add cast.
10950 (puts_debug, subset_compare): Constify.
10951 * utils.h (subset_compare): Constify.
10952 * varobj.c (varobj_format_string): Constify.
10953 * varobj.h (varobj_format_string): Constify.
10954 * vax-tdep.c (vax_register_name): Constify.
10955 * windows-nat.c (windows_detach): Constify.
10956 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10957 * xml-support.c (gdb_xml_end_element): Constify.
10958 * xml-tdesc.c (tdesc_start_reg): Constify.
10959 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10960 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10961 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10963 2017-04-05 Pedro Alves <palves@redhat.com>
10965 * proc-api.c (struct trans): Constify.
10966 (procfs_note): Constify.
10967 * proc-events.c (struct trans, syscall_table):
10968 * proc-flags.c (struct trans): Constify.
10969 * proc-utils.h (procfs_note): Constify.
10970 * proc-why.c (struct trans): Constify.
10971 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10972 (procfs_detach): Constify.
10973 * sol-thread.c (struct string_map): Constify.
10974 (td_err_string, td_state_string): Constify.
10976 2017-04-05 Pedro Alves <palves@redhat.com>
10978 * proc-api.c (procfs_filename): Don't initialize
10980 (prepare_to_trace): Assume procfs_filename is non-NULL.
10981 (_initialize_proc_api): Give procfs_filename a default value here.
10983 2017-04-05 Pedro Alves <palves@redhat.com>
10985 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10986 'cond_string' parameter.
10987 (extract_exception_regexp): Constify 'string' parameter.
10988 (catch_exception_command_1): Constify.
10989 * breakpoint.c (init_catchpoint)
10990 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10992 (ep_parse_optional_if_clause, catch_fork_command_1)
10993 (catch_exec_command_1): Constify.
10994 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10996 (ep_parse_optional_if_clause): Constify.
10997 * cli/cli-utils.c (remove_trailing_whitespace)
10998 (check_for_argument): Constify.
10999 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
11000 non-const overload.
11001 (check_for_argument): Likewise.
11003 2017-04-05 Pedro Alves <palves@redhat.com>
11005 * event-top.c (command_line_handler): Add cast to execute_command
11007 * record-btrace.c (cmd_record_btrace_bts_start)
11008 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
11009 (cmd_record_btrace_start): Add cast to execute_command call.
11010 * record-full.c (record_full_goto_insn):
11011 * record.c (record_start, record_stop): Add cast to
11012 execute_command_to_string calls.
11013 (cmd_record_start): Add cast to execute_command calls.
11015 2017-04-05 Pedro Alves <palves@redhat.com>
11017 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
11018 static inline function.
11019 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
11020 array and use gdb_PyArg_ParseTupleAndKeywords.
11021 * python/py-cmd.c (cmdpy_init): Likewise.
11022 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
11023 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
11024 (infpy_search_memory): Likewise.
11025 * python/py-objfile.c (objfpy_add_separate_debug_file)
11026 (gdbpy_lookup_objfile): Likewise.
11027 * python/py-symbol.c (gdbpy_lookup_symbol)
11028 (gdbpy_lookup_global_symbol): Likewise.
11029 * python/py-type.c (gdbpy_lookup_type): Likewise.
11030 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
11031 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
11034 2017-04-05 Pedro Alves <palves@redhat.com>
11036 * python/python-internal.h (gdb_PyGetSetDef): New type.
11037 * python/py-block.c (block_object_getset)
11038 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
11039 * python/py-event.c (event_object_getset)
11040 (finish_breakpoint_object_getset): Likewise.
11041 * python/py-inferior.c (inferior_object_getset): Likewise.
11042 * python/py-infthread.c (thread_object_getset): Likewise.
11043 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11044 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11045 * python/py-objfile.c (objfile_getset): Likewise.
11046 * python/py-progspace.c (pspace_getset): Likewise.
11047 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11049 * python/py-record.c (recpy_record_getset): Likewise.
11050 * python/py-symbol.c (symbol_object_getset): Likewise.
11051 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11053 * python/py-type.c (type_object_getset, field_object_getset):
11055 * python/py-value.c (value_object_getset): Likewise.
11057 2017-04-05 Pedro Alves <palves@redhat.com>
11059 * python/python-internal.h (gdb_PyObject_CallMethod)
11060 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11062 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11063 (PySys_GetObject, PySys_SetPath): New macros.
11065 2017-04-05 Pedro Alves <palves@redhat.com>
11067 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11068 info_osdata_command.
11069 * osdata.c (info_osdata_command): Rename to ...
11070 (info_osdata): ... this. Constify 'type' parameter, and remove
11071 the 'from_tty' parameter. Accept NULL TYPE.
11072 (info_osdata_command): New function.
11073 * osdata.h (info_osdata_command): Remove declaration.
11074 (info_osdata): New declaration.
11076 2017-04-05 Pedro Alves <palves@redhat.com>
11078 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11079 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11080 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11082 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11083 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11084 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11086 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11087 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11088 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11089 (mi_cmd_file_list_exec_source_files)
11090 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11091 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11092 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11094 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11095 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11096 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11097 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11098 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11099 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11100 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11101 'command' parameter.
11102 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11103 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11104 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11105 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11106 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11107 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11108 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11109 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11110 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11111 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11112 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11114 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11115 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11116 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11117 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11118 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11119 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11120 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11121 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11122 (mi_cmd_data_list_changed_registers)
11123 (mi_cmd_data_write_register_values)
11124 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11125 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11126 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11127 (mi_cmd_list_features, mi_cmd_list_target_features)
11128 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11129 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11130 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11131 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11132 (mi_cmd_trace_frame_collected): Constify 'command'
11134 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11135 'command' parameter.
11137 2017-04-05 Pedro Alves <palves@redhat.com>
11139 * ada-lang.c (ada_completer_word_break_characters): Now a const
11141 (ada_get_gdb_completer_word_break_characters): Constify.
11142 * completer.c (gdb_completer_command_word_break_characters)
11143 (gdb_completer_file_name_break_characters)
11144 (gdb_completer_quote_characters): Now const arrays.
11145 (get_gdb_completer_quote_characters): Constify.
11146 (set_rl_completer_word_break_characters): New function.
11147 (set_gdb_completion_word_break_characters)
11148 (complete_line_internal): Use it.
11149 * completer.h (get_gdb_completer_quote_characters): Constify.
11150 (set_rl_completer_word_break_characters): Declare.
11151 * f-lang.c (f_word_break_characters): Constify.
11152 * language.c (default_word_break_characters): Constify.
11153 * language.h (language_defn::la_word_break_characters): Constify.
11154 (default_word_break_characters): Constify.
11155 * top.c (init_main): Use set_rl_completer_word_break_characters.
11157 2017-04-05 Pedro Alves <palves@redhat.com>
11159 * aix-thread.c (aix_thread_pid_to_str)
11160 (aix_thread_extra_thread_info): Constify.
11161 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11162 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11163 (bsd_uthread_pid_to_str): Constify.
11164 * corelow.c (core_pid_to_str): Constify.
11165 * darwin-nat.c (darwin_pid_to_str): Constify.
11166 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11167 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11169 * gnu-nat.c (gnu_pid_to_str): Constify.
11170 * go32-nat.c (go32_pid_to_str): Constify.
11171 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11172 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11173 * inferior.c (inferior_pid_to_str): Constify.
11174 * linux-nat.c (linux_nat_pid_to_str): Constify.
11175 * linux-tdep.c (linux_core_pid_to_str): Constify.
11176 * linux-thread-db.c (thread_db_pid_to_str)
11177 (thread_db_extra_thread_info): Constify.
11178 * nto-tdep.c (nto_extra_thread_info): Constify.
11179 * nto-tdep.h (nto_extra_thread_info): Constify.
11180 * obsd-nat.c (obsd_pid_to_str): Constify.
11181 * procfs.c (procfs_pid_to_str): Constify.
11182 * ravenscar-thread.c (ravenscar_extra_thread_info)
11183 (ravenscar_pid_to_str): Constify.
11184 * remote-sim.c (gdbsim_pid_to_str): Constify.
11185 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11187 * sol-thread.c (solaris_pid_to_str): Constify.
11188 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11189 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11190 * target.c (default_pid_to_str, target_pid_to_str)
11191 (normal_pid_to_str, default_pid_to_str): Constify.
11192 * target.h (target_ops::to_pid_to_str)
11193 (target_ops::to_extra_thread_info): Constify.
11194 (target_pid_to_str, normal_pid_to_str): Constify.
11195 * windows-nat.c (windows_pid_to_str): Constify.
11196 * gdbarch.sh (core_pid_to_str): Constify.
11197 * target-delegates.c: Regenerate.
11198 * gdbarch.h, gdbarch.c: Regenerate.
11200 2017-04-05 Pedro Alves <palves@redhat.com>
11202 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11203 the memory of the temporary warning_pre_print override.
11204 * utils.c (warning_pre_print): Constify.
11205 * utils.h (warning_pre_print): Constify.
11207 2017-04-05 Pedro Alves <palves@redhat.com>
11209 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11210 (shell_command): New function.
11211 (make_command): Use std::string.
11212 (init_cli_cmds): Register shell_command instead of shell_escape.
11214 2017-04-05 Pedro Alves <palves@redhat.com>
11216 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11217 * tracepoint.c (default_collect): Don't initialize.
11219 2017-04-05 Pedro Alves <palves@redhat.com>
11221 * macroexp.c (macro_buffer::shared): Now a bool.
11222 (init_buffer): Update.
11223 (init_shared_buffer): Constify 'addr' parameter.
11224 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11227 2017-04-05 Pedro Alves <palves@redhat.com>
11229 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11230 * disasm.c (set_disassembler_options): Constify local.
11231 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11233 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11236 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11239 2017-04-05 Yao Qi <yao.qi@linaro.org>
11241 * frame.c (frame_unwind_register_unsigned): Call
11242 frame_unwind_register_value.
11244 2017-04-05 Yao Qi <yao.qi@linaro.org>
11246 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11247 Use gdb_test_multiple, and don't match anchor.
11249 2017-04-05 Pedro Alves <palves@redhat.com>
11251 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11252 (Write After Approval): Remove Simon Marchi.
11254 2017-04-05 Pedro Alves <palves@redhat.com>
11256 * common/gdb_optional.h (optional::optional): Make constexpr and
11257 initialize m_dummy.
11259 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11261 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11262 (amd64fbsd_jmp_buf_reg_offset): Remove.
11263 (amd64fbsd_supply_uthread): Remove function.
11264 (amd64fbsd_collect_uthread): Remove function.
11265 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11266 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11267 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11268 (fbsd-nat.c): Update comment.
11269 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11270 (i386fbsd_jmp_buf_reg_offset): Remove.
11271 (i386fbsd_supply_uthread): Remove function.
11272 (i386fbsd_collect_uthread): Remove function.
11273 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11275 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11277 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11278 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11279 * NEWS: Mention that support for FreeBSD/alpha was removed.
11280 * alpha-fbsd-tdep.c: Delete file.
11281 * config/alpha/fbsd.mh: Delete file.
11282 * configure.host: Delete alpha*-*-freebsd* and
11283 alpha*-*-kfreebsd*-gnu.
11284 * configure.tgt: Delete alpha*-*-freebsd* and
11285 alpha*-*-kfreebsd*-gnu.
11287 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11289 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11290 amd64bsd_store_inferior_registers): Use ptid from regcache.
11292 2017-04-04 Pedro Alves <palves@redhat.com>
11294 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11295 data fields, make them private and add "m_" prefixes.
11296 (lnp_state_machine::lnp_state_machine): New ctor.
11297 (record_line, check_line_address, handle_set_discriminator)
11298 (handle_set_address, handle_advance_pc, handle_special_opcode)
11299 (handle_advance_line, handle_set_file, handle_negate_stmt)
11300 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11301 (end_sequence, advance_line): New methods.
11302 (m_gdbarch, m_record_lines_p): New fields.
11303 (lnp_reader_state): Delete.
11304 (dwarf_record_line): Rename to ...
11305 (lnp_state_machine::record_line): ... adjust.
11306 (init_lnp_state_machine): Delete.
11307 (lnp_state_machine::lnp_state_machine): New.
11308 (check_line_address): Rename to ...
11309 (lnp_state_machine::check_line_address): This.
11310 (dwarf_decode_lines_1): Remove reference to "reader_state".
11311 Adjust lnp_state_machine having a non-default ctor. Use bool.
11312 State machine internal state manipulation moved to
11313 lnp_state_machine methods.
11315 2017-04-04 Pedro Alves <palves@redhat.com>
11317 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11318 unittests/offset-type-selftests.c.
11319 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11320 * common/offset-type.h: New file.
11321 * common/preprocessor.h: New file.
11322 * common/traits.h: New file.
11323 * common/valid-expr.h: New file.
11324 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11325 sect_offset and cu_offset strong typedefs throughout.
11326 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11327 typedefs throughout.
11328 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11329 sect_offset and cu_offset strong typedefs throughout.
11330 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11331 typedefs throughout.
11332 * gdbtypes.h: Include "common/offset-type.h".
11333 (cu_offset): Now an offset type (strong typedef) instead of a
11335 (sect_offset): Likewise.
11336 (union call_site_parameter_u): Rename "param_offset" field to
11338 * unittests/offset-type-selftests.c: New file.
11340 2017-04-04 Pedro Alves <palves@redhat.com>
11342 * common/underlying.h: New file.
11343 * dwarf2read.c: Include "common/gdb_optional.h" and
11344 "common/underlying.h".
11345 (dir_index, file_name_index): New types.
11346 (file_entry): Use them.
11347 (file_entry::include): Use to_underlying.
11348 (line_header::add_file_name): Use dir_index.
11349 (read_formatted_entries): Use gdb::optional. Read form before
11350 writting to file_entry.
11351 (dwarf_decode_line_header): Use dir_index.
11352 (lnp_state_machine::current_file): Use to_underlying.
11353 (lnp_state_machine::file): Change type to file_name_index.
11354 (dwarf_record_line): Use to_underlying.
11355 (init_lnp_state_machine): Use file_name_index.
11356 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11358 2017-04-04 Pedro Alves <palves@redhat.com>
11360 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11361 operator bool, has_value and get methods.
11363 2017-04-04 Pedro Alves <palves@redhat.com>
11365 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11367 (line_header): Initialize all data fields. Change type of
11368 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11369 Change type of include_dirs to std::vector<const char *>. Remove
11370 num_include_dirs, include_dirs_size. Change type of file_names to
11371 std::vector<file_entry>. Remove num_file_names, file_names_size.
11372 (line_header::line_header): New.
11373 (line_header::add_include_dir, line_header::add_file_name): New
11375 (line_header::include_dir_at): Remove NULL check.
11376 (line_header::file_name_at): Add const overload.
11377 (line_header_up): New unique_ptr typedef.
11378 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11379 std::vector. Remove free_line_header call.
11380 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11381 free_line_header call.
11382 (free_cu_line_header): Delete.
11383 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11384 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11385 Adjust to use std::vector.
11386 (free_line_header): Delete.
11387 (free_line_header_voidp): Use delete.
11388 (add_include_dir): Replace with ...
11389 (line_header::add_include_dir): ... this method. Use std::vector.
11390 (add_file_name): Replace with ...
11391 (line_header::add_file_name): ... this method. Use std::vector.
11392 (add_include_dir_stub): Delete.
11393 (read_formatted_entries): Remove memset.
11394 (dwarf_decode_line_header): Return a line_header_up instead of a
11395 raw pointer. Remove cleanup handling. Pass lambdas to
11396 read_formatted_entries. Adjust to use line_header methods.
11397 (dwarf_decode_lines_1): Adjust to use line_header methods.
11398 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11401 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11403 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11404 instead of struct ptid.
11406 2017-05-04 Alan Hayward <alan.hayward@arm.com>
11408 * frame.c (get_frame_register_bytes): Unwind using value.
11409 (put_frame_register_bytes): Likewise.
11411 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11413 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11416 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11418 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11420 2017-03-29 Yao Qi <yao.qi@linaro.org>
11422 * gdbthread.h (struct thread_info): Declare constructor and
11423 destructor. Add some in-class member initializers.
11424 * thread.c (free_thread): Remove.
11425 (init_thread_list): Call delete instead of free_thread.
11426 (new_thread): Call thread_info constructor.
11427 (thread_info::thread_info): New function.
11428 (thread_info::~thread_info): New function.
11429 (delete_thread_1): Call delete instead of free_thread.
11430 (make_cleanup_restore_current_thread): Move tp and frame to
11433 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11435 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11436 (arc_skip_prologue): Likewise.
11437 (arc_make_frame_cache): Likewise.
11438 (arc_pv_get_operand): New function.
11439 (arc_is_in_prologue): Likewise.
11440 (arc_analyze_prologue): Likewise.
11441 (arc_print_frame_cache): Likewise.
11442 (MAX_PROLOGUE_LENGTH): New constant.
11444 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11446 * configure.tgt: Add arc-insn.o.
11447 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11448 (dump_arc_instruction_command): New function.
11449 (arc_fprintf_disasm): Likewise.
11450 (arc_disassemble_info): Likewise.
11451 (arc_insn_get_operand_value): Likewise.
11452 (arc_insn_get_operand_value_signed): Likewise.
11453 (arc_insn_get_memory_base_reg): Likewise.
11454 (arc_insn_get_memory_offset): Likewise.
11455 (arc_insn_get_branch_target): Likewise.
11456 (arc_insn_dump): Likewise.
11457 (arc_insn_get_linear_next_pc): Likewise.
11458 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11459 (arc_disassemble_info): Likewise.
11460 (arc_insn_get_branch_target): Likewise.
11461 (arc_insn_get_linear_next_pc): Likewise.
11462 * NEWS: Mention new "maint print arc arc-instruction".
11464 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11466 * arc-tdep (maintenance_print_arc_list): New variable.
11467 (maintenance_print_arc_command): New function.
11469 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11471 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11472 Add "limm" and "reserved".
11473 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11474 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11475 * arc-tdep.h (arc_regnum): Likewise.
11477 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11479 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11480 for THREADPTR register.
11481 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11483 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11484 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11485 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11487 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11489 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11490 registers above gdbarch_num_regs (gdbarch) as privileged in
11493 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11495 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11496 for a single specified register or for all registers in
11497 a0_base..a0_base + C0_NREGS range.
11498 (supply_gregset_reg): Call regcache_raw_supply for a single
11499 specified register or for all registers in a0_base..a0_base +
11502 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11504 * arch/xtensa.h (C0_NREGS): Add definition.
11505 * xtensa-tdep.c (C0_NREGS): Remove definition.
11507 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11509 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11510 Drop xtensa_default_isa initialization.
11511 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11513 2017-03-27 Pedro Alves <palves@redhat.com>
11515 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11516 (file_entry::include_dir): New method.
11517 (line_header::include_dir_at, line_header::file_name_at): New
11519 (setup_type_unit_groups, setup_type_unit_groups)
11520 (psymtab_include_file_name): Simplify using the new methods.
11521 (lnp_state_machine) <the_line_header>: New field.
11522 <file>: Add comment.
11523 (lnp_state_machine::current_file): New method.
11524 (dwarf_record_line): Simplify using the new methods.
11525 (init_lnp_state_machine): Initialize the "the_line_header" field.
11526 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11527 Simplify using the new methods.
11529 2017-03-27 Pedro Alves <palves@redhat.com>
11531 * cp-name-parser.y (make_empty): Delete.
11532 (demangler_special, nested_name, ptr_operator, array_indicator)
11533 (direct_declarator, declarator_1): Use fill_comp instead of
11536 2017-03-27 Pedro Alves <palves@redhat.com>
11538 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11539 to ATTRIBUTE_PRINTF.
11540 * solib-target.c (library_list_start_list): Print "string" not
11542 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11543 gdb_xml_error call.
11545 2017-03-27 Pedro Alves <palves@redhat.com>
11547 * dwarf2read.c (struct file_and_directory): New.
11548 (dwarf2_get_dwz_file): Adjust to use std::string.
11549 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11550 (find_file_and_directory): Adjust to return a file_and_directory
11552 (read_file_scope): Adjust to use file_and_directory. Remove
11553 make_cleanup/do_cleanups calls.
11554 (open_and_init_dwp_file): Adjust to use std::string. Remove
11555 make_cleanup/do_cleanups calls.
11556 * python/python.c (do_start_initialization): Adjust to ldirname
11557 returning a std::string.
11558 * utils.c (ldirname): Now returns a std::string.
11559 * utils.h (ldirname): Change return type to std::string.
11560 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11561 returning a std::string.
11562 * xml-tdesc.c (file_read_description_xml): Likewise.
11564 2017-03-24 Alan Hayward <alan.hayward@arm.com>
11566 * regcache.c (regcache_debug_print_register): New function.
11567 * regcache.h (regcache_debug_print_register): New declaration.
11568 * target.c (debug_print_register): Remove.
11569 (target_fetch_registers): Call regcache_debug_print_register.
11570 (target_store_registers): Likewise.
11572 2017-03-24 Pádraig Brady <pbrady@fb.com>
11574 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11575 reference beyond the 'lh->include_dirs' array before accessing to
11577 (psymtab_include_file_name): Likewise.
11578 (dwarf_decode_lines_1): Likewise.
11579 (dwarf_decode_lines): Likewise.
11580 (file_file_name): Likewise.
11582 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11584 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11586 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11587 ps_lsetfpregs): Likewise.
11588 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11589 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11590 ps_lsetfpregs): Likewise.
11591 * target.c (target_fetch_registers, target_store_registers):
11594 2017-03-23 Alan Hayward <alan.hayward@arm.com>
11596 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11598 2017-03-23 Yao Qi <yao.qi@linaro.org>
11600 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11601 (_initialize_aarch64_tdep): Register it.
11602 (aarch64_record_load_store): Handle PRFM instruction.
11603 (aarch64_process_record_test): New function.
11605 2017-03-23 Yao Qi <yao.qi@linaro.org>
11607 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11610 2017-03-23 Yao Qi <yao.qi@linaro.org>
11612 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11614 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11616 python/python.c (do_start_initialization): Fix memory leak.
11618 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11620 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11621 using get_ptrace_pid.
11622 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11624 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11625 inferior_ptid instead of pid.
11627 2017-03-22 Yao Qi <yao.qi@linaro.org>
11629 * aarch64-tdep.c: Wrap locally used classes in anonymous
11631 * arm-tdep.c: Likewise.
11632 * linespec.c: Likewise.
11633 * ui-out.c: Likewise.
11635 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
11638 * python/lib/gdb/printer/bound_registers.py: Import sys.
11640 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11642 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11643 windows_thread_info parameter and use it instead of
11645 (windows_fetch_inferior_registers): Don't set current_thread,
11646 pass the thread to do_windows_fetch_inferior_registers. Use
11647 ptid from regcache instead of inferior_ptid.
11648 (do_windows_store_inferior_registers): Add windows_thread_info
11649 parameter and use it instead of current_thread.
11650 (windows_store_inferior_registers): Don't set current_thread,
11651 pass the thread to do_windows_store_inferior_registers. Use
11652 ptid from regcache instead of inferior_ptid.
11654 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11656 * ser-mingw.c (ser_windows_raw): Remove reference to
11657 struct serial::current_timeout.
11659 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11662 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11663 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11664 (sparc64_fsr_type): Fix %fsr decoding.
11666 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11668 * python/py-record-btrace.c (btpy_insn_data): Change return type
11671 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11673 * spu-linux-nat.c (spu_fetch_inferior_registers,
11674 spu_store_inferior_registers): Use ptid from regcache, set and
11675 restore inferior_ptid.
11676 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11679 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11681 * i386-linux-nat.c (fetch_register, store_register,
11682 i386_linux_fetch_inferior_registers,
11683 i386_linux_store_inferior_registers): Use ptid from regcache.
11684 * ia64-linux-nat.c (ia64_linux_fetch_register,
11685 ia64_linux_store_register): Likewise.
11686 * inf-ptrace.c (inf_ptrace_fetch_register,
11687 inf_ptrace_store_register): Likewise.
11688 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11689 m32r_linux_store_inferior_registers): Likewise.
11690 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11691 m68kbsd_store_inferior_registers): Likewise.
11692 * m68k-linux-nat.c (fetch_register, store_register,
11693 m68k_linux_fetch_inferior_registers,
11694 m68k_linux_store_inferior_registers): Likewise.
11695 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11696 m88kbsd_store_inferior_registers): Likewise.
11697 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11698 mips_fbsd_store_inferior_registers): Likewise.
11699 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11700 mips64_linux_regsets_store_registers): Likewise.
11701 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11702 mipsnbsd_store_inferior_registers): Likewise.
11703 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11704 mips64obsd_store_inferior_registers): Likewise.
11705 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11707 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11708 ppcfbsd_store_inferior_registers): Likewise.
11709 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11710 ppc_linux_store_inferior_registers): Likewise.
11711 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11712 ppcnbsd_store_inferior_registers): Likewise.
11713 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11714 ppcobsd_store_registers): Likewise.
11715 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11717 * ravenscar-thread.c (ravenscar_fetch_registers,
11718 ravenscar_store_registers, ravenscar_prepare_to_store):
11720 * record-btrace.c (record_btrace_fetch_registers,
11721 record_btrace_store_registers, record_btrace_prepare_to_store):
11723 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11724 Lookup inferior using ptid from regcache, instead of
11726 * remote.c (remote_fetch_registers, remote_store_registers): Use
11727 ptid from regcache.
11728 * rs6000-nat.c (fetch_register, store_register): Likewise.
11729 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11730 s390_linux_store_inferior_registers): Likewise.
11731 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11732 shnbsd_store_inferior_registers): Likewise.
11733 * sol-thread.c (sol_thread_fetch_registers,
11734 sol_thread_store_registers): Likewise.
11735 * sparc-nat.c (sparc_fetch_inferior_registers,
11736 sparc_store_inferior_registers): Likewise.
11737 * tilegx-linux-nat.c (fetch_inferior_registers,
11738 store_inferior_registers): Likewise.
11739 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11740 vaxbsd_store_inferior_registers): Likewise.
11741 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11742 store_xtregs): Likewise.
11744 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11747 * NEWS: Mention support for rvalue references in GDB and python.
11748 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11749 supports both lvalue and rvalue references.
11751 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11754 * gdbtypes.c (rank_one_type): Implement overloading
11755 resolution rules regarding rvalue references.
11757 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11760 * aarch64-tdep.c (aarch64_type_align)
11761 (aarch64_extract_return_value, aarch64_store_return_value): Change
11762 lvalue reference type checks to general reference type checks.
11763 * amd64-tdep.c (amd64_classify): Likewise.
11764 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11766 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11767 (arm_store_return_value): Likewise.
11768 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11769 * c-typeprint.c (c_print_type): Likewise.
11770 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11771 (cplus_number_of_children, cplus_describe_child): Likewise.
11772 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11773 * completer.c (expression_completer): Likewise.
11774 * cp-support.c (make_symbol_overload_list_adl_namespace):
11776 * darwin-nat-info.c (info_mach_region_command): Likewise.
11777 * dwarf2loc.c (entry_data_value_coerce_ref)
11778 (value_of_dwarf_reg_entry): Likewise.
11779 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11780 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11782 * findvar.c (extract_typed_address, store_typed_address):
11784 * gdbtypes.c (rank_one_type): Likewise.
11785 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11786 * infcall.c (value_arg_coerce): Likewise.
11787 * language.c (pointer_type): Likewise.
11788 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11790 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11791 * mn10300-tdep.c (mn10300_type_align): Likewise.
11792 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11793 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11794 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11796 * printcmd.c (print_formatted, x_command): Likewise.
11797 * python/py-type.c (typy_get_composite, typy_template_argument):
11799 * python/py-value.c (valpy_referenced_value)
11800 (valpy_get_dynamic_type, value_has_field): Likewise.
11801 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11802 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11803 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11804 * spu-tdep.c (spu_scalar_value_p): Likewise.
11805 * symtab.c (lookup_symbol_aux): Likewise.
11806 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11807 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11809 * valops.c (value_cast_pointers, value_cast)
11810 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11811 (value_struct_elt, value_struct_elt_bitpos)
11812 (value_find_oload_method_list, find_overload_match)
11813 (value_rtti_indirect_type): Likewise.
11814 * valprint.c (val_print_scalar_type_p, generic_val_print):
11816 * value.c (value_actual_type, value_as_address, unpack_long)
11817 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11818 (coerce_ref): Likewise.
11819 * varobj.c (varobj_get_value_type): Likewise.
11821 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11824 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11825 table of constants.
11826 * python/lib/gdb/command/explore.py: Support exploring values
11827 of rvalue reference types.
11828 * python/lib/gdb/types.py: Implement get_basic_type() for
11829 rvalue reference types.
11830 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11832 * python/py-value.c (valpy_getitem): Add an rvalue reference
11834 (valpy_reference_value): Add new parameter "refcode".
11835 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11836 New wrappers for valpy_reference_value().
11837 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11838 (gdbpy_invoke_xmethod): Likewise.
11840 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11843 * dwarf2read.c (process_die, read_type_die_1): Handle the
11844 DW_TAG_rvalue_reference_type DIE.
11845 (read_tag_reference_type): Add new parameter "refcode".
11847 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11850 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11851 (c_type_print_modifier, c_type_print_varspec_suffix)
11852 (c_type_print_base): Support printing rvalue reference types.
11853 * c-valprint.c (c_val_print, c_value_print): Support printing
11854 rvalue reference values.
11856 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11859 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11861 * cp-support.c (replace_typedefs): Handle
11862 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11863 * python/py-type.c (typy_lookup_type): Likewise.
11865 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11868 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11869 * parse.c (insert_type): Change assert statement.
11870 (follow_types): Handle rvalue reference types.
11871 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11874 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11877 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11878 value_ref() interface.
11879 * c-valprint.c (c_value_print): Likewise.
11880 * infcall.c (value_arg_coerce): Likewise.
11881 * python/py-value.c (valpy_reference_value): Likewise.
11882 * valops.c (value_cast, value_reinterpret_cast)
11883 (value_dynamic_cast, typecmp): Likewise.
11884 (value_ref): Parameterize by kind of return value reference type.
11885 * value.h (value_ref): Add new parameter "refcode".
11887 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11890 * dwarf2read.c (read_tag_reference_type): Use
11891 lookup_lvalue_reference_type() instead of lookup_reference_type().
11892 * eval.c (evaluate_subexp_standard): Likewise.
11893 * f-exp.y: Likewise.
11894 * gdbtypes.c (make_reference_type, lookup_reference_type):
11895 Generalize with rvalue reference types.
11896 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11897 convenience wrappers for lookup_reference_type().
11898 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11899 reference kind parameter.
11900 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11901 wrappers for lookup_reference_type().
11902 * guile/scm-type.c (gdbscm_type_reference): Use
11903 lookup_lvalue_reference_type() instead of lookup_reference_type().
11904 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11905 * parse.c (follow_types): Likewise.
11906 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11907 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11909 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11910 (gdbpy_invoke_xmethod): Likewise.
11911 * stabsread.c: Provide extra argument to make_reference_type()
11913 * valops.c (value_ref, value_rtti_indirect_type): Use
11914 lookup_lvalue_reference_type() instead of lookup_reference_type().
11916 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11919 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11920 (TYPE_IS_REFERENCE): New macro.
11921 (struct type): Add rvalue_reference_type field.
11922 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11924 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11926 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11927 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11928 New function definition.
11929 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11930 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11931 New function declaration.
11932 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11933 * mi/mi-interp.h: New file.
11934 * solib.c (info_sharedlibrary_command): Replace for loop with
11936 * solib.h (update_solib_list): New function declaration.
11937 (so_list_head): Move macro.
11938 * solist.h (ALL_SO_LIBS): New macro.
11940 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11942 * infcmd.c (post_create_inferior): Remove unused argument in
11944 * remote.c (remote_start_remote): Likewise.
11945 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11946 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11947 (enable_break): Likewise.
11948 * solib.c (update_solib_list): Remove unused target argument
11949 and its documentation.
11950 (solib_add): Remove unused target argument. Remove unused
11951 argument in call to update_solib_list.
11952 (info_sharedlibrary_command): Remove unused argument in call
11953 to update_solib_list.
11954 (sharedlibrary_command): Remove unused argument in call to
11956 (handle_solib_event): Likewise.
11957 (reload_shared_libraries): Likewise.
11958 * solib.h (solib_add): Remove unused target argument.
11960 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11962 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11963 (s390_displaced_step_fixup): Cover relative branches with the
11964 default fixup handling. This fixes lack of support for some
11965 relative branch instructions.
11967 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11969 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11970 ptid from regcache.
11972 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11974 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11975 i386_darwin_store_inferior_registers): Use ptid from regcache.
11977 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11979 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11980 i386bsd_store_inferior_registers): Use ptid from regcache.
11982 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11984 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11985 hppaobsd_store_registers): Use ptid from regcache.
11987 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11989 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11990 hppanbsd_store_registers): Use ptid from regcache.
11992 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11994 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11995 from regcache. Use get_ptrace_pid.
11997 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11999 * corelow.c (get_core_register_section): Use ptid from regcache,
12002 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12004 * bsd-uthread.c (bsd_uthread_fetch_registers,
12005 bsd_uthread_store_registers): Use ptid from regcache, set and
12006 restore inferior_ptid.
12008 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12010 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
12011 fetch_fp_regs, store_register, store_regs, store_fp_register,
12012 store_fp_regs): Use ptid from regcache.
12014 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12016 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
12017 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
12018 store_vfp_regs): Use ptid from regcache.
12020 2017-03-17 Pedro Alves <palves@redhat.com>
12023 * ser-base.c (ser_base_wait_for): Add comment.
12024 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
12026 * ser-unix.c (hardwire_raw): Remove reference to
12027 scb->current_timeout.
12028 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
12029 (hardwire_ops): Install ser_base_readchar instead of
12031 * serial.h (struct serial) <current_timeout, timeout_remaining>:
12034 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
12037 * python/lib/gdb/printer/bound_registers.py: Add support for
12040 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
12042 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12043 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12044 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12045 byte_offset to subobj_byte_offset. Fix the handling of
12046 DWARF_VALUE_STACK on big-endian targets when coming via an
12048 (dwarf2_evaluate_loc_desc): Adjust call to
12049 dwarf2_evaluate_loc_desc_full.
12050 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12051 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12053 2017-03-16 Yao Qi <yao.qi@linaro.org>
12055 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12056 and REVSH instructions.
12058 2017-03-16 Yao Qi <yao.qi@linaro.org>
12060 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12061 (arm_record_test): Declare.
12062 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12063 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12064 align with the manual.
12065 (thumb_record_misc): Adjust the code order to align with the
12067 (thumb2_record_decode_insn_handler): Fix instruction matching.
12068 (instruction_reader_thumb): New class.
12069 (arm_record_test): New function.
12071 2017-03-16 Yao Qi <yao.qi@linaro.org>
12073 * arm-tdep.c (abstract_memory_reader): New class.
12074 (instruction_reader): New class.
12075 (extract_arm_insn): Add argument 'reader'. Callers updated.
12076 (decode_insn): Likewise.
12078 2017-03-16 Doug Evans <dje@google.com>
12080 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12081 member. Change type of TYPE member to SCM. All uses updated.
12082 (lsscm_make_lazy_string_smob): Add assert.
12083 (lsscm_make_lazy_string): Flag bad length values.
12084 (lsscm_elt_type): New function.
12085 (gdbscm_lazy_string_to_value): Rewrite to use
12086 lsscm_safe_lazy_string_to_value.
12087 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12088 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12089 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12091 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12092 * guile/scm-type.c (tyscm_scm_to_type): New function.
12094 2017-03-15 Doug Evans <dje@google.com>
12096 PR python/17728, python/18439, python/18779
12097 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12098 member. Change type of TYPE member to PyObject *. All uses updated.
12099 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12100 (gdbpy_create_lazy_string_object): Flag bad length values.
12101 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12102 Handle typedefs in incoming type.
12103 (stpy_lazy_string_elt_type): New function.
12104 (gdbpy_extract_lazy_string): Call it.
12105 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12106 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12107 typedefs in incoming type.
12109 2017-03-16 Doug Evans <dje@google.com>
12111 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12112 * guile/scm-type.c (tyscm_scm_to_type): New function.
12114 2017-03-16 Jiong Wang <jiong.wang@arm.com>
12116 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12117 "ULONGEST" for "skip".
12119 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12122 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12123 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12124 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12125 over ptrace peek/poke until end of buffer or error.
12127 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12129 * parse.c (length_of_subexp): Make static.
12130 * parser-defs.h (length_of_subexp): Remove.
12132 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12134 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12137 2017-03-14 Pedro Alves <palves@redhat.com>
12139 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12140 (main): Use std::unique_ptr. Remove calls to
12141 cp_demangled_name_parse_free.
12143 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12145 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12146 alphabsd_store_inferior_registers): Use regcache->ptid instead
12149 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12151 * aix-thread.c (aix_thread_fetch_registers,
12152 aix_thread_store_registers): Use regcache->ptid instead of
12155 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12157 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12158 store_gregs_to_thread, fetch_fpregs_from_thread,
12159 store_fpregs_to_thread): Use regcache->ptid instead of
12162 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12164 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12165 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12166 instead of inferior_ptid.
12168 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12170 * target.c (target_fetch_registers, target_store_registers): Add
12173 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12175 * regcache.h (regcache_get_ptid): New function.
12176 * regcache.c (regcache_get_ptid): New function.
12178 2017-03-13 Mark Wielaard <mark@klomp.org>
12180 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12182 2017-03-10 Keith Seitz <keiths@redhat.com>
12185 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12187 2017-03-08 Pedro Alves <palves@redhat.com>
12190 * infrun.c (start_step_over, do_target_resume, resume)
12191 (restart_threads): Assert we're not resuming a thread that is
12192 meant to be stopped.
12193 (infrun_thread_stop_requested_callback): Delete.
12194 (infrun_thread_stop_requested): If the thread is internally
12195 stopped, queue a pending stop event and clear the thread's
12196 inline-frame state.
12197 (handle_stop_requested): New function.
12198 (handle_syscall_event, handle_inferior_event_1): Use
12199 handle_stop_requested.
12200 (handle_stop_requested): New function.
12201 (handle_signal_stop): Set the thread's stop_signal here instead of
12203 (finish_step_over): Clear step over info unconditionally.
12204 (handle_signal_stop): If the user had interrupted the event
12205 thread, consider the stop a random signal.
12206 (handle_signal_stop) <signal arrived while stepping over
12207 breakpoint>: Don't restart threads here.
12208 (stop_waiting): Don't clear step-over info here.
12210 2017-03-08 Pedro Alves <palves@redhat.com>
12213 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12214 goes to argument 2, not 1.
12216 2017-03-08 Pedro Alves <palves@redhat.com>
12219 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12220 display_gdb_prompt.
12221 (command_line_input): Add comment.
12223 2017-03-08 Pedro Alves <palves@redhat.com>
12226 * tui/tui-file.c (tui_file::write): New.
12227 * tui/tui-file.h (tui_file): Override "write".
12228 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12229 factored out from ...
12230 (tui_puts): ... here.
12231 (tui_putc): Use them.
12232 (tui_write): New function.
12233 * tui/tui-io.h (tui_write): Declare.
12235 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12237 * Makefile.in (SFILES): Replace "environ.c" with
12238 "common/environ.c".
12239 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12240 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12242 * common/environ.c: ... here.
12243 * environ.h: Moved to...
12244 * common/environ.h: ... here.
12246 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12248 * gdbarch.sh (pstring_ptr): New static function.
12249 (gdbarch_disassembler_options): Use it.
12250 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12251 not valid_disassembler_option->name.
12252 * gdbarch.c: Regenerate.
12254 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12256 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12258 2017-03-07 Pedro Alves <palves@redhat.com>
12260 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12262 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
12264 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12265 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12266 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
12267 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
12269 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12271 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12273 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12275 * remote.c (remote_add_target_side_commands): Use range-based
12278 2017-03-03 Yao Qi <yao.qi@linaro.org>
12281 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12283 * valprint.c (common_val_print): Likewise.
12285 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12287 * NEWS: Mention new set/show disassembler-options commands.
12288 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12289 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12290 (prospective_options): New static variable.
12291 (gdb_disassembler::gdb_disassembler): Initialize
12292 m_di.disassembler_options.
12293 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12294 (get_disassembler_options): New function.
12295 (set_disassembler_options): Likewise.
12296 (set_disassembler_options_sfunc): Likewise.
12297 (show_disassembler_options_sfunc): Likewise.
12298 (disassembler_options_completer): Likewise.
12299 (_initialize_disasm): Likewise.
12300 * disasm.h (get_disassembler_options): New prototype.
12301 (set_disassembler_options): Likewise.
12302 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12303 (gdbarch_verify_disassembler_options): Likewise.
12304 * gdbarch.c: Regenerate.
12305 * gdbarch.h: Likewise.
12306 * arm-tdep.c (num_disassembly_options): Delete.
12307 (set_disassembly_style): Likewise.
12308 (arm_disassembler_options): New static variable.
12309 (set_disassembly_style_sfunc): Convert short style name into long
12310 option name. Call set_disassembler_options.
12311 (show_disassembly_style_sfunc): New function.
12312 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12313 set_gdbarch_verify_disassembler_options.
12314 (_initialize_arm_tdep): Delete regnames variable and update callers.
12315 (arm_disassembler_options): Initialize.
12316 (disasm_options): New variable.
12317 (num_disassembly_options): Rename from this...
12318 (num_disassembly_styles): ...to this. Compute by scanning through
12320 (valid_disassembly_styles): Initialize using disasm_options.
12321 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12322 set_arm_regname_option.
12323 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12324 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12325 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12326 set_gdbarch_verify_disassembler_options.
12327 * s390-tdep.c (s390_disassembler_options): New static variable.
12328 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12329 set_gdbarch_verify_disassembler_options.
12331 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12333 * remote.c (remote_add_target_side_condition): Remove "struct"
12334 keyword from range-based for loop.
12336 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12338 * remote.c (remote_add_target_side_condition): Use range-based
12339 for loop. Update comment.
12341 2017-02-27 Yao Qi <yao.qi@linaro.org>
12343 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12345 2017-02-26 Alan Hayward <alan.hayward@arm.com>
12347 * regcache.c (regcache_raw_update): New function.
12348 (regcache_raw_read): Move code to regcache_raw_update.
12349 * regcache.h (regcache_raw_update): New declaration.
12350 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12352 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12354 * dwarf2read.c (create_debug_type_hash_table): Initialize
12355 header.signature and header.type_offset_in_tu.
12357 2017-02-24 Pedro Alves <palves@redhat.com>
12359 * symtab.c (make_file_symbol_completion_list_1): Use
12360 add_symtab_completions.
12362 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12364 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12366 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12368 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12369 I386_MAX_REGISTER_SIZE.
12370 (i386_pseudo_register_write): Likewise.
12371 (i386_process_record): Likewise.
12372 * i387-tdep.c (i387_supply_xsave): Likewise.
12373 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12374 (store_register): Likewise.
12376 2017-02-23 Pedro Alves <palves@redhat.com>
12378 * ada-lang.c: Include "common/function-view.h".
12379 (ada_iterate_over_symbols): Adjust to use function_view as
12381 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12382 (ada_make_symbol_completion_list): Use a lambda.
12383 (ada_exc_search_name_matches): Delete.
12384 (name_matches_regex): New.
12385 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12386 * compile/compile-c-support.c: Include "common/function-view.h".
12387 (print_one_macro): Change prototype to accept a ui_file pointer.
12388 (write_macro_definitions): Use a lambda.
12389 * dwarf2read.c: Include "common/function-view.h".
12390 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12391 (dw2_expand_symtabs_matching): Adjust to use function_view as
12393 * language.h: Include "common/function-view.h".
12394 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12395 function_view as callback type.
12396 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12397 * linespec.c: Include "common/function-view.h".
12398 (collect_info::add_symbol): New method.
12399 (struct symbol_and_data_callback, iterate_inline_only, struct
12400 symbol_matcher_data, iterate_name_matcher): Delete.
12401 (iterate_over_all_matching_symtabs): Adjust to use function_view
12402 as callback type and lambdas.
12403 (iterate_over_file_blocks): Adjust to use function_view as
12405 (decode_compound_collector): Now a class with private fields.
12406 (decode_compound_collector::release_symbols): New method.
12407 (collect_one_symbol): Rename to...
12408 (decode_compound_collector::operator()): ... this and adjust.
12409 (lookup_prefix_sym): decode_compound_collector construction bits
12410 move to decode_compound_collector ctor. Pass the
12411 decode_compound_collector object directly as callback. Remove
12412 cleanups and use decode_compound_collector::release_symbols
12414 (symtab_collector): Now a class with private fields.
12415 (symtab_collector::release_symtabs): New method.
12416 (add_symtabs_to_list): Rename to...
12417 (symtab_collector::operator()): ... this and adjust.
12418 (collect_symtabs_from_filename): symtab_collector construction
12419 bits move to symtab_collector ctor. Pass the symtab_collector
12420 object directly as callback. Remove cleanups and use
12421 symtab_collector::release_symtabs instead.
12422 (collect_symbols): Delete.
12423 (add_matching_symbols_to_info): Use lambdas.
12424 * macrocmd.c (print_macro_callback): Delete.
12425 (info_macro_command): Use a lambda.
12426 (info_macros_command): Pass print_macro_definition as callable
12428 (print_one_macro): Remove 'ignore' parameter.
12429 (macro_list_command): Adjust.
12430 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12431 (macro_for_each_data::user_data): Delete field.
12432 (foreach_macro): Adjust to call the function_view.
12433 (macro_for_each): Adjust to use function_view as callback type.
12434 (foreach_macro_in_scope): Adjust to call the function_view.
12435 (macro_for_each_in_scope): Adjust to use function_view as callback
12437 * macrotab.h: Include "common/function-view.h".
12438 (macro_callback_fn): Declare a prototype instead of a pointer.
12439 Remove "user_data" parameter.
12440 (macro_for_each, macro_for_each_in_scope): Adjust to use
12441 function_view as callback type.
12442 * psymtab.c (partial_map_expand_apply)
12443 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12444 Adjust to use function_view as callback type and to return bool.
12445 (psym_expand_symtabs_matching): Adjust to use function_view as
12447 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12448 to use function_view as callback type and to return bool.
12449 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12451 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12453 * symfile.h: Include "common/function-view.h".
12454 (expand_symtabs_file_matcher_ftype)
12455 (expand_symtabs_symbol_matcher_ftype)
12456 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12458 (quick_symbol_functions::map_symtabs_matching_filename)
12459 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12460 function_view as callback type and return bool.
12461 (expand_symtabs_matching): Adjust to use function_view as callback
12463 (maintenance_expand_name_matcher)
12464 (maintenance_expand_file_matcher): Delete.
12465 (maintenance_expand_symtabs): Use lambdas.
12466 * symtab.c (iterate_over_some_symtabs): Adjust to use
12467 function_view as callback types and return bool.
12468 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12470 (lookup_symtab_callback): Delete.
12471 (lookup_symtab): Use a lambda.
12472 (iterate_over_symbols): Adjust to use function_view as callback
12474 (struct search_symbols_data, search_symbols_file_matches)
12475 (search_symbols_name_matches): Delete.
12476 (search_symbols): Use a pair of lambdas.
12477 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12478 (symtab_expansion_callback): Delete.
12479 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12480 * symtab.h: Include "common/function-view.h".
12481 (iterate_over_some_symtabs): Adjust to use function_view as
12482 callback type and return bool.
12483 (iterate_over_symtabs): Adjust to use function_view as callback
12485 (symbol_found_callback_ftype): Remove 'data' parameter and return
12487 (iterate_over_symbols): Adjust to use function_view as callback
12490 2017-02-23 Pedro Alves <palves@redhat.com>
12492 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12493 (%.o) <unittests/%.c>: New pattern.
12494 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12495 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12496 * common/function-view.h: New file.
12497 * unittests/function-view-selftests.c: New file.
12498 * configure: Regenerate.
12500 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12502 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12504 * go32-nat.c (go32_thread_alive): Likewise.
12506 2017-02-23 Yao Qi <yao.qi@linaro.org>
12508 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12511 2017-02-23 Yao Qi <yao.qi@linaro.org>
12513 * varobj.c (varobj_clear_saved_item): Use delete instead of
12515 (update_dynamic_varobj_children): Likewise.
12517 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12519 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12521 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12523 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12524 m_enum_value to 0 in default constructor.
12526 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12528 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12529 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12530 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12531 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12532 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12533 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12534 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12535 IS_STORE_CONDITIONAL_INSN.
12537 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12539 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12541 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12543 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12545 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12547 * dwarf2read.c (skip_one_die, read_attribute_value)
12548 (dwarf2_const_value_attr, dump_die_shallow)
12549 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12550 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12552 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12554 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12555 (dwarf_parse_macro_header): Accept DWARF version 5.
12556 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12558 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12560 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12562 * common/common-exceptions.h (enum errors): Likewise.
12563 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12564 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12565 (dwarf_expr_context::execute_stack_op): Likewise.
12566 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12568 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12569 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12570 (show_entry_values_debug, call_site_to_target_addr)
12571 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12572 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12573 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12574 (value_of_dwarf_block_entry, indirect_pieced_value)
12575 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12576 (disassemble_dwarf_expression): Likewise.
12577 * dwarf2read.c (process_die, inherit_abstract_dies)
12578 (read_call_site_scope): Likewise.
12579 * gdbtypes.h (struct func_type, struct call_site_parameter)
12580 (struct call_site): Likewise.
12581 * stack.c (read_frame_arg): Likewise.
12582 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12584 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12586 * defs.h (read_unsigned_leb128): New declaration.
12587 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12588 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12589 (dwarf2_find_location_expression): Call also
12590 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12591 * dwarf2loc.h (dwarf2_version): New declaration.
12592 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12594 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12596 (struct dwop_section_names): Add loclists_dwo.
12597 (dwop_section_names): Add .debug_loclists.dwo.
12598 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12599 (struct dwarf2_per_cu_data): Add dwarf_version.
12600 (struct dwo_sections): Add loclists.
12601 (struct attr_abbrev): Add implicit_const.
12602 (read_indirect_line_string): New declaration.
12603 (read_unsigned_leb128): Delete declaration.
12604 (rcuh_kind): New definition.
12605 (read_and_check_comp_unit_head): Change parameter
12606 is_debug_types_section to section_kind.
12607 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12608 (read_comp_unit_head): Change parameter abfd to section, add parameter
12609 section_kind. Handle DWARF-5.
12610 (error_check_comp_unit_head): Accept also DWARF version 5.
12611 (read_and_check_comp_unit_head): Change parameter
12612 is_debug_types_section to section_kind.
12613 (read_and_check_type_unit_head): Delete function.
12614 (read_abbrev_offset): Handle DWARF-5.
12615 (create_debug_type_hash_table): Add parameter section_kind. Process
12616 only DW_UT_type. Use signature and type_offset_in_tu from struct
12618 (create_debug_types_hash_table): Update create_debug_type_hash_table
12620 (create_all_type_units): Call create_debug_type_hash_table.
12621 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12622 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12624 (skip_one_die): Handle DW_FORM_implicit_const.
12625 (dwarf2_rnglists_process): New function.
12626 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12627 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12628 (read_attribute_value): Handle DW_FORM_implicit_const,
12630 (read_attribute): Handle DW_FORM_implicit_const.
12631 (read_indirect_string_at_offset_from): New function from
12632 read_indirect_string_at_offset.
12633 (read_indirect_string_at_offset): Call
12634 read_indirect_string_at_offset_from.
12635 (read_indirect_line_string_at_offset): New function.
12636 (read_indirect_string): New function comment.
12637 (read_indirect_line_string): New function.
12638 (read_unsigned_leb128): Make it global.
12639 (dwarf2_string_attr): Handle DWARF-5.
12640 (add_include_dir_stub, read_formatted_entries): New functions.
12641 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12643 (per_cu_header_read_in): Update read_comp_unit_head caller.
12644 (dwarf2_version): New function.
12645 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12647 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12650 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12652 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12654 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12656 * dwarf2read.c (dwarf2_ranges_process): New function from
12657 dwarf2_ranges_read.
12658 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12659 dwarf2_ranges_process.
12661 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12663 * dwarf2read.c (create_debug_type_hash_table): New function from
12664 create_debug_types_hash_table.
12665 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12666 (create_all_type_units, open_and_init_dwo_file): Update
12667 create_debug_types_hash_table callers.
12669 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12672 * fork-child.c (trace_start_error): Fix thinko. va_end should
12673 refer to 'ap', not 'args'.
12675 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12676 Pedro Alves <palves@redhat.com>
12679 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12681 * fork-child.c (trace_start_error): New function.
12682 (trace_start_error_with_name): Likewise.
12683 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12684 * inf-ptrace.c (inf_ptrace_me): Likewise.
12685 * inferior.h (trace_start_error): New prototype.
12686 (trace_start_error_with_name): Likewise.
12688 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12691 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12692 NULL before using it.
12693 * symmisc.c (maintenance_print_symbols): Likewise.
12694 (maintenance_print_msymbols): Likewise.
12696 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12698 * NEWS: Add record Python bindings entry.
12700 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12702 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12704 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12705 * python/py-record-btrace.c, python/py-record-btrace.h,
12706 python/py-record-full.c, python/py-record-full.h: New file.
12707 * python/py-record.c: Add include for py-record-btrace.h and
12709 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12710 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12711 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12712 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12714 (gdbpy_initialize_btrace): New export.
12715 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12717 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12719 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12720 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12721 * python/py-record.c: New file.
12722 * python/python-internal.h (gdbpy_start_recording,
12723 gdbpy_current_recording, gdpy_stop_recording,
12724 gdbpy_initialize_record): New export.
12725 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12726 (python_GdbMethods): Add gdbpy_start_recording,
12727 gdbpy_current_recording and gdbpy_stop_recording.
12729 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12731 * record-btrace.c (record_btrace_record_method): New function.
12732 (init_record_btrace_ops): Initialize to_record_method.
12733 * record-full.c (record_full_record_method): New function.
12734 (init_record_full_ops, init_record_full_core_ops): Add
12735 record_full_record_method.
12736 * record.h (enum record_method): New enum.
12737 * target-debug.h (target_debug_print_enum_record_method: New define.
12738 * target-delegates.c: Regenerate.
12739 * target.c (target_record_method): New function.
12740 * target.h: Include record.h.
12741 (struct target_ops) <to_record_method>: New field.
12742 (target_record_method): New export.
12744 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12746 * record.h (record_start, record_stop): New export.
12747 * record.c (record_start, record_stop): New function.
12749 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12751 * btrace.c (btrace_fetch): Copy function call segments pointer
12753 (btrace_clear): Clear the vector.
12754 (btrace_find_insn_by_number): Use binary search to find the correct
12755 function call segment.
12756 * btrace.h (brace_fun_p): New typedef.
12757 (struct btrace_thread_info) <functions>: New field.
12759 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12761 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12762 * btrace.c (btrace_decode_error): ... here. New function.
12763 * btrace.h (btrace_decode_error): New export.
12765 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12767 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12768 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12769 btrace_find_insn_by_number): Remove special case for gaps.
12770 * btrace.h (btrace_insn_get_error): New export.
12771 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12772 * record-btrace.c (btrace_insn_history): Print number for gaps.
12773 (record_btrace_info, record_btrace_goto): Handle gaps.
12775 2017-02-14 Tom Tromey <tom@tromey.com>
12778 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12780 * python/py-evts.c (gdbpy_initialize_py_events): Add
12781 before_prompt registry.
12782 * python/py-events.h (events_object) <before_prompt>: New field.
12784 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12786 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12788 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
12790 * symfile (_initialize_symfile): Add usage text to the load command's
12793 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12795 * utils.c (defaulted_query): Don't query on secondary UIs.
12797 2017-02-10 Tom Tromey <tom@tromey.com>
12799 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12801 2017-02-10 Tom Tromey <tom@tromey.com>
12803 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12805 * python/py-type.c (typy_legacy_template_argument): Remove
12806 unnecessary "cleanup" local.
12808 2017-02-10 Tom Tromey <tom@tromey.com>
12810 * python/python.c (do_start_initialization): New function, from
12811 _initialize_python.
12812 (_initialize_python): Call do_start_initialization.
12813 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12816 2017-02-10 Tom Tromey <tom@tromey.com>
12818 * python/py-prettyprint.c (pretty_print_one_value): Use
12821 2017-02-10 Tom Tromey <tom@tromey.com>
12823 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12824 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12826 * python/py-type.c (field_new): Use gdbpy_ref.
12827 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12829 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12830 (py_free_pspace): Likewise.
12831 (pspace_to_pspace_object): Likewise.
12832 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12833 (py_free_objfile): Likewise.
12834 (objfile_to_objfile_object): Likewise.
12835 * python/py-inferior.c (delete_thread_object): Use
12837 (infpy_read_memory): Likewise.
12838 (py_free_inferior): Likewise.
12839 * python/py-evtregistry.c (create_eventregistry_object): Use
12841 * python/py-event.c (create_event_object): Use gdbpy_ref.
12843 2017-02-10 Tom Tromey <tom@tromey.com>
12845 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12846 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12848 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12849 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12850 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12851 python/py-framefilter.c, python/py-function.c,
12852 python/py-inferior.c, python/py-infevents.c,
12853 python/py-linetable.c, python/py-newobjfileevent.c,
12854 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12855 python/py-signalevent.c, python/py-stopevent.c,
12856 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12857 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12858 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12859 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12861 2017-02-10 Tom Tromey <tom@tromey.com>
12863 * ui-out.h (ui_out_emit_type): New class.
12864 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12865 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12866 and ui_out_emit_tuple.
12867 (enumerate_locals): Likewise.
12868 (py_mi_print_variables, py_print_locals, py_print_args): Use
12870 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12872 * common/gdb_optional.h: New file.
12874 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12876 * MAINTAINERS (Write After Approval): Update my e-mail address.
12878 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12881 * breakpoint.c (_initialize_breakpoint): Update the help description
12882 of the 'commands' command to indicate that it takes a list argument.
12884 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12886 * interps.c (current_interp_set_logging): Remove "return".
12888 2017-02-09 Gary Benson <gbenson@redhat.com>
12890 * symtab.c (add_symtab_completions): Prevent NULL pointer
12893 2017-02-08 Pedro Alves <palves@redhat.com>
12895 * interps.c (interp::interp): Remove reference to quiet_p.
12896 (interp_set): Make static. Remove dead "Switching to" output
12898 (interp_quiet_p, interp_set_quiet): Delete.
12899 (interpreter_exec_cmd): Don't set the interpreter quiet.
12900 * interps.h (interp_quiet_p): Make static.
12901 (class interp) <quiet_p>: Remove field
12903 2017-02-08 Jerome Guitton <guitton@adacore.com>
12905 * cli/cli-decode.c (find_command_name_length): Make it extern.
12906 * cli/cli-decode.h (find_command_name_length): Declare.
12907 * cli/cli-script.c (command_name_equals, line_first_arg):
12909 (process_next_line): Use cli-decode to parse command names.
12910 (build_command_line): Make args a constant pointer.
12912 2017-02-08 Jerome Guitton <guitton@adacore.com>
12914 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12915 Remove case-insensitive search.
12917 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12919 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12920 at the end of the line. Avoids an ARI warning.
12922 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
12924 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12925 rdseed instructions.
12926 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12928 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12931 Provide and use sparc32 and sparc64 target description XML files.
12932 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12933 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12934 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12935 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12936 * features/sparc/sparc32-solaris.xml: New file.
12937 * features/sparc/sparc64-solaris.xml: New file.
12938 * features/sparc/sparc32-solaris.c: Generated.
12939 * features/sparc/sparc64-solaris.c: Generated.
12940 * sparc-tdep.h: Account for differences in target descriptions.
12941 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12942 (sparc32_register_type): Use target provided registers.
12943 (validate_tdesc_registers): New function.
12944 (sparc32_gdbarch_init): Use tdesc_has_registers.
12945 Set pseudoregister functions.
12946 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12947 (sparc64_register_type): Use target provided registers.
12948 (sparc64_init_abi): Set pseudoregister functions.
12950 2017-02-03 Tom Tromey <tom@tromey.com>
12953 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12954 with a single member.
12956 2017-02-03 Pedro Alves <palves@redhat.com>
12958 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12959 (cli_interp_base::~cli_interp_base): New.
12960 (cli_interp): New struct.
12961 (as_cli_interp): Cast the interp itself to cli_interp.
12962 (cli_interpreter_pre_command_loop): Rename to ...
12963 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12965 (cli_interpreter_init): Rename to ...
12966 (cli_interp::init): ... this. Remove 'self' parameter. Use
12967 boolean. Make extern.
12968 (cli_interpreter_resume): Rename to ...
12969 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12971 (cli_interpreter_suspend): Rename to ...
12972 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12974 (cli_interpreter_exec): Rename to ...
12975 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12977 (cli_interpreter_supports_command_editing): Rename to ...
12978 (cli_interp_base::supports_command_editing): ... this. Remove
12979 'interp' parameter. Make extern.
12980 (cli_ui_out): Rename to ...
12981 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12983 (cli_set_logging): Rename to ...
12984 (cli_interp_base::set_logging): ... this. Remove 'interp'
12985 parameter. Make extern.
12986 (cli_interp_procs): Delete.
12987 (cli_interp_factory): Adjust to use "new".
12988 * cli/cli-interp.h: Include "interps.h".
12989 (struct cli_interp_base): New struct.
12990 * interps.c (struct interp): Delete. Fields moved to interps.h.
12991 (interp_new): Delete.
12992 (interp::interp, interp::~interp): New.
12993 (interp_set): Use bool, and return void. Assume the interpreter
12994 has suspend, init and resume methods, and that the all return
12996 (set_top_level_interpreter): interp_set returns void.
12997 (interp_ui_out): Adapt.
12998 (current_interp_set_logging): Adapt.
12999 (interp_data): Delete.
13000 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
13001 (interp_exec): Adapt.
13002 (top_level_interpreter_data): Delete.
13003 * interps.h (interp_init_ftype, interp_resume_ftype)
13004 (interp_suspend_ftype, interp_exec_ftype)
13005 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
13006 (class interp): New.
13007 (interp_new): Delete.
13008 (interp_set): Now returns void. Use bool.
13009 (interp_data, top_level_interpreter_data): Delete.
13010 * mi/mi-common.h: Include interps.h.
13011 (class mi_interp): Inherit from interp. Define a ctor. Declare
13012 init, resume, suspect, exec, interp_ui_out, set_logging and
13013 pre_command_loop methods.
13014 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
13015 (mi_interpreter_init): Rename to ...
13016 (mi_interp::init): ... this. Remove the 'interp' parameter, use
13017 bool, return void and make extern. Adjust.
13018 (mi_interpreter_resume): ... Rename to ...
13019 (mi_interp::resume): ... this. Remove the 'data' parameter,
13020 return void and make extern. Adjust.
13021 (mi_interpreter_suspend): ... Rename to ...
13022 (mi_interp::suspend): ... this. Remove the 'data' parameter,
13023 return void and make extern. Adjust.
13024 (mi_interpreter_exec): ... Rename to ...
13025 (mi_interp::exec): ... this. Remove the 'data' parameter and make
13027 (mi_interpreter_pre_command_loop): ... Rename to ...
13028 (mi_interp::pre_command_loop): ... this. Remove the 'self'
13029 parameter and make extern.
13030 (mi_on_normal_stop_1): Adjust.
13031 (mi_ui_out): Rename to ...
13032 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
13033 parameter and make extern. Adjust.
13034 (mi_set_logging): Rename to ...
13035 (mi_interp::set_logging): ... this. Remove the 'interp'
13036 parameter and make extern. Adjust.
13037 (mi_interp_procs): Delete.
13038 (mi_interp_factory): Adjust to use 'new'.
13039 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
13040 (mi_print_exception, mi_execute_command, mi_load_progress):
13042 * tui/tui-interp.c (tui_interp): New class.
13043 (as_tui_interp): Return a tui_interp pointer.
13044 (tui_on_normal_stop, tui_on_signal_received)
13045 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13046 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13047 to use interp::interp_ui_out.
13048 (tui_init): Rename to ...
13049 (tui_interp::init): ... this. Remove the 'self' parameter, use
13050 bool, return void and make extern. Adjust.
13051 (tui_resume): Rename to ...
13052 (tui_interp::resume): ... this. Remove the 'data' parameter,
13053 return void and make extern. Adjust.
13054 (tui_suspend): Rename to ...
13055 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13056 return void and make extern. Adjust.
13057 (tui_ui_out): Rename to ...
13058 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13059 parameter, and make extern. Adjust.
13060 (tui_exec): Rename to ...
13061 (tui_interp::exec): ... this. Remove the 'data' parameter and
13063 (tui_interp_procs): Delete.
13064 (tui_interp_factory): Use "new".
13066 2017-02-02 Tom Tromey <tom@tromey.com>
13068 * rust-exp.y (ends_raw_string, space_then_number)
13069 (rust_identifier_start_p): Return bool.
13070 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13071 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13072 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13073 (rust_chartype_p): Return bool.
13074 (val_print_struct, rust_print_struct_def, rust_print_type):
13076 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13079 2017-02-02 Tom Tromey <tom@tromey.com>
13081 * rust-lang.c: Reindent.
13083 2017-02-02 Tom Tromey <tom@tromey.com>
13085 * rust-lang.h (rust_crate_for_block): Update.
13086 * rust-lang.c (rust_crate_for_block): Return std::string.
13087 (rust_get_disr_info): Use std:;string, not
13088 gdb::unique_xmalloc_ptr.
13089 * rust-exp.y (crate_name): Update.
13091 2017-02-02 Pedro Alves <palves@redhat.com>
13093 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13094 field out of gdb_disassembler_test and make it static.
13096 2017-02-02 Pedro Alves <palves@redhat.com>
13098 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13099 mi1_interp and mi_interp fields.
13101 2017-02-02 Pedro Alves <palves@redhat.com>
13103 * cli/cli-interp.c (struct saved_output_files, saved_output):
13104 Moved from cli/cli-logging.c.
13105 (cli_set_logging): New function.
13106 (cli_interp_procs): Install cli_set_logging.
13107 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13109 * cli/cli-logging.c (struct saved_output_files, saved_output):
13110 Moved to cli/cli-interp.c.
13111 (pop_output_files): Don't save outputs here.
13112 (make_logging_output): New function.
13113 (handle_redirections): Don't build tee nor save previous outputs
13115 * interps.c (current_interp_set_logging): Change prototype.
13116 Assume there's always a set_logging_proc method installed.
13117 * interps.h (interp_set_logging_ftype): Change prototype.
13118 (current_interp_set_logging): Change prototype and adjust comment.
13119 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13120 use make_logging_output.
13121 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
13122 2017-02-02 Pedro Alves <palves@redhat.com>
13124 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13126 (set_logging_overwrite): ... here.
13127 (logging_no_redirect_file): Delete.
13128 (set_logging_redirect): Don't handle redirection on the fly.
13129 Instead warn that "logging off" / "logging on" is necessary.
13130 (pop_output_files): Delete references to logging_no_redirect_file.
13131 (show_logging_command): Always speak in terms of what will happen
13132 once logging is reenabled.
13134 2017-02-02 Pedro Alves <palves@redhat.com>
13136 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13138 2017-02-02 Pedro Alves <palves@redhat.com>
13140 * disasm.c (gdb_pretty_print_insn): Rename to ...
13141 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13142 Remove gdbarch parameter. Adapt to clear the object's buffers
13143 instead of allocating new buffers, and to print using the object's
13144 gdb_disassembler instead of calling gdb_print_insn.
13145 (dump_insns): Use gdb_pretty_print_disassembler.
13146 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13147 (gdb_pretty_print_disassembler): New class.
13148 * record-btrace.c (btrace_insn_history): Use
13149 gdb_pretty_print_disassembler.
13151 2017-02-02 Pedro Alves <palves@redhat.com>
13153 * ada-lang.c (type_as_string): Use string_file.
13154 * ada-valprint.c (ada_print_floating): Use string_file.
13155 * ada-varobj.c (ada_varobj_scalar_image)
13156 (ada_varobj_get_value_image): Use string_file.
13157 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13158 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13159 * breakpoint.c (update_inserted_breakpoint_locations)
13160 (insert_breakpoint_locations, reattach_breakpoints)
13161 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13162 (print_it_watchpoint): Use string_file.
13163 (save_breakpoints): Use stdio_file.
13164 * c-exp.y (oper): Use string_file.
13165 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13167 (pop_output_files): Use delete.
13168 (handle_redirections): Use stdio_file and tee_file.
13169 * cli/cli-setshow.c (do_show_command): Use string_file.
13170 * compile/compile-c-support.c (c_compute_program): Use
13172 * compile/compile-c-symbols.c (generate_vla_size): Take a
13173 'string_file &' instead of a 'ui_file *'.
13174 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13175 of a 'ui_file *'. Use string_file.
13176 (generate_c_for_variable_locations): Take a 'string_file &'
13177 instead of a 'ui_file *'.
13178 * compile/compile-internal.h (generate_c_for_for_one_variable):
13179 Take a 'string_file &' instead of a 'ui_file *'.
13180 * compile/compile-loc2c.c (push, pushf, unary, binary)
13181 (print_label, pushf_register_address, pushf_register)
13182 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13183 'ui_file *'. Adjust.
13184 * compile/compile.c (compile_to_object): Use string_file.
13185 * compile/compile.h (compile_dwarf_expr_to_c)
13186 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13188 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13189 (replace_typedefs_qualified_name): Use string_file and
13191 * disasm.c (gdb_pretty_print_insn): Use string_file.
13192 (gdb_disassembly): Adjust reference the null_stream global.
13193 (do_ui_file_delete): Delete.
13194 (gdb_insn_length): Use null_stream.
13195 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13196 * dwarf2loc.c (dwarf2_compile_property_to_c)
13197 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13198 'string_file &' instead of a 'ui_file *'.
13199 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13200 * dwarf2read.c (do_ui_file_peek_last): Delete.
13201 (dwarf2_compute_name): Use string_file.
13202 * event-top.c (gdb_setup_readline): Use stdio_file.
13203 * gdbarch.sh (verify_gdbarch): Use string_file.
13204 * gdbtypes.c (safe_parse_type): Use null_stream.
13205 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13207 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13208 'string_file *' instead of a 'ui_file *'.
13209 (gdbscm_arch_disassemble): Use string_file.
13210 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13211 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13212 inherits from ui_file.
13213 (ioscm_file_port_delete, ioscm_file_port_rewind)
13214 (ioscm_file_port_put): Delete.
13215 (ioscm_file_port_write): Rename to ...
13216 (ioscm_file_port::write): ... this. Remove file_port_magic
13218 (ioscm_file_port_new): Delete.
13219 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13221 * guile/scm-type.c (tyscm_type_name): Use string_file.
13222 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13224 * infcmd.c (print_return_value_1): Use string_file.
13225 * infrun.c (print_target_wait_results): Use string_file.
13226 * language.c (add_language): Use string_file.
13227 * location.c (explicit_to_string_internal): Use string_file.
13228 * main.c (captured_main_1): Use null_file.
13229 * maint.c (maintenance_print_architecture): Use stdio_file.
13230 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13231 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13232 event_channel>: Change type to mi_console_file pointer.
13233 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13234 (mi_console_file_delete): Delete.
13235 (struct mi_console_file): Delete.
13236 (mi_console_file_magic): Delete.
13237 (mi_console_file_new): Delete.
13238 (mi_console_file::mi_console_file): New.
13239 (mi_console_file_delete): Delete.
13240 (mi_console_file_fputs): Delete.
13241 (mi_console_file::write): New.
13242 (mi_console_raw_packet): Delete.
13243 (mi_console_file::flush): New.
13244 (mi_console_file_flush): Delete.
13245 (mi_console_set_raw): Rename to ...
13246 (mi_console_file::set_raw): ... this.
13247 * mi/mi-console.h (class mi_console_file): New class.
13248 (mi_console_file_new, mi_console_set_raw): Delete.
13249 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13250 (mi_set_logging): Use delete and tee_file. Adjust.
13251 * mi/mi-main.c (output_register): Use string_file.
13252 (mi_cmd_data_evaluate_expression): Use string_file.
13253 (mi_cmd_data_read_memory): Use string_file.
13254 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13255 * mi/mi-out.c (mi_ui_out::main_stream): New.
13256 (mi_ui_out::rewind): Use main_stream and
13258 (mi_ui_out::put): Use main_stream and string_file.
13259 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13260 Allocate a 'string_file' instead.
13261 (mi_out_new): Don't allocate a mem_fileopen stream here.
13262 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13263 (mi_ui_out::main_stream): Declare method.
13264 * printcmd.c (eval_command): Use string_file.
13265 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13266 * python/py-arch.c (archpy_disassemble): Use string_file.
13267 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13268 * python/py-frame.c (frapy_str): Use string_file.
13269 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13271 * python/py-type.c (typy_str): Use string_file.
13272 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13273 * python/py-value.c (valpy_str): Use string_file.
13274 * record-btrace.c (btrace_insn_history): Use string_file.
13275 * regcache.c (regcache_print): Use stdio_file.
13276 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13277 * remote.c (escape_buffer): Use string_file.
13278 * rust-lang.c (rust_get_disr_info): Use string_file.
13279 * serial.c (serial_open_ops_1): Use stdio_file.
13280 (do_serial_close): Use delete.
13281 * stack.c (print_frame_arg): Use string_file.
13282 (print_frame_args): Remove local mem_fileopen stream, not used.
13283 (print_frame): Use string_file.
13284 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13285 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13286 Take a 'string_file *' instead of a 'ui_file *'.
13287 * top.c (new_ui): Use stdio_file and stderr_file.
13288 (free_ui): Use delete.
13289 (execute_command_to_string): Use string_file.
13290 (quit_confirm): Use string_file.
13291 * tracepoint.c (collection_list::append_exp): Use string_file.
13292 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13293 * tui/tui-file.c: Don't include "ui-file.h".
13294 (enum streamtype, struct tui_stream): Delete.
13295 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13296 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13297 (tui_file::tui_file): New method.
13298 (tui_file_fputs): Delete.
13299 (tui_file_get_strbuf): Delete.
13300 (tui_file::puts): New method.
13301 (tui_file_adjust_strbuf): Delete.
13302 (tui_file_flush): Delete.
13303 (tui_file::flush): New method.
13304 * tui/tui-file.h: Tweak intro comment.
13306 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13307 (tui_file_adjust_strbuf): Delete declarations.
13308 (class tui_file): New class.
13309 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13310 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13311 (tui_register_format): Use string_stream.
13312 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13313 (tui_get_function_from_frame): Use string_file.
13314 * typeprint.c (type_to_string): Use string_file.
13315 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13316 (null_stream): New global.
13317 (ui_file_delete): Delete.
13318 (ui_file::ui_file): New.
13319 (null_file_isatty): Delete.
13320 (ui_file::~ui_file): New.
13321 (null_file_rewind): Delete.
13322 (ui_file::printf): New.
13323 (null_file_put): Delete.
13324 (null_file_flush): Delete.
13325 (ui_file::putstr): New.
13326 (null_file_write): Delete.
13327 (ui_file::putstrn): New.
13328 (null_file_read): Delete.
13329 (ui_file::putc): New.
13330 (null_file_fputs): Delete.
13331 (null_file_write_async_safe): Delete.
13332 (ui_file::vprintf): New.
13333 (null_file_delete): Delete.
13334 (null_file::write): New.
13335 (null_file_fseek): Delete.
13336 (null_file::puts): New.
13337 (ui_file_data): Delete.
13338 (null_file::write_async_safe): New.
13339 (gdb_flush, ui_file_isatty): Adjust.
13340 (ui_file_put, ui_file_rewind): Delete.
13341 (ui_file_write): Adjust.
13342 (ui_file_write_for_put): Delete.
13343 (ui_file_write_async_safe, ui_file_read): Adjust.
13344 (ui_file_fseek): Delete.
13345 (fputs_unfiltered): Adjust.
13346 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13347 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13348 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13349 (set_ui_file_data): Delete.
13350 (string_file::~string_file, string_file::write)
13351 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13352 (do_ui_file_as_string, ui_file_as_string): Delete.
13353 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13354 (struct mem_file): Delete.
13355 (mem_file_new): Delete.
13356 (stdio_file::stdio_file): New.
13357 (mem_file_delete): Delete.
13358 (stdio_file::stdio_file): New.
13359 (mem_fileopen): Delete.
13360 (stdio_file::~stdio_file): New.
13361 (mem_file_rewind): Delete.
13362 (stdio_file::set_stream): New.
13363 (mem_file_put): Delete.
13364 (stdio_file::open): New.
13365 (mem_file_write): Delete.
13366 (stdio_file_magic, struct stdio_file): Delete.
13367 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13368 (stdio_file::flush): New.
13369 (stdio_file_read): Rename to ...
13370 (stdio_file::read): ... this. Adjust.
13371 (stdio_file_write): Rename to ...
13372 (stdio_file::write): ... this. Adjust.
13373 (stdio_file_write_async_safe): Rename to ...
13374 (stdio_file::write_async_safe) ... this. Adjust.
13375 (stdio_file_fputs): Rename to ...
13376 (stdio_file::puts) ... this. Adjust.
13377 (stdio_file_isatty): Delete.
13378 (stdio_file_fseek): Delete.
13379 (stdio_file::isatty): New.
13380 (stderr_file_write): Rename to ...
13381 (stderr_file::write) ... this. Adjust.
13382 (stderr_file_fputs): Rename to ...
13383 (stderr_file::puts) ... this. Adjust.
13384 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13385 (stderr_file::stderr_file): New.
13386 (tee_file_magic): Delete.
13387 (struct tee_file): Delete.
13388 (tee_file::tee_file): New.
13389 (tee_file_new): Delete.
13390 (tee_file::~tee_file): New.
13391 (tee_file_delete): Delete.
13392 (tee_file_flush): Rename to ...
13393 (tee_file::flush): ... this. Adjust.
13394 (tee_file_write): Rename to ...
13395 (tee_file::write): ... this. Adjust.
13396 (tee_file::write_async_safe): New.
13397 (tee_file_fputs): Rename to ...
13398 (tee_file::puts): ... this. Adjust.
13399 (tee_file_isatty): Rename to ...
13400 (tee_file::isatty): ... this. Adjust.
13401 * ui-file.h (struct obstack, struct ui_file): Don't
13403 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13404 (ui_file_write_ftype)
13405 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13406 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13407 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13408 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13409 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13410 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13411 (set_ui_file_fseek): Delete.
13412 (ui_file_data, ui_file_delete, ui_file_rewind)
13413 (struct ui_file): New.
13415 (class null_file): New.
13416 (null_stream): Declare.
13417 (ui_file_write_for_put, ui_file_put): Delete.
13418 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13420 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13421 (gdb_fopen, tee_file_new): Delete.
13422 (struct string_file): New.
13423 (struct stdio_file): New.
13424 (stdio_file_up): New.
13425 (struct stderr_file): New.
13426 (class tee_file): New.
13427 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13428 of a 'ui_file *'. Adjust.
13429 * ui-out.h (class ui_out) <field_stream>: Likewise.
13430 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13431 (null_stream): Delete.
13432 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13434 * utils.h (struct ui_file): Delete forward declaration..
13435 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13436 (error_stream): Take a 'string_file &' instead of a
13438 * varobj.c (varobj_value_get_print_value): Use string_file.
13439 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13440 * gdbarch.c: Regenerate.
13442 2017-02-02 Pedro Alves <palves@redhat.com>
13444 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13445 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13446 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13447 Adjust to call gdb_print_insn instead of
13448 gdb_disassembler::print_insn.
13449 (dump_insns, do_mixed_source_and_assembly_deprecated)
13450 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13451 'gdbarch' parameter. Remove gdb_disassembler parameter.
13452 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13453 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13455 (gdb_pretty_print_insn): Re-add declaration.
13456 * record-btrace.c (btrace_insn_history): Don't allocate a
13457 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13459 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13461 * disasm.h (gdb_disassembly): Remove file_string parameter.
13462 * disasm.c (gdb_disassembly): Likewise.
13463 * cli/cli-cmds.c (print_disassembly): Adapt.
13464 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13465 * stack.c (do_gdb_disassembly): Likewise.
13467 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13469 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13470 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13471 targets. And if the implicit value is longer than needed, extract
13472 the first bytes instead of the "least significant" ones.
13474 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13476 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13477 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13478 (btrace_fetch): Assert can_access_registers_ptid.
13479 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13480 validate_registers_access.
13482 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13484 * gdbthread.h (can_access_registers_ptid): New.
13485 * thread.c (can_access_registers_ptid): New.
13487 2017-02-01 Pedro Alves <palves@redhat.com>
13489 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13491 2017-01-31 Pedro Alves <palves@redhat.com>
13493 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13496 2017-01-31 Pedro Alves <palves@redhat.com>
13498 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13501 2017-01-31 Pedro Alves <palves@redhat.com>
13503 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13505 2017-01-31 Pedro Alves <palves@redhat.com>
13507 * common/scoped_restore.h
13508 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13509 change the value's parameter type to T2.
13510 (make_scoped_restore): Likewise.
13512 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13513 Richard Henderson <rth@redhat.com>
13515 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13516 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13517 GS_BASE for older kernels.
13518 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13519 GS_BASE for older kernels.
13520 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13521 and GS_BASE to the offset table.
13522 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13523 system register group.
13524 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13526 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13528 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13529 AMD64_GSBASE_REGNUM.
13530 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13531 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13532 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13533 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13534 i386/64bit-segments.xml in those rules.
13535 * features/i386/64bit-segments.xml: New file.
13536 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13537 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13538 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13539 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13540 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13541 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13542 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13543 * features/i386/amd64-avx-linux.c: Regenerated.
13544 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13545 * features/i386/amd64-avx-mpx.c: Regenerated.
13546 * features/i386/amd64-avx512-linux.c: Regenerated.
13547 * features/i386/amd64-linux.c: Regenerated.
13548 * features/i386/amd64-mpx-linux.c: Regenerated.
13549 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13550 * features/i386/i386-avx-mpx.c: Regenerated.
13551 * features/i386/x32-avx-linux.c: Regenerated.
13552 * features/i386/x32-avx512-linux.c: Regenerated.
13553 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13554 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13555 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13556 * regformats/i386/amd64-linux.dat: Regenerated.
13557 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13558 * regformats/i386/x32-avx-linux.dat: Regenerated.
13559 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13560 * regformats/i386/x32-linux.dat: Regenerated.
13562 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13564 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13565 Set to AMD64_NUM_REGS.
13567 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13569 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13570 that checks validity of a register number.
13572 2017-01-27 Kees Cook <keescook@google.com>
13574 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13575 fetch_fpregs if target has fpa registers.
13576 (arm_linux_store_inferior_registers): Call store_fpregs if target
13579 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13581 * cris-tdep.c (cris_gdbarch_init): Remove check for
13582 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13584 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13586 * corelow.c (get_core_register_section): Check for regset
13587 existence before checking for REGSET_VARIABLE_SIZE.
13589 2017-01-26 Yao Qi <yao.qi@linaro.org>
13590 Pedro Alves <palves@redhat.com>
13593 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13594 call memory_error, save memaddr instead.
13595 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13596 negative, cal memory_error.
13597 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13599 2017-01-26 Yao Qi <yao.qi@linaro.org>
13601 * disasm-selftests.c (memory_error_test): New function.
13602 (_initialize_disasm_selftests): Register memory_error_test.
13604 2017-01-26 Yao Qi <yao.qi@linaro.org>
13606 * Makefile.in (SFILES): Add disasm-selftests.c and
13608 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13609 * disasm-selftests.c: New file.
13610 * selftest-arch.c: New file.
13611 * selftest-arch.h: New file.
13613 2017-01-26 Yao Qi <yao.qi@linaro.org>
13615 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13616 to bfd_arch_mep. Don't return 0 if section is not
13617 found. Call print_insn_mep.
13619 2017-01-26 Pedro Alves <palves@redhat.com>
13620 Yao Qi <yao.qi@linaro.org>
13622 * arm-tdep.c: Include "disasm.h".
13623 (gdb_print_insn_arm): Update code to get gdbarch.
13624 * disasm.c (dis_asm_read_memory): Change it to
13625 gdb_disassembler::dis_asm_read_memory.
13626 (dis_asm_memory_error): Likewise.
13627 (dis_asm_print_address): Likewise.
13628 (gdb_pretty_print_insn): Change it to
13629 gdb_disassembler::pretty_print_insn.
13630 (dump_insns): Add one argument gdb_disassemlber. All
13632 (do_mixed_source_and_assembly_deprecated): Likewise.
13633 (do_mixed_source_and_assembly): Likewise.
13634 (do_assembly_only): Likewise.
13635 (gdb_disassembler::gdb_disassembler): New.
13636 (gdb_disassembler::print_insn): New.
13637 * disasm.h (class gdb_disassembler): New.
13638 (gdb_pretty_print_insn): Remove declaration.
13639 (gdb_disassemble_info): Likewise.
13640 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13641 (gdbscm_disasm_read_memory_worker): Update.
13642 (gdbscm_disasm_read_memory): Update.
13643 (gdbscm_disasm_memory_error): Remove.
13644 (gdbscm_disasm_print_address): Remove.
13645 (gdbscm_disassembler::gdbscm_disassembler): New.
13646 (gdbscm_print_insn_from_port): Update.
13647 * mips-tdep.c: Include disasm.h.
13648 (gdb_print_insn_mips): Update code to get gdbarch.
13649 * record-btrace.c (btrace_insn_history): Update.
13650 * spu-tdep.c: Include disasm.h.
13651 (struct spu_dis_asm_data): Remove.
13652 (struct spu_dis_asm_info): New.
13653 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13655 (gdb_print_insn_spu): Cast disassemble_info to
13658 2017-01-26 Yao Qi <yao.qi@linaro.org>
13660 * disasm.c (do_ui_file_delete): Delete.
13661 (gdb_insn_length): Move code creating stream to ...
13662 * utils.c (null_stream): ... here. New function.
13663 * utils.h (null_stream): Declare.
13665 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13667 * python/py-inferior.c (find_thread_object): Return directly
13668 from the loop. Remove "found" variable.
13670 2017-01-21 Joel Brobecker <brobecker@adacore.com>
13672 GDB 7.12.1 released.
13674 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13676 * python/py-function.c (fnpy_call): Reorder declarations to have
13677 the gdbpy_enter object declared first.
13678 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13680 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13683 * python/python-internal.h (PyMem_RawMalloc): Define for
13685 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13686 PyMem_RawMalloc instead of PyMem_Malloc.
13688 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13689 Luis Machado <lgustavo@codesourcery.com>
13691 * NEWS (New commands): Mention flash-erase.
13692 (New MI commands): Mention target-flash-erase.
13693 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13695 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13696 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13697 * target.c (flash_erase_command): New function.
13698 (initialize_targets): Add new flash-erase command.
13699 * target.h (flash_erase_command): New declaration.
13701 2017-01-20 Joel Brobecker <brobecker@adacore.com>
13703 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13704 HAVE_SYS_PROCFS_H is defined.
13706 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13708 * remote.c (struct cached_reg): Change data into a pointer.
13709 * (stop_reply_dtr): Free data pointers before deleting vector.
13710 (process_stop_reply): Likewise.
13711 (remote_parse_stop_reply): Allocate space for data
13713 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13715 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13717 (amd64_pseudo_register_read_value): Likewise.
13718 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13719 (store_register_using_P): Likewise.
13720 * regcache.c (regcache_xfer_part): Likewise.
13722 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13724 Split real and pseudo registers.
13725 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13726 (sparc32_pseudo_regnum): New enum.
13727 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13728 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13729 (SPARC32_CP0_REGISTERS): New macro.
13730 (sparc32_pseudo_register_name): New function.
13731 (sparc32_register_name): Use sparc32_pseudo_register_name.
13732 (sparc32_pseudo_register_type): New function.
13733 (sparc32_register_type): Use sparc32_pseudo_register_type.
13734 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13735 pseudo register numbers.
13736 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13737 (SPARC64_CP0_REGISTERS): New macro.
13738 (sparc64_pseudo_register_name): New function.
13739 (sparc64_register_name): Use sparc64_pseudo_register_name.
13740 (sparc64_pseudo_register_type): New function.
13741 (sparc64_register_type): Use sparc64_pseudo_register_type.
13742 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13743 pseudo register numbers.
13744 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13745 sparc64_store_arguments): Handle pseudo register numbers.
13747 2017-01-13 Yao Qi <yao.qi@linaro.org>
13749 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13750 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13752 (getpkt_or_notif_sane_1): Likewise.
13754 2017-01-13 Yao Qi <yao.qi@linaro.org>
13756 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13757 of CC. Pass "-x c++-header" instead of "-x c".
13759 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13761 * remote.c (remote_can_async_p): Update comment.
13763 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13765 * linux-nat.c (linux_nat_can_async_p): Update comment.
13767 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13769 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13771 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13773 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13775 2017-01-10 Tom Tromey <tom@tromey.com>
13777 * python/py-type.c (typy_legacy_template_argument): Update.
13778 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13779 ~demangle_parse_info): Declare new members.
13780 (cp_demangled_name_to_comp): Return unique_ptr.
13781 (cp_demangled_name_parse_free)
13782 (make_cleanup_cp_demangled_name_parse_free)
13783 (cp_new_demangle_parse_info): Remove.
13784 * cp-support.c (do_demangled_name_parse_free_cleanup)
13785 (make_cleanup_cp_demangled_name_parse_free): Remove.
13786 (inspect_type, cp_canonicalize_string_full)
13787 (cp_canonicalize_string): Update.
13788 (mangled_name_to_comp): Change return type.
13789 (cp_class_name_from_physname, method_name_from_physname)
13790 (cp_func_name, cp_remove_params): Update.
13791 * cp-name-parser.y (demangle_parse_info): New constructor, from
13792 cp_new_demangle_parse_info.
13793 (~demangle_parse_info): New destructor, from
13794 cp_demangled_name_parse_free.
13795 (cp_merge_demangle_parse_infos): Update.
13796 (cp_demangled_name_to_comp): Change return type.
13798 2017-01-10 Tom Tromey <tom@tromey.com>
13800 * top.c (prevent_dont_repeat): Change return type.
13801 * python/python.c (execute_gdb_command): Use std::string.
13803 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13804 * command.h (prevent_dont_repeat): Change return type.
13805 * breakpoint.c (bpstat_do_actions_1): Update.
13807 2017-01-10 Tom Tromey <tom@tromey.com>
13809 * value.h (scoped_value_mark::~scoped_value_mark): Call
13811 (scoped_value_mark::free_to_mark): New method.
13812 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13815 2017-01-10 Tom Tromey <tom@tromey.com>
13817 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13818 (valpy_reference_value, valpy_const_value, valpy_get_address)
13819 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13820 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13821 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13822 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13824 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13825 * value.h (scoped_value_mark): New class.
13827 2017-01-10 Tom Tromey <tom@tromey.com>
13829 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13830 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13831 * psymtab.c (discard_psymtabs_upto): Remove.
13832 (make_cleanup_discard_psymtabs): Remove.
13833 (struct psymtab_state): Remove.
13835 2017-01-10 Tom Tromey <tom@tromey.com>
13837 * record-full.c (record_full_save_cleanups): Remove.
13838 (record_full_save): Use gdb::unlinker.
13839 * gcore.c (do_bfd_delete_cleanup): Remove.
13840 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13842 * dwarf2read.c (unlink_if_set): Remove.
13843 (write_psymtabs_to_index): Use gdb::unlinker.
13844 * common/gdb_unlinker.h: New file.
13846 2017-01-10 Tom Tromey <tom@tromey.com>
13848 * windows-tdep.c (windows_xfer_shared_library): Update.
13849 * windows-nat.c (windows_make_so): Update.
13850 * utils.h (make_cleanup_bfd_unref): Remove.
13851 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13852 * symfile.h (symfile_bfd_open)
13853 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13854 * symfile.c (read_symbols, symbol_file_add)
13855 (separate_debug_file_exists): Update.
13856 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13857 (generic_load, reread_symbols): Update.
13858 * symfile-mem.c (symbol_file_add_from_memory): Update.
13859 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13860 (spu_symbol_file_add_from_memory): Update.
13861 * solist.h (struct target_so_ops) <bfd_open>: Return
13863 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13864 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13866 (solib_map_sections, reload_shared_libraries_1): Update.
13867 * solib-svr4.c (enable_break): Update.
13868 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13869 * solib-frv.c (enable_break2): Update.
13870 * solib-dsbt.c (enable_break): Update.
13871 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13873 (darwin_solib_get_all_image_info_addr_at_init): Update.
13874 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13875 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13876 * record-full.c (record_full_save): Update.
13877 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13878 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13879 * minidebug.c (find_separate_debug_file_in_section): Return
13881 * machoread.c (macho_add_oso_symfile): Change abfd to
13883 (macho_symfile_read_all_oso): Update.
13884 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13885 (macho_symfile_read): Update.
13886 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13887 (jit_bfd_try_read_symtab): Update.
13888 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13889 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13890 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13892 (gdb_bfd_ref_policy): New struct.
13893 (gdb_bfd_ref_ptr): New typedef.
13894 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13895 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13896 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13898 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13899 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13900 (gcore_command): Update.
13901 * exec.c (exec_file_attach): Update.
13902 * elfread.c (elf_symfile_read): Update.
13903 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13904 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13905 (open_and_init_dwo_file): Update.
13906 (open_dwp_file): Return gdb_bfd_ref_ptr.
13907 (open_and_init_dwp_file): Update.
13908 * corelow.c (core_open): Update.
13909 * compile/compile-object-load.c (compile_object_load): Update.
13910 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13911 * coffread.c (coff_symfile_read): Update.
13912 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13913 gdb_bfd_ref_ptr. Rename.
13914 (dump_bfd_file, restore_command): Update.
13915 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13916 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13917 (find_separate_debug_file_by_buildid): Update.
13919 2017-01-10 Tom Tromey <tom@tromey.com>
13921 * common/gdb_ref_ptr.h: New file.
13922 * python/py-ref.h (struct gdbpy_ref_policy): New.
13923 (gdbpy_ref): Now a typedef.
13925 2017-01-10 Tom Tromey <tom@tromey.com>
13927 * utils.h (make_cleanup_htab_delete): Don't declare.
13928 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13930 * linespec.c (decode_compound_collector): Add constructor,
13932 (lookup_prefix_sym): Remove cleanup.
13933 (symtab_collector): Add constructor, destructor.
13934 (collect_symtabs_from_filename): Remove cleanup.
13935 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13936 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13938 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13939 * dwarf2read.c (dw2_expand_symtabs_matching)
13940 (dw2_map_symbol_filenames, dwarf_decode_macros)
13941 (write_psymtabs_to_index): Use htab_up.
13942 * dwarf2loc.c (func_verify_no_selftailcall)
13943 (call_site_find_chain_1, func_verify_no_selftailcall)
13944 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13945 std::vector, gdb::unique_xmalloc_ptr.
13946 (call_sitep): Remove typedef.
13947 (dwarf2_locexpr_baton_eval): Remove unused variable.
13949 2017-01-10 Tom Tromey <tom@tromey.com>
13951 * python/python-internal.h (make_cleanup_py_decref)
13952 (make_cleanup_py_xdecref): Don't declare.
13953 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13954 (py_xdecref, make_cleanup_py_xdecref): Remove.
13956 2017-01-10 Tom Tromey <tom@tromey.com>
13958 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13959 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13961 2017-01-10 Tom Tromey <tom@tromey.com>
13963 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13965 2017-01-10 Tom Tromey <tom@tromey.com>
13967 * python/py-utils.c (unicode_to_encoded_string)
13968 (python_string_to_target_string)
13969 (python_string_to_target_python_string)
13970 (python_string_to_host_string, gdbpy_obj_to_string)
13971 (get_addr_from_python): Use gdbpy_ref.
13973 2017-01-10 Tom Tromey <tom@tromey.com>
13975 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13978 2017-01-10 Tom Tromey <tom@tromey.com>
13980 * python/python.c (eval_python_command, gdbpy_decode_line)
13981 (gdbpy_run_events, gdbpy_start_type_printers)
13982 (gdbpy_apply_type_printers): Use gdbpy_ref.
13984 2017-01-10 Tom Tromey <tom@tromey.com>
13986 * python/py-param.c (get_doc_string, compute_enum_values): Use
13989 2017-01-10 Tom Tromey <tom@tromey.com>
13991 * python/py-inferior.c (find_thread_object, build_inferior_list):
13994 2017-01-10 Tom Tromey <tom@tromey.com>
13996 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13998 2017-01-10 Tom Tromey <tom@tromey.com>
14000 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
14003 2017-01-10 Tom Tromey <tom@tromey.com>
14005 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
14007 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
14010 2017-01-10 Tom Tromey <tom@tromey.com>
14012 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14015 2017-01-10 Tom Tromey <tom@tromey.com>
14017 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
14018 decref results of PyArg_ParseTupleAndKeywords.
14020 2017-01-10 Tom Tromey <tom@tromey.com>
14022 * python/python.c (python_run_simple_file): Use
14023 unique_xmalloc_ptr, gdbpy_ref.
14025 2017-01-10 Tom Tromey <tom@tromey.com>
14027 * python/py-prettyprint.c (print_stack_unless_memory_error)
14028 (print_string_repr, print_children): Use gdbpy_ref.
14029 (dummy_python_frame): New class.
14030 (dummy_python_frame::dummy_python_frame): Rename from
14031 push_dummy_python_frame.
14032 (py_restore_tstate): Remove.
14034 2017-01-10 Tom Tromey <tom@tromey.com>
14036 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14038 2017-01-10 Tom Tromey <tom@tromey.com>
14040 * python/python.c (ensure_python_env, restore_python_env):
14042 * python/python-internal.h (ensure_python_env): Don't declare.
14043 * varobj.h (varobj_ensure_python_env): Don't declare.
14044 * varobj.c (varobj_ensure_python_env): Remove.
14046 2017-01-10 Tom Tromey <tom@tromey.com>
14048 * varobj.c (varobj_value_get_print_value): Use
14049 gdbpy_enter_varobj.
14051 2017-01-10 Tom Tromey <tom@tromey.com>
14053 * python/py-prettyprint.c (print_string_repr, print_children):
14055 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14057 * varobj.c (varobj_value_get_print_value): Update.
14058 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14060 2017-01-10 Tom Tromey <tom@tromey.com>
14062 * varobj.c (varobj_get_display_hint)
14063 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14064 (varobj_set_visualizer, free_variable): Use
14065 gdbpy_enter_varobj.
14067 2017-01-10 Tom Tromey <tom@tromey.com>
14069 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14070 (do_finish_initialization): New function. Use gdbpy_ref.
14071 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14072 do_finish_initialization.
14074 2017-01-10 Tom Tromey <tom@tromey.com>
14076 * python/py-param.c (get_set_value, get_show_value): Use
14077 gdbpy_enter, gdbpy_ref.
14079 2017-01-10 Tom Tromey <tom@tromey.com>
14081 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14083 2017-01-10 Tom Tromey <tom@tromey.com>
14085 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14087 2017-01-10 Tom Tromey <tom@tromey.com>
14089 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14090 Use gdbpy_enter_varobj.
14092 2017-01-10 Tom Tromey <tom@tromey.com>
14094 * varobj.c (gdbpy_enter_varobj): New constructor.
14095 * python/python-internal.h (gdbpy_enter_varobj): New class.
14096 * python/py-varobj.c (py_varobj_get_iterator): Use
14097 gdbpy_enter_varobj.
14099 2017-01-10 Tom Tromey <tom@tromey.com>
14101 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14102 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14103 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14104 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14105 unique_xmalloc_ptr.
14106 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14108 2017-01-10 Tom Tromey <tom@tromey.com>
14110 * python/py-xmethods.c (invoke_match_method): Use
14113 2017-01-10 Tom Tromey <tom@tromey.com>
14115 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14116 gdbpy_enter, gdbpy_ref.
14118 2017-01-10 Tom Tromey <tom@tromey.com>
14120 * python/python.c (python_interactive_command): Use gdbpy_enter.
14122 2017-01-10 Tom Tromey <tom@tromey.com>
14124 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14127 2017-01-10 Tom Tromey <tom@tromey.com>
14129 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14130 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14132 2017-01-10 Tom Tromey <tom@tromey.com>
14134 * utils.h (htab_deleter): New struct.
14135 (htab_up): New typedef.
14136 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14137 gdbpy_enter, gdbpy_ref, htab_up.
14139 2017-01-10 Tom Tromey <tom@tromey.com>
14141 * python/py-unwind.c (pending_frame_invalidate): Remove.
14142 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14144 2017-01-10 Tom Tromey <tom@tromey.com>
14146 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14147 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14149 2017-01-10 Tom Tromey <tom@tromey.com>
14151 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14153 2017-01-10 Tom Tromey <tom@tromey.com>
14155 * python/python.c (gdbpy_eval_from_control_command)
14156 (gdbpy_source_script, gdbpy_run_events)
14157 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14158 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14161 2017-01-10 Tom Tromey <tom@tromey.com>
14163 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14165 2017-01-10 Tom Tromey <tom@tromey.com>
14167 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14169 2017-01-10 Tom Tromey <tom@tromey.com>
14171 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14172 (python_on_inferior_call_pre, python_on_inferior_call_post)
14173 (python_on_memory_change, python_on_register_change)
14174 (python_inferior_exit, python_new_objfile, add_thread_object)
14175 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14177 2017-01-10 Tom Tromey <tom@tromey.com>
14179 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14180 (bpfinishpy_handle_exit): Use gdbpy_enter.
14182 2017-01-10 Tom Tromey <tom@tromey.com>
14184 * python/py-cmd.c (cmdpy_destroyer)
14185 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14188 2017-01-10 Tom Tromey <tom@tromey.com>
14190 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14192 (gdbpy_breakpoint_has_cond): Likewise.
14194 2017-01-10 Tom Tromey <tom@tromey.com>
14196 * python/python.c (gdbpy_enter): New constructor.
14197 (~gdbpy_enter): New destructor.
14198 (restore_python_env, ensure_python_env): Rewrite.
14199 * python/python-internal.h (gdbpy_enter): New class.
14201 2017-01-10 Tom Tromey <tom@tromey.com>
14203 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14205 2017-01-10 Tom Tromey <tom@tromey.com>
14207 * python/py-value.c (value_has_field, get_field_flag)
14208 (get_field_type, valpy_getitem, convert_value_from_python): Use
14211 2017-01-10 Tom Tromey <tom@tromey.com>
14213 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14216 2017-01-10 Tom Tromey <tom@tromey.com>
14218 * python/py-prettyprint.c (search_pp_list)
14219 (find_pretty_printer_from_objfiles)
14220 (find_pretty_printer_from_progspace)
14221 (find_pretty_printer_from_gdb, find_pretty_printer)
14222 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14225 2017-01-10 Tom Tromey <tom@tromey.com>
14227 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14229 2017-01-10 Tom Tromey <tom@tromey.com>
14231 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14232 (ltpy_get_all_source_lines): Use gdbpy_ref.
14234 2017-01-10 Tom Tromey <tom@tromey.com>
14236 * python/py-framefilter.c (extract_sym, extract_value)
14237 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14240 2017-01-10 Tom Tromey <tom@tromey.com>
14242 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14244 2017-01-10 Tom Tromey <tom@tromey.com>
14246 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14248 2017-01-10 Tom Tromey <tom@tromey.com>
14250 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14253 2017-01-10 Tom Tromey <tom@tromey.com>
14255 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14257 2017-01-10 Tom Tromey <tom@tromey.com>
14259 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14260 (typy_range): Use gdbpy_ref.
14262 2017-01-10 Tom Tromey <tom@tromey.com>
14264 * python/py-threadevent.c (create_thread_event_object): Use
14266 * python/py-stopevent.c (create_stop_event_object): Simplify.
14267 (emit_stop_event): Use gdbpy_ref.
14268 * python/py-signalevent.c (create_signal_event_object): Use
14270 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14271 (emit_new_objfile_event, create_clear_objfiles_event_object)
14272 (emit_clear_objfiles_event): Use gdbpy_ref.
14273 * python/py-infevents.c (create_inferior_call_event_object)
14274 (create_register_changed_event_object)
14275 (create_memory_changed_event_object, emit_inferior_call_event)
14276 (emit_memory_changed_event, emit_register_changed_event): Use
14278 * python/py-exitedevent.c (create_exited_event_object)
14279 (emit_exited_event): Use gdbpy_ref.
14280 * python/py-event.h (evpy_emit_event): Remove
14281 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14282 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14283 * python/py-continueevent.c (emit_continue_event): Use
14285 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14286 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14288 * python/py-bpevent.c (create_breakpoint_event_object): Use
14291 2017-01-10 Tom Tromey <tom@tromey.com>
14293 * python/py-ref.h: New file.
14295 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14297 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14299 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14300 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14301 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14302 * ui-out.c (ui_out::redirect): Likewise.
14303 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14304 * cli/cli-logging.c (set_logging_redirect): Update call site of
14306 (handle_redirections): Likewise.
14307 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14308 * top.c (execute_command_to_string): Likewise.
14309 * utils.c (do_ui_out_redirect_pop): Likewise.
14311 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14313 * stack.c (_initialize_stack): Update "frame" command help message.
14315 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14317 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14319 2017-01-06 Yao Qi <yao.qi@linaro.org>
14321 * x86-linux-nat.h: Include gdb_proc_service.h.
14323 2017-01-06 Yao Qi <yao.qi@linaro.org>
14325 * ser-base.h: Include serial.h.
14327 2017-01-06 Yao Qi <yao.qi@linaro.org>
14329 * ppc-linux-tdep.h: Include ppc-tdep.h.
14331 2017-01-06 Yao Qi <yao.qi@linaro.org>
14333 * nat/amd64-linux-siginfo.h: Include signal.h.
14335 2017-01-06 Yao Qi <yao.qi@linaro.org>
14337 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14339 2017-01-06 Yao Qi <yao.qi@linaro.org>
14341 * mi/mi-parse.h: Include mi-cmds.h.
14343 2017-01-06 Yao Qi <yao.qi@linaro.org>
14345 * inf-loop.c: Don't include "target.h".
14346 * inf-loop.h: Include it here.
14348 2017-01-06 Yao Qi <yao.qi@linaro.org>
14350 * dfp.h: Include "dboulest.h" and "expression.h".
14352 2017-01-06 Yao Qi <yao.qi@linaro.org>
14354 * ax-gdb.h: Include "ax.h".
14356 2017-01-06 Yao Qi <yao.qi@linaro.org>
14358 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14359 with nat/gdb_ptrace.h.
14361 2017-01-05 Yao Qi <yao.qi@linaro.org>
14363 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14365 (mips64_fbsd_sigframe_init): Likewise.
14367 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14369 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14370 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14372 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14374 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14375 * NEWS: Mention new FreeBSD/mips native configuration.
14376 * config/mips/fbsd.mh: New file.
14377 * configure.host: Add mips*-*-freebsd*.
14378 * mips-fbsd-nat.c: New file.
14380 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14382 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14383 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14384 * NEWS: Mention new FreeBSD/mips target.
14385 * configure.tgt: Add mips*-*-freebsd*.
14386 * mips-fbsd-tdep.c: New file.
14387 * mips-fbsd-tdep.h: New file.
14389 2017-01-04 Yao Qi <yao.qi@linaro.org>
14391 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14392 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14394 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14396 Update copyright year range in all GDB files.
14398 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14400 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
14402 For older changes see ChangeLog-2016.
14408 version-control: never