1 2017-10-02 Tom Tromey <tom@tromey.com>
4 * rust-lang.c (rust_val_print_str): New function.
5 (val_print_struct): Call it.
6 (rust_subscript): Preserve name of slice type.
8 2017-10-02 Tom Tromey <tom@tromey.com>
10 * rust-lang.c (rust_subscript): Handle slices in
11 EVAL_AVOID_SIDE_EFFECTS case.
13 2017-10-02 Tom Tromey <tom@tromey.com>
15 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
17 2017-10-02 Tom Tromey <tom@tromey.com>
19 * rust-lang.h (rust_slice_type): Add "extern".
21 2017-10-02 Tom Tromey <tom@tromey.com>
22 Pedro Alves <palves@redhat.com>
24 * ada-lang.h (ada_exc_info::operator<): Make const.
25 (ada_exc_info::operator==): Make const.
26 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
29 2017-09-29 Tom Tromey <tom@tromey.com>
31 * target.c (read_whatever_is_readable): Change type of "result".
33 (free_memory_read_result_vector): Remove.
34 (read_memory_robust): Change return type. Update.
35 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
37 * target.h (memory_read_result_s): Remove typedef.
38 (free_memory_read_result_vector): Remove.
39 (read_memory_robust): Return std::vector.
41 2017-09-29 Tom Tromey <tom@tromey.com>
43 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
45 2017-09-29 Tom Tromey <tom@tromey.com>
47 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
48 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
49 operator< and operator==.
50 (ada_exceptions_list): Return a std::vector.
51 * ada-lang.c (ada_exc_info::operator<): Rename from
52 compare_ada_exception_info.
53 (ada_exc_info::operator==): New.
54 (sort_remove_dups_ada_exceptions_list): Change type of
56 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
57 (ada_add_global_exceptions): Likewise.
58 (ada_exceptions_list_1): Return a std::vector.
59 (ada_exceptions_list): Likewise.
61 2017-09-29 Tom Tromey <tom@tromey.com>
63 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
65 (print_one_inferior): Update.
66 (free_vector_of_ints): Remove.
67 (list_available_thread_groups): Change "ids" to std::set.
68 (mi_cmd_list_thread_groups): Update.
69 (struct collect_cores_data) <core>: Now a std::set.
70 (collect_cores): Update.
72 (print_one_inferior): Update.
74 2017-09-29 Tom Tromey <tom@tromey.com>
76 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
77 (mi_execute_async_cli_command): Likewise.
78 (mi_cmd_trace_frame_collected): Use field_fmt.
80 2017-09-29 Tom Tromey <tom@tromey.com>
82 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
85 2017-09-29 Tom Tromey <tom@tromey.com>
87 * mi/mi-parse.c (mi_parse): Remove unused declaration.
89 2017-09-29 Tom Tromey <tom@tromey.com>
91 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
93 2017-09-29 Tom Tromey <tom@tromey.com>
95 * varobj.h (varobj_gen_name): Return std::string.
96 * varobj.c (varobj_gen_name): Return std::string.
97 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
98 (mi_cmd_var_delete): Don't copy "name".
100 2017-09-29 Tom Tromey <tom@tromey.com>
102 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
103 (mi_cmd_break_insert_1): Update.
105 2017-09-29 Tom Tromey <tom@tromey.com>
107 * target.h (make_scoped_defer_target_commit_resume): Update.
108 * target.c (make_scoped_defer_target_commit_resume): Rename from
109 make_cleanup_defer_target_commit_resume. Return a
111 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
113 2017-09-29 Tom Tromey <tom@tromey.com>
115 * main.c (captured_main_1): Remove unused declaration.
116 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
118 2017-09-29 Tom Tromey <tom@tromey.com>
120 * symtab.c (search_symbols): Remove unused outer cleanup.
121 (make_source_files_completion_list): Remove unused declaration.
123 2017-09-29 Tom Tromey <tom@tromey.com>
125 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
127 2017-09-29 Tom Tromey <tom@tromey.com>
129 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
132 2017-09-29 Tom Tromey <tom@tromey.com>
134 * complaints.c (vcomplaint): Use std::string.
136 2017-09-29 Tom Tromey <tom@tromey.com>
138 * tracepoint.c (trace_variable_command): Use std::string.
139 (encode_actions_1): Remove unused declarations.
140 (create_tsv_from_upload): Use std::string.
142 2017-09-29 Tom Tromey <tom@tromey.com>
144 * cp-support.c (gdb_demangle): Use std::string.
146 2017-09-29 Tom Tromey <tom@tromey.com>
148 * stack.c (parse_frame_specification): Use std::string
149 (info_frame_command): Use gdb::unique_xmalloc_ptr.
151 2017-09-29 Tom Tromey <tom@tromey.com>
153 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
155 2017-09-29 Tom Tromey <tom@tromey.com>
157 * utils.c (vfprintf_maybe_filtered): Use std::string.
158 (vfprintf_unfiltered): Likewise.
160 2017-09-29 Tom Tromey <tom@tromey.com>
162 * event-top.c (top_level_prompt): Return std::string.
163 (display_gdb_prompt): Update.
165 2017-09-29 Tom Tromey <tom@tromey.com>
167 * unittests/common-utils-selftests.c (format): New function.
168 (string_vprintf_tests): New function.
169 (_initialize_common_utils_selftests): Register new tests.
170 * common/common-utils.c (string_vprintf): New function.
171 * common/common-utils.h (string_vprintf): Declare.
173 2017-09-29 Pedro Alves <palves@redhat.com>
175 * common/rsp-low.c (unpack_varlen_hex): Constify.
176 * common/rsp-low.h (unpack_varlen_hex): Constify.
177 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
179 * remote.c (remote_set_permissions, read_ptid)
180 (remote_current_thread, remote_get_threads_with_qthreadinfo)
181 (remote_static_tracepoint_marker_at)
182 (remote_static_tracepoint_markers_by_strid)
183 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
184 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
185 (parse_tracepoint_definition, parse_tsv_definition)
186 (parse_static_tracepoint_marker_definition): Constify.
187 * tracepoint.h (parse_static_tracepoint_marker_definition)
188 (parse_trace_status, parse_tracepoint_status)
189 (parse_tracepoint_definition, parse_tsv_definition): Constify.
191 2017-09-29 Pedro Alves <palves@redhat.com>
193 * remote.c (target_buf, target_buf_size): Delete.
194 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
195 Use the connection's packet buffer instead.
196 All callers adjusted.
197 (_initialize_remote): Remove references to target_buf and
200 2017-09-28 Pedro Alves <palves@redhat.com>
202 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
203 unittests/common-utils-selftests.c.
204 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
205 (COMMON_OBS): Remove utils-selftests.o.
206 * utils-selftests.c: Move to ...
207 * unittests/common-utils-selftests.c: ... here and rename self
208 test to "string_printf".
210 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
212 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
213 having NULL cus or tus.
215 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
217 * arm-tdep.c: (convert_from_extended): Remove.
218 (convert_to_extended): Likewise.
219 (arm_extract_return_value): Use convert_typed_floating.
220 (arm_store_return_value): Likewise.
222 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
223 * sh-tdep.c: Do not include "floatformat.h".
224 (sh_littlebyte_bigword_type): New function.
225 (sh_register_convert_to_virtual): Use convert_typed_floating.
226 (sh_register_convert_to_raw): Likewise.
227 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
228 (sh64_littlebyte_bigword_type): New function.
229 (sh64_extract_return_value): Use convert_typed_floating.
230 (sh64_register_convert_to_virtual): Likewise.
231 (sh64_register_convert_to_raw): Likewise.
233 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
235 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
236 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
238 * gdbtypes.h (union type_specific): Make field floatformat hold
239 just a single struct floatformat, not an array.
240 (floatformat_from_type): Move here.
241 * gdbtypes.c (floatformat_from_type): Move here. Update to
242 changed TYPE_FLOATFORMAT definition.
243 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
244 (recursive_dump_type): Likewise.
245 (init_float_type): Install correct floatformat for byte order.
246 (arch_float_type): Likewise.
248 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
250 * gdbtypes.c (init_type): Change incoming argument from
251 length-in-bytes to length-in-bits. Assert length is a
252 multiple of TARGET_CHAR_BITS.
253 (arch_type, arch_flags_type): Likewise.
254 (init_integer_type): Update call to init_type.
255 (init_character_type): Likewise.
256 (init_boolean_type): Likewise.
257 (init_float_type): Likewise.
258 (init_decfloat_type): Likewise.
259 (init_complex_type): Likewise.
260 (init_pointer_type): Likewise.
261 (objfile_type): Likewise.
262 (arch_integer_type): Update call to arch_type.
263 (arch_character_type): Likewise.
264 (arch_boolean_type): Likewise.
265 (arch_float_type): Likewise.
266 (arch_decfloat_type): Likewise.
267 (arch_complex_type): Likewise.
268 (arch_pointer_type): Likewise.
269 (gdbtypes_post_init): Likewise.
271 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
272 (read_base_type): Likewise.
273 * mdebugread.c (basic_type): Likewise.
274 * stabsread.c (dbx_init_float_type): Likewise.
275 (rs6000_builtin_type): Likewise.
276 (read_range_type): Likewise. Also, fix call to init_integer_type
277 with erroneous length argument.
279 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
280 * d-lang.c (build_d_types): Likewise.
281 * f-lang.c (build_fortran_types): Likewise.
282 * go-lang.c (build_go_types): Likewise.
283 * opencl-lang.c (build_opencl_types): Likewise.
284 * jit.c (finalize_symtab): Likewise.
285 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
286 (build_std_type_info_type): Likewise.
287 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
288 update call to arch_flags_type.
290 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
292 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
293 * windows-tdep.c (windows_get_tlb_type): Likewise.
295 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
296 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
297 * m32c-tdep.c (make_types): Likewise.
298 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
299 (rl78_psw_type): Update call to arch_flags_type.
300 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
301 * rx-tdep.c (rx_psw_type): Likewise.
302 (rx_fpsw_type): Likewise.
303 * sparc-tdep.c (sparc_psr_type): Likewise.
304 (sparc_fsr_type): Likewise.
305 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
306 (sparc64_ccr_type): Likewise.
307 (sparc64_fsr_type): Likewise.
308 (sparc64_fprs_type): Likewise.
310 2017-09-27 Tom Tromey <tom@tromey.com>
312 * findcmd.c (find_command): Constify.
314 2017-09-27 Tom Tromey <tom@tromey.com>
316 * ada-tasks.c (task_command_1, task_command): Constify.
318 2017-09-27 Tom Tromey <tom@tromey.com>
320 * symtab.c (maintenance_print_symbol_cache)
321 (maintenance_flush_symbol_cache)
322 (maintenance_print_symbol_cache_statistics): Constify.
324 2017-09-27 Tom Tromey <tom@tromey.com>
326 * inferior.c (detach_inferior_command, kill_inferior_command)
327 (inferior_command): Constify.
329 2017-09-27 Tom Tromey <tom@tromey.com>
331 * regcache.c (regcache_print, maintenance_print_registers)
332 (maintenance_print_raw_registers)
333 (maintenance_print_cooked_registers)
334 (maintenance_print_register_groups)
335 (maintenance_print_remote_registers): Constify.
337 2017-09-27 Tom Tromey <tom@tromey.com>
339 * printcmd.c (map_display_numbers, undisplay_command)
340 (enable_disable_display_command, enable_display_command)
341 (disable_display_command): Constify.
343 2017-09-27 Tom Tromey <tom@tromey.com>
345 * breakpoint.h (delete_command): Don't declare.
346 * breakpoint.c (delete_command, enable_once_command)
347 (enable_count_command, enable_delete_command, breakpoint_1)
348 (maintenance_info_breakpoints, stopin_command, stopat_command)
349 (delete_command, delete_trace_command, save_breakpoints)
350 (save_breakpoints_command, save_tracepoints_command): Constify.
352 2017-09-27 Tom Tromey <tom@tromey.com>
354 * macrocmd.c (macro_expand_command, macro_expand_once_command)
355 (skip_ws, extract_identifier, macro_define_command)
356 (macro_undef_command, macro_list_command): Constify.
358 2017-09-27 Tom Tromey <tom@tromey.com>
360 * infcmd.c (environment_info, set_environment_command)
361 (unset_environment_command, path_info, info_proc_cmd_1)
362 (info_proc_cmd_mappings, info_proc_cmd_stat)
363 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
364 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
366 2017-09-27 Tom Tromey <tom@tromey.com>
368 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
371 2017-09-27 Tom Tromey <tom@tromey.com>
373 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
375 2017-09-27 Tom Tromey <tom@tromey.com>
377 * demangle.c (demangle_command): Constify.
379 2017-09-27 Tom Tromey <tom@tromey.com>
381 * progspace.c (maintenance_info_program_spaces_command):
384 2017-09-27 Tom Tromey <tom@tromey.com>
386 * compile/compile.c (check_raw_argument, compile_file_command)
387 (compile_code_command, compile_print_command): Constify.
389 2017-09-27 Tom Tromey <tom@tromey.com>
391 * reggroups.c (maintenance_print_reggroups): Constify.
393 2017-09-27 Tom Tromey <tom@tromey.com>
395 * dwarf2read.c (save_gdb_index_command): Constify.
397 2017-09-27 Tom Tromey <tom@tromey.com>
399 * stap-probe.c (info_probes_stap_command): Constify.
401 2017-09-27 Tom Tromey <tom@tromey.com>
403 * fork-child.c (unset_exec_wrapper_command): Constify.
405 2017-09-27 Tom Tromey <tom@tromey.com>
407 * btrace.c (get_uint, get_context_size, no_chunk)
408 (maint_btrace_packet_history_cmd)
409 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
410 (maint_info_btrace_cmd): Constify.
412 2017-09-27 Tom Tromey <tom@tromey.com>
414 * reverse.c (delete_bookmark_command): Constify.
416 2017-09-27 Tom Tromey <tom@tromey.com>
418 * remote.c (set_memory_packet_size)
419 (set_memory_write_packet_size, show_memory_write_packet_size)
420 (set_memory_read_packet_size, show_memory_read_packet_size)
421 (compare_sections_command, packet_command, remote_put_command)
422 (remote_get_command, remote_delete_command): Constify.
424 2017-09-27 Tom Tromey <tom@tromey.com>
426 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
427 (set_mipsfpu_double_command, set_mipsfpu_none_command)
428 (set_mipsfpu_auto_command): Constify.
430 2017-09-27 Tom Tromey <tom@tromey.com>
432 * cli/cli-cmds.h (cd_command): Constify.
433 * cli/cli-cmds.c (cd_command): Constify.
435 2017-09-27 Tom Tromey <tom@tromey.com>
437 * thread.c (thread_name_command, thread_find_command): Constify.
439 2017-09-27 Tom Tromey <tom@tromey.com>
441 * probe.c (enable_probes_command, disable_probes_command):
444 2017-09-27 Tom Tromey <tom@tromey.com>
446 * symfile.c (symbol_file_command): Constify.
447 * gdbcore.h (deprecated_file_changed_hook): Constify.
448 * exec.c (deprecated_file_changed_hook, exec_file_command)
449 (file_command): Constify.
450 * defs.h (symbol_file_command): Constify.
452 2017-09-27 Tom Tromey <tom@tromey.com>
454 * remote-fileio.c (set_system_call_allowed)
455 (show_system_call_allowed): Constify.
457 2017-09-27 Tom Tromey <tom@tromey.com>
459 * tracepoint.c (delete_trace_variable_command)
460 (tfind_end_command, tfind_start_command, tfind_pc_command)
461 (tfind_tracepoint_command, tfind_line_command)
462 (tfind_range_command, tfind_outside_command): Constify.
464 2017-09-27 Tom Tromey <tom@tromey.com>
466 * ax-gdb.c (maint_agent_printf_command, agent_command)
467 (agent_eval_command): Constify.
469 2017-09-27 Tom Tromey <tom@tromey.com>
471 * tracepoint.c (info_scope_command): Constify.
472 * python/python.c (gdbpy_decode_line): Constify.
473 * python/py-breakpoint.c (bppy_init): Constify.
474 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
475 * location.h: (new_linespec_location)
476 (string_to_event_location_basic, string_to_event_location):
478 * location.c (new_linespec_location)
479 (string_to_event_location_basic, string_to_event_location):
481 * linespec.h (decode_line_with_current_source)
482 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
483 * linespec.c (linespec_lex_to_end)
484 (decode_line_with_current_source)
485 (decode_line_with_last_displayed): Constify.
486 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
488 * cli/cli-cmds.c (edit_command, list_command): Constify.
489 * breakpoint.h (until_break_command, watch_command_wrapper)
490 (awatch_command_wrapper, rwatch_command_wrapper)
491 (init_ada_exception_breakpoint): Constify.
492 * breakpoint.c (break_command_1, dprintf_command)
493 (break_range_command, watch_command_wrapper)
494 (rwatch_command_wrapper, awatch_command_wrapper)
495 (until_break_command, init_ada_exception_breakpoint)
496 (strace_marker_create_sals_from_location, trace_command)
497 (ftrace_command, strace_command, struct tracepoint): Constify.
498 * ax-gdb.c (agent_command_1): Constify.
499 * ada-lang.c (ada_exception_sal): Constify.
501 2017-09-27 Tom Tromey <tom@tromey.com>
503 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
504 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
505 (get_context_size, no_chunk, get_insn_history_modifiers)
506 (cmd_record_insn_history, get_call_history_modifiers)
507 (cmd_record_call_history): Constify.
509 2017-09-27 Tom Tromey <tom@tromey.com>
511 * source.c (show_substitute_path_command)
512 (unset_substitute_path_command, set_substitute_path_command):
515 2017-09-27 Tom Tromey <tom@tromey.com>
517 * typeprint.c (maintenance_print_type): Constify.
518 * maint.c (maintenance_dump_me, maintenance_demangle)
519 (maintenance_time_display, maintenance_info_sections)
520 (maintenance_print_statistics, maintenance_deprecate)
521 (maintenance_undeprecate): Constify.
522 (maintenance_do_deprecate): Constify. Use std::string.
523 (maintenance_selftest): Constify.
524 * gdbtypes.h (maintenance_print_type): Constify.
526 2017-09-27 Tom Tromey <tom@tromey.com>
528 * hppa-tdep.c (unwind_command): Constify.
530 2017-09-27 Tom Tromey <tom@tromey.com>
532 * target-descriptions.c (unset_tdesc_filename_cmd)
533 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
536 2017-09-27 Tom Tromey <tom@tromey.com>
538 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
540 2017-09-27 Tom Tromey <tom@tromey.com>
542 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
544 2017-09-27 Tom Tromey <tom@tromey.com>
546 * tui/tui-regs.c (tui_reg_command): Constify.
548 2017-09-27 Tom Tromey <tom@tromey.com>
550 * skip.c (skip_file_command, skip_function_command)
551 (skip_enable_command, skip_disable_command, skip_delete_command):
554 2017-09-27 Tom Tromey <tom@tromey.com>
556 * record-btrace.c (cmd_record_btrace_bts_start)
557 (cmd_record_btrace_pt_start): Constify.
559 2017-09-27 Tom Tromey <tom@tromey.com>
561 * symmisc.c (maintenance_print_symbols)
562 (maintenance_print_msymbols, maintenance_print_objfiles)
563 (maintenance_info_symtabs, maintenance_check_symtabs)
564 (maintenance_expand_symtabs, maintenance_info_line_tables):
567 2017-09-27 Tom Tromey <tom@tromey.com>
569 * top.c (new_ui_command): Constify.
571 2017-09-27 Tom Tromey <tom@tromey.com>
573 * symfile.c (add_symbol_file_command)
574 (remove_symbol_file_command, list_overlays_command)
575 (map_overlay_command, unmap_overlay_command)
576 (overlay_auto_command, overlay_manual_command)
577 (overlay_off_command, overlay_load_command): Constify.
579 2017-09-27 Tom Tromey <tom@tromey.com>
581 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
582 (info_spu_mailbox_command, info_spu_dma_command)
583 (info_spu_proxydma_command): Constify.
585 2017-09-27 Tom Tromey <tom@tromey.com>
587 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
589 2017-09-27 Tom Tromey <tom@tromey.com>
591 * cli/cli-script.c (user_defined_command): Constify.
593 2017-09-27 Tom Tromey <tom@tromey.com>
595 * cli/cli-dump.c (dump_memory_command, dump_value_command)
596 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
597 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
598 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
599 (dump_binary_value, append_binary_memory, append_binary_value):
601 (struct dump_context) <func>: Constify.
602 (add_dump_command): Update.
604 2017-09-27 Tom Tromey <tom@tromey.com>
606 * cli/cli-cmds.c (show_version, show_configuration)
607 (source_command, show_user): Constify.
609 2017-09-27 Tom Tromey <tom@tromey.com>
611 * target.c (maintenance_print_target_stack): Constify.
613 2017-09-27 Tom Tromey <tom@tromey.com>
615 * interps.c (interpreter_exec_cmd): Constify.
617 2017-09-27 Tom Tromey <tom@tromey.com>
619 * record-full.c (cmd_record_full_restore): Constify.
621 2017-09-27 Tom Tromey <tom@tromey.com>
623 * memattr.c (enable_mem_command, disable_mem_command)
624 (delete_mem_command): Constify.
626 2017-09-27 Tom Tromey <tom@tromey.com>
628 * value.c (show_convenience): Constify.
630 2017-09-27 Tom Tromey <tom@tromey.com>
632 * gdbcore.h (core_file_command): Update.
633 * corefile.c (core_file_command): Constify.
635 2017-09-27 Tom Tromey <tom@tromey.com>
637 * user-regs.c (maintenance_print_user_registers): Constify.
639 2017-09-27 Tom Tromey <tom@tromey.com>
641 * cp-namespace.c (maintenance_cplus_namespace): Constify.
643 2017-09-27 Tom Tromey <tom@tromey.com>
645 * cp-support.c (first_component_command): Constify.
647 2017-09-27 Tom Tromey <tom@tromey.com>
649 * psymtab.c (maintenance_print_psymbols)
650 (maintenance_info_psymtabs, maintenance_check_psymtabs):
653 2017-09-27 Tom Tromey <tom@tromey.com>
655 * windows-tdep.c (display_tib): Constify.
657 2017-09-27 Tom Tromey <tom@tromey.com>
659 * linux-fork.c (delete_checkpoint_command)
660 (detach_checkpoint_command): Constify.
662 2017-09-27 Tom Tromey <tom@tromey.com>
664 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
666 2017-09-27 Tom Tromey <tom@tromey.com>
668 * arc-tdep.c (dump_arc_instruction_command): Constify.
670 2017-09-27 Tom Tromey <tom@tromey.com>
672 * valprint.c (set_radix, show_radix): Constify.
674 2017-09-27 Tom Tromey <tom@tromey.com>
676 * dtrace-probe.c (info_probes_dtrace_command): Constify.
678 2017-09-27 Tom Tromey <tom@tromey.com>
680 * command.h (not_just_help_class_command): Update.
681 * cli/cli-decode.h (not_just_help_class_command): Update.
682 * cli/cli-decode.c (not_just_help_class_command): Constify.
684 2017-09-27 Tom Tromey <tom@tromey.com>
686 * gdb_bfd.c (maintenance_info_bfds): Constify.
688 2017-09-27 Tom Tromey <tom@tromey.com>
690 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
692 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
693 (do_const_cfunc): New function.
694 (cmd_cfunc_eq): New overload.
695 (cli_user_command_p): Check do_const_cfunc.
696 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
698 * command.h (add_cmd): Add const overload and no-function
700 (set_cmd_cfunc): Add const overload.
701 (cmd_const_cfunc_ftype): Declare.
702 (cmd_cfunc_eq): Add const overload.
703 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
704 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
707 2017-09-27 Tom Tromey <tom@tromey.com>
709 * macroexp.c (get_next_token_for_substitution): New function.
710 (substitute_args): Call it. Check for __VA_OPT__.
712 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
713 Pedro Alves <palves@redhat.com>
715 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
716 producer_is_icc_lt_14.
717 (producer_is_icc_lt_14): New function.
718 (check_producer): Add code for checking version of ICC.
719 (producer_is_icc): Move to producer.c.
720 (read_structure_type): Restrict ICC workaround to ICC<14.
721 * producer.c: Include selftest.h.
722 (producer_is_icc, producer_parsing_tests, _initialize_producer):
724 * producer.h (producer_is_icc): New declaration.
726 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
728 * Makefile.in (SFILES): Add producer.c.
729 (COMMON_OBS): Add producer.o
730 * amd64-tdep.c (producer.h): Add new include.
731 * dwarf2read.c (producer.h): Add new include.
732 * producer.c: New file.
733 * producer.h: New file.
734 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
736 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
739 2017-09-26 Matthias Klose <doko@ubuntu.com>
741 * configure.ac: Search ncursesw before ncurses.
742 Check ncursesw/ncurses.h before ncurses/ncurses.h.
743 * gdb_curses.h: Include <ncursesw/ncurses.h>
744 * config.in, configure: Regenerate.
746 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
749 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
751 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
752 Remove i386sol2 support.
753 * configure.nat <i386sol2>: Remove.
754 <sol2-64>: Fold into ...
756 Move common settings to default section.
758 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
759 x86_64-*-solaris2.1[0-9]*>: Rename to ...
760 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
761 <i[34567]86-*-solaris*>: Remove.
762 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
764 * configure.ac: Remove wctype in libw check.
765 (_MSE_INT_H): Don't define on Solaris 7-9.
766 <solaris*>: Remove libthread_db.so.1 check.
767 * configure: Regenerate.
768 * config.in: Regenerate.
770 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
771 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
772 (gdb_ps_size_t): Remove.
773 Use base types in users.
774 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
776 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
778 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
781 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
782 (adi_is_addr_mapped): Likewise.
783 (PSR_ICC): Don't redefine.
784 (PSR_IMPL): Likewise.
786 2017-09-25 Tom Tromey <tom@tromey.com>
788 * regcache.c (regcache::dump): Use string_printf.
790 2017-09-25 Tom Tromey <tom@tromey.com>
792 * regcache.c (class regcache_invalidator): New.
793 (struct register_to_invalidate): Remove.
794 (make_cleanup_regcache_invalidate): Remove.
795 (regcache::raw_write): Use regcache_invalidator.
797 2017-09-25 Tom Tromey <tom@tromey.com>
799 * spu-tdep.c (spu2ppu_sniffer): Update.
800 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
801 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
803 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
804 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
805 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
806 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
809 2017-09-25 Tom Tromey <tom@tromey.com>
811 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
812 * regcache.h (regcache_xfree): Don't declare.
813 * regcache.c (regcache_xfree): Remove.
814 (do_regcache_xfree): Use delete.
815 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
816 * linux-fork.c (free_fork): Use delete.
817 (fork_save_infrun_state): Likewise.
818 * jit.c (jit_dealloc_cache): Use delete.
819 * infrun.c (discard_infcall_suspend_state): Use delete.
821 2017-09-25 Tom Tromey <tom@tromey.com>
823 * regcache.h (regcache_xmalloc): Don't declare.
824 (regcache_raw_set_cached_value): Update comment.
825 * regcache.c (regcache_xmalloc): Remove.
826 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
827 * jit.c (jit_frame_sniffer): Use new.
828 * frame.c (frame_save_as_regcache): Use new.
830 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
832 * NEWS: Advertise support for guarded-storage registers on IBM z.
834 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
836 * s390-linux-nat.c (have_regset_gs): New static variable.
837 (s390_linux_fetch_inferior_registers): Handle guarded-storage
838 control block and guarded-storage broadcast control regsets.
839 (s390_read_description): Detect whether the target has
840 guarded-storage support, return appropriate tdesc.
841 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
842 (features/s390x-gs-linux64.c): Likewise.
843 (struct gdbarch_tdep) <have_gs>: New field.
844 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
845 (s390_gsbc_regset): New variables.
846 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
847 and s390_gsbc_regset, if applicable.
848 (s390_core_read_description): Check whether core file was from a
849 target with guarded-storage support; include appropriate regsets.
850 (s390_gdbarch_init): Add registers for guarded-storage support.
851 (_initialize_s390_tdep): Initialize new target descriptions that
852 include registers for guarded-storage support.
853 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
854 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
855 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
856 (S390_NUM_REGS): Adjust macro definition.
857 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
858 (tdesc_s390x_gs_linux64): New declarations.
860 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
862 * features/s390-gs-linux64.xml: New file.
863 * features/s390-gs.xml: New file.
864 * features/s390-gsbc.xml: New file.
865 * features/s390x-gs-linux64.xml: New file.
866 * features/Makefile (WHICH): Add s390-gs-linux64 and
868 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
869 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
870 * features/s390-gs-linux64.c: New generated file.
871 * features/s390x-gs-linux64.c: New file.
872 * regformats/s390-gs-linux64.dat: New file.
873 * regformats/s390x-gs-linux64.dat: New file.
875 2017-09-23 Tom Tromey <tom@tromey.com>
877 * defs.h (make_cleanup_override_quit_handler): Don't declare.
879 2017-09-22 Tom Tromey <tom@tromey.com>
881 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
882 type to scoped_restore_tmpl.
883 <scoped_input_handler>: Initialize m_quit_handler directly.
885 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
887 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
888 (cd_command): Likewise. Free "current_directory" before
890 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
891 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
892 * top.c (gdb_dirbuf): Remove global declaration.
893 * top.h (gdb_dirbuf): Likewise.
895 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
897 * gnulib/aclocal.m4: Regenerate.
898 * gnulib/config.in: Regenerate.
899 * gnulib/configure: Regenerate.
900 * gnulib/import/Makefile.am: Regenerate.
901 * gnulib/import/Makefile.in: Regenerate.
902 * gnulib/import/assure.h: New file.
903 * gnulib/import/at-func.c: Likewise
904 * gnulib/import/chdir-long.c: New file.
905 * gnulib/import/chdir-long.h: New file.
906 * gnulib/import/cloexec.c: New file.
907 * gnulib/import/cloexec.h: New file.
908 * gnulib/import/close.c: New file.
909 * gnulib/import/closedir.c: New file.
910 * gnulib/import/dirent-private.h: New file.
911 * gnulib/import/dup-safer.c: New file.
912 * gnulib/import/dup.c: New file.
913 * gnulib/import/dup2.c: New file.
914 * gnulib/import/error.c: New file.
915 * gnulib/import/error.h: New file.
916 * gnulib/import/exitfail.c: New file.
917 * gnulib/import/exitfail.h: New file.
918 * gnulib/import/fchdir.c: New file.
919 * gnulib/import/fcntl.c: New file.
920 * gnulib/import/fcntl.in.h: New file.
921 * gnulib/import/fd-hook.c: New file.
922 * gnulib/import/fd-hook.h: New file.
923 * gnulib/import/fd-safer.c: New file.
924 * gnulib/import/fdopendir.c: New file.
925 * gnulib/import/filename.h: New file.
926 * gnulib/import/filenamecat-lgpl.c: New file.
927 * gnulib/import/filenamecat.h: New file.
928 * gnulib/import/fstat.c: New file.
929 * gnulib/import/fstatat.c: New file.
930 * gnulib/import/getcwd-lgpl.c: New file.
931 * gnulib/import/getcwd.c: New file.
932 * gnulib/import/getdtablesize.c: New file.
933 * gnulib/import/getlogin_r.c: New file.
934 * gnulib/import/getprogname.c: New file.
935 * gnulib/import/getprogname.h: New file.
936 * gnulib/import/gettext.h: New file.
937 * gnulib/import/glob-libc.h: New file.
938 * gnulib/import/glob.c: New file.
939 * gnulib/import/glob.in.h: New file.
940 * gnulib/import/intprops.h: New file.
941 * gnulib/import/m4/chdir-long.m4: New file.
942 * gnulib/import/m4/close.m4: New file.
943 * gnulib/import/m4/closedir.m4: New file.
944 * gnulib/import/m4/d-ino.m4: New file.
945 * gnulib/import/m4/d-type.m4: New file.
946 * gnulib/import/m4/dup.m4: New file.
947 * gnulib/import/m4/dup2.m4: New file.
948 * gnulib/import/m4/error.m4: New file.
949 * gnulib/import/m4/fchdir.m4: New file.
950 * gnulib/import/m4/fcntl.m4: New file.
951 * gnulib/import/m4/fcntl_h.m4: New file.
952 * gnulib/import/m4/fdopendir.m4: New file.
953 * gnulib/import/m4/filenamecat.m4: New file.
954 * gnulib/import/m4/fstat.m4: New file.
955 * gnulib/import/m4/fstatat.m4: New file.
956 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
957 * gnulib/import/m4/getcwd-path-max.m4: New file.
958 * gnulib/import/m4/getcwd.m4: New file.
959 * gnulib/import/m4/getdtablesize.m4: New file.
960 * gnulib/import/m4/getlogin_r.m4: New file.
961 * gnulib/import/m4/getprogname.m4: New file.
962 * gnulib/import/m4/glob.m4: New file.
963 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
964 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
965 * gnulib/import/m4/mempcpy.m4: New file.
966 * gnulib/import/m4/memrchr.m4: New file.
967 * gnulib/import/m4/mode_t.m4: New file.
968 * gnulib/import/m4/msvc-inval.m4: New file.
969 * gnulib/import/m4/msvc-nothrow.m4: New file.
970 * gnulib/import/m4/open.m4: New file.
971 * gnulib/import/m4/openat.m4: New file.
972 * gnulib/import/m4/opendir.m4: New file.
973 * gnulib/import/m4/readdir.m4: New file.
974 * gnulib/import/m4/realloc.m4: New file.
975 * gnulib/import/m4/rewinddir.m4: New file.
976 * gnulib/import/m4/save-cwd.m4: New file.
977 * gnulib/import/m4/strdup.m4: New file.
978 * gnulib/import/m4/strerror.m4: New file.
979 * gnulib/import/m4/unistd-safer.m4: New file.
980 * gnulib/import/mempcpy.c: New file.
981 * gnulib/import/memrchr.c: New file.
982 * gnulib/import/msvc-inval.c: New file.
983 * gnulib/import/msvc-inval.h: New file.
984 * gnulib/import/msvc-nothrow.c: New file.
985 * gnulib/import/msvc-nothrow.h: New file.
986 * gnulib/import/open.c: New file.
987 * gnulib/import/openat-die.c: New file.
988 * gnulib/import/openat-priv.h: New file.
989 * gnulib/import/openat-proc.c: New file.
990 * gnulib/import/openat.c: New file.
991 * gnulib/import/openat.h: New file.
992 * gnulib/import/opendir.c: New file.
993 * gnulib/import/pipe-safer.c: New file.
994 * gnulib/import/readdir.c: New file.
995 * gnulib/import/realloc.c: New file.
996 * gnulib/import/rewinddir.c: New file.
997 * gnulib/import/save-cwd.c: New file.
998 * gnulib/import/save-cwd.h: New file.
999 * gnulib/import/strdup.c: New file.
1000 * gnulib/import/strerror-override.c: New file.
1001 * gnulib/import/strerror-override.h: New file.
1002 * gnulib/import/strerror.c: New file.
1003 * gnulib/import/unistd--.h: New file.
1004 * gnulib/import/unistd-safer.h: New file.
1005 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1006 "getcwd" and "glob".
1007 * ser-tcp.c: Undefine "close" before redefining it.
1009 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1011 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1014 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1016 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1017 <sol2,sparc>: Likewise.
1018 <sol2-64,i386>: Likewise.
1020 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1021 -Wdeprecated-declarations on *-*-solaris*.
1022 * configure: Regenerate.
1024 * procfs.c: Include "nat/inferior.h".
1025 (procfs_info_proc): Fix typo.
1027 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1029 * remote.c (vector): Include.
1030 (struct private_thread_info): Add field, thread_handle.
1031 (free_private_thread_info): Deallocate storage associated with
1033 (get_private_info_thread): Initialize `thread_handle' field.
1034 (struct thread_item): Add field, thread_handle.
1035 (clear_threads_listing_context): Deallocate storage associated
1037 (start_thread): Add support for "handle" attribute.
1038 (thread_attributes): Add "handle".
1039 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1041 (remote_update_thread_list): Update thread_handle.
1042 (remote_thread_handle_to_thread_info): New function.
1043 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1045 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1047 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1049 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1050 * python/python-internal.h (thread_object_type): Declare.
1052 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1054 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1055 (target_thread_handle_to_thread_info): Declare.
1056 * target.c (target_thread_handle_to_thread_info): New function.
1057 * target-delegates.c: Regenerate.
1058 * gdbthread.h (find_thread_by_handle): Declare.
1059 * thread.c (find_thread_by_handle): New function.
1060 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1062 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1064 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1066 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1068 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1070 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1072 2017-09-21 Yao Qi <yao.qi@linaro.org>
1074 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1077 2017-09-20 Tom Tromey <tom@tromey.com>
1079 * breakpoint.c (struct counted_command_line): Remove.
1080 (breakpoint_commands): Update.
1081 (alloc_counted_command_line, incref_counted_command_line)
1082 (decref_counted_command_line, do_cleanup_counted_command_line)
1083 (make_cleanup_decref_counted_command_line): Remove.
1084 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1085 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1086 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1087 (save_breakpoints): Update.
1088 * breakpoint.h (counted_command_line): Now a typedef to
1090 (struct breakpoint) <commands>: Now a counted_command_line.
1091 (struct bpstats) <command>: Likewise.
1093 2017-09-20 Tom Tromey <tom@tromey.com>
1095 * breakpoint.c (struct commands_info, do_map_commands_command):
1097 (commands_command_1): Update.
1098 (iterate_over_related_breakpoints): Take a function_view.
1099 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1100 (delete_command): Update.
1101 (map_breakpoint_numbers): Take a function_view.
1102 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1103 (disable_command): Update.
1104 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1105 (enable_command): Update.
1106 (struct disp_data, do_enable_breakpoint_disp)
1107 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1108 (do_map_enable_delete_breakpoint): Remove.
1109 (enable_once_command, enable_count_command, enable_delete_command)
1110 (delete_trace_variable_command): Update.
1112 2017-09-20 Tom Tromey <tom@tromey.com>
1114 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1115 (bpstat_clear): Use delete.
1116 (bpstats): New constructors.
1117 (bpstat_copy, bpstat_stop_status): Use new.
1118 (dprintf_after_condition_true): Update.
1119 * breakpoint.h (bpstats::bpstats): Add constructors.
1120 (bpstats::~bpstats): Add destructor.
1122 2017-09-20 Pedro Alves <palves@redhat.com>
1124 * eval.c (make_params): Delete, refactored as ...
1125 (class fake_method): ... this new type's ctor.
1126 (fake_method::~fake_method): New.
1127 (evaluate_subexp_standard): Use 'fake_method'.
1129 2017-09-20 Tom Tromey <tom@tromey.com>
1131 * windows-nat.c (get_windows_debug_event, windows_wait)
1132 (do_initial_windows_stuff, windows_attach): Update.
1133 * utils.c (vwarning, internal_vproblem): Update.
1134 (ui_unregister_input_event_handler_cleanup)
1135 (prepare_to_handle_input): Remove.
1136 (class scoped_input_handler): New.
1137 (defaulted_query, prompt_for_continue): Update.
1138 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1140 * top.c (undo_terminal_modifications_before_exit): Update.
1141 * target/target.h (target_terminal_init, target_terminal_inferior)
1142 (target_terminal_ours): Don't declare.
1143 (class target_terminal): New.
1144 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1145 (target_terminal_ours_for_output)
1146 (make_cleanup_restore_target_terminal): Don't declare.
1147 (target_terminal_info): Remove.
1148 * target.c (enum terminal_state, terminal_state): Remove.
1149 (target_terminal::terminal_state): Define.
1150 (target_terminal::init): Rename from target_terminal_init.
1151 (target_terminal::inferior): Rename from
1152 target_terminal_inferior.
1153 (target_terminal::ours): Rename from target_terminal_ours.
1154 (target_terminal::ours_for_output): Rename from
1155 target_terminal_ours_for_output.
1156 (target_terminal::info): New method.
1157 (cleanup_restore_target_terminal)
1158 (make_cleanup_restore_target_terminal): Remove.
1159 * solib.c (handle_solib_event): Update.
1160 * remote.c (remote_serial_quit_handler): Update.
1161 (remote_terminal_inferior, remote_wait_as): Update.
1162 * record-full.c (record_full_wait_1): Update.
1163 * nto-procfs.c (procfs_create_inferior): Update.
1164 * nat/fork-inferior.c (startup_inferior): Update.
1165 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1166 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1167 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1168 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1169 (mi_breakpoint_created, mi_breakpoint_deleted)
1170 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1171 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1172 (mi_user_selected_context_changed, report_initial_inferior):
1174 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1175 (linux_nat_terminal_inferior): Update.
1176 * infrun.c (follow_fork_inferior)
1177 (handle_vfork_child_exec_or_exit, do_target_resume)
1178 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1179 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1181 * inflow.c (child_terminal_init, info_terminal_command): Update.
1182 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1183 (attach_command): Update.
1184 * infcall.c (call_thread_fsm_should_stop): Update.
1185 * gnu-nat.c (gnu_attach): Update.
1186 * extension.c (struct active_ext_lang_state)
1187 (restore_active_ext_lang): Update.
1188 * exceptions.c (print_flush): Update.
1189 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1190 (struct quit_handler_cleanup_data, restore_quit_handler)
1191 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1193 * cp-support.c (gdb_demangle): Update.
1194 * breakpoint.c (update_inserted_breakpoint_locations)
1195 (insert_breakpoint_locations, handle_jit_event)
1196 (disable_breakpoints_in_unloaded_shlib): Update.
1197 * annotate.c (annotate_breakpoints_invalid)
1198 (annotate_frames_invalid): Update.
1200 2017-09-20 Tom Tromey <tom@tromey.com>
1202 * main.c (catch_command_errors): Rename from
1203 catch_command_errors_const.
1204 (captured_main_1): Update.
1206 2017-09-20 Pedro Alves <palves@redhat.com>
1208 * cli/cli-cmds.c (list_command): Use print_sal_location.
1209 (print_sal_location): New function.
1210 (ambiguous_line_spec): Use print_sal_location.
1211 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1212 * symtab.c (find_function_start_sal): Likewise.
1213 * symtab.h (symtab_and_line::symbol): New field.
1215 2017-09-20 Pedro Alves <palves@redhat.com>
1217 * linespec.c (minsym_found): Handle non-text minsyms.
1218 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1220 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1222 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1225 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1227 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1228 vmovups instead vmovaps.
1229 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1231 2017-09-19 John Baldwin <jhb@FreeBSD.org>
1233 * NEWS (Changes since GDB 8.0): Add starti.
1234 * infcmd.c (enum run_break): New.
1235 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1237 (run_command): Use enum run_how.
1238 (start_command): Likewise.
1239 (starti_command): New function.
1240 (RUN_ARGS_HELP): New macro.
1241 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1242 commands. Add starti command.
1244 2017-09-19 Yao Qi <yao.qi@linaro.org>
1246 * Makefile.in (monitor.o): Remove the rule.
1248 2017-09-19 Yao Qi <yao.qi@linaro.org>
1250 * annotate.h (struct annotate_arg_emitter): Use
1251 DISABLE_COPY_AND_ASSIGN.
1252 * common/refcounted-object.h (refcounted_object): Likewise.
1253 * completer.h (struct completion_result): Likewise.
1254 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1255 * filename-seen-cache.h (filename_seen_cache): Likewise.
1256 * gdbcore.h (thread_section_name): Likewise.
1257 * gdb_regex.h (compiled_regex): Likewise.
1258 * gdbthread.h (scoped_restore_current_thread): Likewise.
1259 * inferior.h (scoped_restore_current_inferior): Likewise.
1260 * jit.c (jit_reader): Likewise.
1261 * linespec.h (struct linespec_result): Likewise.
1262 * mi/mi-parse.h (struct mi_parse): Likewise.
1263 * nat/fork-inferior.c (execv_argv): Likewise.
1264 * progspace.h (scoped_restore_current_program_space): Likewise.
1265 * python/python-internal.h (class gdbpy_enter): Likewise.
1266 * regcache.h (regcache): Likewise.
1267 * target-descriptions.c (struct tdesc_reg): Likewise.
1268 (struct tdesc_type): Likewise.
1269 (struct tdesc_feature): Likewise.
1270 * ui-out.h (ui_out_emit_type): Likewise.
1272 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1274 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1275 label abort_expression.
1277 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1279 * common/buffer.c (buffer_xml_printf): Adjust.
1280 * common/xml-utils.c (xml_escape_text): Change return type to
1281 std::string, update code accordingly.
1282 * common/xml-utils.h (xml_escape_text): Change return type to
1284 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1285 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1286 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1289 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1291 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1292 (SUBDIR_UNITTESTS_OBS): Add new object file.
1293 * unittests/xml-utils-selftests.c: New file.
1295 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1297 * common/selftest.h (selftest): New struct/interface.
1298 (register_test): Add name parameter, add new overload.
1299 (run_tests): Add filter parameter.
1300 (for_each_selftest_ftype): New typedef.
1301 (for_each_selftest): New declaration.
1302 * common/selftest.c (tests): Change type to
1303 map<string, unique_ptr<selftest>>.
1304 (simple_selftest): New struct.
1305 (register_test): New function.
1306 (register_test): Add name parameter and use it.
1307 (run_tests): Add filter parameter and use it. Add prints.
1308 Adjust to vector -> map change.
1309 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1310 registering selftests.
1311 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1312 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1313 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1314 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1315 * findvar.c (_initialize_findvar): Likewise.
1316 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1317 * maint.c (maintenance_selftest): Update call to run_tests.
1318 (maintenance_info_selftests): New function.
1319 (_initialize_maint_cmds): Register "maintenance info selftests"
1320 command. Update "maintenance selftest" doc.
1321 * regcache.c (_initialize_regcache): Add names when registering
1323 * rust-exp.y (_initialize_rust_exp): Likewise.
1324 * selftest-arch.c (gdbarch_selftest): New struct.
1325 (gdbarch_tests): Remove.
1326 (register_test_foreach_arch): Add name parameter. Call
1328 (tests_with_arch): Remove, move most content to
1329 gdbarch_selftest::operator().
1330 (_initialize_selftests_foreach_arch): Remove.
1331 * selftest-arch.h (register_test_foreach_arch): Add name
1333 (run_tests_with_arch): New declaration.
1334 * utils-selftests.c (_initialize_utils_selftests): Add names
1335 when registering selftests.
1336 * utils.c (_initialize_utils): Likewise.
1337 * unittests/array-view-selftests.c
1338 (_initialize_array_view_selftests): Likewise.
1339 * unittests/environ-selftests.c (_initialize_environ_selftests):
1341 * unittests/function-view-selftests.c
1342 (_initialize_function_view_selftests): Likewise.
1343 * unittests/offset-type-selftests.c
1344 (_initialize_offset_type_selftests): Likewise.
1345 * unittests/optional-selftests.c
1346 (_initialize_optional_selftests): Likewise.
1347 * unittests/scoped_restore-selftests.c
1348 (_initialize_scoped_restore_selftests): Likewise.
1349 * NEWS: Document "maintenance selftest" and "maint info
1352 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1354 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1357 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1359 * mi/mi-main.c (mi_load_progress): Make uiout variable
1362 2017-09-15 Pedro Alves <palves@redhat.com>
1364 * compile/compile-c-types.c (convert_enum, convert_int)
1365 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1367 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1369 * dwarf2read.c (copy_string): Remove.
1370 (parse_macro_definition): Replace copy_string with savestring.
1372 2017-09-15 Yao Qi <yao.qi@linaro.org>
1374 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1376 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1378 (i[34567]86-*-linux*): Likewise.
1380 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1382 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1383 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1384 <stack>: Change type to std::vector.
1385 <stack_len, stack_allocated>: Remove.
1386 <grow_stack>: Remove.
1387 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1388 (dwarf_expr_context::~dwarf_expr_context): Remove.
1389 (dwarf_expr_context::grow_stack): Remove.
1390 (dwarf_expr_context::push): Adjust.
1391 (dwarf_expr_context::pop): Adjust.
1392 (dwarf_expr_context::fetch): Adjust.
1393 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1394 (dwarf_expr_context::stack_empty_p): Adjust.
1395 (dwarf_expr_context::execute_stack_op): Adjust.
1397 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1399 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1400 return type to bool.
1401 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1403 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1405 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1406 Change type to bool.
1407 (dwarf_stack_value) <in_stack_memory>: Likewise.
1408 (dwarf_expr_context) <push_address>: Change parameter type to
1410 <fetch_in_stack_memory>: Change return type to bool.
1411 <push>: Change parameter type to bool.
1412 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1414 (dwarf_expr_context::push_address): Likewise.
1415 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1417 (dwarf_expr_context::execute_stack_op): Adjust.
1418 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1420 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1422 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1423 (struct dwarf_expr_context) <n_pieces>: Remove.
1424 <pieces>: Change type to std::vector.
1425 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1426 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1428 (dwarf_expr_context::add_piece): Adjust.
1429 * dwarf2loc.c (struct piece_closure): Initialize fields.
1431 <pieces>: Change type to std::vector.
1432 (allocate_piece_closure): Adjust, change parameter to
1433 std::vector rvalue and std::move it to piece_closure.
1434 (rw_pieced_value): Adjust.
1435 (check_pieced_synthetic_pointer): Adjust.
1436 (indirect_synthetic_pointer): Adjust.
1437 (coerce_pieced_ref): Adjust.
1438 (free_pieced_value_closure): Adjust. Use delete to free
1440 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1441 to allocate_piece_closure.
1442 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1444 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1446 * probe.h (probe_ops_cp): Remove typedef.
1447 (DEF_VEC_P (probe_ops_cp)): Remove.
1448 (all_probe_ops): Change type to std::vector.
1449 * probe.c (info_probes_for_ops): Adjust to vector change.
1450 (probe_linespec_to_ops): Likewise.
1451 (all_probe_ops): Change type to std::vector.
1452 (_initialize_probe): Adjust to vector change.
1453 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1454 * elfread.c (elf_get_probes): Likewise.
1455 * stap-probe.c (_initialize_stap_probe): Likewise.
1457 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1459 * probe.h (struct bound_probe): Define constructors.
1460 * probe.c (bound_probe_s): Remove typedef.
1461 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1462 (collect_probes): Change return type to std::vector, remove
1464 (compare_probes): Return bool, change parameter type. Change
1465 semantic to "less than".
1466 (gen_ui_out_table_header_info): Change parameter to std::vector
1468 (exists_probe_with_pops): Likewise.
1469 (info_probes_for_ops): Update to std::vector change.
1470 (enable_probes_command): Likewise.
1471 (disable_probes_command): Likewise.
1473 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1475 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1477 * probe.c (parse_probes_in_pspace): Update.
1478 (find_probes_in_objfile): Update.
1479 (find_probe_by_pc): Update.
1480 (collect_probes): Update.
1481 (probe_any_get_probes): Update.
1482 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1483 return type to reference to std::vector.
1484 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1485 std::vector and update.
1486 (dtrace_process_dof): Likewise.
1487 (dtrace_get_probes): Likewise.
1488 * elfread.c (elf_get_probes): Change return type to std::vector,
1489 store an std::vector in bfd_data.
1490 (probe_key_free): Update to std::vector.
1491 * stap-probe.c (handle_stap_probe): Change parameter to
1492 std::vector and update.
1493 (stap_get_probes): Likewise.
1494 * symfile-debug.c (debug_sym_get_probes): Change return type to
1495 std::vector and update.
1497 2017-09-11 Tom Tromey <tom@tromey.com>
1499 * breakpoint.c (program_breakpoint_here_p): Update.
1500 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1501 from make_show_memory_breakpoints_cleanup. Return a
1502 scoped_restore_tmpl<int>.
1503 (restore_show_memory_breakpoints): Remove.
1504 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1505 * mem-break.c (memory_validate_breakpoint): Update.
1506 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1507 (ia64_memory_remove_breakpoint): Update.
1508 (ia64_breakpoint_from_pc): Update.
1509 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1510 from make_show_memory_breakpoints_cleanup.
1512 2017-09-11 Tom Tromey <tom@tromey.com>
1514 * d-namespace.c (d_lookup_symbol): Use std::string.
1515 (find_symbol_in_baseclass): Likewise.
1517 2017-09-11 Tom Tromey <tom@tromey.com>
1519 * ctf.c (ctf_start): Use std::string.
1521 2017-09-11 Tom Tromey <tom@tromey.com>
1523 * ada-lang.c (is_known_support_routine): Update.
1524 (ada_unhandled_exception_name_addr_from_raise): Update.
1525 * guile/scm-frame.c (gdbscm_frame_name): Update.
1526 * python/py-frame.c (frapy_name): Update.
1527 (frapy_function): Update.
1528 * stack.h (find_frame_funname): Update.
1529 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1530 (print_frame): Update.
1532 2017-09-11 Tom Tromey <tom@tromey.com>
1534 * findcmd.c (put_bits): Take a gdb::byte_vector.
1535 (parse_find_args): Return gdb::byte_vector. "args" now const.
1536 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1538 (find_command): Update.
1540 2017-09-11 Tom Tromey <tom@tromey.com>
1542 * cli/cli-script.c (class scoped_restore_hook_in): New.
1543 (clear_hook_in_cleanup): Remove.
1544 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1545 scoped_restore_hook_in.
1547 2017-09-11 Tom Tromey <tom@tromey.com>
1549 * cli/cli-script.c (restore_interp): Remove.
1550 (read_command_lines): Use scoped_restore_interp.
1551 * interps.c (scoped_restore_interp::set_temp): Rename from
1553 * interps.h (class scoped_restore_interp): New.
1554 (interp_set_temp): Remove.
1556 2017-09-11 Tom Tromey <tom@tromey.com>
1558 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1559 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1560 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1562 (mi_cmd_break_insert_1): Update.
1563 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1566 2017-09-11 Tom Tromey <tom@tromey.com>
1568 * demangle.c (demangle_command): Update.
1569 * breakpoint.c (disable_command): Update.
1570 (enable_command): Update.
1571 (find_location_by_number): Make "number" const. Use
1573 * cli/cli-utils.c (extract_arg): Return std::string.
1574 * probe.c (parse_probe_linespec): Update. Change types.
1575 (collect_probes): Take string arguments.
1576 (parse_probe_linespec): Likewise.
1577 (info_probes_for_ops): Update.
1578 (enable_probes_command): Update.
1579 (disable_probes_command): Update.
1580 * break-catch-sig.c (catch_signal_split_args): Update.
1581 * mi/mi-parse.c (mi_parse): Update.
1583 2017-09-11 Tom Tromey <tom@tromey.com>
1585 * language.h (language_enum): Make argument const.
1586 * language.c (language_enum): Make argument const.
1588 2017-09-11 Tom Tromey <tom@tromey.com>
1590 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1592 (skip_to_space): Rename from skip_to_space_const.
1593 * common/common-utils.c (skip_to_space): New function.
1594 (skip_to_space): Rename from skip_to_space_const.
1595 * cli/cli-utils.h (get_number): Rename from get_number_const.
1596 (extract_arg): Rename from extract_arg_const.
1597 * cli/cli-utils.c (get_number): Rename from get_number_const.
1598 (extract_arg): Rename from extract_arg_const.
1599 (number_or_range_parser::get_number): Use ::get_number.
1600 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1601 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1602 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1603 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1604 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1605 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1606 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1607 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1609 2017-09-11 Tom Tromey <tom@tromey.com>
1611 * python/python.c (do_start_initialization): Use
1612 py-event-types.def to initialize types.
1613 Define all object type structures.
1614 * python/python-internal.h: Don't declare event initialization
1616 * python/py-threadevent.c (thread_event_object_type): Don't
1618 * python/py-stopevent.c (stop_event_object_type): Don't define.
1619 * python/py-signalevent.c (signal_event_object_type): Don't
1621 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1622 (clear_objfiles_event_object_type): Don't declare or define.
1623 * python/py-infevents.c (inferior_call_pre_event_object_type)
1624 (inferior_call_post_event_object_type)
1625 (register_changed_event_object_type)
1626 (memory_changed_event_object_type): Don't declare or define.
1627 * python/py-inferior.c (new_thread_event_object_type)
1628 (new_inferior_event_object_type)
1629 (inferior_deleted_event_object_type): Don't declare or define.
1630 * python/py-exitedevent.c (exited_event_object_type): Don't
1632 * python/py-evts.c (gdbpy_initialize_py_events): Use
1634 * python/py-events.h (thread_event_object_type): Don't declare.
1635 (events_object): Use py-all-events.def.
1636 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1638 * python/py-event-types.def: New file.
1639 * python/py-continueevent.c (create_continue_event_object): Don't
1641 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1643 * python/py-all-events.def: New file.
1645 2017-09-11 Tom Tromey <tom@tromey.com>
1647 * python/py-threadevent.c (create_thread_event_object): Return
1649 * python/py-stopevent.h (create_stop_event_object)
1650 (create_breakpoint_event_object, create_signal_event_object):
1652 * python/py-stopevent.c (create_stop_event_object): Return
1654 (emit_stop_event): Update.
1655 * python/py-signalevent.c (create_signal_event_object): Return
1657 * python/py-infevents.c (create_inferior_call_event_object):
1659 * python/py-event.h (create_event_object)
1660 (create_thread_event_object): Update.
1661 * python/py-event.c (create_event_object): Return gdbpy_ref.
1662 * python/py-continueevent.c: Return gdbpy_ref.
1663 * python/py-bpevent.c (create_breakpoint_event_object): Return
1666 2017-09-11 Tom Tromey <tom@tromey.com>
1670 * python/python.c (do_start_initialization): Initialize new event
1672 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1673 (gdbpy_initialize_inferior_deleted_event)
1674 (gdbpy_initialize_new_thread_event): Declare.
1675 * python/py-threadevent.c (create_thread_event_object): Add option
1677 * python/py-inferior.c (new_thread_event_object_type)
1678 (new_inferior_event_object_type)
1679 (inferior_deleted_event_object_type): Declare.
1680 (python_new_inferior, python_inferior_deleted): New functions.
1681 (add_thread_object): Emit new_thread event.
1682 (gdbpy_initialize_inferior): Attach new functions to corresponding
1684 (new_thread, new_inferior, inferior_deleted): Define new event
1686 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1688 * python/py-events.h (events_object) <new_inferior,
1689 inferior_deleted, new_thread>: New fields.
1690 * python/py-event.h (create_thread_event_breakpoint): Add optional
1693 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1695 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1696 check current_ui instead.
1697 (internal_vproblem): Likewise.
1699 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1701 * thread.c (print_thread_info_1): Remove unnecessary calls to
1702 uiout->is_mi_like_p.
1704 2017-09-09 Tom Tromey <tom@tromey.com>
1706 * namespace.h (add_using_directive): Update.
1707 * namespace.c (add_using_directive): Change type of excludes to
1709 * dwarf2read.c (read_import_statement): Use std::vector.
1710 (read_namespace): Update.
1711 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1713 2017-09-09 Tom Tromey <tom@tromey.com>
1715 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1717 2017-09-09 Tom Tromey <tom@tromey.com>
1719 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1721 2017-09-09 Tom Tromey <tom@tromey.com>
1723 * stack.c (func_command): Use gdb::def_vector.
1725 2017-09-09 Tom Tromey <tom@tromey.com>
1727 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1728 ui_out_emit_list, ui_out_emit_tuple.
1729 (mi_cmd_var_update): Likewise.
1731 2017-09-09 Tom Tromey <tom@tromey.com>
1733 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1734 ui_out_redirect_pop.
1735 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1736 ui_out_redirect_pop.
1737 * utils.c (do_ui_out_redirect_pop)
1738 (make_cleanup_ui_out_redirect_pop): Remove.
1739 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1740 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1741 * ui-out.h (ui_out_redirect_pop): New class.
1743 2017-09-09 Tom Tromey <tom@tromey.com>
1745 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1746 (list_available_thread_groups, mi_cmd_list_thread_groups)
1747 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1748 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1751 2017-09-09 Tom Tromey <tom@tromey.com>
1753 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1756 2017-09-09 Tom Tromey <tom@tromey.com>
1758 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1759 * stack.c (print_frame): Use ui_out_emit_tuple.
1760 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1761 (info_spu_mailbox_command, info_spu_dma_command)
1762 (info_spu_proxydma_command): Likewise.
1763 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1764 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1765 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1767 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1769 2017-09-09 Tom Tromey <tom@tromey.com>
1771 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1772 (class ui_out_emit_table): Update comment.
1773 * ui-out.c (do_cleanup_table_end)
1774 (make_cleanup_ui_out_table_begin_end): Remove.
1775 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1776 (info_spu_dma_cmdlist): Likewise.
1777 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1778 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1781 2017-09-09 Tom Tromey <tom@tromey.com>
1783 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1784 ui_out_emit_list, gdb::optional.
1786 2017-09-09 John Baldwin <jhb@FreeBSD.org>
1788 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1790 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1792 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1794 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1795 * ada-exp.y: Remove _initialize_ada_exp prototype.
1796 * ada-lang.c: Remove _initialize_ada_language prototype.
1797 * ada-tasks.c: Remove _initialize_tasks prototype.
1798 * addrmap.c: Remove _initialize_addrmap prototype.
1799 * agent.c: Remove _initialize_agent prototype.
1800 * aix-thread.c: Remove _initialize_aix_thread prototype.
1801 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1802 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1803 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1805 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1806 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1807 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1808 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1810 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1812 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1813 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1814 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1815 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1817 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1818 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1819 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1820 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1821 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1822 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1823 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1825 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1827 * annotate.c: Remove _initialize_annotate prototype.
1828 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1829 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1830 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1831 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1832 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1833 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1834 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1835 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1837 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1838 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1839 * auto-load.c: Remove _initialize_auto_load prototype.
1840 * auxv.c: Remove _initialize_auxv prototype.
1841 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1842 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1843 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1844 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1845 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1846 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1848 * break-catch-throw.c: Remove _initialize_break_catch_throw
1850 * breakpoint.c: Remove _initialize_breakpoint prototype.
1851 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1852 * btrace.c: Remove _initialize_btrace prototype.
1853 * charset.c: Remove _initialize_charset prototype.
1854 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1855 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1856 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1857 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1858 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1859 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1860 * coffread.c: Remove _initialize_coffread prototype.
1861 * compile/compile.c: Remove _initialize_compile prototype.
1862 * complaints.c: Remove _initialize_complaints prototype.
1863 * completer.c: Remove _initialize_completer prototype.
1864 * copying.awk: Remove _initialize_copying prototype.
1865 * copying.c: Regenerate.
1866 * core-regset.c: Remove _initialize_core_regset prototype.
1867 * corefile.c: Remove _initialize_core prototype.
1868 * corelow.c: Remove _initialize_corelow prototype.
1869 * cp-abi.c: Remove _initialize_cp_abi prototype.
1870 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1871 * cp-support.c: Remove _initialize_cp_support prototype.
1872 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1873 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1874 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1875 * ctf.c: Remove _initialize_ctf prototype.
1876 * d-lang.c: Remove _initialize_d_language prototype.
1877 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1879 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1880 * dbxread.c: Remove _initialize_dbxread prototype.
1881 * dcache.c: Remove _initialize_dcache prototype.
1882 * demangle.c: Remove _initialize_demangler prototype.
1883 * disasm-selftests.c: Remove _initialize_disasm_selftests
1885 * disasm.c: Remove _initialize_disasm prototype.
1886 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1887 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1888 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1890 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1891 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1892 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1893 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1894 * elfread.c: Remove _initialize_elfread prototype.
1895 * exec.c: Remove _initialize_exec prototype.
1896 * extension.c: Remove _initialize_extension prototype.
1897 * f-lang.c: Remove _initialize_f_language prototype.
1898 * f-valprint.c: Remove _initialize_f_valprint prototype.
1899 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1900 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1901 * filesystem.c: Remove _initialize_filesystem prototype.
1902 * findcmd.c: Remove _initialize_mem_search prototype.
1903 * fork-child.c: Remove _initialize_fork_child prototype.
1904 * frame-base.c: Remove _initialize_frame_base prototype.
1905 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1906 * frame.c: Remove _initialize_frame prototype.
1907 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1908 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1909 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1910 * gcore.c: Remove _initialize_gcore prototype.
1911 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1912 * gdbarch.c: Regenerate.
1913 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1914 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1915 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1916 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1917 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1918 * go-lang.c: Remove _initialize_go_language prototype.
1919 * go32-nat.c: Remove _initialize_go32_nat prototype.
1920 * guile/guile.c: Remove _initialize_guile prototype.
1921 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1922 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1923 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1924 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1925 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1926 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1927 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1928 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1929 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1930 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1932 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1934 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1935 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1936 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1937 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1938 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1939 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1940 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1941 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1942 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1943 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1944 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1945 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1946 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1947 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1948 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1949 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1951 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1953 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1954 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1955 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1956 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1957 * infcall.c: Remove _initialize_infcall prototype.
1958 * infcmd.c: Remove _initialize_infcmd prototype.
1959 * inferior.c: Remove _initialize_inferiors prototype.
1960 * inflow.c: Remove _initialize_inflow prototype.
1961 * infrun.c: Remove _initialize_infrun prototype.
1962 * interps.c: Remove _initialize_interpreter prototype.
1963 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1964 * jit.c: Remove _initialize_jit prototype.
1965 * language.c: Remove _initialize_language prototype.
1966 * linux-fork.c: Remove _initialize_linux_fork prototype.
1967 * linux-nat.c: Remove _initialize_linux_nat prototype.
1968 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1969 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1970 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1971 * m2-lang.c: Remove _initialize_m2_language prototype.
1972 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1973 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1974 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1975 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1976 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1977 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1978 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1979 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1980 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1981 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1982 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1983 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1984 * machoread.c: Remove _initialize_machoread prototype.
1985 * macrocmd.c: Remove _initialize_macrocmd prototype.
1986 * macroscope.c: Remove _initialize_macroscope prototype.
1987 * maint.c: Remove _initialize_maint_cmds prototype.
1988 * mdebugread.c: Remove _initialize_mdebugread prototype.
1989 * memattr.c: Remove _initialize_mem prototype.
1990 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1991 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1992 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1993 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1994 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1995 * microblaze-linux-tdep.c: Remove
1996 _initialize_microblaze_linux_tdep prototype.
1997 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1998 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1999 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2000 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2001 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2002 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2003 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2004 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2005 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2006 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2007 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2009 * mipsread.c: Remove _initialize_mipsread prototype.
2010 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2012 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2013 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2014 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2015 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2016 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2017 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2019 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2020 * nto-procfs.c: Remove _initialize_procfs prototype.
2021 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2022 * objc-lang.c: Remove _initialize_objc_language prototype.
2023 * objfiles.c: Remove _initialize_objfiles prototype.
2024 * observer.c: Remove observer_test_first_notification_function,
2025 observer_test_second_notification_function,
2026 observer_test_third_notification_function, and
2027 _initialize_observer prototypes.
2028 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2029 * osabi.c: Remove _initialize_gdb_osabi prototype.
2030 * osdata.c: Remove _initialize_osdata prototype.
2031 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2032 * parse.c: Remove _initialize_parse prototype.
2033 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2034 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2035 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2036 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2037 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2038 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2039 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2040 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2041 * printcmd.c: Remove _initialize_printcmd prototype.
2042 * probe.c: Remove _initialize_probe prototype.
2043 * proc-api.c: Remove _initialize_proc_api prototype.
2044 * proc-events.c: Remove _initialize_proc_events prototype.
2045 * proc-service.c: Remove _initialize_proc_service prototype.
2046 * procfs.c: Remove _initialize_procfs prototype.
2047 * psymtab.c: Remove _initialize_psymtab prototype.
2048 * python/python.c: Remove _initialize_python prototype.
2049 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2050 * record-btrace.c: Remove _initialize_record_btrace prototype.
2051 * record-full.c: Remove _initialize_record_full prototype.
2052 * record.c: Remove _initialize_record prototype.
2053 * regcache.c: Remove _initialize_regcache prototype.
2054 * reggroups.c: Remove _initialize_reggroup prototype.
2055 * remote-notif.c: Remove _initialize_notif prototype.
2056 * remote-sim.c: Remove _initialize_remote_sim prototype.
2057 * remote.c: Remove _initialize_remote prototype.
2058 * reverse.c: Remove _initialize_reverse prototype.
2059 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2060 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2061 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2063 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2064 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2065 * rust-exp.y: Remove _initialize_rust_exp prototype.
2066 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2067 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2068 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2069 * score-tdep.c: Remove _initialize_score_tdep prototype.
2070 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2072 * ser-go32.c: Remove _initialize_ser_dos prototype.
2073 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2074 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2075 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2076 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2077 * serial.c: Remove _initialize_serial prototype.
2078 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2079 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2080 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2081 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2082 * skip.c: Remove _initialize_step_skip prototype.
2083 * sol-thread.c: Remove _initialize_sol_thread prototype.
2084 * solib-aix.c: Remove _initialize_solib_aix prototype.
2085 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2086 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2087 * solib-frv.c: Remove _initialize_frv_solib prototype.
2088 * solib-spu.c: Remove _initialize_spu_solib prototype.
2089 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2090 * solib-target.c: Remove _initialize_solib_target prototype.
2091 * solib.c: Remove _initialize_solib prototype.
2092 * source.c: Remove _initialize_source prototype.
2093 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2094 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2096 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2097 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2098 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2099 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2101 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2102 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2103 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2104 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2106 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2108 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2110 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2112 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2113 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2115 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2117 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2119 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2121 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2123 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2124 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2125 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2126 * stabsread.c: Remove _initialize_stabsread prototype.
2127 * stack.c: Remove _initialize_stack prototype.
2128 * stap-probe.c: Remove _initialize_stap_probe prototype.
2129 * std-regs.c: Remove _initialize_frame_reg prototype.
2130 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2131 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2132 * symfile.c: Remove _initialize_symfile prototype.
2133 * symmisc.c: Remove _initialize_symmisc prototype.
2134 * symtab.c: Remove _initialize_symtab prototype.
2135 * target-dcache.c: Remove _initialize_target_dcache prototype.
2136 * target-descriptions.c: Remove _initialize_target_descriptions
2138 * thread.c: Remove _initialize_thread prototype.
2139 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2141 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2142 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2143 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2145 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2146 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2147 * tracefile.c: Remove _initialize_tracefile prototype.
2148 * tracepoint.c: Remove _initialize_tracepoint prototype.
2149 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2150 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2151 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2152 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2153 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2154 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2155 * tui/tui.c: Remove _initialize_tui prototype.
2156 * typeprint.c: Remove _initialize_typeprint prototype.
2157 * user-regs.c: Remove _initialize_user_regs prototype.
2158 * utils.c: Remove _initialize_utils prototype.
2159 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2160 * valarith.c: Remove _initialize_valarith prototype.
2161 * valops.c: Remove _initialize_valops prototype.
2162 * valprint.c: Remove _initialize_valprint prototype.
2163 * value.c: Remove _initialize_values prototype.
2164 * varobj.c: Remove _initialize_varobj prototype.
2165 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2166 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2167 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2168 * windows-nat.c: Remove _initialize_windows_nat,
2169 _initialize_check_for_gdb_ini, and _initialize_loadable
2171 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2172 * xcoffread.c: Remove _initialize_xcoffread prototype.
2173 * xml-support.c: Remove _initialize_xml_support prototype.
2174 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2175 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2177 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2179 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2181 2017-09-08 Keith Seitz <keiths@redhat.com>
2183 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2186 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2188 * f-valprint.c (f_val_print): Remove check for one byte
2189 sized integers. Remove printing of character type.
2191 2017-09-08 Frank Penczek <frank.penczek@intel.com>
2192 Christoph Weinmann <christoph.t.weinmann@intel.com>
2193 Bernhard Heckel <bernhard.heckel@intel.com>
2195 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2196 to maintain proper indentation when printing pointers/refs.
2198 2017-09-07 Joel Brobecker <brobecker@adacore.com>
2202 2017-09-07 Joel Brobecker <brobecker@adacore.com>
2204 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2206 2017-09-05 Tom Tromey <tom@tromey.com>
2208 * parse.c (funcall_chain): Now a std::vector.
2209 (start_arglist, end_arglist): Simplify.
2210 (free_funcalls): Remove.
2211 (parse_exp_in_context_1): Remove cleanup.
2213 2017-09-05 Tom Tromey <tom@tromey.com>
2215 * go-exp.y (go_parse): Don't create a cleanup.
2217 2017-09-05 Tom Tromey <tom@tromey.com>
2219 * d-exp.y (PrimaryExpression): Use std::string.
2220 (d_parse): Don't create a cleanup.
2222 2017-09-05 Tom Tromey <tom@tromey.com>
2224 * utils.c (do_clear_parser_state): Remove.
2225 (make_cleanup_clear_parser_state): Remove.
2226 * p-exp.y (pascal_parse): Use scoped_restore.
2227 * m2-exp.y (m2_parse): Use scoped_restore.
2228 * f-exp.y (f_parse): Use scoped_restore.
2229 * d-exp.y (d_parse): Use scoped_restore.
2230 * c-exp.y (c_parse): Use scoped_restore.
2231 * ada-exp.y (ada_parse): Use scoped_restore.
2232 * utils.h (make_cleanup_clear_parser_state): Remove.
2234 2017-09-06 Keith Seitz <keiths@redhat.com>
2236 * dwarf2read.c (dw2_linkage_name_attr): New function.
2237 (dw2_linkage_name): New function.
2238 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2239 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2240 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2242 2017-09-06 Kamil Rytarowski <n54@gmx.com>
2244 * config/djgpp/djconfig.sh: Correct shell portability issue.
2246 2017-09-06 Kamil Rytarowski <n54@gmx.com>
2248 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2250 2017-09-06 John Baldwin <jhb@FreeBSD.org>
2252 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2253 * NEWS: Mention new FreeBSD/mips native configuration.
2254 * configure.host: Add aarch64*-*-freebsd*.
2255 * configure.nat: Likewise.
2256 * aarch64-fbsd-nat.c: New file.
2258 2017-09-06 John Baldwin <jhb@FreeBSD.org>
2260 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2261 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2262 * NEWS: Mention new FreeBSD/aarch64 target.
2263 * configure.tgt: Add aarch64*-*-freebsd*.
2264 * aarch64-fbsd-tdep.c: New file.
2265 * aarch64-fbsd-tdep.h: New file.
2267 2017-09-06 Kamil Rytarowski <n54@gmx.com>
2269 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2271 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2273 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2276 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2278 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2281 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2283 * infrun.c (follow_exec): Call add_thread after
2284 target_find_description.
2286 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2288 * infrun.c (handle_inferior_event_1): When exec'ing, read
2289 stop_pc after follow_exec.
2291 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2293 * remote.c (process_g_packet): Update error message.
2295 2017-09-05 Yao Qi <yao.qi@linaro.org>
2297 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2300 2017-09-05 Pedro Alves <palves@redhat.com>
2302 * eval.c (eval_call, evaluate_funcall): New functions, factored
2304 (evaluate_subexp_standard): ... this.
2306 2017-09-05 Yao Qi <yao.qi@linaro.org>
2308 * amd64-tdep.c (amd64_target_description): Create target
2310 (_initialize_amd64_tdep): Don't call functions
2311 initialize_tdesc_amd64_*. Add self tests.
2312 * arch/amd64.c (amd64_create_target_description): Add parameter
2313 is_linux. Call set_tdesc_osabi if is_linux is true.
2314 * arch/amd64.h (amd64_create_target_description): Update the
2316 * arch/i386.c (i386_create_target_description): Add parameter
2317 is_linux. Call set_tdesc_osabi if is_linux is true.
2318 * arch/i386.h (i386_create_target_description): Update
2320 * configure.tgt: Add i386.o to gdb_target_obs.
2321 * features/Makefile (XMLTOC): Remove i386/*.xml.
2322 * features/i386/amd64-avx-avx512.c: Remove.
2323 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2324 * features/i386/amd64-avx-mpx.c: Remove.
2325 * features/i386/amd64-avx.c: Remove.
2326 * features/i386/amd64-mpx.c: Remove.
2327 * features/i386/amd64.c: Remove.
2328 * features/i386/i386-avx-avx512.c: Remove.
2329 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2330 * features/i386/i386-avx-mpx.c: Remove.
2331 * features/i386/i386-avx.c: Remove.
2332 * features/i386/i386-mmx.c: Remove.
2333 * features/i386/i386-mpx.c: Remove.
2334 * features/i386/i386.c: Remove.
2335 * i386-tdep.c: Don't include features/i386/i386*.c., include
2336 target-descriptions.h and arch/i386.h.
2337 (i386_target_description): Create target descriptions.
2338 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2339 functions. Do self tests.
2341 2017-09-05 Yao Qi <yao.qi@linaro.org>
2343 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2344 * features/i386/amd64-avx-avx512-linux.c: Removed.
2345 * features/i386/amd64-avx-linux.c: Removed.
2346 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2347 * features/i386/amd64-avx-mpx-linux.c: Removed.
2348 * features/i386/amd64-linux.c: Removed.
2349 * features/i386/amd64-mpx-linux.c: Removed.
2350 * features/i386/x32-avx-avx512-linux.c: Removed.
2351 * features/i386/x32-avx-linux.c: Removed.
2352 * features/i386/x32-linux.c: Removed.
2354 2017-09-05 Yao Qi <yao.qi@linaro.org>
2356 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2358 (amd64_linux_read_description): Call
2359 amd64_create_target_description.
2360 * arch/amd64.c: New file.
2361 * arch/amd64.h: New file.
2362 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2363 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2365 2017-09-05 Yao Qi <yao.qi@linaro.org>
2367 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2368 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2369 (amd64_linux_read_description): Create target descriptions.
2370 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2371 functions. Add unit tests.
2372 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2374 * features/i386/64bit-avx.c: Generated.
2375 * features/i386/64bit-avx512.c: Generated.
2376 * features/i386/64bit-core.c: Generated.
2377 * features/i386/64bit-linux.c: Generated.
2378 * features/i386/64bit-mpx.c: Generated.
2379 * features/i386/64bit-pkeys.c: Generated.
2380 * features/i386/64bit-segments.c: Generated.
2381 * features/i386/64bit-sse.c: Generated.
2382 * features/i386/x32-core.c: Generated.
2383 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2384 c files for amd64-linux and x32-linux.
2386 2017-09-05 Yao Qi <yao.qi@linaro.org>
2388 * amd64-linux-tdep.c (amd64_linux_read_description): New
2390 (amd64_linux_core_read_description): Call
2391 amd64_linux_read_description.
2392 (amd64_linux_init_abi): Likewise.
2393 (amd64_x32_linux_init_abi): Likewise.
2394 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2395 * x86-linux-nat.c (x86_linux_read_description): Call
2396 amd64_linux_read_description.
2398 2017-09-05 Yao Qi <yao.qi@linaro.org>
2400 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2403 2017-09-05 Yao Qi <yao.qi@linaro.org>
2405 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2406 * features/i386/i386-avx-avx512-linux.c: Remove.
2407 * features/i386/i386-avx-linux.c: Remove.
2408 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2409 * features/i386/i386-avx-mpx-linux.c: Remove.
2410 * features/i386/i386-linux.c: Remove.
2411 * features/i386/i386-mmx-linux.c: Remove.
2412 * features/i386/i386-mpx-linux.c: Remove.
2414 2017-09-05 Yao Qi <yao.qi@linaro.org>
2416 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2417 (SFILES): Add arch/i386.c.
2418 (HFILES_NO_SRCDIR): Add arch/i386.h.
2419 * arch/i386.c: New file.
2420 * arch/i386.h: New file.
2421 * arch/tdesc.h (allocate_target_description): Declare.
2422 (set_tdesc_architecture): Declare.
2423 (set_tdesc_osabi): Declare.
2424 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2425 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2426 include arch/i386.h.
2427 (i386_linux_read_description): Remove code and call
2428 i386_create_target_description.
2429 (set_tdesc_architecture): New function.
2430 (set_tdesc_osabi): New function.
2431 * target-descriptions.h (allocate_target_description): Remove.
2433 2017-09-05 Yao Qi <yao.qi@linaro.org>
2435 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2436 * target-descriptions.c (tdesc_create_feature): Likewise, and
2438 * features/i386/32bit-avx.c: Re-generated.
2439 * features/i386/32bit-avx512.c: Re-generated.
2440 * features/i386/32bit-core.c: Re-generated.
2441 * features/i386/32bit-linux.c: Re-generated.
2442 * features/i386/32bit-mpx.c: Re-generated.
2443 * features/i386/32bit-pkeys.c: Re-generated.
2444 * features/i386/32bit-sse.c: Re-generated.
2446 2017-09-05 Yao Qi <yao.qi@linaro.org>
2448 * regformats/regdef.h (struct reg): Override operator == and !=.
2450 2017-09-05 Yao Qi <yao.qi@linaro.org>
2452 * arch/tdesc.h: New file.
2453 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2454 * target-descriptions.c: Update comments.
2455 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2457 * features/i386/32bit-avx.c: Re-generated.
2458 * features/i386/32bit-avx512.c: Re-generated.
2459 * features/i386/32bit-core.c: Re-generated.
2460 * features/i386/32bit-linux.c: Re-generated.
2461 * features/i386/32bit-mpx.c: Re-generated.
2462 * features/i386/32bit-pkeys.c: Re-generated.
2463 * features/i386/32bit-sse.c: Re-generated.
2465 2017-09-05 Yao Qi <yao.qi@linaro.org>
2467 * regformats/regdat.sh: Update generated code.
2469 2017-09-05 Yao Qi <yao.qi@linaro.org>
2471 * regformats/regdat.sh: Adjust code order.
2473 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2475 * expprint.c (dump_subexp_body_standard): Use constant format
2476 string in fprintf_filtered call.
2478 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2480 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2482 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2484 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2486 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2488 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2490 * bsd-kvm.o: Define _KMEMUSER.
2491 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2492 * configure: Regenerate.
2494 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2496 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2497 * i386-fbsd-nat.c: Likewise.
2499 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2501 * unittests/array-view-selftests.c: Add include of <array>.
2503 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2505 * spu-tdep.c (flush_ea_cache): Add missing argument to
2506 call_function_by_hand.
2508 2017-09-04 Pedro Alves <palves@redhat.com>
2510 * NEWS (Safer support for debugging with no debug info): New.
2512 2017-09-04 Pedro Alves <palves@redhat.com>
2514 * c-exp.y (function_method, function_method_void): Add current
2515 instance flags to TYPE_INSTANCE.
2516 * dwarf2read.c (check_modifier): New.
2517 (compute_delayed_physnames): Assert that only C++ adds delayed
2518 physnames. Mark fn_fields as const/volatile depending on
2520 * eval.c (make_params): New type_instance_flags parameter. Use
2521 it as the new type's instance flags.
2522 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2523 flags element and pass it to make_params.
2524 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2525 instance flags element.
2526 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2527 * gdbtypes.h: Include "enum-flags.h".
2528 (type_instance_flags): New enum-flags type.
2529 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2530 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2531 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2532 (follow_type_instance_flags): New function.
2533 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2534 * parser-defs.h (follow_type_instance_flags): Declare.
2535 * valops.c (value_struct_elt_for_reference): const/volatile must
2538 2017-09-04 Pedro Alves <palves@redhat.com>
2540 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2541 function/method scopes; lookup the nested name as a function local
2544 2017-09-04 Pedro Alves <palves@redhat.com>
2546 (%type <voidval>): Add function_method.
2547 * c-exp.y (exp): New production for calls with no arguments.
2548 (function_method, function_method_void_or_typelist): New
2550 (exp): New production for "method()::static_var".
2551 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2552 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2553 Handle OP_FUNC_STATIC_VAR.
2554 * parse.c (operator_length_standard):
2555 Handle OP_FUNC_STATIC_VAR.
2557 2017-09-04 Pedro Alves <palves@redhat.com>
2559 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2561 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2563 * parse.c (operator_length_standard, operator_check_standard):
2565 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2567 2017-09-04 Pedro Alves <palves@redhat.com>
2569 * ax-gdb.c: Include "typeprint.h".
2570 (gen_expr_for_cast): New function.
2571 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2572 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2574 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2575 nodebug_data_symbol.
2576 * eval.c: Include "typeprint.h".
2577 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2578 Error out if symbol has unknown type.
2579 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2580 evaluate_subexp_for_cast.
2581 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2583 (evaluate_subexp_for_cast): New function.
2584 * gdbtypes.c (init_nodebug_var_type): New function.
2585 (objfile_type): Use it to initialize types of variables with no
2587 * typeprint.c (error_unknown_type): New.
2588 * typeprint.h (error_unknown_type): New declaration.
2589 * compile/compile-c-types.c (convert_type_basic): Handle
2590 TYPE_CODE_ERROR; warn and fallback to int for variables with
2593 2017-09-04 Pedro Alves <palves@redhat.com>
2595 * eval.c (evaluate_var_value): New function, factored out from ...
2596 (evaluate_subexp_standard): ... here.
2598 2017-09-04 Pedro Alves <palves@redhat.com>
2600 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2601 Remove useless assignments to 'op'.
2603 2017-09-04 Pedro Alves <palves@redhat.com>
2605 * eval.c (eval_skip_value): New function.
2606 (evaluate_subexp_standard): Use it.
2608 2017-09-04 Pedro Alves <palves@redhat.com>
2610 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2611 function name from symbol/minsym and pass it to
2612 error_call_unknown_return_type.
2614 2017-09-04 Pedro Alves <palves@redhat.com>
2616 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2617 * ax-gdb.c (gen_msym_var_ref): New function.
2618 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2619 * eval.c (evaluate_var_msym_value): New function.
2620 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2621 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2622 to call_function_by_hand.
2623 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2624 Handle OP_VAR_MSYM_VALUE.
2625 (union exp_element) <msymbol>: New field.
2626 * minsyms.h (struct type): Forward declare.
2627 (find_minsym_type_and_address): Declare.
2628 * parse.c (write_exp_elt_msym): New function.
2629 (write_exp_msymbol): Delete, refactored as ...
2630 (find_minsym_type_and_address): ... this new function.
2631 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2632 (operator_length_standard, operator_check_standard): Handle
2634 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2636 2017-09-04 Pedro Alves <palves@redhat.com>
2638 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2639 TYPE_GNU_IFUNC specially here. Throw error if return type is
2641 * ada-typeprint.c (print_func_type): Handle functions with unknown
2643 * c-typeprint.c (c_type_print_base): Handle functions and methods
2644 with unknown return type.
2645 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2646 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2647 * compile/compile-c-types.c: Include "objfiles.h".
2648 (convert_func): For functions with unknown return type, warn and
2650 * compile/compile-object-run.c (compile_object_run): Adjust call
2651 to call_function_by_hand_dummy.
2652 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2653 call_function_by_hand.
2654 * eval.c (evaluate_subexp_standard): Adjust calls to
2655 call_function_by_hand. Handle functions and methods with unknown
2656 return type. Pass expect_type to call_function_by_hand.
2657 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2659 * gcore.c (call_target_sbrk): Adjust call to
2660 call_function_by_hand.
2661 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2662 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2663 an integer address type instead of nodebug.
2664 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2665 call_function_by_hand.
2666 * infcall.c (error_call_unknown_return_type): New function.
2667 (call_function_by_hand): New "default_return_type" parameter.
2669 (call_function_by_hand_dummy): New "default_return_type"
2670 parameter. Use it instead of defaulting to int. If there's no
2671 default and the return type is unknown, throw an error. If
2672 there's a default return type, and the called function has no
2673 debug info, then assume the function is prototyped.
2674 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2675 New "default_return_type" parameter.
2676 (error_call_unknown_return_type): New declaration.
2677 * linux-fork.c (call_lseek): Cast return type of lseek.
2678 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2679 call_function_by_hand.
2680 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2681 calls to call_function_by_hand.
2682 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2684 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2685 (value_nsstring, print_object_command): Adjust calls to
2686 call_function_by_hand.
2687 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2688 functions with unknown return type.
2689 (pascal_type_print_func_varspec_suffix): New function.
2690 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2691 TYPE_CODE_METHOD>: Use it.
2692 * python/py-value.c (valpy_call): Adjust call to
2693 call_function_by_hand.
2694 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2695 call_function_by_hand.
2696 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2697 call_function_by_hand.
2698 * valops.c (value_allocate_space_in_inferior): Adjust call to
2699 call_function_by_hand.
2700 * typeprint.c (type_print_unknown_return_type): New function.
2701 * typeprint.h (type_print_unknown_return_type): New declaration.
2703 2017-09-04 Pedro Alves <palves@redhat.com>
2705 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2706 types with more than one parameter as prototyped.
2708 2017-09-04 Pedro Alves <palves@redhat.com>
2710 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2711 (disassemble_command): Use gdb_disassembly_flags instead of bare
2713 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2714 (dump_insns, do_mixed_source_and_assembly_deprecated)
2715 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2716 Use gdb_disassembly_flags instead of bare int.
2717 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2718 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2719 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2720 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2721 (enum gdb_disassembly_flag): ... values of this new enumeration.
2722 (gdb_disassembly_flags): Define.
2724 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2725 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2726 gdb_disassembly_flags instead of bare int.
2727 * record-btrace.c (btrace_insn_history)
2728 (record_btrace_insn_history, record_btrace_insn_history_range)
2729 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2730 instead of bare int.
2731 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2732 Use gdb_disassembly_flags instead of bare int.
2733 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2735 * target-delegates.c: Regenerate.
2736 * target.c (target_insn_history, target_insn_history_from)
2737 (target_insn_history_range): Use gdb_disassembly_flags instead of
2739 * target.h: Include "disasm.h".
2740 (struct target_ops) <to_insn_history, to_insn_history_from,
2741 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2743 (target_insn_history, target_insn_history_from)
2744 (target_insn_history_range): Use gdb_disassembly_flags instead of
2747 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2749 * cli/cli-script.c (build_command_line): For if/while commands,
2750 check whether args is empty.
2752 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2754 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2755 (enum command_control_type): Likewise.
2756 (struct command_line): Likewise.
2757 (free_command_lines): Likewise.
2758 (struct command_lines_deleter): Likewise.
2759 (command_line_up): Likewise.
2760 (read_command_lines): Likewise.
2761 (read_command_lines_1): Likewise.
2762 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2763 (enum command_control_type): Likewise.
2764 (struct command_line): Likewise.
2765 (free_command_lines): Likewise.
2766 (struct command_lines_deleter): Likewise.
2767 (command_line_up): Likewise.
2768 (read_command_lines): Likewise.
2769 (read_command_lines_1): Likewise.
2770 * breakpoint.h: Include cli/cli-script.h.
2771 * extension-priv.h: Likewise.
2772 * gdbcmd.h: Likewise.
2774 2017-09-04 Pedro Alves <palves@redhat.com>
2776 * ada-lang.c (is_known_support_routine): Move sal declaration to
2777 where it is initialized.
2778 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2779 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2780 (clear_command, update_static_tracepoint): Remove init_sal
2781 references. Move declarations closer to initializations.
2782 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2784 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2785 references. Move sal declarations closer to initializations.
2786 * frame.c (find_frame_sal): Return a symtab_and_line via function
2787 return instead of output parameter. Remove init_sal references.
2788 * frame.h (find_frame_sal): Return a symtab_and_line via function
2789 return instead of output parameter.
2790 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2791 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2793 (gdbscm_find_pc_line): Remove init_sal reference.
2794 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2795 references. Move declarations closer to initializations.
2796 * infcmd.c (set_step_frame): Update. Move declarations closer to
2798 (finish_backward): Remove init_sal references. Move declarations
2799 closer to initializations.
2800 * infrun.c (process_event_stop_test, handle_step_into_function)
2801 (insert_hp_step_resume_breakpoint_at_frame)
2802 (insert_step_resume_breakpoint_at_caller): Likewise.
2803 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2804 (symbol_to_sal): Likewise.
2805 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2806 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2807 to its initialization.
2808 * reverse.c (save_bookmark_command): Use new/delete. Remove
2809 init_sal references. Move declarations closer to initializations.
2810 * source.c (get_current_source_symtab_and_line): Remove brace
2812 (set_current_source_symtab_and_line): Now takes the sal by const
2813 reference. Remove brace initialization.
2814 (line_info): Remove init_sal reference.
2815 * source.h (set_current_source_symtab_and_line): Now takes a
2816 symtab_and_line via const reference.
2817 * stack.c (set_current_sal_from_frame): Adjust.
2818 (print_frame_info): Adjust.
2819 (get_last_displayed_sal): Return the sal via function return
2820 instead of via output parameter. Simplify.
2821 (frame_info): Adjust.
2822 * stack.h (get_last_displayed_sal): Return the sal via function
2823 return instead of via output parameter.
2824 * symtab.c (init_sal): Delete.
2825 (find_pc_sect_line): Remove init_sal references. Move
2826 declarations closer to initializations.
2827 (find_function_start_sal): Remove init_sal references. Move
2828 declarations closer to initializations.
2829 * symtab.h (struct symtab_and_line): In-class initialize all
2831 * tracepoint.c (set_traceframe_context)
2832 (print_one_static_tracepoint_marker): Remove init_sal references.
2833 Move declarations closer to initializations.
2834 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2835 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2836 declarations closer to initializations.
2837 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2838 init_sal references. Adjust.
2840 2017-09-04 Pedro Alves <palves@redhat.com>
2842 * ax-gdb.c (agent_command_1): Use range-for.
2843 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2844 * breakpoint.c: Include "common/array-view.h".
2845 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2846 parameter from struct symtabs_and_lines to
2847 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2848 (breakpoint_sals_to_pc): Change sals parameter from struct
2849 symtabs_and_lines to std::vector reference.
2850 (check_fast_tracepoint_sals): Change sals parameter from struct
2851 symtabs_and_lines to std::array_view. Use range-for.
2852 (decode_static_tracepoint_spec): Return a std::vector instead of
2853 symtabs_and_lines. Update.
2854 (create_breakpoint): Update.
2855 (break_range_command, until_break_command, clear_command): Update.
2856 (base_breakpoint_decode_location, bkpt_decode_location)
2857 (bkpt_probe_create_sals_from_location)
2858 (bkpt_probe_decode_location, tracepoint_decode_location)
2859 (tracepoint_probe_decode_location)
2860 (strace_marker_create_sals_from_location): Return a std::vector
2861 instead of symtabs_and_lines.
2862 (strace_marker_create_breakpoints_sal): Update.
2863 (strace_marker_decode_location): Return a std::vector instead of
2864 symtabs_and_lines. Update.
2865 (update_breakpoint_locations): Change struct symtabs_and_lines
2866 parameters to gdb::array_view. Adjust.
2867 (location_to_sals): Return a std::vector instead of
2868 symtabs_and_lines. Update.
2869 (breakpoint_re_set_default): Use std::vector instead of struct
2871 (decode_location_default): Return a std::vector instead of
2872 symtabs_and_lines. Update.
2873 * breakpoint.h: Include "common/array-view.h".
2874 (struct breakpoint_ops) <decode_location>: Now returns a
2875 std::vector instead of returning a symtabs_and_lines via output
2877 (update_breakpoint_locations): Change sals parameters to use
2879 * cli/cli-cmds.c (edit_command, list_command): Update to use
2880 std::vector and gdb::array_view.
2881 (ambiguous_line_spec): Adjust to use gdb::array_view and
2883 (compare_symtabs): Rename to ...
2884 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2885 const reference and adjust.
2886 (filter_sals): Rewrite using std::vector and standard algorithms.
2887 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2888 (jump_command): Update to use std::vector.
2889 * linespec.c (struct linespec_state) <canonical_names>: Update
2891 (add_sal_to_sals_basic): Delete.
2892 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2893 (decode_line_2, create_sals_line_offset)
2894 (convert_address_location_to_sals, convert_linespec_to_sals)
2895 (convert_explicit_location_to_sals, parse_linespec)
2896 (event_location_to_sals, decode_line_full, decode_line_1)
2897 (decode_line_with_current_source)
2898 (decode_line_with_last_displayed, decode_objc)
2899 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2900 (linespec_result::~linespec_result): Adjust to use std::vector
2901 instead of symtabs_and_lines.
2902 * linespec.h (linespec_sals::sals): Now a std::vector.
2903 (struct linespec_result): Use std::vector, bool, and in-class
2905 (decode_line_1, decode_line_with_current_source)
2906 (decode_line_with_last_displayed): Return std::vector.
2907 * macrocmd.c (info_macros_command): Use std::vector.
2908 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2909 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2911 * probe.h (parse_probes): Return a std::vector.
2912 * python/python.c (gdbpy_decode_line): Use std::vector and
2914 * source.c (select_source_symtab, line_info): Use std::vector.
2915 * stack.c (func_command): Use std::vector.
2916 * symtab.h (struct symtabs_and_lines): Delete.
2917 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2919 2017-09-04 Pedro Alves <palves@redhat.com>
2921 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2922 unittests/array-view-selftests.c.
2923 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2924 * common/array-view.h: New file.
2925 * unittests/array-view-selftests.c: New file.
2927 2017-09-04 Pedro Alves <palves@redhat.com>
2929 * cli/cli-cmds.c (edit_command): Pass message to
2930 ambiguous_line_spec.
2931 (list_command): Pass message to ambiguous_line_spec. Say
2932 "first"/"last" instead of "start" and "end" to be consistent with
2934 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2935 them to print formatted message.
2937 2017-09-04 Pedro Alves <palves@redhat.com>
2939 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2940 ftrace_update_insns by reference instead of pointer.
2942 2017-09-04 Yao Qi <yao.qi@linaro.org>
2944 * i386-go32-tdep.c: Include x86-xstate.h.
2945 (i386_go32_init_abi): Call i386_target_description.
2946 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2947 if xcr0 is X86_XSTATE_X87_MASK.
2948 * i386-tdep.h (tdesc_i386): Remove the declaration.
2949 (tdesc_i386_mmx): Likewise.
2951 2017-09-04 Yao Qi <yao.qi@linaro.org>
2953 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2954 X86_XSTATE_SSE_MASK instead of 0.
2956 2017-09-04 Yao Qi <yao.qi@linaro.org>
2958 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2959 i386_target_description.
2960 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2961 i386_target_description.
2962 * i386-tdep.c (i386_gdbarch_init): Likewise.
2964 2017-09-04 Yao Qi <yao.qi@linaro.org>
2966 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2967 (x86_darwin_init_abi_64): Call amd64_target_description.
2968 * amd64-dicos-tdep.c: Likewise.
2969 * amd64-fbsd-nat.c: Likewise.
2970 * amd64-fbsd-tdep.c: Likewise.
2971 * amd64-nbsd-tdep.c: Likewise.
2972 * amd64-obsd-tdep.c: Likewise.
2973 * amd64-sol2-tdep.c: Likewise.
2974 * amd64-windows-tdep.c: Likewise.
2975 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2977 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2979 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2980 (btrace_function) <insn>: Change type to use std::vector.
2981 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2982 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2983 ftrace_update_insns, ftrace_compute_global_level_offset,
2984 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2985 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2986 change to std::vector.
2987 (ftrace_update_insns): Adjust to change to std::vector, change
2988 type of INSN parameter.
2989 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2990 * record-btrace.c (btrace_call_history_insn_range,
2991 btrace_compute_src_line_range,
2992 record_btrace_frame_prev_register): Adjust to change to
2994 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2995 to change to std::vector.
2997 2017-09-03 Tom Tromey <tom@tromey.com>
2999 * corefile.c (reopen_exec_file): Use std::string.
3001 2017-09-03 Tom Tromey <tom@tromey.com>
3003 * compile/compile.c (compile_register_name_mangled): Return
3005 * compile/compile-loc2c.c (pushf_register_address): Update.
3006 (pushf_register): Update.
3007 * compile/compile-c-types.c (convert_array): Update.
3008 * compile/compile-c-symbols.c (generate_vla_size): Update.
3009 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3010 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3011 (convert_one_symbol): Update.
3012 (generate_c_for_for_one_variable): Update.
3013 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3015 (generate_register_struct): Update.
3016 * compile/compile-internal.h (c_get_range_decl_name): Return a
3018 (compile_register_name_mangled): Return std::string.
3020 2017-09-03 Tom Tromey <tom@tromey.com>
3022 * utils.c (perror_string): Return a std::string.
3023 (throw_perror_with_name, perror_warning_with_name): Update.
3025 2017-09-03 Tom Tromey <tom@tromey.com>
3027 * demangle.c (demangle_command): Use std::string,
3030 2017-09-03 Tom Tromey <tom@tromey.com>
3032 * cli/cli-setshow.c (do_set_command): Use std::string.
3034 2017-09-03 Tom Tromey <tom@tromey.com>
3036 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3038 2017-09-03 Tom Tromey <tom@tromey.com>
3040 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3042 2017-09-03 Tom Tromey <tom@tromey.com>
3044 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3045 gdb::unique_xmalloc_ptr.
3047 2017-09-03 Tom Tromey <tom@tromey.com>
3049 * thread.c (print_thread_info_1): Use string_printf.
3050 (thread_apply_command, thread_apply_all_command): Use
3053 2017-09-03 Tom Tromey <tom@tromey.com>
3055 * valprint.c (val_print_string): Update.
3056 * gdbcore.h (memory_error_message): Return std::string.
3057 * corefile.c (memory_error_message): Return std::string.
3058 (memory_error): Update.
3059 * breakpoint.c (insert_bp_location): Update.
3061 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3063 * target/waitstatus.h (target_waitstatus_to_string): Change
3064 return type to std::string.
3065 * target/waitstatus.c (target_waitstatus_to_string): Return
3067 * target.h (target_waitstatus_to_string): Remove declaration.
3068 * infrun.c (resume, clear_proceed_status_thread,
3069 print_target_wait_results, do_target_wait, save_waitstatus,
3070 stop_all_threads): Adjust.
3071 * record-btrace.c (record_btrace_wait): Adjust.
3073 (target_debug_print_struct_target_waitstatus_p): Adjust.
3075 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3078 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3081 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3083 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3084 for setting/unsetting environment variables on the remote target.
3085 (New remote packets): Add entries for QEnvironmentHexEncoded,
3086 QEnvironmentUnset and QEnvironmentReset.
3087 * common/environ.c (gdb_environ::operator=): Extend method to
3088 handle m_user_set_env_list and m_user_unset_env_list.
3089 (gdb_environ::clear): Likewise.
3090 (match_var_in_string): Change type of first parameter from 'char
3091 *' to 'const char *'.
3092 (gdb_environ::set): Extend method to handle
3093 m_user_set_env_list and m_user_unset_env_list.
3094 (gdb_environ::unset): Likewise.
3095 (gdb_environ::clear_user_set_env): New method.
3096 (gdb_environ::user_set_envp): Likewise.
3097 (gdb_environ::user_unset_envp): Likewise.
3098 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3099 m_user_unset_env_list on move constructor/assignment.
3100 (unset): Add new default parameter 'update_unset_list = true'.
3101 (clear_user_set_env): New method.
3102 (user_set_envp): Likewise.
3103 (user_unset_envp): Likewise.
3104 (m_user_set_env_list): New std::set.
3105 (m_user_unset_env_list): Likewise.
3106 * common/rsp-low.c (hex2str): New function.
3107 (bin2hex): New overload for bin2hex function.
3108 * common/rsp-low.c (hex2str): New prototype.
3109 (str2hex): New overload prototype.
3110 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3111 QEnvironmentUnset and QEnvironmentReset.
3112 (remote_protocol_features): Add QEnvironmentHexEncoded,
3113 QEnvironmentUnset and QEnvironmentReset packets.
3114 (send_environment_packet): New function.
3115 (extended_remote_environment_support): Likewise.
3116 (extended_remote_create_inferior): Call
3117 extended_remote_environment_support.
3118 (_initialize_remote): Add QEnvironmentHexEncoded,
3119 QEnvironmentUnset and QEnvironmentReset packet configs.
3120 * unittests/environ-selftests.c (gdb_selftest_env_var):
3122 (test_vector_initialization): New function.
3123 (test_init_from_host_environ): Likewise.
3124 (test_reinit_from_host_environ): Likewise.
3125 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3127 (test_unset_set_empty_vector): Likewise.
3128 (test_vector_clear): Likewise.
3129 (test_std_move): Likewise.
3130 (test_move_constructor):
3131 (test_self_move): Likewise.
3132 (test_set_unset_reset): Likewise.
3133 (run_tests): Rewrite in terms of the functions above.
3135 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
3137 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3138 (adi_available): Use a temp variable of type CORE_ADDR as argument
3139 3 when calling target_auxv_search.
3140 (adi_normalize_address): Use masks and xor operators to calculate
3142 (adi_read_versions, adi_write_versions, adi_print_versions)
3143 (do_examine, do_assign): Use paddress.
3145 2017-08-29 John Baldwin <jhb@FreeBSD.org>
3147 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3148 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3149 out of loop and add supply of FIR.
3150 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3153 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3156 * cli/cli-script.c (define_command): Don't convert command name
3159 2017-08-25 Joel Brobecker <brobecker@adacore.com>
3161 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3162 Update all callers accordingly. Remove all code blocks handling
3163 the case where DISPP is not NULL.
3165 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3168 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3169 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3170 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3172 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3174 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3175 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3176 (read_comp_units_from_section): New parameter abbrev_section, use
3177 read_and_check_comp_unit_head, allocate signatured_type if needed.
3178 (create_all_comp_units): Update read_comp_units_from_section caller.
3180 2017-08-23 Pedro Alves <palves@redhat.com>
3183 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3184 to null_ptid and switch to thread without reading the registers
3185 after adding the inferior.
3187 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3189 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3191 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3192 (compile_to_object): Implement compile_gcc.
3193 (_initialize_compile): Install "set compile-gcc". Initialize
3196 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3198 * compile/compile.c (compile_to_object): Conditionally call
3199 set_verbose. Conditionally call compile or compile_v0.
3201 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
3203 * sparc64-tdep.h: (adi_normalize_address): New export.
3204 * sparc-nat.h: (open_adi_tag_fd): New export.
3205 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3206 * sparc64-linux-tdep.c:
3207 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3208 (sparc64_linux_handle_segmentation_fault): New function.
3209 (sparc64_linux_init_abi): Register
3210 sparc64_linux_handle_segmentation_fault
3211 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3212 (sparc64_addr_bits_remove): New function.
3213 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3214 (MAX_PROC_NAME_SIZE): New macro.
3215 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3216 (sparc64adilist): New variable.
3217 (adi_proc_list): New variable.
3218 (find_adi_info): New function.
3219 (add_adi_info): New function.
3220 (get_adi_info_proc): New function.
3221 (get_adi_info): New function.
3222 (info_adi_command): New function.
3223 (read_maps_entry): New function.
3224 (adi_available): New function.
3225 (adi_normalize_address): New function.
3226 (adi_align_address): New function.
3227 (adi_convert_byte_count): New function.
3228 (adi_tag_fd): New function.
3229 (adi_is_addr_mapped): New function.
3230 (adi_read_versions): New function.
3231 (adi_write_versions): New function.
3232 (adi_print_versions): New function.
3233 (do_examine): New function.
3234 (do_assign): New function.
3235 (adi_examine_command): New function.
3236 (adi_assign_command): New function.
3237 (_initialize_sparc64_adi_tdep): New function.
3239 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3241 * breakpoint.c (breakpoints_info): Rename to ...
3242 (info_breakpoints_command): ... this.
3243 (watchpoints_info): Rename to ...
3244 (info_watchpoints_command): ... this.
3245 (tracepoints_info): Rename to ...
3246 (info_tracepoints_command): ... this.
3247 (_initialize_breakpoint): Adjust.
3248 * dcache.c (dcache_info): Rename to ...
3249 (info_display_command): ... this.
3250 (_initialize_dcache): Adjust.
3251 * frame.h (args_info): Rename to ...
3252 (info_args_command): ... this.
3253 (locals_info): Rename to ...
3254 (info_locals_command): ... this.
3255 * infcmd.c (nofp_registers_info): Rename to ...
3256 (info_registers_command): ... this.
3257 (float_info): Rename to ...
3258 (info_float_command): ... this.
3259 (program_info): Rename to ...
3260 (info_program_command): ... this.
3261 (all_registers_info): Rename to ...
3262 (info_all_registers_command): ... this.
3263 (vector_info): Rename to ...
3264 (info_vector_command): ... this.
3265 (float_info): Rename to ...
3266 (info_float_command): ... this.
3267 (_initialize_infcmd): Adjust.
3268 * inferior.h (term_info): Rename to ...
3269 (info_terminal_command): ... this.
3270 * inflow.c (term_info): Rename to ...
3271 (info_terminal_command): ... this.
3272 (_initialize_inflow): Adjust.
3273 * infrun.c (signals_info): Rename to ...
3274 (info_signals_command): ... this.
3275 (_initialize_infrun): Adjust.
3276 * objc-lang.c (classes_info): Rename to ...
3277 (info_classes_command): ... this.
3278 (selectors_info): Rename to ...
3279 (info_selectors_command): ... this.
3280 (_initialize_objc_language): Adjust.
3281 * printcmd.c (sym_info): Rename to ...
3282 (info_symbol_command): ... this.
3283 (address_info): Rename to ...
3284 (info_address_command): ... this.
3285 (display_info): Rename to ...
3286 (info_display_command): ... this.
3287 (_initialize_printcmd): Adjust.
3288 * reverse.c (bookmarks_info): Rename to ...
3289 (info_breakpoints_command): ... this.
3290 (_initialize_reverse): Adjust.
3291 * ser-go32.c (dos_info): Rename to ...
3292 (info_serial_command): ... this.
3293 (_initialize_ser_dos): Adjust.
3294 * skip.c (skip_info): Rename to ...
3295 (info_skip_command): ... this.
3296 (_initialize_step_skip): Adjust.
3297 * source.c (line_info): Rename to ...
3298 (info_line_command): ... this.
3299 (source_info): Rename to ...
3300 (info_source_command)
3301 * stack.c (frame_info): Rename to ...
3302 (info_frame_command): ... this.
3303 (locals_info): Rename to ...
3304 (info_locals_command): ... this.
3305 (args_info): Rename to ...
3306 (info_args_command): ... this.
3307 (_initialize_stack): Adjust.
3308 * symtab.c (sources_info): Rename to ...
3309 (info_sources_command): ... this.
3310 (variables_info): Rename to ...
3311 (info_variables_command): ... this.
3312 (functions_info): Rename to ...
3313 (info_functions_command): ... this.
3314 (types_info): Rename to ...
3315 (info_types_command): ... this.
3316 (_initialize_symtab): Adjust.
3317 * target.c (target_info): Rename to ...
3318 (info_target_command): ... this.
3319 (initialize_targets): Adjust.
3320 * tracepoint.c (tvariables_info): Rename to ...
3321 (info_tvariables_command): ... this.
3322 (scope_info): Rename to ...
3323 (info_scope_command): ... this.
3324 (trace_dump_actions): Adjust.
3325 (_initialize_tracepoint): Adjust.
3327 2017-08-22 Tom Tromey <tom@tromey.com>
3329 * breakpoint.h (install_breakpoint): Update.
3330 * breakpoint.c (add_solib_catchpoint): Update.
3331 (install_breakpoint): Change argument to a std::unique_ptr.
3332 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3333 (create_breakpoint_sal, create_breakpoint): Update.
3334 (watch_command_1, catch_exec_command_1)
3335 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3336 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3337 Return the breakpoint.
3338 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3339 (new_single_step_breakpoint): Update.
3340 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3342 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3344 * break-catch-sig.c (create_signal_catchpoint): Use
3346 * ada-lang.c (create_ada_exception_catchpoint): Use
3349 2017-08-22 Tom Tromey <tom@tromey.com>
3351 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3353 2017-08-22 Tom Tromey <tom@tromey.com>
3355 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3356 (lookup_partial_symbol): Update.
3358 2017-08-22 Tom Tromey <tom@tromey.com>
3360 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3361 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3362 (find_and_open_source, symtab_to_fullname): Update.
3363 * psymtab.c (psymtab_to_fullname): Update.
3365 2017-08-22 Tom Tromey <tom@tromey.com>
3367 * exec.c (exec_file_attach): Update.
3368 * linux-thread-db.c (try_thread_db_load): Update.
3369 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3370 * utils.c (gdb_realpath): Change return type.
3371 (gdb_realpath_keepfile): Update.
3372 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3373 (_initialize_utils): Register the new self test.
3374 * source.c (openp): Update.
3375 (find_and_open_source): Update.
3376 * nto-tdep.c (nto_find_and_open_solib): Update.
3377 * main.c (set_gdb_data_directory): Update.
3378 (captured_main_1): Update.
3379 * dwarf2read.c (dwarf2_get_dwz_file): Update
3380 (dw2_map_symbol_filenames): Update.
3381 * auto-load.c (auto_load_safe_path_vec_update): Update.
3382 (filename_is_in_auto_load_safe_path_vec): Change type of
3384 (auto_load_objfile_script): Update.
3385 (file_is_auto_load_safe): Update. Use std::string.
3386 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3388 2017-08-22 Tom Tromey <tom@tromey.com>
3390 * utils.c (gdb_realpath_keepfile): Return a
3391 gdb::unique_xmalloc_ptr.
3392 * exec.c (exec_file_attach): Update.
3393 * utils.h (gdb_realpath_keepfile): Return a
3394 gdb::unique_xmalloc_ptr.
3396 2017-08-22 Tom Tromey <tom@tromey.com>
3398 * compile/compile.c (compile_file_command): Use
3399 gdb::unique_xmalloc_ptr, std::string.
3400 * utils.c (gdb_abspath): Change return type.
3401 * source.c (openp): Update.
3402 * objfiles.c (allocate_objfile): Update.
3403 * main.c (set_gdb_data_directory): Update.
3404 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3406 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3408 * cli-cmds.c (list_commands): List actual code around more than
3411 2017-08-21 John Baldwin <jhb@FreeBSD.org>
3413 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3415 2017-08-21 Pedro Alves <palves@redhat.com>
3418 * c-exp.y (variable production): Handle function aliases.
3419 * minsyms.c (msymbol_is_text): New function.
3420 * minsyms.h (msymbol_is_text): Declare.
3421 * symtab.c (find_function_alias_target): New function.
3422 * symtab.h (find_function_alias_target): Declare.
3424 2017-08-21 Pedro Alves <palves@redhat.com>
3426 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3428 * typeprint.c (whatis_exp): If handling "whatis", and expression
3429 is OP_TYPE, strip one typedef level. Otherwise don't strip
3431 * valops.c (value_cast): Save "to" type before resolving
3432 stubs/typedefs. Use that type as resulting value's type.
3434 2017-08-18 Tom Tromey <tom@tromey.com>
3435 Pedro Alves <palves@redhat.com>
3437 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3438 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3439 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3440 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3441 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3442 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3443 (linux_get_siginfo_data): Add "thread" argument. Use
3445 * linux-nat.c (linux_child_follow_fork)
3446 (check_stopped_by_watchpoint): Use scoped_restore.
3447 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3448 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3449 (restore_inferior_ptid, save_inferior_ptid): Remove.
3450 * btrace.c (btrace_fetch): Use scoped_restore.
3451 * bsd-uthread.c (bsd_uthread_fetch_registers)
3452 (bsd_uthread_store_registers): Use scoped_restore.
3453 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3455 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3456 (aix_thread_xfer_partial): Use scoped_restore.
3457 * inferior.h (save_inferior_ptid): Remove.
3459 2017-08-18 Yao Qi <yao.qi@linaro.org>
3462 * arm-tdep.c (gdb_print_insn_arm): Mark
3463 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3465 2017-08-18 Yao Qi <yao.qi@linaro.org>
3467 * NEWS: Mention GDBserver's new option "--selftest".
3468 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3469 * selftest.c: Move it to common/selftest.c.
3470 * selftest.h: Move it to common/selftest.h.
3471 * selftest-arch.c (reset): New function.
3472 (tests_with_arch): Call reset.
3474 2017-08-18 Yao Qi <yao.qi@linaro.org>
3476 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3477 instead of exception_fprintf and printf_filtered.
3479 2017-08-18 Yao Qi <yao.qi@linaro.org>
3481 * selftest.c (register_self_test): Rename it to
3482 selftests::register_test.
3483 (run_self_tests): selftest::run_tests.
3484 * selftest.h: Update declarations.
3485 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3486 selftests::register_test_foreach_arch.
3487 * selftest-arch.h: Update declaration.
3488 * aarch64-tdep.c: Update.
3489 * arm-tdep.c: Likewise.
3490 * disasm-selftests.c: Likewise.
3491 * dwarf2loc.c: Likewise.
3492 * dwarf2-frame.c: Likewise.
3493 * findvar.c: Likewise.
3494 * gdbarch-selftests.c: Likewise.
3495 * maint.c (maintenance_selftest): Likewise.
3496 * regcache.c: Likewise.
3497 * rust-exp.y: Likewise.
3498 * selftest-arch.c: Likewise.
3499 * unittests/environ-selftests.c: Likewise.
3500 * unittests/function-view-selftests.c: Likewise.
3501 * unittests/offset-type-selftests.c: Likewise.
3502 * unittests/optional-selftests.c: Likewise.
3503 * unittests/scoped_restore-selftests.c: Likewise.
3504 * utils-selftests.c: Likewise.
3506 2017-08-17 Pedro Alves <palves@redhat.com>
3508 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3511 2017-08-17 Pedro Alves <palves@redhat.com>
3513 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3515 (reset_die_in_process): Delete, replaced by ...
3516 (process_die_scope): ... this new class. Make it responsible for
3517 freeing cu->line_header too.
3518 (process_die): Use process_die_scope.
3519 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3520 cu->line_header_die_owner. Don't release the line header if it's
3522 (setup_type_unit_groups): Make the CU/DIE own the line header.
3523 Don't release the line header here.
3525 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3527 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3529 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3531 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3534 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3536 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3539 2017-08-15 Stafford Horne <shorne@gmail.com>
3541 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3543 2017-08-15 Stafford Horne <shorne@gmail.com>
3545 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3547 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3550 * infcmd.c (unset_environment_command): Use the 'clear' method on
3551 the environment instead of resetting it.
3553 2017-08-15 John Baldwin <jhb@FreeBSD.org>
3555 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3558 2017-08-14 Tom Tromey <tom@tromey.com>
3560 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3561 (print_binary_chars): Likewise.
3562 (BITS_IN_BYTES): Remove.
3564 2017-08-14 Tom Tromey <tom@tromey.com>
3567 * valprint.c (LOW_ZERO): Change value to 034.
3568 (print_octal_chars): Add static_asserts for octal constants.
3569 * printcmd.c (print_scalar_formatted): Add 'd' case.
3571 2017-08-11 Tom Tromey <tom@tromey.com>
3573 * symfile.c (add_symbol_file_command): Use std::vector.
3575 2017-08-14 Tom Tromey <tom@tromey.com>
3577 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3578 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3580 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3582 2017-08-11 Pedro Alves <palves@redhat.com>
3584 * infrun.c (process_event_stop_test): Adjust
3585 function_name_is_marked_for_skip call.
3586 * skip.c: Include <list>.
3587 (skiplist_entry): Make it a class with private fields, and
3589 (skiplist_entry_chain): Delete.
3590 (skiplist_entries): New.
3591 (skiplist_entry_count): Delete.
3592 (highest_skiplist_entry_num): New.
3593 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3594 (add_skiplist_entry): Delete.
3595 (skiplist_entry::skiplist_entry): New.
3596 (skiplist_entry::add_entry): New.
3597 (skip_file_command, skip_function): Adjust.
3598 (compile_skip_regexp): Delete.
3599 (skip_command): Don't compile regexp here. Adjust to use
3600 skiplist_entry::add_entry.
3601 (skip_info): Adjust to use range-for and getters.
3602 (skip_enable_command, skip_disable_command): Adjust to use
3603 range-for and setters.
3604 (skip_delete_command): Adjust to use std::list.
3605 (add_skiplist_entry): Delete.
3606 (skip_file_p): Delete, refactored as ...
3607 (skiplist_entry::do_skip_file_p): ... this new method.
3608 (skip_gfile_p): Delete, refactored as ...
3609 (skiplist_entry::do_gskip_file_p): ... this new method.
3610 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3611 (skiplist_entry::skip_function_p): ... this new method.
3612 (function_name_is_marked_for_skip): Now returns bool, and takes
3613 the function sal by const reference. Adjust to use range-for and
3614 skiplist_entry methods.
3615 (_initialize_step_skip): Remove references to
3616 skiplist_entry_chain, skiplist_entry_count.
3617 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3618 takes the function sal by const reference.
3620 2017-08-11 Yao Qi <yao.qi@linaro.org>
3622 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3623 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3624 (dwarf2_frame_cache):
3625 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3626 RETURN_MASK_ALL and set *this_case to NULL.
3627 * frame-unwind.h: Update comments.
3629 2017-08-11 Yao Qi <yao.qi@linaro.org>
3631 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3632 (dwarf2_frame_state_copy_regs): Remove.
3633 (dwarf2_frame_state_free_regs): Remove.
3634 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3635 (dwarf2_restore_rule): Call method .alloc_regs instead of
3636 dwarf2_frame_state_alloc_regs.
3637 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3638 constructor. Call std::move.
3639 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3640 (dwarf2_frame_cache): Likewise.
3642 [GDB_SELF_TEST]: Include selftest.h and
3644 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3645 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3646 execute_cfa_program_test.
3648 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3649 copy ctor, assignment operator, move assignment.
3650 <alloc_regs>: New method.
3652 (struct dwarf2_frame_state): Delete dtor.
3653 (dwarf2_frame_state_alloc_regs): Remove declaration.
3654 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3655 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3657 2017-08-11 Yao Qi <yao.qi@linaro.org>
3659 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3660 (dwarf2_frame_state::dwarf2_frame_state): New.
3661 (dwarf2_frame_state::~dwarf2_frame_state): New.
3662 (dwarf2_fetch_cfa_info): Update.
3663 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3664 rather than a pointer. Update code.
3665 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3667 <data_align, code_align, retaddr_column>: Change them to const.
3668 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3671 2017-08-11 Yao Qi <yao.qi@linaro.org>
3673 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3674 <loc.exp>: New field.
3675 * dwarf2-frame.c (execute_cfa_program): Update.
3676 (dwarf2_frame_prev_register): Update.
3678 2017-08-10 Pedro Alves <palves@redhat.com>
3680 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3682 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3684 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3685 (fbsd_pending_children): Use std::list.
3686 (fbsd_remember_child): Likewise.
3687 (fbsd_is_child_pending): Likewise.
3688 (fbsd_pending_vfork_done): Use std::forward_list.
3689 (fbsd_add_vfork_done): Likewise.
3690 (fbsd_is_vfork_done_pending): Likewise.
3691 (fbsd_next_vfork_done): Likewise.
3693 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3695 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3696 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3697 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3699 (fbsd_xfer_partial): Use gdb::byte_vector.
3700 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
3702 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3704 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3706 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3708 2017-08-09 Tom Tromey <tom@tromey.com>
3710 * skip.c (skiplist_entry): New constructor.
3711 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3712 (skiplist_entry::file_is_glob): Now bool.
3713 (skiplist_entry::file, skiplist_entry::function): Now
3715 (make_skip_entry): Return a unique_ptr. Use new.
3716 (free_skiplist_entry, free_skiplist_entry_cleanup)
3717 (make_free_skiplist_entry_cleanup): Remove.
3718 (skip_command, skip_disable_command, add_skiplist_entry)
3719 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3720 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3721 (function_name_is_marked_for_skip): Update.
3722 (skip_delete_command): Update. Use delete.
3724 2017-08-09 Jiong Wang <jiong.wang@arm.com>
3726 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3727 (aarch64_linux_core_read_description): New function.
3728 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3730 2017-08-09 Pedro Alves <palves@redhat.com>
3732 * cp-name-parser.y (cp_comp_to_string): Return a
3733 gdb::unique_xmalloc_ptr<char>.
3734 * cp-support.c (replace_typedefs_qualified_name)
3735 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3736 (cp_canonicalize_string_full): Use op= instead of explicit
3738 (cp_class_name_from_physname, method_name_from_physname)
3739 (cp_func_name, cp_remove_params): Adjust to use
3740 gdb::unique_xmalloc_ptr<char>.
3741 * cp-support.h (cp_comp_to_string): Return a
3742 gdb::unique_xmalloc_ptr<char>.
3743 * python/py-type.c (typy_lookup_type): Adjust to use
3744 gdb::unique_xmalloc_ptr<char>.
3746 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3748 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3750 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3751 Yao Qi <yao.qi@linaro.org>
3753 * cp-support.c (cp_canonicalize_string_full): Use
3754 gdb::unique_xmalloc_ptr<char>.
3755 (cp_canonicalize_string): Likewise.
3757 2017-08-09 Yao Qi <yao.qi@linaro.org>
3759 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3760 * regformats/i386/amd64-avx-avx512.dat: Remove.
3761 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3762 * regformats/i386/amd64-avx-mpx.dat:Remove.
3763 * regformats/i386/amd64-avx.dat: Remove.
3764 * regformats/i386/amd64-mpx.dat: Remove.
3765 * regformats/i386/i386-avx-avx512.dat: Remove.
3766 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3767 * regformats/i386/i386-avx-mpx.dat: Remove.
3768 * regformats/i386/i386-mmx.dat: Remove.
3769 * regformats/i386/i386-mpx.dat: Remove.
3771 2017-08-09 Yao Qi <yao.qi@linaro.org>
3773 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3774 * amd64-tdep.c: Don't include features/i386/x32*.c.
3775 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3777 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3778 and i386/x32-avx-avx512.
3779 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3781 * features/i386/x32-avx-avx512.c: Removed.
3782 * features/i386/x32-avx-avx512.xml: Removed.
3783 * features/i386/x32-avx.c: Removed.
3784 * features/i386/x32-avx.xml: Removed.
3785 * features/i386/x32.c: Removed.
3786 * features/i386/x32.xml: Removed.
3787 * regformats/i386/x32-avx-avx512.dat: Removed.
3788 * regformats/i386/x32-avx.dat: Removed.
3789 * regformats/i386/x32.dat: Removed.
3791 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3793 PR breakpoints/21886
3794 * mem-break.c (default_memory_insert_breakpoint): Use
3795 `->placed_address' rather than `->reqstd_address' for the
3796 breakpoint location.
3798 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3800 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3803 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3805 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3806 a union of `tdep_info', `tdesc_data' and `id'.
3807 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3808 rather than `info.tdep_info'.
3809 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3810 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3811 * i386-tdep.c (i386_gdbarch_init): Likewise.
3812 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3813 * mips-tdep.c (mips_gdbarch_init): Likewise.
3814 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3815 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3816 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3818 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3820 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3821 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3823 * spu-tdep.c (spu_gdbarch_init): Likewise.
3824 * gdbarch.h: Regenerate.
3826 2017-08-07 Leszek Swirski <leszeks@google.com>
3829 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3831 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3833 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3834 (gdbsim_open): Rename gdb_argv args object to argv.
3836 2017-08-05 Tom Tromey <tom@tromey.com>
3838 * compile/compile-object-load.c (compile_object_load): Use
3839 gdb::unique_xmalloc_ptr.
3840 * cli/cli-dump.c (scan_filename): Rename from
3841 scan_filename_with_cleanup. Change return type.
3842 (scan_expression): Rename from scan_expression_with_cleanup.
3844 (dump_memory_to_file, dump_value_to_file, restore_command):
3845 Use gdb::unique_xmalloc_ptr. Update.
3846 * cli/cli-cmds.c (find_and_open_script): Use
3847 gdb::unique_xmalloc_ptr.
3848 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3849 * symmisc.c (maintenance_print_symbols)
3850 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3851 * symfile.c (symfile_bfd_open, generic_load)
3852 (add_symbol_file_command, remove_symbol_file_command): Use
3853 gdb::unique_xmalloc_ptr.
3854 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3855 * psymtab.c (maintenance_print_psymbols): Use
3856 gdb::unique_xmalloc_ptr.
3857 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3858 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3859 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3860 (reload_shared_libraries_1): Likewise.
3862 2017-08-05 Tom Tromey <tom@tromey.com>
3864 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3865 (rust_op_vector, rust_set_vector): New typedefs.
3866 (current_parser): New global.
3867 (work_obstack): Change to pointer type. Update all users.
3868 (rust_ast, pstate): Remove globals.
3869 (struct rust_parser): New.
3870 (%union) <params, field_inits>: Change type.
3871 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3872 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3873 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3874 (convert_params_to_types, convert_params_to_expression): Change
3876 (ast_string): Change type of "fields".
3877 (rust_parse): Make a rust_parser. Remove cleanups.
3878 (rust_lex_tests): Make and install an auto_obstack.
3880 2017-08-04 Yao Qi <yao.qi@linaro.org>
3882 * configure.srv (ipa_x32_linux_regobj): New.
3883 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3884 instead of X86_TDESC_AVX512.
3885 (initialize_low_tracepoint): Call
3886 init_registers_x32_avx_avx512_linux.
3888 2017-08-04 Yao Qi <yao.qi@linaro.org>
3890 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3892 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3894 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3896 2017-08-03 Tom Tromey <tom@tromey.com>
3898 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3900 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3902 2017-08-03 Tom Tromey <tom@tromey.com>
3904 * python/py-param.c (compute_enum_values): Use gdb_argv.
3906 2017-08-03 Tom Tromey <tom@tromey.com>
3908 * utils.h (struct gdb_argv_deleter): New.
3909 (gdb_argv): New class.
3910 * utils.c (gdb_argv::reset): New method.
3911 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3912 * tracefile.c (tsave_command): Use gdb_argv.
3913 * top.c (new_ui_command): Use gdb_argv.
3914 * symmisc.c (maintenance_print_symbols)
3915 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3916 * symfile.c (symbol_file_command, generic_load)
3917 (remove_symbol_file_command): Use gdb_argv.
3918 * stack.c (backtrace_command): Use gdb_argv.
3919 * source.c (add_path, show_substitute_path_command)
3920 (unset_substitute_path_command, set_substitute_path_command):
3922 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3923 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3924 * remote.c (extended_remote_run, remote_put_command)
3925 (remote_get_command, remote_delete_command): Use gdb_argv.
3926 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3927 (gdbsim_open): Use gdb_argv.
3928 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3929 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3930 * procfs.c (procfs_info_proc): Use gdb_argv.
3931 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3932 * infrun.c (handle_command): Use gdb_argv.
3933 * inferior.c (add_inferior_command, clone_inferior_command):
3935 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3936 * exec.c (exec_file_command): Use gdb_argv.
3937 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3938 * compile/compile.c (build_argc_argv): Use gdb_argv.
3940 2017-08-03 Tom Tromey <tom@tromey.com>
3942 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3944 2017-08-03 Tom Tromey <tom@tromey.com>
3946 * python/python.c (compute_python_string): Return std::string.
3947 (gdbpy_eval_from_control_command): Update.
3948 (do_start_initialization): Use std::string.
3949 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3951 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3954 2017-08-03 Tom Tromey <tom@tromey.com>
3956 * top.h (do_restore_instream_cleanup): Remove.
3957 * top.c (do_restore_instream_cleanup): Remove.
3958 (read_command_file): Use scoped_restore.
3959 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3961 2017-08-03 Tom Tromey <tom@tromey.com>
3963 * cli/cli-script.c (execute_user_command)
3964 (execute_control_command): Use scoped_restore.
3966 2017-08-03 Tom Tromey <tom@tromey.com>
3968 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3969 (execute_user_command): Remove user_call_depth; use
3970 user_args_stack's size instead.
3972 2017-08-03 Tom Tromey <tom@tromey.com>
3974 * top.h (in_user_command): Remove.
3975 * top.c (in_user_command): Remove.
3976 * cli/cli-script.c (do_restore_user_call_depth)
3977 (execute_user_command): Update.
3979 2017-08-03 Tom Tromey <tom@tromey.com>
3981 * valops.c (search_struct_method): Use gdb::byte_vector.
3982 * valarith.c (value_concat): Use std::vector.
3983 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3984 (simple_search_memory): Likewise.
3985 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3986 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3987 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3988 * elfread.c (elf_rel_plt_read): Use std::string.
3989 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3990 * cli/cli-dump.c (restore_section_callback): Use
3993 2017-08-03 Tom Tromey <tom@tromey.com>
3995 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3997 2017-08-03 Tom Tromey <tom@tromey.com>
3999 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4000 (tui_register_format): Use scoped_restore.
4002 2017-08-03 Tom Tromey <tom@tromey.com>
4004 * reverse.c (exec_direction_default): Remove.
4005 (exec_reverse_once): Use scoped_restore.
4006 * remote.c (restore_remote_timeout): Remove.
4007 (remote_flash_erase, remote_flash_write, remote_flash_done)
4008 (readchar, remote_serial_write): Use scoped_restore.
4009 * cli/cli-script.c (struct source_cleanup_lines_args)
4010 (source_cleanup_lines): Remove.
4011 (script_from_file): Use scoped_restore.
4012 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4013 (source_command): Use scoped_restore.
4015 2017-08-03 Tom Tromey <tom@tromey.com>
4017 * utils.h (make_cleanup_free_so): Remove.
4018 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4019 * solist.h (struct so_deleter): New.
4020 (so_list_up): New typedef.
4021 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4023 2017-08-03 Tom Tromey <tom@tromey.com>
4025 * utils.h (make_cleanup_restore_current_language): Remove.
4026 * utils.c (do_restore_current_language)
4027 (make_cleanup_restore_current_language): Remove.
4028 * parse.c (parse_exp_in_context_1)
4029 (parse_expression_with_language): Use
4030 scoped_restore_current_language.
4031 * mi/mi-main.c (mi_cmd_execute): Use
4032 scoped_restore_current_language.
4033 * language.h (scoped_restore_current_language): New class.
4035 2017-08-03 Tom Tromey <tom@tromey.com>
4037 * compile/compile.c (cleanup_unlink_file): Remove.
4038 (compile_to_object): Use gdb::unlinker.
4039 (eval_compile_command): Likewise.
4041 2017-08-03 Tom Tromey <tom@tromey.com>
4043 * utils.h (make_cleanup_fclose): Remove.
4044 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4046 2017-08-03 Tom Tromey <tom@tromey.com>
4048 * top.c (open_terminal_stream): Return gdb_file_up.
4049 (new_ui_command): Update.
4051 2017-08-03 Tom Tromey <tom@tromey.com>
4053 * source.c (print_source_lines_base, forward_search_command)
4054 (reverse_search_command): Use gdb_file_up.
4056 2017-08-03 Tom Tromey <tom@tromey.com>
4058 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4060 2017-08-03 Tom Tromey <tom@tromey.com>
4062 * cli/cli-cmds.c (find_and_open_script): Change return type.
4063 Remove "streamp" and "full_path" parameters.
4064 (source_script_with_search): Update.
4065 * auto-load.c (source_script_file): Update.
4066 * cli/cli-cmds.h (find_and_open_script): Change type.
4067 (open_script): New struct.
4069 2017-08-03 Tom Tromey <tom@tromey.com>
4071 * xml-support.c (xml_fetch_content_from_file): Update.
4072 * ui-file.c (stdio_file::open): Update.
4073 * tracefile-tfile.c (tfile_start): Update.
4074 * remote.c (remote_file_put, remote_file_get): Update.
4075 * nat/linux-procfs.c (linux_proc_get_int)
4076 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4077 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4078 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4079 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4080 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4081 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4082 * linux-nat.c (linux_proc_pending_signals): Update.
4083 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4084 (file_closer): Remove.
4085 * compile/compile.c (compile_to_object): Update.
4086 * common/filestuff.h (struct gdb_file_deleter): New.
4087 (gdb_file_up): New typedef.
4088 (gdb_fopen_cloexec): Change return type.
4089 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4090 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4091 (dump_binary_file, restore_binary_file): Update.
4092 * auto-load.c (auto_load_objfile_script_1): Update.
4094 2017-08-03 Tom Tromey <tom@tromey.com>
4096 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4097 (info_static_tracepoint_markers_command): Likewise.
4098 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4099 * skip.c (skip_info): Use ui_out_emit_table.
4100 * progspace.c (print_program_space): Use ui_out_emit_table.
4101 * osdata.c (info_osdata): Use ui_out_emit_table.
4102 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4104 * linux-thread-db.c (info_auto_load_libthread_db): Use
4106 * inferior.c (print_inferior): Use ui_out_emit_table.
4107 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4108 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4109 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4110 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4111 * ui-out.h (class ui_out_emit_table): New.
4113 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4115 * mips-tdep.c (mips_fpu_type_str): New function.
4116 (mips_dump_tdep): Call it.
4118 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4120 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4123 2017-07-31 Xavier Roirand <roirand@adacore.com>
4125 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4127 2017-07-27 Xavier Roirand <roirand@adacore.com>
4129 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4131 2017-07-26 Yao Qi <yao.qi@linaro.org>
4133 * cli/cli-cmds.c (maintenancechecklist): New variable.
4134 * gdbcmd.h (maintenancechecklist): Declare it.
4135 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4136 Call i386_linux_read_description with different masks.
4137 * maint.c (maintenance_check_command): New function.
4138 (_initialize_maint_cmds): Call add_prefix_cmd.
4139 * target-descriptions.c (tdesc_reg): override operator != and ==.
4140 (tdesc_type): Likewise.
4141 (tdesc_feature): Likewise.
4142 (target_desc): Likewise.
4143 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4144 (maintenance_check_xml_descriptions): New function.
4145 (_initialize_target_descriptions) Add command "xml-descriptions".
4146 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4148 2017-07-26 Yao Qi <yao.qi@linaro.org>
4150 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4151 Include features/i386/32bit-*.c.
4152 (i386_linux_read_description): Generate target description if it
4154 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4156 * features/i386/32bit-linux.c: Re-generated.
4157 * features/i386/32bit-sse.c: Likewise.
4158 * target-descriptions.c (print_c_feature::visit): Print code to
4159 set register number if needed.
4160 (print_c_feature) <m_next_regnum>: New field.
4162 2017-07-26 Yao Qi <yao.qi@linaro.org>
4164 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4165 (FEATURE_XMLFILES): New.
4166 (FEATURE_CFILES): New.
4168 (clean-cfiles): Remove generated c files.
4169 * features/i386/32bit-avx.c: Generated.
4170 * features/i386/32bit-avx512.c: Generated.
4171 * features/i386/32bit-core.c: Generated.
4172 * features/i386/32bit-linux.c: Generated.
4173 * features/i386/32bit-mpx.c: Generated.
4174 * features/i386/32bit-pkeys.c: Generated.
4175 * features/i386/32bit-sse.c: Generated.
4176 * target-descriptions.c: Include algorithm.
4177 (tdesc_element_visitor): Add method visit_end.
4178 (print_c_tdesc): Implement visit_end.
4179 (print_c_tdesc:: m_filename_after_features): Move it to
4181 (print_c_feature): New class.
4182 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4183 name starts with "i386/32bit-".
4185 2017-07-26 Yao Qi <yao.qi@linaro.org>
4187 * target-descriptions.c (tdesc_element_visitor): New class.
4188 (tdesc_element): New class.
4189 (tdesc_reg): Inherit from tdesc_element.
4190 (tdesc_reg::accept): New function.
4191 (tdesc_type): Inherit from tdesc_element.
4192 (tdesc_type::accept): New function.
4193 (tdesc_feature): Inherit from tdesc_element.
4194 (tdesc_feature::accept): New function.
4195 (target_desc): Inherit from tdesc_element.
4196 (target_desc::target_desc): New.
4197 (target_desc::~target_desc): New.
4198 (target_desc::accept): New.
4199 (allocate_target_description): Use new.
4200 (free_target_description): Use delete.
4201 (print_c_tdesc): New class.
4202 (maint_print_c_tdesc_cmd): Adjust.
4204 * features/aarch64.c: Re-generated.
4205 * features/arc-arcompact.c: Re-generated.
4206 * features/arc-v2.c: Re-generated.
4207 * features/arm/arm-with-iwmmxt.c: Re-generated.
4208 * features/arm/arm-with-m.c: Re-generated.
4209 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4210 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4211 * features/arm/arm-with-neon.c: Re-generated.
4212 * features/arm/arm-with-vfpv2.c: Re-generated.
4213 * features/arm/arm-with-vfpv3.c: Re-generated.
4214 * features/i386/amd64-avx-avx512.c: Re-generated.
4215 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4216 * features/i386/amd64-avx.c: Re-generated.
4217 * features/i386/amd64-avx-linux.c: Re-generated.
4218 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4219 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4220 * features/i386/amd64-avx-mpx.c: Re-generated.
4221 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4222 * features/i386/amd64.c: Re-generated.
4223 * features/i386/amd64-linux.c: Re-generated.
4224 * features/i386/amd64-mpx.c: Re-generated.
4225 * features/i386/amd64-mpx-linux.c: Re-generated.
4226 * features/i386/i386-avx-avx512.c: Re-generated.
4227 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4228 * features/i386/i386-avx.c: Re-generated.
4229 * features/i386/i386-avx-linux.c: Re-generated.
4230 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4231 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4232 * features/i386/i386-avx-mpx.c: Re-generated.
4233 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4234 * features/i386/i386.c: Re-generated.
4235 * features/i386/i386-linux.c: Re-generated.
4236 * features/i386/i386-mmx.c: Re-generated.
4237 * features/i386/i386-mmx-linux.c: Re-generated.
4238 * features/i386/i386-mpx.c: Re-generated.
4239 * features/i386/i386-mpx-linux.c: Re-generated.
4240 * features/i386/x32-avx-avx512.c: Re-generated.
4241 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4242 * features/i386/x32-avx.c: Re-generated.
4243 * features/i386/x32-avx-linux.c: Re-generated.
4244 * features/i386/x32.c: Re-generated.
4245 * features/i386/x32-linux.c: Re-generated.
4246 * features/microblaze.c: Re-generated.
4247 * features/microblaze-with-stack-protect.c: Re-generated.
4248 * features/mips64-dsp-linux.c: Re-generated.
4249 * features/mips64-linux.c: Re-generated.
4250 * features/mips-dsp-linux.c: Re-generated.
4251 * features/mips-linux.c: Re-generated.
4252 * features/nds32.c: Re-generated.
4253 * features/nios2.c: Re-generated.
4254 * features/nios2-linux.c: Re-generated.
4255 * features/rs6000/powerpc-32.c: Re-generated.
4256 * features/rs6000/powerpc-32l.c: Re-generated.
4257 * features/rs6000/powerpc-403.c: Re-generated.
4258 * features/rs6000/powerpc-403gc.c : Re-generated.
4259 * features/rs6000/powerpc-405.c: Re-generated.
4260 * features/rs6000/powerpc-505.c: Re-generated.
4261 * features/rs6000/powerpc-601.c: Re-generated.
4262 * features/rs6000/powerpc-602.c: Re-generated.
4263 * features/rs6000/powerpc-603.c: Re-generated.
4264 * features/rs6000/powerpc-604.c: Re-generated.
4265 * features/rs6000/powerpc-64.c: Re-generated.
4266 * features/rs6000/powerpc-64l.c: Re-generated.
4267 * features/rs6000/powerpc-7400.c: Re-generated.
4268 * features/rs6000/powerpc-750.c: Re-generated.
4269 * features/rs6000/powerpc-860.c: Re-generated.
4270 * features/rs6000/powerpc-altivec32.c: Re-generated.
4271 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4272 * features/rs6000/powerpc-altivec64.c: Re-generated.
4273 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4274 * features/rs6000/powerpc-cell32l.c: Re-generated.
4275 * features/rs6000/powerpc-cell64l.c: Re-generated.
4276 * features/rs6000/powerpc-e500.c: Re-generated.
4277 * features/rs6000/powerpc-e500l.c: Re-generated.
4278 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4279 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4280 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4281 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4282 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4283 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4284 * features/rs6000/powerpc-vsx32.c: Re-generated.
4285 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4286 * features/rs6000/powerpc-vsx64.c: Re-generated.
4287 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4288 * features/rs6000/rs6000.c: Re-generated.
4289 * features/s390-linux32.c: Re-generated.
4290 * features/s390-linux32v1.c: Re-generated.
4291 * features/s390-linux32v2.c: Re-generated.
4292 * features/s390-linux64.c: Re-generated.
4293 * features/s390-linux64v1.c: Re-generated.
4294 * features/s390-linux64v2.c: Re-generated.
4295 * features/s390-te-linux64.c: Re-generated.
4296 * features/s390-tevx-linux64.c: Re-generated.
4297 * features/s390-vx-linux64.c: Re-generated.
4298 * features/s390x-linux64.c: Re-generated.
4299 * features/s390x-linux64v1.c: Re-generated.
4300 * features/s390x-linux64v2.c: Re-generated.
4301 * features/s390x-te-linux64.c: Re-generated.
4302 * features/s390x-tevx-linux64.c: Re-generated.
4303 * features/s390x-vx-linux64.c: Re-generated.
4304 * features/sparc/sparc32-solaris.c: Re-generated.
4305 * features/sparc/sparc64-solaris.c: Re-generated.
4306 * features/tic6x-c62x.c: Re-generated.
4307 * features/tic6x-c62x-linux.c: Re-generated.
4308 * features/tic6x-c64x.c: Re-generated.
4309 * features/tic6x-c64x-linux.c: Re-generated.
4310 * features/tic6x-c64xp.c: Re-generated.
4311 * features/tic6x-c64xp-linux.c: Re-generated.
4313 2017-07-26 Yao Qi <yao.qi@linaro.org>
4315 * i386-linux-tdep.c (i386_linux_read_description): New function.
4316 (i386_linux_core_read_description): Call
4317 i386_linux_read_description.
4318 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4319 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4320 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4321 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4322 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4323 * x86-linux-nat.c (x86_linux_read_description): Call
4324 i386_linux_read_description.
4326 2017-07-26 Yao Qi <yao.qi@linaro.org>
4329 * features/Makefile (%.c: %.xml): Pass the xml file name to
4330 command "maint print c-tdesc".
4331 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4334 2017-07-26 Yao Qi <yao.qi@linaro.org>
4336 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4337 in-class initialization.
4338 (tdesc_create_feature): Call new instead of XCNEW.
4339 (free_target_description): Ue delete.
4341 2017-07-25 John Baldwin <jhb@FreeBSD.org>
4343 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4345 2017-07-25 Yao Qi <yao.qi@linaro.org>
4347 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4349 (amd64_x32_init_abi): Likewise.
4350 * amd64-tdep.h (amd64_init_abi): Update declaration.
4351 (amd64_x32_init_abi): Likewise.
4353 2017-07-25 Yao Qi <yao.qi@linaro.org>
4356 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4357 condition for FPSCR.
4358 (arm_linux_store_inferior_registers): Likewise.
4360 2017-07-22 Tom Tromey <tom@tromey.com>
4362 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4363 <syscalls_counts>: Now a std::vector.
4364 (get_catch_syscall_inferior_data): Use "new".
4365 (catch_syscall_inferior_data_cleanup): Use "delete".
4366 (insert_catch_syscall, remove_catch_syscall)
4367 (clear_syscall_counts): Update.
4369 2017-07-22 Tom Tromey <tom@tromey.com>
4371 * break-catch-syscall.c (syscall_catchpoint)
4372 <syscalls_to_be_caught>: Now a std::vector<int>
4373 (~syscall_catchpoint): Remove.
4374 (insert_catch_syscall, remove_catch_syscall)
4375 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4376 (print_mention_catch_syscall, print_recreate_catch_syscall):
4378 (create_syscall_event_catchpoint): Change type of "filter"
4380 (catch_syscall_split_args): Return a std::vector.
4381 (catch_syscall_command_1, catching_syscall_number_1): Update.
4383 2017-07-22 Tom Tromey <tom@tromey.com>
4385 * break-catch-throw.c (struct exception_catchpoint)
4386 <exception_rx>: Now a std::string.
4387 (~exception_catchpoint): Remove.
4388 (print_one_detail_exception_catchpoint): Update.
4389 (handle_gnu_v3_exceptions): Change type of except_rx.
4390 (extract_exception_regexp): Return a std::string.
4391 (catch_exception_command_1): Update.
4393 2017-07-22 Tom Tromey <tom@tromey.com>
4395 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4396 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4398 <catch_all>: Now a bool.
4399 (~signal_catchpoint): Remove.
4400 (signal_catchpoint_insert_location)
4401 (signal_catchpoint_remove_location)
4402 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4403 (signal_catchpoint_print_mention)
4404 (signal_catchpoint_print_recreate)
4405 (signal_catchpoint_explains_signal): Update.
4406 (create_signal_catchpoint): Change type of "filter" and
4408 (catch_signal_split_args): Return a std::vector. Change type of
4410 (catch_signal_command): Update.
4412 2017-07-20 Pedro Alves <palves@redhat.com>
4414 * ada-lang.c (ada_language_defn): Make extern.
4415 (_initialize_ada_language): Remove add_language call.
4416 * c-lang.c (c_language_defn, cplus_language_defn)
4417 (asm_language_defn, minimal_language_defn): Make extern.
4418 (_initialize_c_language): Delete.
4419 * completer.c (compare_cstrings): Delete, moved to utils.h.
4420 * d-lang.c (d_language_defn): Make extern.
4421 (_initialize_d_language): Remove add_language calls.
4422 * defs.h (enum language): Add comment.
4423 * f-lang.c (f_language_defn): Make extern.
4424 (_initialize_f_language): Remove add_language call.
4425 * go-lang.c (go_language_defn): Make extern.
4426 (_initialize_go_language): Remove add_language call.
4427 * language.c: Include <algorithm>.
4428 (languages): Redefine as const array.
4429 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4430 (set_language_command): Handle "local". Use for-range loop.
4431 (set_language): Remove loop.
4432 (language_enum): Rewrite.
4433 (language_def, language_str): Remove loops.
4434 (add_language): Delete.
4435 (add_set_language_command): New, based on add_languages.
4436 (skip_language_trampoline): Adjust.
4437 (local_language_defn): Delete.
4438 (language_gdbarch_post_init): Adjust.
4439 (_initialize_language): Remove add_language calls. Call
4440 add_set_language_command.
4441 * language.h (add_language): Delete.
4442 (auto_language_defn)
4443 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4444 (asm_language_defn, c_language_defn, cplus_language_defn)
4445 (d_language_defn, f_language_defn, go_language_defn)
4446 (m2_language_defn, objc_language_defn, opencl_language_defn)
4447 (pascal_language_defn, rust_language_defn): Declare.
4448 * m2-lang.c (m2_language_defn): Make extern.
4449 (_initialize_m2_language): Remove add_language call.
4450 * objc-lang.c (objc_language_defn): Make extern.
4451 (_initialize_objc_language): Remove add_language call.
4452 * opencl-lang.c (opencl_language_defn): Make extern.
4453 (_initialize_opencl_language): Remove add_language call.
4454 * p-lang.c (pascal_language_defn): Make extern.
4455 (_initialize_pascal_language): Delete.
4456 * rust-lang.c (rust_language_defn): Make extern.
4457 (_initialize_rust_language): Delete.
4458 * utils.h (compare_cstrings): New static inline function.
4460 2017-07-20 Pedro Alves <palves@redhat.com>
4462 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4463 (get_var_value): Constify parameters.
4464 (get_int_var_value): Change prototype.
4465 (to_fixed_range_type): Adjust.
4466 * ada-lang.h (get_int_var_value): Change prototype.
4468 2017-07-20 Pedro Alves <palves@redhat.com>
4470 * dwarf2read.c (dw2_lookup_symbol): Use
4471 SYMBOL_MATCHES_SEARCH_NAME.
4472 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4474 2017-07-20 Pedro Alves <palves@redhat.com>
4476 * block.c (block_iter_name_step, block_iter_name_first)
4477 (block_iter_name_next): Delete.
4478 (block_lookup_symbol_primary): Adjust to use
4479 dict_iter_match_first/dict_iter_match_next.
4480 * block.h (block_iter_name_first, block_iter_name_next): Delete
4482 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4483 dict_iter_match_first/dict_iter_match_next.
4485 2017-07-20 Pedro Alves <palves@redhat.com>
4487 * cp-support.c (cp_find_first_component_aux): Add missing case for
4490 2017-07-18 David Blaikie <dblaikie@gmail.com>
4492 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4493 of dwo_cu's dwo_file.
4495 2017-07-18 Yao Qi <yao.qi@linaro.org>
4497 * remote.c (store_registers_using_G): Remove one line comment.
4499 2017-07-18 Yao Qi <yao.qi@linaro.org>
4501 * regcache.c (regcache_cpy): Simplify it.
4502 (regcache::cpy_no_passthrough): Remove it.
4503 * regcache.h (cpy_no_passthrough): Remove it.
4504 (regcache_dup, regcache_cpy): Update comments.
4506 2017-07-18 Pedro Alves <palves@redhat.com>
4508 * remote-sim.c (sim_command_completer): Adjust to work with a
4509 completion_tracker instead of a VEC.
4511 2017-07-17 Pedro Alves <palves@redhat.com>
4513 * completer.c (complete_source_filenames): New function.
4514 (complete_address_and_linespec_locations): New function.
4515 (location_completer): Use complete_address_and_linespec_locations.
4516 (completion_tracker::build_completion_result): Honor the tracker's
4517 request to suppress append.
4518 * completer.h (completion_tracker::suppress_append_ws)
4519 (completion_tracker::set_suppress_append_ws): New methods.
4520 (completion_tracker::m_suppress_append_ws): New field.
4521 (complete_source_filenames): New declaration.
4522 * linespec.c (linespec_complete_what): New.
4523 (struct ls_parser) <complete_what, completion_word,
4524 completion_quote_char, completion_quote_end, completion_tracker>:
4526 (string_find_incomplete_keyword_at_end): New.
4527 (linespec_lexer_lex_string): Record quote char. If in completion
4529 (linespec_lexer_consume_token): Advance the completion word point.
4530 (linespec_lexer_peek_token): Save/restore completion info.
4531 (save_stream_and_consume_token): New.
4532 (set_completion_after_number): New.
4533 (linespec_parse_basic): Set what to complete next depending on
4534 token. Handle function and label completions specially.
4535 (parse_linespec): Disable objc shortcut in completion mode. Set
4536 what to complete next depending on token type. Skip keyword if in
4538 (complete_linespec_component, linespec_complete): New.
4539 * linespec.h (linespec_complete): Declare.
4541 2017-07-17 Pedro Alves <palves@redhat.com>
4543 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4544 Handle 'operator<' / 'operator<<'.
4546 2017-07-17 Pedro Alves <palves@redhat.com>
4548 * completer.c (collect_explicit_location_matches): Handle
4550 (convert_explicit_location_to_linespec): New, factored out from
4552 (convert_explicit_location_to_sals): ... this.
4553 (complete_label): New.
4554 (linespec_complete_label, find_label_symbols_in_block): New.
4555 (find_label_symbols): Add completion_mode parameter and adjust to
4556 call find_label_symbols_in_block.
4557 * linespec.h (linespec_complete_label): Declare.
4559 2017-07-17 Pedro Alves <palves@redhat.com>
4561 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4562 complete_symbol_mode parameter.
4563 * cli/cli-cmds.c (complete_command): Get the completion result out
4564 of the handle_brkchars tracker if used a custom word point.
4565 * completer.c: Include "linespec.h".
4566 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4567 (advance_to_expression_complete_word_point): New.
4568 (completion_tracker::completes_to_completion_word): New.
4569 (complete_files_symbols): Pass down
4570 complete_symbol_mode::EXPRESSION.
4571 (explicit_options, probe_options): New.
4572 (collect_explicit_location_matches): Complete on the
4573 explictit_loc->foo instead of word. Use
4574 linespec_complete_function. Handle MATCH_LINE. Handle offering
4575 keyword and options completions.
4576 (backup_text_ptr): Delete.
4577 (skip_keyword): New.
4578 (complete_explicit_location): Remove 'word' parameter. Add
4579 language, quoted_arg_start and quoted_arg_end parameters.
4580 Rewrite, parsing left to right.
4581 (location_completer): Rewrite.
4582 (location_completer_handle_brkchars): New function.
4583 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4584 (enum complete_line_internal_reason): Adjust comments.
4585 (completion_tracker::discard_completions): New.
4586 (completer_handle_brkchars_func_for_completer): Handle
4588 (gdb_custom_word_point_brkchars)
4589 (gdb_org_rl_basic_quote_characters): New.
4590 (gdb_completion_word_break_characters_throw)
4591 (completion_find_completion_word): Handle trackers that use a
4593 (completion_tracker::advance_custom_word_point_by): New.
4594 (completion_tracker::build_completion_result): Don't rely on
4595 readline appending the quote char.
4596 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4597 use a custom word point.
4598 (gdb_rl_attempted_completion_function): Restore
4599 rl_basic_quote_characters.
4600 * completer.h (class completion_tracker): Extend intro comment.
4601 (completion_tracker::set_quote_char)
4602 (completion_tracker::quote_char)
4603 (completion_tracker::set_use_custom_word_point)
4604 (completion_tracker::use_custom_word_point)
4605 (completion_tracker::custom_word_point)
4606 (completion_tracker::set_custom_word_point)
4607 (completion_tracker::advance_custom_word_point_by)
4608 (completion_tracker::completes_to_completion_word)
4609 (completion_tracker::discard_completions): New methods.
4610 (completion_tracker::m_quote_char)
4611 (completion_tracker::m_use_custom_word_point)
4612 (completion_tracker::m_custom_word_point): New fields.
4613 (advance_to_expression_complete_word_point): Declare.
4614 * f-lang.c (f_collect_symbol_completion_matches): Add
4615 complete_symbol_mode parameter.
4616 * language.h (struct language_defn)
4617 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4619 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4620 (linespec_complete_function): New function.
4621 (linespec_lexer_lex_keyword): Adjust.
4622 * linespec.h (linespec_keywords, linespec_complete_function): New
4624 * location.c (find_end_quote): New function.
4625 (explicit_location_lex_one): Add explicit_completion_info
4626 parameter. Save quoting info. Don't throw if being called for
4627 completion. Don't handle Ada operators here.
4628 (is_cp_operator, skip_op_false_positives, first_of)
4629 (explicit_location_lex_one_function): New function.
4630 (string_to_explicit_location): Replace 'dont_throw' parameter with
4631 an explicit_completion_info pointer parameter. Handle it. Don't
4632 use explicit_location_lex_one to lex function names. Use
4633 explicit_location_lex_one_function instead.
4634 * location.h (struct explicit_completion_info): New.
4635 (string_to_explicit_location): Replace 'dont_throw' parameter with
4636 an explicit_completion_info pointer parameter.
4637 * symtab.c (default_collect_symbol_completion_matches_break_on):
4638 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4639 (default_collect_symbol_completion_matches)
4640 (collect_symbol_completion_matches): Add complete_symbol_mode
4642 (collect_symbol_completion_matches_type): Pass down
4643 complete_symbol_mode::EXPRESSION.
4644 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4645 parameter. Handle LINESPEC mode.
4646 * symtab.h (complete_symbol_mode): New.
4647 (default_collect_symbol_completion_matches_break_on)
4648 (default_collect_symbol_completion_matches)
4649 (collect_symbol_completion_matches)
4650 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4653 2017-07-17 Pedro Alves <palves@redhat.com>
4655 * utils.c (enum class strncmp_iw_mode): New.
4656 (strcmp_iw): Rename to ...
4657 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4658 parameters. Handle them.
4660 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4661 * utils.h (strncmp_iw): Declare.
4662 (strcmp_iw): Move describing comments here.
4664 2017-07-17 Pedro Alves <palves@redhat.com>
4666 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4668 * c-typeprint.c (is_type_conversion_operator): Use
4670 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4671 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4673 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4674 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4675 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4676 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4678 * location.c: Include "cp-support.h".
4679 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4681 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4684 2017-07-17 Pedro Alves <palves@redhat.com>
4686 * cli/cli-cmds.c (complete_command): Use a completion tracker
4687 along with completion_find_completion_word for handle_brkchars
4689 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4690 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4691 (struct gdb_rl_completion_word_info): New.
4692 (gdb_rl_find_completion_word): New.
4693 (completion_find_completion_word): New.
4694 * completer.h (completion_find_completion_word): Declare.
4696 2017-07-17 Pedro Alves <palves@redhat.com>
4698 * ada-lang.c (symbol_completion_match): Adjust comments.
4699 (symbol_completion_add): Replace vector parameter with
4700 completion_tracker parameter. Use it.
4701 (ada_make_symbol_completion_list): Rename to...
4702 (ada_collect_symbol_completion_matches): ... this. Add
4703 completion_tracker parameter and use it.
4704 (ada_language_defn): Adjust.
4705 * break-catch-syscall.c (catch_syscall_completer): Adjust
4706 prototype and work with completion_tracker instead of VEC.
4707 * breakpoint.c (condition_completer): Adjust prototype and work
4708 with completion_tracker instead of VEC.
4709 * c-lang.c (c_language_defn, cplus_language_defn)
4710 (asm_language_defn, minimal_language_defn): Adjust to renames.
4711 * cli/cli-cmds.c (complete_command): Rework using
4712 completion_tracker. Catch exceptions when completing.
4713 * cli/cli-decode.c (integer_unlimited_completer)
4714 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4715 with completion_tracker instead of VEC.
4716 * command.h (struct completion_tracker): Forward declare.
4717 (completer_ftype, completer_handle_brkchars_ftype): Change
4719 (complete_on_cmdlist, complete_on_enum): Adjust.
4720 * completer.c: Include <algorithm>.
4721 (struct gdb_completer_state): New.
4722 (current_completion): New global.
4723 (readline_line_completion_function): Delete.
4724 (noop_completer, filename_completer)
4725 (filename_completer_handle_brkchars, complete_files_symbols)
4726 (linespec_location_completer): Adjust to work with a
4727 completion_tracker instead of a VEC.
4728 (string_or_empty): New.
4729 (collect_explicit_location_matches): Adjust to work with a
4730 completion_tracker instead of a VEC.
4731 (explicit_location_completer): Rename to ...
4732 (complete_explicit_location): ... this and adjust to work with a
4733 completion_tracker instead of a VEC.
4734 (location_completer): Adjust to work with a completion_tracker
4736 (add_struct_fields): Adjust to work with a completion_list instead
4738 (expression_completer): Rename to ...
4739 (complete_expression): ... this and adjust to work with a
4740 completion_tracker instead of a VEC. Use complete_files_symbols.
4741 (expression_completer): Reimplement on top of complete_expression.
4742 (symbol_completer): Adjust to work with a completion_tracker
4744 (enum complete_line_internal_reason): Add describing comments.
4745 (complete_line_internal_normal_command): Adjust to work with a
4746 completion_tracker instead of a VEC.
4747 (complete_line_internal): Rename to ...
4748 (complete_line_internal_1): ... this and adjust to work with a
4749 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4750 handle_brkchars phase.
4751 (new_completion_tracker): Delete.
4752 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4753 complete_line_internal_1.
4754 (free_completion_tracker): Delete.
4755 (INITIAL_COMPLETION_HTAB_SIZE): New.
4756 (completion_tracker::completion_tracker)
4757 (completion_tracker::~completion_tracker): New.
4758 (maybe_add_completion): Delete.
4759 (completion_tracker::maybe_add_completion)
4760 (completion_tracker::add_completion)
4761 (completion_tracker::add_completions): New.
4762 (throw_max_completions_reached_error): Delete.
4763 (complete_line): Adjust to work with a completion_tracker instead
4764 of a VEC. Don't create a completion_tracker_t or check for max
4766 (command_completer, command_completer_handle_brkchars)
4767 (signal_completer, reg_or_group_completer_1)
4768 (reg_or_group_completer, default_completer_handle_brkchars):
4769 Adjust to work with a completion_tracker.
4770 (gdb_completion_word_break_characters_throw): New.
4771 (gdb_completion_word_break_characters): Reimplement.
4772 (line_completion_function): Delete.
4773 (completion_tracker::recompute_lowest_common_denominator)
4774 (expand_preserving_ws)
4775 (completion_tracker::build_completion_result)
4776 (completion_result::completion_result)
4777 (completion_result::completion_result)
4778 (completion_result::~completion_result)
4779 (completion_result::completion_result)
4780 (completion_result::release_match_list, compare_cstrings)
4781 (completion_result::sort_match_list)
4782 (completion_result::reset_match_list)
4783 (gdb_rl_attempted_completion_function_throw)
4784 (gdb_rl_attempted_completion_function): New.
4785 * completer.h (completion_list, struct completion_result)
4786 (class completion_tracker): New.
4787 (complete_line): Add completion_tracker parameter.
4788 (readline_line_completion_function): Delete.
4789 (gdb_rl_attempted_completion_function): New.
4790 (noop_completer, filename_completer, expression_completer)
4791 (location_completer, symbol_completer, command_completer)
4792 (signal_completer, reg_or_group_completer): Update prototypes.
4793 (completion_tracker_t, new_completion_tracker)
4794 (make_cleanup_free_completion_tracker): Delete.
4795 (enum maybe_add_completion_enum): Delete.
4796 (maybe_add_completion): Delete.
4797 (throw_max_completions_reached_error): Delete.
4798 * corefile.c (complete_set_gnutarget): Adjust to work with a
4799 completion_tracker instead of a VEC.
4800 * cp-abi.c (cp_abi_completer): Adjust to work with a
4801 completion_tracker instead of a VEC.
4802 * d-lang.c (d_language_defn): Adjust.
4803 * disasm.c (disassembler_options_completer): Adjust to work with a
4804 completion_tracker instead of a VEC.
4805 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4806 (f_collect_symbol_completion_matches): ... this. Adjust to work
4807 with a completion_tracker instead of a VEC.
4808 (f_language_defn): Adjust.
4809 * go-lang.c (go_language_defn): Adjust.
4810 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4811 Adjust to work with a completion_tracker instead of a VEC.
4812 * infrun.c (handle_completer): Likewise.
4813 * interps.c (interpreter_completer): Likewise.
4814 * interps.h (interpreter_completer): Likewise.
4815 * language.c (unknown_language_defn, auto_language_defn)
4816 (local_language_defn): Adjust.
4817 * language.h (language_defn::la_make_symbol_completion_list):
4819 (language_defn::la_collect_symbol_completion_matches): ... this
4820 and adjust to work with a completion_tracker instead of a VEC.
4821 * m2-lang.c (m2_language_defn): Adjust.
4822 * objc-lang.c (objc_language_defn): Adjust.
4823 * opencl-lang.c (opencl_language_defn): Adjust.
4824 * p-lang.c (pascal_language_defn): Adjust.
4825 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4826 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4827 with a completion_tracker.
4828 * rust-lang.c (rust_language_defn): Adjust.
4829 * symtab.c (free_completion_list, do_free_completion_list)
4830 (return_val, completion_tracker): Delete.
4831 (completion_list_add_name, completion_list_add_symbol)
4832 (completion_list_add_msymbol, completion_list_objc_symbol)
4833 (completion_list_add_fields, add_symtab_completions): Add
4834 completion_tracker parameter and use it.
4835 (default_make_symbol_completion_list_break_on_1): Rename to...
4836 (default_collect_symbol_completion_matches_break_on): ... this.
4837 Add completion_tracker parameter and use it instead of allocating
4838 a completion tracker here.
4839 (default_make_symbol_completion_list_break_on): Delete old
4841 (default_make_symbol_completion_list): Delete.
4842 (default_collect_symbol_completion_matches): New.
4843 (make_symbol_completion_list): Delete.
4844 (collect_symbol_completion_matches): New.
4845 (make_symbol_completion_type): Rename to ...
4846 (collect_symbol_completion_matches_type): ... this. Add
4847 completion_tracker parameter and use it instead of VEC.
4848 (make_file_symbol_completion_list_1): Rename to...
4849 (collect_file_symbol_completion_matches): ... this. Add
4850 completion_tracker parameter and use it instead of VEC.
4851 (make_file_symbol_completion_list): Delete.
4852 (add_filename_to_list): Use completion_list instead of a VEC.
4853 (add_partial_filename_data::list): Now a completion_list.
4854 (make_source_files_completion_list): Work with a completion_list
4856 * symtab.h: Include "completer.h".
4857 (default_make_symbol_completion_list_break_on)
4858 (default_make_symbol_completion_list, make_symbol_completion_list)
4859 (make_symbol_completion_type, make_file_symbol_completion_list)
4860 (make_source_files_completion_list): Delete.
4861 (default_collect_symbol_completion_matches_break_on)
4862 (default_collect_symbol_completion_matches)
4863 (collect_symbol_completion_matches)
4864 (collect_symbol_completion_matches_type)
4865 (collect_file_symbol_completion_matches)
4866 (make_source_files_completion_list): New.
4867 * top.c (init_main): Don't install a rl_completion_entry_function
4868 hook. Install a rl_attempted_completion_function hook instead.
4869 * tui/tui-layout.c (layout_completer): Adjust to work with a
4871 * tui/tui-regs.c (tui_reggroup_completer):
4872 * tui/tui-win.c (window_name_completer, focus_completer)
4873 (winheight_completer): Adjust to work with a completion_tracker.
4874 * value.c: Include "completer.h".
4875 (complete_internalvar): Adjust to work with a completion_tracker.
4876 * value.h (complete_internalvar): Likewise.
4878 2017-07-17 Pedro Alves <palves@redhat.com>
4880 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4882 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4883 comments to completer_ftype's declaration.
4884 <completer_handle_brkchars>: Change type to
4885 completer_handle_brkchars_ftype.
4886 * command.h (completer_ftype): Add describing comment and give
4887 names to parameters.
4888 (completer_ftype_void): Rename to ...
4889 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4890 (set_cmd_completer_handle_brkchars): Adjust.
4891 * completer.c (filename_completer_handle_brkchars): New function.
4892 (complete_line_internal_normal_command): New function, factored
4894 (complete_line_internal): ... here.
4895 (command_completer_handle_brkchars)
4896 (default_completer_handle_brkchars)
4897 (completer_handle_brkchars_func_for_completer): New functions.
4898 * completer.h (set_gdb_completion_word_break_characters): Delete
4900 (completer_handle_brkchars_func_for_completer): New declaration.
4901 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4902 completer_handle_brkchars_func_for_completer.
4904 2017-07-17 Pedro Alves <palves@redhat.com>
4906 * completer.c (symbol_completer): New function, based on
4907 make_symbol_completion_list_fn.
4908 * completer.h (symbol_completer): New declaration.
4909 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4910 * python/py-cmd.c (completers): Adjust.
4911 * symtab.c (make_symbol_completion_list_fn): Delete.
4912 * symtab.h (make_symbol_completion_list_fn): Delete.
4913 * cli/cli-decode.c (add_cmd): Adjust.
4915 2017-07-17 Pedro Alves <palves@redhat.com>
4917 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4918 * dwarf2read.c: Include "filename-seen-cache.h".
4919 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4920 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4921 * filename-seen-cache.c: New file.
4922 * filename-seen-cache.h: New file.
4923 * symtab.c: Include "filename-seen-cache.h".
4924 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4925 (create_filename_seen_cache, clear_filename_seen_cache)
4926 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4927 to filename-seen-cache.h/filename-seen-cache.c.
4928 (output_source_filename, sources_info)
4929 (maybe_add_partial_symtab_filename)
4930 (make_source_files_completion_list): Adjust to use
4931 filename_seen_cache.
4933 2017-07-17 Pedro Alves <palves@redhat.com>
4935 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4937 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4938 dwarf2_debug_sections*)): New.
4939 (dwarf2_per_objfile::dwarf2_per_objfile(const
4940 dwarf2_per_objfile&)): Declare as deleted.
4941 (dwarf2_per_objfile::operator=): Declare as deleted.
4942 (dwarf2_per_objfile::dwarf2_per_objfile)
4943 (dwarf2_per_objfile::~dwarf2_per_objfile)
4944 (dwarf2_per_objfile::free_cached_comp_units): New.
4945 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4946 ctor. Call dwarf2_per_objfile's ctor manually.
4947 (dwarf2_locate_sections): Deleted/refactored as ...
4948 (dwarf2_per_objfile::locate_sections): ... this new method.
4949 (free_cached_comp_units): Defer to
4950 dwarf2_per_objfile::free_cached_comp_units.
4951 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4953 2017-07-14 Tom Tromey <tom@tromey.com>
4956 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4958 <UNOP_SIZEOF>: Split into separate case.
4959 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4961 2017-07-14 Tom Tromey <tom@tromey.com>
4964 * symtab.c (symbol_matches_domain): Add language_rust to special
4966 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4967 treat LOC_TYPEDEF symbols as variables.
4969 2017-07-14 Pedro Alves <palves@redhat.com>
4971 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4972 symtabs matching all symtabs with SRCFILE as file name instead of
4973 only considering the first hit, with lookup_symtab.
4975 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4977 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4978 operator_name parameters.
4979 (gen_expr): Update function call.
4981 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4983 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4985 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4987 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4988 parameter, use agent_expr::gdbarch instead, update function
4990 (locexpr_tracepoint_var_ref): Likewise.
4991 (loclist_tracepoint_var_ref): Likewise.
4992 * ax-gdb.c (gen_trace_static_fields): Likewise.
4993 (gen_traced_pop): Likewise.
4994 (gen_frame_args_address): Likewise.
4995 (gen_frame_locals_address): Likewise.
4996 (gen_var_ref): Likewise.
4997 (gen_struct_ref_recursive): Likewise.
4998 (gen_static_field): Likewise.
4999 (gen_maybe_namespace_elt): Likewise.
5000 (gen_expr): Likewise.
5001 (gen_trace_for_var): Likewise.
5002 (gen_trace_for_expr): Likewise.
5003 (gen_trace_for_return_address): Likewise.
5005 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5007 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5009 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5011 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5013 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5014 from ax, update calls.
5015 (gen_usual_arithmetic): Likewise.
5016 (gen_integral_promotions): Likewise.
5017 (gen_bitfield_ref): Likewise.
5018 (gen_primitive_field): Likewise.
5019 (gen_struct_ref_recursive): Likewise.
5020 (gen_struct_ref): Likewise.
5021 (gen_maybe_namespace_elt): Likewise.
5022 (gen_struct_elt_for_reference): Likewise.
5023 (gen_namespace_elt): Likewise.
5024 (gen_aggregate_elt_ref): Likewise.
5025 (gen_expr): Get gdbarch from ax, update calls.
5026 (gen_expr_binop_rest): Likewise.
5028 2017-07-13 Pedro Alves <palves@redhat.com>
5030 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5032 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5033 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5034 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5035 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5037 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5038 Get final tdesc from the tdep.
5039 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5041 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5042 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5043 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5044 Use it as default tdesc.
5045 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5046 down to amd_init_abi. No longer handle fallback tdesc here.
5047 * amd64-tdep.h (tdesc_x32): Declare.
5048 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5050 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5053 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5055 * s390-linux-tdep.c (s390_process_record): Add support for
5056 instructions new in arch12.
5058 2017-07-11 John Baldwin <jhb@FreeBSD.org>
5060 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5061 PT_GETFSBASE and PT_GETGSBASE.
5062 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5065 2017-07-11 John Baldwin <jhb@FreeBSD.org>
5067 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5068 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5069 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5071 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5072 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5073 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5074 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5075 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5076 * features/i386/amd64.xml: Add 64bit-segments.xml.
5077 * features/i386/amd64-avx-avx512.c: Regenerated.
5078 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5079 * features/i386/amd64-avx-mpx.c: Regenerated.
5080 * features/i386/amd64-avx.c: Regenerated.
5081 * features/i386/amd64-mpx.c: Regenerated.
5082 * features/i386/amd64.c: Regenerated.
5083 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5084 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5085 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5086 * regformats/i386/amd64-avx.dat: Regenerated.
5087 * regformats/i386/amd64-mpx.dat: Regenerated.
5088 * regformats/i386/amd64.dat: Regenerated.
5090 2017-07-10 Yao Qi <yao.qi@linaro.org>
5092 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5093 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5095 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5097 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5099 * gnulib/aclocal.m4: Regenerate.
5100 * gnulib/config.in: Regenerate.
5101 * gnulib/configure: Regenerate.
5102 * gnulib/import/Makefile.am: Regenerate.
5103 * gnulib/import/Makefile.in: Regenerate.
5104 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5105 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5106 * gnulib/import/m4/environ.m4: New file.
5107 * gnulib/import/m4/setenv.m4: New file.
5108 * gnulib/import/setenv.c: New file.
5109 * gnulib/import/unsetenv.c: New file.
5111 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5113 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5114 address when op is DW_OP_addr.
5116 2017-07-09 Tom Tromey <tom@tromey.com>
5118 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5119 check and apply to outer type.
5121 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5123 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5124 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5125 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5126 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5128 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5130 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5132 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5134 * corelow.c (get_core_siginfo): Remove.
5135 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5136 instead of get_core_siginfo.
5137 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5138 * gdbarch.h: Re-generate.
5139 * gdbarch.c: Re-generate.
5140 * linux-tdep.c (linux_core_xfer_siginfo): New.
5141 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5143 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5145 * corelow.c (thread_section_name): Move to ...
5146 * gdbcore.h (thread_section_name): ... here.
5148 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5150 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5151 (struct siginfo32): New.
5152 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5153 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5154 via ptrace(PT_LWPINFO).
5156 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5158 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5159 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5160 (fbsd_get_siginfo_type): New.
5161 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5162 (_initialize_fbsd_tdep): New.
5164 2017-07-06 David Blaikie <dblaikie@gmail.com>
5166 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5167 a singular dwo_unit*) to support multiple CUs in the same way that
5168 multiple TUs are supported.
5169 (create_cus_hash_table): Replace create_dwo_cu with a function for
5170 parsing multiple CUs from a DWO file.
5171 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5173 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5174 htab_find, rather than comparing the signature to a singleton CU in
5177 2017-07-06 Pedro Alves <palves@redhat.com>
5179 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5181 2017-07-04 Pedro Alves <palves@redhat.com>
5183 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5184 * gdbtypes.h (TYPE_STATIC): Delete.
5185 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5186 is_synchronized, is_native>: Delete.
5188 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5189 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5190 (TYPE_FN_FIELD_ABSTRACT): Delete.
5192 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5194 * buffer.h (buffer_finish): Fix spelling mistakes.
5196 2017-07-01 Eli Zaretskii <eliz@gnu.org>
5198 * .dir-locals.el: Automatically switch to C-style comments in
5199 versions of Emacs that support the feature.
5201 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5202 Pedro Alves <palves@redhat.com>
5205 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5206 (process_next_line): New variable 'inline_cmd'.
5207 Adjust 'if' clauses for "python", "compile" and "guile" to use
5208 'command_name_equals' and check for '!inline_cmd'.
5210 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5213 * cli/cli-script.c (command_name_equals_not_inline): New function.
5214 (process_next_line): Adjust 'if' clauses for "python", "compile"
5215 and "guile" to use command_name_equals_not_inline.
5217 2017-06-29 Pedro Alves <palves@redhat.com>
5219 * completer.c (expression_completer): Call
5220 linespec_location_completer instead of location_completer.
5222 2017-06-29 Pedro Alves <palves@redhat.com>
5224 * completer.c (expression_completer): Remove code that recomputes
5227 2017-06-29 Yao Qi <yao.qi@linaro.org>
5229 * regformats/regdat.sh: Generate code with
5230 "ifndef IN_PROCESS_AGENT".
5232 2017-06-28 Pedro Alves <palves@redhat.com>
5234 * command.h: Include "common/scoped_restore.h".
5236 2017-06-28 Yao Qi <yao.qi@linaro.org>
5238 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5239 instead of obstack_grow.
5241 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5244 * symfile.c (reread_symbols): Call objfiles_changed just before
5247 2017-06-27 Pedro Alves <palves@redhat.com>
5249 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5250 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5251 (completion_list_add_symbol, completion_list_add_msymbol):
5252 ... these new functions.
5253 (add_symtab_completions)
5254 (default_make_symbol_completion_list_break_on_1): Adjust.
5256 2017-06-27 Pedro Alves <palves@redhat.com>
5258 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5259 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5260 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5262 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5263 'storage_obstack' field an auto_obstack. In-class initialize all
5264 non-bitfield fields. Make minsyms_read bool.
5265 * symfile.c (read_symbols): Adjust.
5267 2017-06-27 Alan Hayward <alan.hayward@arm.com>
5269 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5270 (gdbsim_store_register): Likewise.
5272 2017-06-27 Pedro Alves <palves@redhat.com>
5274 * c-exp.y (name_obstack): Now an auto_obstack.
5275 (yylex): Use auto_obstack::clear.
5276 (c_parse): Use auto_obstack::clear instead of reinitializing and
5277 freeing the obstack.
5278 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5279 * d-exp.y (name_obstack): Now an auto_obstack.
5280 (yylex): Use auto_obstack::clear.
5281 (d_parse): Use auto_obstack::clear instead of reinitializing and
5282 freeing the obstack.
5283 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5285 * dwarf2read.c (create_addrmap_from_index)
5286 (dwarf2_build_psymtabs_hard)
5287 (update_enumeration_type_from_children): Likewise.
5288 * gdb_obstack.h (auto_obstack): New type.
5289 * go-exp.y (name_obstack): Now an auto_obstack.
5290 (build_packaged_name): Use auto_obstack::clear.
5291 (go_parse): Use auto_obstack::clear instead of reinitializing and
5292 freeing the obstack.
5293 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5295 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5296 * rust-exp.y (work_obstack): Now an auto_obstack.
5297 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5298 reinitializing and freeing the obstack.
5299 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5300 (host_char_to_target): Use auto_obstack.
5301 * utils.h (make_cleanup_obstack_free): Delete declaration.
5302 * valprint.c (generic_emit_char, generic_printstr): Use
5305 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5307 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5309 (darwin_init_thread_list): Don't update dummy thread.
5310 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5312 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5314 * record-full.c (netorder16): Remove.
5316 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5318 * common/diagnostics.h: Define macros for GCC.
5319 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5320 * common/vec.h: Include diagnostics.h.
5321 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5322 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5325 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5327 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5329 * ada-lex.l: Ignore deprecated register warnings.
5331 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5333 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5334 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5336 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5338 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5341 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5343 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5345 2017-06-23 Alan Hayward <alan.hayward@arm.com>
5347 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5348 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5349 (xtensa_register_read_masked): Likewise.
5351 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5353 * common/environ.c (gdb_environ::unset): Update comment.
5355 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5357 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5360 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5362 * record-full.c (record_full_exec_insn): Use byte_vector.
5364 2017-06-22 Yao Qi <yao.qi@linaro.org>
5366 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5367 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5369 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5371 * remote.c (cached_reg): Move from here...
5372 * regcache.h (cached_reg): ...to here.
5373 * python/py-unwind.c (struct reg_info): Remove.
5374 (cached_frame_info): Use cached_reg_t.
5375 (pyuw_prev_register): Likewise.
5376 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5377 (pyuw_dealloc_cache): Free all registers.
5379 2017-06-22 Pedro Alves <palves@redhat.com>
5380 Simon Marchi <simon.marchi@ericsson.com>
5382 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5384 * common/diagnostics.h: New file.
5386 2017-06-22 Pedro Alves <palves@redhat.com>
5388 * common/agent.h: Add include guards.
5390 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5392 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5393 talk about addressable units instead of bytes.
5395 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5397 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5398 of '::const_iterator'.
5400 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5402 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5403 'unittests/environ-selftests.c'.
5404 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5405 * charset.c (find_charset_names): Declare object 'iconv_env'.
5406 Update code to use 'iconv_env' object. Remove call to
5408 * common/environ.c: Include <utility>.
5409 (make_environ): Delete function.
5410 (free_environ): Delete function.
5411 (gdb_environ::clear): New function.
5412 (gdb_environ::operator=): New function.
5413 (gdb_environ::get): Likewise.
5414 (environ_vector): Delete function.
5415 (set_in_environ): Delete function.
5416 (gdb_environ::set): New function.
5417 (unset_in_environ): Delete function.
5418 (gdb_environ::unset): New function.
5419 (gdb_environ::envp): Likewise.
5420 * common/environ.h: Include <vector>.
5421 (struct gdb_environ): Delete; transform into...
5422 (class gdb_environ): ... this class.
5423 (free_environ): Delete prototype.
5424 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5425 environ_vector): Likewise.
5426 * infcmd.c (run_command_1): Update code to call
5427 'envp' from 'gdb_environ' class.
5428 (environment_info): Update code to call methods from 'gdb_environ'
5430 (unset_environment_command): Likewise.
5431 (path_info): Likewise.
5432 (path_command): Likewise.
5433 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5434 (inferior::inferior): Initialize 'environment' using the host's
5436 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5437 Include "environ.h".
5438 (class inferior) <environment>: Change type from 'struct
5439 gdb_environ' to 'gdb_environ'.
5440 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5441 methods from 'gdb_environ' class.
5442 * solib.c (solib_find_1): Likewise
5443 * unittests/environ-selftests.c: New file.
5445 2017-06-20 Yao Qi <yao.qi@linaro.org>
5447 * features/i386/i386-linux.xml: Exchange the order of including
5448 32bit-linux.xml and 32bit-sse.xml.
5449 * features/i386/i386-linux.c: Regenerated.
5451 2017-06-20 Yao Qi <yao.qi@linaro.org>
5453 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5454 Delete copy ctor and assignment operator.
5455 (tdesc_type): Likewise.
5456 (tdesc_feature): Likewise.
5457 (tdesc_free_reg): Remove.
5458 (tdesc_create_reg): Use new.
5459 (tdesc_free_type): Remove.
5460 (tdesc_create_vector): Use new.
5461 (tdesc_create_union): Likewise.
5462 (tdesc_create_flags): Likewise.
5463 (tdesc_create_enum): Likewise.
5464 (tdesc_free_feature): Delete.
5465 (free_target_description): Use delete.
5467 2017-06-19 John Baldwin <jhb@FreeBSD.org>
5469 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5472 2017-06-19 Pedro Alves <palves@redhat.com>
5474 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5475 after gdb::unlinker.
5477 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5479 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5480 gdb_environ to access an environment variable.
5482 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5484 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5487 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5489 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5491 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5493 * configure: Re-generate.
5494 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5496 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5498 * configure: Re-generate.
5499 * warning.m4: Pass -Werror to compiler when checking for
5500 supported warning flags.
5502 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5504 * Makefile.in (COMPILE.pre): Add "-x c++".
5506 2017-06-16 Alan Hayward <alan.hayward@arm.com>
5507 Pedro Alves <palves@redhat.com>
5508 Yao Qi <yao.qi@linaro.org>
5510 * defs.h (RequireLongest): New.
5511 (extract_integer): Declare function template.
5512 (extract_signed_integer): Remove the declaration, but define it
5514 (extract_unsigned_integer): Likewise.
5515 (store_integer): Declare function template.
5516 (store_signed_integer): Remove the declaration, but define it
5518 (store_unsigned_integer): Likewise.
5519 * findvar.c (extract_integer): New function template.
5520 (extract_signed_integer): Remove.
5521 (extract_unsigned_integer): Remove.
5522 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5524 (store_integer): New function template.
5525 (store_signed_integer): Remove.
5526 (store_unsigned_integer): Remove.
5527 (store_integer): Explicit instantiations.
5528 * regcache.c (regcache_raw_read_signed): Update.
5529 (regcache::raw_read): New function.
5530 (regcache::raw_read_signed): Remove.
5531 (regcache::raw_read_unsigned): Remove.
5532 (regcache_raw_read_unsigned): Update.
5533 (regcache_raw_write_unsigned): Update.
5534 (regcache::raw_write_signed): Remove.
5535 (regcache::raw_write): New function.
5536 (regcache_cooked_read_signed): Update.
5537 (regcache::raw_write_unsigned): Remove.
5538 (regcache::cooked_read_signed): Remove.
5539 (regcache_cooked_read_unsigned): Update.
5540 (regcache::cooked_read_unsigned): Remove.
5541 (regcache_cooked_write_signed): Update.
5542 (regcache_cooked_write_unsigned): Update.
5543 * regcache.h (regcache) <raw_read_signed>: Remove.
5544 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5545 <raw_read, raw_write>: New.
5546 <cooked_read_signed, cooked_write_signed>: Remove.
5547 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5548 <cooked_read, cooked_write>: New.
5549 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5550 (sh64_pseudo_register_write): Update.
5552 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5554 * arc-tdep.c (arc_disassembler_options): New variable.
5555 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5556 of default_print_insn.
5557 (arc_delayed_print_insn): Set info->section when needed,
5558 use default_print_insn to retrieve a disassembler.
5560 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5563 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5564 to mention $SHELL and startup-with-shell.
5566 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5568 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5570 2017-06-14 Yao Qi <yao.qi@linaro.org>
5572 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5573 default_print_insn instead of print_insn_aarch64.
5574 * arm-tdep.c (gdb_print_insn_arm): Call
5575 default_print_insn instead of print_insn_big_arm
5576 and print_insn_little_arm.
5577 * i386-tdep.c (i386_print_insn): Call default_print_insn
5578 instead of print_insn_i386.
5579 * ia64-tdep.c (ia64_print_insn): Call
5580 default_print_insn instead of print_insn_ia64.
5581 * mips-tdep.c (gdb_print_insn_mips): Call
5582 default_print_insn instead of print_insn_big_mips
5583 and print_insn_little_mips.
5584 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5585 instead of print_insn_spu.
5587 2017-06-14 Pedro Alves <palves@redhat.com>
5589 * ada-lang.c: Include "common/byte-vector.h".
5590 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5591 * charset.c (wchar_iterator::iterate): Resize the vector instead
5593 * common/byte-vector.h: Include "common/def-vector.h".
5594 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5595 * cli/cli-dump.c: Include "common/byte-vector.h".
5596 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5597 * common/byte-vector.h: New file.
5598 * common/def-vector.h: New file.
5599 * common/default-init-alloc.h: New file.
5600 * dwarf2loc.c: Include "common/byte-vector.h".
5601 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5602 instead of reserving it.
5603 * dwarf2read.c: Include "common/byte-vector.h".
5604 (data_buf::m_vec): Now a gdb::byte_vector.
5605 * gdb_regex.c: Include "common/def-vector.h".
5606 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5607 * mi/mi-main.c: Include "common/byte-vector.h".
5608 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5609 * printcmd.c: Include "common/byte-vector.h".
5610 (print_scalar_formatted): Use gdb::byte_vector.
5611 * valprint.c: Include "common/byte-vector.h".
5612 (maybe_negate_by_bytes, print_decimal_chars): Use
5615 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5617 * darwin-nat.c: Include "nat/fork-inferior.h".
5619 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5621 * configure.nat: Factor out Darwin bits that are not
5622 architecture-specific. Add fork-inferior.o.
5624 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5626 * configure.nat: Factor out AIX bits that are not
5627 architecture-specific. Add fork-inferior.o.
5629 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5631 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5632 (read_pieced_value, write_pieced_value): ...here. Reduce to
5633 wrappers that just call rw_pieced_value.
5635 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5637 * dwarf2loc.c (write_pieced_value): When writing the data for a
5638 memory piece, use write_memory_with_notification instead of
5641 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5643 * valops.c (read_value_memory): Change embedded_offset to
5644 represent a bit offset instead of a byte offset.
5645 * value.h (read_value_memory): Adjust comment.
5647 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5649 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5650 dest_offset_bits and source_offset_bits.
5651 (write_pieced_value): Likewise.
5653 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5655 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5656 given by DW_OP_bit_piece.
5657 (write_pieced_value): Likewise.
5659 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5661 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5662 some other preparations to the places where sufficient information
5664 (write_pieced_value): Likewise.
5666 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5668 * dwarf2loc.c (bits_to_bytes): New function.
5669 (read_pieced_value): Fix offset calculations for register pieces
5670 on big-endian targets.
5671 (write_pieced_value): Likewise.
5673 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5675 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5676 (write_pieced_value): Likewise.
5678 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5680 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5681 transfer the source value's least significant bits, instead of its
5682 lowest-addressed ones. Rename type_len to max_offset.
5683 (read_pieced_value): Mirror above changes to write_pieced_value as
5686 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5688 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5689 truncate full bytes from dest_offset_bits before using it as an
5690 offset into the buffer.
5692 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5694 * dwarf2loc.c (write_pieced_value): Include transfer size in
5697 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5699 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5700 calculation of this_size.
5702 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5704 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5705 when targeting a bit-field.
5706 (write_pieced_value): Likewise.
5708 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5710 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5711 (allocate_piece_closure): Drop addr_size parameter.
5712 (dwarf2_evaluate_loc_desc_full): Adjust call to
5713 allocate_piece_closure.
5715 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5718 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5719 the LSB end, independent of endianness.
5721 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5723 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5726 2017-06-13 Yao Qi <yao.qi@linaro.org>
5728 * mips-linux-nat.c: Move include features/mips*-linux.c to
5730 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5731 to mips-linux-tdep.c.
5732 * mips-linux-tdep.c: Include features/mips*-linux.c
5733 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5735 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5736 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5737 (tdesc_mips64_dsp_linux): Declare.
5739 2017-06-12 Tom Tromey <tom@tromey.com>
5741 * valprint.h (val_print_type_code_int): Remove.
5742 * valprint.c (generic_val_print_int): Always call
5743 val_print_scalar_formatted.
5744 (val_print_type_code_int): Remove.
5745 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5746 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5747 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5748 * ada-valprint.c (ada_val_print_num): Use
5749 val_print_scalar_formatted.
5751 2017-06-12 Tom Tromey <tom@tromey.com>
5753 * printcmd.c (print_scalar_formatted): Unify the two switches.
5754 Don't convert scalars to LONGEST.
5756 2017-06-12 Tom Tromey <tom@tromey.com>
5759 * valprint.h (print_decimal_chars): Update.
5760 * valprint.c (maybe_negate_by_bytes): New function.
5761 (print_decimal_chars): Add "is_signed" argument.
5762 * printcmd.c (print_scalar_formatted): Update.
5764 2017-06-12 Tom Tromey <tom@tromey.com>
5767 * valprint.h (print_binary_chars, print_hex_chars): Update.
5768 * valprint.c (val_print_type_code_int): Update.
5769 (print_binary_chars): Add "zero_pad" argument.
5770 (emit_octal_digit): New function.
5771 (print_octal_chars): Don't zero-pad.
5772 (print_decimal_chars): Likewise.
5773 (print_hex_chars): Add "zero_pad" argument.
5774 * sh64-tdep.c (sh64_do_fp_register): Update.
5775 * regcache.c (regcache::dump): Update.
5776 * printcmd.c (print_scalar_formatted): Update.
5777 * infcmd.c (default_print_one_register_info): Update.
5779 2017-06-12 Pedro Alves <palves@redhat.com>
5780 Alan Hayward <alan.hayward@arm.com>
5782 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5783 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5784 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5785 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5786 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5788 2017-06-12 Pedro Alves <palves@redhat.com>
5790 * dwarf2read.c (mapped_symtab::data): Now a vector of
5791 symtab_index_entry instead of vector of
5792 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5793 whether an element's name is NULL instead of checking whether the
5794 element itself is NULL.
5795 (find_slot): Change return type. Adjust.
5796 (hash_expand, , add_index_entry, uniquify_cu_indices)
5797 (write_hash_table): Adjust.
5799 2017-06-12 Pedro Alves <palves@redhat.com>
5801 * dwarf2read.c (recursively_count_psymbols): New function.
5802 (write_psymtabs_to_index): Call it to compute number of psyms and
5803 pass estimate size of psyms_seen to unordered_set's ctor.
5805 2017-06-12 Pedro Alves <palves@redhat.com>
5807 * dwarf2read.c (write_hash_table): Check if key already exists
5810 2017-06-12 Pedro Alves <palves@redhat.com>
5812 * dwarf2read.c (data_buf::append_space): Rename to...
5813 (data_buf::grow): ... this, and make private. Adjust all callers.
5814 (data_buf::append_uint): New method.
5815 (add_address_entry, write_one_signatured_type)
5816 (write_psymtabs_to_index): Use it.
5818 2017-06-12 Pedro Alves <palves@redhat.com>
5820 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5821 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5822 (data_buf::file_write): Call ::fwrite directly.
5824 2017-06-12 Pedro Alves <palves@redhat.com>
5826 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5829 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5831 Code cleanup: C++ify .gdb_index producer.
5832 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5833 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5834 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5835 (create_strtab, add_string): Remove.
5836 (file_write, data_buf): New.
5837 (struct symtab_index_entry): Use std::vector for cu_indices.
5838 (struct mapped_symtab): Use std::vector for data.
5839 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5840 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5842 (find_slot): Change return type. Update it to the new data structures.
5843 (hash_expand, add_index_entry): Update it to the new data structures.
5844 (offset_type_compare): Remove.
5845 (uniquify_cu_indices): Update it to the new data structures.
5846 (c_str_view, c_str_view_hasher, vector_hasher): New.
5847 (add_indices_to_cpool): Remove.
5848 (write_hash_table): Update it to the new data structures.
5849 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5850 (eq_psymtab_cu_index): Remove.
5851 (psym_index_map): New typedef.
5852 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5853 reference and std::unordered_map for cu_index_htab.
5854 (add_address_entry, add_address_entry_worker, write_address_map)
5855 (write_psymbols): Update it to the new data structures.
5856 (write_obstack): Remove.
5857 (struct signatured_type_index_data): Change types_list to a data_buf
5858 reference and psyms_seen to a std::unordered_set reference.
5859 (write_one_signatured_type, recursively_write_psymbols)
5860 (write_psymtabs_to_index): Update it to the new data structures.
5862 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5864 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5865 separate-debug-file commands.
5866 * symfile.h (separate_debug_file_debug): New global.
5867 * symfile.c (separate_debug_file_debug): New global.
5868 (separate_debug_file_exists, find_separate_debug_file): Add
5870 (_initialize_symfile): Add "set debug separate-debug-file"
5872 * build-id.c (build_id_to_debug_bfd,
5873 find_separate_debug_file_by_buildid): Add debug output.
5875 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5877 * gdbarch.sh (displaced_step_free_closure): Remove.
5878 * gdbarch.h, gdbarch.c: Re-generate.
5879 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5880 displaced_step_free_closure.
5881 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5882 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5883 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5884 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5885 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5886 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5887 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5888 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5889 * infrun.c (displaced_step_clear): Call xfree instead of
5890 gdbarch_displaced_step_free_closure.
5892 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5894 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5897 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5899 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5900 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5901 (mn10300_push_dummy_call): Likewise.
5903 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5905 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5907 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5909 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5911 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5913 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5914 able to start inferiors using a shell.
5915 (New remote packets): Announce new packet "QStartupWithShell".
5916 * remote.c: Add PACKET_QStartupWithShell.
5917 (extended_remote_create_inferior): Handle new
5918 PACKET_QStartupWithShell.
5919 (remote_protocol_features) <QStartupWithShell>: New entry for
5920 PACKET_QStartupWithShell.
5921 (_initialize_remote): Call "add_packet_config_cmd" for
5924 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5925 Pedro Alves <palves@redhat.com>
5927 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5928 and "nat/fork-inferior.h".
5929 * common/common-inferior.h: New file, with contents from
5931 * commom/common-utils.c: Include "common-utils.h".
5932 (stringify_argv): New function.
5933 * common/common-utils.h (stringify_argv): New prototype.
5934 * configure.nat: Add "fork-inferior.o" as a dependency for
5935 "*linux*", "fbsd*" and "nbsd*" hosts.
5936 * corefile.c (get_exec_file): Update comment.
5937 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5938 instead of "startup_inferior".
5939 (darwin_create_inferior): Call "add_thread_silent" after
5941 * fork-child.c: Cleanup unnecessary includes.
5942 (SHELL_FILE): Move to "common/common-fork-child.c".
5943 (environ): Likewise.
5944 (exec_wrapper): Initialize.
5945 (get_exec_wrapper): New function.
5946 (breakup_args): Move to "common/common-fork-child.c"; rename to
5947 "breakup_args_for_exec".
5948 (escape_bang_in_quoted_argument): Move to
5949 "common/common-fork-child.c".
5950 (saved_ui): New variable.
5951 (prefork_hook): New function.
5952 (postfork_hook): Likewise.
5953 (postfork_child_hook): Likewise.
5954 (gdb_startup_inferior): Likewise.
5955 (fork_inferior): Move to "common/common-fork-child.c". Update
5956 function to support gdbserver.
5957 (startup_inferior): Likewise.
5958 * gdbcore.h (get_exec_file): Remove declaration.
5959 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5960 instead of "startup_inferior". Call "add_thread_silent" after
5962 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5963 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5964 instead of "startup_inferior". Call "add_thread_silent" after
5966 * inferior.h: Include "common-inferior.h".
5967 (trace_start_error): Move to "common/common-utils.h".
5968 (trace_start_error_with_name): Likewise.
5969 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5970 (startup_inferior): Likewise.
5971 (gdb_startup_inferior): New prototype.
5972 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5973 * nat/fork-inferior.h: New file.
5974 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5975 instead of "startup_inferior". Call "add_thread_silent" after
5977 * target.h (target_terminal_init): Move prototype to
5979 (target_terminal_inferior): Likewise.
5980 (target_terminal_ours): Likewise.
5981 * target/target.h (target_terminal_init): New prototype, moved
5983 (target_terminal_inferior): Likewise.
5984 (target_terminal_ours): Likewise.
5985 * utils.c (gdb_flush_out_err): New function.
5987 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5989 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5990 * common/common-gdbthread.h: New file, with parts from
5992 * gdbthread.h: Include "common-gdbthread.h".
5993 (switch_to_thread): Moved to "common/common-gdbthread.h".
5995 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5997 * Makefile.in (SFILES): Add "common/job-control.c".
5998 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5999 (COMMON_OBS): Add "job-control.o".
6000 * common/job-control.c: New file, with contents from
6002 * common/job-control.h: New file, with contents from "terminal.h".
6003 * fork-child.c: Include "job-control.h".
6004 * inflow.c: Include "job-control.h".
6005 (gdb_setpgid): Move to "common/common-inflow.c".
6006 (_initialize_inflow): Move setting of "job_control" to
6007 "handle_job_control".
6008 * terminal.h (job_control): Moved to "common/common-terminal.h".
6009 (gdb_setpgid): Likewise.
6010 * top.c: Include "job_control.h".
6011 * utils.c: Likewise.
6012 (job_control): Moved to "job-control.c".
6014 2017-06-07 Pedro Alves <palves@redhat.com>
6016 * Makefile.in (SFILES): Add gdb_regex.c.
6017 (COMMON_OBS): Add gdb_regex.o.
6018 * ada-lang.c (ada_add_standard_exceptions)
6019 (ada_add_exceptions_from_frame, name_matches_regex)
6020 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6021 parameter type to compiled_regex. Adjust.
6022 (ada_exceptions_list): Use compiled_regex.
6023 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6024 std::unique_ptr<compiled_regex>.
6025 (exception_catchpoint::~exception_catchpoint): Remove regfree
6027 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6028 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6029 * breakpoint.c (solib_catchpoint::compiled): Now a
6030 std::unique_ptr<compiled_regex>.
6031 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6032 (check_status_catch_solib): Adjust to use compiled_regex.
6033 (add_solib_catchpoint): Adjust to use compiled_regex.
6034 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6035 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6036 compiled_regex reference. Adjust to use it.
6037 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6038 declaration. Include "gdb_regex.h".
6039 (apropos_cmd): Change regex parameter to compiled_regex reference.
6040 * gdb_regex.c: New file.
6041 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6043 (class compiled_regex): New.
6044 * linux-tdep.c: Include "common/gdb_optional.h".
6045 (struct mapping_regexes): New, factored out from
6046 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6047 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6048 gdb::optional and remove cleanups. Adjust to compiled_regex.
6049 * probe.c: Include "common/gdb_optional.h".
6050 (collect_probes): Use compiled_regex and gdb::optional and remove
6052 * skip.c: Include "common/gdb_optional.h".
6053 (skiplist_entry::compiled_function_regexp): Now a
6054 gdb::optional<compiled_regex>.
6055 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6056 (free_skiplist_entry): Remove regfree call.
6057 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6058 compiled_regex and gdb::optional.
6059 * symtab.c: Include "common/gdb_optional.h".
6060 (search_symbols): Use compiled_regex and gdb::optional.
6061 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6062 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6065 2017-06-07 Alan Hayward <alan.hayward@arm.com>
6067 * regcache.c (regcache::save): Avoid buffer use.
6068 (regcache::dump): Likewise.
6070 2017-06-07 Alan Hayward <alan.hayward@arm.com>
6072 * sh-tdep.c (sh_pseudo_register_read): Remove
6074 (sh_pseudo_register_write): Likewise.
6075 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6076 (sh64_pseudo_register_write): Likewise
6078 2017-06-07 Alan Hayward <alan.hayward@arm.com>
6080 * aarch64-tdep.c (aarch64_store_return_value): Use
6082 (aarch64_pseudo_read_value): Likewise.
6083 (aarch64_pseudo_write): Likewise.
6085 2017-06-06 Yao Qi <yao.qi@linaro.org>
6087 * regformats/regdef.h (set_register_cache): Remove the
6090 2017-06-06 Alan Hayward <alan.hayward@arm.com>
6092 * frame.c (frame_unwind_register_signed): Use
6093 frame_unwind_register_value.
6095 2017-06-06 Pedro Alves <palves@redhat.com>
6097 PR breakpoints/21553
6098 * breakpoint.c (create_breakpoints_sal_default)
6099 (init_breakpoint_sal, create_breakpoint_sal): Use
6100 gdb::unique_xmalloc_ptr for string parameters.
6101 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6102 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6103 (base_breakpoint_create_breakpoints_sal)
6104 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6105 (strace_marker_create_breakpoints_sal)
6106 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6108 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6109 gdb::unique_xmalloc_ptr for string parameters.
6110 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6113 2017-06-06 Alan Hayward <alan.hayward@arm.com>
6115 * alpha-tdep.c (alpha_register_to_value): Use
6116 get_frame_register_value.
6117 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6119 2017-06-06 Alan Hayward <alan.hayward@arm.com>
6121 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6122 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6123 (ia64_value_to_register): Likewise.
6124 (ia64_extract_return_value): Likewise.
6125 (ia64_store_return_value): Likewise.
6126 (ia64_push_dummy_call): Likewise.
6128 2017-06-04 Joel Brobecker <brobecker@adacore.com>
6132 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6134 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6136 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6138 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6140 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6142 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6144 * event-loop.c (poll_timers): Unallocate timer using delete
6147 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6149 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6150 (struct breakpoint) <~breakpoint>: New.
6151 (struct watchpoint): Inherit from breakpoint.
6154 (struct tracepoint): Inherit from breakpoint.
6156 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6157 (struct longjmp_breakpoint): Inherit from breakpoint.
6158 <~longjmp_breakpoint>: New.
6160 (new_breakpoint_from_type): Remove casts.
6161 (watchpoint_in_thread_scope): Remove reference to base field.
6162 (watchpoint_del_at_next_stop): Likewise.
6163 (update_watchpoint): Likewise.
6164 (watchpoint_check): Likewise.
6165 (bpstat_check_watchpoint): Likewise.
6166 (set_longjmp_breakpoint): Likewise.
6167 (struct fork_catchpoint): Inherit from breakpoint.
6169 (struct solib_catchpoint): Inherit from breakpoint.
6170 <~solib_catchpoint>: New.
6172 (dtor_catch_solib): Change to ...
6173 (solib_catchpoint::~solib_catchpoint): ... this.
6174 (breakpoint_hit_catch_solib): Remove reference to base field.
6175 (add_solib_catchpoint): Likewise.
6176 (create_fork_vfork_event_catchpoint): Likewise.
6177 (struct exec_catchpoint): Inherit from breakpoint.
6178 <~exec_catchpoint>: New.
6180 (dtor_catch_exec): Change to ...
6181 (exec_catchpoint::~exec_catchpoint): ... this.
6182 (dtor_watchpoint): Change to ...
6183 (watchpoint::~watchpoint): ... this.
6184 (watch_command_1): Remove reference to base field.
6185 (catch_exec_command_1): Likewise.
6186 (base_breakpoint_dtor): Change to ...
6187 (breakpoint::~breakpoint): ... this.
6188 (base_breakpoint_ops): Remove dtor field value.
6189 (longjmp_bkpt_dtor): Change to ...
6190 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6191 (strace_marker_create_breakpoints_sal): Remove reference to base
6193 (delete_breakpoint): Don't manually call breakpoint destructor.
6194 (create_tracepoint_from_upload): Remove reference to base field.
6195 (trace_pass_set_count): Likewise.
6196 (initialize_breakpoint_ops): Don't initialize
6197 momentary_breakpoint_ops, don't set dtors.
6198 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6199 <~ada_catchpoint>: New.
6201 (create_excep_cond_exprs): Remove reference to base field.
6202 (dtor_exception): Change to ...
6203 (ada_catchpoint::~ada_catchpoint): ... this.
6204 (dtor_catch_exception): Remove.
6205 (dtor_catch_exception_unhandled): Remove.
6206 (dtor_catch_assert): Remove.
6207 (create_ada_exception_catchpoint): Remove reference to base
6209 (initialize_ada_catchpoint_ops): Don't set dtors.
6210 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6212 <~signal_catchpoint>: New.
6214 (signal_catchpoint_dtor): Change to ...
6215 (signal_catchpoint::~signal_catchpoint): ... this.
6216 (create_signal_catchpoint): Remove reference to base field.
6217 (initialize_signal_catchpoint_ops): Don't set dtor.
6218 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6220 <~syscall_catchpoint>: New.
6222 (dtor_catch_syscall): Change to ...
6223 (syscall_catchpoint::~syscall_catchpoint): ... this.
6224 (create_syscall_event_catchpoint): Remove reference to base
6226 (initialize_syscall_catchpoint_ops): Don't set dtor.
6227 * break-catch-throw.c (struct exception_catchpoint): Inherit
6229 <~exception_catchpoint>: New.
6231 (dtor_exception_catchpoint): Change to ...
6232 (exception_catchpoint::~exception_catchpoint): ... this.
6233 (handle_gnu_v3_exceptions): Remove reference to base field.
6234 (initialize_throw_catchpoint_ops): Don't set dtor.
6235 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6237 * remote.c (remote_get_tracepoint_status): Likewise.
6238 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6239 * tracefile.c (tracefile_fetch_registers): Likewise.
6240 * tracepoint.c (actions_command): Likewise.
6241 (validate_actionline): Likewise.
6242 (tfind_1): Likewise.
6243 (get_traceframe_location): Likewise.
6244 (find_matching_tracepoint_location): Likewise.
6245 (parse_tracepoint_status): Likewise.
6246 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6248 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6250 * breakpoint.c (struct longjmp_breakpoint): New struct.
6251 (is_tracepoint_type): Change return type to bool.
6252 (is_longjmp_type): New function.
6253 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6254 (set_raw_breakpoint_without_location): Use
6255 new_breakpoint_from_type.
6256 (set_raw_breakpoint): Likewise.
6258 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6260 * breakpoint.c (new_breakpoint_from_type): New function.
6261 (create_breakpoint_sal): Use new_breakpoint_from_type and
6263 (create_breakpoint): Likewise.
6265 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6267 * memattr.c (mem_info_command): Rename to ...
6268 (info_mem_command): ... this.
6269 (mem_enable_command): Rename to ...
6270 (enable_mem_command): ... this.
6271 (mem_disable_command): Rename to ...
6272 (disable_mem_command): ... this.
6273 (mem_delete_command): Rename to ...
6274 (delete_mem_command): ... this.
6275 (_initialize_mem): Adjust function names.
6277 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6279 * btrace.c (handle_pt_insn_events): New.
6280 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6281 STATUS. Split into this and ...
6282 (handle_pt_insn_event_flags): ... this.
6284 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6286 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6287 and struct pt_insn.resynced.
6288 * configure: Regenerated.
6289 * config.in: Regenerated.
6291 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6293 * btrace.c (ftrace_find_call_by_number): New function.
6294 (ftrace_new_function): Store objects, not pointers.
6295 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6296 ftrace_new_gap, ftrace_update_function,
6297 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6298 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6299 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6300 btrace_ends_with_single_insn, btrace_call_get): Account for
6301 btrace_thread_info::functions now storing objects.
6302 * btrace.h (struct btrace_thread_info): Add constructor.
6303 (struct btrace_thread_info) <functions>: Make std::vector.
6304 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6305 Initialize with default values.
6306 * record-btrace.c (record_btrace_frame_sniffer): Account for
6307 btrace_thread_info::functions now storing objects.
6309 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6311 * btrace.c: Remove typedef bfun_s.
6312 (ftrace_new_gap): Directly add gaps to the list of gaps.
6313 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6314 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6315 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6318 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6320 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6321 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6322 with btrace_thread_info::next_segment and
6323 btrace_thread_info::prev_segment.
6324 * btrace.h: Remove struct btrace_func_link.
6325 (struct btrace_function): Replace pair of function segment pointers
6326 with pair of indices.
6327 * python/py-record-btrace.c (btpy_call_prev_sibling,
6328 btpy_call_next_sibling): Replace references to
6329 btrace_thread_info::segment with btrace_thread_info::next_segment and
6330 btrace_thread_info::prev_segment.
6331 * record-btrace.c (record_btrace_frame_this_id): Use
6332 btrace_find_call_by_number.
6334 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6336 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6337 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6338 btrace_insn_next, btrace_insn_prev): Remove references to
6339 btrace_thread_info::flow.
6340 * btrace.h (struct btrace_function): Remove FLOW.
6342 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6344 * btrace.c (ftrace_find_call_by_number): New function.
6345 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6346 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6347 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6348 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6350 * btrace.h (struct btrace_function): Turn UP into an index.
6351 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6353 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6354 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6355 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6357 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6359 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6360 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6361 ftrace_update_function, ftrace_compute_global_level_offset,
6362 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6363 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6364 btrace_insn_end, btrace_is_empty): Remove references to
6365 btrace_thread_info::begin and btrace_thread_info::end.
6366 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6367 (struct btrace_thread_info) <functions>: Adjust comment.
6368 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6369 btrace_thread_info::begin.
6371 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6373 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6374 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6375 ftrace_update_function): Remove arguments that implicitly were always
6377 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6378 Don't pass BTINFO->END.
6380 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6382 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6383 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6384 btrace_find_insn_by_number): Replace function segment pointer with
6386 (btrace_insn_cmp): Simplify.
6387 * btrace.h: (struct btrace_insn_iterator) Rename index to
6388 insn_index. Replace function segment pointer with index into function
6390 * record-btrace.c (record_btrace_call_history): Replace function
6391 segment pointer use with index.
6392 (record_btrace_frame_sniffer): Retrieve function call segment through
6394 (record_btrace_set_replay): Remove defunc't safety check.
6396 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6398 * btrace.c (btrace_ends_with_single_insn): New function.
6399 (btrace_call_get, btrace_call_number, btrace_call_begin,
6400 btrace_call_end, btrace_call_next, btrace_call_prev,
6401 btrace_find_call_by_number): Use index into call segment vector
6403 (btrace_call_cmp): Simplify.
6404 * btrace.h (struct btrace_call_iterator): Replace function call segment
6405 pointer with index into vector.
6406 * record-btrace.c (record_btrace_call_history): Use index instead of
6409 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6411 * btrace.c (btrace_insn_begin, btrace_insn_end,
6412 btrace_find_insn_by_number): Add btinfo to iterator.
6413 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6415 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6417 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6418 and save pointers directly.
6419 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6420 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6421 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6422 changed signature of functions.
6423 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6424 (btrace_fetch): Remove code that adds btrace_function pointers to
6425 vector of btrace_functions.
6426 (btrace_clear): Simplify freeing vector of btrace_functions.
6428 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6430 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6431 Replace VEC_* with std::vector functions.
6432 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6433 (struct btrace_thread_info)<functions>: Change type to std::vector.
6435 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6437 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6438 "Removed targets and native configurations" up. Merge duplicate
6439 "New commands" sub-sections. Add "New options" sub-sections.
6441 2017-05-26 Alan Hayward <alan.hayward@arm.com>
6443 * defs.h (copy_integer_to_size): New declaration.
6444 * findvar.c (copy_integer_to_size): New function.
6445 (do_cint_test): New selftest function.
6446 (copy_integer_to_size_test): Likewise.
6447 (_initialize_findvar): Likewise.
6448 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6449 (mips_fbsd_collect_reg): Use raw_collect_integer.
6450 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6451 (mips64_fill_gregset): Use raw_collect_integer
6452 (mips64_fill_fpregset): Use raw_supply_integer.
6453 * regcache.c (regcache::raw_supply_integer): New function.
6454 (regcache::raw_collect_integer): Likewise.
6455 * regcache.h: (regcache::raw_supply_integer): New declaration.
6456 (regcache::raw_collect_integer): Likewise.
6458 2017-05-24 Yao Qi <yao.qi@linaro.org>
6460 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6461 (COMMON_OBS): Add gdbarch-selftests.o.
6462 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6463 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6464 * gdbarch-selftests.c: New file.
6465 * regcache.h (regcache) <~regcache>: Mark it virtual if
6467 <raw_write>: Likewise.
6469 2017-05-24 Yao Qi <yao.qi@linaro.org>
6471 * regcache.c (current_regcache): Change it to
6472 regcache::current_regcache.
6473 (regcache_observer_target_changed): Update.
6474 (regcache_thread_ptid_changed): Make it a regcache static
6476 (regcache_thread_ptid_changed): Update.
6477 (class regcache_access): New.
6478 (current_regcache_test): Update.
6479 (_initialize_regcache): Update.
6480 * regcache.h: Include forward_list.
6481 (regcache): Declare regcache_thread_ptid_changed and declare
6482 registers_changed_ptid as friend.
6484 2017-05-24 Yao Qi <yao.qi@linaro.org>
6486 * i387-tdep.c (i387_register_to_value): Use register_size
6487 instead of TYPE_LENGTH.
6488 * m68k-tdep.c (m68k_register_to_value): Likewise.
6490 2017-05-24 Yao Qi <yao.qi@linaro.org>
6492 * i387-tdep.c (i387_convert_register_p): Return false if type
6493 code isn't TYPE_CODE_FLT.
6495 2017-05-24 Yao Qi <yao.qi@linaro.org>
6497 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6499 (alpha_register_to_value): Remove type length check.
6500 (alpha_value_to_register): Likewise.
6502 2017-05-24 Yao Qi <yao.qi@linaro.org>
6504 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6507 2017-05-24 Yao Qi <yao.qi@linaro.org>
6509 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6510 TYPE_CODE_FLT or not.
6512 2017-05-24 Yao Qi <yao.qi@linaro.org>
6514 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6515 * avr-tdep.c (avr_gdbarch_init): Likewise.
6516 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6517 * cris-tdep.c (cris_gdbarch_init): Likewise.
6518 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6519 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6520 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6521 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6522 * mep-tdep.c (mep_gdbarch_init): Likewise.
6523 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6524 * mips-tdep.c (mips_gdbarch_init): Likewise.
6525 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6526 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6527 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6528 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6529 * v850-tdep.c (v850_gdbarch_init): Likewise.
6531 2017-05-24 Yao Qi <yao.qi@linaro.org>
6533 * selftest-arch.c (tests_with_arch): Call registers_changed
6534 and reinit_frame_cache.
6535 * selftest.c (run_self_tests): Likewise.
6537 2017-05-24 Yao Qi <yao.qi@linaro.org>
6539 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6540 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6542 2017-05-24 Yao Qi <yao.qi@linaro.org>
6544 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6545 set_gdbarch_print_insn.
6547 2017-05-24 Yao Qi <yao.qi@linaro.org>
6549 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6550 set_gdbarch_print_insn.
6552 2017-05-24 Yao Qi <yao.qi@linaro.org>
6554 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6555 set_gdbarch_print_insn.
6556 * arc-tdep.c (arc_gdbarch_init): Likewise.
6557 * arch-utils.c: include dis-asm.h.
6558 (default_print_insn): New function.
6559 * arch-utils.h (default_print_insn): Declare.
6560 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6561 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6562 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6563 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6564 * frv-tdep.c (frv_gdbarch_init): Likewise.
6565 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6566 * gdbarch.sh (print_insn): Use default_print_insn.
6567 * gdbarch.c: Regenerated.
6568 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6569 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6570 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6571 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6572 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6573 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6574 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6575 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6576 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6577 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6578 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6579 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6580 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6581 * mt-tdep.c (mt_gdbarch_init): Likewise.
6582 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6583 * nios2-tdep.c (nios2_print_insn): Remove.
6584 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6585 * rx-tdep.c (rx_gdbarch_init): Likewise.
6586 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6587 * score-tdep.c (score_print_insn): Remove.
6588 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6589 * sh-tdep.c (sh_gdbarch_init): Likewise.
6590 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6591 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6592 * tic6x-tdep.c (tic6x_print_insn): Remove.
6593 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6594 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6595 * v850-tdep.c (v850_gdbarch_init): Likewise.
6596 * vax-tdep.c (vax_gdbarch_init): Likewise.
6597 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6598 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6600 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6602 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6603 (MIPS_FP0_REGNUM): Remove.
6604 (MIPS_FSR_REGNUM): Remove.
6605 (mips_fbsd_supply_fpregs): Use mips_regnum.
6606 (mips_fbsd_supply_gregs): Likewise.
6607 (mips_fbsd_collect_fpregs): Likewise.
6608 (mips_fbsd_collect_gregs): Likewise.
6610 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6612 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6613 (getpfpregs_supplies): New function.
6614 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6616 (mips_fbsd_store_inferior_registers): Likewise.
6618 2017-05-22 Pedro Alves <palves@redhat.com>
6620 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6623 2017-05-22 Alan Hayward <alan.hayward@arm.com>
6625 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6626 (store_register): Likewise.
6627 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6628 (get_decimal_float_return_value): Likewise.
6629 (do_ppc_sysv_return_value): Likewise.
6630 (ppc64_sysv_abi_push_integer): Likewise.
6631 (ppc64_sysv_abi_push_freg): Likewise.
6632 (ppc64_sysv_abi_return_value_base): Likewise.
6633 (ppc64_sysv_abi_return_value): Likewise.
6634 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6635 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6636 * rs6000-nat.c: Likewise.
6637 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6638 (rs6000_value_to_register): Likewise.
6639 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6641 2017-05-21 Tom Tromey <tom@tromey.com>
6644 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6645 arrays as "[T]", not "[T; ]".
6647 2017-05-19 Tom Tromey <tom@tromey.com>
6650 * rust-lang.c (exp_descriptor_rust): New function.
6651 (rust_language_defn): Use it.
6652 * p-lang.c (pascal_language_defn): Update.
6653 * opencl-lang.c (opencl_language_defn): Update.
6654 * objc-lang.c (objc_language_defn): Update.
6655 * m2-lang.c (m2_language_defn): Update.
6656 * language.h (struct language_defn)
6657 <la_watch_location_expression>: New member.
6658 * language.c (unknown_language_defn, auto_language_defn)
6659 (local_language_defn): Update.
6660 * go-lang.c (go_language_defn): Update.
6661 * f-lang.c (f_language_defn): Update.
6662 * d-lang.c (d_language_defn): Update.
6663 * c-lang.h (c_watch_location_expression): Declare.
6664 * c-lang.c (c_watch_location_expression): New function.
6665 (c_language_defn, cplus_language_defn, asm_language_defn)
6666 (minimal_language_defn): Use it.
6667 * breakpoint.c (watch_command_1): Call
6668 la_watch_location_expression.
6669 * ada-lang.c (ada_language_defn): Update.
6671 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6674 * gdb_curses.h (NOMACROS): Define.
6675 (NCURSES_NOMACROS): Define.
6677 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6680 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6682 * tui/tui-wingeneral.c (box_win): Likewise.
6683 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6684 (tui_show_source_line): Likewise.
6685 (tui_show_exec_info_content): Likewise.
6687 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6689 * sparc-tdep.c (sparc_structure_return_p)
6690 (sparc_arg_on_registers_p): New functions.
6691 (sparc32_store_arguments): Use them.
6692 * sparc64-tdep.c (sparc64_16_byte_align_p)
6693 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6694 Handle TYPE_CODE_ARRAY.
6696 2017-05-17 Yao Qi <yao.qi@linaro.org>
6698 * cli/cli-decode.c (add_alias_cmd): New function.
6699 * command.h (add_alias_cmd): Declare.
6700 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6701 instead call add_alias_cmd.
6703 2017-05-17 Pedro Alves <palves@redhat.com>
6705 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6706 (nat_makefile_frag): ... this. All references updated.
6707 * configure.ac: Likewise.
6708 * configure.nat: Likewise. Enhance comments.
6709 * configure: Regenerate.
6711 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6713 * procfs.c (procfs_create_inferior): Change prototype to match
6716 2017-05-13 Eli Zaretskii <eliz@gnu.org>
6718 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6719 C++ compiler warning.
6721 2017-05-12 Tom Tromey <tom@tromey.com>
6724 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6725 recurse, just call value_struct_elt directly.
6727 2017-05-12 Tom Tromey <tom@tromey.com>
6729 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6730 OP_RUST_ARRAY>: Fix.
6732 2017-05-12 Tom Tromey <tom@tromey.com>
6734 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6736 2017-05-09 Yao Qi <yao.qi@linaro.org>
6738 * regcache.c: Include <forward_list>.
6739 (struct regcache_list): Remove.
6740 (current_regcache): Update.
6741 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6742 (regcache_thread_ptid_changed): Likewise.
6743 (registers_changed_ptid): Likewise.
6744 (current_regcache_size): Likewise.
6746 2017-05-09 Yao Qi <yao.qi@linaro.org>
6748 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6749 (current_regcache_size): New function.
6750 (current_regcache_test): New function.
6751 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6753 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6755 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6756 (print_gp_register_row): Use get_frame_register_value.
6758 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6760 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6761 (mips_supply_fpregset): Likewise.
6762 (mips64_supply_gregset): Likewise.
6764 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6766 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6767 regcache->raw_supply_zeroed.
6769 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6771 * configure.nat: Rearrange 'case' statements to match
6774 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6776 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6777 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6778 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6779 "@nat_extra_makefile_frag@".
6780 (Makefile): Remove dependency on "@frags@".
6781 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6782 (data-directory/Makefile): Likewise.
6783 * config/aarch64/linux.mh: Deleted; moved contents to
6784 "gdb/configure.nat".
6785 * config/alpha/alpha-linux.mh: Likewise.
6786 * config/alpha/nbsd.mh: Likewise.
6787 * config/arm/linux.mh: Likewise.
6788 * config/arm/nbsdelf.mh: Likewise.
6789 * config/i386/cygwin.mh: Likewise.
6790 * config/i386/cygwin64.mh: Likewise.
6791 * config/i386/darwin.mh: Likewise.
6792 * config/i386/fbsd.mh: Likewise.
6793 * config/i386/fbsd64.mh: Likewise.
6794 * config/i386/go32.mh: Likewise.
6795 * config/i386/i386gnu.mh: Likewise.
6796 * config/i386/i386sol2.mh: Likewise.
6797 * config/i386/linux.mh: Likewise.
6798 * config/i386/linux64.mh: Likewise.
6799 * config/i386/mingw.mh: Likewise.
6800 * config/i386/mingw64.mh: Likewise.
6801 * config/i386/nbsd64.mh: Likewise.
6802 * config/i386/nbsdelf.mh: Likewise.
6803 * config/i386/nto.mh: Likewise.
6804 * config/i386/obsd.mh: Likewise.
6805 * config/i386/obsd64.mh: Likewise.
6806 * config/i386/sol2-64.mh: Likewise.
6807 * config/ia64/linux.mh: Likewise.
6808 * config/m32r/linux.mh: Likewise.
6809 * config/m68k/linux.mh: Likewise.
6810 * config/m68k/nbsdelf.mh: Likewise.
6811 * config/m68k/obsd.mh: Likewise.
6812 * config/m88k/obsd.mh: Likewise.
6813 * config/mips/fbsd.mh: Likewise.
6814 * config/mips/linux.mh: Likewise.
6815 * config/mips/nbsd.mh: Likewise.
6816 * config/mips/obsd64.mh: Likewise.
6817 * config/pa/linux.mh: Likewise.
6818 * config/pa/nbsd.mh: Likewise.
6819 * config/pa/obsd.mh: Likewise.
6820 * config/powerpc/aix.mh: Likewise.
6821 * config/powerpc/fbsd.mh: Likewise.
6822 * config/powerpc/linux.mh: Likewise.
6823 * config/powerpc/nbsd.mh: Likewise.
6824 * config/powerpc/obsd.mh: Likewise.
6825 * config/powerpc/ppc64-linux.mh: Likewise.
6826 * config/powerpc/spu-linux.mh: Likewise.
6827 * config/s390/linux.mh: Likewise.
6828 * config/sh/nbsd.mh: Likewise.
6829 * config/sparc/fbsd.mh: Likewise.
6830 * config/sparc/linux.mh: Likewise.
6831 * config/sparc/linux64.mh: Likewise.
6832 * config/sparc/nbsd64.mh: Likewise.
6833 * config/sparc/nbsdelf.mh: Likewise.
6834 * config/sparc/obsd64.mh: Likewise.
6835 * config/sparc/sol2.mh: Likewise.
6836 * config/tilegx/linux.mh: Likewise.
6837 * config/vax/nbsdelf.mh: Likewise.
6838 * config/vax/obsd.mh: Likewise.
6839 * config/xtensa/linux.mh: Likewise.
6840 * config/i386/i386gnu.mn: New file, with excerpts from
6841 "config/i386/i386gnu.mh".
6842 * configure: Regenerate.
6843 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6844 *.mh files under "gdb/config".
6845 * configure.nat: New file, with contents from the
6846 "gdb/config/*/*.mh" files.
6848 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6850 * btrace.c (btrace_clear): Free insn vector.
6852 2017-05-05 Pedro Alves <palves@redhat.com>
6854 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6855 * configure: Regenerate.
6857 2017-05-04 Pedro Alves <palves@redhat.com>
6859 * Makefile.in (SFILES): Add progspace-and-thread.c.
6860 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6861 (COMMON_OBS): Add progspace-and-thread.o.
6862 * breakpoint.c: Include "progspace-and-thread.h".
6863 (update_inserted_breakpoint_locations)
6864 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6865 Use scoped_restore_current_pspace_and_thread.
6866 (create_std_terminate_master_breakpoint): Use
6867 scoped_restore_current_program_space.
6868 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6869 (print_breakpoint_location): Use
6870 scoped_restore_current_program_space.
6871 (bp_loc_is_permanent): Use
6872 scoped_restore_current_pspace_and_thread.
6873 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6874 (download_tracepoint_locations): Use
6875 scoped_restore_current_pspace_and_thread.
6876 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6877 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6878 (enum step_over_calls_kind): Moved from inferior.h.
6879 (class scoped_restore_current_thread): New class.
6880 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6882 (scoped_restore_current_thread): New class.
6883 * infcmd.c: Include "common/gdb_optional.h".
6884 (continue_1, proceed_after_attach): Use
6885 scoped_restore_current_thread.
6886 (notice_new_inferior): Use scoped_restore_current_thread.
6887 * inferior.c: Include "progspace-and-thread.h".
6888 (restore_inferior, save_current_inferior): Delete.
6889 (add_inferior_command, clone_inferior_command): Use
6890 scoped_restore_current_pspace_and_thread.
6891 * inferior.h (scoped_restore_current_inferior): New class.
6892 * infrun.c: Include "progspace-and-thread.h" and
6893 "common/gdb_optional.h".
6894 (follow_fork_inferior): Use
6895 scoped_restore_current_pspace_and_thread.
6896 (scoped_restore_exited_inferior): New class.
6897 (handle_vfork_child_exec_or_exit): Use
6898 scoped_restore_exited_inferior,
6899 scoped_restore_current_pspace_and_thread,
6900 scoped_restore_current_thread and scoped_restore.
6901 (fetch_inferior_event): Use scoped_restore_current_thread.
6902 * linespec.c (decode_line_full, decode_line_1): Use
6903 scoped_restore_current_program_space.
6904 * mi/mi-main.c: Include "progspace-and-thread.h".
6905 (exec_continue): Use scoped_restore_current_thread.
6906 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6907 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6908 * proc-service.c (ps_pglobal_lookup): Use
6909 scoped_restore_current_program_space.
6910 * progspace-and-thread.c: New file.
6911 * progspace-and-thread.h: New file.
6912 * progspace.c (release_program_space, clone_program_space): Use
6913 scoped_restore_current_program_space.
6914 (restore_program_space, save_current_program_space)
6915 (save_current_space_and_thread): Delete.
6916 (switch_to_program_space_and_thread): Moved to
6917 progspace-and-thread.c.
6918 * progspace.h (save_current_program_space)
6919 (save_current_space_and_thread): Delete declarations.
6920 (scoped_restore_current_program_space): New class.
6921 * remote.c (remote_btrace_maybe_reopen): Use
6922 scoped_restore_current_thread.
6923 * symtab.c: Include "progspace-and-thread.h".
6924 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6925 * thread.c (print_thread_info_1): Use
6926 scoped_restore_current_thread.
6927 (struct current_thread_cleanup): Delete.
6928 (do_restore_current_thread_cleanup)
6929 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6930 (scoped_restore_current_thread::~scoped_restore_current_thread):
6932 (make_cleanup_restore_current_thread): Rename/convert to ...
6933 (scoped_restore_current_thread::scoped_restore_current_thread):
6935 (thread_apply_all_command): Use scoped_restore_current_thread.
6936 (thread_apply_command): Use scoped_restore_current_thread.
6937 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6938 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6940 2017-05-04 Pedro Alves <palves@redhat.com>
6942 * thread.c (make_cleanup_restore_current_thread): Move
6943 find_thread_ptid call before the is_stopped call. Assert that the
6944 thread is found. Replace is_stopped call by checking the thread's
6945 state directly. Remove unnecessary NULL-thread check.
6947 2017-05-04 Pedro Alves <palves@redhat.com>
6949 * corelow.c (thread_section_name): New class.
6950 (get_core_register_section, get_core_siginfo): Use it.
6952 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6954 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6955 (get_core_register_section): Remove xfree of NULL pointer.
6957 2017-05-03 Alan Hayward <alan.hayward@arm.com>
6959 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6960 * regcache.c (regcache::raw_supply_zeroed): New function.
6961 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6963 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6965 * gdbarch.sh: Remove commented out definition of
6967 * gdbarch.h: Re-generate.
6969 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6971 * configure: Regenerate.
6973 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6975 * solib-target.c (solib_target_relocate_section_addresses):
6976 Remove num_section_bases, num_bases, segment_bases variables.
6978 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6980 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6982 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6984 * solib-target.c: Include <vector>
6985 (struct lm_info_target) <~lm_info_target>: Remove.
6986 <segment_bases, section_bases>: Change type to
6987 std::vector<CORE_ADDR>.
6988 (library_list_start_segment, library_list_start_section,
6989 library_list_end_library,
6990 solib_target_relocate_section_addresses): Adjust.
6992 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6994 * gdbarch.sh (software_single_step): Change return type to
6995 std::vector<CORE_ADDR>.
6996 * gdbarch.c, gdbarch.h: Re-generate.
6997 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6999 (arm_deal_with_atomic_sequence_raw): Adjust.
7000 (thumb_get_next_pcs_raw): Adjust.
7001 (arm_get_next_pcs_raw): Adjust.
7002 (arm_get_next_pcs): Adjust.
7003 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7004 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7005 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7006 (alpha_software_single_step): Adjust.
7007 * alpha-tdep.h (alpha_software_single_step): Adjust.
7008 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7009 * arm-tdep.c (arm_software_single_step): Adjust.
7010 (arm_breakpoint_kind_from_current_state): Adjust.
7011 * arm-tdep.h (arm_software_single_step): Adjust.
7012 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7013 * cris-tdep.c (cris_software_single_step): Adjust.
7014 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7015 (micromips_deal_with_atomic_sequence): Adjust.
7016 (deal_with_atomic_sequence): Adjust.
7017 (mips_software_single_step): Adjust.
7018 * mips-tdep.h (mips_software_single_step): Adjust.
7019 * moxie-tdep.c (moxie_software_single_step): Adjust.
7020 * nios2-tdep.c (nios2_software_single_step): Adjust.
7021 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7022 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7023 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7024 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7025 * sparc-tdep.c (sparc_software_single_step): Adjust.
7026 * spu-tdep.c (spu_software_single_step): Adjust.
7027 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7029 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7031 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7032 * gdbarch.h: Re-generate.
7034 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7036 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7037 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7038 * python/py-instruction.c, python/py-instruction.h: New file.
7039 * python/py-record.c: Add py-instruction.h include.
7040 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7041 gdb.RecordInstruction.
7042 * python/python-internal.h: Add gdbpy_initialize_instruction
7044 * python/python.c (do_start_initialization): Add
7045 gdbpy_initialize_instruction.
7047 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7049 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7051 (btrace_func_from_recpy_func): New function.
7052 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7053 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7054 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7055 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7056 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7057 Also, use new helper functions.
7058 (btpy_list_item): Use new helper functions.
7059 (recpy_bt_function_call_history): Use new type name.
7060 (btpy_call_getset): Remove.
7061 (gdbpy_initialize_btrace): Remove code to initialize
7062 gdb.BtraceFunctionCall.
7063 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7064 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7065 recpy_bt_func_prev, recpy_bt_func_next): New export.
7066 * python/py-record.c (recpy_func_type): New static object.
7067 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7068 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7069 recpy_func_next): New function.
7070 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7071 (recpy_func_getset): New static object.
7072 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7073 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7075 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7077 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7078 (btpy_object, btpy_insn_type, btpy_new): Remove.
7079 (btpy_list_object): Use gdb.RecordInstruction type instead of
7080 gdb.BtraceInstruction type.
7081 (btrace_insn_from_recpy_insn): New function.
7082 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7084 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7085 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7086 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7087 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7088 instead of btpy_object.
7089 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7090 btpy_insn_data, btpy_insn_decode): Rename to ...
7091 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7092 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7093 recpy_bt_insn_decode): This. Also, use new helper functions.
7094 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7096 (btpy_insn_getset): Remove.
7097 (gdbpy_initialize_btrace): Remove code to initialize
7098 gdb.BtraceInstruction. Use recpy_element_object.
7099 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7100 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7101 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7102 * python/py-record.c (recpy_insn_type): New static object.
7103 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7104 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7105 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7107 (recpy_insn_getset): New static object.
7108 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7109 * python/py-record.h (recpy_element_object): New typedef.
7110 (recpy_insn_type, recpy_insn_new): New export.
7112 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7114 * py-record-btrace.c (btpy_insn_new): Removed.
7115 (btpy_insn_or_gap_new): New function.
7116 (btpy_insn_error): Removed.
7117 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7118 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7119 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7120 btpy_insn_or_gap_new instead of btpy_insn_new.
7121 (btpy_insn_getset): Remove btpy_insn_error.
7122 * py-record.c (recpy_gap_type): New static object.
7123 (recpy_gap_object): New typedef.
7124 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7125 recpy_gap_reason_string): New function.
7126 (recpy_gap_getset): New static object.
7127 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7128 * py-record.h (recpy_gap_new): New export.
7130 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7132 * python/py-record.c (recpy_ptid): Remove.
7133 (recpy_record_getset): Remove recpy_ptid.
7135 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7137 * btrace.c (btrace_fetch): Set inferior_ptid.
7138 * python/py-record-btrace.c: Add "py-record.h" include.
7139 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7140 recpy_bt_end, recpy_bt_instruction_history,
7141 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7142 in gdb.Record object instead of current ptid.
7143 * python/py-record.c: Include new "py-record.h" file.
7144 (recpy_record_object): Moved to py-record.h.
7145 * python/py-record.h: New file.
7147 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7149 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7150 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7153 2017-05-01 Joel Brobecker <brobecker@adacore.com>
7155 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7156 the past maintainers section.
7158 2017-04-28 Yao Qi <yao.qi@linaro.org>
7160 * infcmd.c (get_return_value): Use regcache ctor, and remove
7163 2017-04-28 Yao Qi <yao.qi@linaro.org>
7164 Pedro Alves <palves@redhat.com>
7166 * regcache.c (regcache::regcache): New tag dispatch ctor.
7167 (do_cooked_read): Moved above.
7168 (regcache_dup): Use the tag dispatch ctor..
7169 * regcache.h (regcache): Declare ctor, delete copy ctor and
7170 assignment operator, remove friend regcache_dup.
7172 2017-04-28 Yao Qi <yao.qi@linaro.org>
7174 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7175 call method save instead of regcache_cpy.
7176 * regcache.h (struct regcache): Make regcache_dup a friend.
7178 2017-04-28 Yao Qi <yao.qi@linaro.org>
7180 * regcache.c (struct regcache): Move to regcache.h
7181 (regcache::arch): New method.
7182 (regcache_get_ptid): Update.
7183 (get_regcache_arch): Call arch method.
7184 (get_regcache_aspace): Call method aspace.
7185 (register_buffer): Change it to method.
7186 (regcache_save): Change it to regcache::save.
7187 (regcache_restore): Likewise.
7188 (regcache_cpy_no_passthrough): Remove the declaration.
7189 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7190 (regcache_cpy_no_passthrough): Change it to method
7192 (regcache_register_status): Change it to method
7193 get_register_status.
7194 (regcache_invalidate): Change it to method invalidate.
7195 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7196 (regcache_raw_update): Change it to method raw_update.
7197 (regcache_raw_read): Likewise.
7198 (regcache_raw_read_signed): Likewise.
7199 (regcache_raw_read_unsigned): Likewise.
7200 (regcache_raw_write_signed): Likewise.
7201 (regcache_raw_write_unsigned): Likewise.
7202 (regcache_cooked_read): Likewise.
7203 (regcache_cooked_read_value): Likewise.
7204 (regcache_cooked_read_signed): Likewise.
7205 (regcache_cooked_read_unsigned): Likewise.
7206 (regcache_cooked_write_signed): Likewise.
7207 (regcache_cooked_write_unsigned): Likewise.
7208 (regcache_raw_set_cached_value): Likewise.
7209 (regcache_raw_write): Likewise.
7210 (regcache_cooked_write): Likewise.
7211 (regcache_xfer_part): Likewise.
7212 (regcache_raw_read_part): Likewise.
7213 (regcache_raw_write_part): Likewise.
7214 (regcache_cooked_read_part): Likewise.
7215 (regcache_cooked_write_part): Likewise.
7216 (regcache_raw_supply): Likewise.
7217 (regcache_raw_collect): Likewise.
7218 (regcache_transfer_regset): Likewise.
7219 (regcache_supply_regset): Likewise.
7220 (regcache_collect_regset): Likewise.
7221 (regcache_debug_print_register): Likewise.
7222 (enum regcache_dump_what): Move it to regcache.h.
7223 (regcache_dump): Change it to method dump.
7224 * regcache.h (enum regcache_dump_what): New.
7225 (class regcache): New.
7226 * target.c (target_fetch_registers): Call method
7227 debug_print_register.
7228 (target_store_registers): Likewise.
7230 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7232 * windows-nat.c (struct lm_info_windows): Initialize field.
7233 (windows_make_so): Allocate lm_info_windows with new.
7234 (windows_free_so): Free lm_info_windows with delete.
7236 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7238 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7239 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7241 (darwin_free_so): Free lm_info_darwin with delete.
7243 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7245 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7246 <l_addr_p>: Change type to bool.
7247 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7248 (svr4_free_so): Free lm_info_svr4 with delete.
7249 (svr4_copy_library_list): Replace memcpy with call to copy
7251 (library_list_start_library, svr4_default_sos): Allocate
7252 lm_info_svr4 with new.
7254 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7256 * solib-target.c (struct lm_info_target): Add destructor,
7258 <name>: Change type to std::string.
7259 (library_list_start_library): Allocate lm_info_target with new.
7260 (solib_target_free_library_list): Free lm_info_target with
7262 (solib_target_current_sos): Adapt to std::string.
7263 (solib_target_free_so): Free lm_info_target with delete.
7265 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7267 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7269 (frv_current_sos): Allocate lm_info_frv with new.
7270 (frv_relocate_main_executable): Free lm_info_frv with delete,
7272 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7274 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7276 * solib-frv.c (struct lm_info_frv): Fix indentation.
7278 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7280 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7282 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7283 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7284 and allocate with new.
7285 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7287 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7289 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7290 <filename, member_name>: Change type to std::string.
7291 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7292 (library_list_start_library): Allocate lm_info_aix with new.
7293 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7294 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7295 with copy constructor.
7297 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7299 * solist.h (struct lm_info): Remove.
7300 (struct lm_info_base): New class.
7301 (struct so_list) <lm_info>: Change type to lm_info_base *.
7302 * nto-tdep.c (struct lm_info): Remove.
7304 * solib-aix.c (struct lm_info): Rename to ...
7305 (struct lm_info_aix): ... this. Extend lm_info_base.
7306 (lm_info_p): Rename to ...
7307 (lm_info_aix_p): ... this, and adjust.
7308 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7309 solib_aix_parse_libraries, library_list_start_library,
7310 solib_aix_free_library_list, solib_aix_parse_libraries,
7311 solib_aix_get_library_list,
7312 solib_aix_relocate_section_addresses, solib_aix_free_so,
7313 solib_aix_get_section_offsets,
7314 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7316 (struct solib_aix_inferior_data) <library_list>: Adjust.
7317 * solib-darwin.c (struct lm_info): Rename to ...
7318 (struct lm_info_darwin): ... this. Extend lm_info_base.
7319 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7320 * solib-dsbt.c (struct lm_info): Rename to ...
7321 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7322 (struct dsbt_info) <main_executable_lm_info): Adjust.
7323 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7324 dsbt_relocate_section_addresses): Adjust.
7325 * solib-frv.c (struct lm_info): Rename to ...
7326 (struct lm_info_frv): ... this. Extend lm_info_base.
7327 (main_executable_lm_info): Adjust.
7328 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7329 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7330 find_canonical_descriptor_in_load_object,
7331 frv_fdpic_find_canonical_descriptor): Adjust.
7332 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7334 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7335 svr4_clear_so, svr4_copy_library_list,
7336 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7337 svr4_current_sos, svr4_fetch_objfile_link_map,
7338 solist_update_incremental): Adjust.
7339 * solib-svr4.h (struct lm_info_svr4): Move here from
7341 * solib-target.c (struct lm_info): Rename to ...
7342 (struct lm_info_target): ... this. Extend lm_info_base.
7343 (lm_info_p): Rename to ...
7344 (lm_info_target_p): ... this.
7345 (solib_target_parse_libraries, library_list_start_segment,
7346 library_list_start_section, library_list_start_library,
7347 library_list_end_library, solib_target_free_library_list,
7348 solib_target_current_sos, solib_target_free_so,
7349 solib_target_relocate_section_addresses): Adjust.
7350 * windows-nat.c (struct lm_info): Rename to ...
7351 (struct lm_info_windows): ... this. Extend lm_info_base.
7352 (windows_make_so, handle_load_dll, handle_unload_dll,
7353 windows_xfer_shared_libraries): Adjust.
7355 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7357 * solib-darwin.c (struct darwin_so_list): Remove.
7358 (darwin_current_sos): Allocate an so_list object instead of a
7359 darwin_so_list, separately allocate an lm_info object.
7360 (darwin_free_so): Free lm_info.
7362 2017-04-28 John Baldwin <jhb@FreeBSD.org>
7364 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7365 with fprintf_filtered.
7367 2017-04-28 Yao Qi <yao.qi@linaro.org>
7369 * regcache.c (regcache::regcache): New function.
7370 (regcache::~regcache): New function.
7371 (regcache_xmalloc_1): Remove.
7372 (regcache_xmalloc): Call new regcache.
7373 (regcache_xfree): Call delete regcache.
7374 (get_thread_arch_aspace_regcache): Call new regcache.
7376 2017-04-28 Yao Qi <yao.qi@linaro.org>
7378 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7379 lwp instead of ptid_get_lwp.
7381 2017-04-28 Yao Qi <yao.qi@linaro.org>
7383 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7384 lwp_info instead of getting from inferior_ptid.
7386 2017-04-27 Keith Seitz <keiths@redhat.com>
7388 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7389 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7390 (CV_CONVERSION_BADNESS): Define.
7391 (rank_one_type): Remove overly restrictive rvalue reference
7393 Add cv-qualifier checks and subranks for type equality.
7394 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7395 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7396 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7398 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7400 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7401 count when creating the object.
7403 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7404 Ulrich Weigand <uweigand@de.ibm.com>
7406 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7407 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7409 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7410 (process_xcoff_symbol): Likewise.
7411 (scan_xcoff_symtab): Likewise.
7413 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7415 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7416 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7417 (ia64_access_reg): Use get_frame_register_unsigned.
7418 (ia64_access_rse_reg): Likewise.
7419 (ia64_libunwind_frame_prev_register): Likewise.
7421 2017-04-26 Jiong Wang <jiong.wang@arm.com>
7423 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7424 * gdbarch.c: Regenerated.
7425 * gdbarch.h: Regenerated.
7426 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7427 visibility external.
7428 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7429 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7430 (enum cfa_how_kind): Move to ...
7431 (struct dwarf2_frame_state_reg_info): Likewise.
7432 (struct dwarf2_frame_state): Likewise.
7433 * dwarf2-frame.h: ... here.
7434 (dwarf2_frame_state_alloc_regs): New declaration.
7435 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7436 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7438 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7440 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7441 regcache_raw_read_unsigned.
7442 (xtensa_pseudo_register_write): Likewise.
7444 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7446 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7447 (nds32_pseudo_register_write): Likewise.
7449 2017-04-25 Yao Qi <yao.qi@linaro.org>
7451 * regcache.c (struct regcache) <readonly_p>: Change its type
7453 (regcache_xmalloc_1): Update parameter type and callers update.
7455 2017-04-25 Yao Qi <yao.qi@linaro.org>
7457 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7458 set_gdbarch_wchar_bit.
7459 * arm-tdep.c (arm_gdbarch_init): Likewise.
7461 2017-04-25 Pedro Alves <palves@redhat.com>
7463 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7464 (BothAreRelocatable, memcopy, memmove): Don't define.
7465 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7468 2017-04-25 Pedro Alves <palves@redhat.com>
7470 * common/common-defs.h: Include "common/poison.h".
7471 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7473 * common/poison.h: New file.
7474 * common/traits.h: Include <type_traits>.
7475 (Not, Or, Requires): New, moved from common/function-view.h.
7477 2017-04-25 Pedro Alves <palves@redhat.com>
7479 * breakpoint.h (struct breakpoint): In-class initialize all
7480 fields. Make boolean fields "bool".
7481 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7482 memset call and initializations no longer necessary.
7484 2017-04-25 Pedro Alves <palves@redhat.com>
7486 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7488 (pt_btrace_insn): New function.
7489 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7491 2017-04-25 Pedro Alves <palves@redhat.com>
7493 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7494 "base" field and inherit from "bp_location" instead. Add
7496 (allocate_location_exception): Use new non-default ctor.
7497 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7498 (init_bp_location): Convert to ...
7499 (bp_location::bp_location): ... this new ctor, and remove memset
7501 (base_breakpoint_allocate_location): Use the new non-default ctor.
7502 * breakpoint.h (bp_location): Now a class. Declare default and
7503 non-default ctors. In-class initialize all members.
7504 (init_bp_location): Remove declaration.
7506 2017-04-25 Pedro Alves <palves@redhat.com>
7508 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7509 assignment operator.
7511 2017-04-24 Yao Qi <yao.qi@linaro.org>
7513 * doublest.c (convert_doublest_to_floatformat): Call
7514 floatformat_totalsize_bytes.
7516 2017-04-22 Tom Tromey <tom@tromey.com>
7518 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7520 * stack.c (print_frame): Use ui_out_emit_list.
7521 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7523 * mi/mi-main.c (print_one_inferior)
7524 (mi_cmd_data_list_register_names)
7525 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7526 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7528 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7529 (mi_output_solib_attribs): Use ui_out_emit_list,
7531 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7532 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7533 (mi_cmd_stack_list_args, list_args_or_locals): Use
7535 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7536 * breakpoint.c (print_solib_event, output_thread_groups): Use
7539 2017-04-22 Tom Tromey <tom@tromey.com>
7541 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7542 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7543 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7545 2017-04-22 Tom Tromey <tom@tromey.com>
7547 * tracepoint.c (tvariables_info_1)
7548 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7550 2017-04-22 Tom Tromey <tom@tromey.com>
7552 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7553 annotate_arg_emitter.
7554 * breakpoint.c (print_mention_watchpoint)
7555 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7556 * annotate.h (struct annotate_arg_emitter): New.
7558 2017-04-22 Tom Tromey <tom@tromey.com>
7560 * record-btrace.c (record_btrace_insn_history)
7561 (record_btrace_insn_history_range, record_btrace_call_history)
7562 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7563 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7565 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7566 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7567 * skip.c (skip_info): Use ui_out_emit_tuple.
7568 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7569 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7570 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7571 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7572 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7574 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7575 (output_register, mi_cmd_data_read_memory)
7576 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7577 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7578 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7579 Use ui_out_emit_tuple.
7580 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7582 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7583 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7584 * linux-thread-db.c (info_auto_load_libthread_db): Use
7586 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7587 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7588 * disasm.c (do_mixed_source_and_assembly_deprecated)
7589 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7590 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7591 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7592 * breakpoint.c (print_one_breakpoint_location)
7593 (print_one_breakpoint): Use ui_out_emit_tuple.
7594 * auto-load.c (print_script, info_auto_load_cmd): Use
7596 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7598 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7600 * thread.c (print_thread_info_1): Remove dead code.
7602 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7604 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7606 * arm-tdep.c (selftests::arm_record_test): Likewise.
7608 2017-04-21 Yao Qi <yao.qi@linaro.org>
7610 * regcache.c (regcache_restore): Remove argument 2. Replace
7611 argument 3 with regcache. Get register status from
7612 src->register_status and get register contents from
7613 register_buffer (src, regnum).
7614 (regcache_cpy): Update.
7616 2017-04-19 Pedro Alves <palves@redhat.com>
7618 * gdbthread.h (thread): Add missing closing parenthesis in
7621 2017-04-19 Pedro Alves <palves@redhat.com>
7623 * common/refcounted-object.h: New file.
7624 * gdbthread.h: Include "common/refcounted-object.h".
7625 (thread_info): Inherit from refcounted_object and add comments.
7626 (thread_info::incref, thread_info::decref)
7627 (thread_info::m_refcount): Delete.
7628 (thread_info::deletable): Use the refcounted_object::refcount()
7630 * inferior.c (current_inferior_): Add comment.
7631 (set_current_inferior): Increment/decrement refcounts.
7632 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7633 not-deletable instead of comparing with the current inferior.
7634 (initialize_inferiors): Increment the initial inferior's refcount.
7635 * inferior.h (struct inferior): Forward declare.
7636 Include "common/refcounted-object.h".
7637 (current_inferior, set_current_inferior): Move declaration to
7638 before struct inferior's definition, and fix comment.
7639 (inferior): Inherit from refcounted_object. Add comments.
7640 * thread.c (switch_to_thread_no_regs): Reference the thread's
7641 inferior pointer directly instead of doing a ptid lookup.
7642 (switch_to_no_thread): New function.
7643 (switch_to_thread(thread_info *)): New function, factored out
7645 (switch_to_thread(ptid_t)): ... this.
7646 (restore_current_thread): Delete.
7647 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7648 fields, and add 'inf' field.
7649 (do_restore_current_thread_cleanup): Check whether old->inf is
7650 alive instead of looking up an inferior by ptid. Use
7651 switch_to_thread and switch_to_no_thread.
7652 (restore_current_thread_cleanup_dtor): Use old->inf directly
7653 instead of lookup up an inferior by id. Decref the inferior.
7654 Don't restore 'removable'.
7655 (make_cleanup_restore_current_thread): Same the inferior pointer
7656 in old, instead of the inferior number. Incref the inferior.
7657 Don't save/clear 'removable'.
7659 2017-04-19 Pedro Alves <palves@redhat.com>
7661 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7662 unittests/scoped_restore-selftests.c.
7663 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7664 * common/scoped_restore.h (scoped_restore_base): Make "class".
7665 (scoped_restore_base::release): New public method.
7666 (scoped_restore_base::scoped_restore_base): New protected ctor.
7667 (scoped_restore_base::m_saved_var): New protected field.
7668 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7669 scoped_restore_base base class instead of m_saved_var directly.
7670 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7671 (scoped_restore_tmpl::scoped_restore_tmpl(const
7672 scoped_restore_tmpl<T>&)): Likewise.
7673 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7675 (scoped_restore_tmpl::saved_var): New method.
7676 (scoped_restore_tmpl::m_saved_var): Delete.
7677 * inferior.h (inferior::detaching): Now a bool.
7678 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7680 * unittests/scoped_restore-selftests.c: New file.
7682 2017-04-19 Pedro Alves <palves@redhat.com>
7684 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7685 Re-sort in alphabetic order.
7687 2017-04-18 Pedro Alves <palves@redhat.com>
7689 * xml-support.c (obstack_xml_printf): Delete.
7690 * xml-support.h (obstack_xml_printf): Delete.
7692 2017-04-18 Pedro Alves <palves@redhat.com>
7694 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7695 vdebug, verror, body_text, start_element, end_element, name,
7696 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7697 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7698 is_xinclude>: Make private and add m_ prefix.
7699 (gdb_xml_parser::body_text): New method, based on ...
7700 (gdb_xml_body_text): ... this. Adjust.
7701 (gdb_xml_parser::vdebug): New method, based on ...
7702 (gdb_xml_debug): ... this. Adjust.
7703 (gdb_xml_parser::verror): New method, based on ...
7704 (gdb_xml_error): ... this. Adjust.
7705 (gdb_xml_parser::start_element): New method, based on ...
7706 (gdb_xml_start_element): ... this. Adjust.
7707 (gdb_xml_start_element_wrapper): Defer to
7708 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7709 (gdb_xml_parser::end_element): New method, based on ...
7710 (gdb_xml_end_element_wrapper): ... this. Adjust.
7711 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7712 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7713 (gdb_xml_parser::use_dtd): New method, based on ...
7714 (gdb_xml_use_dtd): ... this. Adjust.
7715 (gdb_xml_parser::parse): New method, based on ...
7716 (gdb_xml_parse): ... this. Adjust.
7717 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7718 (xinclude_start_include): Adjust to call the parser's name method.
7719 (xml_xinclude_default, xml_xinclude_start_doctype)
7720 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7722 (xml_process_xincludes): Adjust to call parser methods.
7723 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7726 2017-04-18 Pedro Alves <palves@redhat.com>
7728 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7729 gdb::optional<std::string>.
7730 * xml-support.c: Include <string>.
7731 (scope_level::scope_level(scope_level &&))
7732 (scope_level::~scope_level): Delete.
7733 (scope_level::body): Now a std::string.
7734 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7735 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7737 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7738 (xinclude_parsing_data::output): Now a std::string reference.
7739 (xinclude_start_include): Adjust.
7740 (xml_xinclude_default): Adjust.
7741 (xml_process_xincludes): Add 'output' parameter, and return bool.
7742 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7744 * xml-tdesc.c: Include <unordered_map> and <string>.
7745 (tdesc_xml_cache): Delete.
7746 (tdesc_xml_cache_s): Delete.
7747 (xml_cache): Now an std::unordered_map.
7748 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7749 (target_fetch_description_xml): Change return type to
7750 gdb::optional<std::string>, and adjust.
7751 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7752 (target_fetch_description_xml): Change return type to
7753 gdb::optional<std::string>.
7755 2017-04-18 Pedro Alves <palves@redhat.com>
7757 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7758 unittests/optional-selftests.c.
7759 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7760 * unittests/optional-selftests.c: New file.
7761 * unittests/optional/assignment/1.cc: New file.
7762 * unittests/optional/assignment/2.cc: New file.
7763 * unittests/optional/assignment/3.cc: New file.
7764 * unittests/optional/assignment/4.cc: New file.
7765 * unittests/optional/assignment/5.cc: New file.
7766 * unittests/optional/assignment/6.cc: New file.
7767 * unittests/optional/assignment/7.cc: New file.
7768 * unittests/optional/cons/copy.cc: New file.
7769 * unittests/optional/cons/default.cc: New file.
7770 * unittests/optional/cons/move.cc: New file.
7771 * unittests/optional/cons/value.cc: New file.
7772 * unittests/optional/in_place.cc: New file.
7773 * unittests/optional/observers/1.cc: New file.
7774 * unittests/optional/observers/2.cc: New file.
7776 2017-04-18 Pedro Alves <palves@redhat.com>
7778 * common/gdb_optional.h: Include common/traits.h.
7779 (in_place_t): New type.
7780 (in_place): New constexpr variable.
7781 (optional::optional): Remove member initialization of
7783 (optional::optional(in_place_t...)): New constructor.
7784 (optional::~optional): Use reset.
7785 (optional::optional(const optional&)): New.
7786 (optional::optional(const optional&&)): New.
7787 (optional::optional(T &)): New.
7788 (optional::optional(T &&)): New.
7789 (operator::operator=(const optional &)): New.
7790 (operator::operator=(optional &&)): New.
7791 (operator::operator= (const T &))
7792 (operator::operator= (T &&))
7793 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7794 (operator::reset): New.
7795 (operator::m_instantiated):: Add in-class initializer.
7796 * common/traits.h: Include <type_traits>.
7797 (struct And): New types.
7799 2017-04-18 Pedro Alves <palves@redhat.com>
7801 * xml-support.c: Include <vector>.
7802 (scope_level::scope_level(const gdb_xml_element *))
7803 (scope_level::scope_level(scope_level&&)): New.
7804 (scope_level::~scope_level): New.
7805 (scope_level_s): Delete.
7806 (gdb_xml_parser::scopes): Now a std::vector.
7807 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7809 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7811 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7812 of the scopes member. Use std::vector::emplace_back.
7814 2017-04-18 Pedro Alves <palves@redhat.com>
7816 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7818 (gdb_xml_end_element): Change type of first parameter.
7819 (gdb_xml_cleanup): Rename to ...
7820 (gdb_xml_parser::~gdb_xml_parser): ... this.
7821 (gdb_xml_create_parser_and_cleanup): Delete with ...
7822 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7824 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7825 using gdb_xml_create_parser_and_cleanup.
7826 (xinclude_parsing_data): Add ctor/dtor.
7827 (xml_xinclude_cleanup): Delete.
7828 (xml_process_xincludes): Create a local xinclude_parsing_data
7829 instead of heap-allocating one. Create a local gdb_xml_parser
7830 instead of heap-allocating one with
7831 gdb_xml_create_parser_and_cleanup.
7833 2017-04-18 John Baldwin <jhb@FreeBSD.org>
7836 * fbsd-nat.c (resume_one_thread_cb): Remove.
7837 (resume_all_threads_cb): Remove.
7838 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7839 iterate_over_threads.
7841 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7843 * NEWS: Create a new section for the next release branch.
7844 Rename the section of the current branch, now that it has
7847 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7849 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7850 * version.in: Bump version to 8.0.50.DATE-git.
7852 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7855 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7856 independently of the host, and fix build breakage on Cygwin.
7858 2017-04-13 Pedro Alves <palves@redhat.com>
7860 * inferior.c (free_inferior): Convert to ...
7861 (inferior::~inferior): ... this dtor.
7862 (inferior::inferior): New ctor, factored out from ...
7863 (add_inferior_silent): ... here. Allocate the inferior with a new
7865 (delete_inferior): Call delete instead of free_inferior.
7866 * inferior.h (gdb_environ, continuation): Forward declare.
7867 (inferior): Now a class. Add in-class initialization to all
7868 members. Make boolean fields bool, except 'detaching'.
7869 (inferior::inferior): New explicit ctor.
7870 (inferior::~inferior): New.
7872 2017-04-13 Pedro Alves <palves@redhat.com>
7874 * inferior.c (init_inferior_list): Delete.
7875 * inferior.h (init_inferior_list): Delete.
7877 2017-04-13 Pedro Alves <palves@redhat.com>
7880 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7881 (top level): Call it twice, with different thread sets.
7883 2017-04-13 Pedro Alves <palves@redhat.com>
7885 * thread.c: Include <algorithm>.
7886 (thread_array_cleanup): Delete.
7887 (scoped_inc_dec_ref): New class.
7888 (live_threads_count): New function.
7889 (set_thread_refcount): Delete.
7890 (tp_array_compar_ascending): Now a bool.
7891 (tp_array_compar): Convert to a std::sort comparison function.
7892 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7893 and live_threads_count.
7895 2017-04-13 Pedro Alves <palves@redhat.com>
7897 * infrun.c (follow_fork_inferior): Also switch the current
7900 2017-04-13 Pedro Alves <palves@redhat.com>
7902 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7903 before calling create_internal_breakpoint.
7905 2017-04-13 Pedro Alves <palves@redhat.com>
7907 * fork-child.c (execv_argv): New class.
7908 (breakup_args): Refactored as ...
7909 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7910 Copy arguments to storage and replace separators with NULL
7911 terminators in place.
7912 (escape_bang_in_quoted_argument): Adjust to return bool.
7913 (execv_argv::execv_argv): New ctor.
7914 (execv_argv::init_for_shell): New method, factored out from
7915 fork_inferior. Don't strdup strings into the vector.
7916 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7917 Remove free_vector_argv call.
7919 2017-04-13 Yao Qi <yao.qi@linaro.org>
7921 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7924 2017-04-13 Yao Qi <yao.qi@linaro.org>
7926 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7927 * rx-tdep.c (rx_gdbarch_init): Likewise.
7929 2017-04-13 Pedro Alves <palves@redhat.com>
7931 * breakpoint.h (struct breakpoint): Reindent.
7933 2017-04-13 Pedro Alves <palves@redhat.com>
7935 * breakpoint.c (bp_location): Rename to ...
7936 (bp_locations): ... this. All references updated.
7937 (bp_location_count): Rename to ...
7938 (bp_locations_count): ... this. All references updated.
7939 (bp_location_placed_address_before_address_max): Rename to ...
7940 (bp_locations_placed_address_before_address_max): ... this. All
7942 (bp_location_shadow_len_after_address_max): Rename to ...
7943 (bp_locations_shadow_len_after_address_max): ... this. All
7945 (bp_location_compare_addrs): Rename to ...
7946 (bp_locations_compare_addrs): ... this. All references updated.
7947 (bp_location_compare):Rename to ...
7948 (bp_locations_compare): ... this. All references updated.
7949 (bp_location_target_extensions_update): Rename to ...
7950 (bp_locations_target_extensions_update): ... this. All references
7953 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7955 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7956 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7958 * common/gdb_termios.h: New file, with parts of "terminal.h".
7959 * inflow.c: Include "gdb_termios.h".
7960 * ser-unix.c: Include "gdb_termios.h".
7961 * terminal.h: Move terminal-related defines to
7962 "common/gdb_termios.h".
7964 2017-04-12 Tom Tromey <tom@tromey.com>
7966 * probe.c (parse_probes): Update.
7967 * location.h (delete_event_location): Don't declare.
7968 (event_location_deleter::operator()): Update.
7969 * location.c (event_location_deleter::operator()): Rename from
7970 delete_event_location.
7971 * linespec.h (linespec_result) <location>: Change type to
7973 * linespec.c (canonicalize_linespec, event_location_to_sals)
7974 (decode_objc): Update.
7975 (linespec_result): Don't call delete_event_location.
7976 * breakpoint.c (create_breakpoints_sal)
7977 (bkpt_probe_create_sals_from_location)
7978 (strace_marker_create_sals_from_location): Update.
7980 2017-04-12 Tom Tromey <tom@tromey.com>
7982 * linespec.h (struct linespec_result): Add constructor and
7984 (init_linespec_result, destroy_linespec_result)
7985 (make_cleanup_destroy_linespec_result): Don't declare.
7986 * linespec.c (init_linespec_result): Remove.
7987 (linespec_result::~linespec_result): Rename from
7988 destroy_linespec_result. Update.
7989 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7991 * breakpoint.c (create_breakpoint, break_range_command)
7992 (decode_location_default): Update.
7993 * ax-gdb.c (agent_command_1): Update.
7995 2017-04-12 Tom Tromey <tom@tromey.com>
7997 * remote.c (remote_download_tracepoint): Update.
7998 * python/py-breakpoint.c (bppy_get_location): Update.
7999 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8000 (gdbscm_breakpoint_location): Update.
8001 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8002 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8003 Change type to event_location_up.
8004 * breakpoint.c (create_overlay_event_breakpoint)
8005 (create_longjmp_master_breakpoint)
8006 (create_std_terminate_master_breakpoint)
8007 (create_exception_master_breakpoint)
8008 (breakpoint_event_location_empty_p, print_breakpoint_location)
8009 (print_one_breakpoint_location, create_thread_event_breakpoint)
8010 (init_breakpoint_sal, create_breakpoint)
8011 (print_recreate_ranged_breakpoint, break_range_command)
8012 (init_ada_exception_breakpoint, say_where): Update.
8013 (base_breakpoint_dtor): Don't call delete_event_location.
8014 (bkpt_print_recreate, tracepoint_print_recreate)
8015 (dprintf_print_recreate, update_static_tracepoint)
8016 (breakpoint_re_set_default): Update.
8018 2017-04-12 Tom Tromey <tom@tromey.com>
8020 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8021 type of "to_do". Update.
8022 (compute_stack_depth): Use std::vector.
8024 2017-04-12 Tom Tromey <tom@tromey.com>
8026 * printcmd.c (find_instruction_backward): Use std::vector.
8028 2017-04-12 Tom Tromey <tom@tromey.com>
8030 * symfile.c (objfilep): Remove typedef.
8031 (reread_symbols): Use a std::vector.
8033 2017-04-12 Tom Tromey <tom@tromey.com>
8035 * mi/mi-main.c (exec_direction_forward): Remove.
8036 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8037 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8039 * guile/guile.c (guile_repl_command, guile_command)
8040 (gdbscm_execute_gdb_command): Use scoped_restore.
8041 * go-exp.y (go_parse): Use scoped_restore.
8042 * d-exp.y (d_parse): Use scoped_restore.
8043 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8044 * c-exp.y (c_parse): Use scoped_restore.
8046 2017-04-12 Tom Tromey <tom@tromey.com>
8048 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8049 (mi_parse): Update return type.
8050 (mi_parse_free): Remove.
8051 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8052 (mi_parse::~mi_parse): Rename from mi_parse_free.
8053 (mi_parse_cleanup): Remove.
8054 (mi_parse): Return a unique_ptr. Use new.
8055 * mi/mi-main.c (mi_execute_command): Update.
8057 2017-04-12 Tom Tromey <tom@tromey.com>
8059 * location.c (explicit_location_lex_one): Return a
8061 (string_to_explicit_location): Update. Remove cleanups.
8063 2017-04-12 Tom Tromey <tom@tromey.com>
8065 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8066 (compare_value_and_voffset): Change type. Update.
8067 (compute_vtable_size): Change type of "offset_vec".
8068 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8069 (gnuv3_get_typeid): Remove extraneous declaration.
8071 2017-04-12 Tom Tromey <tom@tromey.com>
8073 * charset.h (wchar_iterator): Fix comment.
8075 2017-04-12 Tom Tromey <tom@tromey.com>
8077 * charset.c (iconv_wrapper): New class.
8078 (cleanup_iconv): Remove.
8079 (convert_between_encodings): Use it.
8081 2017-04-12 Tom Tromey <tom@tromey.com>
8083 * symfile.h (increment_reading_symtab): Update type.
8084 * symfile.c (decrement_reading_symtab): Remove.
8085 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8086 * psymtab.c (psymtab_to_symtab): Update.
8087 * dwarf2read.c (dw2_instantiate_symtab): Update.
8089 2017-04-12 Tom Tromey <tom@tromey.com>
8091 * jit.c (struct jit_reader): Declare separately. Add constructor
8092 and destructor. Change type of "handle".
8093 (loaded_jit_reader): Define separately.
8094 (jit_reader_load): Update. New "new".
8095 (jit_reader_unload_command): Use "delete".
8096 * gdb-dlfcn.h (struct dlclose_deleter): New.
8097 (gdb_dlhandle_up): New typedef.
8098 (gdb_dlopen, gdb_dlsym): Update types.
8099 (gdb_dlclose): Remove.
8100 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8101 (gdb_dlsym): Change type of "handle".
8102 (make_cleanup_dlclose): Remove.
8103 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8104 * compile/compile-c-support.c (load_libcc): Update.
8106 2017-04-12 Tom Tromey <tom@tromey.com>
8108 * symtab.h (find_pcs_for_symtab_line): Change return type.
8109 * symtab.c (find_pcs_for_symtab_line): Change return type.
8110 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8111 type of "vec". Update.
8112 (ltpy_get_pcs_for_line): Update.
8113 * linespec.c (decode_digits_ordinary): Update.
8115 2017-04-12 Tom Tromey <tom@tromey.com>
8117 * tracepoint.c (actions_command): Update.
8118 * python/python.c (python_command, python_interactive_command):
8120 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8121 * guile/guile.c (guile_command): Update.
8122 * defs.h (read_command_lines, read_command_lines_1): Return
8124 (command_lines_deleter): New struct.
8125 (command_line_up): New typedef.
8126 * compile/compile.c (compile_code_command)
8127 (compile_print_command): Update.
8128 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8130 (make_cleanup_free_command_lines): Remove.
8131 * cli/cli-script.c (get_command_line, read_command_lines_1)
8132 (copy_command_lines): Return command_line_up.
8133 (while_command, if_command, read_command_lines, define_command)
8134 (document_command): Update.
8135 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8137 * breakpoint.h (breakpoint_set_commands): Change type of
8139 * breakpoint.c (breakpoint_set_commands): Change type of
8141 (do_map_commands_command, update_dprintf_command_list)
8142 (create_tracepoint_from_upload): Update.
8144 2017-04-12 Tom Tromey <tom@tromey.com>
8146 * tracepoint.c (scope_info): Update.
8147 * spu-tdep.c (spu_catch_start): Update.
8148 * python/python.c (gdbpy_decode_line): Update.
8149 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8150 * python/py-breakpoint.c (bppy_init): Update.
8151 * probe.c (parse_probes): Update.
8152 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8153 * location.h (event_location_deleter): New struct.
8154 (event_location_up): New typedef.
8155 (new_linespec_location, new_address_location, new_probe_location)
8156 (new_explicit_location, copy_event_location)
8157 (string_to_event_location, string_to_event_location_basic)
8158 (string_to_explicit_location): Update return type.
8159 (make_cleanup_delete_event_location): Remove.
8160 * location.c (new_linespec_location, new_address_location)
8161 (new_probe_location, new_explicit_location, copy_event_location):
8162 Return event_location_up.
8163 (delete_event_location_cleanup)
8164 (make_cleanup_delete_event_location): Remove.
8165 (string_to_explicit_location, string_to_event_location_basic)
8166 (string_to_event_location): Return event_location_up.
8167 * linespec.c (canonicalize_linespec, event_location_to_sals)
8168 (decode_line_with_current_source)
8169 (decode_line_with_last_displayed, decode_objc): Update.
8170 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8171 * completer.c (location_completer): Update.
8172 * cli/cli-cmds.c (edit_command, list_command): Update.
8173 * breakpoint.c (create_overlay_event_breakpoint)
8174 (create_longjmp_master_breakpoint)
8175 (create_std_terminate_master_breakpoint)
8176 (create_exception_master_breakpoint)
8177 (create_thread_event_breakpoint): Update.
8178 (init_breakpoint_sal): Update. Remove some dead code.
8179 (create_breakpoint_sal): Change type of "location". Update.
8180 (create_breakpoints_sal, create_breakpoint, break_command_1)
8181 (dprintf_command, break_range_command, until_break_command)
8182 (init_ada_exception_breakpoint)
8183 (strace_marker_create_sals_from_location)
8184 (update_static_tracepoint, trace_command, ftrace_command)
8185 (strace_command, create_tracepoint_from_upload): Update.
8186 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8187 * ax-gdb.c (agent_command_1): Update.
8189 2017-04-12 Pedro Alves <palves@redhat.com>
8191 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8192 * configure.tgt: Handle i[34567]86-*-go32* and
8193 i[34567]86-*-msdosdjgpp*.
8194 * i386-tdep.c (i386_svr4_reg_to_regnum):
8196 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8198 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8199 * i386-go32-tdep.c: New file.
8200 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8203 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8205 * aix-thread.c (pd_status2str): Change return type to const char *.
8207 2017-04-12 Pedro Alves <palves@redhat.com>
8209 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8210 calls to set_gdbarch_gnu_triplet_regexp.
8212 2017-04-12 Pedro Alves <palves@redhat.com>
8215 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8217 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8218 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8219 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8220 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8221 * gdbarch.h, gdbarch.c: Regenerate.
8222 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8223 gdbarch_wchar_bit and gdbarch_wchar_signed.
8224 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8225 * arm-tdep.c (arm_gdbarch_init): Likewise.
8226 * avr-tdep.c (avr_gdbarch_init): Likewise.
8227 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8228 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8229 * i386-tdep.c (i386_go32_init_abi): Likewise.
8230 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8231 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8232 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8233 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8234 * sh-tdep.c (sh_gdbarch_init): Likewise.
8235 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8236 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8237 * windows-tdep.c (windows_init_abi): Likewise.
8238 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8240 2017-04-12 Pedro Alves <palves@redhat.com>
8243 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8244 cplus_primitive_type_char32_t>: New enum values.
8245 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8246 and cplus_primitive_type_char32_t.
8247 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8248 32, use the archtecture's built-in type for char16_t and char32_t,
8249 respectively. Otherwise, fallback to init_integer_type as before,
8250 but make the type unsigned, and issue a complaint.
8251 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8253 2017-04-12 Alan Hayward <alan.hayward@arm.com>
8255 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
8256 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8258 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8260 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8263 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8265 * common/common-utils.c (free_vector_argv): New function.
8266 * common/common-utils.h: Include <vector>.
8267 (free_vector_argv): New prototype.
8268 * darwin-nat.c (darwin_create_inferior): Rewrite function
8269 prototype in order to constify "exec_file" and accept a
8270 "std::string" for "allargs".
8271 * fork-child.c: Include <vector>.
8272 (breakup_args): Rewrite function, using C++.
8273 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8274 and accept "std::string" for "allargs". Update the code to
8275 calculate "argv" based on "allargs". Update calls to "exec_fun"
8277 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8278 order to constify "exec_file" and accept a "std::string" for
8280 * go32-nat.c (go32_create_inferior): Likewise.
8281 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8282 * infcmd.c (run_command_1): Constify "exec_file". Use
8283 "std::string" for inferior arguments.
8284 * inferior.h (fork_inferior): Update prototype.
8285 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8286 prototype in order to constify "exec_file" and accept a
8287 "std::string" for "allargs".
8288 * nto-procfs.c (procfs_create_inferior): Likewise.
8289 * procfs.c (procfs_create_inferior): Likewise.
8290 * remote-sim.c (gdbsim_create_inferior): Likewise.
8291 * remote.c (extended_remote_run): Update code to accept
8292 "std::string" as argument.
8293 (extended_remote_create_inferior): Rewrite function prototype in
8294 order to constify "exec_file" and accept a "std::string" for
8296 * rs6000-nat.c (super_create_inferior): Likewise.
8297 (rs6000_create_inferior): Likewise.
8298 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8299 * windows-nat.c (windows_create_inferior): Likewise.
8301 2017-04-11 Pedro Alves <palves@redhat.com>
8303 * thread.c: Fix whitespace throughout.
8305 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8307 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8309 2017-04-11 Alan Hayward <alan.hayward@arm.com>
8311 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8313 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8316 * osdata.c (info_osdata): Check if 'type' is an empty string
8319 2017-04-10 Pedro Alves <palves@redhat.com>
8321 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8322 (ptid_to_global_thread_id, in_thread_list)
8323 (do_captured_list_thread_ids, set_resumed, set_running)
8324 (set_executing, set_stop_requested, finish_thread_state)
8325 (validate_registers_access, can_access_registers_ptid)
8326 (print_thread_info_1, switch_to_thread)
8327 (do_restore_current_thread_cleanup)
8328 (make_cleanup_restore_current_thread, thread_command)
8329 (thread_name_command): Use operator== instead of ptid_equal.
8331 2017-04-10 Pedro Alves <palves@redhat.com>
8333 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8334 (current_thread_cleanup_chain): Delete.
8335 (restore_current_thread_cleanup_dtor)
8336 (make_cleanup_restore_current_thread): Remove references to
8337 current_thread_cleanup_chain.
8339 2017-04-10 Alan Hayward <alan.hayward@arm.com>
8341 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8344 2017-04-10 Yao Qi <yao.qi@linaro.org>
8347 * gdbthread.h (thread_info::deletable): New method.
8348 (thread_info::incref): New method.
8349 (thread_info::decref): New method.
8350 (thread_info::refcount): Move it to private.
8351 * infrun.c (save_stop_context): Call inc_refcount.
8352 (release_stop_context_cleanup): Likewise.
8353 * thread.c (set_thread_exited): New function.
8354 (init_thread_list): Delete "tp" only it is deletable, otherwise
8355 call set_thread_exited.
8356 (delete_thread_1): Call set_thread_exited.
8357 (current_thread_cleanup) <inferior_pid>: Remove.
8358 <thread>: New field.
8359 (restore_current_thread_ptid_changed): Removed.
8360 (do_restore_current_thread_cleanup): Adjust.
8361 (restore_current_thread_cleanup_dtor): Don't call
8363 (set_thread_refcount): Use dec_refcount.
8364 (make_cleanup_restore_current_thread): Adjust.
8365 (thread_apply_all_command): Call inc_refcount.
8366 (_initialize_thread): Don't call
8367 observer_attach_thread_ptid_changed.
8369 2017-04-10 Yao Qi <yao.qi@linaro.org>
8371 * thread.c (delete_thread_1): Hoist code on marking thread as
8374 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8376 * windows-nat.c (windows_detach): Initialize ptid with
8379 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8381 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8383 2017-04-07 Alan Hayward <alan.hayward@arm.com>
8385 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8386 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8387 (bfin_pseudo_register_write): Likewise
8389 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8391 * common/ptid.h (struct ptid): Change to...
8392 (class ptid_t): ... this.
8393 <ptid_t>: New constructors.
8394 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8395 matches>: New methods.
8396 <make_null, make_minus_one>: New static methods.
8403 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8404 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8405 as references, move comment to class ptid_t.
8406 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8407 ptid_t static methods.
8408 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8409 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8410 Take ptid arguments as references, implement using ptid_t methods.
8411 * unittests/ptid-selftests.c: New file.
8412 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8413 unittests/ptid-selftests.c.
8414 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8416 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8418 * python/python.c (python_run_simple_file): Cast mode literal to
8419 non-const char pointer as expected by PyFile_FromString.
8421 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8423 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8424 minus_one_ptid and null_ptid.
8426 2017-04-05 Pedro Alves <palves@redhat.com>
8428 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8429 * configure: Regenerate.
8431 2017-04-05 Pedro Alves <palves@redhat.com>
8433 * ada-exp.y (yyerror): Constify.
8434 * ada-lang.c (bound_name, get_selections)
8435 (ada_variant_discrim_type)
8436 (ada_variant_discrim_name, ada_value_struct_elt)
8437 (ada_lookup_struct_elt_type, is_unchecked_variant)
8438 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8439 (catch_ada_exception_command_split)
8440 (catch_ada_assert_command_split, catch_assert_command)
8441 (ada_op_name): Constify.
8442 * ada-lang.h (ada_yyerror, get_selections)
8443 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8444 * arc-tdep.c (arc_print_frame_cache): Constify.
8445 * arm-tdep.c (arm_skip_stub): Constify.
8446 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8447 (gen_aggregate_elt_ref): Constify.
8448 * bcache.c (print_bcache_statistics): Constify.
8449 * bcache.h (print_bcache_statistics): Constify.
8450 * break-catch-throw.c (catch_exception_command_1):
8451 * breakpoint.c (struct ep_type_description::description):
8453 (add_solib_catchpoint): Constify.
8454 (catch_fork_command_1): Add cast.
8455 (add_catch_command): Constify.
8456 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8458 * bsd-uthread.c (bsd_uthread_state): Constify.
8459 * buildsym.c (patch_subfile_names): Constify.
8460 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8462 * c-exp.y (yyerror): Constify.
8463 (token::oper): Constify.
8464 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8465 * c-varobj.c (cplus_describe_child): Constify.
8466 * charset.c (find_charset_names): Add cast.
8467 (find_charset_names): Constify array and add const_cast.
8468 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8469 (edit_command): Constify.
8470 * cli/cli-decode.c (lookup_cmd): Constify.
8471 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8473 (struct dump_context): Constify.
8474 (add_dump_command, restore_command): Constify.
8475 * cli/cli-script.c (get_command_line): Constify.
8476 * cli/cli-script.h (get_command_line): Constify.
8477 * cli/cli-utils.c (check_for_argument): Constify.
8478 * cli/cli-utils.h (check_for_argument): Constify.
8479 * coff-pe-read.c (struct read_pe_section_data): Constify.
8480 * command.h (lookup_cmd): Constify.
8481 * common/print-utils.c (decimal2str): Constify.
8482 * completer.c (gdb_print_filename): Constify.
8483 * corefile.c (set_gnutarget): Constify.
8484 * cp-name-parser.y (yyerror): Constify.
8485 * cp-valprint.c (cp_print_class_member): Constify.
8486 * cris-tdep.c (cris_register_name, crisv32_register_name):
8488 * d-exp.y (yyerror): Constify.
8489 (struct token::oper): Constify.
8490 * d-lang.h (d_yyerror): Constify.
8491 * dbxread.c (struct header_file_location::name): Constify.
8492 (add_old_header_file, add_new_header_file, last_function_name)
8493 (dbx_next_symbol_text, add_bincl_to_list)
8494 (find_corresponding_bincl_psymtab, set_namestring)
8495 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8496 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8497 * defs.h (command_line_input, print_address_symbolic)
8498 (deprecated_readline_begin_hook): Constify.
8499 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8501 * event-top.c (handle_line_of_input): Constify and add cast.
8502 * exceptions.c (catch_errors): Constify.
8503 * exceptions.h (catch_errors): Constify.
8504 * expprint.c (print_subexp_standard, op_string, op_name)
8505 (op_name_standard, dump_raw_expression, dump_raw_expression):
8506 * expression.h (op_name, op_string, dump_raw_expression):
8508 * f-exp.y (yyerror): Constify.
8509 (struct token::oper): Constify.
8510 (struct f77_boolean_val::name): Constify.
8511 * f-lang.c (f_word_break_characters): Constify.
8512 * f-lang.h (f_yyerror): Constify.
8513 * fork-child.c (fork_inferior): Add cast.
8514 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8515 (new_variant): Constify.
8516 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8517 * gdbarch.c: Regenerate.
8518 * gdbcore.h (set_gnutarget): Constify.
8519 * go-exp.y (yyerror): Constify.
8520 (token::oper): Constify.
8521 * go-lang.h (go_yyerror): Constify.
8522 * go32-nat.c (go32_sysinfo): Constify.
8523 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8524 * guile/scm-cmd.c (cmdscm_function): Constify.
8525 * guile/scm-param.c (pascm_param_value): Constify.
8526 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8527 (h8300sx_register_name): Constify.
8528 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8530 * ia64-tdep.c (ia64_register_names): Constify.
8531 * infcmd.c (construct_inferior_arguments): Constify.
8532 (path_command, attach_post_wait): Constify.
8533 * language.c (show_range_command, show_case_command)
8534 (unk_lang_error): Constify.
8535 * language.h (language_defn::la_error)
8536 (language_defn::la_name_of_this): Constify.
8537 * linespec.c (decode_line_2): Constify.
8538 * linux-thread-db.c (thread_db_err_str): Constify.
8539 * lm32-tdep.c (lm32_register_name): Constify.
8540 * m2-exp.y (yyerror): Constify.
8541 * m2-lang.h (m2_yyerror): Constify.
8542 * m32r-tdep.c (m32r_register_names): Constify and make static.
8543 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8544 * m88k-tdep.c (m88k_register_name): Constify.
8545 * macroexp.c (appendmem): Constify.
8546 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8547 (upgrade_type, parse_external, parse_partial_symbols)
8548 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8549 (new_symbol): Constify.
8550 * memattr.c (mem_info_command): Constify.
8551 * mep-tdep.c (register_name_from_keyword): Constify.
8552 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8554 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8555 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8556 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8558 (mi_execute_async_cli_command): Constify.
8559 * mips-tdep.c (mips_register_name): Constify.
8560 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8561 (am33_register_name, am33_2_register_name)
8562 * moxie-tdep.c (moxie_register_names): Constify.
8563 * nat/linux-osdata.c (osdata_type): Constify fields.
8564 * nto-tdep.c (nto_parse_redirection): Constify.
8565 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8566 (lookup_child_selector): Constify.
8567 (objc_methcall::name): Constify.
8568 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8569 (lookup_struct_typedef): Constify.
8570 * objfiles.c (pc_in_section): Constify.
8571 * objfiles.h (pc_in_section): Constify.
8572 * p-exp.y (struct token::oper): Constify.
8573 (yyerror): Constify.
8574 * p-lang.h (pascal_yyerror): Constify.
8575 * parser-defs.h (op_name_standard): Constify.
8576 (op_print::string): Constify.
8577 (exp_descriptor::op_name): Constify.
8578 * printcmd.c (print_address_symbolic): Constify.
8579 * psymtab.c (print_partial_symbols): Constify.
8580 * python/py-breakpoint.c (stop_func): Constify.
8581 (bppy_get_expression): Constify.
8582 * python/py-cmd.c (cmdpy_completer::name): Constify.
8583 (cmdpy_function): Constify.
8584 * python/py-event.c (evpy_add_attribute)
8585 (gdbpy_initialize_event_generic): Constify.
8586 * python/py-event.h (evpy_add_attribute)
8587 (gdbpy_initialize_event_generic): Constify.
8588 * python/py-evts.c (add_new_registry): Constify.
8589 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8590 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8591 * python/py-inferior.c (get_buffer): Add cast.
8592 * python/py-param.c (parm_constant::name): Constify.
8593 * python/py-unwind.c (fprint_frame_id): Constify.
8594 * python/python.c (gdbpy_parameter_value): Constify.
8595 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8596 * remote.c (memory_packet_config::name): Constify.
8597 (show_packet_config_cmd, remote_write_bytes)
8598 (remote_buffer_add_string):
8599 * reverse.c (exec_reverse_once): Constify.
8600 * rs6000-tdep.c (variant::name, variant::description): Constify.
8601 * rust-exp.y (rustyyerror): Constify.
8602 * rust-lang.c (rust_op_name): Constify.
8603 * rust-lang.h (rustyyerror): Constify.
8604 * serial.h (serial_ops::name): Constify.
8605 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8606 (sh_sh3e_register_name, sh_sh2e_register_name)
8607 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8608 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8609 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8610 (sh_sh4al_dsp_register_name): Constify.
8611 * sh64-tdep.c (sh64_register_name): Constify.
8612 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8613 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8614 * stabsread.c (patch_block_stabs, read_type_number)
8615 (ref_map::stabs, ref_add, process_reference)
8616 (symbol_reference_defined, define_symbol, define_symbol)
8617 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8618 (read_one_struct_field, read_struct_fields, read_baseclasses)
8619 (read_tilde_fields, read_struct_type, read_array_type)
8620 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8621 (read_huge_number, read_range_type, read_args, common_block_start)
8622 (find_name_end): Constify.
8623 * stabsread.h (common_block_start, define_symbol)
8624 (process_one_symbol, symbol_reference_defined, ref_add):
8625 * symfile.c (get_section_index, add_symbol_file_command):
8626 * symfile.h (get_section_index): Constify.
8627 * target-descriptions.c (tdesc_type::name): Constify.
8628 (tdesc_free_type): Add cast.
8629 * target.c (find_default_run_target):
8630 (add_deprecated_target_alias, find_default_run_target)
8631 (target_announce_detach): Constify.
8632 (do_option): Constify.
8633 * target.h (add_deprecated_target_alias): Constify.
8634 * thread.c (print_thread_info_1): Constify.
8635 * top.c (deprecated_readline_begin_hook, command_line_input):
8637 (init_main): Add casts.
8638 * top.h (handle_line_of_input): Constify.
8639 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8640 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8641 (tfind_command): Rename to ...
8642 (tfind_command_1): ... this and constify.
8643 (tfind_command): New function.
8644 (tfind_end_command, tfind_start_command): Adjust.
8645 (encode_source_string): Constify.
8646 * tracepoint.h (encode_source_string): Constify.
8647 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8648 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8649 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8650 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8651 * tui/tui-win.c (parse_scrolling_args): Constify.
8652 * tui/tui-windata.c (tui_erase_data_content): Constify.
8653 * tui/tui-windata.h (tui_erase_data_content): Constify.
8654 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8655 * tui/tui.c (tui_enable): Add cast.
8656 * utils.c (defaulted_query): Constify.
8657 (init_page_info): Add cast.
8658 (puts_debug, subset_compare): Constify.
8659 * utils.h (subset_compare): Constify.
8660 * varobj.c (varobj_format_string): Constify.
8661 * varobj.h (varobj_format_string): Constify.
8662 * vax-tdep.c (vax_register_name): Constify.
8663 * windows-nat.c (windows_detach): Constify.
8664 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8665 * xml-support.c (gdb_xml_end_element): Constify.
8666 * xml-tdesc.c (tdesc_start_reg): Constify.
8667 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8668 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8669 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8671 2017-04-05 Pedro Alves <palves@redhat.com>
8673 * proc-api.c (struct trans): Constify.
8674 (procfs_note): Constify.
8675 * proc-events.c (struct trans, syscall_table):
8676 * proc-flags.c (struct trans): Constify.
8677 * proc-utils.h (procfs_note): Constify.
8678 * proc-why.c (struct trans): Constify.
8679 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8680 (procfs_detach): Constify.
8681 * sol-thread.c (struct string_map): Constify.
8682 (td_err_string, td_state_string): Constify.
8684 2017-04-05 Pedro Alves <palves@redhat.com>
8686 * proc-api.c (procfs_filename): Don't initialize
8688 (prepare_to_trace): Assume procfs_filename is non-NULL.
8689 (_initialize_proc_api): Give procfs_filename a default value here.
8691 2017-04-05 Pedro Alves <palves@redhat.com>
8693 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8694 'cond_string' parameter.
8695 (extract_exception_regexp): Constify 'string' parameter.
8696 (catch_exception_command_1): Constify.
8697 * breakpoint.c (init_catchpoint)
8698 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8700 (ep_parse_optional_if_clause, catch_fork_command_1)
8701 (catch_exec_command_1): Constify.
8702 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8704 (ep_parse_optional_if_clause): Constify.
8705 * cli/cli-utils.c (remove_trailing_whitespace)
8706 (check_for_argument): Constify.
8707 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8709 (check_for_argument): Likewise.
8711 2017-04-05 Pedro Alves <palves@redhat.com>
8713 * event-top.c (command_line_handler): Add cast to execute_command
8715 * record-btrace.c (cmd_record_btrace_bts_start)
8716 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8717 (cmd_record_btrace_start): Add cast to execute_command call.
8718 * record-full.c (record_full_goto_insn):
8719 * record.c (record_start, record_stop): Add cast to
8720 execute_command_to_string calls.
8721 (cmd_record_start): Add cast to execute_command calls.
8723 2017-04-05 Pedro Alves <palves@redhat.com>
8725 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8726 static inline function.
8727 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8728 array and use gdb_PyArg_ParseTupleAndKeywords.
8729 * python/py-cmd.c (cmdpy_init): Likewise.
8730 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8731 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8732 (infpy_search_memory): Likewise.
8733 * python/py-objfile.c (objfpy_add_separate_debug_file)
8734 (gdbpy_lookup_objfile): Likewise.
8735 * python/py-symbol.c (gdbpy_lookup_symbol)
8736 (gdbpy_lookup_global_symbol): Likewise.
8737 * python/py-type.c (gdbpy_lookup_type): Likewise.
8738 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8739 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8742 2017-04-05 Pedro Alves <palves@redhat.com>
8744 * python/python-internal.h (gdb_PyGetSetDef): New type.
8745 * python/py-block.c (block_object_getset)
8746 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8747 * python/py-event.c (event_object_getset)
8748 (finish_breakpoint_object_getset): Likewise.
8749 * python/py-inferior.c (inferior_object_getset): Likewise.
8750 * python/py-infthread.c (thread_object_getset): Likewise.
8751 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8752 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8753 * python/py-objfile.c (objfile_getset): Likewise.
8754 * python/py-progspace.c (pspace_getset): Likewise.
8755 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8757 * python/py-record.c (recpy_record_getset): Likewise.
8758 * python/py-symbol.c (symbol_object_getset): Likewise.
8759 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8761 * python/py-type.c (type_object_getset, field_object_getset):
8763 * python/py-value.c (value_object_getset): Likewise.
8765 2017-04-05 Pedro Alves <palves@redhat.com>
8767 * python/python-internal.h (gdb_PyObject_CallMethod)
8768 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8770 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8771 (PySys_GetObject, PySys_SetPath): New macros.
8773 2017-04-05 Pedro Alves <palves@redhat.com>
8775 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8776 info_osdata_command.
8777 * osdata.c (info_osdata_command): Rename to ...
8778 (info_osdata): ... this. Constify 'type' parameter, and remove
8779 the 'from_tty' parameter. Accept NULL TYPE.
8780 (info_osdata_command): New function.
8781 * osdata.h (info_osdata_command): Remove declaration.
8782 (info_osdata): New declaration.
8784 2017-04-05 Pedro Alves <palves@redhat.com>
8786 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8787 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8788 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8790 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8791 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8792 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8794 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8795 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8796 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8797 (mi_cmd_file_list_exec_source_files)
8798 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8799 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8800 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8802 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8803 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8804 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8805 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8806 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8807 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8808 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8809 'command' parameter.
8810 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8811 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8812 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8813 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8814 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8815 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8816 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8817 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8818 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8819 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8820 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8822 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8823 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8824 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8825 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8826 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8827 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8828 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8829 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8830 (mi_cmd_data_list_changed_registers)
8831 (mi_cmd_data_write_register_values)
8832 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8833 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8834 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8835 (mi_cmd_list_features, mi_cmd_list_target_features)
8836 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8837 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8838 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8839 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8840 (mi_cmd_trace_frame_collected): Constify 'command'
8842 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8843 'command' parameter.
8845 2017-04-05 Pedro Alves <palves@redhat.com>
8847 * ada-lang.c (ada_completer_word_break_characters): Now a const
8849 (ada_get_gdb_completer_word_break_characters): Constify.
8850 * completer.c (gdb_completer_command_word_break_characters)
8851 (gdb_completer_file_name_break_characters)
8852 (gdb_completer_quote_characters): Now const arrays.
8853 (get_gdb_completer_quote_characters): Constify.
8854 (set_rl_completer_word_break_characters): New function.
8855 (set_gdb_completion_word_break_characters)
8856 (complete_line_internal): Use it.
8857 * completer.h (get_gdb_completer_quote_characters): Constify.
8858 (set_rl_completer_word_break_characters): Declare.
8859 * f-lang.c (f_word_break_characters): Constify.
8860 * language.c (default_word_break_characters): Constify.
8861 * language.h (language_defn::la_word_break_characters): Constify.
8862 (default_word_break_characters): Constify.
8863 * top.c (init_main): Use set_rl_completer_word_break_characters.
8865 2017-04-05 Pedro Alves <palves@redhat.com>
8867 * aix-thread.c (aix_thread_pid_to_str)
8868 (aix_thread_extra_thread_info): Constify.
8869 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8870 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8871 (bsd_uthread_pid_to_str): Constify.
8872 * corelow.c (core_pid_to_str): Constify.
8873 * darwin-nat.c (darwin_pid_to_str): Constify.
8874 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8875 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8877 * gnu-nat.c (gnu_pid_to_str): Constify.
8878 * go32-nat.c (go32_pid_to_str): Constify.
8879 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8880 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8881 * inferior.c (inferior_pid_to_str): Constify.
8882 * linux-nat.c (linux_nat_pid_to_str): Constify.
8883 * linux-tdep.c (linux_core_pid_to_str): Constify.
8884 * linux-thread-db.c (thread_db_pid_to_str)
8885 (thread_db_extra_thread_info): Constify.
8886 * nto-tdep.c (nto_extra_thread_info): Constify.
8887 * nto-tdep.h (nto_extra_thread_info): Constify.
8888 * obsd-nat.c (obsd_pid_to_str): Constify.
8889 * procfs.c (procfs_pid_to_str): Constify.
8890 * ravenscar-thread.c (ravenscar_extra_thread_info)
8891 (ravenscar_pid_to_str): Constify.
8892 * remote-sim.c (gdbsim_pid_to_str): Constify.
8893 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8895 * sol-thread.c (solaris_pid_to_str): Constify.
8896 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8897 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8898 * target.c (default_pid_to_str, target_pid_to_str)
8899 (normal_pid_to_str, default_pid_to_str): Constify.
8900 * target.h (target_ops::to_pid_to_str)
8901 (target_ops::to_extra_thread_info): Constify.
8902 (target_pid_to_str, normal_pid_to_str): Constify.
8903 * windows-nat.c (windows_pid_to_str): Constify.
8904 * gdbarch.sh (core_pid_to_str): Constify.
8905 * target-delegates.c: Regenerate.
8906 * gdbarch.h, gdbarch.c: Regenerate.
8908 2017-04-05 Pedro Alves <palves@redhat.com>
8910 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8911 the memory of the temporary warning_pre_print override.
8912 * utils.c (warning_pre_print): Constify.
8913 * utils.h (warning_pre_print): Constify.
8915 2017-04-05 Pedro Alves <palves@redhat.com>
8917 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8918 (shell_command): New function.
8919 (make_command): Use std::string.
8920 (init_cli_cmds): Register shell_command instead of shell_escape.
8922 2017-04-05 Pedro Alves <palves@redhat.com>
8924 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8925 * tracepoint.c (default_collect): Don't initialize.
8927 2017-04-05 Pedro Alves <palves@redhat.com>
8929 * macroexp.c (macro_buffer::shared): Now a bool.
8930 (init_buffer): Update.
8931 (init_shared_buffer): Constify 'addr' parameter.
8932 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8935 2017-04-05 Pedro Alves <palves@redhat.com>
8937 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8938 * disasm.c (set_disassembler_options): Constify local.
8939 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8941 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8944 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8947 2017-04-05 Yao Qi <yao.qi@linaro.org>
8949 * frame.c (frame_unwind_register_unsigned): Call
8950 frame_unwind_register_value.
8952 2017-04-05 Yao Qi <yao.qi@linaro.org>
8954 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8955 Use gdb_test_multiple, and don't match anchor.
8957 2017-04-05 Pedro Alves <palves@redhat.com>
8959 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8960 (Write After Approval): Remove Simon Marchi.
8962 2017-04-05 Pedro Alves <palves@redhat.com>
8964 * common/gdb_optional.h (optional::optional): Make constexpr and
8967 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8969 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8970 (amd64fbsd_jmp_buf_reg_offset): Remove.
8971 (amd64fbsd_supply_uthread): Remove function.
8972 (amd64fbsd_collect_uthread): Remove function.
8973 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8974 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8975 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8976 (fbsd-nat.c): Update comment.
8977 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8978 (i386fbsd_jmp_buf_reg_offset): Remove.
8979 (i386fbsd_supply_uthread): Remove function.
8980 (i386fbsd_collect_uthread): Remove function.
8981 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8983 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8985 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8986 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8987 * NEWS: Mention that support for FreeBSD/alpha was removed.
8988 * alpha-fbsd-tdep.c: Delete file.
8989 * config/alpha/fbsd.mh: Delete file.
8990 * configure.host: Delete alpha*-*-freebsd* and
8991 alpha*-*-kfreebsd*-gnu.
8992 * configure.tgt: Delete alpha*-*-freebsd* and
8993 alpha*-*-kfreebsd*-gnu.
8995 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8997 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8998 amd64bsd_store_inferior_registers): Use ptid from regcache.
9000 2017-04-04 Pedro Alves <palves@redhat.com>
9002 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9003 data fields, make them private and add "m_" prefixes.
9004 (lnp_state_machine::lnp_state_machine): New ctor.
9005 (record_line, check_line_address, handle_set_discriminator)
9006 (handle_set_address, handle_advance_pc, handle_special_opcode)
9007 (handle_advance_line, handle_set_file, handle_negate_stmt)
9008 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9009 (end_sequence, advance_line): New methods.
9010 (m_gdbarch, m_record_lines_p): New fields.
9011 (lnp_reader_state): Delete.
9012 (dwarf_record_line): Rename to ...
9013 (lnp_state_machine::record_line): ... adjust.
9014 (init_lnp_state_machine): Delete.
9015 (lnp_state_machine::lnp_state_machine): New.
9016 (check_line_address): Rename to ...
9017 (lnp_state_machine::check_line_address): This.
9018 (dwarf_decode_lines_1): Remove reference to "reader_state".
9019 Adjust lnp_state_machine having a non-default ctor. Use bool.
9020 State machine internal state manipulation moved to
9021 lnp_state_machine methods.
9023 2017-04-04 Pedro Alves <palves@redhat.com>
9025 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9026 unittests/offset-type-selftests.c.
9027 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9028 * common/offset-type.h: New file.
9029 * common/preprocessor.h: New file.
9030 * common/traits.h: New file.
9031 * common/valid-expr.h: New file.
9032 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9033 sect_offset and cu_offset strong typedefs throughout.
9034 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9035 typedefs throughout.
9036 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9037 sect_offset and cu_offset strong typedefs throughout.
9038 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9039 typedefs throughout.
9040 * gdbtypes.h: Include "common/offset-type.h".
9041 (cu_offset): Now an offset type (strong typedef) instead of a
9043 (sect_offset): Likewise.
9044 (union call_site_parameter_u): Rename "param_offset" field to
9046 * unittests/offset-type-selftests.c: New file.
9048 2017-04-04 Pedro Alves <palves@redhat.com>
9050 * common/underlying.h: New file.
9051 * dwarf2read.c: Include "common/gdb_optional.h" and
9052 "common/underlying.h".
9053 (dir_index, file_name_index): New types.
9054 (file_entry): Use them.
9055 (file_entry::include): Use to_underlying.
9056 (line_header::add_file_name): Use dir_index.
9057 (read_formatted_entries): Use gdb::optional. Read form before
9058 writting to file_entry.
9059 (dwarf_decode_line_header): Use dir_index.
9060 (lnp_state_machine::current_file): Use to_underlying.
9061 (lnp_state_machine::file): Change type to file_name_index.
9062 (dwarf_record_line): Use to_underlying.
9063 (init_lnp_state_machine): Use file_name_index.
9064 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9066 2017-04-04 Pedro Alves <palves@redhat.com>
9068 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9069 operator bool, has_value and get methods.
9071 2017-04-04 Pedro Alves <palves@redhat.com>
9073 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9075 (line_header): Initialize all data fields. Change type of
9076 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9077 Change type of include_dirs to std::vector<const char *>. Remove
9078 num_include_dirs, include_dirs_size. Change type of file_names to
9079 std::vector<file_entry>. Remove num_file_names, file_names_size.
9080 (line_header::line_header): New.
9081 (line_header::add_include_dir, line_header::add_file_name): New
9083 (line_header::include_dir_at): Remove NULL check.
9084 (line_header::file_name_at): Add const overload.
9085 (line_header_up): New unique_ptr typedef.
9086 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9087 std::vector. Remove free_line_header call.
9088 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9089 free_line_header call.
9090 (free_cu_line_header): Delete.
9091 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9092 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9093 Adjust to use std::vector.
9094 (free_line_header): Delete.
9095 (free_line_header_voidp): Use delete.
9096 (add_include_dir): Replace with ...
9097 (line_header::add_include_dir): ... this method. Use std::vector.
9098 (add_file_name): Replace with ...
9099 (line_header::add_file_name): ... this method. Use std::vector.
9100 (add_include_dir_stub): Delete.
9101 (read_formatted_entries): Remove memset.
9102 (dwarf_decode_line_header): Return a line_header_up instead of a
9103 raw pointer. Remove cleanup handling. Pass lambdas to
9104 read_formatted_entries. Adjust to use line_header methods.
9105 (dwarf_decode_lines_1): Adjust to use line_header methods.
9106 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9109 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9111 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9112 instead of struct ptid.
9114 2017-05-04 Alan Hayward <alan.hayward@arm.com>
9116 * frame.c (get_frame_register_bytes): Unwind using value.
9117 (put_frame_register_bytes): Likewise.
9119 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9121 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9124 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9126 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9128 2017-03-29 Yao Qi <yao.qi@linaro.org>
9130 * gdbthread.h (struct thread_info): Declare constructor and
9131 destructor. Add some in-class member initializers.
9132 * thread.c (free_thread): Remove.
9133 (init_thread_list): Call delete instead of free_thread.
9134 (new_thread): Call thread_info constructor.
9135 (thread_info::thread_info): New function.
9136 (thread_info::~thread_info): New function.
9137 (delete_thread_1): Call delete instead of free_thread.
9138 (make_cleanup_restore_current_thread): Move tp and frame to
9141 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9143 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9144 (arc_skip_prologue): Likewise.
9145 (arc_make_frame_cache): Likewise.
9146 (arc_pv_get_operand): New function.
9147 (arc_is_in_prologue): Likewise.
9148 (arc_analyze_prologue): Likewise.
9149 (arc_print_frame_cache): Likewise.
9150 (MAX_PROLOGUE_LENGTH): New constant.
9152 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9154 * configure.tgt: Add arc-insn.o.
9155 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9156 (dump_arc_instruction_command): New function.
9157 (arc_fprintf_disasm): Likewise.
9158 (arc_disassemble_info): Likewise.
9159 (arc_insn_get_operand_value): Likewise.
9160 (arc_insn_get_operand_value_signed): Likewise.
9161 (arc_insn_get_memory_base_reg): Likewise.
9162 (arc_insn_get_memory_offset): Likewise.
9163 (arc_insn_get_branch_target): Likewise.
9164 (arc_insn_dump): Likewise.
9165 (arc_insn_get_linear_next_pc): Likewise.
9166 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9167 (arc_disassemble_info): Likewise.
9168 (arc_insn_get_branch_target): Likewise.
9169 (arc_insn_get_linear_next_pc): Likewise.
9170 * NEWS: Mention new "maint print arc arc-instruction".
9172 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9174 * arc-tdep (maintenance_print_arc_list): New variable.
9175 (maintenance_print_arc_command): New function.
9177 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9179 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9180 Add "limm" and "reserved".
9181 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9182 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9183 * arc-tdep.h (arc_regnum): Likewise.
9185 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9187 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9188 for THREADPTR register.
9189 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9191 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9192 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9193 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9195 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9197 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9198 registers above gdbarch_num_regs (gdbarch) as privileged in
9201 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9203 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9204 for a single specified register or for all registers in
9205 a0_base..a0_base + C0_NREGS range.
9206 (supply_gregset_reg): Call regcache_raw_supply for a single
9207 specified register or for all registers in a0_base..a0_base +
9210 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9212 * arch/xtensa.h (C0_NREGS): Add definition.
9213 * xtensa-tdep.c (C0_NREGS): Remove definition.
9215 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9217 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9218 Drop xtensa_default_isa initialization.
9219 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9221 2017-03-27 Pedro Alves <palves@redhat.com>
9223 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9224 (file_entry::include_dir): New method.
9225 (line_header::include_dir_at, line_header::file_name_at): New
9227 (setup_type_unit_groups, setup_type_unit_groups)
9228 (psymtab_include_file_name): Simplify using the new methods.
9229 (lnp_state_machine) <the_line_header>: New field.
9230 <file>: Add comment.
9231 (lnp_state_machine::current_file): New method.
9232 (dwarf_record_line): Simplify using the new methods.
9233 (init_lnp_state_machine): Initialize the "the_line_header" field.
9234 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9235 Simplify using the new methods.
9237 2017-03-27 Pedro Alves <palves@redhat.com>
9239 * cp-name-parser.y (make_empty): Delete.
9240 (demangler_special, nested_name, ptr_operator, array_indicator)
9241 (direct_declarator, declarator_1): Use fill_comp instead of
9244 2017-03-27 Pedro Alves <palves@redhat.com>
9246 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9247 to ATTRIBUTE_PRINTF.
9248 * solib-target.c (library_list_start_list): Print "string" not
9250 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9253 2017-03-27 Pedro Alves <palves@redhat.com>
9255 * dwarf2read.c (struct file_and_directory): New.
9256 (dwarf2_get_dwz_file): Adjust to use std::string.
9257 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9258 (find_file_and_directory): Adjust to return a file_and_directory
9260 (read_file_scope): Adjust to use file_and_directory. Remove
9261 make_cleanup/do_cleanups calls.
9262 (open_and_init_dwp_file): Adjust to use std::string. Remove
9263 make_cleanup/do_cleanups calls.
9264 * python/python.c (do_start_initialization): Adjust to ldirname
9265 returning a std::string.
9266 * utils.c (ldirname): Now returns a std::string.
9267 * utils.h (ldirname): Change return type to std::string.
9268 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9269 returning a std::string.
9270 * xml-tdesc.c (file_read_description_xml): Likewise.
9272 2017-03-24 Alan Hayward <alan.hayward@arm.com>
9274 * regcache.c (regcache_debug_print_register): New function.
9275 * regcache.h (regcache_debug_print_register): New declaration.
9276 * target.c (debug_print_register): Remove.
9277 (target_fetch_registers): Call regcache_debug_print_register.
9278 (target_store_registers): Likewise.
9280 2017-03-24 Pádraig Brady <pbrady@fb.com>
9282 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9283 reference beyond the 'lh->include_dirs' array before accessing to
9285 (psymtab_include_file_name): Likewise.
9286 (dwarf_decode_lines_1): Likewise.
9287 (dwarf_decode_lines): Likewise.
9288 (file_file_name): Likewise.
9290 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9292 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9294 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9295 ps_lsetfpregs): Likewise.
9296 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9297 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9298 ps_lsetfpregs): Likewise.
9299 * target.c (target_fetch_registers, target_store_registers):
9302 2017-03-23 Alan Hayward <alan.hayward@arm.com>
9304 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9306 2017-03-23 Yao Qi <yao.qi@linaro.org>
9308 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9309 (_initialize_aarch64_tdep): Register it.
9310 (aarch64_record_load_store): Handle PRFM instruction.
9311 (aarch64_process_record_test): New function.
9313 2017-03-23 Yao Qi <yao.qi@linaro.org>
9315 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9318 2017-03-23 Yao Qi <yao.qi@linaro.org>
9320 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9322 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9324 python/python.c (do_start_initialization): Fix memory leak.
9326 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9328 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9329 using get_ptrace_pid.
9330 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9332 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9333 inferior_ptid instead of pid.
9335 2017-03-22 Yao Qi <yao.qi@linaro.org>
9337 * aarch64-tdep.c: Wrap locally used classes in anonymous
9339 * arm-tdep.c: Likewise.
9340 * linespec.c: Likewise.
9341 * ui-out.c: Likewise.
9343 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
9346 * python/lib/gdb/printer/bound_registers.py: Import sys.
9348 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9350 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9351 windows_thread_info parameter and use it instead of
9353 (windows_fetch_inferior_registers): Don't set current_thread,
9354 pass the thread to do_windows_fetch_inferior_registers. Use
9355 ptid from regcache instead of inferior_ptid.
9356 (do_windows_store_inferior_registers): Add windows_thread_info
9357 parameter and use it instead of current_thread.
9358 (windows_store_inferior_registers): Don't set current_thread,
9359 pass the thread to do_windows_store_inferior_registers. Use
9360 ptid from regcache instead of inferior_ptid.
9362 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9364 * ser-mingw.c (ser_windows_raw): Remove reference to
9365 struct serial::current_timeout.
9367 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9370 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9371 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9372 (sparc64_fsr_type): Fix %fsr decoding.
9374 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9376 * python/py-record-btrace.c (btpy_insn_data): Change return type
9379 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9381 * spu-linux-nat.c (spu_fetch_inferior_registers,
9382 spu_store_inferior_registers): Use ptid from regcache, set and
9383 restore inferior_ptid.
9384 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9387 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9389 * i386-linux-nat.c (fetch_register, store_register,
9390 i386_linux_fetch_inferior_registers,
9391 i386_linux_store_inferior_registers): Use ptid from regcache.
9392 * ia64-linux-nat.c (ia64_linux_fetch_register,
9393 ia64_linux_store_register): Likewise.
9394 * inf-ptrace.c (inf_ptrace_fetch_register,
9395 inf_ptrace_store_register): Likewise.
9396 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9397 m32r_linux_store_inferior_registers): Likewise.
9398 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9399 m68kbsd_store_inferior_registers): Likewise.
9400 * m68k-linux-nat.c (fetch_register, store_register,
9401 m68k_linux_fetch_inferior_registers,
9402 m68k_linux_store_inferior_registers): Likewise.
9403 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9404 m88kbsd_store_inferior_registers): Likewise.
9405 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9406 mips_fbsd_store_inferior_registers): Likewise.
9407 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9408 mips64_linux_regsets_store_registers): Likewise.
9409 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9410 mipsnbsd_store_inferior_registers): Likewise.
9411 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9412 mips64obsd_store_inferior_registers): Likewise.
9413 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9415 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9416 ppcfbsd_store_inferior_registers): Likewise.
9417 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9418 ppc_linux_store_inferior_registers): Likewise.
9419 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9420 ppcnbsd_store_inferior_registers): Likewise.
9421 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9422 ppcobsd_store_registers): Likewise.
9423 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9425 * ravenscar-thread.c (ravenscar_fetch_registers,
9426 ravenscar_store_registers, ravenscar_prepare_to_store):
9428 * record-btrace.c (record_btrace_fetch_registers,
9429 record_btrace_store_registers, record_btrace_prepare_to_store):
9431 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9432 Lookup inferior using ptid from regcache, instead of
9434 * remote.c (remote_fetch_registers, remote_store_registers): Use
9436 * rs6000-nat.c (fetch_register, store_register): Likewise.
9437 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9438 s390_linux_store_inferior_registers): Likewise.
9439 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9440 shnbsd_store_inferior_registers): Likewise.
9441 * sol-thread.c (sol_thread_fetch_registers,
9442 sol_thread_store_registers): Likewise.
9443 * sparc-nat.c (sparc_fetch_inferior_registers,
9444 sparc_store_inferior_registers): Likewise.
9445 * tilegx-linux-nat.c (fetch_inferior_registers,
9446 store_inferior_registers): Likewise.
9447 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9448 vaxbsd_store_inferior_registers): Likewise.
9449 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9450 store_xtregs): Likewise.
9452 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9455 * NEWS: Mention support for rvalue references in GDB and python.
9456 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9457 supports both lvalue and rvalue references.
9459 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9462 * gdbtypes.c (rank_one_type): Implement overloading
9463 resolution rules regarding rvalue references.
9465 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9468 * aarch64-tdep.c (aarch64_type_align)
9469 (aarch64_extract_return_value, aarch64_store_return_value): Change
9470 lvalue reference type checks to general reference type checks.
9471 * amd64-tdep.c (amd64_classify): Likewise.
9472 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9474 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9475 (arm_store_return_value): Likewise.
9476 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9477 * c-typeprint.c (c_print_type): Likewise.
9478 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9479 (cplus_number_of_children, cplus_describe_child): Likewise.
9480 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9481 * completer.c (expression_completer): Likewise.
9482 * cp-support.c (make_symbol_overload_list_adl_namespace):
9484 * darwin-nat-info.c (info_mach_region_command): Likewise.
9485 * dwarf2loc.c (entry_data_value_coerce_ref)
9486 (value_of_dwarf_reg_entry): Likewise.
9487 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9488 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9490 * findvar.c (extract_typed_address, store_typed_address):
9492 * gdbtypes.c (rank_one_type): Likewise.
9493 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9494 * infcall.c (value_arg_coerce): Likewise.
9495 * language.c (pointer_type): Likewise.
9496 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9498 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9499 * mn10300-tdep.c (mn10300_type_align): Likewise.
9500 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9501 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9502 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9504 * printcmd.c (print_formatted, x_command): Likewise.
9505 * python/py-type.c (typy_get_composite, typy_template_argument):
9507 * python/py-value.c (valpy_referenced_value)
9508 (valpy_get_dynamic_type, value_has_field): Likewise.
9509 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9510 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9511 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9512 * spu-tdep.c (spu_scalar_value_p): Likewise.
9513 * symtab.c (lookup_symbol_aux): Likewise.
9514 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9515 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9517 * valops.c (value_cast_pointers, value_cast)
9518 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9519 (value_struct_elt, value_struct_elt_bitpos)
9520 (value_find_oload_method_list, find_overload_match)
9521 (value_rtti_indirect_type): Likewise.
9522 * valprint.c (val_print_scalar_type_p, generic_val_print):
9524 * value.c (value_actual_type, value_as_address, unpack_long)
9525 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9526 (coerce_ref): Likewise.
9527 * varobj.c (varobj_get_value_type): Likewise.
9529 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9532 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9534 * python/lib/gdb/command/explore.py: Support exploring values
9535 of rvalue reference types.
9536 * python/lib/gdb/types.py: Implement get_basic_type() for
9537 rvalue reference types.
9538 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9540 * python/py-value.c (valpy_getitem): Add an rvalue reference
9542 (valpy_reference_value): Add new parameter "refcode".
9543 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9544 New wrappers for valpy_reference_value().
9545 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9546 (gdbpy_invoke_xmethod): Likewise.
9548 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9551 * dwarf2read.c (process_die, read_type_die_1): Handle the
9552 DW_TAG_rvalue_reference_type DIE.
9553 (read_tag_reference_type): Add new parameter "refcode".
9555 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9558 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9559 (c_type_print_modifier, c_type_print_varspec_suffix)
9560 (c_type_print_base): Support printing rvalue reference types.
9561 * c-valprint.c (c_val_print, c_value_print): Support printing
9562 rvalue reference values.
9564 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9567 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9569 * cp-support.c (replace_typedefs): Handle
9570 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9571 * python/py-type.c (typy_lookup_type): Likewise.
9573 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9576 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9577 * parse.c (insert_type): Change assert statement.
9578 (follow_types): Handle rvalue reference types.
9579 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9582 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9585 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9586 value_ref() interface.
9587 * c-valprint.c (c_value_print): Likewise.
9588 * infcall.c (value_arg_coerce): Likewise.
9589 * python/py-value.c (valpy_reference_value): Likewise.
9590 * valops.c (value_cast, value_reinterpret_cast)
9591 (value_dynamic_cast, typecmp): Likewise.
9592 (value_ref): Parameterize by kind of return value reference type.
9593 * value.h (value_ref): Add new parameter "refcode".
9595 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9598 * dwarf2read.c (read_tag_reference_type): Use
9599 lookup_lvalue_reference_type() instead of lookup_reference_type().
9600 * eval.c (evaluate_subexp_standard): Likewise.
9601 * f-exp.y: Likewise.
9602 * gdbtypes.c (make_reference_type, lookup_reference_type):
9603 Generalize with rvalue reference types.
9604 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9605 convenience wrappers for lookup_reference_type().
9606 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9607 reference kind parameter.
9608 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9609 wrappers for lookup_reference_type().
9610 * guile/scm-type.c (gdbscm_type_reference): Use
9611 lookup_lvalue_reference_type() instead of lookup_reference_type().
9612 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9613 * parse.c (follow_types): Likewise.
9614 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9615 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9617 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9618 (gdbpy_invoke_xmethod): Likewise.
9619 * stabsread.c: Provide extra argument to make_reference_type()
9621 * valops.c (value_ref, value_rtti_indirect_type): Use
9622 lookup_lvalue_reference_type() instead of lookup_reference_type().
9624 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9627 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9628 (TYPE_IS_REFERENCE): New macro.
9629 (struct type): Add rvalue_reference_type field.
9630 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9632 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9634 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9635 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9636 New function definition.
9637 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9638 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9639 New function declaration.
9640 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9641 * mi/mi-interp.h: New file.
9642 * solib.c (info_sharedlibrary_command): Replace for loop with
9644 * solib.h (update_solib_list): New function declaration.
9645 (so_list_head): Move macro.
9646 * solist.h (ALL_SO_LIBS): New macro.
9648 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9650 * infcmd.c (post_create_inferior): Remove unused argument in
9652 * remote.c (remote_start_remote): Likewise.
9653 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9654 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9655 (enable_break): Likewise.
9656 * solib.c (update_solib_list): Remove unused target argument
9657 and its documentation.
9658 (solib_add): Remove unused target argument. Remove unused
9659 argument in call to update_solib_list.
9660 (info_sharedlibrary_command): Remove unused argument in call
9661 to update_solib_list.
9662 (sharedlibrary_command): Remove unused argument in call to
9664 (handle_solib_event): Likewise.
9665 (reload_shared_libraries): Likewise.
9666 * solib.h (solib_add): Remove unused target argument.
9668 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9670 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9671 (s390_displaced_step_fixup): Cover relative branches with the
9672 default fixup handling. This fixes lack of support for some
9673 relative branch instructions.
9675 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9677 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9680 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9682 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9683 i386_darwin_store_inferior_registers): Use ptid from regcache.
9685 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9687 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9688 i386bsd_store_inferior_registers): Use ptid from regcache.
9690 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9692 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9693 hppaobsd_store_registers): Use ptid from regcache.
9695 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9697 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9698 hppanbsd_store_registers): Use ptid from regcache.
9700 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9702 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9703 from regcache. Use get_ptrace_pid.
9705 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9707 * corelow.c (get_core_register_section): Use ptid from regcache,
9710 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9712 * bsd-uthread.c (bsd_uthread_fetch_registers,
9713 bsd_uthread_store_registers): Use ptid from regcache, set and
9714 restore inferior_ptid.
9716 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9718 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9719 fetch_fp_regs, store_register, store_regs, store_fp_register,
9720 store_fp_regs): Use ptid from regcache.
9722 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9724 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9725 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9726 store_vfp_regs): Use ptid from regcache.
9728 2017-03-17 Pedro Alves <palves@redhat.com>
9731 * ser-base.c (ser_base_wait_for): Add comment.
9732 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9734 * ser-unix.c (hardwire_raw): Remove reference to
9735 scb->current_timeout.
9736 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9737 (hardwire_ops): Install ser_base_readchar instead of
9739 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9742 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
9745 * python/lib/gdb/printer/bound_registers.py: Add support for
9748 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9750 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9751 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9752 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9753 byte_offset to subobj_byte_offset. Fix the handling of
9754 DWARF_VALUE_STACK on big-endian targets when coming via an
9756 (dwarf2_evaluate_loc_desc): Adjust call to
9757 dwarf2_evaluate_loc_desc_full.
9758 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9759 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9761 2017-03-16 Yao Qi <yao.qi@linaro.org>
9763 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9764 and REVSH instructions.
9766 2017-03-16 Yao Qi <yao.qi@linaro.org>
9768 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9769 (arm_record_test): Declare.
9770 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9771 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9772 align with the manual.
9773 (thumb_record_misc): Adjust the code order to align with the
9775 (thumb2_record_decode_insn_handler): Fix instruction matching.
9776 (instruction_reader_thumb): New class.
9777 (arm_record_test): New function.
9779 2017-03-16 Yao Qi <yao.qi@linaro.org>
9781 * arm-tdep.c (abstract_memory_reader): New class.
9782 (instruction_reader): New class.
9783 (extract_arm_insn): Add argument 'reader'. Callers updated.
9784 (decode_insn): Likewise.
9786 2017-03-16 Doug Evans <dje@google.com>
9788 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9789 member. Change type of TYPE member to SCM. All uses updated.
9790 (lsscm_make_lazy_string_smob): Add assert.
9791 (lsscm_make_lazy_string): Flag bad length values.
9792 (lsscm_elt_type): New function.
9793 (gdbscm_lazy_string_to_value): Rewrite to use
9794 lsscm_safe_lazy_string_to_value.
9795 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9796 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9797 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9799 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9800 * guile/scm-type.c (tyscm_scm_to_type): New function.
9802 2017-03-15 Doug Evans <dje@google.com>
9804 PR python/17728, python/18439, python/18779
9805 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9806 member. Change type of TYPE member to PyObject *. All uses updated.
9807 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9808 (gdbpy_create_lazy_string_object): Flag bad length values.
9809 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9810 Handle typedefs in incoming type.
9811 (stpy_lazy_string_elt_type): New function.
9812 (gdbpy_extract_lazy_string): Call it.
9813 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9814 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9815 typedefs in incoming type.
9817 2017-03-16 Doug Evans <dje@google.com>
9819 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9820 * guile/scm-type.c (tyscm_scm_to_type): New function.
9822 2017-03-16 Jiong Wang <jiong.wang@arm.com>
9824 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9825 "ULONGEST" for "skip".
9827 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9830 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9831 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9832 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9833 over ptrace peek/poke until end of buffer or error.
9835 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9837 * parse.c (length_of_subexp): Make static.
9838 * parser-defs.h (length_of_subexp): Remove.
9840 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9842 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9845 2017-03-14 Pedro Alves <palves@redhat.com>
9847 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9848 (main): Use std::unique_ptr. Remove calls to
9849 cp_demangled_name_parse_free.
9851 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9853 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9854 alphabsd_store_inferior_registers): Use regcache->ptid instead
9857 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9859 * aix-thread.c (aix_thread_fetch_registers,
9860 aix_thread_store_registers): Use regcache->ptid instead of
9863 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9865 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9866 store_gregs_to_thread, fetch_fpregs_from_thread,
9867 store_fpregs_to_thread): Use regcache->ptid instead of
9870 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9872 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9873 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9874 instead of inferior_ptid.
9876 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9878 * target.c (target_fetch_registers, target_store_registers): Add
9881 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9883 * regcache.h (regcache_get_ptid): New function.
9884 * regcache.c (regcache_get_ptid): New function.
9886 2017-03-13 Mark Wielaard <mark@klomp.org>
9888 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9890 2017-03-10 Keith Seitz <keiths@redhat.com>
9893 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9895 2017-03-08 Pedro Alves <palves@redhat.com>
9898 * infrun.c (start_step_over, do_target_resume, resume)
9899 (restart_threads): Assert we're not resuming a thread that is
9900 meant to be stopped.
9901 (infrun_thread_stop_requested_callback): Delete.
9902 (infrun_thread_stop_requested): If the thread is internally
9903 stopped, queue a pending stop event and clear the thread's
9905 (handle_stop_requested): New function.
9906 (handle_syscall_event, handle_inferior_event_1): Use
9907 handle_stop_requested.
9908 (handle_stop_requested): New function.
9909 (handle_signal_stop): Set the thread's stop_signal here instead of
9911 (finish_step_over): Clear step over info unconditionally.
9912 (handle_signal_stop): If the user had interrupted the event
9913 thread, consider the stop a random signal.
9914 (handle_signal_stop) <signal arrived while stepping over
9915 breakpoint>: Don't restart threads here.
9916 (stop_waiting): Don't clear step-over info here.
9918 2017-03-08 Pedro Alves <palves@redhat.com>
9921 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9922 goes to argument 2, not 1.
9924 2017-03-08 Pedro Alves <palves@redhat.com>
9927 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9929 (command_line_input): Add comment.
9931 2017-03-08 Pedro Alves <palves@redhat.com>
9934 * tui/tui-file.c (tui_file::write): New.
9935 * tui/tui-file.h (tui_file): Override "write".
9936 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9937 factored out from ...
9938 (tui_puts): ... here.
9939 (tui_putc): Use them.
9940 (tui_write): New function.
9941 * tui/tui-io.h (tui_write): Declare.
9943 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9945 * Makefile.in (SFILES): Replace "environ.c" with
9947 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9948 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9950 * common/environ.c: ... here.
9951 * environ.h: Moved to...
9952 * common/environ.h: ... here.
9954 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9956 * gdbarch.sh (pstring_ptr): New static function.
9957 (gdbarch_disassembler_options): Use it.
9958 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9959 not valid_disassembler_option->name.
9960 * gdbarch.c: Regenerate.
9962 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9964 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9966 2017-03-07 Pedro Alves <palves@redhat.com>
9968 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9970 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
9972 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9973 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9974 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
9975 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
9977 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9979 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9981 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9983 * remote.c (remote_add_target_side_commands): Use range-based
9986 2017-03-03 Yao Qi <yao.qi@linaro.org>
9989 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9991 * valprint.c (common_val_print): Likewise.
9993 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9995 * NEWS: Mention new set/show disassembler-options commands.
9996 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9997 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9998 (prospective_options): New static variable.
9999 (gdb_disassembler::gdb_disassembler): Initialize
10000 m_di.disassembler_options.
10001 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10002 (get_disassembler_options): New function.
10003 (set_disassembler_options): Likewise.
10004 (set_disassembler_options_sfunc): Likewise.
10005 (show_disassembler_options_sfunc): Likewise.
10006 (disassembler_options_completer): Likewise.
10007 (_initialize_disasm): Likewise.
10008 * disasm.h (get_disassembler_options): New prototype.
10009 (set_disassembler_options): Likewise.
10010 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10011 (gdbarch_verify_disassembler_options): Likewise.
10012 * gdbarch.c: Regenerate.
10013 * gdbarch.h: Likewise.
10014 * arm-tdep.c (num_disassembly_options): Delete.
10015 (set_disassembly_style): Likewise.
10016 (arm_disassembler_options): New static variable.
10017 (set_disassembly_style_sfunc): Convert short style name into long
10018 option name. Call set_disassembler_options.
10019 (show_disassembly_style_sfunc): New function.
10020 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10021 set_gdbarch_verify_disassembler_options.
10022 (_initialize_arm_tdep): Delete regnames variable and update callers.
10023 (arm_disassembler_options): Initialize.
10024 (disasm_options): New variable.
10025 (num_disassembly_options): Rename from this...
10026 (num_disassembly_styles): ...to this. Compute by scanning through
10028 (valid_disassembly_styles): Initialize using disasm_options.
10029 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10030 set_arm_regname_option.
10031 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10032 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10033 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10034 set_gdbarch_verify_disassembler_options.
10035 * s390-tdep.c (s390_disassembler_options): New static variable.
10036 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10037 set_gdbarch_verify_disassembler_options.
10039 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10041 * remote.c (remote_add_target_side_condition): Remove "struct"
10042 keyword from range-based for loop.
10044 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10046 * remote.c (remote_add_target_side_condition): Use range-based
10047 for loop. Update comment.
10049 2017-02-27 Yao Qi <yao.qi@linaro.org>
10051 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10053 2017-02-26 Alan Hayward <alan.hayward@arm.com>
10055 * regcache.c (regcache_raw_update): New function.
10056 (regcache_raw_read): Move code to regcache_raw_update.
10057 * regcache.h (regcache_raw_update): New declaration.
10058 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10060 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10062 * dwarf2read.c (create_debug_type_hash_table): Initialize
10063 header.signature and header.type_offset_in_tu.
10065 2017-02-24 Pedro Alves <palves@redhat.com>
10067 * symtab.c (make_file_symbol_completion_list_1): Use
10068 add_symtab_completions.
10070 2017-02-24 Alan Hayward <alan.hayward@arm.com>
10072 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10074 2017-02-24 Alan Hayward <alan.hayward@arm.com>
10076 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10077 I386_MAX_REGISTER_SIZE.
10078 (i386_pseudo_register_write): Likewise.
10079 (i386_process_record): Likewise.
10080 * i387-tdep.c (i387_supply_xsave): Likewise.
10081 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10082 (store_register): Likewise.
10084 2017-02-23 Pedro Alves <palves@redhat.com>
10086 * ada-lang.c: Include "common/function-view.h".
10087 (ada_iterate_over_symbols): Adjust to use function_view as
10089 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10090 (ada_make_symbol_completion_list): Use a lambda.
10091 (ada_exc_search_name_matches): Delete.
10092 (name_matches_regex): New.
10093 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10094 * compile/compile-c-support.c: Include "common/function-view.h".
10095 (print_one_macro): Change prototype to accept a ui_file pointer.
10096 (write_macro_definitions): Use a lambda.
10097 * dwarf2read.c: Include "common/function-view.h".
10098 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10099 (dw2_expand_symtabs_matching): Adjust to use function_view as
10101 * language.h: Include "common/function-view.h".
10102 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10103 function_view as callback type.
10104 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10105 * linespec.c: Include "common/function-view.h".
10106 (collect_info::add_symbol): New method.
10107 (struct symbol_and_data_callback, iterate_inline_only, struct
10108 symbol_matcher_data, iterate_name_matcher): Delete.
10109 (iterate_over_all_matching_symtabs): Adjust to use function_view
10110 as callback type and lambdas.
10111 (iterate_over_file_blocks): Adjust to use function_view as
10113 (decode_compound_collector): Now a class with private fields.
10114 (decode_compound_collector::release_symbols): New method.
10115 (collect_one_symbol): Rename to...
10116 (decode_compound_collector::operator()): ... this and adjust.
10117 (lookup_prefix_sym): decode_compound_collector construction bits
10118 move to decode_compound_collector ctor. Pass the
10119 decode_compound_collector object directly as callback. Remove
10120 cleanups and use decode_compound_collector::release_symbols
10122 (symtab_collector): Now a class with private fields.
10123 (symtab_collector::release_symtabs): New method.
10124 (add_symtabs_to_list): Rename to...
10125 (symtab_collector::operator()): ... this and adjust.
10126 (collect_symtabs_from_filename): symtab_collector construction
10127 bits move to symtab_collector ctor. Pass the symtab_collector
10128 object directly as callback. Remove cleanups and use
10129 symtab_collector::release_symtabs instead.
10130 (collect_symbols): Delete.
10131 (add_matching_symbols_to_info): Use lambdas.
10132 * macrocmd.c (print_macro_callback): Delete.
10133 (info_macro_command): Use a lambda.
10134 (info_macros_command): Pass print_macro_definition as callable
10136 (print_one_macro): Remove 'ignore' parameter.
10137 (macro_list_command): Adjust.
10138 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10139 (macro_for_each_data::user_data): Delete field.
10140 (foreach_macro): Adjust to call the function_view.
10141 (macro_for_each): Adjust to use function_view as callback type.
10142 (foreach_macro_in_scope): Adjust to call the function_view.
10143 (macro_for_each_in_scope): Adjust to use function_view as callback
10145 * macrotab.h: Include "common/function-view.h".
10146 (macro_callback_fn): Declare a prototype instead of a pointer.
10147 Remove "user_data" parameter.
10148 (macro_for_each, macro_for_each_in_scope): Adjust to use
10149 function_view as callback type.
10150 * psymtab.c (partial_map_expand_apply)
10151 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10152 Adjust to use function_view as callback type and to return bool.
10153 (psym_expand_symtabs_matching): Adjust to use function_view as
10155 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10156 to use function_view as callback type and to return bool.
10157 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10159 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10161 * symfile.h: Include "common/function-view.h".
10162 (expand_symtabs_file_matcher_ftype)
10163 (expand_symtabs_symbol_matcher_ftype)
10164 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10166 (quick_symbol_functions::map_symtabs_matching_filename)
10167 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10168 function_view as callback type and return bool.
10169 (expand_symtabs_matching): Adjust to use function_view as callback
10171 (maintenance_expand_name_matcher)
10172 (maintenance_expand_file_matcher): Delete.
10173 (maintenance_expand_symtabs): Use lambdas.
10174 * symtab.c (iterate_over_some_symtabs): Adjust to use
10175 function_view as callback types and return bool.
10176 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10178 (lookup_symtab_callback): Delete.
10179 (lookup_symtab): Use a lambda.
10180 (iterate_over_symbols): Adjust to use function_view as callback
10182 (struct search_symbols_data, search_symbols_file_matches)
10183 (search_symbols_name_matches): Delete.
10184 (search_symbols): Use a pair of lambdas.
10185 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10186 (symtab_expansion_callback): Delete.
10187 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10188 * symtab.h: Include "common/function-view.h".
10189 (iterate_over_some_symtabs): Adjust to use function_view as
10190 callback type and return bool.
10191 (iterate_over_symtabs): Adjust to use function_view as callback
10193 (symbol_found_callback_ftype): Remove 'data' parameter and return
10195 (iterate_over_symbols): Adjust to use function_view as callback
10198 2017-02-23 Pedro Alves <palves@redhat.com>
10200 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10201 (%.o) <unittests/%.c>: New pattern.
10202 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10203 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10204 * common/function-view.h: New file.
10205 * unittests/function-view-selftests.c: New file.
10206 * configure: Regenerate.
10208 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10210 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10212 * go32-nat.c (go32_thread_alive): Likewise.
10214 2017-02-23 Yao Qi <yao.qi@linaro.org>
10216 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10219 2017-02-23 Yao Qi <yao.qi@linaro.org>
10221 * varobj.c (varobj_clear_saved_item): Use delete instead of
10223 (update_dynamic_varobj_children): Likewise.
10225 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10227 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10229 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10231 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10232 m_enum_value to 0 in default constructor.
10234 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10236 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10237 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10238 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10239 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10240 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10241 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10242 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10243 IS_STORE_CONDITIONAL_INSN.
10245 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10247 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10249 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10251 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10253 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10255 * dwarf2read.c (skip_one_die, read_attribute_value)
10256 (dwarf2_const_value_attr, dump_die_shallow)
10257 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10258 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10260 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10262 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10263 (dwarf_parse_macro_header): Accept DWARF version 5.
10264 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10266 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10268 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10270 * common/common-exceptions.h (enum errors): Likewise.
10271 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10272 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10273 (dwarf_expr_context::execute_stack_op): Likewise.
10274 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10276 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10277 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10278 (show_entry_values_debug, call_site_to_target_addr)
10279 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10280 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10281 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10282 (value_of_dwarf_block_entry, indirect_pieced_value)
10283 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10284 (disassemble_dwarf_expression): Likewise.
10285 * dwarf2read.c (process_die, inherit_abstract_dies)
10286 (read_call_site_scope): Likewise.
10287 * gdbtypes.h (struct func_type, struct call_site_parameter)
10288 (struct call_site): Likewise.
10289 * stack.c (read_frame_arg): Likewise.
10290 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10292 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10294 * defs.h (read_unsigned_leb128): New declaration.
10295 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10296 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10297 (dwarf2_find_location_expression): Call also
10298 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10299 * dwarf2loc.h (dwarf2_version): New declaration.
10300 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10302 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10304 (struct dwop_section_names): Add loclists_dwo.
10305 (dwop_section_names): Add .debug_loclists.dwo.
10306 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10307 (struct dwarf2_per_cu_data): Add dwarf_version.
10308 (struct dwo_sections): Add loclists.
10309 (struct attr_abbrev): Add implicit_const.
10310 (read_indirect_line_string): New declaration.
10311 (read_unsigned_leb128): Delete declaration.
10312 (rcuh_kind): New definition.
10313 (read_and_check_comp_unit_head): Change parameter
10314 is_debug_types_section to section_kind.
10315 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10316 (read_comp_unit_head): Change parameter abfd to section, add parameter
10317 section_kind. Handle DWARF-5.
10318 (error_check_comp_unit_head): Accept also DWARF version 5.
10319 (read_and_check_comp_unit_head): Change parameter
10320 is_debug_types_section to section_kind.
10321 (read_and_check_type_unit_head): Delete function.
10322 (read_abbrev_offset): Handle DWARF-5.
10323 (create_debug_type_hash_table): Add parameter section_kind. Process
10324 only DW_UT_type. Use signature and type_offset_in_tu from struct
10326 (create_debug_types_hash_table): Update create_debug_type_hash_table
10328 (create_all_type_units): Call create_debug_type_hash_table.
10329 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10330 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10332 (skip_one_die): Handle DW_FORM_implicit_const.
10333 (dwarf2_rnglists_process): New function.
10334 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10335 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10336 (read_attribute_value): Handle DW_FORM_implicit_const,
10338 (read_attribute): Handle DW_FORM_implicit_const.
10339 (read_indirect_string_at_offset_from): New function from
10340 read_indirect_string_at_offset.
10341 (read_indirect_string_at_offset): Call
10342 read_indirect_string_at_offset_from.
10343 (read_indirect_line_string_at_offset): New function.
10344 (read_indirect_string): New function comment.
10345 (read_indirect_line_string): New function.
10346 (read_unsigned_leb128): Make it global.
10347 (dwarf2_string_attr): Handle DWARF-5.
10348 (add_include_dir_stub, read_formatted_entries): New functions.
10349 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10351 (per_cu_header_read_in): Update read_comp_unit_head caller.
10352 (dwarf2_version): New function.
10353 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10355 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10358 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10360 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10362 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10364 * dwarf2read.c (dwarf2_ranges_process): New function from
10365 dwarf2_ranges_read.
10366 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10367 dwarf2_ranges_process.
10369 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10371 * dwarf2read.c (create_debug_type_hash_table): New function from
10372 create_debug_types_hash_table.
10373 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10374 (create_all_type_units, open_and_init_dwo_file): Update
10375 create_debug_types_hash_table callers.
10377 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10380 * fork-child.c (trace_start_error): Fix thinko. va_end should
10381 refer to 'ap', not 'args'.
10383 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10384 Pedro Alves <palves@redhat.com>
10387 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10389 * fork-child.c (trace_start_error): New function.
10390 (trace_start_error_with_name): Likewise.
10391 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10392 * inf-ptrace.c (inf_ptrace_me): Likewise.
10393 * inferior.h (trace_start_error): New prototype.
10394 (trace_start_error_with_name): Likewise.
10396 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10399 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10400 NULL before using it.
10401 * symmisc.c (maintenance_print_symbols): Likewise.
10402 (maintenance_print_msymbols): Likewise.
10404 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10406 * NEWS: Add record Python bindings entry.
10408 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10410 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10412 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10413 * python/py-record-btrace.c, python/py-record-btrace.h,
10414 python/py-record-full.c, python/py-record-full.h: New file.
10415 * python/py-record.c: Add include for py-record-btrace.h and
10417 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10418 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10419 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10420 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10422 (gdbpy_initialize_btrace): New export.
10423 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10425 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10427 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10428 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10429 * python/py-record.c: New file.
10430 * python/python-internal.h (gdbpy_start_recording,
10431 gdbpy_current_recording, gdpy_stop_recording,
10432 gdbpy_initialize_record): New export.
10433 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10434 (python_GdbMethods): Add gdbpy_start_recording,
10435 gdbpy_current_recording and gdbpy_stop_recording.
10437 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10439 * record-btrace.c (record_btrace_record_method): New function.
10440 (init_record_btrace_ops): Initialize to_record_method.
10441 * record-full.c (record_full_record_method): New function.
10442 (init_record_full_ops, init_record_full_core_ops): Add
10443 record_full_record_method.
10444 * record.h (enum record_method): New enum.
10445 * target-debug.h (target_debug_print_enum_record_method: New define.
10446 * target-delegates.c: Regenerate.
10447 * target.c (target_record_method): New function.
10448 * target.h: Include record.h.
10449 (struct target_ops) <to_record_method>: New field.
10450 (target_record_method): New export.
10452 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10454 * record.h (record_start, record_stop): New export.
10455 * record.c (record_start, record_stop): New function.
10457 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10459 * btrace.c (btrace_fetch): Copy function call segments pointer
10461 (btrace_clear): Clear the vector.
10462 (btrace_find_insn_by_number): Use binary search to find the correct
10463 function call segment.
10464 * btrace.h (brace_fun_p): New typedef.
10465 (struct btrace_thread_info) <functions>: New field.
10467 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10469 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10470 * btrace.c (btrace_decode_error): ... here. New function.
10471 * btrace.h (btrace_decode_error): New export.
10473 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10475 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10476 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10477 btrace_find_insn_by_number): Remove special case for gaps.
10478 * btrace.h (btrace_insn_get_error): New export.
10479 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10480 * record-btrace.c (btrace_insn_history): Print number for gaps.
10481 (record_btrace_info, record_btrace_goto): Handle gaps.
10483 2017-02-14 Tom Tromey <tom@tromey.com>
10486 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10488 * python/py-evts.c (gdbpy_initialize_py_events): Add
10489 before_prompt registry.
10490 * python/py-events.h (events_object) <before_prompt>: New field.
10492 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10494 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10496 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
10498 * symfile (_initialize_symfile): Add usage text to the load command's
10501 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10503 * utils.c (defaulted_query): Don't query on secondary UIs.
10505 2017-02-10 Tom Tromey <tom@tromey.com>
10507 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10509 2017-02-10 Tom Tromey <tom@tromey.com>
10511 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10513 * python/py-type.c (typy_legacy_template_argument): Remove
10514 unnecessary "cleanup" local.
10516 2017-02-10 Tom Tromey <tom@tromey.com>
10518 * python/python.c (do_start_initialization): New function, from
10519 _initialize_python.
10520 (_initialize_python): Call do_start_initialization.
10521 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10524 2017-02-10 Tom Tromey <tom@tromey.com>
10526 * python/py-prettyprint.c (pretty_print_one_value): Use
10529 2017-02-10 Tom Tromey <tom@tromey.com>
10531 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10532 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10534 * python/py-type.c (field_new): Use gdbpy_ref.
10535 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10537 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10538 (py_free_pspace): Likewise.
10539 (pspace_to_pspace_object): Likewise.
10540 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10541 (py_free_objfile): Likewise.
10542 (objfile_to_objfile_object): Likewise.
10543 * python/py-inferior.c (delete_thread_object): Use
10545 (infpy_read_memory): Likewise.
10546 (py_free_inferior): Likewise.
10547 * python/py-evtregistry.c (create_eventregistry_object): Use
10549 * python/py-event.c (create_event_object): Use gdbpy_ref.
10551 2017-02-10 Tom Tromey <tom@tromey.com>
10553 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10554 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10556 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10557 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10558 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10559 python/py-framefilter.c, python/py-function.c,
10560 python/py-inferior.c, python/py-infevents.c,
10561 python/py-linetable.c, python/py-newobjfileevent.c,
10562 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10563 python/py-signalevent.c, python/py-stopevent.c,
10564 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10565 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10566 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10567 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10569 2017-02-10 Tom Tromey <tom@tromey.com>
10571 * ui-out.h (ui_out_emit_type): New class.
10572 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10573 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10574 and ui_out_emit_tuple.
10575 (enumerate_locals): Likewise.
10576 (py_mi_print_variables, py_print_locals, py_print_args): Use
10578 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10580 * common/gdb_optional.h: New file.
10582 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10584 * MAINTAINERS (Write After Approval): Update my e-mail address.
10586 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10589 * breakpoint.c (_initialize_breakpoint): Update the help description
10590 of the 'commands' command to indicate that it takes a list argument.
10592 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10594 * interps.c (current_interp_set_logging): Remove "return".
10596 2017-02-09 Gary Benson <gbenson@redhat.com>
10598 * symtab.c (add_symtab_completions): Prevent NULL pointer
10601 2017-02-08 Pedro Alves <palves@redhat.com>
10603 * interps.c (interp::interp): Remove reference to quiet_p.
10604 (interp_set): Make static. Remove dead "Switching to" output
10606 (interp_quiet_p, interp_set_quiet): Delete.
10607 (interpreter_exec_cmd): Don't set the interpreter quiet.
10608 * interps.h (interp_quiet_p): Make static.
10609 (class interp) <quiet_p>: Remove field
10611 2017-02-08 Jerome Guitton <guitton@adacore.com>
10613 * cli/cli-decode.c (find_command_name_length): Make it extern.
10614 * cli/cli-decode.h (find_command_name_length): Declare.
10615 * cli/cli-script.c (command_name_equals, line_first_arg):
10617 (process_next_line): Use cli-decode to parse command names.
10618 (build_command_line): Make args a constant pointer.
10620 2017-02-08 Jerome Guitton <guitton@adacore.com>
10622 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10623 Remove case-insensitive search.
10625 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10627 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10628 at the end of the line. Avoids an ARI warning.
10630 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
10632 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10633 rdseed instructions.
10634 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10636 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10639 Provide and use sparc32 and sparc64 target description XML files.
10640 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10641 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10642 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10643 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10644 * features/sparc/sparc32-solaris.xml: New file.
10645 * features/sparc/sparc64-solaris.xml: New file.
10646 * features/sparc/sparc32-solaris.c: Generated.
10647 * features/sparc/sparc64-solaris.c: Generated.
10648 * sparc-tdep.h: Account for differences in target descriptions.
10649 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10650 (sparc32_register_type): Use target provided registers.
10651 (validate_tdesc_registers): New function.
10652 (sparc32_gdbarch_init): Use tdesc_has_registers.
10653 Set pseudoregister functions.
10654 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10655 (sparc64_register_type): Use target provided registers.
10656 (sparc64_init_abi): Set pseudoregister functions.
10658 2017-02-03 Tom Tromey <tom@tromey.com>
10661 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10662 with a single member.
10664 2017-02-03 Pedro Alves <palves@redhat.com>
10666 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10667 (cli_interp_base::~cli_interp_base): New.
10668 (cli_interp): New struct.
10669 (as_cli_interp): Cast the interp itself to cli_interp.
10670 (cli_interpreter_pre_command_loop): Rename to ...
10671 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10673 (cli_interpreter_init): Rename to ...
10674 (cli_interp::init): ... this. Remove 'self' parameter. Use
10675 boolean. Make extern.
10676 (cli_interpreter_resume): Rename to ...
10677 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10679 (cli_interpreter_suspend): Rename to ...
10680 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10682 (cli_interpreter_exec): Rename to ...
10683 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10685 (cli_interpreter_supports_command_editing): Rename to ...
10686 (cli_interp_base::supports_command_editing): ... this. Remove
10687 'interp' parameter. Make extern.
10688 (cli_ui_out): Rename to ...
10689 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10691 (cli_set_logging): Rename to ...
10692 (cli_interp_base::set_logging): ... this. Remove 'interp'
10693 parameter. Make extern.
10694 (cli_interp_procs): Delete.
10695 (cli_interp_factory): Adjust to use "new".
10696 * cli/cli-interp.h: Include "interps.h".
10697 (struct cli_interp_base): New struct.
10698 * interps.c (struct interp): Delete. Fields moved to interps.h.
10699 (interp_new): Delete.
10700 (interp::interp, interp::~interp): New.
10701 (interp_set): Use bool, and return void. Assume the interpreter
10702 has suspend, init and resume methods, and that the all return
10704 (set_top_level_interpreter): interp_set returns void.
10705 (interp_ui_out): Adapt.
10706 (current_interp_set_logging): Adapt.
10707 (interp_data): Delete.
10708 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10709 (interp_exec): Adapt.
10710 (top_level_interpreter_data): Delete.
10711 * interps.h (interp_init_ftype, interp_resume_ftype)
10712 (interp_suspend_ftype, interp_exec_ftype)
10713 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10714 (class interp): New.
10715 (interp_new): Delete.
10716 (interp_set): Now returns void. Use bool.
10717 (interp_data, top_level_interpreter_data): Delete.
10718 * mi/mi-common.h: Include interps.h.
10719 (class mi_interp): Inherit from interp. Define a ctor. Declare
10720 init, resume, suspect, exec, interp_ui_out, set_logging and
10721 pre_command_loop methods.
10722 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10723 (mi_interpreter_init): Rename to ...
10724 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10725 bool, return void and make extern. Adjust.
10726 (mi_interpreter_resume): ... Rename to ...
10727 (mi_interp::resume): ... this. Remove the 'data' parameter,
10728 return void and make extern. Adjust.
10729 (mi_interpreter_suspend): ... Rename to ...
10730 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10731 return void and make extern. Adjust.
10732 (mi_interpreter_exec): ... Rename to ...
10733 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10735 (mi_interpreter_pre_command_loop): ... Rename to ...
10736 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10737 parameter and make extern.
10738 (mi_on_normal_stop_1): Adjust.
10739 (mi_ui_out): Rename to ...
10740 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10741 parameter and make extern. Adjust.
10742 (mi_set_logging): Rename to ...
10743 (mi_interp::set_logging): ... this. Remove the 'interp'
10744 parameter and make extern. Adjust.
10745 (mi_interp_procs): Delete.
10746 (mi_interp_factory): Adjust to use 'new'.
10747 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10748 (mi_print_exception, mi_execute_command, mi_load_progress):
10750 * tui/tui-interp.c (tui_interp): New class.
10751 (as_tui_interp): Return a tui_interp pointer.
10752 (tui_on_normal_stop, tui_on_signal_received)
10753 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10754 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10755 to use interp::interp_ui_out.
10756 (tui_init): Rename to ...
10757 (tui_interp::init): ... this. Remove the 'self' parameter, use
10758 bool, return void and make extern. Adjust.
10759 (tui_resume): Rename to ...
10760 (tui_interp::resume): ... this. Remove the 'data' parameter,
10761 return void and make extern. Adjust.
10762 (tui_suspend): Rename to ...
10763 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10764 return void and make extern. Adjust.
10765 (tui_ui_out): Rename to ...
10766 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10767 parameter, and make extern. Adjust.
10768 (tui_exec): Rename to ...
10769 (tui_interp::exec): ... this. Remove the 'data' parameter and
10771 (tui_interp_procs): Delete.
10772 (tui_interp_factory): Use "new".
10774 2017-02-02 Tom Tromey <tom@tromey.com>
10776 * rust-exp.y (ends_raw_string, space_then_number)
10777 (rust_identifier_start_p): Return bool.
10778 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10779 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10780 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10781 (rust_chartype_p): Return bool.
10782 (val_print_struct, rust_print_struct_def, rust_print_type):
10784 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10787 2017-02-02 Tom Tromey <tom@tromey.com>
10789 * rust-lang.c: Reindent.
10791 2017-02-02 Tom Tromey <tom@tromey.com>
10793 * rust-lang.h (rust_crate_for_block): Update.
10794 * rust-lang.c (rust_crate_for_block): Return std::string.
10795 (rust_get_disr_info): Use std:;string, not
10796 gdb::unique_xmalloc_ptr.
10797 * rust-exp.y (crate_name): Update.
10799 2017-02-02 Pedro Alves <palves@redhat.com>
10801 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10802 field out of gdb_disassembler_test and make it static.
10804 2017-02-02 Pedro Alves <palves@redhat.com>
10806 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10807 mi1_interp and mi_interp fields.
10809 2017-02-02 Pedro Alves <palves@redhat.com>
10811 * cli/cli-interp.c (struct saved_output_files, saved_output):
10812 Moved from cli/cli-logging.c.
10813 (cli_set_logging): New function.
10814 (cli_interp_procs): Install cli_set_logging.
10815 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10817 * cli/cli-logging.c (struct saved_output_files, saved_output):
10818 Moved to cli/cli-interp.c.
10819 (pop_output_files): Don't save outputs here.
10820 (make_logging_output): New function.
10821 (handle_redirections): Don't build tee nor save previous outputs
10823 * interps.c (current_interp_set_logging): Change prototype.
10824 Assume there's always a set_logging_proc method installed.
10825 * interps.h (interp_set_logging_ftype): Change prototype.
10826 (current_interp_set_logging): Change prototype and adjust comment.
10827 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10828 use make_logging_output.
10829 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
10830 2017-02-02 Pedro Alves <palves@redhat.com>
10832 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10834 (set_logging_overwrite): ... here.
10835 (logging_no_redirect_file): Delete.
10836 (set_logging_redirect): Don't handle redirection on the fly.
10837 Instead warn that "logging off" / "logging on" is necessary.
10838 (pop_output_files): Delete references to logging_no_redirect_file.
10839 (show_logging_command): Always speak in terms of what will happen
10840 once logging is reenabled.
10842 2017-02-02 Pedro Alves <palves@redhat.com>
10844 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10846 2017-02-02 Pedro Alves <palves@redhat.com>
10848 * disasm.c (gdb_pretty_print_insn): Rename to ...
10849 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10850 Remove gdbarch parameter. Adapt to clear the object's buffers
10851 instead of allocating new buffers, and to print using the object's
10852 gdb_disassembler instead of calling gdb_print_insn.
10853 (dump_insns): Use gdb_pretty_print_disassembler.
10854 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10855 (gdb_pretty_print_disassembler): New class.
10856 * record-btrace.c (btrace_insn_history): Use
10857 gdb_pretty_print_disassembler.
10859 2017-02-02 Pedro Alves <palves@redhat.com>
10861 * ada-lang.c (type_as_string): Use string_file.
10862 * ada-valprint.c (ada_print_floating): Use string_file.
10863 * ada-varobj.c (ada_varobj_scalar_image)
10864 (ada_varobj_get_value_image): Use string_file.
10865 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10866 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10867 * breakpoint.c (update_inserted_breakpoint_locations)
10868 (insert_breakpoint_locations, reattach_breakpoints)
10869 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10870 (print_it_watchpoint): Use string_file.
10871 (save_breakpoints): Use stdio_file.
10872 * c-exp.y (oper): Use string_file.
10873 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10875 (pop_output_files): Use delete.
10876 (handle_redirections): Use stdio_file and tee_file.
10877 * cli/cli-setshow.c (do_show_command): Use string_file.
10878 * compile/compile-c-support.c (c_compute_program): Use
10880 * compile/compile-c-symbols.c (generate_vla_size): Take a
10881 'string_file &' instead of a 'ui_file *'.
10882 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10883 of a 'ui_file *'. Use string_file.
10884 (generate_c_for_variable_locations): Take a 'string_file &'
10885 instead of a 'ui_file *'.
10886 * compile/compile-internal.h (generate_c_for_for_one_variable):
10887 Take a 'string_file &' instead of a 'ui_file *'.
10888 * compile/compile-loc2c.c (push, pushf, unary, binary)
10889 (print_label, pushf_register_address, pushf_register)
10890 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10891 'ui_file *'. Adjust.
10892 * compile/compile.c (compile_to_object): Use string_file.
10893 * compile/compile.h (compile_dwarf_expr_to_c)
10894 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10896 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10897 (replace_typedefs_qualified_name): Use string_file and
10899 * disasm.c (gdb_pretty_print_insn): Use string_file.
10900 (gdb_disassembly): Adjust reference the null_stream global.
10901 (do_ui_file_delete): Delete.
10902 (gdb_insn_length): Use null_stream.
10903 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10904 * dwarf2loc.c (dwarf2_compile_property_to_c)
10905 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10906 'string_file &' instead of a 'ui_file *'.
10907 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10908 * dwarf2read.c (do_ui_file_peek_last): Delete.
10909 (dwarf2_compute_name): Use string_file.
10910 * event-top.c (gdb_setup_readline): Use stdio_file.
10911 * gdbarch.sh (verify_gdbarch): Use string_file.
10912 * gdbtypes.c (safe_parse_type): Use null_stream.
10913 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10915 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10916 'string_file *' instead of a 'ui_file *'.
10917 (gdbscm_arch_disassemble): Use string_file.
10918 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10919 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10920 inherits from ui_file.
10921 (ioscm_file_port_delete, ioscm_file_port_rewind)
10922 (ioscm_file_port_put): Delete.
10923 (ioscm_file_port_write): Rename to ...
10924 (ioscm_file_port::write): ... this. Remove file_port_magic
10926 (ioscm_file_port_new): Delete.
10927 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10929 * guile/scm-type.c (tyscm_type_name): Use string_file.
10930 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10932 * infcmd.c (print_return_value_1): Use string_file.
10933 * infrun.c (print_target_wait_results): Use string_file.
10934 * language.c (add_language): Use string_file.
10935 * location.c (explicit_to_string_internal): Use string_file.
10936 * main.c (captured_main_1): Use null_file.
10937 * maint.c (maintenance_print_architecture): Use stdio_file.
10938 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10939 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10940 event_channel>: Change type to mi_console_file pointer.
10941 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10942 (mi_console_file_delete): Delete.
10943 (struct mi_console_file): Delete.
10944 (mi_console_file_magic): Delete.
10945 (mi_console_file_new): Delete.
10946 (mi_console_file::mi_console_file): New.
10947 (mi_console_file_delete): Delete.
10948 (mi_console_file_fputs): Delete.
10949 (mi_console_file::write): New.
10950 (mi_console_raw_packet): Delete.
10951 (mi_console_file::flush): New.
10952 (mi_console_file_flush): Delete.
10953 (mi_console_set_raw): Rename to ...
10954 (mi_console_file::set_raw): ... this.
10955 * mi/mi-console.h (class mi_console_file): New class.
10956 (mi_console_file_new, mi_console_set_raw): Delete.
10957 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10958 (mi_set_logging): Use delete and tee_file. Adjust.
10959 * mi/mi-main.c (output_register): Use string_file.
10960 (mi_cmd_data_evaluate_expression): Use string_file.
10961 (mi_cmd_data_read_memory): Use string_file.
10962 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10963 * mi/mi-out.c (mi_ui_out::main_stream): New.
10964 (mi_ui_out::rewind): Use main_stream and
10966 (mi_ui_out::put): Use main_stream and string_file.
10967 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10968 Allocate a 'string_file' instead.
10969 (mi_out_new): Don't allocate a mem_fileopen stream here.
10970 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10971 (mi_ui_out::main_stream): Declare method.
10972 * printcmd.c (eval_command): Use string_file.
10973 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10974 * python/py-arch.c (archpy_disassemble): Use string_file.
10975 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10976 * python/py-frame.c (frapy_str): Use string_file.
10977 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10979 * python/py-type.c (typy_str): Use string_file.
10980 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10981 * python/py-value.c (valpy_str): Use string_file.
10982 * record-btrace.c (btrace_insn_history): Use string_file.
10983 * regcache.c (regcache_print): Use stdio_file.
10984 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10985 * remote.c (escape_buffer): Use string_file.
10986 * rust-lang.c (rust_get_disr_info): Use string_file.
10987 * serial.c (serial_open_ops_1): Use stdio_file.
10988 (do_serial_close): Use delete.
10989 * stack.c (print_frame_arg): Use string_file.
10990 (print_frame_args): Remove local mem_fileopen stream, not used.
10991 (print_frame): Use string_file.
10992 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10993 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10994 Take a 'string_file *' instead of a 'ui_file *'.
10995 * top.c (new_ui): Use stdio_file and stderr_file.
10996 (free_ui): Use delete.
10997 (execute_command_to_string): Use string_file.
10998 (quit_confirm): Use string_file.
10999 * tracepoint.c (collection_list::append_exp): Use string_file.
11000 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11001 * tui/tui-file.c: Don't include "ui-file.h".
11002 (enum streamtype, struct tui_stream): Delete.
11003 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11004 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11005 (tui_file::tui_file): New method.
11006 (tui_file_fputs): Delete.
11007 (tui_file_get_strbuf): Delete.
11008 (tui_file::puts): New method.
11009 (tui_file_adjust_strbuf): Delete.
11010 (tui_file_flush): Delete.
11011 (tui_file::flush): New method.
11012 * tui/tui-file.h: Tweak intro comment.
11014 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11015 (tui_file_adjust_strbuf): Delete declarations.
11016 (class tui_file): New class.
11017 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11018 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11019 (tui_register_format): Use string_stream.
11020 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11021 (tui_get_function_from_frame): Use string_file.
11022 * typeprint.c (type_to_string): Use string_file.
11023 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11024 (null_stream): New global.
11025 (ui_file_delete): Delete.
11026 (ui_file::ui_file): New.
11027 (null_file_isatty): Delete.
11028 (ui_file::~ui_file): New.
11029 (null_file_rewind): Delete.
11030 (ui_file::printf): New.
11031 (null_file_put): Delete.
11032 (null_file_flush): Delete.
11033 (ui_file::putstr): New.
11034 (null_file_write): Delete.
11035 (ui_file::putstrn): New.
11036 (null_file_read): Delete.
11037 (ui_file::putc): New.
11038 (null_file_fputs): Delete.
11039 (null_file_write_async_safe): Delete.
11040 (ui_file::vprintf): New.
11041 (null_file_delete): Delete.
11042 (null_file::write): New.
11043 (null_file_fseek): Delete.
11044 (null_file::puts): New.
11045 (ui_file_data): Delete.
11046 (null_file::write_async_safe): New.
11047 (gdb_flush, ui_file_isatty): Adjust.
11048 (ui_file_put, ui_file_rewind): Delete.
11049 (ui_file_write): Adjust.
11050 (ui_file_write_for_put): Delete.
11051 (ui_file_write_async_safe, ui_file_read): Adjust.
11052 (ui_file_fseek): Delete.
11053 (fputs_unfiltered): Adjust.
11054 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11055 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11056 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11057 (set_ui_file_data): Delete.
11058 (string_file::~string_file, string_file::write)
11059 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11060 (do_ui_file_as_string, ui_file_as_string): Delete.
11061 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11062 (struct mem_file): Delete.
11063 (mem_file_new): Delete.
11064 (stdio_file::stdio_file): New.
11065 (mem_file_delete): Delete.
11066 (stdio_file::stdio_file): New.
11067 (mem_fileopen): Delete.
11068 (stdio_file::~stdio_file): New.
11069 (mem_file_rewind): Delete.
11070 (stdio_file::set_stream): New.
11071 (mem_file_put): Delete.
11072 (stdio_file::open): New.
11073 (mem_file_write): Delete.
11074 (stdio_file_magic, struct stdio_file): Delete.
11075 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11076 (stdio_file::flush): New.
11077 (stdio_file_read): Rename to ...
11078 (stdio_file::read): ... this. Adjust.
11079 (stdio_file_write): Rename to ...
11080 (stdio_file::write): ... this. Adjust.
11081 (stdio_file_write_async_safe): Rename to ...
11082 (stdio_file::write_async_safe) ... this. Adjust.
11083 (stdio_file_fputs): Rename to ...
11084 (stdio_file::puts) ... this. Adjust.
11085 (stdio_file_isatty): Delete.
11086 (stdio_file_fseek): Delete.
11087 (stdio_file::isatty): New.
11088 (stderr_file_write): Rename to ...
11089 (stderr_file::write) ... this. Adjust.
11090 (stderr_file_fputs): Rename to ...
11091 (stderr_file::puts) ... this. Adjust.
11092 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11093 (stderr_file::stderr_file): New.
11094 (tee_file_magic): Delete.
11095 (struct tee_file): Delete.
11096 (tee_file::tee_file): New.
11097 (tee_file_new): Delete.
11098 (tee_file::~tee_file): New.
11099 (tee_file_delete): Delete.
11100 (tee_file_flush): Rename to ...
11101 (tee_file::flush): ... this. Adjust.
11102 (tee_file_write): Rename to ...
11103 (tee_file::write): ... this. Adjust.
11104 (tee_file::write_async_safe): New.
11105 (tee_file_fputs): Rename to ...
11106 (tee_file::puts): ... this. Adjust.
11107 (tee_file_isatty): Rename to ...
11108 (tee_file::isatty): ... this. Adjust.
11109 * ui-file.h (struct obstack, struct ui_file): Don't
11111 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11112 (ui_file_write_ftype)
11113 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11114 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11115 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11116 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11117 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11118 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11119 (set_ui_file_fseek): Delete.
11120 (ui_file_data, ui_file_delete, ui_file_rewind)
11121 (struct ui_file): New.
11123 (class null_file): New.
11124 (null_stream): Declare.
11125 (ui_file_write_for_put, ui_file_put): Delete.
11126 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11128 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11129 (gdb_fopen, tee_file_new): Delete.
11130 (struct string_file): New.
11131 (struct stdio_file): New.
11132 (stdio_file_up): New.
11133 (struct stderr_file): New.
11134 (class tee_file): New.
11135 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11136 of a 'ui_file *'. Adjust.
11137 * ui-out.h (class ui_out) <field_stream>: Likewise.
11138 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11139 (null_stream): Delete.
11140 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11142 * utils.h (struct ui_file): Delete forward declaration..
11143 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11144 (error_stream): Take a 'string_file &' instead of a
11146 * varobj.c (varobj_value_get_print_value): Use string_file.
11147 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11148 * gdbarch.c: Regenerate.
11150 2017-02-02 Pedro Alves <palves@redhat.com>
11152 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11153 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11154 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11155 Adjust to call gdb_print_insn instead of
11156 gdb_disassembler::print_insn.
11157 (dump_insns, do_mixed_source_and_assembly_deprecated)
11158 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11159 'gdbarch' parameter. Remove gdb_disassembler parameter.
11160 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11161 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11163 (gdb_pretty_print_insn): Re-add declaration.
11164 * record-btrace.c (btrace_insn_history): Don't allocate a
11165 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11167 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11169 * disasm.h (gdb_disassembly): Remove file_string parameter.
11170 * disasm.c (gdb_disassembly): Likewise.
11171 * cli/cli-cmds.c (print_disassembly): Adapt.
11172 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11173 * stack.c (do_gdb_disassembly): Likewise.
11175 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11177 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11178 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11179 targets. And if the implicit value is longer than needed, extract
11180 the first bytes instead of the "least significant" ones.
11182 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11184 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11185 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11186 (btrace_fetch): Assert can_access_registers_ptid.
11187 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11188 validate_registers_access.
11190 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11192 * gdbthread.h (can_access_registers_ptid): New.
11193 * thread.c (can_access_registers_ptid): New.
11195 2017-02-01 Pedro Alves <palves@redhat.com>
11197 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11199 2017-01-31 Pedro Alves <palves@redhat.com>
11201 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11204 2017-01-31 Pedro Alves <palves@redhat.com>
11206 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11209 2017-01-31 Pedro Alves <palves@redhat.com>
11211 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11213 2017-01-31 Pedro Alves <palves@redhat.com>
11215 * common/scoped_restore.h
11216 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11217 change the value's parameter type to T2.
11218 (make_scoped_restore): Likewise.
11220 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11221 Richard Henderson <rth@redhat.com>
11223 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11224 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11225 GS_BASE for older kernels.
11226 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11227 GS_BASE for older kernels.
11228 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11229 and GS_BASE to the offset table.
11230 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11231 system register group.
11232 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11234 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11236 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11237 AMD64_GSBASE_REGNUM.
11238 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11239 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11240 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11241 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11242 i386/64bit-segments.xml in those rules.
11243 * features/i386/64bit-segments.xml: New file.
11244 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11245 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11246 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11247 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11248 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11249 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11250 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11251 * features/i386/amd64-avx-linux.c: Regenerated.
11252 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11253 * features/i386/amd64-avx-mpx.c: Regenerated.
11254 * features/i386/amd64-avx512-linux.c: Regenerated.
11255 * features/i386/amd64-linux.c: Regenerated.
11256 * features/i386/amd64-mpx-linux.c: Regenerated.
11257 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11258 * features/i386/i386-avx-mpx.c: Regenerated.
11259 * features/i386/x32-avx-linux.c: Regenerated.
11260 * features/i386/x32-avx512-linux.c: Regenerated.
11261 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11262 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11263 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11264 * regformats/i386/amd64-linux.dat: Regenerated.
11265 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11266 * regformats/i386/x32-avx-linux.dat: Regenerated.
11267 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11268 * regformats/i386/x32-linux.dat: Regenerated.
11270 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11272 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11273 Set to AMD64_NUM_REGS.
11275 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11277 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11278 that checks validity of a register number.
11280 2017-01-27 Kees Cook <keescook@google.com>
11282 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11283 fetch_fpregs if target has fpa registers.
11284 (arm_linux_store_inferior_registers): Call store_fpregs if target
11287 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11289 * cris-tdep.c (cris_gdbarch_init): Remove check for
11290 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11292 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11294 * corelow.c (get_core_register_section): Check for regset
11295 existence before checking for REGSET_VARIABLE_SIZE.
11297 2017-01-26 Yao Qi <yao.qi@linaro.org>
11298 Pedro Alves <palves@redhat.com>
11301 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11302 call memory_error, save memaddr instead.
11303 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11304 negative, cal memory_error.
11305 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11307 2017-01-26 Yao Qi <yao.qi@linaro.org>
11309 * disasm-selftests.c (memory_error_test): New function.
11310 (_initialize_disasm_selftests): Register memory_error_test.
11312 2017-01-26 Yao Qi <yao.qi@linaro.org>
11314 * Makefile.in (SFILES): Add disasm-selftests.c and
11316 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11317 * disasm-selftests.c: New file.
11318 * selftest-arch.c: New file.
11319 * selftest-arch.h: New file.
11321 2017-01-26 Yao Qi <yao.qi@linaro.org>
11323 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11324 to bfd_arch_mep. Don't return 0 if section is not
11325 found. Call print_insn_mep.
11327 2017-01-26 Pedro Alves <palves@redhat.com>
11328 Yao Qi <yao.qi@linaro.org>
11330 * arm-tdep.c: Include "disasm.h".
11331 (gdb_print_insn_arm): Update code to get gdbarch.
11332 * disasm.c (dis_asm_read_memory): Change it to
11333 gdb_disassembler::dis_asm_read_memory.
11334 (dis_asm_memory_error): Likewise.
11335 (dis_asm_print_address): Likewise.
11336 (gdb_pretty_print_insn): Change it to
11337 gdb_disassembler::pretty_print_insn.
11338 (dump_insns): Add one argument gdb_disassemlber. All
11340 (do_mixed_source_and_assembly_deprecated): Likewise.
11341 (do_mixed_source_and_assembly): Likewise.
11342 (do_assembly_only): Likewise.
11343 (gdb_disassembler::gdb_disassembler): New.
11344 (gdb_disassembler::print_insn): New.
11345 * disasm.h (class gdb_disassembler): New.
11346 (gdb_pretty_print_insn): Remove declaration.
11347 (gdb_disassemble_info): Likewise.
11348 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11349 (gdbscm_disasm_read_memory_worker): Update.
11350 (gdbscm_disasm_read_memory): Update.
11351 (gdbscm_disasm_memory_error): Remove.
11352 (gdbscm_disasm_print_address): Remove.
11353 (gdbscm_disassembler::gdbscm_disassembler): New.
11354 (gdbscm_print_insn_from_port): Update.
11355 * mips-tdep.c: Include disasm.h.
11356 (gdb_print_insn_mips): Update code to get gdbarch.
11357 * record-btrace.c (btrace_insn_history): Update.
11358 * spu-tdep.c: Include disasm.h.
11359 (struct spu_dis_asm_data): Remove.
11360 (struct spu_dis_asm_info): New.
11361 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11363 (gdb_print_insn_spu): Cast disassemble_info to
11366 2017-01-26 Yao Qi <yao.qi@linaro.org>
11368 * disasm.c (do_ui_file_delete): Delete.
11369 (gdb_insn_length): Move code creating stream to ...
11370 * utils.c (null_stream): ... here. New function.
11371 * utils.h (null_stream): Declare.
11373 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11375 * python/py-inferior.c (find_thread_object): Return directly
11376 from the loop. Remove "found" variable.
11378 2017-01-21 Joel Brobecker <brobecker@adacore.com>
11380 GDB 7.12.1 released.
11382 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11384 * python/py-function.c (fnpy_call): Reorder declarations to have
11385 the gdbpy_enter object declared first.
11386 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11388 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11391 * python/python-internal.h (PyMem_RawMalloc): Define for
11393 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11394 PyMem_RawMalloc instead of PyMem_Malloc.
11396 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11397 Luis Machado <lgustavo@codesourcery.com>
11399 * NEWS (New commands): Mention flash-erase.
11400 (New MI commands): Mention target-flash-erase.
11401 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11403 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11404 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11405 * target.c (flash_erase_command): New function.
11406 (initialize_targets): Add new flash-erase command.
11407 * target.h (flash_erase_command): New declaration.
11409 2017-01-20 Joel Brobecker <brobecker@adacore.com>
11411 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11412 HAVE_SYS_PROCFS_H is defined.
11414 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11416 * remote.c (struct cached_reg): Change data into a pointer.
11417 * (stop_reply_dtr): Free data pointers before deleting vector.
11418 (process_stop_reply): Likewise.
11419 (remote_parse_stop_reply): Allocate space for data
11421 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11423 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11425 (amd64_pseudo_register_read_value): Likewise.
11426 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11427 (store_register_using_P): Likewise.
11428 * regcache.c (regcache_xfer_part): Likewise.
11430 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11432 Split real and pseudo registers.
11433 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11434 (sparc32_pseudo_regnum): New enum.
11435 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11436 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11437 (SPARC32_CP0_REGISTERS): New macro.
11438 (sparc32_pseudo_register_name): New function.
11439 (sparc32_register_name): Use sparc32_pseudo_register_name.
11440 (sparc32_pseudo_register_type): New function.
11441 (sparc32_register_type): Use sparc32_pseudo_register_type.
11442 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11443 pseudo register numbers.
11444 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11445 (SPARC64_CP0_REGISTERS): New macro.
11446 (sparc64_pseudo_register_name): New function.
11447 (sparc64_register_name): Use sparc64_pseudo_register_name.
11448 (sparc64_pseudo_register_type): New function.
11449 (sparc64_register_type): Use sparc64_pseudo_register_type.
11450 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11451 pseudo register numbers.
11452 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11453 sparc64_store_arguments): Handle pseudo register numbers.
11455 2017-01-13 Yao Qi <yao.qi@linaro.org>
11457 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11458 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11460 (getpkt_or_notif_sane_1): Likewise.
11462 2017-01-13 Yao Qi <yao.qi@linaro.org>
11464 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11465 of CC. Pass "-x c++-header" instead of "-x c".
11467 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11469 * remote.c (remote_can_async_p): Update comment.
11471 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11473 * linux-nat.c (linux_nat_can_async_p): Update comment.
11475 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11477 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11479 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11481 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11483 2017-01-10 Tom Tromey <tom@tromey.com>
11485 * python/py-type.c (typy_legacy_template_argument): Update.
11486 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11487 ~demangle_parse_info): Declare new members.
11488 (cp_demangled_name_to_comp): Return unique_ptr.
11489 (cp_demangled_name_parse_free)
11490 (make_cleanup_cp_demangled_name_parse_free)
11491 (cp_new_demangle_parse_info): Remove.
11492 * cp-support.c (do_demangled_name_parse_free_cleanup)
11493 (make_cleanup_cp_demangled_name_parse_free): Remove.
11494 (inspect_type, cp_canonicalize_string_full)
11495 (cp_canonicalize_string): Update.
11496 (mangled_name_to_comp): Change return type.
11497 (cp_class_name_from_physname, method_name_from_physname)
11498 (cp_func_name, cp_remove_params): Update.
11499 * cp-name-parser.y (demangle_parse_info): New constructor, from
11500 cp_new_demangle_parse_info.
11501 (~demangle_parse_info): New destructor, from
11502 cp_demangled_name_parse_free.
11503 (cp_merge_demangle_parse_infos): Update.
11504 (cp_demangled_name_to_comp): Change return type.
11506 2017-01-10 Tom Tromey <tom@tromey.com>
11508 * top.c (prevent_dont_repeat): Change return type.
11509 * python/python.c (execute_gdb_command): Use std::string.
11511 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11512 * command.h (prevent_dont_repeat): Change return type.
11513 * breakpoint.c (bpstat_do_actions_1): Update.
11515 2017-01-10 Tom Tromey <tom@tromey.com>
11517 * value.h (scoped_value_mark::~scoped_value_mark): Call
11519 (scoped_value_mark::free_to_mark): New method.
11520 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11523 2017-01-10 Tom Tromey <tom@tromey.com>
11525 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11526 (valpy_reference_value, valpy_const_value, valpy_get_address)
11527 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11528 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11529 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11530 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11532 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11533 * value.h (scoped_value_mark): New class.
11535 2017-01-10 Tom Tromey <tom@tromey.com>
11537 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11538 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11539 * psymtab.c (discard_psymtabs_upto): Remove.
11540 (make_cleanup_discard_psymtabs): Remove.
11541 (struct psymtab_state): Remove.
11543 2017-01-10 Tom Tromey <tom@tromey.com>
11545 * record-full.c (record_full_save_cleanups): Remove.
11546 (record_full_save): Use gdb::unlinker.
11547 * gcore.c (do_bfd_delete_cleanup): Remove.
11548 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11550 * dwarf2read.c (unlink_if_set): Remove.
11551 (write_psymtabs_to_index): Use gdb::unlinker.
11552 * common/gdb_unlinker.h: New file.
11554 2017-01-10 Tom Tromey <tom@tromey.com>
11556 * windows-tdep.c (windows_xfer_shared_library): Update.
11557 * windows-nat.c (windows_make_so): Update.
11558 * utils.h (make_cleanup_bfd_unref): Remove.
11559 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11560 * symfile.h (symfile_bfd_open)
11561 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11562 * symfile.c (read_symbols, symbol_file_add)
11563 (separate_debug_file_exists): Update.
11564 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11565 (generic_load, reread_symbols): Update.
11566 * symfile-mem.c (symbol_file_add_from_memory): Update.
11567 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11568 (spu_symbol_file_add_from_memory): Update.
11569 * solist.h (struct target_so_ops) <bfd_open>: Return
11571 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11572 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11574 (solib_map_sections, reload_shared_libraries_1): Update.
11575 * solib-svr4.c (enable_break): Update.
11576 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11577 * solib-frv.c (enable_break2): Update.
11578 * solib-dsbt.c (enable_break): Update.
11579 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11581 (darwin_solib_get_all_image_info_addr_at_init): Update.
11582 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11583 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11584 * record-full.c (record_full_save): Update.
11585 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11586 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11587 * minidebug.c (find_separate_debug_file_in_section): Return
11589 * machoread.c (macho_add_oso_symfile): Change abfd to
11591 (macho_symfile_read_all_oso): Update.
11592 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11593 (macho_symfile_read): Update.
11594 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11595 (jit_bfd_try_read_symtab): Update.
11596 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11597 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11598 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11600 (gdb_bfd_ref_policy): New struct.
11601 (gdb_bfd_ref_ptr): New typedef.
11602 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11603 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11604 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11606 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11607 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11608 (gcore_command): Update.
11609 * exec.c (exec_file_attach): Update.
11610 * elfread.c (elf_symfile_read): Update.
11611 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11612 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11613 (open_and_init_dwo_file): Update.
11614 (open_dwp_file): Return gdb_bfd_ref_ptr.
11615 (open_and_init_dwp_file): Update.
11616 * corelow.c (core_open): Update.
11617 * compile/compile-object-load.c (compile_object_load): Update.
11618 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11619 * coffread.c (coff_symfile_read): Update.
11620 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11621 gdb_bfd_ref_ptr. Rename.
11622 (dump_bfd_file, restore_command): Update.
11623 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11624 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11625 (find_separate_debug_file_by_buildid): Update.
11627 2017-01-10 Tom Tromey <tom@tromey.com>
11629 * common/gdb_ref_ptr.h: New file.
11630 * python/py-ref.h (struct gdbpy_ref_policy): New.
11631 (gdbpy_ref): Now a typedef.
11633 2017-01-10 Tom Tromey <tom@tromey.com>
11635 * utils.h (make_cleanup_htab_delete): Don't declare.
11636 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11638 * linespec.c (decode_compound_collector): Add constructor,
11640 (lookup_prefix_sym): Remove cleanup.
11641 (symtab_collector): Add constructor, destructor.
11642 (collect_symtabs_from_filename): Remove cleanup.
11643 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11644 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11646 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11647 * dwarf2read.c (dw2_expand_symtabs_matching)
11648 (dw2_map_symbol_filenames, dwarf_decode_macros)
11649 (write_psymtabs_to_index): Use htab_up.
11650 * dwarf2loc.c (func_verify_no_selftailcall)
11651 (call_site_find_chain_1, func_verify_no_selftailcall)
11652 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11653 std::vector, gdb::unique_xmalloc_ptr.
11654 (call_sitep): Remove typedef.
11655 (dwarf2_locexpr_baton_eval): Remove unused variable.
11657 2017-01-10 Tom Tromey <tom@tromey.com>
11659 * python/python-internal.h (make_cleanup_py_decref)
11660 (make_cleanup_py_xdecref): Don't declare.
11661 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11662 (py_xdecref, make_cleanup_py_xdecref): Remove.
11664 2017-01-10 Tom Tromey <tom@tromey.com>
11666 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11667 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11669 2017-01-10 Tom Tromey <tom@tromey.com>
11671 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11673 2017-01-10 Tom Tromey <tom@tromey.com>
11675 * python/py-utils.c (unicode_to_encoded_string)
11676 (python_string_to_target_string)
11677 (python_string_to_target_python_string)
11678 (python_string_to_host_string, gdbpy_obj_to_string)
11679 (get_addr_from_python): Use gdbpy_ref.
11681 2017-01-10 Tom Tromey <tom@tromey.com>
11683 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11686 2017-01-10 Tom Tromey <tom@tromey.com>
11688 * python/python.c (eval_python_command, gdbpy_decode_line)
11689 (gdbpy_run_events, gdbpy_start_type_printers)
11690 (gdbpy_apply_type_printers): Use gdbpy_ref.
11692 2017-01-10 Tom Tromey <tom@tromey.com>
11694 * python/py-param.c (get_doc_string, compute_enum_values): Use
11697 2017-01-10 Tom Tromey <tom@tromey.com>
11699 * python/py-inferior.c (find_thread_object, build_inferior_list):
11702 2017-01-10 Tom Tromey <tom@tromey.com>
11704 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11706 2017-01-10 Tom Tromey <tom@tromey.com>
11708 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11711 2017-01-10 Tom Tromey <tom@tromey.com>
11713 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11715 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11718 2017-01-10 Tom Tromey <tom@tromey.com>
11720 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11723 2017-01-10 Tom Tromey <tom@tromey.com>
11725 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11726 decref results of PyArg_ParseTupleAndKeywords.
11728 2017-01-10 Tom Tromey <tom@tromey.com>
11730 * python/python.c (python_run_simple_file): Use
11731 unique_xmalloc_ptr, gdbpy_ref.
11733 2017-01-10 Tom Tromey <tom@tromey.com>
11735 * python/py-prettyprint.c (print_stack_unless_memory_error)
11736 (print_string_repr, print_children): Use gdbpy_ref.
11737 (dummy_python_frame): New class.
11738 (dummy_python_frame::dummy_python_frame): Rename from
11739 push_dummy_python_frame.
11740 (py_restore_tstate): Remove.
11742 2017-01-10 Tom Tromey <tom@tromey.com>
11744 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11746 2017-01-10 Tom Tromey <tom@tromey.com>
11748 * python/python.c (ensure_python_env, restore_python_env):
11750 * python/python-internal.h (ensure_python_env): Don't declare.
11751 * varobj.h (varobj_ensure_python_env): Don't declare.
11752 * varobj.c (varobj_ensure_python_env): Remove.
11754 2017-01-10 Tom Tromey <tom@tromey.com>
11756 * varobj.c (varobj_value_get_print_value): Use
11757 gdbpy_enter_varobj.
11759 2017-01-10 Tom Tromey <tom@tromey.com>
11761 * python/py-prettyprint.c (print_string_repr, print_children):
11763 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11765 * varobj.c (varobj_value_get_print_value): Update.
11766 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11768 2017-01-10 Tom Tromey <tom@tromey.com>
11770 * varobj.c (varobj_get_display_hint)
11771 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11772 (varobj_set_visualizer, free_variable): Use
11773 gdbpy_enter_varobj.
11775 2017-01-10 Tom Tromey <tom@tromey.com>
11777 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11778 (do_finish_initialization): New function. Use gdbpy_ref.
11779 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11780 do_finish_initialization.
11782 2017-01-10 Tom Tromey <tom@tromey.com>
11784 * python/py-param.c (get_set_value, get_show_value): Use
11785 gdbpy_enter, gdbpy_ref.
11787 2017-01-10 Tom Tromey <tom@tromey.com>
11789 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11791 2017-01-10 Tom Tromey <tom@tromey.com>
11793 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11795 2017-01-10 Tom Tromey <tom@tromey.com>
11797 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11798 Use gdbpy_enter_varobj.
11800 2017-01-10 Tom Tromey <tom@tromey.com>
11802 * varobj.c (gdbpy_enter_varobj): New constructor.
11803 * python/python-internal.h (gdbpy_enter_varobj): New class.
11804 * python/py-varobj.c (py_varobj_get_iterator): Use
11805 gdbpy_enter_varobj.
11807 2017-01-10 Tom Tromey <tom@tromey.com>
11809 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11810 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11811 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11812 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11813 unique_xmalloc_ptr.
11814 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11816 2017-01-10 Tom Tromey <tom@tromey.com>
11818 * python/py-xmethods.c (invoke_match_method): Use
11821 2017-01-10 Tom Tromey <tom@tromey.com>
11823 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11824 gdbpy_enter, gdbpy_ref.
11826 2017-01-10 Tom Tromey <tom@tromey.com>
11828 * python/python.c (python_interactive_command): Use gdbpy_enter.
11830 2017-01-10 Tom Tromey <tom@tromey.com>
11832 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11835 2017-01-10 Tom Tromey <tom@tromey.com>
11837 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11838 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11840 2017-01-10 Tom Tromey <tom@tromey.com>
11842 * utils.h (htab_deleter): New struct.
11843 (htab_up): New typedef.
11844 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11845 gdbpy_enter, gdbpy_ref, htab_up.
11847 2017-01-10 Tom Tromey <tom@tromey.com>
11849 * python/py-unwind.c (pending_frame_invalidate): Remove.
11850 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11852 2017-01-10 Tom Tromey <tom@tromey.com>
11854 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11855 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11857 2017-01-10 Tom Tromey <tom@tromey.com>
11859 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11861 2017-01-10 Tom Tromey <tom@tromey.com>
11863 * python/python.c (gdbpy_eval_from_control_command)
11864 (gdbpy_source_script, gdbpy_run_events)
11865 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11866 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11869 2017-01-10 Tom Tromey <tom@tromey.com>
11871 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11873 2017-01-10 Tom Tromey <tom@tromey.com>
11875 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11877 2017-01-10 Tom Tromey <tom@tromey.com>
11879 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11880 (python_on_inferior_call_pre, python_on_inferior_call_post)
11881 (python_on_memory_change, python_on_register_change)
11882 (python_inferior_exit, python_new_objfile, add_thread_object)
11883 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11885 2017-01-10 Tom Tromey <tom@tromey.com>
11887 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11888 (bpfinishpy_handle_exit): Use gdbpy_enter.
11890 2017-01-10 Tom Tromey <tom@tromey.com>
11892 * python/py-cmd.c (cmdpy_destroyer)
11893 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11896 2017-01-10 Tom Tromey <tom@tromey.com>
11898 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11900 (gdbpy_breakpoint_has_cond): Likewise.
11902 2017-01-10 Tom Tromey <tom@tromey.com>
11904 * python/python.c (gdbpy_enter): New constructor.
11905 (~gdbpy_enter): New destructor.
11906 (restore_python_env, ensure_python_env): Rewrite.
11907 * python/python-internal.h (gdbpy_enter): New class.
11909 2017-01-10 Tom Tromey <tom@tromey.com>
11911 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11913 2017-01-10 Tom Tromey <tom@tromey.com>
11915 * python/py-value.c (value_has_field, get_field_flag)
11916 (get_field_type, valpy_getitem, convert_value_from_python): Use
11919 2017-01-10 Tom Tromey <tom@tromey.com>
11921 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11924 2017-01-10 Tom Tromey <tom@tromey.com>
11926 * python/py-prettyprint.c (search_pp_list)
11927 (find_pretty_printer_from_objfiles)
11928 (find_pretty_printer_from_progspace)
11929 (find_pretty_printer_from_gdb, find_pretty_printer)
11930 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11933 2017-01-10 Tom Tromey <tom@tromey.com>
11935 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11937 2017-01-10 Tom Tromey <tom@tromey.com>
11939 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11940 (ltpy_get_all_source_lines): Use gdbpy_ref.
11942 2017-01-10 Tom Tromey <tom@tromey.com>
11944 * python/py-framefilter.c (extract_sym, extract_value)
11945 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11948 2017-01-10 Tom Tromey <tom@tromey.com>
11950 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11952 2017-01-10 Tom Tromey <tom@tromey.com>
11954 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11956 2017-01-10 Tom Tromey <tom@tromey.com>
11958 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11961 2017-01-10 Tom Tromey <tom@tromey.com>
11963 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11965 2017-01-10 Tom Tromey <tom@tromey.com>
11967 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11968 (typy_range): Use gdbpy_ref.
11970 2017-01-10 Tom Tromey <tom@tromey.com>
11972 * python/py-threadevent.c (create_thread_event_object): Use
11974 * python/py-stopevent.c (create_stop_event_object): Simplify.
11975 (emit_stop_event): Use gdbpy_ref.
11976 * python/py-signalevent.c (create_signal_event_object): Use
11978 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11979 (emit_new_objfile_event, create_clear_objfiles_event_object)
11980 (emit_clear_objfiles_event): Use gdbpy_ref.
11981 * python/py-infevents.c (create_inferior_call_event_object)
11982 (create_register_changed_event_object)
11983 (create_memory_changed_event_object, emit_inferior_call_event)
11984 (emit_memory_changed_event, emit_register_changed_event): Use
11986 * python/py-exitedevent.c (create_exited_event_object)
11987 (emit_exited_event): Use gdbpy_ref.
11988 * python/py-event.h (evpy_emit_event): Remove
11989 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11990 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11991 * python/py-continueevent.c (emit_continue_event): Use
11993 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11994 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11996 * python/py-bpevent.c (create_breakpoint_event_object): Use
11999 2017-01-10 Tom Tromey <tom@tromey.com>
12001 * python/py-ref.h: New file.
12003 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12005 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12007 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12008 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12009 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12010 * ui-out.c (ui_out::redirect): Likewise.
12011 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12012 * cli/cli-logging.c (set_logging_redirect): Update call site of
12014 (handle_redirections): Likewise.
12015 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12016 * top.c (execute_command_to_string): Likewise.
12017 * utils.c (do_ui_out_redirect_pop): Likewise.
12019 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12021 * stack.c (_initialize_stack): Update "frame" command help message.
12023 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12025 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12027 2017-01-06 Yao Qi <yao.qi@linaro.org>
12029 * x86-linux-nat.h: Include gdb_proc_service.h.
12031 2017-01-06 Yao Qi <yao.qi@linaro.org>
12033 * ser-base.h: Include serial.h.
12035 2017-01-06 Yao Qi <yao.qi@linaro.org>
12037 * ppc-linux-tdep.h: Include ppc-tdep.h.
12039 2017-01-06 Yao Qi <yao.qi@linaro.org>
12041 * nat/amd64-linux-siginfo.h: Include signal.h.
12043 2017-01-06 Yao Qi <yao.qi@linaro.org>
12045 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12047 2017-01-06 Yao Qi <yao.qi@linaro.org>
12049 * mi/mi-parse.h: Include mi-cmds.h.
12051 2017-01-06 Yao Qi <yao.qi@linaro.org>
12053 * inf-loop.c: Don't include "target.h".
12054 * inf-loop.h: Include it here.
12056 2017-01-06 Yao Qi <yao.qi@linaro.org>
12058 * dfp.h: Include "dboulest.h" and "expression.h".
12060 2017-01-06 Yao Qi <yao.qi@linaro.org>
12062 * ax-gdb.h: Include "ax.h".
12064 2017-01-06 Yao Qi <yao.qi@linaro.org>
12066 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12067 with nat/gdb_ptrace.h.
12069 2017-01-05 Yao Qi <yao.qi@linaro.org>
12071 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12073 (mips64_fbsd_sigframe_init): Likewise.
12075 2017-01-04 John Baldwin <jhb@FreeBSD.org>
12077 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12078 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12080 2017-01-04 John Baldwin <jhb@FreeBSD.org>
12082 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12083 * NEWS: Mention new FreeBSD/mips native configuration.
12084 * config/mips/fbsd.mh: New file.
12085 * configure.host: Add mips*-*-freebsd*.
12086 * mips-fbsd-nat.c: New file.
12088 2017-01-04 John Baldwin <jhb@FreeBSD.org>
12090 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12091 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12092 * NEWS: Mention new FreeBSD/mips target.
12093 * configure.tgt: Add mips*-*-freebsd*.
12094 * mips-fbsd-tdep.c: New file.
12095 * mips-fbsd-tdep.h: New file.
12097 2017-01-04 Yao Qi <yao.qi@linaro.org>
12099 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12100 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12102 2017-01-01 Joel Brobecker <brobecker@adacore.com>
12104 Update copyright year range in all GDB files.
12106 2017-01-01 Joel Brobecker <brobecker@adacore.com>
12108 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
12110 For older changes see ChangeLog-2016.
12116 version-control: never