1 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3 * common/gdb_assert.h (gdb_static_assert): Redefine using
6 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
8 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
10 (ada_is_redundant_range_encoding): Likewise.
11 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
13 * alpha-tdep.c (alpha_software_single_step): Likewise.
14 * arm-tdep.c (_initialize_arm_tdep): Likewise.
15 * auto-load.c (info_auto_load_cmd): Likewise.
16 * break-catch-syscall.c (insert_catch_syscall): Likewise.
17 (remove_catch_syscall): Likewise.
18 * breakpoint.c (condition_completer): Likewise.
19 (clear_command): Likewise.
20 (update_breakpoint_locations): Likewise.
21 * btrace.c (btrace_disable): Likewise.
22 (btrace_teardown): Likewise.
23 (btrace_maint_update_pt_packets): Likewise.
24 (maint_btrace_clear_cmd): Likewise.
25 * cli/cli-decode.c (lookup_cmd_1): Likewise.
26 (lookup_cmd_composition): Likewise.
27 * cli/cli-dump.c (scan_filename): Likewise.
28 (restore_command): Likewise.
29 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
30 * compile/compile-object-load.c (compile_object_load): Likewise.
31 * compile/compile-object-run.c (compile_object_run): Likewise.
32 * compile/compile.c (compile_to_object): Likewise.
33 * completer.c (filename_completer): Likewise.
34 (complete_files_symbols): Likewise.
35 (complete_expression): Likewise.
36 * corelow.c (core_open): Likewise.
37 * ctf.c (ctf_start): Likewise.
38 (ctf_write_status): Likewise.
39 (ctf_write_uploaded_tsv): Likewise.
40 (ctf_write_definition_end): Likewise.
41 (ctf_open_dir): Likewise.
42 (ctf_xfer_partial): Likewise.
43 (ctf_trace_find): Likewise.
44 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
46 * dwarf2loc.c (allocate_piece_closure): Likewise.
47 (indirect_pieced_value): Likewise.
48 (dwarf2_evaluate_loc_desc_full): Likewise.
49 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
50 (dw2_expand_symtabs_matching): Likewise.
51 (dw2_map_symbol_filenames): Likewise.
52 (read_and_check_comp_unit_head): Likewise.
53 (read_cutu_die_from_dwo): Likewise.
54 (lookup_dwo_unit): Likewise.
55 (read_comp_units_from_section): Likewise.
56 (dwarf2_compute_name): Likewise.
57 (handle_DW_AT_stmt_list): Likewise.
58 (create_cus_hash_table): Likewise.
59 (create_dwp_v2_section): Likewise.
60 (dwarf2_rnglists_process): Likewise.
61 (dwarf2_ranges_process): Likewise.
62 (dwarf2_record_block_ranges): Likewise.
63 (is_vtable_name): Likewise.
64 (read_formatted_entries): Likewise.
65 (skip_form_bytes): Likewise.
66 * elfread.c (elf_symtab_read): Likewise.
67 * exec.c (exec_file_command): Likewise.
68 * f-valprint.c (f_val_print): Likewise.
69 (info_common_command_for_block): Likewise.
70 * guile/guile.c (initialize_scheme_side): Likewise.
71 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
72 * guile/scm-cmd.c (cmdscm_completer): Likewise.
73 (gdbscm_register_command_x): Likewise.
74 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
75 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
76 * guile/scm-ports.c (file_port_magic): Likewise.
77 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
78 (ppscm_pretty_print_one_value): Likewise.
79 (ppscm_print_children): Likewise.
80 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
81 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
82 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
83 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
84 * i386-tdep.c (i386_register_reggroup_p): Likewise.
85 * infcmd.c (run_command_1): Likewise.
86 (until_next_fsm_clean_up): Likewise.
87 * linespec.c (linespec_complete): Likewise.
88 (find_label_symbols): Likewise.
89 * m2-valprint.c (m2_val_print): Likewise.
90 * memattr.c (require_user_regions): Likewise.
91 (lookup_mem_region): Likewise.
92 (disable_mem_command): Likewise.
93 (mem_delete): Likewise.
94 * mep-tdep.c (mep_register_name): Likewise.
95 (mep_analyze_prologue): Likewise.
96 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
97 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
98 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
99 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
100 * minidebug.c (lzma_open): Likewise.
101 * minsyms.c (lookup_minimal_symbol): Likewise.
102 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
103 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
104 (mips_o64_return_value): Likewise.
105 (mips_single_step_through_delay): Likewise.
106 (_initialize_mips_tdep): Likewise.
107 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
108 (nios2_software_single_step): Likewise.
109 * parse.c (find_minsym_type_and_address): Likewise.
110 * psymtab.c (psym_relocate): Likewise.
111 * python/py-breakpoint.c (bppy_get_commands): Likewise.
112 (gdbpy_breakpoint_modified): Likewise.
113 * python/py-infevents.c (create_inferior_call_event_object):
115 * python/py-record-btrace.c (btpy_list_item): Likewise.
116 * python/py-type.c (typy_str): Likewise.
117 * python/py-value.c (valpy_call): Likewise.
118 * python/python.c (do_start_initialization): Likewise.
119 * record-btrace.c (record_btrace_insn_history_range): Likewise.
120 (record_btrace_call_history_range): Likewise.
121 (record_btrace_record_method): Likewise.
122 (record_btrace_xfer_partial): Likewise.
123 (btrace_get_frame_function): Likewise.
124 * record-full.c (record_full_open): Likewise.
125 * record.c (get_context_size): Likewise.
126 * registry.h (DEFINE_REGISTRY): Likewise.
127 * remote-fileio.c (remote_fileio_request): Likewise.
128 * remote.c (remote_update_thread_list): Likewise.
129 (remote_check_symbols): Likewise.
130 (remote_commit_resume): Likewise.
131 (remote_interrupt): Likewise.
132 (remote_insert_breakpoint): Likewise.
133 (compare_sections_command): Likewise.
134 * rust-exp.y (super_name): Likewise.
135 (lex_string): Likewise.
136 (convert_ast_to_type): Likewise.
137 (convert_ast_to_expression): Likewise.
138 * rust-lang.c (rust_print_struct_def): Likewise.
139 (rust_print_type): Likewise.
140 (rust_evaluate_subexp): Likewise.
141 * rx-tdep.c (rx_register_type): Likewise.
142 * ser-event.c (serial_event_clear): Likewise.
143 * serial.c (serial_open): Likewise.
144 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
145 * symfile.c (section_is_overlay): Likewise.
146 (overlay_unmapped_address): Likewise.
147 (overlay_mapped_address): Likewise.
148 (simple_overlay_update_1): Likewise.
149 (simple_overlay_update): Likewise.
150 * symtab.c (symbol_find_demangled_name): Likewise.
151 (search_symbols): Likewise.
152 * target-descriptions.c (tdesc_predefined_type): Likewise.
153 * target.c (target_commit_resume): Likewise.
154 * thread.c (print_selected_thread_frame): Likewise.
155 * top.c (new_ui_command): Likewise.
156 (gdb_readline_no_editing): Likewise.
157 * tracefile-tfile.c (tfile_open): Likewise.
158 * tracepoint.c (create_tsv_from_upload): Likewise.
159 * utils.c (quit): Likewise.
160 (defaulted_query): Likewise.
161 * valarith.c (value_concat): Likewise.
162 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
163 * xml-tdesc.c (target_fetch_description_xml): Likewise.
164 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
165 (xtensa_pseudo_register_write): Likewise.
167 2017-12-04 Tom Tromey <tom@tromey.com>
169 * NEWS: Mention Rust trait object inspection.
171 2017-12-04 Pedro Alves <palves@redhat.com>
174 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
175 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
176 (vex2_prefix_p, vex3_prefix_p): New functions.
177 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
179 (fixup_riprel): Set VEX3.!B.
181 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
183 * target.h (mem_region_vector): Remove.
184 (struct target_ops) <to_memory_map>: Change return type to
185 std::vector<mem_region>.
186 * target-debug.h (target_debug_print_mem_region_vector): Rename
188 (target_debug_print_std_vector_mem_region): ... this.
189 * target-delegates.c: Re-generate.
191 2017-12-03 Pedro Alves <palves@redhat.com>
193 * make-target-delegates (munge_type): Also munge '<', '>', and
194 ':'. Avoid double underscores in identifiers, and trailing
197 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
199 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
200 * target-delegates.c: Regenerate.
202 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
204 * common/poison.h (XDELETE): Fix typo.
206 2017-12-01 Andrew Cagney <cagney@redhat.com>
207 Joel Brobecker <brobecker@adacore.com>
208 Sergio Durigan Junior <sergiodj@redhat.com>
210 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
212 * coffread.c (coff_symfile_read): Do not map over sections with
213 'coff_locate_sections' if readnever is on.
214 * dwarf2read.c (dwarf2_has_info): Return 0 if
216 * elfread.c (elf_symfile_read): Do not map over sections with
217 'elf_locate_sections' if readnever is on.
218 * main.c (validate_readnow_readnever): New function.
219 (captured_main_1): Add support for --readnever.
220 (print_gdb_help): Document --readnever.
221 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
223 * symfile.c (readnever_symbol_files): New global.
224 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
225 'READNEVER_SYMBOL_FILES' is set.
226 (validate_readnow_readnever): New function.
227 (symbol_file_command): Handle '-readnever' option.
228 Call 'validate_readnow_readnever'.
229 (add_symbol_file_command): Handle '-readnever' option.
230 Call 'validate_readnow_readnever'.
231 (_initialize_symfile): Document new '-readnever' option for
232 both 'symbol-file' and 'add-symbol-file' commands.
233 * top.h (readnever_symbol_files): New extern global.
234 * xcoffread.c (xcoff_initial_scan): Do not read debug
235 information if readnever is on.
237 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
239 * symfile.c (symbol_file_command): Call
240 'symbol_file_add_main_1' only after processing all command
242 (add_symbol_file_command): Modify logic to make arguments
243 position-independent.
245 2017-12-01 Joel Brobecker <brobecker@adacore.com>
247 * ada-lang.c (symbol_list_obstack): Delete.
248 (resolve_subexp): Make sure "candidates" gets xfree'ed.
249 (ada_lookup_symbol_list_worker): Remove the limitation that
250 the result is only good until the next call, now making it
251 the responsibility of the caller to free the result when no
252 longer needed. Adjust the function's intro comment accordingly.
253 (ada_lookup_symbol_list): Adjust the function's intro comment.
254 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
255 (ada_lookup_encoded_symbol, get_var_value): Likewise.
256 (_initialize_ada_language): Remove symbol_list_obstack
258 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
259 (write_var_or_type, write_name_assoc): Likewise.
261 2017-12-01 Tom Tromey <tom@tromey.com>
263 * Makefile.in (all_deps_files): New variable.
264 Include .Po files using all_deps_files.
266 2017-12-01 Joel Brobecker <brobecker@adacore.com>
268 * MAINTAINERS: Update list of maintainers, moving those who
269 stepped down or became inactive to the "Past Maintainers"
272 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
274 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
276 (NEW_PROC_API): Remove.
277 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
279 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
280 * configure: Regenerate.
281 * config.in: Regenerate.
282 * gdbserver/configure: Regenerate.
283 * gdbserver/config.in: Regenerate.
285 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
287 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
289 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
291 * proc-api.c: Remove !NEW_PROC_API support.
292 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
293 Remove tests for macros always defined on Solaris.
294 * proc-events.c: Remove !NEW_PROC_API support.
295 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
296 HAVE_SYS_USER_H tests.
297 (init_syscall_table): Remove non-Solaris syscalls.
298 Remove tests for syscalls present on all Solaris versions.
299 Add missing Solaris 10+ syscalls.
300 (signal_table): Remove non-Solaris signals.
301 Remove tests for signals present on all Solaris versions.
302 (fault_table): Remove non-Solaris faults.
303 Remove tests for faults present on all Solaris versions.
304 * proc-flags.c: Remove !NEW_PROC_API support.
305 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
306 Remove non-Solaris flags.
307 * proc-why.c: Remove !NEW_PROC_API support.
308 (pr_why_table): Remove meaningless comments.
309 Remove tests for reasons present on all Solaris versions.
311 (proc_prettyfprint_why): Likewise.
313 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
314 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
315 Remove WA_READ test, IRIX watchpoint support.
316 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
318 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
319 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
321 Remove CTL_PROC_NAME_FMT tests.
322 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
324 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
325 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
326 (proc_modify_flag): Replace GDBRESET by PCUNSET.
327 Remove PR_ASYNC, PR_KLC tests.
328 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
329 (proc_parent_pid): Remove PCWATCH etc. tests.
330 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
332 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
333 Remove SYS_lwpcreate || SYS_lwp_create test.
334 (proc_get_current_thread): Likewise.
335 [PIOCNTHR && PIOCTLIST]: Remove.
336 [PIOCLSTATUS]: Remove.
337 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
338 [PRFS_STOPEXEC]: Remove.
339 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
340 (syscall_is_exit): Likewise.
341 (syscall_is_exec): Likewise.
342 (syscall_is_lwp_create): Likewise.
343 Remove SYS_syssgi support.
344 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
345 [SYS_syssgi]: Remove.
346 Remove non-Solaris cases, conditionals.
347 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
349 (procfs_init_inferior) [SYS_syssgi]: Remove.
350 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
351 (procfs_inferior_created) [SYS_syssgi]: Remove.
352 (procfs_set_watchpoint): Remove !AIX5 test.
353 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
355 (mappingflags) [MA_PHYS]: Remove.
356 (info_mappings_callback): Remove PCAGENT test.
357 Remove PIOCOPENLWP || PCAGENT test.
359 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
361 * sol-thread.c (info_solthreads): Constify args.
364 2017-11-29 John Baldwin <jhb@FreeBSD.org>
366 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
368 2017-11-29 Joel Brobecker <brobecker@adacore.com>
370 * ada-lang.c (to_fixed_range_type): Make sure that the size
371 of the range type being returned is the same as the size
372 of the range type being fixed.
374 2017-11-29 Pedro Alves <palves@redhat.com>
377 * NEWS: Mention setting breakpoints on functions with C++ ABI
379 * completer.h (completion_match_for_lcd) <match,
380 mark_ignored_range>: New methods.
381 <finish>: Consider ignored ranges.
382 <clear>: Clear ignored ranges.
383 <m_ignored_ranges, m_finished_storage>: New fields.
384 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
385 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
386 completion_match_for_lcd pointer to strncmp_iw_with_mode.
387 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
388 * language.c (default_symbol_name_matcher): Pass the
389 completion_match_for_lcd pointer to strncmp_iw_with_mode.
390 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
391 * utils.c (skip_abi_tag): New function.
392 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
394 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
397 2017-11-29 Pedro Alves <palves@redhat.com>
400 * NEWS: Mention setting breakpoints on functions with C++ ABI
402 * completer.h (completion_match_for_lcd) <match,
403 mark_ignored_range>: New methods.
404 <finish>: Consider ignored ranges.
405 <clear>: Clear ignored ranges.
406 <m_ignored_ranges, m_finished_storage>: New fields.
407 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
408 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
409 completion_match_for_lcd pointer to strncmp_iw_with_mode.
410 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
411 * language.c (default_symbol_name_matcher): Pass the
412 completion_match_for_lcd pointer to strncmp_iw_with_mode.
413 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
414 * utils.c (skip_abi_tag): New function.
415 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
417 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
420 2017-11-29 Pedro Alves <palves@redhat.com>
422 * NEWS: Mention that breakpoints on C++ functions are now set on
423 on all namespaces/classes by default, and mention "break
425 * ax-gdb.c (agent_command_1): Adjust to pass a
426 symbol_name_match_type to new_linespec_location.
427 * breakpoint.c (parse_breakpoint_sals): Adjust to
428 get_linespec_location's return type change.
429 (strace_marker_create_sals_from_location): Adjust to pass a
430 symbol_name_match_type to new_linespec_location.
431 (strace_marker_decode_location): Adjust to get_linespec_location's
433 (strace_command): Adjust to pass a symbol_name_match_type to
434 new_linespec_location.
435 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
436 mention "-qualified".
437 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
438 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
440 (complete_address_and_linespec_locations): New parameter
441 'match_type'. Pass it down.
442 (explicit_options): Add "-qualified".
443 (collect_explicit_location_matches): Pass the requested match type
444 to the linespec completers. Handle MATCH_QUALIFIED.
445 (location_completer): Handle "-qualified" combined with linespecs.
446 * cp-support.c (cp_search_name_hash): New.
447 (cp_symbol_name_matches_1): Implement wild matching for C++.
448 (cp_fq_symbol_name_matches): Reimplement.
449 (cp_get_symbol_name_matcher): Return different matchers depending
450 on the lookup name's match type.
451 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
452 * cp-support.h (cp_search_name_hash): New declaration.
454 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
456 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
458 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
459 pass a symbol_name_match_type to new_linespec_location.
460 * linespec.c (linespec_parse_basic): Lookup function symbols using
461 the parser's symbol name match type.
462 (convert_explicit_location_to_linespec): New
463 symbol_name_match_type parameter. Pass it down to
464 find_linespec_symbols.
465 (convert_explicit_location_to_sals): Pass the location's name
466 match type to convert_explicit_location_to_linespec.
467 (parse_linespec): New match_type parameter. Save it in the
469 (linespec_parser_new): Default to symbol_name_match_type::WILD.
470 (linespec_complete_function): New symbol_name_match_type
472 (complete_linespec_component): Pass down the parser's recorded
474 (linespec_complete_label): New symbol_name_match_type parameter.
476 (linespec_complete): New symbol_name_match_type parameter. Save
477 it in the parser and pass it down. Adjust to
478 get_linespec_location's prototype change.
479 (find_function_symbols, find_linespec_symbols): New
480 symbol_name_match_type parameter. Pass it down instead of
481 assuming symbol_name_match_type::WILD.
482 * linespec.h (linespec_complete, linespec_complete_function)
483 (linespec_complete_label): New symbol_name_match_type parameter.
484 * location.c (event_location::linespec_location): Now a struct
486 (EL_LINESPEC): Adjust.
487 (initialize_explicit_location): Default to
488 symbol_name_match_type::WILD.
489 (new_linespec_location): New symbol_name_match_type parameter.
490 Record it in the location.
491 (get_linespec_location): Now returns a struct linespec_location.
492 (new_explicit_location): Also copy func_name_match_type.
493 (explicit_to_string_internal)
494 (string_to_explicit_location): Handle "-qualified".
495 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
496 Copy symbol_name_match_type fields.
497 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
499 (event_location_to_string): Adjust to LINESPEC_LOCATION type
500 change. Handle "-qualfied".
501 (string_to_explicit_location): Handle "-qualified".
502 (string_to_event_location_basic): New symbol_name_match_type
503 parameter. Pass it down.
504 (string_to_event_location): Handle "-qualified".
505 * location.h (struct linespec_location): New.
506 (explicit_location::func_name_match_type): New field.
507 (new_linespec_location): Now returns a const linespec_location *.
508 (string_to_event_location_basic): New symbol_name_match_type
510 (explicit_completion_info::saw_explicit_location_option): New
512 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
513 symbol_name_match_type to new_linespec_location.
514 * python/py-breakpoint.c (bppy_init): Likewise.
515 * python/python.c (gdbpy_decode_line): Likewise.
517 2017-11-29 Pedro Alves <palves@redhat.com>
519 * ada-lang.c (ada_lookup_name_info::matches): Change type of
520 parameter from completion_match to completion_match_result.
522 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
523 * completer.c (completion_tracker::maybe_add_completion): Add
524 match_for_lcd parameter and use it.
525 (completion_tracker::add_completion): Likewise.
526 * completer.h (class completion_match_for_lcd): New class.
527 (completion_match_result::match_for_lcd): New field.
528 (completion_match_result::set_match): New method.
529 (completion_tracker): Add comments.
530 (completion_tracker::add_completion): Add match_for_lcd parameter.
531 (completion_tracker::reset_completion_match_result): Reset
533 (completion_tracker::maybe_add_completion): Add match_for_lcd
535 (completion_tracker::m_lowest_common_denominator_unique): Extend
537 * cp-support.c (cp_symbol_name_matches_1)
538 (cp_fq_symbol_name_matches): Change type of parameter from
539 completion_match to completion_match_result. Adjust.
540 * language.c (default_symbol_name_matcher): Change type of
541 parameter from completion_match to completion_match_result.
543 * language.h (completion_match_for_lcd): Forward declare.
544 (default_symbol_name_matcher): Change type of parameter from
545 completion_match to completion_match_result.
546 * symtab.c (compare_symbol_name): Adjust.
547 (completion_list_add_name): Pass the match_for_lcd to the tracker.
548 * symtab.h (ada_lookup_name_info::matches): Change type of
549 parameter from completion_match to completion_match_result.
550 (symbol_name_matcher_ftype): Likewise, and update comments.
552 2017-11-29 Pedro Alves <palves@redhat.com>
554 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
555 * minsyms.c (msymbol_is_text): Delete.
556 (msymbol_is_function): New function.
557 * minsyms.h (msymbol_is_text): Delete.
558 (msymbol_is_function): New declaration.
559 * symtab.c (find_function_alias_target): Use msymbol_is_function.
561 2017-11-29 Tom Tromey <tom@tromey.com>
563 * Makefile.in (distclean): Handle the case where rmdir fails.
565 2017-11-29 Tom Tromey <tom@tromey.com>
567 * symfile.c (_initialize_symfile): Update usage text for
568 add-symbol-file, symbol-file, load.
570 2017-11-29 Tom Tromey <tom@tromey.com>
572 * symfile.c (add_symbol_file_command): Error if some arguments to
573 -s are missing. Change unrecognized-argument error message.
574 (_initialize_symfile): Fix usage text for add-symbol-file.
576 2017-11-27 Tom Tromey <tom@tromey.com>
578 * Makefile.in (REMOTE_OBS): Remove.
579 (SFILES): Remove remote sources.
580 (COMMON_SFILES): Add remote sources.
581 (ALLDEPFILES): Remove dcache.c.
583 2017-11-27 Tom Tromey <tom@tromey.com>
585 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
587 (SFILES): Use SUBDIR_TARGET_SRCS.
588 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
589 (CONFIG_SRC_SUBDIR): Add target.
590 (%.o): Remove target rule.
592 2017-11-27 Tom Tromey <tom@tromey.com>
594 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
595 registry.o, thread-fsm.o, debug.o.
596 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
597 thread-fsm.c, debug.c.
599 2017-11-27 Tom Tromey <tom@tromey.com>
601 * Makefile.in (COMMON_SFILES): New.
602 (SFILES): Move some entries to COMMON_SFILES.
603 (COMMON_OBS): Use COMMON_SFILES.
605 2017-11-27 Tom Tromey <tom@tromey.com>
607 * Makefile.in (YYFILES): Update comment.
610 2017-11-27 Tom Tromey <tom@tromey.com>
612 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
613 (CONFIG_SRC_SUBDIR): Add python.
614 (%.o): Remove python rule.
615 (python/%.o): New rule.
616 * configure: Rebuild.
617 * configure.ac (CONFIG_OBS): Refer to python/python.o
619 2017-11-27 Tom Tromey <tom@tromey.com>
621 * configure: Rebuild.
622 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
623 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
624 (CONFIG_SRC_SUBDIR): Add guile.
625 (%.o): Remove guile rule.
627 2017-11-27 Tom Tromey <tom@tromey.com>
629 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
630 (%.o): Remove unittests rule.
631 (CONFIG_SRC_SUBDIR): Add unittests.
633 2017-11-27 Tom Tromey <tom@tromey.com>
635 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
636 (CONFIG_SRC_SUBDIR): Add tui.
637 (%.o): Remove tui rule.
639 2017-11-27 Tom Tromey <tom@tromey.com>
641 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
642 (%.o): Remove compile rule.
643 (CONFIG_SRC_SUBDIR): Add compile.
645 2017-11-27 Tom Tromey <tom@tromey.com>
647 * Makefile.in (SUBDIR_MI_OBS): Redefine.
648 (%.o): Remove mi rule.
649 (CONFIG_SRC_SUBDIR): Add mi.
650 (COMMON_OBS): Use mi/mi-common.o
652 2017-11-27 Tom Tromey <tom@tromey.com>
654 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
655 (%.o): Remove cli rule.
656 (CONFIG_SRC_SUBDIR): Add cli.
658 2017-11-27 Tom Tromey <tom@tromey.com>
660 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
661 * configure: Rebuild.
662 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
663 (CONFIG_DEP_SUBDIR): New variable.
664 (%.o): Add order-only dependency.
665 ($(CONFIG_DEP_SUBDIR)): New target.
667 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
670 * findcmd.c (_initialize_mem_search): Update find command help
673 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
675 * python/python.c (do_start_initialization): Change progname
676 type to gdb::unique_xmalloc_ptr. Release the pointer when using
679 2017-11-26 Tom Tromey <tom@tromey.com>
681 * common/format.h: Add include guards.
683 2017-11-26 Tom Tromey <tom@tromey.com>
685 * nat/linux-personality.h (class
686 maybe_disable_address_space_randomization): New class.
687 (maybe_disable_address_space_randomization): Don't declare
689 * nat/linux-personality.c (restore_personality)
690 (make_disable_asr_cleanup): Remove.
691 (maybe_disable_address_space_randomization): Now a constructor.
692 (~maybe_disable_address_space_randomization): New destructor.
693 * linux-nat.c (linux_nat_create_inferior): Update.
695 2017-11-26 Tom Tromey <tom@tromey.com>
697 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
699 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
701 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
702 "cooked" register. Access only first four bytes of branch target
705 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
708 * stap-probe.c (relocate_address): New function.
709 (stap_probe::get_relocated_address): Use 'relocate_address'.
710 (stap_probe::set_semaphore): Use 'relocate_address' and pass
712 (stap_probe::clear_semaphore): Likewise.
714 2017-11-25 Pedro Alves <palves@redhat.com>
716 * dictionary.c: Include "safe-ctype.h".
717 * minsyms.c: Include "safe-ctype.h".
718 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
720 2017-11-25 Pedro Alves <palves@redhat.com>
722 * completer.c (complete_line_internal_1): Skip spaces until the
723 start of the command.
725 2017-11-24 Pedro Alves <palves@redhat.com>
727 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
728 cp_fq_symbol_name_matches. Pass language_cplus to
730 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
731 (selftests::test_cp_symbol_name_cmp): New.
732 (_initialize_cp_support): Register "cp_symbol_name_matches"
734 * language.c (default_symbol_name_matcher): Pass language_minimal
735 to strncmp_iw_with_mode.
736 * utils.c: Include "cp-support.h" and <algorithm>.
737 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
738 (cp_is_operator): New functions.
739 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
740 skip whitespace in the symbol name when the lookup name doesn't
741 have spaces, and vice versa.
742 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
743 * utils.h (strncmp_iw_with_mode): Add language parameter.
745 2017-11-24 Joel Brobecker <brobecker@adacore.com>
747 * ada-lang.c (ada_exception_message_1, ada_exception_message):
749 (print_it_exception): If available, display the exception
751 * NEWS: Document new feature.
753 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
755 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
757 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
759 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
760 (dtrace_probe::is_enabled, dtrace_probe::enable)
761 (dtrace_probe::disable): Remove keyword 'struct' at for-range
763 * probe.c (gen_ui_out_table_header_info)
764 (print_ui_out_not_applicables): Remove keyword 'struct' at
767 2017-11-24 Alan Hayward <alan.hayward@arm.com>
769 * configure.tgt: Add arch/aarch64.o
771 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
773 * common/common-utils.h: Include poison.h.
774 (xfree): Remove declaration, add definition with static_assert.
775 * common/common-utils.c (xfree): Remove.
776 * common/poison.h (IsMallocatable): Define.
777 (IsFreeable): Define.
778 (free): Delete for non-freeable types.
780 (XNEW): Undef and redefine.
782 (XCNEW): Undef and redefine.
784 (XDELETE): Undef and redefine.
786 (XNEWVEC): Undef and redefine.
788 (XCNEWVEC): Undef and redefine.
790 (XRESIZEVEC): Undef and redefine.
792 (XDELETEVEC): Undef and redefine.
794 (XNEWVAR): Undef and redefine.
796 (XCNEWVAR): Undef and redefine.
798 (XRESIZEVAR): Undef and redefine.
800 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
802 * gdbthread.h (private_thread_info): Define structure type, add
803 virtual pure destructor.
804 (thread_info) <priv>: Change type to unique_ptr.
805 <private_dtor>: Remove.
806 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
807 (private_thread_info::~private_thread_info): Provide default
809 (thread_info::~thread_info): Don't call private_dtor nor
811 * aix-thread.c (private_thread_info): Rename to ...
812 (aix_thread_info): ... this.
813 (get_aix_thread_info): New.
814 (sync_threadlists): Adjust.
816 (aix_thread_resume): Adjust.
817 (aix_thread_fetch_registers): Adjust.
818 (aix_thread_store_registers): Adjust.
819 (aix_thread_extra_thread_info): Adjust.
820 * darwin-nat.h (private_thread_info): Rename to ...
821 (darwin_thread_info): ... this.
822 (get_darwin_thread_info): New.
823 * darwin-nat.c (darwin_init_thread_list): Adjust.
824 (darwin_check_new_threads): Adjust.
825 (thread_info_from_private_thread_info): Adjust.
826 * linux-thread-db.c (private_thread_info): Rename to ...
827 (thread_db_thread_info): ... this, initialize fields.
828 (get_thread_db_thread_info): New.
829 <dying>: Change type to bool.
830 (update_thread_state): Adjust to type rename.
831 (record_thread): Adjust to type rename an use of unique_ptr.
832 (thread_db_pid_to_str): Likewise.
833 (thread_db_extra_thread_info): Likewise.
834 (thread_db_thread_handle_to_thread_info): Likewise.
835 (thread_db_get_thread_local_address): Likewise.
836 * nto-tdep.h (private_thread_info): Rename to ...
837 (nto_thread_info): ... this, initialize fields.
838 (get_nto_thread_info): New.
839 <name>: Change type to std::string.
840 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
842 * nto-procfs.c (update_thread_private_data_name): Adjust to
843 std::string change, allocate nto_private_thread_info with new.
844 (update_thread_private_data): Adjust to unique_ptr.
845 * remote.c (private_thread_info): Rename to ...
846 (remote_thread_info): ... this, initialize data members with
848 <extra, name>: Change type to std::string.
849 <thread_handle>: Change type to non-pointer.
850 (free_private_thread_info): Remove.
851 (get_private_info_thread): Rename to...
852 (get_remote_thread_info): ... this, change return type, adjust to
853 use of unique_ptr, use remote_thread_info constructor.
854 (remote_add_thread): Adjust.
855 (get_private_info_ptid): Rename to...
856 (get_remote_thread_info): ...this, change return type.
857 (remote_thread_name): Use get_remote_thread_info, adjust to
858 change to std::string.
859 (struct thread_item) <~thread_item>: Remove.
860 <thread_handle>: Make non pointer.
861 (start_thread): Adjust to thread_item::thread_handle type
863 (remote_update_thread_list): Adjust to type name change, move
864 strings from temporary to long-lived object instead of
866 (remote_threads_extra_info): Use get_remote_thread_info.
867 (process_initial_stop_replies): Likewise.
868 (resume_clear_thread_private_info): Likewise.
869 (remote_resume): Adjust to type name change.
870 (remote_commit_resume): Use get_remote_thread_info.
871 (process_stop_reply): Adjust to type name change.
872 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
873 (remote_stopped_by_hw_breakpoint): Likewise.
874 (remote_stopped_by_watchpoint): Likewise.
875 (remote_stopped_data_address): Likewise.
876 (remote_core_of_thread): Likewise.
877 (remote_thread_handle_to_thread_info): Use
878 get_private_info_thread, adjust to thread_handle field type
881 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
883 * remote.c (struct thread_item): Add constructor, disable copy
884 construction and copy assignment, define default move
885 construction and move assignment.
886 <extra, name>: Change type to std::string.
888 <thread_handle>: Make non-pointer.
889 (thread_item_t): Remove typedef.
890 (DEF_VEC_O(thread_item_t)): Remove.
891 (threads_listing_context) <contains_thread>: New method.
892 <remove_thread>: New method.
893 <items>: Change type to std::vector.
894 (clear_threads_listing_context): Remove.
895 (threads_listing_context_remove): Remove.
896 (remote_newthread_step): Use thread_item constructor, adjust to
897 change to std::vector.
898 (start_thread): Use thread_item constructor, adjust to change to
900 (end_thread): Adjust to change to std::vector and std::string.
901 (remote_get_threads_with_qthreadinfo): Use thread_item
902 constructor, adjust to std::vector.
903 (remote_update_thread_list): Adjust to change to std::vector and
904 std::string, use threads_listing_context methods.
905 (remove_child_of_pending_fork): Adjust.
906 (remove_new_fork_children): Adjust.
907 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
908 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
909 * unittests/rsp-low-selftests.c: New file.
910 * common/rsp-low.h: Include common/byte-vector.h.
911 (hex2bin): New overload.
912 * common/rsp-low.c (hex2bin): New overload.
914 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
916 * inferior.h (private_inferior): Define structure type, add
917 virtual pure destructor.
918 (inferior) <priv>: Change type to unique_ptr.
919 * inferior.c (private_inferior::~private_inferior): Provide
920 default implementation.
921 (inferior::~inferior): Don't free priv field.
922 (exit_inferior_1): Likewise.
923 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
924 (darwin_exception_info): Remove typedef.
925 (DEF_VEC_O (darwin_thread_t)); Remove.
926 (private_inferior): Rename to ...
927 (darwin_private_inferior): ... this, extend private_inferior.
928 (get_darwin_inferior): New.
929 <threads>: Change type to std::vector of darwin_thread_t pointers.
930 * darwin-nat.c (darwin_check_new_threads): Adjust.
931 (find_inferior_task_it): Adjust.
932 (darwin_find_thread); Adjust.
933 (darwin_suspend_inferior): Adjust.
934 (darwin_resume_inferior): Adjust.
935 (darwin_find_new_inferior): Adjust.
936 (darwin_decode_notify_message): Adjust.
937 (darwin_send_reply): Adjust.
938 (darwin_resume_inferior_threads): Adjust.
939 (darwin_suspend_inferior_threads): Adjust.
940 (darwin_decode_message): Adjust.
941 (darwin_wait): Adjust.
942 (darwin_interrupt): Adjust.
943 (darwin_deallocate_threads): Adjust.
944 (darwin_mourn_inferior): Adjust, don't free private data.
945 (darwin_reply_to_all_pending_messages): Adjust.
946 (darwin_stop_inferior): Adjust.
947 (darwin_setup_exceptions): Adjust.
948 (darwin_kill_inferior): Adjust.
949 (darwin_setup_request_notification): Adjust.
950 (darwin_attach_pid): Adjust.
951 (darwin_init_thread_list): Adjust.
952 (darwin_setup_fake_stop_event): Adjust.
953 (darwin_attach): Adjust.
954 (darwin_detach): Adjust.
955 (darwin_xfer_partial): Adjust.
956 (set_enable_mach_exceptions): Adjust.
957 (darwin_pid_to_exec_file): Adjust.
958 (darwin_get_ada_task_ptid): Adjust.
959 * darwin-nat-info.c (get_task_from_args): Adjust.
960 (info_mach_ports_command): Adjust.
961 (info_mach_region_command): Adjust.
962 (info_mach_exceptions_command): Adjust.
963 * remote.c (private_inferior): Rename to ...
964 (remote_private_inferior): ... this, initialize fields.
965 (get_remote_inferior); New.
966 (remote_commit_resume): Use get_remote_inferior.
967 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
969 2017-11-24 Pedro Alves <palves@redhat.com>
971 * NEWS: Mention linespecs and explicit locations, and completion
974 2017-11-24 Yao Qi <yao.qi@linaro.org>
976 * regcache.c (regcache::dump): Remove footnote_register_size.
978 2017-11-24 Yao Qi <yao.qi@linaro.org>
980 * regcache.c (cooked_read_test): Add more test for readonly
983 2017-11-24 Yao Qi <yao.qi@linaro.org>
985 * gdbarch-selftests.c (test_target_has_registers): Move it to
987 (test_target_has_stack): Likewise.
988 (test_target_has_memory): Likewise.
989 (test_target_prepare_to_store): Likewise.
990 (test_target_store_registers): Likewise.
991 (test_target_ops): Likewise.
992 * regcache.c: Include selftest-arch.h and gdbthread.h.
993 (target_ops_no_register): New class.
994 (test_target_fetch_registers): New.
995 (test_target_store_registers): New.
996 (test_target_xfer_partial): New.
997 (readwrite_regcache): New.
998 (cooked_read_test): New.
999 (_initialize_regcache): Register the test.
1000 * target.c: (test_target_has_registers): Moved from
1001 gdbarch-selftests.c.
1002 (test_target_has_stack): Likewise.
1003 (test_target_has_memory): Likewise.
1004 (test_target_prepare_to_store): Likewise.
1005 (test_target_store_registers): Likewise.
1006 * target.h (test_target_ops): New class.
1008 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1010 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1013 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1015 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1016 * arch/aarch64.c (aarch64_create_target_description): Create
1017 new target description.
1018 * features/Makefile: Add new files.
1019 * features/aarch64.c: Remove file.
1020 * features/aarch64-core.c: New autogenerated file.
1021 * features/aarch64-fpu.c: New autogenerated file.
1022 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1024 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1026 * Makefile.in: Add new files.
1027 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1028 aarch64_read_description.
1029 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1030 Call aarch64_read_description.
1031 * aarch64-tdep.c (aarch64_read_description): New function.
1032 (aarch64_gdbarch_init): Call aarch64_read_description.
1033 * aarch64-tdep.h (aarch64_read_description): New function.
1034 * arch/aarch64.c: New file.
1035 * configure.tgt: Add new files.
1037 2017-11-24 Yao Qi <yao.qi@linaro.org>
1039 * mi/mi-main.c (register_changed_p): Update.
1040 * value.c (value_contents_bits_eq): Change return type.
1041 (value_contents_eq): Likewise.
1042 * value.h: Update comments.
1044 2017-11-24 Yao Qi <yao.qi@linaro.org>
1046 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1047 local 'changed'. Remove error.
1048 (register_changed_p): Change return type to bool.
1050 2017-11-24 Yao Qi <yao.qi@linaro.org>
1052 * arch/tic6x.c: New file.
1053 * arch/tic6x.h: New file.
1054 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1055 tic6x-core.xml and tic6x-gp.xml.
1056 * features/tic6x-c6xp.c: Generated.
1057 * features/tic6x-core.c: Generated.
1058 * features/tic6x-gp.c: Generated.
1059 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1062 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1064 * mi/mi-main.c (list_available_thread_groups): Change map value
1065 type to std::vector.
1067 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1069 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1071 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1073 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1075 <children_requested>: ... this.
1076 (varobj_get_num_children, varobj_update): Adjust.
1078 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1080 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1081 (ada_value_has_mutated): Likewise.
1082 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1083 (c_is_path_expr_parent): Likewise.
1084 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1085 (mi_cmd_var_set_frozen): Likewise.
1086 (mi_cmd_var_update_iter): Likewise.
1087 (mi_cmd_var_update): Likewise.
1088 * varobj.c (pretty_printing): Likewise.
1089 (varobj_enable_pretty_printing): Likewise.
1090 (struct varobj_root) <floating, is_valid>: Likewise.
1091 (struct varobj_dynamic) <children_requested>: Likewise.
1092 (delete_variable): Likewise.
1093 (delete_variable_1): Likewise.
1094 (install_variable): Likewise.
1095 (update_type_if_necessary): Likewise.
1096 (install_new_value): Likewise.
1097 (value_of_root): Likewise.
1098 (is_root_p): Likewise.
1099 (varobj_create): Likewise.
1100 (varobj_delete): Likewise.
1101 (varobj_has_more): Likewise.
1102 (varobj_set_frozen): Likewise.
1103 (varobj_get_frozen): Likewise.
1104 (install_dynamic_child): Likewise.
1105 (dynamic_varobj_has_child_method): Likewise.
1106 (update_dynamic_varobj_children): Likewise.
1107 (varobj_get_num_children): Likewise.
1108 (varobj_list_children): Likewise.
1109 (is_path_expr_parent): Likewise.
1110 (varobj_default_is_path_expr_parent): Likewise.
1111 (varobj_is_dynamic_p): Likewise.
1112 (varobj_set_value): Likewise.
1113 (varobj_value_has_mutated): Likewise.
1114 (varobj_update): Likewise.
1115 (check_scope): Likewise.
1116 (value_of_root_1): Likewise.
1117 (varobj_value_get_print_value): Likewise.
1118 (varobj_editable_p): Likewise.
1119 (varobj_value_is_changeable_p): Likewise.
1120 (varobj_floating_p): Likewise.
1121 (varobj_default_value_is_changeable_p): Likewise.
1122 (varobj_invalidate_iter): Likewise.
1123 * varobj.h (struct varobj_update_result) <type_changed,
1124 children_changed, changed, value_installed>: Likewise.
1125 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1126 (struct lang_varobj_ops) <value_is_changeable_p,
1127 value_has_mutated, is_path_expr_parent>: Likewise.
1128 (varobj_delete): Likewise.
1129 (varobj_set_frozen): Likewise.
1130 (varobj_get_frozen): Likewise.
1131 (varobj_set_value): Likewise.
1132 (varobj_update): Likewise.
1133 (varobj_editable_p): Likewise.
1134 (varobj_floating_p): Likewise.
1135 (varobj_has_more): Likewise.
1136 (varobj_is_dynamic_p): Likewise.
1137 (varobj_default_value_is_changeable_p): Likewise.
1138 (varobj_value_is_changeable_p): Likewise.
1139 (varobj_is_anonymous_child): Likewise.
1140 (varobj_default_is_path_expr_parent): Likewise.
1142 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1144 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1145 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1146 <type_str>: Convert to 'std::string'.
1147 <expr>: Convert to 'expression_up'.
1148 (dtrace_probe_arg_s): Delete type and VEC.
1149 (dtrace_probe_enabler_s): Likewise.
1150 (struct dtrace_probe): Replace by...
1151 (class dtrace_static_probe_ops): ...this and...
1152 (class dtrace_probe): ...this.
1153 (dtrace_probe_is_linespec): Rename to...
1154 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1156 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1157 Adjust code. Create new instance of 'dtrace_probe'.
1158 (dtrace_build_arg_exprs): Rename to...
1159 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1161 (dtrace_get_probes): Rename to...
1162 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1164 (dtrace_get_arg): Rename to...
1165 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1167 (dtrace_probe_is_enabled): Rename to...
1168 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1170 (dtrace_get_probe_address): Rename to...
1171 (dtrace_probe::get_relocated_address): ...this. Adjust code
1173 (dtrace_get_probe_argument_count): Rename to...
1174 (dtrace_probe::get_argument_count): ...this. Adjust code to
1176 (dtrace_can_evaluate_probe_arguments): Rename to...
1177 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1179 (dtrace_evaluate_probe_argument): Rename to...
1180 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1182 (dtrace_compile_to_ax): Rename to...
1183 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1185 (dtrace_probe_destroy): Delete.
1186 (dtrace_type_name): Rename to...
1187 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1189 (dtrace_probe::get_static_ops): New method.
1190 (dtrace_gen_info_probes_table_header): Rename to...
1191 (dtrace_static_probe_ops::gen_info_probes_table_header):
1192 ...this. Adjust code to reflect change.
1193 (dtrace_gen_info_probes_table_values): Rename to...
1194 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1195 code to reflect change.
1196 (dtrace_enable_probe): Rename to...
1197 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1199 (dtrace_disable_probe): Rename to...
1200 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1202 (struct probe_ops dtrace_probe_ops): Delete.
1203 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1204 instead of 'info_probes_for_ops'.
1205 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1208 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1209 Simon Marchi <simark@simark.ca>
1211 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1213 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1214 <aexpr>: Change type to 'expression_up'.
1215 (stap_probe_arg_s): Delete type and VEC.
1216 (struct stap_probe): Delete. Replace by...
1217 (class stap_static_probe_ops): ...this and...
1218 (class stap_probe): ...this. Rename variables to add 'm_'
1219 prefix. Do not use 'union' for arguments anymore.
1220 (stap_get_expected_argument_type): Receive probe name instead
1221 of 'struct stap_probe'. Adjust code.
1222 (stap_parse_probe_arguments): Rename to...
1223 (stap_probe::parse_arguments): ...this. Adjust code to
1225 (stap_get_probe_address): Rename to...
1226 (stap_probe::get_relocated_address): ...this. Adjust code
1228 (stap_get_probe_argument_count): Rename to...
1229 (stap_probe::get_argument_count): ...this. Adjust code
1231 (stap_get_arg): Rename to...
1232 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1234 (can_evaluate_probe_arguments): Rename to...
1235 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1237 (stap_evaluate_probe_argument): Rename to...
1238 (stap_probe::evaluate_argument): ...this. Adjust code
1240 (stap_compile_to_ax): Rename to...
1241 (stap_probe::compile_to_ax): ...this. Adjust code to
1243 (stap_probe_destroy): Delete.
1244 (stap_modify_semaphore): Adjust comment.
1245 (stap_set_semaphore): Rename to...
1246 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1248 (stap_clear_semaphore): Rename to...
1249 (stap_probe::clear_semaphore): ...this. Adjust code to
1251 (stap_probe::get_static_ops): New method.
1252 (handle_stap_probe): Adjust code to create instance of
1254 (stap_get_probes): Rename to...
1255 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1257 (stap_probe_is_linespec): Rename to...
1258 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1260 (stap_type_name): Rename to...
1261 (stap_static_probe_ops::type_name): ...this. Adjust code to
1263 (stap_gen_info_probes_table_header): Rename to...
1264 (stap_static_probe_ops::gen_info_probes_table_header):
1265 ...this. Adjust code to reflect change.
1266 (stap_gen_info_probes_table_values): Rename to...
1267 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1268 code to reflect change.
1269 (struct probe_ops stap_probe_ops): Delete.
1270 (info_probes_stap_command): Use 'info_probes_for_spops'
1271 instead of 'info_probes_for_ops'.
1272 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1275 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1277 * break-catch-throw.c (fetch_probe_arguments): Use
1278 'probe.prob' instead of 'probe.probe'.
1279 * breakpoint.c (create_longjmp_master_breakpoint): Call
1280 'can_evaluate_arguments' and 'get_relocated_address' methods
1282 (create_exception_master_breakpoint): Likewise.
1283 (add_location_to_breakpoint): Use 'sal->prob' instead of
1285 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1287 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1288 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1290 (probe_key_free): Call 'delete' on probe.
1291 (check_exception_resume): Use 'probe.prob' instead of
1293 * location.c (string_to_event_location_basic): Call
1294 'probe_linespec_to_static_ops'.
1295 * probe.c (class any_static_probe_ops): New class.
1296 (any_static_probe_ops any_static_probe_ops): New variable.
1297 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1298 argument. Adjust code to reflect change.
1299 (parse_probes): Use 'static_probe_ops' instead of
1300 'probe_ops'. Adjust code to reflect change.
1301 (find_probes_in_objfile): Call methods to get name and
1302 provider from probe.
1303 (find_probe_by_pc): Use 'result.prob' instead of
1304 'result.probe'. Call 'get_relocated_address' method from
1306 (collect_probes): Adjust comment and argument list to receive
1307 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1308 reflect change. Call necessary methods from probe.
1309 (compare_probes): Call methods to get name and provider from
1311 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1312 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1313 adjust code accordingly.
1314 (print_ui_out_not_applicables): Likewise.
1315 (info_probes_for_ops): Rename to...
1316 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1317 as argument instead of 'probe_ops'. Adjust code. Call
1318 necessary methods from probe.
1319 (info_probes_command): Use 'info_probes_for_spops'.
1320 (enable_probes_command): Pass correct argument to
1321 'collect_probes'. Call methods from probe.
1322 (disable_probes_command): Likewise.
1323 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1324 (get_probe_argument_count): Move to
1325 'any_static_probe_ops::get_argument_count'.
1326 (can_evaluate_probe_arguments): Move to
1327 'any_static_probe_ops::can_evaluate_arguments'.
1328 (evaluate_probe_argument): Move to
1329 'any_static_probe_ops::evaluate_argument'.
1330 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1332 (probe_linespec_to_ops): Rename to...
1333 (probe_linespec_to_static_ops): ...this. Adjust code.
1334 (probe_any_is_linespec): Rename to...
1335 (any_static_probe_ops::is_linespec): ...this.
1336 (probe_any_get_probes): Rename to...
1337 (any_static_probe_ops::get_probes): ...this.
1338 (any_static_probe_ops::type_name): New method.
1339 (any_static_probe_ops::gen_info_probes_table_header): New
1341 (compute_probe_arg): Use 'pc_probe.prob' instead of
1342 'pc_probe.probe'. Call methods from probe.
1343 (compile_probe_arg): Likewise.
1344 (std::vector<const probe_ops *> all_probe_ops): Delete.
1345 (std::vector<const static_probe_ops *> all_static_probe_ops):
1347 (_initialize_probe): Use 'all_static_probe_ops' instead of
1349 * probe.h (struct info_probe_column) <field_name>: Delete
1351 (info_probe_column_s): Delete type and VEC.
1352 (struct probe_ops): Delete. Replace with...
1353 (class static_probe_ops): ...this and...
1354 (clas probe): ...this.
1355 (struct bound_probe) <bound_probe>: Delete extraneous
1356 newline. Adjust constructor to receive 'probe' instead of
1358 <probe>: Rename to...
1359 <prob>: ...this. Delete extraneous newline.
1360 <objfile>: Delete extraneous newline.
1361 (register_probe_ops): Delete unused prototype.
1362 (info_probes_for_ops): Rename to...
1363 (info_probes_for_spops): ...this. Adjust comment.
1364 (get_probe_address): Move to 'probe::get_address'.
1365 (get_probe_argument_count): Move to
1366 'probe::get_argument_count'.
1367 (can_evaluate_probe_arguments): Move to
1368 'probe::can_evaluate_arguments'.
1369 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1370 * solib-svr4.c (struct svr4_info): Adjust comment.
1371 (struct probe_and_action) <probe>: Rename to...
1373 (register_solib_event_probe): Receive 'probe' instead of
1374 'struct probe' as argument. Use 'prob' instead of 'probe'
1376 (solib_event_probe_action): Call 'get_argument_count' method
1377 from probe. Adjust comment.
1378 (svr4_handle_solib_event): Adjust comment. Call
1379 'evaluate_argument' method from probe.
1380 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1382 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1383 'struct probe'. Call 'can_evaluate_arguments' from probe.
1384 * symfile.h: Forward declare 'class probe' instead of 'struct
1386 * symtab.h: Likewise.
1387 (struct symtab_and_line) <probe>: Rename to...
1389 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1391 (stop_tracing): Likewise.
1393 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1395 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1396 trailing newline at end of string in call to warning.
1398 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1400 * osdata.h: Include vector isntead of vec.h.
1401 (osdata_column_s): Remove typedef.
1402 (struct osdata_column): Add constructor.
1403 <name, value>: Change type to std::string.
1404 (DEF_VEC_O (osdata_column_s)): Remove.
1405 (osdata_item_s): Remove typedef.
1406 (struct osdata_item) <columns>: Change type to std::vector.
1407 (DEF_VEC_O (osdata_item_s)): Remove.
1408 (struct osdata): Add constructor.
1409 <type>: Change type to std::string.
1410 <items>: Change type to std::vector.
1411 (osdata_p): Remove typedef.
1412 (DEF_VEC_P (osdata_p)): Remove.
1413 (osdata_parse): Return a unique_ptr.
1414 (osdata_free): Remove.
1415 (make_cleanup_osdata_free): Remove.
1416 (get_osdata): Return a unique_ptr.
1417 (get_osdata_column): Return pointer to std::string, take a
1418 reference to osdata_item as parameter.
1419 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1421 <property_name>: Change type to std::string.
1422 (osdata_start_osdata): Allocate osdata with new and adjust.
1423 (osdata_start_item): Adjust.
1424 (osdata_start_column): Adjust.
1425 (osdata_end_column): Adjust.
1426 (clear_parsing_data): Remove.
1427 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1428 (osdata_item_clear): Remove.
1429 (get_osdata): return a unique_ptr and adjust.
1430 (get_osdata_column): Return a pointer to std::string and adjust.
1431 (info_osdata): Adjust.
1432 * mi/mi-main.c: Include <map>.
1433 (free_vector_of_osdata_items): Remove.
1434 (list_available_thread_groups): Adjust, use std::map instead of
1437 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1439 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1442 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1444 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1446 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1448 * varobj.h (struct varobj_update_result): Add constructor, add
1449 move constructor, disable copy and assign, initialize fields.
1450 <newobj>: Change type to std::vector.
1451 (varobj_update): Return std::vector.
1452 * varobj.c (install_dynamic_child): Change VEC parameters to
1453 std::vector and adjust.
1454 (update_dynamic_varobj_children): Likewise.
1455 (varobj_update): Return std::vector and adjust.
1456 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1458 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1460 * varobj.h (struct varobj) <parent>: Remove const.
1461 <children>: Change type to std::vector.
1462 (varobj_list_children): Return std::vector const reference.
1463 (varobj_restrict_range): Change parameter type to std::vector
1465 * varobj.c (varobj_has_more): Adjust.
1466 (varobj_restrict_range): Change parameter type to std::vector
1467 const reference and adjust.
1468 (install_dynamic_child): Adjust.
1469 (update_dynamic_varobj_children): Adjust.
1470 (varobj_list_children): Return std::vector const reference and
1472 (varobj_add_child): Adjust.
1473 (update_type_if_necessary): Adjust.
1474 (varobj_update): Adjust.
1475 (delete_variable_1): Adjust.
1476 * ada-varobj.c (ada_value_has_mutated): Adjust.
1477 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1479 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1481 * varobj.h (struct varobj): Add constructor and destructor,
1483 * varobj.c (struct varobj_root): Initialize fields.
1484 (struct varobj_dynamic): Initialize fields.
1485 (varobj_create): Use unique_ptr instead of cleanup. Create
1486 varobj with new instead of new_root_variable.
1487 (delete_variable_1): Free variable with delete instead of
1489 (create_child_with_value): Create variable with new instead of
1491 (varobj::varobj): New.
1492 (varobj::~varobj): New (body mostly coming from free_variable).
1493 (new_variable): Remove.
1494 (free_variable): Remove.
1495 (do_free_variable_cleanup): Remove.
1496 (make_cleanup_free_variable): Remove.
1498 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1500 * core-regset.c: Remove file.
1501 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1503 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1505 * NEWS: Document use of GNU MPFR.
1508 * Makefile.in (LIBMPFR): Add define.
1509 (CLIBS): Add $(LIBMPFR).
1510 * configure.ac: Add --with-mpfr configure option.
1511 * configure: Regenerate.
1512 * config.in: Regenerate.
1514 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1515 (class mpfr_float_ops): New type.
1516 (mpfr_float_ops::from_target): Two new overloaded functions.
1517 (mpfr_float_ops::to_target): Likewise.
1518 (mpfr_float_ops::to_string): New function.
1519 (mpfr_float_ops::from_string): Likewise.
1520 (mpfr_float_ops::to_longest): Likewise.
1521 (mpfr_float_ops::from_longest): Likewise.
1522 (mpfr_float_ops::from_ulongest): Likewise.
1523 (mpfr_float_ops::to_host_double): Likewise.
1524 (mpfr_float_ops::from_host_double): Likewise.
1525 (mpfr_float_ops::convert): Likewise.
1526 (mpfr_float_ops::binop): Likewise.
1527 (mpfr_float_ops::compare): Likewise.
1528 (get_target_float_ops): Use mpfr_float_ops if available.
1530 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1532 * target-float.c: Do not include <math.h>.
1533 Include <cmath> and <limits>.
1534 (DOUBLEST): Do not define.
1535 (class target_float_ops): New type.
1536 (class host_float_ops): New templated type.
1537 (class decimal_float_ops): New type.
1539 (floatformat_to_doublest): Rename to ...
1540 (host_float_ops<T>::from_target): ... this. Use template type T
1541 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1542 (host_float_ops<T>::from_target): New overload using a type argument.
1543 (floatformat_from_doublest): Rename to ...
1544 (host_float_ops<T>::to_target): ... this. Use template type T
1545 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1546 (host_float_ops<T>::to_target): New overload using a type argument.
1547 (floatformat_printf_format): New function.
1548 (struct printf_length_modifier): New templated type.
1549 (floatformat_to_string): Rename to ...
1550 (host_float_ops<T>::to_string): ... this. Use type instead of
1551 floatformat argument. Use floatformat_printf_format and
1552 printf_length_modifier. Remove special handling of invalid numbers,
1553 infinities and NaN (moved to target_float_to_string).
1554 (struct scanf_length_modifier): New templated type.
1555 (floatformat_from_string): Rename to ...
1556 (host_float_ops<T>::from_string): ... this. Use type instead of
1557 floatformat argument. Use scanf_length_modifier.
1558 (floatformat_to_longest): Rename to ...
1559 (host_float_ops<T>::to_longest): ... this. Use type instead of
1560 floatformat argument. Handle out-of-range values deterministically.
1561 (floatformat_from_longest): Rename to ...
1562 (host_float_ops<T>::from_longest): ... this. Use type instead of
1563 floatformat argument.
1564 (floatformat_from_ulongest): Rename to ...
1565 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1566 floatformat argument.
1567 (floatformat_to_host_double): Rename to ...
1568 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1569 floatformat argument.
1570 (floatformat_from_host_double): Rename to ...
1571 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1572 floatformat argument.
1573 (floatformat_convert): Rename to ...
1574 (host_float_ops<T>::convert): ... this. Use type instead of
1575 floatformat arguments. Remove handling of no-op conversions.
1576 (floatformat_binop): Rename to ...
1577 (host_float_ops<T>::binop): ... this. Use type instead of
1578 floatformat arguments.
1579 (floatformat_compare): Rename to ...
1580 (host_float_ops<T>::compare): ... this. Use type instead of
1581 floatformat arguments.
1583 (match_endianness): Use type instead of length/byte_order arguments.
1584 (set_decnumber_context): Likewise.
1585 (decimal_from_number): Likewise. Update calls.
1586 (decimal_to_number): Likewise.
1587 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1588 (decimal_float_ops::to_host_double): New dummy function.
1589 (decimal_float_ops::from_host_double): Likewise.
1590 (decimal_to_string): Rename to ...
1591 (decimal_float_ops::to_string): ... this. Use type instead of
1592 length/byte_order arguments. Update calls.
1593 (decimal_from_string): Rename to ...
1594 (decimal_float_ops::from_string): ... this. Use type instead of
1595 length/byte_order arguments. Update calls.
1596 (decimal_from_longest): Rename to ...
1597 (decimal_float_ops::from_longest): ... this. Use type instead of
1598 length/byte_order arguments. Update calls.
1599 (decimal_from_ulongest): Rename to ...
1600 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1601 length/byte_order arguments. Update calls.
1602 (decimal_to_longest): Rename to ...
1603 (decimal_float_ops::to_longest): ... this. Use type instead of
1604 length/byte_order arguments. Update calls.
1605 (decimal_binop): Rename to ...
1606 (decimal_float_ops::binop): ... this. Use type instead of
1607 length/byte_order arguments. Update calls.
1608 (decimal_compare): Rename to ...
1609 (decimal_float_ops::compare): ... this. Use type instead of
1610 length/byte_order arguments. Update calls.
1611 (decimal_convert): Rename to ...
1612 (decimal_float_ops::convert): ... this. Use type instead of
1613 length/byte_order arguments. Update calls.
1615 (target_float_same_category_p): New function.
1616 (target_float_same_format_p): Likewise.
1617 (target_float_format_length): Likewise.
1618 (enum target_float_ops_kind): New type.
1619 (get_target_float_ops_kind): New function.
1620 (get_target_float_ops): Three new overloaded functions.
1622 (target_float_is_zero): Update call.
1623 (target_float_to_string): Add special handling of invalid numbers,
1624 infinities and NaN (moved from floatformat_to_string). Use
1625 target_float_ops callback.
1626 (target_float_from_string): Use target_float_ops callback.
1627 (target_float_to_longest): Likewise.
1628 (target_float_from_longest): Likewise.
1629 (target_float_from_ulongest): Likewise.
1630 (target_float_to_host_double): Likewise.
1631 (target_float_from_host_double): Likewise.
1632 (target_float_convert): Add special case for no-op conversions.
1633 Use target_float_ops callback.
1634 (target_float_binop): Use target_float_ops callback.
1635 (target_float_compare): Likewise.
1637 2017-11-22 Yao Qi <yao.qi@linaro.org>
1639 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
1641 2017-11-22 Yao Qi <yao.qi@linaro.org>
1643 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
1644 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
1646 2017-11-21 Jerome Guitton <guitton@adacore.com>
1648 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
1649 with event ptid from the lower layer before doing the
1650 ravenscar-specific update.
1652 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1654 * ravenscar-thread.c (is_ravenscar_task): Also verify that
1655 the ptid's TID is nonzero.
1657 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1659 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
1660 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
1661 Make non-static. Change return type to char *. Adjust code
1662 accordingly. Rewrite the function's documentation.
1663 (read_atcb): Adjust call to get_tcb_types_info accordingly.
1664 * ravenscar-thread.c (ravenscar_inferior_created): Check that
1665 we have enough debugging information in the runtime to support
1666 Ada task debugging before we enable the ravenscar-thread layer.
1668 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1670 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
1671 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
1672 * ravenscar-thread.c: Add into comment.
1673 (base_magic_null_ptid): Delete.
1674 (base_ptid): Change documentation.
1675 (ravenscar_active_task): Renames ravenscar_running_thread.
1676 All callers updated throughout.
1677 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
1678 (ravenscar_task_is_currently_active): Likewise.
1679 (get_base_thread_from_ravenscar_task): Ditto.
1680 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
1681 (ravenscar_runtime_initialized): Likewise.
1682 (get_running_thread_id): Add new parameter "cpu". Adjust
1683 implementation to handle this new parameter.
1684 (ravenscar_fetch_registers): Small adjustment to use
1685 is_ravenscar_task and ravenscar_task_is_currently_active in
1686 order to decide whether to use the target beneath or this
1688 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
1689 (ravenscar_stopped_by_sw_breakpoint): Use
1690 get_base_thread_from_ravenscar_task to get the underlying
1691 thread, rather than using base_ptid.
1692 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1693 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1695 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
1697 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1699 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
1700 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
1701 (get_tcb_types_info): Set fieldnos.base_cpu.
1702 (read_atcb): Set task_info->base_cpu.
1703 (info_task): Print "Base CPU" info if set by runtime.
1705 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1707 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
1708 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1709 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1711 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
1712 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
1713 to_stopped_data_address and to_core_of_thread fields of
1716 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
1718 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
1719 (struct gdbarch_tdep): New member long_double_abi.
1720 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
1721 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
1722 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
1723 format depending on long_double_abi tdep member.
1724 (ppc_floatformat_for_type): Handle __ibm128 type.
1726 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1728 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1730 2017-11-21 Pedro Alves <palves@redhat.com>
1732 * dwarf2read.c (mapped_index::find_name_components_bounds)
1733 <completion mode, upper bound>: Use std::lower_bound instead of
1735 (test_mapped_index_find_name_component_bounds): Remove incorrect
1736 "t1_fund" from expected symbols.
1738 2017-11-21 Pedro Alves <palves@redhat.com>
1740 * dwarf2read.c (mapped_index::name_components_casing): New field.
1741 (mapped_index) <build_name_components,
1742 find_name_components_bounds): Declare new methods.
1743 (mapped_index::find_name_components_bounds)
1744 (mapped_index::build_name_components): New methods, factored out
1745 from dw2_expand_symtabs_matching_symbol.
1746 (check_find_bounds_finds)
1747 (test_mapped_index_find_name_component_bounds): New.
1748 (run_test): Rename to ...
1749 (test_dw2_expand_symtabs_matching_symbol): ... this.
1750 (run_test): Reimplement.
1752 2017-11-21 Pedro Alves <palves@redhat.com>
1754 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1755 (symbol_end): Use cp_ident_is_alnum.
1756 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1757 * dwarf2read.c (make_sort_after_prefix_name): New function.
1758 (dw2_expand_symtabs_matching_symbol): Use it.
1759 (test_symbols): Add more symbols.
1760 (run_test): Add tests.
1762 2017-11-17 Tom Tromey <tom@tromey.com>
1764 * symtab.h (enum symbol_subclass_kind): New.
1765 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
1767 <subclass>: New member.
1768 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
1769 * rust-lang.c (rust_get_trait_object_pointer): Update.
1770 * dwarf2read.c (read_func_scope): Update.
1771 (read_variable): Update.
1773 2017-11-17 Tom Tromey <tom@tromey.com>
1775 * dwarf2read.c (read_func_scope): Update.
1776 * symtab.h (struct template_symbol): Derive from symbol.
1779 2017-11-17 Tom Tromey <tom@tromey.com>
1781 * symtab.h (struct symbol) <is_rust_vtable>: New member.
1782 (struct rust_vtable_symbol): New.
1783 (find_symbol_at_address): Declare.
1784 * symtab.c (find_symbol_at_address): New function.
1785 * symfile.h (struct quick_symbol_functions)
1786 <find_compunit_symtab_by_address>: New member.
1787 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
1789 (debug_sym_quick_functions): Link to
1790 debug_qf_find_compunit_symtab_by_address.
1791 * rust-lang.c (rust_get_trait_object_pointer): New function.
1792 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
1793 rust_get_trait_object_pointer.
1794 * psymtab.c (psym_relocate): Clear psymbol_map.
1795 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
1797 (psym_functions): Link to psym_find_compunit_symtab_by_address.
1798 * objfiles.h (struct objfile) <psymbol_map>: New member.
1799 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1800 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1801 (rust_containing_type, read_variable): New functions.
1803 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1805 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1807 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1809 * common/filestuff.c: Include <algorithm>.
1810 (open_fds): Change type to std::vector<int>.
1811 (do_mark_open_fd): Adjust.
1812 (unmark_fd_no_cloexec): Adjust.
1815 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1817 * breakpoint.c (output_thread_groups): Take an std::vector.
1818 (print_one_breakpoint_location): Adjust.
1820 2017-11-17 Joel Brobecker <brobecker@adacore.com>
1822 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
1823 (ada_evaluate_subexp_for_cast): New function.
1824 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
1825 ada_evaluate_subexp_for_cast.
1826 (ada_evaluate_subexp) <nosideret>: Replace code by call to
1828 * eval.c (evaluate_var_value): Make non-static.
1829 (evaluate_var_msym_value, eval_skip_value): Likewise.
1830 * value.h (evaluate_var_value, evaluate_var_msym_value)
1831 (eval_skip_value): Declare.
1833 2017-11-16 Joel Brobecker <brobecker@adacore.com>
1835 * ada-lang.c (ada_value_cast): Remove parameter "noside".
1838 2017-11-16 Pedro Alves <palves@redhat.com>
1840 * python/py-unwind.c (pyuw_sniffer): Translate
1841 PyExc_KeyboardInterrupt to a GDB Quit exception.
1843 2017-11-16 Pedro Alves <palves@redhat.com>
1845 * infrun.c (resume_cleanups): Delete.
1846 (resume): No longer install a resume_cleanups cleanup nor call
1848 (proceed): Pass the terminal to the inferior.
1849 (keep_going_pass_signal): No longer install a resume_cleanups
1852 2017-11-16 Pedro Alves <palves@redhat.com>
1854 * inf-loop.c (inferior_event_handler): Don't swallow the exception
1855 if the prompt is blocked.
1857 2017-11-16 Pedro Alves <palves@redhat.com>
1859 * breakpoint.c (insert_bp_location): Replace bp_err and
1860 bp_err_message locals by a gdb_exception local.
1862 2017-11-16 Pedro Alves <palves@redhat.com>
1864 * inflow.c (scoped_ignore_sigttou): New class.
1865 (child_terminal_ours_1, new_tty): Use it.
1867 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1869 * target-float.c (decimal_from_number): Add byte_order argument and
1870 call match_endianness. Error if unknown floating-point type.
1871 (decimal_to_number): Add byte_order argument and call match_endianness.
1872 (decimal_from_longest): Update call. Do not call match_endianness.
1873 (decimal_from_ulongest): Likewise.
1874 (decimal_binop): Likewise.
1875 (decimal_is_zero): Likewise.
1876 (decimal_compare): Likewise.
1877 (decimal_convert): Likewise.
1879 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
1881 * python/python.c (gdbpy_rbreak): New function.
1882 * NEWS: Document Python rbreak feature.
1884 2017-11-16 Yao Qi <yao.qi@linaro.org>
1886 * features/tic6x-c62x.xml: Remove.
1887 * features/tic6x-c64x.xml: Remove.
1888 * features/tic6x-c64xp.xml: Remove.
1890 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1892 * symtab.h: Include <array>.
1894 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1896 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
1897 (bsd_kvm_proc_cmd): Likewise.
1899 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
1901 * tui/tui-win.c (window_name_completer): Replace VEC with
1904 2017-11-15 Andrew Cagney <cagney@gnu.org>
1906 * MAINTAINERS: Remove no-longer applicable entries.
1908 2017-11-15 Andrew Cagney <cagney@gnu.org>
1910 * MAINTAINERS: Move self to Past Maintainers.
1912 2017-11-15 Yao Qi <yao.qi@linaro.org>
1914 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
1915 * features/nios2-linux.c: Remove.
1916 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
1917 initialize_tdesc_nios2_linux.
1919 2017-11-15 Yao Qi <yao.qi@linaro.org>
1921 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
1922 M68HC11_LAST_HARD_REG + 1.
1924 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
1927 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
1928 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
1929 Return TARGET_XFER_EOF if size of returned data is 0.
1931 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
1933 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1934 memory-map-selftests.c.
1935 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
1936 * memory-map.c (memory_map_start_memory): Fix computation of hi
1938 * unittests/memory-map-selftests.c: New file.
1940 2017-11-09 Joel Brobecker <brobecker@adacore.com>
1942 * ada-lang.c: Fix some typos in the general command documenting
1943 how Ada expressions are being evaluated and how their result
1946 2017-11-09 Tom Tromey <tom@tromey.com>
1948 * psymtab.c (psymbol_hash): Do not hash string contents.
1949 (psymbol_compare): Add comment.
1951 2017-11-09 Tom Tromey <tom@tromey.com>
1953 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
1955 2017-11-08 Joel Brobecker <brobecker@adacore.com>
1957 * ada-exp.y (write_var_from_sym): Remove parameter
1958 "orig_left_context". Update all callers.
1960 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
1962 * tracepoint.h (class collection_list) <stringify>: Return
1963 std::vector<std::string>.
1964 (encode_actions_rsp): Change parameters to
1965 std::vector<std::string> *.
1966 * tracepoint.c (collection_list::stringify): Return
1967 std::vector<std::string> and adjust accordingly.
1968 (encode_actions_rsp): Changee parameters to
1969 std::vector<std::string> and adjust accordingly.
1970 * remote.c (free_actions_list),
1971 free_actions_list_cleanup_wrapper): Remove.
1972 (remote_download_tracepoint): Adjust to std::vector.
1974 2017-11-08 Tom Tromey <tom@tromey.com>
1976 * dwarf2read.c (symbolp): Remove typedef.
1977 (read_func_scope): Use std::vector.
1978 (process_structure_scope): Use std::vector.
1980 2017-11-08 Pedro Alves <palves@redhat.com>
1982 * ada-lang.c (ada_make_symbol_completion_list): Use
1983 completion_skip_symbol.
1984 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
1985 (symbol_is_function_or_method(symbol*)): New.
1986 (add_symtab_completions): Add complete_symbol_mode parameter. Use
1987 completion_skip_symbol.
1988 (default_collect_symbol_completion_matches_break_on): Use
1989 completion_skip_symbol. Pass down mode.
1990 (collect_file_symbol_completion_matches): Pass down mode.
1991 * symtab.h (symbol_is_function_or_method): New declarations.
1992 (completion_skip_symbol): New template function.
1994 2017-11-08 Pedro Alves <palves@redhat.com>
1996 * linespec.c (iterate_over_all_matching_symtabs): Add
1997 search_domain parameter. Pass it down to expand_symtabs_matching.
1998 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
1999 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2001 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2003 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2005 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2008 2017-11-08 Pedro Alves <palves@redhat.com>
2010 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2011 text_len locals and don't pass them down.
2012 * symtab.c (completion_list_add_name): Remove
2013 sym_text/sym_text_len parameters and adjust.
2014 (completion_list_add_symbol, completion_list_add_msymbol)
2015 (completion_list_objc_symbol, completion_list_add_fields)
2016 (add_symtab_completions): Likewise.
2017 (default_collect_symbol_completion_matches_break_on)
2018 (collect_file_symbol_completion_matches): Remove sym_text_len
2019 local and don't pass it down.
2020 * symtab.h (completion_list_add_name): Remove
2021 sym_text/sym_text_len parameters.
2023 2017-11-08 Pedro Alves <palves@redhat.com>
2025 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2026 unittests/lookup_name_info-selftests.c.
2027 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2028 * cp-support.c: Include "selftest.h".
2029 (cp_remove_params_1): Rename from cp_remove_params. Add
2030 'require_param' parameter, and handle it.
2031 (cp_remove_params): Reimplement.
2032 (cp_remove_params_if_any): New.
2033 (selftests::quote): New.
2034 (selftests::check_remove_params): New.
2035 (selftests::test_cp_remove_params): New.
2036 (_initialize_cp_support): Install
2037 selftests::test_cp_remove_params.
2038 * cp-support.h (cp_remove_params_if_any): Declare.
2039 * dwarf2read.c :Include "selftest.h".
2040 (dw2_expand_symtabs_matching_symbol): Use
2041 lookup_name_info::make_ignore_params.
2042 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2043 (selftests::dw2_expand_symtabs_matching::string_or_null)
2044 (selftests::dw2_expand_symtabs_matching::check_match)
2045 (selftests::dw2_expand_symtabs_matching::test_symbols)
2046 (selftests::dw2_expand_symtabs_matching::run_test): New.
2047 (_initialize_dwarf2_read): Register
2048 selftests::dw2_expand_symtabs_matching::run_test.
2049 * psymtab.c (psym_expand_symtabs_matching): Use
2050 lookup_name_info::make_ignore_params.
2051 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2052 If the lookup name wants to ignore parameters, strip them.
2053 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2055 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2056 (default_collect_symbol_completion_matches_break_on): Don't try to
2058 * symtab.h (lookup_name_info::lookup_name_info): Add
2059 'ignore_parameters' parameter.
2060 (lookup_name_info::ignore_parameters)
2061 (lookup_name_info::make_ignore_params): New methods.
2062 (lookup_name_info::m_ignore_parameters): New field.
2063 * unittests/lookup_name_info-selftests.c: New file.
2065 2017-11-08 Pedro Alves <palves@redhat.com>
2067 * dwarf2read.c (dw2_expand_marked_cus)
2068 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2069 (dw2_expand_symtabs_matching): Move further below.
2070 (dw2_expand_marked_cus): Reindent.
2072 2017-11-08 Pedro Alves <palves@redhat.com>
2074 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2075 (struct name_component): New.
2076 (mapped_index::name_components): New field.
2077 (mapped_index::symbol_name_at): New method.
2078 (dwarf2_read_index): Call mapped_index ctor.
2079 (dw2_map_matching_symbols): Add comment about name_components
2081 (dw2_expand_symtabs_matching): Factor part to...
2082 (dw2_expand_symtabs_matching_symbol): ... this new function.
2083 Build name components table, and lookup symbols in it before
2084 calling the name matcher.
2085 (dw2_expand_marked_cus): New, factored out from
2086 dw2_expand_symtabs_matching.
2087 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2089 2017-11-08 Pedro Alves <palves@redhat.com>
2091 * ada-lang.c (ada_encode): Rename to ..
2092 (ada_encode_1): ... this. Add throw_errors parameter and handle
2094 (ada_encode): Reimplement.
2095 (match_name): Delete, folded into full_name.
2096 (resolve_subexp): No longer pass the encoded name to
2097 ada_lookup_symbol_list.
2098 (should_use_wild_match): Delete.
2099 (name_match_type_from_name): New.
2100 (ada_lookup_simple_minsym): Use lookup_name_info and the
2101 language's symbol_name_matcher_ftype.
2102 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2103 (ada_add_block_renamings): Adjust to use lookup_name_info.
2104 (ada_lookup_name): New.
2105 (add_nonlocal_symbols, ada_add_all_symbols)
2106 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2107 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2108 (ada_name_for_lookup): Delete.
2109 (ada_lookup_encoded_symbol): Construct a verbatim name.
2110 (wild_match): Reverse sense of return type. Use bool.
2111 (full_match): Reverse sense of return type. Inline bits of old
2113 (ada_add_block_symbols): Adjust to use lookup_name_info.
2114 (symbol_completion_match): Delete, folded into...
2115 (ada_lookup_name_info::matches): ... .this new method.
2116 (symbol_completion_add): Delete.
2117 (ada_collect_symbol_completion_matches): Add name_match_type
2118 parameter. Adjust to use lookup_name_info and
2119 completion_list_add_name.
2120 (get_var_value, ada_add_global_exceptions): Adjust to use
2122 (ada_get_symbol_name_cmp): Delete.
2123 (do_wild_match, do_full_match): New functions.
2124 (ada_lookup_name_info::ada_lookup_name_info): New method.
2125 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2127 (ada_language_defn): Install ada_get_symbol_name_matcher.
2128 * ada-lex.l (processId): If name starts with '<', copy it
2130 * block.c (block_iter_match_step, block_iter_match_first)
2131 (block_iter_match_next, block_lookup_symbol)
2132 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2134 * block.h (block_iter_match_first, block_iter_match_next)
2135 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2136 * c-lang.c (c_language_defn, cplus_language_defn)
2137 (asm_language_defn, minimal_language_defn): Adjust comments to
2138 refer to la_get_symbol_name_matcher.
2139 * completer.c (complete_files_symbols)
2140 (collect_explicit_location_matches, symbol_completer): Pass a
2141 symbol_name_match_type down.
2142 * completer.h (class completion_match, completion_match_result):
2144 (completion_tracker::reset_completion_match_result): New method.
2145 (completion_tracker::m_completion_match_result): New field.
2146 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2148 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2150 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2151 * d-lang.c: Adjust comments to refer to
2152 la_get_symbol_name_matcher.
2153 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2154 Adjust to use lookup_name_info.
2155 (dict_iter_match_first, dict_iter_match_next)
2156 (iter_match_first_hashed, iter_match_next_hashed)
2157 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2158 with a lookup_name_info.
2159 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2161 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2162 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2163 (gdb_index_symbol_name_matcher): New class.
2164 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2165 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2166 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2167 with a symbol_name_match_type.
2168 (f_language_defn): Adjust comments to refer to
2169 la_get_symbol_name_matcher.
2170 * go-lang.c (go_language_defn): Adjust comments to refer to
2171 la_get_symbol_name_matcher.
2172 * language.c (default_symbol_name_matcher)
2173 (language_get_symbol_name_matcher): New functions.
2174 (unknown_language_defn, auto_language_defn): Adjust comments to
2175 refer to la_get_symbol_name_matcher.
2176 * language.h (symbol_name_cmp_ftype): Delete.
2177 (language_defn) <la_collect_symbol_completion_matches>: Add match
2179 <la_get_symbol_name_cmp>: Delete field.
2180 <la_get_symbol_name_matcher>: New field.
2181 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2182 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2184 * linespec.c (iterate_over_all_matching_symtabs)
2185 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2186 (find_methods): Add language parameter, and use lookup_name_info
2187 and the language's symbol_name_matcher_ftype.
2188 (linespec_complete_function): Adjust.
2189 (lookup_prefix_sym): Use lookup_name_info.
2190 (add_all_symbol_names_from_pspace): Adjust.
2191 (find_superclass_methods): Add language parameter and pass it
2193 (find_method): Pass symbol language down.
2194 (find_linespec_symbols): Don't demangle or Ada encode here.
2195 (search_minsyms_for_name): Add lookup_name_info parameter.
2196 (add_matching_symbols_to_info): Add name_match_type parameter.
2197 Use lookup_name_info.
2198 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2199 la_get_symbol_name_matcher.
2200 * minsyms.c: Include <algorithm>.
2201 (add_minsym_to_demangled_hash_table): Remove table parameter and
2202 add objfile parameter. Use search_name_hash, and add language to
2203 demangled languages vector.
2204 (struct found_minimal_symbols): New struct.
2205 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2207 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2208 input names here. Use lookup_name_info instead. Lookup up
2209 demangled names once for each language in the demangled names
2211 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2212 demangled names once for each language in the demangled names
2214 (build_minimal_symbol_hash_tables): Adjust.
2215 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2217 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2218 la_get_symbol_name_matcher.
2219 * objfiles.h: Include <vector>.
2220 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2221 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2222 la_get_symbol_name_matcher.
2223 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2224 la_get_symbol_name_matcher.
2225 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2226 (match_partial_symbol): Use symbol_name_match_type,
2227 lookup_name_info and psymbol_name_matches.
2228 (lookup_partial_symbol): Use lookup_name_info.
2229 (map_block): Use symbol_name_match_type and lookup_name_info.
2230 (psym_map_matching_symbols): Use symbol_name_match_type.
2231 (psymbol_name_matches): New.
2232 (recursively_search_psymtabs): Use lookup_name_info and
2233 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2234 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2235 'kind' parameter to 'domain'.
2236 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2237 la_get_symbol_name_matcher.
2238 * symfile-debug.c (debug_qf_map_matching_symbols)
2239 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2240 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2241 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2242 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2243 Adjust to use symbol_name_match_type.
2244 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2245 (expand_symtabs_matching): Adjust to use lookup_name_info.
2246 * symmisc.c (maintenance_expand_symtabs): Use
2247 lookup_name_info::match_any ().
2248 * symtab.c (symbol_matches_search_name): New.
2249 (eq_symbol_entry): Adjust to use lookup_name_info and the
2251 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2252 (lookup_name_info::match_any): New.
2253 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2254 (compare_symbol_name): Add language, lookup_name_info and
2255 completion_match_result parameters, and use them.
2256 (completion_list_add_name): Make extern. Add language and
2257 lookup_name_info parameters. Use them.
2258 (completion_list_add_symbol, completion_list_add_msymbol)
2259 (completion_list_objc_symbol): Add lookup_name_info parameters and
2260 adjust. Pass down language.
2261 (completion_list_add_fields): Add lookup_name_info parameters and
2262 adjust. Pass down language.
2263 (add_symtab_completions): Add lookup_name_info parameters and
2265 (default_collect_symbol_completion_matches_break_on): Add
2266 name_match_type parameter, and use it. Use lookup_name_info.
2267 (default_collect_symbol_completion_matches)
2268 (collect_symbol_completion_matches): Add name_match_type
2269 parameter, and pass it down.
2270 (collect_symbol_completion_matches_type): Adjust.
2271 (collect_file_symbol_completion_matches): Add name_match_type
2272 parameter, and use lookup_name_info.
2273 * symtab.h: Include <string> and "common/gdb_optional.h".
2274 (enum class symbol_name_match_type): New.
2275 (class ada_lookup_name_info): New.
2276 (struct demangle_for_lookup_info): New.
2277 (class lookup_name_info): New.
2278 (symbol_name_matcher_ftype): New.
2279 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2280 (symbol_matches_search_name): Declare.
2281 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2282 (default_collect_symbol_completion_matches)
2283 (collect_symbol_completion_matches)
2284 (collect_file_symbol_completion_matches): Add name_match_type
2286 (iterate_over_symbols): Use lookup_name_info.
2287 (completion_list_add_name): Declare.
2288 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2289 (strncmp_iw_with_mode): Now extern.
2290 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2291 (strncmp_iw_with_mode): Declare.
2293 2017-11-08 Keith Seitz <keiths@redhat.com>
2294 Pedro Alves <palves@redhat.com>
2296 * ada-lang.c (ada_language_defn): Install
2297 default_search_name_hash.
2298 * buildsym.c (struct buildsym_compunit): <language>: New field.
2299 (finish_block_internal): Pass language when creating dictionaries.
2300 (start_buildsym_compunit, start_symtab): New language parameters.
2302 (restart_symtab): Pass down compilation unit's language.
2303 * buildsym.h (enum language): Forward declare.
2304 (start_symtab): New 'language' parameter.
2305 * c-lang.c (c_language_defn, cplus_language_defn)
2306 (asm_language_defn, minimal_language_defn): Install
2307 default_search_name_hash.
2308 * coffread.c (coff_start_symtab): Adjust.
2309 * d-lang.c (d_language_defn): Install default_search_name_hash.
2310 * dbxread.c (struct symloc): Add 'pst_language' field.
2311 (PST_LANGUAGE): Define.
2312 (start_psymtab, read_ofile_symtab): Use it.
2313 (process_one_symbol): New 'language' parameter. Pass it down.
2314 * dictionary.c (struct dictionary) <language>: New field.
2315 (DICT_LANGUAGE): Define.
2316 (dict_create_hashed, dict_create_hashed_expandable)
2317 (dict_create_linear, dict_create_linear_expandable): New parameter
2318 'language'. Set the dictionary's language.
2319 (iter_match_first_hashed): Adjust to rename.
2320 (insert_symbol_hashed): Assert we don't see mismatching
2321 languages. Adjust to rename.
2322 (dict_hash): Rename to ...
2323 (default_search_name_hash): ... this and make extern.
2324 * dictionary.h (struct language_defn): Forward declare.
2325 (dict_create_hashed): New parameter 'language'.
2326 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2327 * f-lang.c (f_language_defn): Install default_search_name_hash.
2328 * go-lang.c (go_language_defn): Install default_search_name_hash.
2329 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2331 * language.c (unknown_language_defn, auto_language_defn):
2332 * language.h (language_defn::la_search_name_hash): New field.
2333 (default_search_name_hash): Declare.
2334 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2335 * mdebugread.c (new_block): New parameter 'language'.
2336 * mdebugread.c (parse_symbol): Pass symbol language to block
2338 (psymtab_to_symtab_1): Pass down language.
2339 (new_symtab): Pass compunit's language to block allocation.
2340 * objc-lang.c (objc_language_defn): Install
2341 default_search_name_hash.
2342 * opencl-lang.c (opencl_language_defn):
2343 * p-lang.c (pascal_language_defn): Install
2344 default_search_name_hash.
2345 * rust-lang.c (rust_language_defn): Install
2346 default_search_name_hash.
2347 * stabsread.h (enum language): Forward declare.
2348 (process_one_symbol): Add 'language' parameter.
2349 * symtab.c (search_name_hash): New function.
2350 * symtab.h (search_name_hash): Declare.
2351 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2353 2017-11-08 Pedro Alves <palves@redhat.com>
2355 * cp-name-parser.y (main): Don't initialize extra_chars.
2357 2017-11-07 Tom Tromey <tom@tromey.com>
2359 * event-top.h (command_handler): Constify.
2360 * record-full.c (cmd_record_full_start): Update.
2361 * thread.c (thread_apply_all_command): Update.
2362 * printcmd.c (eval_command): Update.
2363 * mi/mi-main.c (mi_execute_cli_command): Update.
2364 (mi_execute_async_cli_command): Update.
2365 * tui/tui-stack.c (tui_update_command): Update.
2366 * cli/cli-interp.c (safe_execute_command): Constify.
2367 * record.c (record_start): Update.
2368 (record_start, record_stop, cmd_record_start): Update.
2369 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2370 (cmd_record_btrace_pt_start): Update.
2371 (cmd_record_btrace_start): Update.
2372 (cmd_record_btrace_start): Update.
2373 * reverse.c (exec_reverse_once): Update.
2374 * python/python.c (execute_gdb_command): Don't copy the command.
2375 * event-top.c (command_line_handler): Update.
2376 (command_handler): Constify.
2377 * defs.h (deprecated_call_command_hook): Constify.
2378 * cli/cli-script.h (execute_user_command): Constify.
2379 * cli/cli-script.c (execute_user_command): Constify.
2380 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2381 (enum command_control_type): Update.
2382 * main.c (catch_command_errors): Remove non-const overload.
2383 (catch_command_errors_ftype): Remove.
2384 * python/py-cmd.c (cmdpy_function): Constify.
2385 * guile/scm-cmd.c (cmdscm_function): Constify.
2386 * cli/cli-dump.c (call_dump_func): Constify.
2387 * cli/cli-decode.c (do_const_cfunc): Constify.
2388 (do_sfunc): Constify.
2389 (cmd_func): Constify.
2390 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2391 * top.h (execute_command): Constify.
2392 * top.c (execute_command): Constify.
2393 (execute_command_to_string): Constify.
2394 (deprecated_call_command_hook): Constify.
2395 * command.h (cmd_func): Constify.
2396 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2398 2017-11-07 Tom Tromey <tom@tromey.com>
2400 * ada-lang.c (catch_ada_exception_command): Constify.
2401 (catch_assert_command): Constify.
2402 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2403 (catch_rethrow_command): Constify.
2404 (catch_exception_command_1): Constify.
2405 * breakpoint.h (add_catch_command): Constify.
2406 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2407 (catch_syscall_split_args): Constify.
2408 * break-catch-sig.c (catch_signal_command): Constify.
2409 (catch_signal_split_args): Constify.
2410 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2411 cmd_const_sfunc_ftype.
2412 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2413 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2414 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2415 (add_setshow_string_cmd, struct cmd_list_element)
2416 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2417 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2418 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2420 (set_cmd_sfunc): Constify.
2421 (empty_sfunc): Constify.
2422 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2423 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2424 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2425 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2426 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2427 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2429 (set_cmd_sfunc): Constify.
2430 (cmd_sfunc_ftype): Remove.
2431 * compile/compile.c (set_compile_args): Constify.
2432 * infrun.c (set_disable_randomization): Constify.
2433 * infcmd.c (set_args_command, set_cwd_command): Constify.
2434 * breakpoint.c (set_condition_evaluation_mode): Constify.
2435 (add_catch_command): Constify.
2436 (catch_fork_command_1, catch_exec_command_1)
2437 (catch_load_command_1, catch_unload_command_1): Constify.
2438 (catch_load_or_unload): Constify.
2439 * guile/scm-param.c (pascm_set_func): Constify.
2440 (add_setshow_generic): Constify.
2441 * python/py-param.c (get_set_value): Constify.
2442 * top.h (set_verbose): Constify.
2443 * tui/tui-win.c (tui_set_var_cmd): Constify.
2444 * mi/mi-main.c (set_mi_async_command): Constify.
2445 * cli/cli-logging.c (set_logging_overwrite)
2446 (set_logging_redirect): Constify.
2447 * value.c (set_max_value_size): Constify.
2448 * valprint.c (set_input_radix, set_output_radix): Constify.
2449 * utils.c (set_width_command, set_height_command): Constify.
2450 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2451 * tracepoint.c (set_disconnected_tracing)
2452 (set_circular_trace_buffer, set_trace_buffer_size)
2453 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2454 * top.c (set_history_size_command, set_verbose, set_editing)
2455 (set_gdb_datadir, set_history_filename): Constify.
2456 * target.c (set_targetdebug, maint_set_target_async_command)
2457 (maint_set_target_non_stop_command, set_target_permissions)
2458 (set_write_memory_permission): Constify.
2459 (open_target): Constify.
2460 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2461 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2462 * symtab.c (set_symbol_cache_size_handler): Constify.
2463 * symfile.c (set_ext_lang_command): Constify.
2464 * symfile-debug.c (set_debug_symfile): Constify.
2465 * source.c (set_directories_command): Constify.
2466 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2467 * serial.c (set_parity): Constify.
2468 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2469 * remote.c (set_remote_exec_file, set_remotebreak)
2470 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2471 * record.c (set_record_insn_history_size)
2472 (set_record_call_history_size): Constify.
2473 * record-full.c (set_record_full_insn_max_num): Constify.
2474 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2475 * osabi.c (set_osabi): Constify.
2476 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2477 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2478 * maint.c (maintenance_set_profile_cmd): Constify.
2479 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2480 * language.c (set_language_command, set_range_command)
2481 (set_case_command): Constify.
2482 * infrun.c (set_non_stop, set_observer_mode)
2483 (set_stop_on_solib_events, set_schedlock_func)
2484 (set_exec_direction_func): Constify.
2485 * infcmd.c (set_inferior_tty_command): Constify.
2486 * disasm.c (set_disassembler_options_sfunc): Constify.
2487 * demangle.c (set_demangling_command): Constify.
2488 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2489 * cris-tdep.c (set_cris_version, set_cris_mode)
2490 (set_cris_dwarf2_cfi): Constify.
2491 * corefile.c (set_gnutarget_command): Constify.
2492 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2493 (set_target_wide_charset_sfunc): Constify.
2494 * breakpoint.c (update_dprintf_commands): Constify.
2495 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2496 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2497 (set_disassembly_style_sfunc): Constify.
2498 * arch-utils.c (set_endian, set_architecture): Constify.
2499 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2500 * agent.c (set_can_use_agent): Constify.
2502 2017-11-07 Tom Tromey <tom@tromey.com>
2504 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2505 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2506 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2507 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2508 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2509 (parse_int_arg, show_thread_default_detach_sc_cmd)
2510 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2511 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2512 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2513 (show_task_pause_cmd, set_task_detach_sc_cmd)
2514 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2515 (set_noninvasive_cmd, set_thread_pause_cmd)
2516 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2517 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2518 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2519 * windows-nat.c (display_selectors): Constify.
2520 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2522 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2523 (cmd_cfunc_eq): Likewise.
2524 (struct cmd_list_element): Likewise.
2526 (cli_user_command_p): Update.
2527 * command.h (add_cmd): Remove non-const overload.
2528 (cmd_cfunc_ftype): Remove typedef.
2529 (cmd_cfunc_eq): Remove non-const overload.
2530 * value.c (show_values): Constify.
2531 * thread.c (thread_apply_all_command): Constify.
2532 * symfile.c (load_command): Constify.
2533 * source.c (directory_command): Constify.
2534 * maint.c (maintenance_internal_error)
2535 (maintenance_demangler_warning, maintenance_space_display)
2536 (maintenance_print_architecture, maintenance_translate_address)
2537 (maintenance_info_selftests, maintenance_internal_warning):
2539 * breakpoint.c (disable_trace_command, enable_trace_command):
2541 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2543 (add_auto_load_safe_path): Constify.
2544 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2545 * top.h (show_commands): Constify.
2546 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2547 * sparc64-tdep.c (adi_examine_command): Constify.
2548 (adi_assign_command): Constify.
2550 2017-11-07 Tom Tromey <tom@tromey.com>
2552 * frame.h (info_locals_command, info_args_command): Constify.
2553 * auto-load.h (auto_load_info_scripts): Constify.
2554 * inferior.h (registers_info): Constify.
2555 * copying.c: Rebuild.
2556 * copying.awk: Constify generated commands.
2557 * auto-load.c (auto_load_info_scripts)
2558 (info_auto_load_gdb_scripts): Constify.
2559 * cli/cli-decode.c (struct cmd_list_element): Take a
2560 cmd_const_cfunc_ftype.
2561 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2562 * tui/tui-win.c (tui_all_windows_info): Constify.
2563 * python/py-auto-load.c (info_auto_load_python_scripts):
2565 * cli/cli-cmds.c (show_command): Remove non-const overload.
2566 * tracepoint.c (info_tvariables_command, info_scope_command):
2568 (info_static_tracepoint_markers_command): Constify.
2569 * thread.c (info_threads_command): Constify.
2570 (print_thread_info_1): Constify.
2571 * target.c (info_target_command): Constify.
2572 * symtab.c (info_sources_command, info_functions_command)
2573 (info_types_command): Constify.
2574 (info_variables_command): Remove non-const overload.
2575 * symfile.c (info_ext_lang_command): Constify.
2576 * stack.c (info_frame_command, info_locals_command)
2577 (info_args_command): Constify.
2578 (backtrace_command): Remove non-const overload.
2579 * source.c (info_source_command, info_line_command): Constify.
2580 * solib.c (info_sharedlibrary_command): Constify.
2581 * skip.c (info_skip_command): Constify.
2582 * ser-go32.c (info_serial_command): Constify.
2583 * reverse.c (info_bookmarks_command): Constify.
2584 * printcmd.c (info_symbol_command, info_address_command)
2585 (info_display_command): Constify.
2586 * osdata.c (info_osdata_command): Constify.
2587 * objc-lang.c (info_selectors_command, info_classes_command):
2589 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2590 * memattr.c (info_mem_command): Constify.
2591 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2592 * linux-fork.c (info_checkpoints_command): Constify.
2593 * infrun.c (info_signals_command): Constify.
2594 * inflow.c (info_terminal_command): Constify.
2595 * inferior.c (info_inferiors_command): Constify.
2596 (print_inferior): Constify.
2597 * infcmd.c (info_program_command, info_all_registers_command)
2598 (info_registers_command, info_vector_command)
2599 (info_float_command): Constify.
2600 (registers_info): Constify.
2601 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2602 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2604 * f-valprint.c (info_common_command): Constify.
2605 * dcache.c (info_dcache_command): Constify.
2606 (dcache_info_1): Constify.
2607 * darwin-nat-info.c (info_mach_tasks_command)
2608 (info_mach_task_command, info_mach_ports_command)
2609 (info_mach_port_command, info_mach_threads_command)
2610 (info_mach_thread_command, info_mach_regions_command)
2611 (info_mach_regions_recurse_command, info_mach_region_command)
2612 (info_mach_exceptions_command): Constify.
2613 (get_task_from_args): Constify.
2614 * cp-support.c (info_vtbl_command): Constify.
2615 * breakpoint.c (info_watchpoints_command)
2616 (info_tracepoints_command): Constify.
2617 (info_breakpoints_command): Remove non-const overload.
2618 * avr-tdep.c (avr_io_reg_read_command): Constify.
2619 * auxv.c (info_auxv_command): Constify.
2620 * ada-tasks.c (info_tasks_command): Constify.
2621 (info_task): Constify.
2622 * ada-lang.c (info_exceptions_command): Constify.
2624 2017-11-07 Tom Tromey <tom@tromey.com>
2626 * solib.h (no_shared_libraries): Constify.
2627 * frame.h (return_command): Constify.
2628 * cli/cli-cmds.h (quit_command): Constify.
2629 * top.h (quit_command, execute_command): Constify.
2630 * target.h (flash_erase_command): Constify.
2631 * inferior.h (set_inferior_args, attach_command): Constify.
2632 * tracepoint.h (start_tracing, stop_tracing): Constify.
2633 * breakpoint.h (break_command, tbreak_command)
2634 (hbreak_command_wrapper, thbreak_command_wrapper)
2635 (rbreak_command_wrapper, watch_command_wrapper)
2636 (awatch_command_wrapper, rwatch_command_wrapper)
2637 (get_tracepoint_by_number): Constify.
2638 * symtab.c (info_variables_command, rbreak_command)
2639 (symtab_symbol_info): Constify.
2640 (info_variables_command): Add non-const overload.
2641 * top.c (dont_repeat_command): Constify.
2642 * breakpoint.c (ignore_command, commands_command)
2643 (condition_command, tbreak_command, hbreak_command)
2644 (thbreak_command, clear_command, break_command)
2645 (info_breakpoints_command, watch_command, rwatch_command)
2646 (awatch_command, trace_command, ftrace_command, strace_command)
2647 (trace_pass_command, break_range_command, dprintf_command)
2648 (agent_printf_command, get_tracepoint_by_number)
2649 (watch_maybe_just_location, trace_pass_command): Constify.
2650 (info_breakpoints_command): Add non-const overload.
2651 * tracefile.c (tsave_command): Constify.
2652 * infcmd.c (attach_command, disconnect_command, signal_command)
2653 (queue_signal_command, stepi_command, nexti_command)
2654 (finish_command, next_command, step_command, until_command)
2655 (advance_command, jump_command, continue_command, run_command)
2656 (start_command, starti_command, interrupt_command)
2657 (run_command_1, set_inferior_args, step_1): Constify.
2658 * inferior.c (add_inferior_command, remove_inferior_command)
2659 (clone_inferior_command): Constify.
2660 * linux-fork.c (checkpoint_command, restart_command): Constify.
2661 * windows-nat.c (signal_event_command): Constify.
2662 * guile/guile.c (guile_repl_command, guile_command): Constify.
2663 * printcmd.c (x_command, display_command, printf_command)
2664 (output_command, set_command, call_command, print_command)
2665 (eval_command): Constify.
2666 (non_const_set_command): Remove.
2667 (_initialize_printcmd): Update.
2668 * source.c (forward_search_command, reverse_search_command):
2670 * jit.c (jit_reader_load_command, jit_reader_unload_command):
2672 * infrun.c (handle_command): Constify.
2673 * memattr.c (mem_command): Constify.
2674 * stack.c (return_command, up_command, up_silently_command)
2675 (down_command, down_silently_command, frame_command)
2676 (backtrace_command, func_command, backtrace_command_1): Constify.
2677 (backtrace_command): Add non-const overload.
2678 * remote-sim.c (simulator_command): Constify.
2679 * exec.c (set_section_command): Constify.
2680 * tracepoint.c (tdump_command, trace_variable_command)
2681 (tstatus_command, tstop_command, tstart_command)
2682 (end_actions_pseudocommand, while_stepping_pseudocommand)
2683 (collect_pseudocommand, teval_pseudocommand, actions_command)
2684 (start_tracing, stop_tracing): Constify.
2685 * value.c (init_if_undefined_command): Constify.
2686 * tui/tui-stack.c (tui_update_command): Constify.
2687 * tui/tui-win.c (tui_refresh_all_command)
2688 (tui_set_tab_width_command, tui_set_win_height_command)
2689 (tui_set_focus_command, tui_scroll_forward_command)
2690 (tui_scroll_backward_command, tui_scroll_left_command)
2691 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
2692 (tui_set_win_height): Constify.
2693 * tui/tui-layout.c (tui_layout_command): Constify.
2694 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
2695 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
2696 (proc_untrace_sysexit_cmd): Constify.
2697 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
2698 (threadset_test_cmd, threadlist_update_test_cmd)
2699 (threadalive_test): Constify.
2700 * objc-lang.c (print_object_command): Constify.
2701 * command.h (add_com): Constify.
2702 * cli/cli-dump.c (restore_command): Constify.
2703 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
2704 (help_command, complete_command, shell_command, edit_command)
2705 (list_command, disassemble_command, make_command)
2706 (apropos_command, alias_command): Constify.
2707 * cli/cli-script.c (document_command, define_command)
2708 (while_command, if_command, validate_comname): Constify.
2709 * cli/cli-decode.c (struct cmd_list_element): Change type of
2711 * target.c (do_monitor_command, flash_erase_command): Constify.
2712 * regcache.c (reg_flush_command): Constify.
2713 * reverse.c (reverse_step, reverse_next, reverse_stepi)
2714 (reverse_nexti, reverse_continue, reverse_finish)
2715 (save_bookmark_command, goto_bookmark_command)
2716 (exec_reverse_once): Constify.
2717 * python/python.c (python_interactive_command, python_command):
2719 * typeprint.c (ptype_command, whatis_command, whatis_exp):
2721 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
2722 * gcore.c (gcore_command): Constify.
2724 2017-11-07 Tom Tromey <tom@tromey.com>
2726 * printcmd.c (x_command): Call set_repeat_arguments.
2727 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2728 * top.c (repeat_arguments): New global.
2729 (set_repeat_arguments): New function.
2730 (execute_command): Handle repeat_arguments.
2731 (show_commands): Calls set_repeat_arguments.
2732 * command.h (set_repeat_arguments): Declare.
2734 2017-11-07 Tom Tromey <tom@tromey.com>
2736 * stack.c (backtrace_command): Use std::string.
2737 (backtrace_command_1): Make "count_exp" const.
2739 2017-11-07 Tom Tromey <tom@tromey.com>
2741 * source.c (directory_switch, mod_path, add_path): Constify.
2742 * defs.h (add_path, mod_path, directory_switch): Constify.
2743 * mi/mi-cmd-env.c (env_mod_path): Constify.
2745 2017-11-07 Tom Tromey <tom@tromey.com>
2747 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2748 (run_command_1, continue_command, step_1, jump_command)
2749 (signal_command, until_command, advance_command, finish_command)
2750 (attach_command): Update.
2752 2017-11-07 Tom Tromey <tom@tromey.com>
2754 * command.h (set_cmd_cfunc): Don't declare.
2755 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2757 2017-11-07 Tom Tromey <tom@tromey.com>
2759 * stack.c (select_frame_command): Constify.
2760 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2761 * command.h (add_com_suppress_notification): Constify.
2763 2017-11-07 Tom Tromey <tom@tromey.com>
2765 * breakpoint.c (stop_command): Constify.
2766 * cli/cli-decode.c (struct cmd_list_element): Constify.
2767 * command.h (add_abbrev_prefix_cmd): Constify.
2769 2017-11-07 Pedro Alves <palves@redhat.com>
2771 * breakpoint.c (extract_bp_kind): New enum.
2772 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
2773 factored out from ...
2774 (extract_bp_number_and_location): ... here.
2775 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
2777 2017-11-07 Pedro Alves <palves@redhat.com>
2779 * breakpoint.c (extract_bp_number_and_location): Change return
2780 type to void. Throw error instead of warning.
2781 (enable_disable_command): Adjust.
2783 2017-11-07 Xavier Roirand <roirand@adacore.com>
2784 Pedro Alves <palves@redhat.com>
2786 * breakpoint.c (map_breakpoint_number_range): New, factored out
2788 (map_breakpoint_numbers): ... here.
2789 (find_location_by_number): Change parameters from string to
2790 breakpoint number and location.
2791 (extract_bp_number_and_location): New function.
2792 (enable_disable_bp_num_loc)
2793 (enable_disable_breakpoint_location_range)
2794 (enable_disable_command): New functions, factored out ...
2795 (enable_command, disable_command): ... these functions, and
2796 adjusted to support ranges.
2797 * NEWS: Document enable/disable breakpoint location range feature.
2799 2017-11-06 Luis Machado <luis.machado@linaro.org>
2801 * MAINTAINERS (Write After Approval): Update my e-mail address.
2803 2017-11-06 Pedro Alves <palves@redhat.com>
2805 * gnu-nat.c (gnu_terminal_init): Delete.
2806 (gnu_target): Don't install gnu_terminal_init.
2807 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2808 (child_terminal_init): ... this function.
2810 2017-11-06 Pedro Alves <palves@redhat.com>
2812 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2814 * config.in, configure: Regenerate.
2816 2017-11-06 Pedro Alves <palves@redhat.com>
2818 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
2819 (async_init_signals): Adjust.
2820 (handle_stop_sig): Rename to ...
2821 (handle_sigtstp): ... this.
2822 (async_stop_sig): Rename to ...
2823 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
2825 * event-top.h: Move signal.h include to the top. Check SIGTSTP
2826 instead of STOP_SIGNAL thoughout.
2827 (handle_stop_sig): Rename to ...
2828 (handle_sigtstp): ... this.
2829 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
2831 2017-11-06 Pedro Alves <palves@redhat.com>
2833 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
2834 longer set flags twice in row.
2836 2017-11-06 Pedro Alves <palves@redhat.com>
2838 * Makefile.in (SER_HARDWIRE): Update comment.
2839 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
2840 * common/gdb_termios.h: Delete file.
2841 * common/job-control.c: Include termios.h and unistd.h instead of
2843 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
2845 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
2847 * configure.ac: No longer check for termio.h and sgtty.h.
2848 * configure: Regenerate.
2849 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
2850 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
2851 Replace PROCESS_GROUP_TYPE references with pid_t references
2853 (gdb_getpgrp): Delete.
2854 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
2855 (child_terminal_inferior): Remove comment. Remove sgtty code.
2856 (child_terminal_ours_1): Use tcgetpgrp directly instead of
2857 gdb_getpgrp. Use serial_set_tty_state instead aof
2858 serial_noflush_set_tty_state. Remove sgtty code.
2859 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
2860 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
2861 (inferior_process_group): Now returns pid_t.
2862 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
2863 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
2864 * ser-event.c (serial_event_ops): Update.
2865 * ser-go32.c (dos_noflush_set_tty_state): Delete.
2867 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
2868 * ser-pipe.c (pipe_ops): Update.
2869 * ser-tcp.c (tcp_ops): Update.
2870 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
2871 HAVE_TERMIOS checks.
2872 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
2873 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
2874 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
2876 (hardwire_noflush_set_tty_state): Delete.
2877 (hardwire_print_tty_state, hardwire_drain_output)
2878 (hardwire_flush_output, hardwire_flush_input)
2879 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
2880 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
2881 code, and assume termios.
2882 (hardwire_ops): Update.
2883 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
2884 * serial.c (serial_noflush_set_tty_state): Delete.
2885 * serial.h (serial_noflush_set_tty_state): Delete.
2886 (serial_ops::noflush_set_tty_state): Delete.
2888 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2890 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
2891 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
2892 (COMMON_OBS): Remove doublest.o and dfp.o.
2893 Do not build target-float.c (instead of doublest.c)
2894 with -Wformat-nonliteral.
2896 * doublest.c: Remove file.
2897 * doublest.h: Remove file.
2898 * dfp.c: Remove file.
2899 * dfp.h: Remove file.
2901 * target-float.c: Do not include "doublest.h" and "dfp.h".
2902 (DOUBLEST): Move here from doublest.h.
2903 (enum float_kind): Likewise.
2904 (FLOATFORMAT_CHAR_BIT): Likewise.
2905 (FLOATFORMAT_LARGEST_BYTES): Likewise.
2906 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
2907 (floatformat_precision): Likewise.
2908 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
2909 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
2911 (host_float_format, host_double_format, host_long_double_format):
2913 (floatformat_to_string, floatformat_from_string): Likewise.
2914 (floatformat_to_doublest): Likewise. Also, inline the original
2915 convert_floatformat_to_doublest.
2916 (floatformat_from_doublest): Likewise. Also, inline the original
2917 convert_floatformat_from_doublest.
2919 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
2920 (MAX_DECIMAL_STRING): Move here from dfp.c.
2921 (match_endianness): Likewise.
2922 (set_decnumber_context, decimal_check_errors): Likewise.
2923 (decimal_from_number, decimal_to_number): Likewise.
2924 (decimal_to_string, decimal_from_string): Likewise. Make static.
2925 (decimal_from_longest, decimal_from_ulongest): Likewise.
2926 (decimal_to_longest): Likewise.
2927 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
2928 (decimal_convert): Likewise.
2930 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2932 * doublest.c: Do not include "gdbtypes.h".
2933 (extract_typed_floating): Remove.
2934 (store_typed_floating): Remove.
2935 (convert_typed_floating): Remove.
2936 * doublest.h (struct type): Remove.
2937 (DOUBLEST_PRINT_FORMAT): Remove.
2938 (DOUBLEST_SCAN_FORMAT): Remove.
2939 (extract_typed_floating): Remove.
2940 (store_typed_floating): Remove.
2941 (convert_typed_floating): Remove.
2943 * dfp.c (decimal_from_doublest): Remove.
2944 (decimal_to_doublest): Remove.
2945 * dfp.h: Do not include "doublest.h".
2946 (decimal_from_doublest): Remove.
2947 (decimal_to_doublest): Remove.
2949 * value.c: Do not include "doublest.h" and "dfp.h".
2950 (value_as_double): Remove.
2951 (unpack_double): Remove.
2952 (value_from_double): Remove.
2953 (value_from_decfloat): Remove.
2954 * value.h: Do not include "doublest.h".
2955 (value_as_double): Remove.
2956 (unpack_double): Remove.
2957 (value_from_double): Remove.
2958 (value_from_decfloat): Remove.
2960 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2962 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
2963 (i386_extract_return_value): Use target_float_convert.
2964 (i386_store_return_value): Likewise.
2965 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
2966 (i387_value_to_register): Likewise.
2967 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
2968 (ia64_register_to_value): Use target_float_convert.
2969 (ia64_value_to_register): Likewise.
2970 (ia64_extract_return_value): Likewise.
2971 (ia64_store_return_value): Likewise.
2972 (ia64_push_dummy_call): Likewise.
2973 * m68k-tdep.c: Include "target-float.h".
2974 (m68k_register_to_value): Use target_float_convert.
2975 (m68k_value_to_register): Likewise.
2976 (m68k_svr4_extract_return_value): Likewise.
2977 (m68k_svr4_store_return_value): Likewise.
2978 * ppc-sysv-tdep.c: Include "target-float.h".
2979 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
2980 (do_ppc_sysv_return_value): Likewise.
2981 (ppc64_sysv_abi_push_freg): Likewise.
2982 (ppc64_sysv_abi_return_value_base): Likewise.
2983 * rs6000-aix-tdep.c: Include "target-float.h".
2984 (rs6000_push_dummy_call): Use target_float_convert.
2985 (rs6000_return_value): Likewise.
2986 * rs6000-lynx178-tdep.c: Include "target-float.h".
2987 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
2988 (rs6000_lynx178_return_value): Likewise.
2989 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
2990 (rs6000_register_to_value): Use target_float_convert.
2991 (rs6000_value_to_register): Likewise.
2992 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
2993 (arm_extract_return_value): Use target_float_convert.
2994 (arm_store_return_value): Likewise.
2995 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
2996 (sh_register_convert_to_virtual): Use target_float_convert.
2997 (sh_register_convert_to_raw): Likewise.
2998 * sh64-tdep.c: Include "target-float.h".
2999 (sh64_extract_return_value): Use target_float_convert.
3000 (sh64_register_convert_to_virtual): Likewise.
3001 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3003 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3005 * target-float.c (floatformat_to_host_double): New function.
3006 (floatformat_from_host_double): Likewise.
3007 (target_float_to_host_double): Likewise.
3008 (target_float_from_host_double): Likewise.
3009 * target-float.h (target_float_to_host_double): Add prototype.
3010 (target_float_from_host_double): Likewise.
3012 * guile/scm-value.c: Include "target-float.h".
3013 (gdbscm_value_to_real): Use target_float_to_host_double.
3014 Handle integer source values via value_as_long.
3015 * guile/scm-math.c: Include "target-float.h". Do not include
3016 "doublest.h", "dfp.h", and "expression.h".
3017 (vlscm_convert_typed_number): Use target_float_from_host_double.
3018 (vlscm_convert_number): Likewise.
3020 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3021 (convert_value_from_python): Use target_float_from_host_double.
3023 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3025 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3026 (cast_from_fixed): Likewise.
3027 (ada_scaling_type): New function.
3028 (ada_delta): Return value instead of DOUBLEST. Perform target
3029 arithmetic instead of host arithmetic.
3030 (scaling_factor): Rename to ...
3031 (ada_scaling_factor) ... this. Make non-static. Return value instead
3032 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3033 (ada_fixed_to_float): Remove.
3034 (ada_float_to_fixed): Remove.
3035 * ada-lang.h (ada_fixed_to_float): Remove.
3036 (ada_float_to_fixed): Remove.
3037 (ada_delta): Return value instead of DOUBLEST.
3038 (ada_scaling_factor): Add prototype.
3040 * ada-typeprint.c: Include "target-float.h".
3041 (print_fixed_point_type): Perform target arithmetic instead of
3043 * ada-valprint.c: Include "target-float.h".
3044 (ada_val_print_num): Perform target arithmetic instead of
3045 host arithmetic for fixed-point types.
3047 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3049 * target-float.c: Include <math.h>.
3050 (floatformat_binop): New function.
3051 (floatformat_compare): Likewise.
3052 (target_float_binop): Likewise.
3053 (target_float_compare): Likewise.
3054 * target-float.h: Include "expression.h".
3055 (target_float_binop): Add prototype.
3056 (target_float_compare): Likewise.
3058 * valarith.c: Do not include "doublest.h" and "dfp.h".
3059 Include "common/byte-vector.h".
3060 (value_args_as_decimal): Remove, replace by ...
3061 (value_args_as_target_float): ... this function. Handle both
3062 binary and decimal target floating-point formats.
3063 (scalar_binop): Handle both binary and decimal FP using
3064 value_args_as_target_float and target_float_binop.
3065 (value_equal): Handle both binary and decimal FP using
3066 value_args_as_target_float and target_float_compare.
3067 (value_less): Likewise.
3068 (value_pos): Handle all scalar types as simple copy.
3069 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3070 * dfp.c (decimal_binop): Throw error instead of internal_error
3071 when called with an unsupported operation code.
3073 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3075 * target-float.c (target_float_to_string): New function.
3076 (target_float_from_string): New function.
3077 * target-float.h (target_float_to_string): Add prototype.
3078 (target_float_from_string): Add prototype.
3080 * valprint.c: Include "target-float.h". Do not include
3081 "doublest.h" and "dfp.h".
3082 (print_floating): Use target_float_to_string.
3083 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3084 (printf_floating): Use target_float_to_string.
3085 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3086 (print_i387_value): Use target_float_to_string.
3087 * mips-tdep.c: Include "target-float.h".
3088 (mips_print_fp_register): Use target_float_to_string.
3089 * sh64-tdep.c: Include "target-float.h".
3090 (sh64_do_fp_register): Use target_float_to_string.
3092 * parse.c: Include "target-float.h". Do not include
3093 "doublest.h" and "dfp.h".
3094 (parse_float): Use target_float_from_string.
3095 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3096 (define_symbol): Use target_float_from_string.
3097 * gdbarch-selftests.c: Include "target-float.h".
3098 (register_to_value_test): Use target_float_from_string.
3100 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3102 * Makefile.c (SFILES): Add target-float.c.
3103 (HFILES_NO_SRCDIR): Add target-float.h.
3104 (COMMON_OBS): Add target-float.o.
3105 * target-float.h: New file.
3106 * target-float.c: New file.
3108 * doublest.c (floatformat_classify): Fix detection of float_zero.
3110 * gdbtypes.c (is_floating_type): New function.
3111 * gdbtypes.h (is_floating_type): Add prototype.
3113 * value.c: Do not include "floatformat.h".
3114 (unpack_double): Use target_float_is_valid.
3115 (is_floating_value): New function.
3116 * value.h (is_floating_value): Add prototype-
3118 * valarith.c: Include "target-float.h".
3119 (value_logical_not): Use target_float_is_zero.
3121 * python/py-value.c: Include "target-float.h".
3122 (valpy_nonzero): Use target_float_is_zero.
3124 2017-11-04 Tom Tromey <tom@tromey.com>
3126 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3128 2017-11-04 Tom Tromey <tom@tromey.com>
3130 * breakpoint.c (set_momentary_breakpoint): Return
3132 (until_break_command): Update.
3133 (new_until_break_fsm): Change argument types to
3135 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3136 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3138 * infcmd.c (finish_forward): Update.
3139 * breakpoint.h (set_momentary_breakpoint)
3140 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3141 (make_cleanup_delete_breakpoint): Remove.
3142 (struct breakpoint_deleter): New.
3143 (breakpoint_up): New typedef.
3144 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3145 (insert_exception_resume_breakpoint): Update.
3146 (insert_exception_resume_from_probe): Update.
3147 (insert_longjmp_resume_breakpoint): Update.
3148 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3149 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3150 * infcall.c (call_function_by_hand_dummy): Update
3152 2017-11-04 Tom Tromey <tom@tromey.com>
3154 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3156 2017-11-04 Tom Tromey <tom@tromey.com>
3158 * linux-tdep.c (linux_core_info_proc_mappings): Use
3160 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3162 (linux_corefile_thread): Update.
3163 (linux_make_corefile_notes): Remove unused variable.
3165 2017-11-04 Tom Tromey <tom@tromey.com>
3167 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3170 2017-11-04 Tom Tromey <tom@tromey.com>
3172 * objfiles.c (do_free_objfile_cleanup): Remove.
3173 * compile/compile-object-load.c (compile_object_load): Update.
3174 * objfiles.h (make_cleanup_free_objfile): Remove.
3176 2017-11-04 Tom Tromey <tom@tromey.com>
3178 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3179 (adi_read_versions): Change "tags" to "gdb_byte *".
3180 (adi_print_versions): Likewise.
3182 2017-11-04 Tom Tromey <tom@tromey.com>
3185 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3186 from start_rbreak_breakpoints.
3187 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3188 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3189 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3190 * symtab.c (do_end_rbreak_breakpoints): Remove.
3191 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3193 2017-11-04 Tom Tromey <tom@tromey.com>
3195 * cp-namespace.c (reset_directive_searched): Remove.
3196 (cp_lookup_symbol_via_imports): Use scoped_restore.
3197 * cp-support.c (reset_directive_searched): Remove.
3198 (make_symbol_overload_list_using): Use scoped_restore.
3199 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3200 (reset_directive_searched): Remove.
3202 2017-11-04 Tom Tromey <tom@tromey.com>
3204 * symfile.c (find_separate_debug_file_by_debuglink): Use
3207 2017-11-04 Tom Tromey <tom@tromey.com>
3209 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3211 (compute_stack_depth): Likewise.
3212 (do_compile_dwarf_expr_to_c): Use std::vector.
3214 2017-11-04 Tom Tromey <tom@tromey.com>
3216 * compile/compile-object-load.c (link_callbacks_einfo): Use
3219 2017-11-04 Tom Tromey <tom@tromey.com>
3221 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3222 Use scoped_free_pendings.
3223 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3224 scoped_free_pendings.
3225 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3226 (xcoff_initial_scan): Likewise.
3227 * buildsym.c (reset_symtab_globals): Update comment.
3228 (scoped_free_pendings): Rename from really_free_pendings.
3229 (prepare_for_building): Update comment.
3230 (buildsym_init): Likewise.
3231 * buildsym.h (class scoped_free_pendings): New class.
3232 (really_free_pendings): Don't declare.
3234 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3236 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3237 output when converting a zero value to a special byteorder format.
3239 2017-11-02 Yao Qi <yao.qi@linaro.org>
3241 * frame.c (do_frame_register_read): Remove aspace.
3242 * jit.c (jit_frame_sniffer): Likwise.
3243 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3244 * regcache.c (regcache::regcache): Pass nullptr.
3245 (regcache_print): Caller updated.
3246 * regcache.h (regcache::regcache): Remove one constructor
3249 2017-11-02 Yao Qi <yao.qi@linaro.org>
3251 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3253 2017-11-02 Yao Qi <yao.qi@linaro.org>
3255 * breakpoint.c (insert_single_step_breakpoints): Update.
3256 * frame.c (struct frame_info) <aspace>: Add const.
3257 (frame_save_as_regcache): Add const.
3258 (get_frame_address_space): Return const address_space *.
3259 * frame.h (get_frame_address_space): Update declaration.
3260 * infrun.c (struct step_over_info) <aspace>: Add const.
3261 (set_step_over_info): Make aspace const.
3262 (displaced_step_prepare_throw): Change variable const.
3264 (proceed): Likewise.
3265 (adjust_pc_after_break): Likewise.
3266 (save_waitstatus): Likewise.
3267 (handle_signal_stop): Likewise.
3268 (keep_going_pass_signal): Likewise.
3269 * jit.c (jit_frame_sniffer): Add const.
3270 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3271 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3272 * record-full.c (record_full_wait_1): Likewise.
3273 * regcache.c (regcache::regcache): Change parameter to const.
3274 * regcache.h (regcache::regcache): Likewise.
3275 (regcache::aspace): Return const address_space *.
3276 (regcache) <m_aspace>: Add const.
3278 2017-11-02 Yao Qi <yao.qi@linaro.org>
3280 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3281 * frame.c (create_sentinel_frame): Likewise.
3282 * infrun.c (displaced_step_prepare_throw): Likewise.
3284 (thread_still_needs_step_over_bp): Likewise.
3285 (proceed): Likewise.
3286 (do_target_wait): Likewise.
3287 (adjust_pc_after_break): Likewise.
3288 (handle_syscall_event): Likewise.
3289 (save_waitstatus): Likewise.
3290 (handle_inferior_event_1): Likewise.
3291 (handle_signal_stop): Likewise.
3292 (keep_going_pass_signal): Likewise.
3293 * linux-nat.c (status_callback): Likewise.
3294 (save_stop_reason): Likewise.
3295 (resume_stopped_resumed_lwps): Likewise.
3296 * record-full.c (record_full_exec_insn): Likewise.
3297 (record_full_wait_1): Likewise.
3298 * regcache.c (get_regcache_aspace): Remove.
3299 * regcache.h (get_regcache_aspace): Remove.
3301 2017-11-02 Yao Qi <yao.qi@linaro.org>
3303 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3304 (init_regcache_descr): Use gdbarch_num_regs.
3305 (regcache::regcache): Likewise.
3306 (regcache::get_register_status): Likewise.
3307 (regcache::assert_raw_regnum): Likewise.
3308 (regcache::cooked_read): Likewise.
3309 (regcache::cooked_read_value): Likewise.
3310 (regcache::cooked_write): Likewise.
3311 (regcache::dump): Likewise.
3312 (regcache::num_raw_registers): New method.
3313 * regcache.h (class regcache) <num_raw_registers>: New.
3315 2017-11-02 Yao Qi <yao.qi@linaro.org>
3317 * regcache.c (regcache::assert_regnum): New method.
3318 (regcache::invalidate): Call assert_regnum.
3319 (regcache::raw_update): Likewise.
3320 (regcache::raw_write): Likewise.
3321 (regcache::raw_read_part): Likewise.
3322 (regcache::raw_write_part): Likewise.
3323 (regcache::raw_supply): Likewise.
3324 (regcache::raw_supply_integer): Likewise.
3325 (regcache::raw_supply_zeroed): Likewise.
3326 (regcache::raw_collect): Likewise.
3327 (regcache::raw_collect_integer): Likewise.
3328 * regcache.h (regcache::assert_regnum): Declare.
3330 2017-11-02 Yao Qi <yao.qi@linaro.org>
3332 * regcache.c (regcache::dump): Remove code.
3334 2017-11-02 Yao Qi <yao.qi@linaro.org>
3336 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3338 <sizeof_cooked_register_status>: Remove.
3339 (init_regcache_descr): Update.
3340 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3341 (regcache::save): Likewise.
3342 (regcache::dump): Likewise.
3344 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3346 * ft32-tdep.c (ft32_fetch_instruction): New function.
3347 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3349 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3351 * cli/cli-script.c (execute_control_command): Rename to ...
3352 (execute_control_command_1): ... this.
3353 (execute_control_command): New function.
3355 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3357 * tracepoint.c (tfind_command): Remove const_cast.
3359 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3361 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3363 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3365 * common/common-utils.h (in_inclusive_range): New function.
3366 * arm-tdep.c (arm_record_extension_space): Use
3368 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3369 * cris-tdep.c (cris_spec_reg_applicable): Use
3372 2017-10-30 Pedro Alves <palves@redhat.com>
3373 Simon Marchi <simon.marchi@ericsson.com>
3375 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3376 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3378 2017-10-30 Pedro Alves <palves@redhat.com>
3380 * common/common-utils.c (string_appendf, string_vappendf): New
3382 * common/common-utils.h (string_appendf, string_vappendf): New
3384 * unittests/common-utils-selftests.c (string_appendf_func)
3385 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3386 (string_vappendf_tests): New functions.
3387 (_initialize_common_utils_selftests): Register "string_appendf" and
3388 "string_vappendf tests".
3390 2017-10-30 Pedro Alves <palves@redhat.com>
3392 * unittests/common-utils-selftests.c (format_func): New typedef.
3393 (string_printf_tests, string_vprintf_tests): Tests factored out
3395 (test_format_func): ... this new function.
3396 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3399 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3401 * darwin-nat.c: Remove include of gdb.h.
3403 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3405 * xtensa-xtregs.c: Fix formatting issues.
3407 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3409 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3411 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3414 * python/py-infthread.c (thpy_get_inferior): Increment reference
3415 of inferior before returning it.
3417 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3419 * unittests/common-utils-selftests.c (format): Add
3422 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3424 * xml-syscall.c (struct syscall_desc): Add constructor.
3425 <name>: Change type to std::string.
3426 (syscall_desc_up): New typedef.
3427 (syscall_desc_p): Remove typeder.
3428 (DEF_VEC_P(syscall_desc_p)): Remove.
3429 (struct syscall_group_desc): Add constructor.
3430 <name>: Change type to std::string.
3431 <syscalls>: Change type to std::vector.
3432 (syscall_group_desc_up): New typedef.
3433 (syscall_group_desc_p): Remove typedef.
3434 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3435 (struct syscalls_info) <syscalls>: Change type to std::vector of
3438 <my_gdb_datadir>: Change type to std::string.
3439 (syscalls_info_up): New typedef.
3440 (allocate_syscalls_info): Remove.
3441 (syscalls_info_free_syscalls_desc): Remove.
3442 (syscalls_info_free_syscall_group_desc): Remove.
3443 (free_syscalls_info): Remove.
3444 (make_cleanup_free_syscalls_info): Remove.
3445 (syscall_group_create_syscall_group_desc): Adjust.
3446 (syscall_group_add_syscall): Adjust.
3447 (syscall_create_syscall_desc): Adjust.
3448 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3449 (init_syscalls_info): Adjust.
3450 (syscall_group_get_group_by_name): Adjust.
3451 (xml_get_syscall_number): Adjust.
3452 (xml_get_syscall_name): Adjust.
3453 (xml_list_of_syscalls): Adjust.
3454 (xml_list_syscalls_by_group): Adjust.
3455 (xml_list_of_groups): Adjust.
3457 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3459 * probe.h: Don't include gdb_vecs.h.
3460 (DEF_VEC_P (probe_p)): Remove.
3461 (find_probes_in_objfile): Return an std::vector.
3462 * probe.c (find_probes_in_objfile): Likewise.
3463 * breakpoint.c (breakpoint_objfile_data)
3464 <longjmp_probes>: Change type to std::vector.
3465 <exception_probes>: Likewise.
3466 (free_breakpoint_probes): Don't manually free vectors.
3467 (create_longjmp_master_breakpoint): Adjust.
3468 (create_exception_master_breakpoint): Adjust.
3469 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3470 parameter type, adjust.
3471 (svr4_create_solib_event_breakpoints): Adjust.
3473 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3475 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3476 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3478 (free_breakpoint_probes): Rename to ...
3479 (free_breakpoint_objfile_data): ... this, and call delete on
3482 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3484 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3485 (loaded_script_ptr): Remove typedef.
3486 (DEF_VEC_P (loaded_script_ptr)): Remove.
3487 (struct collect_matching_scripts_data): Add constructor.
3488 <scripts_p>: Change type to (pointer to) std::vector.
3489 (collect_matching_scripts_data): Adjust.
3490 (sort_scripts_by_name): Make suitable for std::sort.
3491 (print_scripts): Don't sort vector, adjust to std::vector.
3492 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3494 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3496 * symfile.c (filename_language): Make struct, not typedef. Add
3498 <ext>: Change type to std::string.
3499 (DEF_VEC_O (filename_language)): Remove.
3500 (filename_language_table): Change type to std::vector.
3501 (add_filename_language): Adjust.
3502 (set_ext_lang_command): Adjust.
3503 (info_ext_lang_command): Adjust.
3504 (deduce_language_from_filename): Adjust.
3505 (class scoped_restore_filename_language_table): Remove.
3506 (test_filename_language): Use scoped_restore.
3507 (test_set_ext_lang_command): Use scoped_restore, adjust to
3510 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3512 * symfile.c: Include selftest.h.
3513 (class scoped_restore_filename_language_table): New.
3514 (test_filename_language): New test.
3515 (test_set_ext_lang_command): New test.
3516 (_initialize_symfile): Register tests.
3518 2017-10-27 Keith Seitz <keiths@redhat.com>
3520 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3521 in the bp_location, falling back to find_pc_sect_function when
3523 (add_location_to_breakpoint): Save sal->symbol.
3524 * breakpoint.h (struct bp_location) <symbol>: New field.
3525 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3526 * symtab.h (struct symtab_and_line) <symbol>: New field.
3528 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3531 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3534 2017-10-26 Pedro Alves <palves@redhat.com>
3536 * remote.c (remote_async_terminal_ours_p): Delete.
3537 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3538 Remove references to 'remote_async_terminal_ours_p'.
3540 2017-10-26 Yao Qi <yao.qi@linaro.org>
3542 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3544 2017-10-26 Yao Qi <yao.qi@linaro.org>
3546 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3548 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3550 * breakpoint.c (bpstat_check_location): Remove cast.
3551 (breakpoint_hit_catch_fork): Make aspce const.
3552 (breakpoint_hit_catch_solib): Likewise.
3553 (breakpoint_hit_catch_exec): Likewise.
3554 (breakpoint_hit_ranged_breakpoint): Likewise.
3555 (breakpoint_hit_watchpoint): Likewise.
3556 (base_breakpoint_breakpoint_hit): Likewise.
3557 (bkpt_breakpoint_hit): Likewise.
3558 (dprintf_breakpoint_hit): Likewise.
3559 (tracepoint_breakpoint_hit): Likewise.
3560 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3562 2017-10-26 Yao Qi <yao.qi@linaro.org>
3564 * breakpoint.c (breakpoint_location_address_match): Change
3565 "struct address_space *" to "const address_space".
3566 (breakpoint_location_address_range_overlap): Likewise.
3567 (breakpoint_here_p): Likewise.
3568 (breakpoint_in_range_p): Likewise.
3569 (moribund_breakpoint_here_p): Likewise.
3570 (bp_location_inserted_here_p): Likewise.
3571 (software_breakpoint_inserted_here_p): Likewise.
3572 (hardware_breakpoint_inserted_here_p): Likewise.
3573 (hardware_watchpoint_inserted_in_range): Likewise.
3574 (bpstat_check_location): Likewise.
3575 (bpstat_stop_status): Likewise.
3576 (breakpoint_address_match): Likewise.
3577 (breakpoint_address_match_range): Likewise.
3578 (breakpoint_location_address_match): Likewise.
3579 (breakpoint_location_address_range_overlap): Likewise.
3580 (insert_single_step_breakpoint): Likewise.
3581 (breakpoint_has_location_inserted_here): Likewise.
3582 (single_step_breakpoint_inserted_here_p): Likewise.
3583 (pc_at_non_inline_function): Likewise.
3584 * breakpoint.h (bpstat_stop_status): Update declaration.
3585 (breakpoint_here_p): Likewise.
3586 (breakpoint_in_range_p): Likewise.
3587 (moribund_breakpoint_here_p): Likewise.
3588 (breakpoint_inserted_here_p): Likewise.
3589 (software_breakpoint_inserted_here_p): Likewise.
3590 (hardware_breakpoint_inserted_here_p): Likewise.
3591 (breakpoint_has_location_inserted_here): Likewise.
3592 (single_step_breakpoint_inserted_here_p): Likewise.
3593 (hardware_watchpoint_inserted_in_range): Likewise.
3594 (breakpoint_address_match): Likewise.
3595 (insert_single_step_breakpoint): Likewise.
3596 (pc_at_non_inline_function): Likewise.
3597 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3598 * record.c (record_check_stopped_by_breakpoint): Likewise.
3599 * record.h (record_check_stopped_by_breakpoint): Likewise.
3600 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3602 2017-10-25 Yao Qi <yao.qi@linaro.org>
3604 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3605 regcache->arch () instead get_regcache_arch.
3606 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3608 (aarch64_fbsd_store_inferior_registers): Likewise.
3609 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3610 (store_gregs_to_thread): Likewise.
3611 (fetch_fpregs_from_thread): Likewise.
3612 (store_fpregs_to_thread): Likewise.
3613 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
3614 (aarch64_store_return_value): Likewise.
3615 (aarch64_software_single_step): Likewise.
3616 * aix-thread.c (aix_thread_wait): Likewise.
3617 (supply_reg32): Likewise.
3618 (supply_sprs64): Likewise.
3619 (supply_sprs32): Likewise.
3620 (fill_gprs64): Likewise.
3621 (fill_gprs32): Likewise.
3622 (fill_sprs64): Likewise.
3623 (fill_sprs32): Likewise.
3624 (store_regs_user_thread): Likewise.
3625 (store_regs_kernel_thread): Likewise.
3626 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3627 (alphabsd_store_inferior_registers): Likewise.
3628 * alpha-tdep.c (alpha_extract_return_value): Likewise.
3629 (alpha_store_return_value): Likewise.
3630 (alpha_deal_with_atomic_sequence): Likewise.
3631 (alpha_next_pc): Likewise.
3632 (alpha_software_single_step): Likewise.
3633 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3634 (amd64bsd_store_inferior_registers): Likewise.
3635 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3637 (amd64_linux_store_inferior_registers): Likewise.
3638 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
3639 (amd64_collect_native_gregset): Likewise.
3640 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
3641 (amd64obsd_collect_uthread): Likewise.
3642 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
3643 (amd64_collect_fpregset): Likewise.
3644 (amd64_supply_fxsave): Likewise.
3645 (amd64_supply_xsave): Likewise.
3646 (amd64_collect_fxsave): Likewise.
3647 (amd64_collect_xsave): Likewise.
3648 * arc-tdep.c (arc_write_pc): Likewise.
3649 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
3650 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
3651 (arm_fbsd_store_inferior_registers): Likewise.
3652 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
3653 (store_vfp_regs): Likewise.
3654 (arm_linux_fetch_inferior_registers): Likewise.
3655 (arm_linux_store_inferior_registers): Likewise.
3656 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3657 (arm_linux_sigreturn_next_pc): Likewise.
3658 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3659 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
3660 (fetch_register): Likewise.
3661 (store_register): Likewise.
3662 * arm-tdep.c (arm_is_thumb): Likewise.
3663 (displaced_in_arm_mode): Likewise.
3664 (bx_write_pc): Likewise.
3665 (arm_get_next_pcs_addr_bits_remove): Likewise.
3666 (arm_software_single_step): Likewise.
3667 (arm_extract_return_value): Likewise.
3668 (arm_store_return_value): Likewise.
3669 (arm_write_pc): Likewise.
3670 * bfin-tdep.c (bfin_extract_return_value): Likewise.
3671 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3672 (bsd_uthread_store_registers): Likewise.
3673 * core-regset.c (fetch_core_registers): Likewise.
3674 * corelow.c (get_core_registers): Likewise.
3675 * cris-tdep.c (cris_store_return_value): Likewise.
3676 (cris_extract_return_value): Likewise.
3677 (find_step_target): Likewise.
3678 (find_step_target): Likewise.
3679 (cris_software_single_step): Likewise.
3680 * ctf.c (ctf_fetch_registers): Likewise.
3681 * darwin-nat.c (cancel_breakpoint): Likewise.
3682 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
3683 * frv-tdep.c (frv_extract_return_value): Likewise.
3684 * ft32-tdep.c (ft32_store_return_value): Likewise.
3685 (ft32_extract_return_value): Likewise.
3686 * go32-nat.c (fetch_register): Likewise.
3687 (go32_fetch_registers): Likewise.
3688 (go32_store_registers): Likewise.
3689 (store_register): Likewise.
3690 * h8300-tdep.c (h8300_extract_return_value): Likewise.
3691 (h8300_store_return_value): Likewise.
3692 * hppa-linux-nat.c (fetch_register): Likewise.
3693 (store_register): Likewise.
3694 (hppa_linux_fetch_inferior_registers): Likewise.
3695 (hppa_linux_store_inferior_registers): Likewise.
3696 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
3697 (i386_darwin_store_inferior_registers): Likewise.
3698 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
3699 (gnu_store_registers): Likewise.
3700 * i386-linux-nat.c (fetch_register): Likewise.
3701 (store_register): Likewise.
3702 (supply_gregset): Likewise.
3703 (fill_gregset): Likewise.
3704 (i386_linux_fetch_inferior_registers): Likewise.
3705 (i386_linux_store_inferior_registers): Likewise.
3706 (i386_linux_resume): Likewise.
3707 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
3709 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
3710 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
3711 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
3712 (i386obsd_collect_uthread): Likewise.
3713 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3714 (i386_supply_gregset): Likewise.
3715 (i386_collect_gregset): Likewise.
3716 (i386_supply_fpregset): Likewise.
3717 (i386_collect_fpregset): Likewise.
3718 (i386_mpx_bd_base): Likewise.
3719 * i386-v4-nat.c (supply_fpregset): Likewise.
3720 (fill_fpregset): Likewise.
3721 * i387-tdep.c (i387_supply_fsave): Likewise.
3722 (i387_collect_fsave): Likewise.
3723 (i387_supply_fxsave): Likewise.
3724 (i387_collect_fxsave): Likewise.
3725 (i387_supply_xsave): Likewise.
3726 (i387_collect_xsave): Likewise.
3727 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3728 (ia64_linux_store_registers): Likewise.
3729 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3730 (ia64_extract_return_value): Likewise.
3731 (ia64_store_return_value): Likewise.
3732 (find_func_descr): Likewise.
3733 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3734 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3735 (inf_ptrace_store_registers): Likewise.
3736 * infrun.c (use_displaced_stepping): Likewise.
3737 (displaced_step_prepare_throw): Likewise.
3739 (proceed): Likewise.
3740 (do_target_wait): Likewise.
3741 (adjust_pc_after_break): Likewise.
3742 (handle_inferior_event_1): Likewise.
3743 (handle_signal_stop): Likewise.
3744 (save_infcall_suspend_state): Likewise.
3745 (restore_infcall_suspend_state): Likewise.
3746 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3747 * jit.c (jit_frame_prev_register): Likewise.
3748 * linux-nat.c (save_stop_reason): Likewise.
3749 (linux_nat_wait_1): Likewise.
3750 (resume_stopped_resumed_lwps): Likewise.
3751 * linux-record.c (record_linux_sockaddr): Likewise.
3752 (record_linux_msghdr): Likewise.
3753 (record_linux_system_call): Likewise.
3754 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3755 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3756 (lm32_store_return_value): Likewise.
3757 * m32c-tdep.c (m32c_read_flg): Likewise.
3758 (m32c_pseudo_register_read): Likewise.
3759 (m32c_pseudo_register_write): Likewise.
3760 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3761 (m32r_linux_collect_gregset): Likewise.
3762 * m32r-tdep.c (m32r_store_return_value): Likewise.
3763 (m32r_extract_return_value): Likewise.
3764 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3765 (m68kbsd_collect_fpregset): Likewise.
3766 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3767 * m68k-linux-nat.c (fetch_register): Likewise.
3768 (old_fetch_inferior_registers): Likewise.
3769 (old_store_inferior_registers): Likewise.
3770 (store_regs): Likewise.
3771 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
3772 (m68k_svr4_store_return_value): Likewise.
3773 * m88k-tdep.c (m88k_store_arguments): Likewise.
3774 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
3775 (mi_cmd_data_write_register_values): Likewise.
3776 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
3777 (mips_fbsd_store_inferior_registers): Likewise.
3778 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
3779 (mips_fbsd_supply_gregs): Likewise.
3780 (mips_fbsd_collect_fpregs): Likewise.
3781 (mips_fbsd_collect_gregs): Likewise.
3782 (mips_fbsd_supply_fpregset): Likewise.
3783 (mips_fbsd_collect_fpregset): Likewise.
3784 (mips_fbsd_supply_gregset): Likewise.
3785 (mips_fbsd_collect_gregset): Likewise.
3786 * mips-linux-nat.c (supply_gregset): Likewise.
3787 (fill_gregset): Likewise.
3788 (supply_fpregset): Likewise.
3789 (fill_fpregset): Likewise.
3790 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
3791 (mips_fill_gregset): Likewise.
3792 (mips_supply_fpregset): Likewise.
3793 (mips_fill_fpregset): Likewise.
3794 (mips64_supply_gregset): Likewise.
3795 (micromips_linux_sigframe_validate): Likewise.
3796 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3797 (mipsnbsd_fetch_inferior_registers): Likewise.
3798 (mipsnbsd_store_inferior_registers): Likewise.
3799 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3800 (mipsnbsd_supply_gregset): Likewise.
3801 (mipsnbsd_iterate_over_regset_sections): Likewise.
3802 (mipsnbsd_supply_reg): Likewise.
3803 (mipsnbsd_supply_fpreg): Likewise.
3804 * mips-tdep.c (mips_in_frame_stub): Likewise.
3805 (mips_dummy_id): Likewise.
3806 (is_octeon_bbit_op): Likewise.
3807 (micromips_bc1_pc): Likewise.
3808 (extended_mips16_next_pc): Likewise.
3809 (mips16_next_pc): Likewise.
3810 (deal_with_atomic_sequence): Likewise.
3811 * moxie-tdep.c (moxie_process_readu): Likewise.
3812 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3813 * nto-procfs.c (procfs_store_registers): Likewise.
3814 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
3815 (ppcfbsd_store_inferior_registers): Likewise.
3816 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
3817 (fetch_altivec_register): Likewise.
3818 (get_spe_registers): Likewise.
3819 (fetch_spe_register): Likewise.
3820 (fetch_altivec_registers): Likewise.
3821 (fetch_all_gp_regs): Likewise.
3822 (fetch_all_fp_regs): Likewise.
3823 (store_vsx_register): Likewise.
3824 (store_altivec_register): Likewise.
3825 (set_spe_registers): Likewise.
3826 (store_spe_register): Likewise.
3827 (store_altivec_registers): Likewise.
3828 (store_all_gp_regs): Likewise.
3829 (store_all_fp_regs): Likewise.
3830 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
3831 (ppc_linux_collect_gregset): Likewise.
3832 (ppc_canonicalize_syscall): Likewise.
3833 (ppc_linux_record_signal): Likewise.
3834 (ppu2spu_prev_register): Likewise.
3835 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
3836 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
3837 (ppcobsd_store_registers): Likewise.
3838 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
3840 (ppc_ravenscar_generic_store_registers): Likewise.
3841 * procfs.c (procfs_fetch_registers): Likewise.
3842 (procfs_store_registers): Likewise.
3843 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
3844 (ravenscar_store_registers): Likewise.
3845 (ravenscar_prepare_to_store): Likewise.
3846 * record-btrace.c (record_btrace_fetch_registers): Likewise.
3847 * record-full.c (record_full_wait_1): Likewise.
3848 (record_full_registers_change): Likewise.
3849 (record_full_store_registers): Likewise.
3850 (record_full_core_fetch_registers): Likewise.
3851 (record_full_save): Likewise.
3852 (record_full_goto_insn): Likewise.
3853 * regcache.c (regcache_register_size): Likewise.
3854 (get_regcache_arch): Remove.
3855 (regcache_read_pc): Likewise.
3856 * regcache.h (get_regcache_arch): Remove.
3857 * remote-sim.c (gdbsim_fetch_register): Likewise.
3858 (gdbsim_store_register): Likewise.
3859 * remote.c (fetch_register_using_p): Likewise.
3860 (send_g_packet): Likewise.
3861 (remote_prepare_to_store): Likewise.
3862 (store_registers_using_G): Likewise.
3863 * reverse.c (save_bookmark_command): Likewise.
3864 (goto_bookmark_command): Likewise.
3865 * rs6000-aix-tdep.c (branch_dest): Likewise.
3866 * rs6000-nat.c (rs6000_ptrace64): Likewise.
3867 (fetch_register): Likewise.
3868 * rs6000-tdep.c (ppc_supply_reg): Likewise.
3869 (ppc_collect_reg): Likewise.
3870 (ppc_collect_gregset): Likewise.
3871 (ppc_collect_fpregset): Likewise.
3872 (ppc_collect_vsxregset): Likewise.
3873 (ppc_collect_vrregset): Likewise.
3874 (ppc_displaced_step_hw_singlestep): Likewise.
3875 (rs6000_pseudo_register_read): Likewise.
3876 (rs6000_pseudo_register_write): Likewise.
3877 * s390-linux-nat.c (supply_gregset): Likewise.
3878 (fill_gregset): Likewise.
3879 (s390_linux_fetch_inferior_registers): Likewise.
3880 * s390-linux-tdep.c (s390_write_pc): Likewise.
3881 (s390_software_single_step): Likewise.
3882 (s390_all_but_pc_registers_record): Likewise.
3883 (s390_linux_syscall_record): Likewise.
3884 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
3885 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3886 (shnbsd_store_inferior_registers): Likewise.
3887 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3888 (sh_extract_return_value_fpu): Likewise.
3889 (sh_store_return_value_nofpu): Likewise.
3890 (sh_corefile_supply_regset): Likewise.
3891 (sh_corefile_collect_regset): Likewise.
3892 * sh64-tdep.c (sh64_extract_return_value): Likewise.
3893 (sh64_store_return_value): Likewise.
3894 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
3895 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
3896 (sparc_store_inferior_registers): Likewise.
3897 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
3898 (sparc_ravenscar_prepare_to_store): Likewise.
3899 * sparc-tdep.c (sparc32_store_arguments): Likewise.
3900 (sparc_analyze_control_transfer): Likewise.
3901 (sparc_step_trap): Likewise.
3902 (sparc_software_single_step): Likewise.
3903 (sparc32_gdbarch_init): Likewise.
3904 (sparc_supply_rwindow): Likewise.
3905 (sparc_collect_rwindow): Likewise.
3906 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
3907 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
3908 (sparc64nbsd_collect_gregset): Likewise.
3909 (sparc64nbsd_supply_fpregset): Likewise.
3910 (sparc64nbsd_collect_fpregset): Likewise.
3911 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
3912 (sparc64_supply_gregset): Likewise.
3913 (sparc64_collect_gregset): Likewise.
3914 (sparc64_supply_fpregset): Likewise.
3915 (sparc64_collect_fpregset): Likewise.
3916 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3917 * spu-tdep.c (spu_unwind_sp): Likewise.
3918 (spu2ppu_prev_register): Likewise.
3919 (spu_memory_remove_breakpoint): Likewise.
3920 * stack.c (return_command): Likewise.
3921 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
3922 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3923 * tracefile.c (trace_save_ctf): Likewise.
3924 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
3925 (do_windows_store_inferior_registers): Likewise.
3926 (windows_resume): Likewise.
3927 * xtensa-linux-nat.c (fill_gregset): Likewise.
3928 (supply_gregset_reg): Likewise.
3929 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
3930 (xtensa_register_read_masked): Likewise.
3931 (xtensa_supply_gregset): Likewise.
3932 (xtensa_extract_return_value): Likewise.
3933 (xtensa_store_return_value): Likewise.
3935 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
3937 * doublest.c (floatformat_from_string): New function.
3938 * doublest.h (floatformat_from_string): Add prototype.
3940 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
3941 (OP_FLOAT): ... this.
3942 * expression.h: Do not include "doublest.h".
3943 (union exp_element): Replace doubleconst and decfloatconst by
3944 new element floatconst.
3945 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
3946 (ada_evaluate_subexp): Likewise.
3947 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
3948 OP_DOUBLE and OP_DECFLOAT.
3949 * expprint.c (print_subexp_standard): Likewise.
3950 (dump_subexp_body_standard): Likewise.
3951 * breakpoint.c (watchpoint_exp_is_const): Likewise.
3953 * parse.c: Include "dfp.h".
3954 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3955 (write_exp_elt_floatcst): New function.
3956 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
3958 (operator_check_standard): Likewise.
3959 (parse_float): Do not accept suffix. Take type as input. Return bool.
3960 Return target format buffer instead of host DOUBLEST.
3961 Use floatformat_from_string and decimal_from_string to parse
3962 either binary or decimal floating-point types.
3963 (parse_c_float): Remove.
3964 * parser-defs.h: Do not include "doublest.h".
3965 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3966 (write_exp_elt_floatcst): Add prototype.
3967 (parse_float): Update prototype.
3968 (parse_c_float): Remove.
3970 * c-exp.y: Do not include "dfp.h".
3971 (typed_val_float): Use byte buffer instead of DOUBLEST.
3972 (typed_val_decfloat): Remove.
3974 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3975 (parse_number): Update to new parse_float interface.
3976 Parse suffixes and determine type before calling parse_float.
3977 Handle decimal and binary FP types the same way.
3979 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3980 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
3981 (parse_number): Update to new parse_float interface.
3982 Parse suffixes and determine type before calling parse_float.
3984 * f-exp.y: Replace dval by typed_val_float.
3985 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3986 (parse_number): Use parse_float instead of atof.
3988 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3989 (parse_go_float): Remove.
3990 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3991 (parse_number): Call parse_float instead of parse_go_float.
3992 Parse suffixes and determine type before calling parse_float.
3994 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3995 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3996 (parse_number): Update to new parse_float interface.
3997 Parse suffixes and determine type before calling parse_float.
3999 * m2-exp.y: Replace dval by byte buffer val.
4000 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4001 (parse_number): Call parse_float instead of atof.
4003 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4004 (lex_number): Call parse_float instead of strtod.
4005 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4006 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4007 Use write_exp_elt_floatcst.
4008 (unit_testing): Remove static variable.
4009 (rust_type): Do not check unit_testing.
4010 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4012 * ada-exp.y (type_float, type_double): Remove.
4013 (typed_val_float): Use byte buffer instead of DOUBLEST.
4014 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4015 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4017 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4019 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4020 * arch/aarch64.h: New file.
4022 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4024 * dfp.h (decimal_from_string): Use const reference for argument.
4025 * dfp.c (decimal_from_string): Likewise.
4027 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4029 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4030 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4031 * mips-tdep.c (mips_print_fp_register): Likewise.
4033 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4035 * common/format.h (enum argclass): Replace decfloat_arg by
4036 dec32float_arg, dec64float_arg, and dec128float_arg.
4037 * common/format.c (parse_format_string): Update to return
4038 new decimal float argument classes.
4040 * printcmd.c (printf_decfloat): Rename to ...
4041 (printf_floating): ... this. Add argclass argument, and use it
4042 instead of parsing the format string again. Add support for
4043 binary floating-point values, using floatformat_to_string.
4044 Convert value to the target format if it doesn't already match.
4045 (ui_printf): Call printf_floating instead of printf_decfloat,
4046 also for double_arg / long_double_arg. Pass argclass.
4048 * dfp.c (decimal_to_string): Add format string argument.
4049 * dfp.h (decimal_to_string): Likewise.
4051 * doublest.c (floatformat_to_string): Add format string argument.
4052 * doublest.h (floatformat_to_string): Likewise.
4054 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4056 * doublest.c (floatformat_precision): New routine.
4057 (floatformat_to_string): Likewise.
4058 * doublest.c (floatformat_to_string): Add prototype.
4060 * printcmd.c (print_scalar_formatted): Only call print_floating
4061 on floating-point types.
4062 * valprint.c: Do not include "floatformat.h".
4063 (generic_val_print_decfloat): Remove.
4064 (generic_val_print): Call generic_val_print_float for both
4065 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4066 (print_floating): Use floatformat_to_string. Handle decimal float.
4067 (print_decimal_floating): Remove, merge into floatformat_to_string.
4068 * value.h (print_decimal_floating): Remove.
4070 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4072 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4074 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4076 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4078 * memattr.h: Don't include vec.h.
4079 (struct mem_attrib): Initialize fields.
4080 <unknown>: New static method.
4081 (struct mem_region): Add constructors, operator<, initialize
4083 * memattr.c: Include algorithm.
4084 (default_mem_attrib, unknown_mem_attrib): Remove.
4085 (user_mem_region_list): New global.
4086 (target_mem_region_list, mem_region_list): Change type to
4087 std::vector<mem_region>.
4088 (mem_use_target): Now a function.
4089 (target_mem_regions_valid): Change type to bool.
4090 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4091 (require_user_regions): Adjust.
4092 (require_target_regions): Adjust.
4093 (create_mem_region): Adjust.
4094 (lookup_mem_region): Adjust.
4095 (invalidate_target_mem_regions): Adjust.
4096 (mem_clear): Rename to...
4097 (user_mem_clear): ... this, and adjust.
4098 (mem_command): Adjust.
4099 (info_mem_command): Adjust.
4100 (mem_enable, enable_mem_command, mem_disable,
4101 disable_mem_command): Adjust.
4102 (mem_delete): Adjust.
4103 (delete_mem_command): Adjust.
4104 * memory-map.h (parse_memory_map): Return an std::vector.
4105 * memory-map.c (parse_memory_map): Likewise.
4106 (struct memory_map_parsing_data): Add constructor.
4107 <memory_map>: Point to std::vector.
4108 (memory_map_start_memory): Adjust.
4109 (memory_map_end_memory): Adjust.
4110 (memory_map_end_property): Adjust.
4111 (clear_result): Remove.
4112 * remote.c (remote_memory_map): Return an std::vector.
4113 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4115 (target_debug_print_mem_region_vector): New.
4116 * target-delegates.c: Regenerate.
4117 * target.h (mem_region_vector): New typedef.
4118 (to_memory_map): Return mem_region_vector.
4119 (target_memory_map): Return an std::vector.
4120 * target.c (target_memory_map): Return an std::vector.
4121 (flash_erase_command): Adjust.
4123 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4125 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4126 Change type to std::string.
4127 (memory_map_start_property): Adjust.
4128 (memory_map_end_property): Adjust.
4130 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4132 * infrun.h: Include common/byte-vector.h.
4133 (struct displaced_step_closure): New struct.
4134 (struct buf_displaced_step_closure): New struct.
4135 * infrun.c (displaced_step_closure::~displaced_step_closure):
4136 Provide default implementation.
4137 (displaced_step_clear): Deallocate step closure with delete.
4138 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4139 (aarch64_displaced_step_closure): ... this, extend
4140 displaced_step_closure.
4141 (aarch64_displaced_step_data) <dsc>: Change type to
4142 aarch64_displaced_step_closure.
4143 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4145 (aarch64_displaced_step_fixup): Add cast for displaced step
4147 * amd64-tdep.c (displaced_step_closure): Rename to ...
4148 (amd64_displaced_step_closure): ... this, extend
4149 displaced_step_closure.
4150 <insn_buf>: Change type to std::vector<gdb_byte>.
4152 (fixup_riprel): Change type of DSC parameter, adjust to type
4154 (fixup_displaced_copy): Change type of DSC parameter.
4155 (amd64_displaced_step_copy_insn): Instantiate
4156 amd64_displaced_step_closure.
4157 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4158 to type change of insn_buf.
4159 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4161 (arm_linux_copy_svc): Likewise.
4162 (cleanup_kernel_helper_return): Likewise.
4163 (arm_catch_kernel_helper_return): Likewise.
4164 (arm_linux_displaced_step_copy_insn): Instantiate
4165 arm_displaced_step_closure.
4166 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4167 (displaced_read_reg): Change type of parameter DSC.
4168 (branch_write_pc): Likewise.
4169 (load_write_pc): Likewise.
4170 (alu_write_pc): Likewise.
4171 (displaced_write_reg): Likewise.
4172 (arm_copy_unmodified): Likewise.
4173 (thumb_copy_unmodified_32bit): Likewise.
4174 (thumb_copy_unmodified_16bit): Likewise.
4175 (cleanup_preload): Likewise.
4176 (install_preload): Likewise.
4177 (arm_copy_preload): Likewise.
4178 (thumb2_copy_preload): Likewise.
4179 (install_preload_reg): Likewise.
4180 (arm_copy_preload_reg): Likewise.
4181 (cleanup_copro_load_store): Likewise.
4182 (install_copro_load_store): Likewise.
4183 (arm_copy_copro_load_store) Likewise.
4184 (thumb2_copy_copro_load_store): Likewise.
4185 (cleanup_branch): Likewise.
4186 (install_b_bl_blx): Likewise.
4187 (arm_copy_b_bl_blx): Likewise.
4188 (thumb2_copy_b_bl_blx): Likewise.
4189 (thumb_copy_b): Likewise.
4190 (install_bx_blx_reg): Likewise.
4191 (arm_copy_bx_blx_reg): Likewise.
4192 (thumb_copy_bx_blx_reg): Likewise.
4193 (cleanup_alu_imm): Likewise.
4194 (arm_copy_alu_imm): Likewise.
4195 (thumb2_copy_alu_imm): Likewise.
4196 (cleanup_alu_reg): Likewise.
4197 (install_alu_reg): Likewise.
4198 (arm_copy_alu_reg): Likewise.
4199 (thumb_copy_alu_reg): Likewise.
4200 (cleanup_alu_shifted_reg): Likewise.
4201 (install_alu_shifted_reg): Likewise.
4202 (arm_copy_alu_shifted_reg): Likewise.
4203 (cleanup_load): Likewise.
4204 (cleanup_store): Likewise.
4205 (arm_copy_extra_ld_st): Likewise.
4206 (install_load_store): Likewise.
4207 (thumb2_copy_load_literal): Likewise.
4208 (thumb2_copy_load_reg_imm): Likewise.
4209 (arm_copy_ldr_str_ldrb_strb): Likewise.
4210 (cleanup_block_load_all): Likewise.
4211 (cleanup_block_store_pc): Likewise.
4212 (cleanup_block_load_pc): Likewise.
4213 (arm_copy_block_xfer): Likewise.
4214 (thumb2_copy_block_xfer): Likewise.
4215 (cleanup_svc): Likewise.
4216 (install_svc): Likewise.
4217 (arm_copy_svc): Likewise.
4218 (thumb_copy_svc): Likewise.
4219 (arm_copy_undef): Likewise.
4220 (thumb_32bit_copy_undef): Likewise.
4221 (arm_copy_unpred): Likewise.
4222 (arm_decode_misc_memhint_neon): Likewise.
4223 (arm_decode_unconditional): Likewise.
4224 (arm_decode_miscellaneous): Likewise.
4225 (arm_decode_dp_misc): Likewise.
4226 (arm_decode_ld_st_word_ubyte): Likewise.
4227 (arm_decode_media): Likewise.
4228 (arm_decode_b_bl_ldmstm): Likewise.
4229 (arm_decode_ext_reg_ld_st): Likewise.
4230 (thumb2_decode_dp_shift_reg): Likewise.
4231 (thumb2_decode_ext_reg_ld_st): Likewise.
4232 (arm_decode_svc_copro): Likewise.
4233 (thumb2_decode_svc_copro): Likewise.
4234 (install_pc_relative): Likewise.
4235 (thumb_copy_pc_relative_16bit): Likewise.
4236 (thumb_decode_pc_relative_16bit): Likewise.
4237 (thumb_copy_pc_relative_32bit): Likewise.
4238 (thumb_copy_16bit_ldr_literal): Likewise.
4239 (thumb_copy_cbnz_cbz): Likewise.
4240 (thumb2_copy_table_branch): Likewise.
4241 (cleanup_pop_pc_16bit_all): Likewise.
4242 (thumb_copy_pop_pc_16bit): Likewise.
4243 (thumb_process_displaced_16bit_insn): Likewise.
4244 (decode_thumb_32bit_ld_mem_hints): Likewise.
4245 (thumb_process_displaced_32bit_insn): Likewise.
4246 (thumb_process_displaced_insn): Likewise.
4247 (arm_process_displaced_insn): Likewise.
4248 (arm_displaced_init_closure): Likewise.
4249 (arm_displaced_step_fixup): Add cast for closure.
4250 * arm-tdep.h: Include infrun.h.
4251 (displaced_step_closure): Rename to ...
4252 (arm_displaced_step_closure): ... this, extend
4253 displaced_step_closure.
4254 <u::svc::copy_svc_os>: Change type of parameter DSC.
4255 <cleanup>: Likewise.
4256 (arm_process_displaced_insn): Likewise.
4257 (arm_displaced_init_closure): Likewise.
4258 (displaced_read_reg): Likewise.
4259 (displaced_write_reg): Likewise.
4260 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4262 * i386-tdep.h: Include infrun.h.
4263 (i386_displaced_step_closure): New typedef.
4264 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4265 i386_displaced_step_closure.
4266 (i386_displaced_step_fixup): Adjust.
4267 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4268 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4270 (ppc_displaced_step_fixup): Adjust.
4271 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4272 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4274 (s390_displaced_step_fixup): Adjust.
4276 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4278 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4279 Remove declarations.
4281 2017-10-20 Tom Tromey <tom@tromey.com>
4283 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4285 (gdb_bfd_record_inclusion): Update.
4286 (bfdp): Remove typedef.
4288 2017-10-20 Tom Tromey <tom@tromey.com>
4290 * gdb_bfd.c (gdb_bfd_ref): Use new.
4291 (struct gdb_bfd_data): Add constructor, destructor, and member
4293 (gdb_bfd_unref): Use delete.
4295 2017-10-20 Tom Tromey <tom@tromey.com>
4297 * exec.c (exec_file_attach): Use new_bfd_ref.
4298 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4299 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4300 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4302 * gdb_bfd.h (new_bfd_ref): New function.
4304 2017-10-20 Pedro Alves <palves@redhat.com>
4306 * main.c (captured_command_loop): Add attribute noinline.
4308 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4310 * interps.c (struct interp_factory): Add constructor.
4311 (interp_factory_p): Remove typedef.
4312 (DEF_VEC_P(interp_factory_p)): Remove.
4313 (interpreter_factories): Change type to std::vector.
4314 (interp_factory_register): Adjust.
4315 (interp_lookup): Adjust.
4316 (interpreter_completer): Adjust.
4318 2017-10-19 Tom Tromey <tom@tromey.com>
4320 * break-catch-syscall.c (catch_syscall_completer): Use
4321 std::string, gdb::unique_xmalloc_ptr.
4323 2017-10-19 Tom Tromey <tom@tromey.com>
4325 * infcall.c (call_function_by_hand_dummy): Use std::string.
4327 2017-10-19 Tom Tromey <tom@tromey.com>
4329 * mi/mi-main.c (mi_cmd_execute): Update.
4330 * top.h (prepare_execute_command): Return scoped_value_mark.
4331 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4332 Add move constructor.
4333 * top.c (prepare_execute_command): Return scoped_value_mark.
4334 (execute_command): Update.
4336 2017-10-19 Pedro Alves <palves@redhat.com>
4338 * xml-support.c (xml_fetch_content_from_file): Check fread's
4341 2017-10-19 Pedro Alves <palves@redhat.com>
4343 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4345 (handle_error_fd): New function.
4346 (ser_base_async): Add/delete an event loop file handler for
4349 2017-10-19 Pedro Alves <palves@redhat.com>
4351 * xml-support.c (xml_fetch_content_from_file): Don't read in
4352 chunks. Instead use fseek to determine the file's size, and read
4355 2017-11-18 Keith Seitz <keiths@redhat.com>
4357 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4359 Add whitespace to front of type name.
4361 2017-10-18 Keith Seitz <keiths@redhat.com>
4363 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4364 DW_AT_accessibility.
4366 2017-10-18 Yao Qi <yao.qi@linaro.org>
4368 * features/tic6x-c62x-linux.c: Remove.
4370 2017-10-17 Tom Tromey <tom@tromey.com>
4372 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4373 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4374 (do_mixed_source_and_assembly): Likewise.
4376 2017-10-17 Tom Tromey <tom@tromey.com>
4378 * regcache.c (regcache::xfer_part): Remove assertion.
4380 2017-10-17 Pedro Alves <palves@redhat.com>
4382 * xml-support.c (xml_fetch_content_from_file): Call
4383 unique_ptr::release() instead unique_ptr::get() when passing
4386 2017-10-17 Yao Qi <yao.qi@linaro.org>
4388 * regcache.c (regcache::xfer_part): Remove parameters read and
4389 write, add parameter is_raw. All callers are updated.
4391 2017-10-16 Keith Seitz <keiths@redhat.com>
4393 * c-typeprint.c (enum access_specifier): Moved here from
4395 (output_access_specifier): New function.
4396 (c_type_print_base): Consider typedefs when assessing
4397 whether access labels are needed.
4398 Use output_access_specifier as needed.
4399 Output access specifier for typedefs, if needed.
4400 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4401 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4403 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4406 2017-10-16 Tom Tromey <tom@tromey.com>
4408 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4409 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4410 * target.c (target_fileio_read_stralloc): Update.
4411 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4412 * target.h (target_fileio_read_stralloc): Return
4415 2017-10-16 Tom Tromey <tom@tromey.com>
4417 * xml-syscall.c (xml_init_syscalls_info): Update.
4418 * xml-support.c (xinclude_start_include): Update.
4419 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4420 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4421 (xml_fetch_content_from_file): Likewise.
4422 * osdata.c (get_osdata): Update.
4423 * target.h (target_read_stralloc, target_get_osdata): Return
4425 * solib-aix.c (solib_aix_get_library_list): Update.
4426 * solib-target.c (solib_target_current_sos): Update.
4427 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4428 * xml-tdesc.c (fetch_available_features_from_target): Update.
4429 (target_fetch_description_xml): Update.
4430 (file_read_description_xml): Update.
4431 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4432 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4433 (remote_pid_to_exec_file): Update.
4434 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4435 (target_get_osdata): Likewise.
4437 2017-10-16 Tom Tromey <tom@tromey.com>
4439 * remote.c (remote_register_number_and_offset): Use std::vector.
4440 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4441 (putpkt_binary): Use gdb::def_vector.
4442 (compare_sections_command): Use gdb::byte_vector.
4444 2017-10-16 Tom Tromey <tom@tromey.com>
4446 * ppc-linux-nat.c (hwdebug_insert_point): Use
4447 gdb::unique_xmalloc_ptr, XDUP.
4449 2017-10-16 Tom Tromey <tom@tromey.com>
4451 * probe.c (parse_probes): Use std::string.
4452 (info_probes_for_ops, enable_probes_command)
4453 (disable_probes_command): Remove cleanups.
4455 2017-10-16 Tom Tromey <tom@tromey.com>
4457 * buildsym.c (block_compar): Remove.
4458 (end_symtab_get_static_block): Use std::vector.
4460 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4462 * memrange.h (struct mem_range): Define operator< and operator==.
4463 (mem_range_s): Remove.
4464 (DEF_VEC_O (mem_range_s)): Remove.
4465 (normalize_mem_ranges): Change parameter type to std::vector.
4466 * memrange.c (compare_mem_ranges): Remove.
4467 (normalize_mem_ranges): Change parameter type to std::vector,
4468 adjust to vector change.
4469 * exec.c (section_table_available_memory): Return vector, remove
4471 (section_table_read_available_memory): Adjust to std::vector
4473 * remote.c (remote_read_bytes): Adjust to std::vector
4475 * tracepoint.h (traceframe_available_memory): Change parameter
4476 type to std::vector.
4477 * tracepoint.c (traceframe_available_memory): Change parameter
4478 type to std::vector, adjust.
4479 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4481 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4482 unittests/memrange-selftests.c.
4483 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4484 * gdb/unittests/memrange-selftests.c: New file.
4486 2017-10-16 Pedro Alves <palves@redhat.com>
4488 * elfread.c (probe_key_free): Rename range-for variable.
4489 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4490 (find_probe_by_pc, collect_probes): Rename range-for variable.
4492 2017-10-16 Yao Qi <yao.qi@linaro.org>
4494 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4495 * features/tic6x-c62x.c: Remove.
4496 * features/tic6x-c64x-linux.c: Remove.
4497 * features/tic6x-c64x.c: Remove.
4498 * features/tic6x-c64xp-linux.c: Remove.
4499 * features/tic6x-c64xp.c: Remove.
4500 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4501 initialize_tdesc_tic6x_*_linux functions.
4502 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4503 initialize_tdesc_tic6x_* functions.
4505 2017-10-16 Yao Qi <yao.qi@linaro.org>
4507 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4509 * regformats/tic6x-c62x.dat: Remove.
4510 * regformats/tic6x-c64x.dat: Remove.
4511 * regformats/tic6x-c64xp.dat: Remove.
4513 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4515 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4516 (the !HAVE_LIBEXPAT version).
4518 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4520 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4523 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4525 * target.h: Include tracepoint.h.
4526 (enum trace_find_type): Move to tracepoint.h.
4527 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4528 * tracepoint.h: Don't include target.h
4529 (enum trace_find_type): Move from target.h.
4530 (parse_traceframe_info): Return a unique ptr.
4531 * tracepoint.c (current_traceframe_info): Change type to unique
4533 (free_traceframe_info): Remove.
4534 (clear_traceframe_info): Don't manually free
4535 current_traceframe_info.
4536 (free_result): Remove.
4537 (parse_traceframe_info): Return a unique ptr.
4538 (get_traceframe_info): Adjust to unique ptr.
4539 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4540 * remote.c (remote_traceframe_info): Return a unique ptr.
4541 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4543 * target-debug.h (target_debug_print_traceframe_info_up): New
4545 * target-delegates.c: Regenerate.
4547 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4549 * memrange.h (struct mem_range): Add constructors.
4550 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4551 std::vector<mem_range>.
4552 * tracepoint.c (free_traceframe_info): Don't manually free
4554 (traceframe_info_start_memory): Adjust to vector change.
4555 (traceframe_available_memory): Likewise.
4556 * tracefile-tfile.c (build_traceframe_info): Likewise.
4557 * ctf.c (ctf_traceframe_info): Likewise.
4559 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4561 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4563 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4564 (traceframe_info_start_tvar): Adjust to vector change.
4565 (parse_traceframe_info): Allocate with new.
4566 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4568 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4570 tfile_traceframe_info): Allocate with new.
4571 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4574 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4576 * tracepoint.c (traceframe_info): Rename to...
4577 (current_traceframe_info): ...this.
4578 (clear_traceframe_info): Adjust.
4579 (get_traceframe_info): Adjust.
4581 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4583 * nat/linux-osdata.c: Include algorithm.
4584 (compare_processes): Remove.
4585 (struct pid_pgid_entry): New struct.
4586 (linux_xfer_osdata_processgroups): Use std::vector instead of
4589 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4591 * objfiles.h: Don't include symfile.h.
4592 (struct partial_symbol): Remove forward-declaration.
4593 (struct objfile) <global_psymbols, static_psymbols>: Change type
4594 to std::vector<partial_symbol *>.
4595 * objfiles.c (objfile::objfile): Don't memset those fields.
4596 (objfile::~objfile): Don't free those fields.
4597 * psympriv.h (struct psymbol_allocation_list): Remove
4598 forward-declaration.
4599 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4601 (start_psymtab_common): Change parameters to std::vector.
4602 * psymtab.c: Include algorithm.
4603 (require_partial_symbols): Call shrink_to_fit.
4604 (find_pc_sect_psymbol): Adjust to vector change.
4605 (match_partial_symbol): Likewise.
4606 (lookup_partial_symbol): Likewise.
4607 (psym_relocate): Likewise.
4608 (dump_psymtab): Likewise.
4609 (recursively_search_psymtabs): Likewise.
4610 (compare_psymbols): Remove.
4611 (sort_pst_symbols): Adjust to vector change.
4612 (start_psymtab_common): Likewise.
4613 (end_psymtab_common): Likewise.
4614 (psymbol_bcache_full): De-constify return value.
4615 (add_psymbol_to_bcache): Likewise.
4616 (extend_psymbol_list): Remove.
4617 (append_psymbol_to_list): Adjust to vector change.
4618 (add_psymbol_to_list): Likewise.
4619 (init_psymbol_list): Likewise.
4620 (maintenance_info_psymtabs): Likewise.
4621 (maintenance_check_psymtabs): Likewise.
4622 * symfile.h (struct psymbol_allocation_list): Remove.
4623 * symfile.c (reread_symbols): Adjust to vector change.
4624 * dbxread.c (start_psymtab): Change type of parameters.
4625 (dbx_symfile_read): Adjust to vector change.
4626 (read_dbx_symtab): Likewise.
4627 (start_psymtab): Change type of parameters.
4628 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
4629 (create_partial_symtab): Likewise.
4630 (add_partial_symbol): Likewise.
4631 (write_one_signatured_type): Likewise.
4632 (recursively_write_psymbols): Likewise.
4633 * mdebugread.c (parse_partial_symbols): Likewise.
4634 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
4635 (scan_xcoff_symtab): Adjust to vector change.
4636 (xcoff_initial_scan): Likewise.
4638 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
4640 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
4642 2017-10-13 Yao Qi <yao.qi@linaro.org>
4644 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
4645 Remove s390x-*-expedite, add s390x-expedite.
4647 2017-10-13 Yao Qi <yao.qi@linaro.org>
4649 * features/s390-gs-linux64.c: Regenerated.
4650 * features/s390x-gs-linux64.c: Regenerated.
4652 2017-10-13 Tom Tromey <tom@tromey.com>
4654 * compile/compile-object-run.c (do_module_cleanup): Use delete.
4655 * solib.c (update_solib_list, reload_shared_libraries_1): Use
4657 * symfile.c (symbol_file_add_with_addrs): Use new.
4658 (symbol_file_add_separate): Update comment.
4659 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
4660 * jit.c (jit_object_close_impl): Use new.
4661 (jit_unregister_code): Use delete.
4662 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
4663 (~objfile): Rename from free_objfile.
4664 (free_objfile_separate_debug, do_free_objfile_cleanup)
4665 (free_all_objfiles, objfile_purge_solibs): Use delete.
4666 * objfiles.h (struct objfile): Add constructor and destructor.
4667 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
4668 (allocate_objfile, free_objfile): Don't declare.
4669 (struct objstats): Add initializers.
4671 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4673 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
4674 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
4675 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
4676 * gdbarch.h: Regenerate.
4677 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4679 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
4680 (i386_displaced_step_fixup): Adjust comment.
4681 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
4683 2017-10-12 Tom Tromey <tom@tromey.com>
4685 * prologue-value.h (pv_area::store_would_trash): Return bool.
4686 (pv_area::find_reg): Likewise.
4687 * prologue-value.c (pv_area::store_would_trash): Return bool.
4688 (pv_area::find_reg): Likewise.
4690 2017-10-12 Tom Tromey <tom@tromey.com>
4692 * s390-linux-tdep.c (s390_store, s390_load)
4693 (s390_check_for_saved, s390_analyze_prologue): Update.
4694 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
4695 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
4696 * prologue-value.h (class pv_area): Move from prologue-value.c.
4697 Change names of members. Add constructor, destructor, member
4699 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
4700 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
4701 (pv_area_fetch, pv_area_scan): Don't declare.
4702 * prologue-value.c (struct pv_area::area_entry): Now member of
4704 (struct pv_area): Move to prologue-value.h.
4705 (pv_area::pv_area): Rename from make_pv_area.
4706 (pv_area::~pv_area): Rename from free_pv_area.
4707 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
4708 (clear_entries, find_entry, overlaps, store_would_trash, store)
4709 (fetch, find_reg, scan): Now member of pv_area.
4710 Remove "area" argument. Update.
4711 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
4713 * mn10300-tdep.c (push_reg, check_for_saved)
4714 (mn10300_analyze_prologue): Update.
4715 * mep-tdep.c (is_arg_spill, check_for_saved)
4716 (mep_analyze_prologue): Update.
4717 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
4718 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
4719 (m32c_is_struct_return, m32c_analyze_prologue): Update.
4720 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
4722 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
4723 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4725 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4727 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4728 * linux-nat.c (linux_nat_delete_thread): New variable.
4729 (lwp_free): Invoke linux_nat_delete_thread if set.
4730 (linux_nat_set_delete_thread): New function.
4731 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4732 thread delete callback.
4733 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4734 (_initialize_arm_linux_nat): Assign thread delete callback.
4735 * s390-linux-nat.c (s390_delete_thread): New function.
4736 (_initialize_s390_nat): Assign thread delete callback.
4737 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4738 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4740 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4742 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4743 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4745 2017-10-09 Tom Tromey <tom@tromey.com>
4747 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4749 * tui/tui-layout.c (enum tui_status): Use std::string.
4751 2017-10-11 Tom Tromey <tom@tromey.com>
4753 * gdbthread.h (thread_command): Constify.
4754 * inferior.h (detach_command): Constify.
4755 * top.h (set_history, show_history): Constify.
4756 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4757 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4758 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4759 * printcmd.c (set_command): Constify.
4760 (non_const_set_command): New function.
4761 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4762 * breakpoint.c (enable_command, disable_command, delete_command)
4763 (catch_command, tcatch_command, set_breakpoint_cmd)
4764 (show_breakpoint_cmd): Constify.
4765 * macrocmd.c (macro_command): Constify.
4766 * infcmd.c (unset_command, kill_command, detach_command)
4767 (info_proc_cmd): Constify.
4768 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
4769 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
4770 (info_auto_load_cmd): Constify.
4771 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4772 (unset_tdesc_cmd): Constify.
4773 * ada-lang.c (set_ada_command, show_ada_command)
4774 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
4775 * guile/guile.c (set_guile_command, show_guile_command)
4776 (info_guile_command): Constify.
4777 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
4779 * skip.c (skip_command): Constify.
4780 * compile/compile.c (_initialize_compile): Constify.
4781 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
4782 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4783 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4784 (maint_btrace_pt_show_cmd): Constify.
4785 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
4787 * python/python.c (user_show_python, user_set_python): Constify.
4788 * mips-tdep.c (set_mips_command, show_mips_command)
4789 (set_mipsfpu_command): Constify.
4790 * record-btrace.c (cmd_record_btrace_start)
4791 (cmd_set_record_btrace, cmd_show_record_btrace)
4792 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
4793 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
4794 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
4796 * symfile.c (overlay_command): Constify.
4797 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
4798 * cli/cli-logging.c (set_logging_command, show_logging_command):
4800 * cli/cli-dump.c (dump_command, append_command)
4801 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4802 (tekhex_dump_command, binary_dump_command)
4803 (binary_append_command): Constify.
4804 * cli/cli-decode.c (struct cmd_list_element): Change type of
4806 * cli/cli-cmds.c (info_command, show_command, set_debug)
4807 (show_debug): Constify.
4808 (show_command): Add non-const overload.
4809 * top.c (set_history, show_history): Constify.
4810 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4811 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4812 * target.c (target_command): Constify.
4813 * sparc64-tdep.c (info_adi_command): Constify.
4814 * record-full.c (cmd_record_full_start): Constify.
4815 (set_record_full_command): Constify. Fix typo.
4816 (show_record_full_command): Constify.
4817 * thread.c (thread_command, thread_apply_command): Constify.
4818 * memattr.c (dummy_cmd): Constify.
4819 * value.c (function_command): Constify.
4820 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
4821 * probe.c (info_probes_command): Constify.
4822 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
4823 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
4824 (show_thread_cmd, set_thread_default_cmd)
4825 (show_thread_default_cmd): Constify.
4826 (check_empty): Constify.
4827 * tracepoint.c (tfind_command): Constify.
4828 * cp-support.c (maint_cplus_command): Constify.
4829 * windows-tdep.c (info_w32_command): Constify.
4830 * record.c (cmd_record_start, set_record_command)
4831 (show_record_command, info_record_command, cmd_record_goto):
4833 * ravenscar-thread.c (set_ravenscar_command)
4834 (show_ravenscar_command): Constify.
4835 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4837 (add_internal_problem_command): Remove casts.
4838 * arc-tdep.c (maintenance_print_arc_command): Constify.
4839 * valprint.c (set_print, show_print, set_print_raw)
4840 (show_print_raw): Constify.
4841 * maint.c (maintenance_command, maintenance_info_command)
4842 (maintenance_print_command, maintenance_set_cmd)
4843 (maintenance_show_cmd, set_per_command_cmd)
4844 (show_per_command_cmd, maintenance_check_command): Constify.
4845 * language.c (set_check, show_check): Constify.
4846 * typeprint.c (show_print_type, set_print_type): Constify.
4847 * go32-nat.c (go32_info_dos_command): Constify.
4849 2017-10-11 Tom Tromey <tom@tromey.com>
4851 * breakpoint.c (prepare_re_set_context): Remove.
4852 (breakpoint_re_set_one): Update. Don't use cleanups.
4853 (breakpoint_re_set): Use scoped_restore, std::string, and
4854 scoped_restore_current_language.
4856 2017-10-11 Tom Tromey <tom@tromey.com>
4858 * breakpoint.c (commands_command_1): Use std::string.
4859 (cleanup_executing_breakpoints): Remove.
4860 (bpstat_do_actions_1): Use scoped_restore.
4861 (bpstat_check_watchpoint): Use std::string.
4862 (decode_static_tracepoint_spec): Likewise.
4863 (break_range_command): Likewise.
4864 (watch_command_1): Likewise.
4865 (compare_breakpoints): Change argument types.
4866 (clear_command): Use std::vector.
4867 (cleanup_executing_breakpoints): Remove.
4868 (update_global_location_list): Use unique_xmalloc_ptr.
4869 (strace_command): Remove unused declaration.
4871 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4873 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
4874 * NEWS: Mention new FreeBSD/arm native configuration.
4875 * configure.host: Add arm*-*-freebsd*.
4876 * configure.nat: Likewise.
4877 * arm-fbsd-nat.c: New file.
4879 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4881 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
4882 (ALLDEPFILES): Add arm-fbsd-tdep.c.
4883 * NEWS: Mention new FreeBSD/arm target.
4884 * configure.tgt: Add arm*-*-freebsd*.
4885 * arm-fbsd-tdep.c: New file.
4886 * arm-fbsd-tdep.h: New file.
4888 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4890 * linux-tdep.c (linux_make_corefile_notes): Remove call to
4891 `gdbarch_elfcore_write_linux_prpsinfo'.
4892 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
4894 (elf_internal_linux_prpsinfo): Remove declaration.
4895 * gdbarch.h: Regenerate.
4896 * gdbarch.c: Regenerate.
4898 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4900 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
4901 `set_gdbarch_elfcore_write_linux_prpsinfo'.
4903 2017-10-11 Pedro Alves <palves@redhat.com>
4905 * breakpoint.c (reattach_breakpoints): Delete.
4906 * breakpoint.h (reattach_breakpoints): Delete.
4908 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
4910 * symfile.c (registered_sym_fns): Make struct, not typedef.
4911 (DEF_VEC_O (registered_sym_fns)): Remove.
4912 (symtab_fns): Change type to std::vector.
4913 (add_symtab_fns): Adjust.
4914 (find_sym_fns): Adjust.
4916 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
4918 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
4919 * arc-tdep.h (arc_arch_is_em): New function.
4920 (arc_arch_is_hs): Likewise.
4922 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
4924 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
4925 parentheses in the declaration.
4926 (macro_lookup_inclusion): Likewise.
4927 (macro_lookup_definition): Likewise.
4928 * p-lang.h (pascal_builtin_types): Likewise.
4929 * tui/tui-data.c (tui_win_list): Likewise.
4930 * tui/tui-data.h (tui_win_list): Likewise.
4931 * utils.h (make_cleanup_free_section_addr_info): Likewise.
4933 2017-10-11 Mark Rages <markrages@gmail.com>
4935 * target-memory.c (block_boundaries): Fix for block address not
4936 aligned on block size.
4938 2017-10-10 Pedro Alves <palves@redhat.com>
4939 Tom Tromey <tom@tromey.com>
4941 * breakpoint.c (struct captured_breakpoint_query_args)
4942 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
4943 (print_breakpoint): New.
4944 * breakpoint.h (print_breakpoint): Declare.
4945 * common/common-exceptions.h (enum return_reason): Remove
4946 references to catch_exceptions.
4947 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
4949 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
4950 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
4952 * gdbthread.h (thread_select): Declare.
4953 * mi/mi-cmd-break.c: Don't include gdb.h.
4954 (breakpoint_notify): Use print_breakpoint.
4955 * mi/mi-cmd-catch.c: Don't include gdb.h.
4956 * mi/mi-interp.c: Don't include gdb.h.
4957 (mi_print_breakpoint_for_event): New.
4958 (mi_breakpoint_created, mi_breakpoint_modified): Use
4959 mi_print_breakpoint_for_event.
4960 * mi/mi-main.c: Don't include gdb.h.
4961 (mi_cmd_thread_select): Parse the global thread ID here. Use
4962 thread_select instead of gdb_thread_select.
4963 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
4964 of using gdb_list_thread_ids.
4965 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
4967 (remote_fileio_request): Use TRY/CATCH instead of
4969 * symfile-mem.c (struct symbol_file_add_from_memory_args)
4970 (symbol_file_add_from_memory_wrapper): Delete.
4971 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
4972 * thread.c: Don't include gdb.h.
4973 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
4974 (thread_alive): Use thread_select.
4975 (do_captured_thread_select): Delete, parts salvaged as ...
4976 (thread_select): ... this new function.
4977 (gdb_thread_select): Delete.
4979 2017-10-10 Pedro Alves <palves@redhat.com>
4980 Tom Tromey <tom@tromey.com>
4982 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
4984 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
4985 No longer macros. Instead ...
4986 (enum wp_check_result): They're now values of this new
4988 (watchpoint_check): Change return type to wp_check_result and
4989 parameter type to bpstat.
4990 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
4991 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
4992 catch_errors. Reverse logic of watchpoint_check call.
4993 (breakpoint_re_set_one): Now returns void and takes a breakpoint
4994 pointer as parameter.
4995 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
4996 * common/common-exceptions.c (throw_exception_sjlj): Update
4997 comments to avoid mentioning catch_errors.
4998 * exceptions.c (catch_errors): Delete.
4999 * exceptions.h: Update comments to avoid mentioning catch_errors.
5000 (catch_errors_ftype, catch_errors): Delete.
5001 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5002 (hook_stop_stub): Delete.
5003 (restore_selected_frame): Change return type to void, and
5004 parameter type to const frame_id &.
5005 (restore_infcall_control_state): Use TRY/CATCH instead of
5007 * main.c (captured_command_loop): Return void and remove
5008 parameter. Remove references to catch_errors.
5009 (captured_main): Use TRY/CATCH instead of catch_errors.
5010 * objc-lang.c (objc_submethod_helper_data)
5011 (find_objc_msgcall_submethod_helper): Delete.
5012 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5014 * record-full.c (record_full_message): Return void.
5015 (record_full_message_args, record_full_message_wrapper): Delete.
5016 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5017 instead of catch_errors.
5018 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5019 parameter type to int.
5020 * solib-darwin.c (open_symbol_file_object): Ditto.
5021 * solib-dsbt.c (open_symbol_file_object): Ditto.
5022 * solib-frv.c (open_symbol_file_object): Ditto.
5023 * solib-svr4.c (open_symbol_file_object): Ditto.
5024 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5025 * solib.c (update_solib_list): Use TRY/CATCH instead of
5027 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5029 * symmisc.c (struct print_symbol_args): Remove.
5030 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5031 (print_symbol): Change type.
5032 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5033 and remove parameters.
5034 (catch_errors): New.
5035 (get_windows_debug_event): Adjust.
5037 2017-10-09 Tom Tromey <tom@tromey.com>
5039 * mi/mi-main.c (free_splay_tree): Remove.
5040 (list_available_thread_groups): Use splay_tree_up.
5041 * common/gdb_splay_tree.h: New file.
5043 2017-10-09 Tom Tromey <tom@tromey.com>
5045 * mi/mi-main.c (do_nothing): Remove.
5046 (list_available_thread_groups): Update.
5048 2017-10-09 Pedro Alves <palves@redhat.com>
5050 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5051 reading registers when switching context.
5053 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5055 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5056 (fbsd_convert_siginfo): Likewise.
5057 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5059 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5061 * configure.ac (try_guile_versions): Remove guile-2.2.
5062 * configure: Regenerate.
5064 2017-10-09 Tom Tromey <tom@tromey.com>
5066 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5067 (COMPILE.pre): Use $(CXX).
5069 2017-10-09 Pedro Alves <palves@redhat.com>
5071 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5073 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5074 * cp-support.h (cp_remove_params): Now returns a
5075 gdb::unique_xmalloc_ptr.
5076 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5077 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5078 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5079 returning a gdb::unique_xmalloc_ptr.
5080 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5081 * stack.c (find_frame_funname): Adjust to cp_remove_params
5082 returning a gdb::unique_xmalloc_ptr.
5084 2017-10-08 Tom Tromey <tom@tromey.com>
5086 * dwarf2read.c (dwarf2_get_dwz_file): Use
5087 gdb::unique_xmalloc_ptr.
5088 (find_slot_in_mapped_hash): Likewise.
5089 (dwarf2_physname): Likewise.
5090 (create_dwo_unit_in_dwp_v1): Use std::string.
5091 (create_dwo_unit_in_dwp_v2): Likewise.
5092 (lookup_dwo_cutu): Likewise.
5093 (inherit_abstract_dies): Use std::vector.
5094 (read_array_type): Likewise.
5095 (dwarf_decode_macros): Remove unused declaration.
5096 (unsigned_int_compar): Remove.
5097 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5098 (psymtabs_addrmap_cleanup): Remove.
5100 2017-10-08 Tom Tromey <tom@tromey.com>
5102 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5103 * frame.h (frame_cleanup_after_sniffer): Declare.
5104 (frame_prepare_for_sniffer): Return void.
5105 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5107 (frame_prepare_for_sniffer): Return void.
5109 2017-10-08 Tom Tromey <tom@tromey.com>
5111 * utils.h (make_cleanup_value_free): Remove.
5112 * utils.c (do_value_free, struct cleanup): Remove.
5113 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5115 * value.h (struct value_deleter): New.
5116 (gdb_value_up): New typedef.
5118 2017-10-08 Tom Tromey <tom@tromey.com>
5120 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5121 (make_cleanup_free_search_symbols): Remove.
5122 (search_symbols): Return std::vector.
5123 (symbol_search::compare_search_syms): Now member of
5124 symbol_search. Change arguments.
5125 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5126 (symtab_symbol_info, rbreak_command): Update.
5127 * symtab.h (struct symbol_search) <next>: Remove.
5129 (symbol_search::operator<): New function.
5130 (symbol_search::operator==): New function.
5131 (search_symbols): Remove std::vector.
5132 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5133 (symbol_search::compare_search_syms): Declare.
5135 2017-10-06 Yao Qi <yao.qi@linaro.org>
5137 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5138 arch/aarch64-insn.o.
5140 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5142 2017-10-06 Yao Qi <yao.qi@linaro.org>
5144 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5145 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5146 arch/arm-linux.o respectively.
5147 * configure.tgt: Likewise.
5149 2017-10-06 Yao Qi <yao.qi@linaro.org>
5151 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5152 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5154 2017-10-06 Pedro Alves <palves@redhat.com>
5156 * windows-nat.c: Include <algorithm>.
5158 2017-10-06 Yao Qi <yao.qi@linaro.org>
5160 * configure.tgt (i386_tobjs): New variable.
5161 (amd64_tobjs): New variable.
5162 Set $cpu_obs and $os_obs.
5164 2017-10-06 Yao Qi <yao.qi@linaro.org>
5166 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5167 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5168 (clean): Remove object files and dependency files.
5169 (distclean): Remove the directory.
5170 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5171 * configure: Re-generated.
5172 * configure.tgt: Replace amd64.o with arch/amd64.o.
5174 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5177 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5180 2017-10-05 Pedro Alves <palves@redhat.com>
5182 * linux-nat.c (linux_child_follow_fork): When following the parent
5183 and detaching the child, consult the parent thread's architecture
5184 instead of the child's.
5186 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5188 * ax.h: Do not include "doublest.h".
5189 (union agent_val): Remove.
5191 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5193 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5194 (decimal_to_string): Return std::string object.
5195 (decimal_from_string): Accept std::string object. Return bool.
5196 (decimal_from_integral, decimal_from_doublest): Remove.
5197 (decimal_from_longest): Add prototype.
5198 (decimal_from_ulongest): Likewise.
5199 (decimal_to_longest): Likewise.
5200 (decimal_from_doublest): Likewise.
5201 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5202 (MAX_DECIMAL_STRING): Move here.
5203 (decimal_to_string): Return std::string object.
5204 (decimal_from_string): Accept std::string object. Return bool.
5205 (decimal_from_integral): Remove, replace by ...
5206 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5207 (decimal_to_longest): New function.
5208 (decimal_from_floating): Remove, replace by ...
5209 (decimal_from_doublest): ... this new function.
5210 (decimal_to_doublest): Update to new decimal_to_string interface.
5212 * value.c (unpack_long): Use decimal_to_longest.
5213 * valops.c (value_cast): Use decimal_from_doublest instead of
5214 decimal_from_floating. Use decimal_from_[u]longest isntead of
5215 decimal_from_integral.
5216 * valarith.c (value_args_as_decimal): Likewise.
5217 * valprint.c (print_decimal_floating): Update to new
5218 decimal_to_string interface.
5219 * printcmd.c (printf_decfloat): Likewise.
5220 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5222 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5224 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5225 * gdbtypes.c: Include "floatformat.h".
5226 * value.c: Likewise.
5227 * m68k-tdep.c: Likewise.
5229 * findvar.c: Do not include "floatformat.h".
5230 * amd64-darwin-tdep.c: Likewise.
5231 * arm-linux-tdep.c: Likewise.
5232 * i386-darwin-tdep.c: Likewise.
5233 * i387-tdep.c: Likewise.
5234 * m68k-linux-tdep.c: Likewise.
5235 * mep-tdep.c: Likewise.
5236 * mips-tdep.c: Likewise.
5237 * nios2-tdep.c: Likewise.
5238 * s390-linux-tdep.c: Likewise.
5239 * sparc-obsd-tdep.c: Likewise.
5240 * sparc-tdep.c: Likewise.
5241 * sparc64-tdep.c: Likewise.
5242 * spu-tdep.c: Likewise.
5243 * tic6x-tdep.c: Likewise.
5244 * tilegx-tdep.c: Likewise.
5245 * vax-tdep.c: Likewise.
5246 * xstormy16-tdep.c: Likewise.
5247 * xtensa-tdep.c: Likewise.
5249 * top.c: Do not include "doublest.h".
5250 * aarch64-tdep.c: Likewise.
5251 * alpha-tdep.c: Likewise.
5252 * arm-linux-tdep.c: Likewise.
5253 * m68k-linux-tdep.c: Likewise.
5254 * tilegx-tdep.c: Likewise.
5255 * xstormy16-tdep.c: Likewise.
5257 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5259 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5260 (mipsn32_fbsd_sigframe): Define.
5261 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5262 for FreeBSD/mipsn32.
5264 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5266 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5269 2017-10-05 Tristan Gingold <tgingold@free.fr>
5271 * MAINTAINERS (Misc): Update my email address.
5273 2017-10-04 Pedro Alves <palves@redhat.com>
5275 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5276 it instead of target_gdbarch.
5277 (get_remote_state, get_remote_packet_size): Adjust
5278 get_remote_arch_state calls, passing down target_gdbarch
5280 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5281 'gdbarch' and use it instead of target_gdbarch.
5282 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5283 passing down target_gdbarch explicitly.
5284 (struct stop_reply) <arch>: New field.
5285 (remote_parse_stop_reply): Use the stopped thread's architecture,
5286 not the current inferior's. Save the architecture in the
5288 (process_stop_reply): Use the stop reply's architecture.
5289 (process_g_packet, remote_fetch_registers)
5290 (remote_prepare_to_store, store_registers_using_G)
5291 (remote_store_registers): Adjust get_remote_arch_state calls,
5292 using the regcache's architecture.
5293 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5294 passing down target_gdbarch explicitly.
5295 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5296 beneath instead of calling target_gdbarch.
5297 * target.c (default_thread_architecture): Use the specified
5298 inferior's architecture, instead of the current inferior's
5299 architecture (via target_gdbarch).
5301 2017-10-04 Pedro Alves <palves@redhat.com>
5303 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5305 (regcache_print): Handle !target_has_registers here instead.
5307 2017-10-04 Pedro Alves <palves@redhat.com>
5309 * frame.c (create_test_frame): Delete.
5310 * frame.h (create_test_frame): Delete.
5311 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5312 (class regcache_test): Delete.
5313 (test_target_has_registers, test_target_has_stack)
5314 (test_target_has_memory, test_target_prepare_to_store)
5315 (test_target_store_registers): New functions.
5316 (test_target_ops): New class.
5317 (register_to_value_test): Error out if there's already a
5318 process_stratum (or higher) target pushed. Create a fuller mock
5319 environment, with mock target_ops, inferior, address space, thread
5321 * progspace.c (struct address_space): Move to ...
5322 * progspace.h (struct address_space): ... here.
5323 * regcache.h (regcache::~regcache, regcache::raw_write)
5324 [GDB_SELF_TEST]: No longer virtual.
5326 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5328 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5330 2017-10-04 Pedro Alves <palves@redhat.com>
5332 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5333 out of 'between TRY and CATCH'.
5335 2017-10-04 Pedro Alves <palves@redhat.com>
5337 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5338 * common/common-exceptions.h (TRY): Open an outermost scope.
5339 Expand intro comment.
5341 (END_CATCH): Close the outermost scope.
5342 * completer.c (complete_line_internal): Add missing END_CATCH.
5344 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5346 * NEWS (Changes since GDB 8.0): Add entry about new
5347 'set-cwd-on-gdbserver' feature.
5348 (New remote packets): Add entry for QSetWorkingDir.
5349 * common/common-inferior.h (set_inferior_cwd): New prototype.
5350 * infcmd.c (set_inferior_cwd): Remove "static".
5351 (show_cwd_command): Expand text to include remote debugging.
5352 * remote.c: Add PACKET_QSetWorkingDir.
5353 (remote_protocol_features) <QSetWorkingDir>: New entry for
5354 PACKET_QSetWorkingDir.
5355 (extended_remote_set_inferior_cwd): New function.
5356 (extended_remote_create_inferior): Call
5357 "extended_remote_set_inferior_cwd".
5358 (_initialize_remote): Call "add_packet_config_cmd" for
5361 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5363 * NEWS (New commands): Mention "set/show cwd".
5364 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5365 "cd" command's help text.
5366 * common/common-inferior.h (get_inferior_cwd): New prototype.
5367 * infcmd.c (inferior_cwd_scratch): New global variable.
5368 (set_inferior_cwd): New function.
5369 (get_inferior_cwd): Likewise.
5370 (set_cwd_command): Likewise.
5371 (show_cwd_command): Likewise.
5372 (_initialize_infcmd): Add "set/show cwd" commands.
5373 * inferior.h (class inferior) <cwd>: New field.
5374 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5375 (fork_inferior): Change inferior's cwd before its execution.
5376 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5379 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5381 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5382 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5383 (COMMON_OBS): Add gdb_tilde_expand.o.
5384 * common/gdb_tilde_expand.c: New file.
5385 * common/gdb_tilde_expand.h: Likewise.
5387 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5389 * gdbarch.sh (objfile): Remove duplicate declaration.
5390 * gdbarch.h: Regenerate.
5392 2017-10-03 Tom Tromey <tom@tromey.com>
5394 * utils.c (internal_vproblem): Use string_vprintf.
5396 2017-10-03 Tom Tromey <tom@tromey.com>
5398 * printcmd.c (info_symbol_command): Use std::string.
5400 2017-10-03 Tom Tromey <tom@tromey.com>
5402 * top.c (gdb_safe_append_history): Use std::string.
5404 2017-10-03 Tom Tromey <tom@tromey.com>
5406 * event-top.c (stdin_event_handler): Update.
5407 * main.c (captured_main_1): Update.
5408 * top.h (make_delete_ui_cleanup): Remove.
5409 (struct ui): Add constructor and destructor.
5410 (new_ui, delete_ui): Remove.
5411 * top.c (make_delete_ui_cleanup): Remove.
5412 (new_ui_command): Use std::unique_ptr.
5413 (delete_ui_cleanup): Remove.
5414 (ui::ui): Rename from new_ui. Update.
5416 (ui::~ui): Rename from delete_ui. Update.
5418 2017-10-03 Tom Tromey <tom@tromey.com>
5420 * symfile.c (load_progress): Use gdb::byte_vector.
5422 2017-10-03 Tom Tromey <tom@tromey.com>
5424 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5426 * printcmd.c (x_command): Remove unused declaration.
5427 * symfile.c (symbol_file_command): Remove unused declaration.
5429 2017-10-03 Tom Tromey <tom@tromey.com>
5431 * utils.c (internal_vproblem): Use std::string.
5432 (defaulted_query): Likewise.
5434 2017-10-03 Tom Tromey <tom@tromey.com>
5436 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5437 * top.c (execute_command_to_string): Update.
5438 * utils.c (make_cleanup_restore_page_info): Remove.
5439 (do_restore_page_info_cleanup): Remove.
5440 (set_batch_flag_and_restore_page_info):
5442 (make_cleanup_restore_page_info): Remove.
5443 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5444 (~set_batch_flag_and_restore_page_info): New
5445 (make_cleanup_restore_uinteger): Remove.
5446 (make_cleanup_restore_integer): Remove.
5447 (struct restore_integer_closure): Remove.
5448 (restore_integer): Remove.
5449 * utils.h (struct set_batch_flag_and_restore_page_info): New
5451 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5452 (make_cleanup_restore_page_info): Remove.
5453 (make_cleanup_restore_uinteger) Remove.
5454 (make_cleanup_restore_integer) Remove.
5456 2017-10-03 Tom Tromey <tom@tromey.com>
5458 * record-full.h (record_full_gdb_operation_disable_set): Return
5459 scoped_restore_tmpl<int>.
5460 * infrun.c (adjust_pc_after_break): Update.
5461 (handle_signal_stop): Update.
5462 * record-full.c (record_full_gdb_operation_disable_set): Return
5463 scoped_restore_tmpl<int>.
5464 (record_full_wait_1, record_full_insert_breakpoint)
5465 (record_full_remove_breakpoint, record_full_save)
5466 (record_full_goto_insn): Update.
5468 2017-10-02 Tom Tromey <tom@tromey.com>
5471 * rust-lang.c (rust_val_print_str): New function.
5472 (val_print_struct): Call it.
5473 (rust_subscript): Preserve name of slice type.
5475 2017-10-02 Tom Tromey <tom@tromey.com>
5477 * rust-lang.c (rust_subscript): Handle slices in
5478 EVAL_AVOID_SIDE_EFFECTS case.
5480 2017-10-02 Tom Tromey <tom@tromey.com>
5482 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5484 2017-10-02 Tom Tromey <tom@tromey.com>
5486 * rust-lang.h (rust_slice_type): Add "extern".
5488 2017-10-02 Tom Tromey <tom@tromey.com>
5489 Pedro Alves <palves@redhat.com>
5491 * ada-lang.h (ada_exc_info::operator<): Make const.
5492 (ada_exc_info::operator==): Make const.
5493 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5496 2017-09-29 Tom Tromey <tom@tromey.com>
5498 * target.c (read_whatever_is_readable): Change type of "result".
5500 (free_memory_read_result_vector): Remove.
5501 (read_memory_robust): Change return type. Update.
5502 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5503 bin2hex, std::string.
5504 * target.h (memory_read_result_s): Remove typedef.
5505 (free_memory_read_result_vector): Remove.
5506 (read_memory_robust): Return std::vector.
5508 2017-09-29 Tom Tromey <tom@tromey.com>
5510 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5512 2017-09-29 Tom Tromey <tom@tromey.com>
5514 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5515 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5516 operator< and operator==.
5517 (ada_exceptions_list): Return a std::vector.
5518 * ada-lang.c (ada_exc_info::operator<): Rename from
5519 compare_ada_exception_info.
5520 (ada_exc_info::operator==): New.
5521 (sort_remove_dups_ada_exceptions_list): Change type of
5523 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5524 (ada_add_global_exceptions): Likewise.
5525 (ada_exceptions_list_1): Return a std::vector.
5526 (ada_exceptions_list): Likewise.
5528 2017-09-29 Tom Tromey <tom@tromey.com>
5530 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5532 (print_one_inferior): Update.
5533 (free_vector_of_ints): Remove.
5534 (list_available_thread_groups): Change "ids" to std::set.
5535 (mi_cmd_list_thread_groups): Update.
5536 (struct collect_cores_data) <core>: Now a std::set.
5537 (collect_cores): Update.
5539 (print_one_inferior): Update.
5541 2017-09-29 Tom Tromey <tom@tromey.com>
5543 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5544 (mi_execute_async_cli_command): Likewise.
5545 (mi_cmd_trace_frame_collected): Use field_fmt.
5547 2017-09-29 Tom Tromey <tom@tromey.com>
5549 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5552 2017-09-29 Tom Tromey <tom@tromey.com>
5554 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5556 2017-09-29 Tom Tromey <tom@tromey.com>
5558 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5560 2017-09-29 Tom Tromey <tom@tromey.com>
5562 * varobj.h (varobj_gen_name): Return std::string.
5563 * varobj.c (varobj_gen_name): Return std::string.
5564 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5565 (mi_cmd_var_delete): Don't copy "name".
5567 2017-09-29 Tom Tromey <tom@tromey.com>
5569 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5570 (mi_cmd_break_insert_1): Update.
5572 2017-09-29 Tom Tromey <tom@tromey.com>
5574 * target.h (make_scoped_defer_target_commit_resume): Update.
5575 * target.c (make_scoped_defer_target_commit_resume): Rename from
5576 make_cleanup_defer_target_commit_resume. Return a
5578 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5580 2017-09-29 Tom Tromey <tom@tromey.com>
5582 * main.c (captured_main_1): Remove unused declaration.
5583 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5585 2017-09-29 Tom Tromey <tom@tromey.com>
5587 * symtab.c (search_symbols): Remove unused outer cleanup.
5588 (make_source_files_completion_list): Remove unused declaration.
5590 2017-09-29 Tom Tromey <tom@tromey.com>
5592 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5594 2017-09-29 Tom Tromey <tom@tromey.com>
5596 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5599 2017-09-29 Tom Tromey <tom@tromey.com>
5601 * complaints.c (vcomplaint): Use std::string.
5603 2017-09-29 Tom Tromey <tom@tromey.com>
5605 * tracepoint.c (trace_variable_command): Use std::string.
5606 (encode_actions_1): Remove unused declarations.
5607 (create_tsv_from_upload): Use std::string.
5609 2017-09-29 Tom Tromey <tom@tromey.com>
5611 * cp-support.c (gdb_demangle): Use std::string.
5613 2017-09-29 Tom Tromey <tom@tromey.com>
5615 * stack.c (parse_frame_specification): Use std::string
5616 (info_frame_command): Use gdb::unique_xmalloc_ptr.
5618 2017-09-29 Tom Tromey <tom@tromey.com>
5620 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
5622 2017-09-29 Tom Tromey <tom@tromey.com>
5624 * utils.c (vfprintf_maybe_filtered): Use std::string.
5625 (vfprintf_unfiltered): Likewise.
5627 2017-09-29 Tom Tromey <tom@tromey.com>
5629 * event-top.c (top_level_prompt): Return std::string.
5630 (display_gdb_prompt): Update.
5632 2017-09-29 Tom Tromey <tom@tromey.com>
5634 * unittests/common-utils-selftests.c (format): New function.
5635 (string_vprintf_tests): New function.
5636 (_initialize_common_utils_selftests): Register new tests.
5637 * common/common-utils.c (string_vprintf): New function.
5638 * common/common-utils.h (string_vprintf): Declare.
5640 2017-09-29 Pedro Alves <palves@redhat.com>
5642 * common/rsp-low.c (unpack_varlen_hex): Constify.
5643 * common/rsp-low.h (unpack_varlen_hex): Constify.
5644 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5646 * remote.c (remote_set_permissions, read_ptid)
5647 (remote_current_thread, remote_get_threads_with_qthreadinfo)
5648 (remote_static_tracepoint_marker_at)
5649 (remote_static_tracepoint_markers_by_strid)
5650 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
5651 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
5652 (parse_tracepoint_definition, parse_tsv_definition)
5653 (parse_static_tracepoint_marker_definition): Constify.
5654 * tracepoint.h (parse_static_tracepoint_marker_definition)
5655 (parse_trace_status, parse_tracepoint_status)
5656 (parse_tracepoint_definition, parse_tsv_definition): Constify.
5658 2017-09-29 Pedro Alves <palves@redhat.com>
5660 * remote.c (target_buf, target_buf_size): Delete.
5661 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
5662 Use the connection's packet buffer instead.
5663 All callers adjusted.
5664 (_initialize_remote): Remove references to target_buf and
5667 2017-09-28 Pedro Alves <palves@redhat.com>
5669 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5670 unittests/common-utils-selftests.c.
5671 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
5672 (COMMON_OBS): Remove utils-selftests.o.
5673 * utils-selftests.c: Move to ...
5674 * unittests/common-utils-selftests.c: ... here and rename self
5675 test to "string_printf".
5677 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
5679 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
5680 having NULL cus or tus.
5682 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5684 * arm-tdep.c: (convert_from_extended): Remove.
5685 (convert_to_extended): Likewise.
5686 (arm_extract_return_value): Use convert_typed_floating.
5687 (arm_store_return_value): Likewise.
5689 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5690 * sh-tdep.c: Do not include "floatformat.h".
5691 (sh_littlebyte_bigword_type): New function.
5692 (sh_register_convert_to_virtual): Use convert_typed_floating.
5693 (sh_register_convert_to_raw): Likewise.
5694 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5695 (sh64_littlebyte_bigword_type): New function.
5696 (sh64_extract_return_value): Use convert_typed_floating.
5697 (sh64_register_convert_to_virtual): Likewise.
5698 (sh64_register_convert_to_raw): Likewise.
5700 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5702 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
5703 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5705 * gdbtypes.h (union type_specific): Make field floatformat hold
5706 just a single struct floatformat, not an array.
5707 (floatformat_from_type): Move here.
5708 * gdbtypes.c (floatformat_from_type): Move here. Update to
5709 changed TYPE_FLOATFORMAT definition.
5710 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
5711 (recursive_dump_type): Likewise.
5712 (init_float_type): Install correct floatformat for byte order.
5713 (arch_float_type): Likewise.
5715 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5717 * gdbtypes.c (init_type): Change incoming argument from
5718 length-in-bytes to length-in-bits. Assert length is a
5719 multiple of TARGET_CHAR_BITS.
5720 (arch_type, arch_flags_type): Likewise.
5721 (init_integer_type): Update call to init_type.
5722 (init_character_type): Likewise.
5723 (init_boolean_type): Likewise.
5724 (init_float_type): Likewise.
5725 (init_decfloat_type): Likewise.
5726 (init_complex_type): Likewise.
5727 (init_pointer_type): Likewise.
5728 (objfile_type): Likewise.
5729 (arch_integer_type): Update call to arch_type.
5730 (arch_character_type): Likewise.
5731 (arch_boolean_type): Likewise.
5732 (arch_float_type): Likewise.
5733 (arch_decfloat_type): Likewise.
5734 (arch_complex_type): Likewise.
5735 (arch_pointer_type): Likewise.
5736 (gdbtypes_post_init): Likewise.
5738 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5739 (read_base_type): Likewise.
5740 * mdebugread.c (basic_type): Likewise.
5741 * stabsread.c (dbx_init_float_type): Likewise.
5742 (rs6000_builtin_type): Likewise.
5743 (read_range_type): Likewise. Also, fix call to init_integer_type
5744 with erroneous length argument.
5746 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5747 * d-lang.c (build_d_types): Likewise.
5748 * f-lang.c (build_fortran_types): Likewise.
5749 * go-lang.c (build_go_types): Likewise.
5750 * opencl-lang.c (build_opencl_types): Likewise.
5751 * jit.c (finalize_symtab): Likewise.
5752 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5753 (build_std_type_info_type): Likewise.
5754 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5755 update call to arch_flags_type.
5757 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5759 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5760 * windows-tdep.c (windows_get_tlb_type): Likewise.
5762 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
5763 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5764 * m32c-tdep.c (make_types): Likewise.
5765 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5766 (rl78_psw_type): Update call to arch_flags_type.
5767 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
5768 * rx-tdep.c (rx_psw_type): Likewise.
5769 (rx_fpsw_type): Likewise.
5770 * sparc-tdep.c (sparc_psr_type): Likewise.
5771 (sparc_fsr_type): Likewise.
5772 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
5773 (sparc64_ccr_type): Likewise.
5774 (sparc64_fsr_type): Likewise.
5775 (sparc64_fprs_type): Likewise.
5777 2017-09-27 Tom Tromey <tom@tromey.com>
5779 * findcmd.c (find_command): Constify.
5781 2017-09-27 Tom Tromey <tom@tromey.com>
5783 * ada-tasks.c (task_command_1, task_command): Constify.
5785 2017-09-27 Tom Tromey <tom@tromey.com>
5787 * symtab.c (maintenance_print_symbol_cache)
5788 (maintenance_flush_symbol_cache)
5789 (maintenance_print_symbol_cache_statistics): Constify.
5791 2017-09-27 Tom Tromey <tom@tromey.com>
5793 * inferior.c (detach_inferior_command, kill_inferior_command)
5794 (inferior_command): Constify.
5796 2017-09-27 Tom Tromey <tom@tromey.com>
5798 * regcache.c (regcache_print, maintenance_print_registers)
5799 (maintenance_print_raw_registers)
5800 (maintenance_print_cooked_registers)
5801 (maintenance_print_register_groups)
5802 (maintenance_print_remote_registers): Constify.
5804 2017-09-27 Tom Tromey <tom@tromey.com>
5806 * printcmd.c (map_display_numbers, undisplay_command)
5807 (enable_disable_display_command, enable_display_command)
5808 (disable_display_command): Constify.
5810 2017-09-27 Tom Tromey <tom@tromey.com>
5812 * breakpoint.h (delete_command): Don't declare.
5813 * breakpoint.c (delete_command, enable_once_command)
5814 (enable_count_command, enable_delete_command, breakpoint_1)
5815 (maintenance_info_breakpoints, stopin_command, stopat_command)
5816 (delete_command, delete_trace_command, save_breakpoints)
5817 (save_breakpoints_command, save_tracepoints_command): Constify.
5819 2017-09-27 Tom Tromey <tom@tromey.com>
5821 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5822 (skip_ws, extract_identifier, macro_define_command)
5823 (macro_undef_command, macro_list_command): Constify.
5825 2017-09-27 Tom Tromey <tom@tromey.com>
5827 * infcmd.c (environment_info, set_environment_command)
5828 (unset_environment_command, path_info, info_proc_cmd_1)
5829 (info_proc_cmd_mappings, info_proc_cmd_stat)
5830 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
5831 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
5833 2017-09-27 Tom Tromey <tom@tromey.com>
5835 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
5838 2017-09-27 Tom Tromey <tom@tromey.com>
5840 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
5842 2017-09-27 Tom Tromey <tom@tromey.com>
5844 * demangle.c (demangle_command): Constify.
5846 2017-09-27 Tom Tromey <tom@tromey.com>
5848 * progspace.c (maintenance_info_program_spaces_command):
5851 2017-09-27 Tom Tromey <tom@tromey.com>
5853 * compile/compile.c (check_raw_argument, compile_file_command)
5854 (compile_code_command, compile_print_command): Constify.
5856 2017-09-27 Tom Tromey <tom@tromey.com>
5858 * reggroups.c (maintenance_print_reggroups): Constify.
5860 2017-09-27 Tom Tromey <tom@tromey.com>
5862 * dwarf2read.c (save_gdb_index_command): Constify.
5864 2017-09-27 Tom Tromey <tom@tromey.com>
5866 * stap-probe.c (info_probes_stap_command): Constify.
5868 2017-09-27 Tom Tromey <tom@tromey.com>
5870 * fork-child.c (unset_exec_wrapper_command): Constify.
5872 2017-09-27 Tom Tromey <tom@tromey.com>
5874 * btrace.c (get_uint, get_context_size, no_chunk)
5875 (maint_btrace_packet_history_cmd)
5876 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5877 (maint_info_btrace_cmd): Constify.
5879 2017-09-27 Tom Tromey <tom@tromey.com>
5881 * reverse.c (delete_bookmark_command): Constify.
5883 2017-09-27 Tom Tromey <tom@tromey.com>
5885 * remote.c (set_memory_packet_size)
5886 (set_memory_write_packet_size, show_memory_write_packet_size)
5887 (set_memory_read_packet_size, show_memory_read_packet_size)
5888 (compare_sections_command, packet_command, remote_put_command)
5889 (remote_get_command, remote_delete_command): Constify.
5891 2017-09-27 Tom Tromey <tom@tromey.com>
5893 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
5894 (set_mipsfpu_double_command, set_mipsfpu_none_command)
5895 (set_mipsfpu_auto_command): Constify.
5897 2017-09-27 Tom Tromey <tom@tromey.com>
5899 * cli/cli-cmds.h (cd_command): Constify.
5900 * cli/cli-cmds.c (cd_command): Constify.
5902 2017-09-27 Tom Tromey <tom@tromey.com>
5904 * thread.c (thread_name_command, thread_find_command): Constify.
5906 2017-09-27 Tom Tromey <tom@tromey.com>
5908 * probe.c (enable_probes_command, disable_probes_command):
5911 2017-09-27 Tom Tromey <tom@tromey.com>
5913 * symfile.c (symbol_file_command): Constify.
5914 * gdbcore.h (deprecated_file_changed_hook): Constify.
5915 * exec.c (deprecated_file_changed_hook, exec_file_command)
5916 (file_command): Constify.
5917 * defs.h (symbol_file_command): Constify.
5919 2017-09-27 Tom Tromey <tom@tromey.com>
5921 * remote-fileio.c (set_system_call_allowed)
5922 (show_system_call_allowed): Constify.
5924 2017-09-27 Tom Tromey <tom@tromey.com>
5926 * tracepoint.c (delete_trace_variable_command)
5927 (tfind_end_command, tfind_start_command, tfind_pc_command)
5928 (tfind_tracepoint_command, tfind_line_command)
5929 (tfind_range_command, tfind_outside_command): Constify.
5931 2017-09-27 Tom Tromey <tom@tromey.com>
5933 * ax-gdb.c (maint_agent_printf_command, agent_command)
5934 (agent_eval_command): Constify.
5936 2017-09-27 Tom Tromey <tom@tromey.com>
5938 * tracepoint.c (info_scope_command): Constify.
5939 * python/python.c (gdbpy_decode_line): Constify.
5940 * python/py-breakpoint.c (bppy_init): Constify.
5941 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
5942 * location.h: (new_linespec_location)
5943 (string_to_event_location_basic, string_to_event_location):
5945 * location.c (new_linespec_location)
5946 (string_to_event_location_basic, string_to_event_location):
5948 * linespec.h (decode_line_with_current_source)
5949 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
5950 * linespec.c (linespec_lex_to_end)
5951 (decode_line_with_current_source)
5952 (decode_line_with_last_displayed): Constify.
5953 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
5955 * cli/cli-cmds.c (edit_command, list_command): Constify.
5956 * breakpoint.h (until_break_command, watch_command_wrapper)
5957 (awatch_command_wrapper, rwatch_command_wrapper)
5958 (init_ada_exception_breakpoint): Constify.
5959 * breakpoint.c (break_command_1, dprintf_command)
5960 (break_range_command, watch_command_wrapper)
5961 (rwatch_command_wrapper, awatch_command_wrapper)
5962 (until_break_command, init_ada_exception_breakpoint)
5963 (strace_marker_create_sals_from_location, trace_command)
5964 (ftrace_command, strace_command, struct tracepoint): Constify.
5965 * ax-gdb.c (agent_command_1): Constify.
5966 * ada-lang.c (ada_exception_sal): Constify.
5968 2017-09-27 Tom Tromey <tom@tromey.com>
5970 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
5971 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
5972 (get_context_size, no_chunk, get_insn_history_modifiers)
5973 (cmd_record_insn_history, get_call_history_modifiers)
5974 (cmd_record_call_history): Constify.
5976 2017-09-27 Tom Tromey <tom@tromey.com>
5978 * source.c (show_substitute_path_command)
5979 (unset_substitute_path_command, set_substitute_path_command):
5982 2017-09-27 Tom Tromey <tom@tromey.com>
5984 * typeprint.c (maintenance_print_type): Constify.
5985 * maint.c (maintenance_dump_me, maintenance_demangle)
5986 (maintenance_time_display, maintenance_info_sections)
5987 (maintenance_print_statistics, maintenance_deprecate)
5988 (maintenance_undeprecate): Constify.
5989 (maintenance_do_deprecate): Constify. Use std::string.
5990 (maintenance_selftest): Constify.
5991 * gdbtypes.h (maintenance_print_type): Constify.
5993 2017-09-27 Tom Tromey <tom@tromey.com>
5995 * hppa-tdep.c (unwind_command): Constify.
5997 2017-09-27 Tom Tromey <tom@tromey.com>
5999 * target-descriptions.c (unset_tdesc_filename_cmd)
6000 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6003 2017-09-27 Tom Tromey <tom@tromey.com>
6005 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6007 2017-09-27 Tom Tromey <tom@tromey.com>
6009 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6011 2017-09-27 Tom Tromey <tom@tromey.com>
6013 * tui/tui-regs.c (tui_reg_command): Constify.
6015 2017-09-27 Tom Tromey <tom@tromey.com>
6017 * skip.c (skip_file_command, skip_function_command)
6018 (skip_enable_command, skip_disable_command, skip_delete_command):
6021 2017-09-27 Tom Tromey <tom@tromey.com>
6023 * record-btrace.c (cmd_record_btrace_bts_start)
6024 (cmd_record_btrace_pt_start): Constify.
6026 2017-09-27 Tom Tromey <tom@tromey.com>
6028 * symmisc.c (maintenance_print_symbols)
6029 (maintenance_print_msymbols, maintenance_print_objfiles)
6030 (maintenance_info_symtabs, maintenance_check_symtabs)
6031 (maintenance_expand_symtabs, maintenance_info_line_tables):
6034 2017-09-27 Tom Tromey <tom@tromey.com>
6036 * top.c (new_ui_command): Constify.
6038 2017-09-27 Tom Tromey <tom@tromey.com>
6040 * symfile.c (add_symbol_file_command)
6041 (remove_symbol_file_command, list_overlays_command)
6042 (map_overlay_command, unmap_overlay_command)
6043 (overlay_auto_command, overlay_manual_command)
6044 (overlay_off_command, overlay_load_command): Constify.
6046 2017-09-27 Tom Tromey <tom@tromey.com>
6048 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6049 (info_spu_mailbox_command, info_spu_dma_command)
6050 (info_spu_proxydma_command): Constify.
6052 2017-09-27 Tom Tromey <tom@tromey.com>
6054 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6056 2017-09-27 Tom Tromey <tom@tromey.com>
6058 * cli/cli-script.c (user_defined_command): Constify.
6060 2017-09-27 Tom Tromey <tom@tromey.com>
6062 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6063 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6064 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6065 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6066 (dump_binary_value, append_binary_memory, append_binary_value):
6068 (struct dump_context) <func>: Constify.
6069 (add_dump_command): Update.
6071 2017-09-27 Tom Tromey <tom@tromey.com>
6073 * cli/cli-cmds.c (show_version, show_configuration)
6074 (source_command, show_user): Constify.
6076 2017-09-27 Tom Tromey <tom@tromey.com>
6078 * target.c (maintenance_print_target_stack): Constify.
6080 2017-09-27 Tom Tromey <tom@tromey.com>
6082 * interps.c (interpreter_exec_cmd): Constify.
6084 2017-09-27 Tom Tromey <tom@tromey.com>
6086 * record-full.c (cmd_record_full_restore): Constify.
6088 2017-09-27 Tom Tromey <tom@tromey.com>
6090 * memattr.c (enable_mem_command, disable_mem_command)
6091 (delete_mem_command): Constify.
6093 2017-09-27 Tom Tromey <tom@tromey.com>
6095 * value.c (show_convenience): Constify.
6097 2017-09-27 Tom Tromey <tom@tromey.com>
6099 * gdbcore.h (core_file_command): Update.
6100 * corefile.c (core_file_command): Constify.
6102 2017-09-27 Tom Tromey <tom@tromey.com>
6104 * user-regs.c (maintenance_print_user_registers): Constify.
6106 2017-09-27 Tom Tromey <tom@tromey.com>
6108 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6110 2017-09-27 Tom Tromey <tom@tromey.com>
6112 * cp-support.c (first_component_command): Constify.
6114 2017-09-27 Tom Tromey <tom@tromey.com>
6116 * psymtab.c (maintenance_print_psymbols)
6117 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6120 2017-09-27 Tom Tromey <tom@tromey.com>
6122 * windows-tdep.c (display_tib): Constify.
6124 2017-09-27 Tom Tromey <tom@tromey.com>
6126 * linux-fork.c (delete_checkpoint_command)
6127 (detach_checkpoint_command): Constify.
6129 2017-09-27 Tom Tromey <tom@tromey.com>
6131 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6133 2017-09-27 Tom Tromey <tom@tromey.com>
6135 * arc-tdep.c (dump_arc_instruction_command): Constify.
6137 2017-09-27 Tom Tromey <tom@tromey.com>
6139 * valprint.c (set_radix, show_radix): Constify.
6141 2017-09-27 Tom Tromey <tom@tromey.com>
6143 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6145 2017-09-27 Tom Tromey <tom@tromey.com>
6147 * command.h (not_just_help_class_command): Update.
6148 * cli/cli-decode.h (not_just_help_class_command): Update.
6149 * cli/cli-decode.c (not_just_help_class_command): Constify.
6151 2017-09-27 Tom Tromey <tom@tromey.com>
6153 * gdb_bfd.c (maintenance_info_bfds): Constify.
6155 2017-09-27 Tom Tromey <tom@tromey.com>
6157 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6159 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6160 (do_const_cfunc): New function.
6161 (cmd_cfunc_eq): New overload.
6162 (cli_user_command_p): Check do_const_cfunc.
6163 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6165 * command.h (add_cmd): Add const overload and no-function
6167 (set_cmd_cfunc): Add const overload.
6168 (cmd_const_cfunc_ftype): Declare.
6169 (cmd_cfunc_eq): Add const overload.
6170 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6171 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6174 2017-09-27 Tom Tromey <tom@tromey.com>
6176 * macroexp.c (get_next_token_for_substitution): New function.
6177 (substitute_args): Call it. Check for __VA_OPT__.
6179 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6180 Pedro Alves <palves@redhat.com>
6182 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6183 producer_is_icc_lt_14.
6184 (producer_is_icc_lt_14): New function.
6185 (check_producer): Add code for checking version of ICC.
6186 (producer_is_icc): Move to producer.c.
6187 (read_structure_type): Restrict ICC workaround to ICC<14.
6188 * producer.c: Include selftest.h.
6189 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6191 * producer.h (producer_is_icc): New declaration.
6193 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6195 * Makefile.in (SFILES): Add producer.c.
6196 (COMMON_OBS): Add producer.o
6197 * amd64-tdep.c (producer.h): Add new include.
6198 * dwarf2read.c (producer.h): Add new include.
6199 * producer.c: New file.
6200 * producer.h: New file.
6201 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6203 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6206 2017-09-26 Matthias Klose <doko@ubuntu.com>
6208 * configure.ac: Search ncursesw before ncurses.
6209 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6210 * gdb_curses.h: Include <ncursesw/ncurses.h>
6211 * config.in, configure: Regenerate.
6213 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6216 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6218 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6219 Remove i386sol2 support.
6220 * configure.nat <i386sol2>: Remove.
6221 <sol2-64>: Fold into ...
6223 Move common settings to default section.
6225 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6226 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6227 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6228 <i[34567]86-*-solaris*>: Remove.
6229 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6231 * configure.ac: Remove wctype in libw check.
6232 (_MSE_INT_H): Don't define on Solaris 7-9.
6233 <solaris*>: Remove libthread_db.so.1 check.
6234 * configure: Regenerate.
6235 * config.in: Regenerate.
6237 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6238 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6239 (gdb_ps_size_t): Remove.
6240 Use base types in users.
6241 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6243 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6245 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6248 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6249 (adi_is_addr_mapped): Likewise.
6250 (PSR_ICC): Don't redefine.
6251 (PSR_IMPL): Likewise.
6253 2017-09-25 Tom Tromey <tom@tromey.com>
6255 * regcache.c (regcache::dump): Use string_printf.
6257 2017-09-25 Tom Tromey <tom@tromey.com>
6259 * regcache.c (class regcache_invalidator): New.
6260 (struct register_to_invalidate): Remove.
6261 (make_cleanup_regcache_invalidate): Remove.
6262 (regcache::raw_write): Use regcache_invalidator.
6264 2017-09-25 Tom Tromey <tom@tromey.com>
6266 * spu-tdep.c (spu2ppu_sniffer): Update.
6267 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6268 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6270 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6271 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6272 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6273 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6274 (frame_pop): Update.
6276 2017-09-25 Tom Tromey <tom@tromey.com>
6278 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6279 * regcache.h (regcache_xfree): Don't declare.
6280 * regcache.c (regcache_xfree): Remove.
6281 (do_regcache_xfree): Use delete.
6282 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6283 * linux-fork.c (free_fork): Use delete.
6284 (fork_save_infrun_state): Likewise.
6285 * jit.c (jit_dealloc_cache): Use delete.
6286 * infrun.c (discard_infcall_suspend_state): Use delete.
6288 2017-09-25 Tom Tromey <tom@tromey.com>
6290 * regcache.h (regcache_xmalloc): Don't declare.
6291 (regcache_raw_set_cached_value): Update comment.
6292 * regcache.c (regcache_xmalloc): Remove.
6293 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6294 * jit.c (jit_frame_sniffer): Use new.
6295 * frame.c (frame_save_as_regcache): Use new.
6297 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6299 * NEWS: Advertise support for guarded-storage registers on IBM z.
6301 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6303 * s390-linux-nat.c (have_regset_gs): New static variable.
6304 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6305 control block and guarded-storage broadcast control regsets.
6306 (s390_read_description): Detect whether the target has
6307 guarded-storage support, return appropriate tdesc.
6308 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6309 (features/s390x-gs-linux64.c): Likewise.
6310 (struct gdbarch_tdep) <have_gs>: New field.
6311 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6312 (s390_gsbc_regset): New variables.
6313 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6314 and s390_gsbc_regset, if applicable.
6315 (s390_core_read_description): Check whether core file was from a
6316 target with guarded-storage support; include appropriate regsets.
6317 (s390_gdbarch_init): Add registers for guarded-storage support.
6318 (_initialize_s390_tdep): Initialize new target descriptions that
6319 include registers for guarded-storage support.
6320 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6321 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6322 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6323 (S390_NUM_REGS): Adjust macro definition.
6324 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6325 (tdesc_s390x_gs_linux64): New declarations.
6327 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6329 * features/s390-gs-linux64.xml: New file.
6330 * features/s390-gs.xml: New file.
6331 * features/s390-gsbc.xml: New file.
6332 * features/s390x-gs-linux64.xml: New file.
6333 * features/Makefile (WHICH): Add s390-gs-linux64 and
6335 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6336 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6337 * features/s390-gs-linux64.c: New generated file.
6338 * features/s390x-gs-linux64.c: New file.
6339 * regformats/s390-gs-linux64.dat: New file.
6340 * regformats/s390x-gs-linux64.dat: New file.
6342 2017-09-23 Tom Tromey <tom@tromey.com>
6344 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6346 2017-09-22 Tom Tromey <tom@tromey.com>
6348 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6349 type to scoped_restore_tmpl.
6350 <scoped_input_handler>: Initialize m_quit_handler directly.
6352 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6354 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6355 (cd_command): Likewise. Free "current_directory" before
6357 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6358 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6359 * top.c (gdb_dirbuf): Remove global declaration.
6360 * top.h (gdb_dirbuf): Likewise.
6362 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6364 * gnulib/aclocal.m4: Regenerate.
6365 * gnulib/config.in: Regenerate.
6366 * gnulib/configure: Regenerate.
6367 * gnulib/import/Makefile.am: Regenerate.
6368 * gnulib/import/Makefile.in: Regenerate.
6369 * gnulib/import/assure.h: New file.
6370 * gnulib/import/at-func.c: Likewise
6371 * gnulib/import/chdir-long.c: New file.
6372 * gnulib/import/chdir-long.h: New file.
6373 * gnulib/import/cloexec.c: New file.
6374 * gnulib/import/cloexec.h: New file.
6375 * gnulib/import/close.c: New file.
6376 * gnulib/import/closedir.c: New file.
6377 * gnulib/import/dirent-private.h: New file.
6378 * gnulib/import/dup-safer.c: New file.
6379 * gnulib/import/dup.c: New file.
6380 * gnulib/import/dup2.c: New file.
6381 * gnulib/import/error.c: New file.
6382 * gnulib/import/error.h: New file.
6383 * gnulib/import/exitfail.c: New file.
6384 * gnulib/import/exitfail.h: New file.
6385 * gnulib/import/fchdir.c: New file.
6386 * gnulib/import/fcntl.c: New file.
6387 * gnulib/import/fcntl.in.h: New file.
6388 * gnulib/import/fd-hook.c: New file.
6389 * gnulib/import/fd-hook.h: New file.
6390 * gnulib/import/fd-safer.c: New file.
6391 * gnulib/import/fdopendir.c: New file.
6392 * gnulib/import/filename.h: New file.
6393 * gnulib/import/filenamecat-lgpl.c: New file.
6394 * gnulib/import/filenamecat.h: New file.
6395 * gnulib/import/fstat.c: New file.
6396 * gnulib/import/fstatat.c: New file.
6397 * gnulib/import/getcwd-lgpl.c: New file.
6398 * gnulib/import/getcwd.c: New file.
6399 * gnulib/import/getdtablesize.c: New file.
6400 * gnulib/import/getlogin_r.c: New file.
6401 * gnulib/import/getprogname.c: New file.
6402 * gnulib/import/getprogname.h: New file.
6403 * gnulib/import/gettext.h: New file.
6404 * gnulib/import/glob-libc.h: New file.
6405 * gnulib/import/glob.c: New file.
6406 * gnulib/import/glob.in.h: New file.
6407 * gnulib/import/intprops.h: New file.
6408 * gnulib/import/m4/chdir-long.m4: New file.
6409 * gnulib/import/m4/close.m4: New file.
6410 * gnulib/import/m4/closedir.m4: New file.
6411 * gnulib/import/m4/d-ino.m4: New file.
6412 * gnulib/import/m4/d-type.m4: New file.
6413 * gnulib/import/m4/dup.m4: New file.
6414 * gnulib/import/m4/dup2.m4: New file.
6415 * gnulib/import/m4/error.m4: New file.
6416 * gnulib/import/m4/fchdir.m4: New file.
6417 * gnulib/import/m4/fcntl.m4: New file.
6418 * gnulib/import/m4/fcntl_h.m4: New file.
6419 * gnulib/import/m4/fdopendir.m4: New file.
6420 * gnulib/import/m4/filenamecat.m4: New file.
6421 * gnulib/import/m4/fstat.m4: New file.
6422 * gnulib/import/m4/fstatat.m4: New file.
6423 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6424 * gnulib/import/m4/getcwd-path-max.m4: New file.
6425 * gnulib/import/m4/getcwd.m4: New file.
6426 * gnulib/import/m4/getdtablesize.m4: New file.
6427 * gnulib/import/m4/getlogin_r.m4: New file.
6428 * gnulib/import/m4/getprogname.m4: New file.
6429 * gnulib/import/m4/glob.m4: New file.
6430 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6431 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6432 * gnulib/import/m4/mempcpy.m4: New file.
6433 * gnulib/import/m4/memrchr.m4: New file.
6434 * gnulib/import/m4/mode_t.m4: New file.
6435 * gnulib/import/m4/msvc-inval.m4: New file.
6436 * gnulib/import/m4/msvc-nothrow.m4: New file.
6437 * gnulib/import/m4/open.m4: New file.
6438 * gnulib/import/m4/openat.m4: New file.
6439 * gnulib/import/m4/opendir.m4: New file.
6440 * gnulib/import/m4/readdir.m4: New file.
6441 * gnulib/import/m4/realloc.m4: New file.
6442 * gnulib/import/m4/rewinddir.m4: New file.
6443 * gnulib/import/m4/save-cwd.m4: New file.
6444 * gnulib/import/m4/strdup.m4: New file.
6445 * gnulib/import/m4/strerror.m4: New file.
6446 * gnulib/import/m4/unistd-safer.m4: New file.
6447 * gnulib/import/mempcpy.c: New file.
6448 * gnulib/import/memrchr.c: New file.
6449 * gnulib/import/msvc-inval.c: New file.
6450 * gnulib/import/msvc-inval.h: New file.
6451 * gnulib/import/msvc-nothrow.c: New file.
6452 * gnulib/import/msvc-nothrow.h: New file.
6453 * gnulib/import/open.c: New file.
6454 * gnulib/import/openat-die.c: New file.
6455 * gnulib/import/openat-priv.h: New file.
6456 * gnulib/import/openat-proc.c: New file.
6457 * gnulib/import/openat.c: New file.
6458 * gnulib/import/openat.h: New file.
6459 * gnulib/import/opendir.c: New file.
6460 * gnulib/import/pipe-safer.c: New file.
6461 * gnulib/import/readdir.c: New file.
6462 * gnulib/import/realloc.c: New file.
6463 * gnulib/import/rewinddir.c: New file.
6464 * gnulib/import/save-cwd.c: New file.
6465 * gnulib/import/save-cwd.h: New file.
6466 * gnulib/import/strdup.c: New file.
6467 * gnulib/import/strerror-override.c: New file.
6468 * gnulib/import/strerror-override.h: New file.
6469 * gnulib/import/strerror.c: New file.
6470 * gnulib/import/unistd--.h: New file.
6471 * gnulib/import/unistd-safer.h: New file.
6472 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6473 "getcwd" and "glob".
6474 * ser-tcp.c: Undefine "close" before redefining it.
6476 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6478 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6481 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6483 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6484 <sol2,sparc>: Likewise.
6485 <sol2-64,i386>: Likewise.
6487 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6488 -Wdeprecated-declarations on *-*-solaris*.
6489 * configure: Regenerate.
6491 * procfs.c: Include "nat/inferior.h".
6492 (procfs_info_proc): Fix typo.
6494 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6496 * remote.c (vector): Include.
6497 (struct private_thread_info): Add field, thread_handle.
6498 (free_private_thread_info): Deallocate storage associated with
6500 (get_private_info_thread): Initialize `thread_handle' field.
6501 (struct thread_item): Add field, thread_handle.
6502 (clear_threads_listing_context): Deallocate storage associated
6504 (start_thread): Add support for "handle" attribute.
6505 (thread_attributes): Add "handle".
6506 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6508 (remote_update_thread_list): Update thread_handle.
6509 (remote_thread_handle_to_thread_info): New function.
6510 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6512 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6514 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6516 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6517 * python/python-internal.h (thread_object_type): Declare.
6519 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6521 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6522 (target_thread_handle_to_thread_info): Declare.
6523 * target.c (target_thread_handle_to_thread_info): New function.
6524 * target-delegates.c: Regenerate.
6525 * gdbthread.h (find_thread_by_handle): Declare.
6526 * thread.c (find_thread_by_handle): New function.
6527 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6529 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6531 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6533 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6535 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6537 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6539 2017-09-21 Yao Qi <yao.qi@linaro.org>
6541 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6544 2017-09-20 Tom Tromey <tom@tromey.com>
6546 * breakpoint.c (struct counted_command_line): Remove.
6547 (breakpoint_commands): Update.
6548 (alloc_counted_command_line, incref_counted_command_line)
6549 (decref_counted_command_line, do_cleanup_counted_command_line)
6550 (make_cleanup_decref_counted_command_line): Remove.
6551 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6552 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6553 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6554 (save_breakpoints): Update.
6555 * breakpoint.h (counted_command_line): Now a typedef to
6557 (struct breakpoint) <commands>: Now a counted_command_line.
6558 (struct bpstats) <command>: Likewise.
6560 2017-09-20 Tom Tromey <tom@tromey.com>
6562 * breakpoint.c (struct commands_info, do_map_commands_command):
6564 (commands_command_1): Update.
6565 (iterate_over_related_breakpoints): Take a function_view.
6566 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6567 (delete_command): Update.
6568 (map_breakpoint_numbers): Take a function_view.
6569 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6570 (disable_command): Update.
6571 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6572 (enable_command): Update.
6573 (struct disp_data, do_enable_breakpoint_disp)
6574 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6575 (do_map_enable_delete_breakpoint): Remove.
6576 (enable_once_command, enable_count_command, enable_delete_command)
6577 (delete_trace_variable_command): Update.
6579 2017-09-20 Tom Tromey <tom@tromey.com>
6581 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6582 (bpstat_clear): Use delete.
6583 (bpstats): New constructors.
6584 (bpstat_copy, bpstat_stop_status): Use new.
6585 (dprintf_after_condition_true): Update.
6586 * breakpoint.h (bpstats::bpstats): Add constructors.
6587 (bpstats::~bpstats): Add destructor.
6589 2017-09-20 Pedro Alves <palves@redhat.com>
6591 * eval.c (make_params): Delete, refactored as ...
6592 (class fake_method): ... this new type's ctor.
6593 (fake_method::~fake_method): New.
6594 (evaluate_subexp_standard): Use 'fake_method'.
6596 2017-09-20 Tom Tromey <tom@tromey.com>
6598 * windows-nat.c (get_windows_debug_event, windows_wait)
6599 (do_initial_windows_stuff, windows_attach): Update.
6600 * utils.c (vwarning, internal_vproblem): Update.
6601 (ui_unregister_input_event_handler_cleanup)
6602 (prepare_to_handle_input): Remove.
6603 (class scoped_input_handler): New.
6604 (defaulted_query, prompt_for_continue): Update.
6605 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6607 * top.c (undo_terminal_modifications_before_exit): Update.
6608 * target/target.h (target_terminal_init, target_terminal_inferior)
6609 (target_terminal_ours): Don't declare.
6610 (class target_terminal): New.
6611 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
6612 (target_terminal_ours_for_output)
6613 (make_cleanup_restore_target_terminal): Don't declare.
6614 (target_terminal_info): Remove.
6615 * target.c (enum terminal_state, terminal_state): Remove.
6616 (target_terminal::terminal_state): Define.
6617 (target_terminal::init): Rename from target_terminal_init.
6618 (target_terminal::inferior): Rename from
6619 target_terminal_inferior.
6620 (target_terminal::ours): Rename from target_terminal_ours.
6621 (target_terminal::ours_for_output): Rename from
6622 target_terminal_ours_for_output.
6623 (target_terminal::info): New method.
6624 (cleanup_restore_target_terminal)
6625 (make_cleanup_restore_target_terminal): Remove.
6626 * solib.c (handle_solib_event): Update.
6627 * remote.c (remote_serial_quit_handler): Update.
6628 (remote_terminal_inferior, remote_wait_as): Update.
6629 * record-full.c (record_full_wait_1): Update.
6630 * nto-procfs.c (procfs_create_inferior): Update.
6631 * nat/fork-inferior.c (startup_inferior): Update.
6632 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6633 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6634 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6635 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6636 (mi_breakpoint_created, mi_breakpoint_deleted)
6637 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
6638 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6639 (mi_user_selected_context_changed, report_initial_inferior):
6641 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
6642 (linux_nat_terminal_inferior): Update.
6643 * infrun.c (follow_fork_inferior)
6644 (handle_vfork_child_exec_or_exit, do_target_resume)
6645 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
6646 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
6648 * inflow.c (child_terminal_init, info_terminal_command): Update.
6649 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
6650 (attach_command): Update.
6651 * infcall.c (call_thread_fsm_should_stop): Update.
6652 * gnu-nat.c (gnu_attach): Update.
6653 * extension.c (struct active_ext_lang_state)
6654 (restore_active_ext_lang): Update.
6655 * exceptions.c (print_flush): Update.
6656 * event-top.c (async_enable_stdin, default_quit_handler): Update.
6657 (struct quit_handler_cleanup_data, restore_quit_handler)
6658 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
6660 * cp-support.c (gdb_demangle): Update.
6661 * breakpoint.c (update_inserted_breakpoint_locations)
6662 (insert_breakpoint_locations, handle_jit_event)
6663 (disable_breakpoints_in_unloaded_shlib): Update.
6664 * annotate.c (annotate_breakpoints_invalid)
6665 (annotate_frames_invalid): Update.
6667 2017-09-20 Tom Tromey <tom@tromey.com>
6669 * main.c (catch_command_errors): Rename from
6670 catch_command_errors_const.
6671 (captured_main_1): Update.
6673 2017-09-20 Pedro Alves <palves@redhat.com>
6675 * cli/cli-cmds.c (list_command): Use print_sal_location.
6676 (print_sal_location): New function.
6677 (ambiguous_line_spec): Use print_sal_location.
6678 * linespec.c (symbol_to_sal): Record the symbol in the sal.
6679 * symtab.c (find_function_start_sal): Likewise.
6680 * symtab.h (symtab_and_line::symbol): New field.
6682 2017-09-20 Pedro Alves <palves@redhat.com>
6684 * linespec.c (minsym_found): Handle non-text minsyms.
6685 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
6687 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6689 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
6692 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6694 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
6695 vmovups instead vmovaps.
6696 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
6698 2017-09-19 John Baldwin <jhb@FreeBSD.org>
6700 * NEWS (Changes since GDB 8.0): Add starti.
6701 * infcmd.c (enum run_break): New.
6702 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
6704 (run_command): Use enum run_how.
6705 (start_command): Likewise.
6706 (starti_command): New function.
6707 (RUN_ARGS_HELP): New macro.
6708 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
6709 commands. Add starti command.
6711 2017-09-19 Yao Qi <yao.qi@linaro.org>
6713 * Makefile.in (monitor.o): Remove the rule.
6715 2017-09-19 Yao Qi <yao.qi@linaro.org>
6717 * annotate.h (struct annotate_arg_emitter): Use
6718 DISABLE_COPY_AND_ASSIGN.
6719 * common/refcounted-object.h (refcounted_object): Likewise.
6720 * completer.h (struct completion_result): Likewise.
6721 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
6722 * filename-seen-cache.h (filename_seen_cache): Likewise.
6723 * gdbcore.h (thread_section_name): Likewise.
6724 * gdb_regex.h (compiled_regex): Likewise.
6725 * gdbthread.h (scoped_restore_current_thread): Likewise.
6726 * inferior.h (scoped_restore_current_inferior): Likewise.
6727 * jit.c (jit_reader): Likewise.
6728 * linespec.h (struct linespec_result): Likewise.
6729 * mi/mi-parse.h (struct mi_parse): Likewise.
6730 * nat/fork-inferior.c (execv_argv): Likewise.
6731 * progspace.h (scoped_restore_current_program_space): Likewise.
6732 * python/python-internal.h (class gdbpy_enter): Likewise.
6733 * regcache.h (regcache): Likewise.
6734 * target-descriptions.c (struct tdesc_reg): Likewise.
6735 (struct tdesc_type): Likewise.
6736 (struct tdesc_feature): Likewise.
6737 * ui-out.h (ui_out_emit_type): Likewise.
6739 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6741 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6742 label abort_expression.
6744 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6746 * common/buffer.c (buffer_xml_printf): Adjust.
6747 * common/xml-utils.c (xml_escape_text): Change return type to
6748 std::string, update code accordingly.
6749 * common/xml-utils.h (xml_escape_text): Change return type to
6751 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6752 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6753 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6756 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6758 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6759 (SUBDIR_UNITTESTS_OBS): Add new object file.
6760 * unittests/xml-utils-selftests.c: New file.
6762 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6764 * common/selftest.h (selftest): New struct/interface.
6765 (register_test): Add name parameter, add new overload.
6766 (run_tests): Add filter parameter.
6767 (for_each_selftest_ftype): New typedef.
6768 (for_each_selftest): New declaration.
6769 * common/selftest.c (tests): Change type to
6770 map<string, unique_ptr<selftest>>.
6771 (simple_selftest): New struct.
6772 (register_test): New function.
6773 (register_test): Add name parameter and use it.
6774 (run_tests): Add filter parameter and use it. Add prints.
6775 Adjust to vector -> map change.
6776 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
6777 registering selftests.
6778 * arm-tdep.c (_initialize_arm_tdep): Likewise.
6779 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
6780 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
6781 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
6782 * findvar.c (_initialize_findvar): Likewise.
6783 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
6784 * maint.c (maintenance_selftest): Update call to run_tests.
6785 (maintenance_info_selftests): New function.
6786 (_initialize_maint_cmds): Register "maintenance info selftests"
6787 command. Update "maintenance selftest" doc.
6788 * regcache.c (_initialize_regcache): Add names when registering
6790 * rust-exp.y (_initialize_rust_exp): Likewise.
6791 * selftest-arch.c (gdbarch_selftest): New struct.
6792 (gdbarch_tests): Remove.
6793 (register_test_foreach_arch): Add name parameter. Call
6795 (tests_with_arch): Remove, move most content to
6796 gdbarch_selftest::operator().
6797 (_initialize_selftests_foreach_arch): Remove.
6798 * selftest-arch.h (register_test_foreach_arch): Add name
6800 (run_tests_with_arch): New declaration.
6801 * utils-selftests.c (_initialize_utils_selftests): Add names
6802 when registering selftests.
6803 * utils.c (_initialize_utils): Likewise.
6804 * unittests/array-view-selftests.c
6805 (_initialize_array_view_selftests): Likewise.
6806 * unittests/environ-selftests.c (_initialize_environ_selftests):
6808 * unittests/function-view-selftests.c
6809 (_initialize_function_view_selftests): Likewise.
6810 * unittests/offset-type-selftests.c
6811 (_initialize_offset_type_selftests): Likewise.
6812 * unittests/optional-selftests.c
6813 (_initialize_optional_selftests): Likewise.
6814 * unittests/scoped_restore-selftests.c
6815 (_initialize_scoped_restore_selftests): Likewise.
6816 * NEWS: Document "maintenance selftest" and "maint info
6819 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6821 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
6824 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6826 * mi/mi-main.c (mi_load_progress): Make uiout variable
6829 2017-09-15 Pedro Alves <palves@redhat.com>
6831 * compile/compile-c-types.c (convert_enum, convert_int)
6832 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
6834 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6836 * dwarf2read.c (copy_string): Remove.
6837 (parse_macro_definition): Replace copy_string with savestring.
6839 2017-09-15 Yao Qi <yao.qi@linaro.org>
6841 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
6843 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6845 (i[34567]86-*-linux*): Likewise.
6847 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6849 * dwarf2expr.h (dwarf_stack_value): Add constructor.
6850 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
6851 <stack>: Change type to std::vector.
6852 <stack_len, stack_allocated>: Remove.
6853 <grow_stack>: Remove.
6854 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6855 (dwarf_expr_context::~dwarf_expr_context): Remove.
6856 (dwarf_expr_context::grow_stack): Remove.
6857 (dwarf_expr_context::push): Adjust.
6858 (dwarf_expr_context::pop): Adjust.
6859 (dwarf_expr_context::fetch): Adjust.
6860 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
6861 (dwarf_expr_context::stack_empty_p): Adjust.
6862 (dwarf_expr_context::execute_stack_op): Adjust.
6864 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6866 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
6867 return type to bool.
6868 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
6870 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6872 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
6873 Change type to bool.
6874 (dwarf_stack_value) <in_stack_memory>: Likewise.
6875 (dwarf_expr_context) <push_address>: Change parameter type to
6877 <fetch_in_stack_memory>: Change return type to bool.
6878 <push>: Change parameter type to bool.
6879 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
6881 (dwarf_expr_context::push_address): Likewise.
6882 (dwarf_expr_context::fetch_in_stack_memory): Change return type
6884 (dwarf_expr_context::execute_stack_op): Adjust.
6885 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
6887 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6889 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
6890 (struct dwarf_expr_context) <n_pieces>: Remove.
6891 <pieces>: Change type to std::vector.
6892 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6893 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
6895 (dwarf_expr_context::add_piece): Adjust.
6896 * dwarf2loc.c (struct piece_closure): Initialize fields.
6898 <pieces>: Change type to std::vector.
6899 (allocate_piece_closure): Adjust, change parameter to
6900 std::vector rvalue and std::move it to piece_closure.
6901 (rw_pieced_value): Adjust.
6902 (check_pieced_synthetic_pointer): Adjust.
6903 (indirect_synthetic_pointer): Adjust.
6904 (coerce_pieced_ref): Adjust.
6905 (free_pieced_value_closure): Adjust. Use delete to free
6907 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
6908 to allocate_piece_closure.
6909 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
6911 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6913 * probe.h (probe_ops_cp): Remove typedef.
6914 (DEF_VEC_P (probe_ops_cp)): Remove.
6915 (all_probe_ops): Change type to std::vector.
6916 * probe.c (info_probes_for_ops): Adjust to vector change.
6917 (probe_linespec_to_ops): Likewise.
6918 (all_probe_ops): Change type to std::vector.
6919 (_initialize_probe): Adjust to vector change.
6920 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
6921 * elfread.c (elf_get_probes): Likewise.
6922 * stap-probe.c (_initialize_stap_probe): Likewise.
6924 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6926 * probe.h (struct bound_probe): Define constructors.
6927 * probe.c (bound_probe_s): Remove typedef.
6928 (DEF_VEC_O (bound_probe_s)): Remove VEC.
6929 (collect_probes): Change return type to std::vector, remove
6931 (compare_probes): Return bool, change parameter type. Change
6932 semantic to "less than".
6933 (gen_ui_out_table_header_info): Change parameter to std::vector
6935 (exists_probe_with_pops): Likewise.
6936 (info_probes_for_ops): Update to std::vector change.
6937 (enable_probes_command): Likewise.
6938 (disable_probes_command): Likewise.
6940 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6942 * probe.h (struct probe_ops) <get_probes>: Change parameter from
6944 * probe.c (parse_probes_in_pspace): Update.
6945 (find_probes_in_objfile): Update.
6946 (find_probe_by_pc): Update.
6947 (collect_probes): Update.
6948 (probe_any_get_probes): Update.
6949 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
6950 return type to reference to std::vector.
6951 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
6952 std::vector and update.
6953 (dtrace_process_dof): Likewise.
6954 (dtrace_get_probes): Likewise.
6955 * elfread.c (elf_get_probes): Change return type to std::vector,
6956 store an std::vector in bfd_data.
6957 (probe_key_free): Update to std::vector.
6958 * stap-probe.c (handle_stap_probe): Change parameter to
6959 std::vector and update.
6960 (stap_get_probes): Likewise.
6961 * symfile-debug.c (debug_sym_get_probes): Change return type to
6962 std::vector and update.
6964 2017-09-11 Tom Tromey <tom@tromey.com>
6966 * breakpoint.c (program_breakpoint_here_p): Update.
6967 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
6968 from make_show_memory_breakpoints_cleanup. Return a
6969 scoped_restore_tmpl<int>.
6970 (restore_show_memory_breakpoints): Remove.
6971 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
6972 * mem-break.c (memory_validate_breakpoint): Update.
6973 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
6974 (ia64_memory_remove_breakpoint): Update.
6975 (ia64_breakpoint_from_pc): Update.
6976 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
6977 from make_show_memory_breakpoints_cleanup.
6979 2017-09-11 Tom Tromey <tom@tromey.com>
6981 * d-namespace.c (d_lookup_symbol): Use std::string.
6982 (find_symbol_in_baseclass): Likewise.
6984 2017-09-11 Tom Tromey <tom@tromey.com>
6986 * ctf.c (ctf_start): Use std::string.
6988 2017-09-11 Tom Tromey <tom@tromey.com>
6990 * ada-lang.c (is_known_support_routine): Update.
6991 (ada_unhandled_exception_name_addr_from_raise): Update.
6992 * guile/scm-frame.c (gdbscm_frame_name): Update.
6993 * python/py-frame.c (frapy_name): Update.
6994 (frapy_function): Update.
6995 * stack.h (find_frame_funname): Update.
6996 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
6997 (print_frame): Update.
6999 2017-09-11 Tom Tromey <tom@tromey.com>
7001 * findcmd.c (put_bits): Take a gdb::byte_vector.
7002 (parse_find_args): Return gdb::byte_vector. "args" now const.
7003 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7005 (find_command): Update.
7007 2017-09-11 Tom Tromey <tom@tromey.com>
7009 * cli/cli-script.c (class scoped_restore_hook_in): New.
7010 (clear_hook_in_cleanup): Remove.
7011 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7012 scoped_restore_hook_in.
7014 2017-09-11 Tom Tromey <tom@tromey.com>
7016 * cli/cli-script.c (restore_interp): Remove.
7017 (read_command_lines): Use scoped_restore_interp.
7018 * interps.c (scoped_restore_interp::set_temp): Rename from
7020 * interps.h (class scoped_restore_interp): New.
7021 (interp_set_temp): Remove.
7023 2017-09-11 Tom Tromey <tom@tromey.com>
7025 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7026 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7027 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7029 (mi_cmd_break_insert_1): Update.
7030 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7033 2017-09-11 Tom Tromey <tom@tromey.com>
7035 * demangle.c (demangle_command): Update.
7036 * breakpoint.c (disable_command): Update.
7037 (enable_command): Update.
7038 (find_location_by_number): Make "number" const. Use
7040 * cli/cli-utils.c (extract_arg): Return std::string.
7041 * probe.c (parse_probe_linespec): Update. Change types.
7042 (collect_probes): Take string arguments.
7043 (parse_probe_linespec): Likewise.
7044 (info_probes_for_ops): Update.
7045 (enable_probes_command): Update.
7046 (disable_probes_command): Update.
7047 * break-catch-sig.c (catch_signal_split_args): Update.
7048 * mi/mi-parse.c (mi_parse): Update.
7050 2017-09-11 Tom Tromey <tom@tromey.com>
7052 * language.h (language_enum): Make argument const.
7053 * language.c (language_enum): Make argument const.
7055 2017-09-11 Tom Tromey <tom@tromey.com>
7057 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7059 (skip_to_space): Rename from skip_to_space_const.
7060 * common/common-utils.c (skip_to_space): New function.
7061 (skip_to_space): Rename from skip_to_space_const.
7062 * cli/cli-utils.h (get_number): Rename from get_number_const.
7063 (extract_arg): Rename from extract_arg_const.
7064 * cli/cli-utils.c (get_number): Rename from get_number_const.
7065 (extract_arg): Rename from extract_arg_const.
7066 (number_or_range_parser::get_number): Use ::get_number.
7067 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7068 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7069 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7070 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7071 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7072 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7073 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7074 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7076 2017-09-11 Tom Tromey <tom@tromey.com>
7078 * python/python.c (do_start_initialization): Use
7079 py-event-types.def to initialize types.
7080 Define all object type structures.
7081 * python/python-internal.h: Don't declare event initialization
7083 * python/py-threadevent.c (thread_event_object_type): Don't
7085 * python/py-stopevent.c (stop_event_object_type): Don't define.
7086 * python/py-signalevent.c (signal_event_object_type): Don't
7088 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7089 (clear_objfiles_event_object_type): Don't declare or define.
7090 * python/py-infevents.c (inferior_call_pre_event_object_type)
7091 (inferior_call_post_event_object_type)
7092 (register_changed_event_object_type)
7093 (memory_changed_event_object_type): Don't declare or define.
7094 * python/py-inferior.c (new_thread_event_object_type)
7095 (new_inferior_event_object_type)
7096 (inferior_deleted_event_object_type): Don't declare or define.
7097 * python/py-exitedevent.c (exited_event_object_type): Don't
7099 * python/py-evts.c (gdbpy_initialize_py_events): Use
7101 * python/py-events.h (thread_event_object_type): Don't declare.
7102 (events_object): Use py-all-events.def.
7103 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7105 * python/py-event-types.def: New file.
7106 * python/py-continueevent.c (create_continue_event_object): Don't
7108 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7110 * python/py-all-events.def: New file.
7112 2017-09-11 Tom Tromey <tom@tromey.com>
7114 * python/py-threadevent.c (create_thread_event_object): Return
7116 * python/py-stopevent.h (create_stop_event_object)
7117 (create_breakpoint_event_object, create_signal_event_object):
7119 * python/py-stopevent.c (create_stop_event_object): Return
7121 (emit_stop_event): Update.
7122 * python/py-signalevent.c (create_signal_event_object): Return
7124 * python/py-infevents.c (create_inferior_call_event_object):
7126 * python/py-event.h (create_event_object)
7127 (create_thread_event_object): Update.
7128 * python/py-event.c (create_event_object): Return gdbpy_ref.
7129 * python/py-continueevent.c: Return gdbpy_ref.
7130 * python/py-bpevent.c (create_breakpoint_event_object): Return
7133 2017-09-11 Tom Tromey <tom@tromey.com>
7137 * python/python.c (do_start_initialization): Initialize new event
7139 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7140 (gdbpy_initialize_inferior_deleted_event)
7141 (gdbpy_initialize_new_thread_event): Declare.
7142 * python/py-threadevent.c (create_thread_event_object): Add option
7144 * python/py-inferior.c (new_thread_event_object_type)
7145 (new_inferior_event_object_type)
7146 (inferior_deleted_event_object_type): Declare.
7147 (python_new_inferior, python_inferior_deleted): New functions.
7148 (add_thread_object): Emit new_thread event.
7149 (gdbpy_initialize_inferior): Attach new functions to corresponding
7151 (new_thread, new_inferior, inferior_deleted): Define new event
7153 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7155 * python/py-events.h (events_object) <new_inferior,
7156 inferior_deleted, new_thread>: New fields.
7157 * python/py-event.h (create_thread_event_breakpoint): Add optional
7160 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7162 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7163 check current_ui instead.
7164 (internal_vproblem): Likewise.
7166 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7168 * thread.c (print_thread_info_1): Remove unnecessary calls to
7169 uiout->is_mi_like_p.
7171 2017-09-09 Tom Tromey <tom@tromey.com>
7173 * namespace.h (add_using_directive): Update.
7174 * namespace.c (add_using_directive): Change type of excludes to
7176 * dwarf2read.c (read_import_statement): Use std::vector.
7177 (read_namespace): Update.
7178 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7180 2017-09-09 Tom Tromey <tom@tromey.com>
7182 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7184 2017-09-09 Tom Tromey <tom@tromey.com>
7186 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7188 2017-09-09 Tom Tromey <tom@tromey.com>
7190 * stack.c (func_command): Use gdb::def_vector.
7192 2017-09-09 Tom Tromey <tom@tromey.com>
7194 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7195 ui_out_emit_list, ui_out_emit_tuple.
7196 (mi_cmd_var_update): Likewise.
7198 2017-09-09 Tom Tromey <tom@tromey.com>
7200 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7201 ui_out_redirect_pop.
7202 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7203 ui_out_redirect_pop.
7204 * utils.c (do_ui_out_redirect_pop)
7205 (make_cleanup_ui_out_redirect_pop): Remove.
7206 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7207 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7208 * ui-out.h (ui_out_redirect_pop): New class.
7210 2017-09-09 Tom Tromey <tom@tromey.com>
7212 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7213 (list_available_thread_groups, mi_cmd_list_thread_groups)
7214 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7215 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7218 2017-09-09 Tom Tromey <tom@tromey.com>
7220 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7223 2017-09-09 Tom Tromey <tom@tromey.com>
7225 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7226 * stack.c (print_frame): Use ui_out_emit_tuple.
7227 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7228 (info_spu_mailbox_command, info_spu_dma_command)
7229 (info_spu_proxydma_command): Likewise.
7230 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7231 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7232 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7234 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7236 2017-09-09 Tom Tromey <tom@tromey.com>
7238 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7239 (class ui_out_emit_table): Update comment.
7240 * ui-out.c (do_cleanup_table_end)
7241 (make_cleanup_ui_out_table_begin_end): Remove.
7242 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7243 (info_spu_dma_cmdlist): Likewise.
7244 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7245 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7248 2017-09-09 Tom Tromey <tom@tromey.com>
7250 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7251 ui_out_emit_list, gdb::optional.
7253 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7255 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7257 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7259 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7261 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7262 * ada-exp.y: Remove _initialize_ada_exp prototype.
7263 * ada-lang.c: Remove _initialize_ada_language prototype.
7264 * ada-tasks.c: Remove _initialize_tasks prototype.
7265 * addrmap.c: Remove _initialize_addrmap prototype.
7266 * agent.c: Remove _initialize_agent prototype.
7267 * aix-thread.c: Remove _initialize_aix_thread prototype.
7268 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7269 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7270 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7272 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7273 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7274 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7275 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7277 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7279 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7280 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7281 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7282 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7284 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7285 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7286 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7287 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7288 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7289 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7290 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7292 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7294 * annotate.c: Remove _initialize_annotate prototype.
7295 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7296 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7297 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7298 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7299 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7300 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7301 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7302 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7304 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7305 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7306 * auto-load.c: Remove _initialize_auto_load prototype.
7307 * auxv.c: Remove _initialize_auxv prototype.
7308 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7309 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7310 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7311 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7312 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7313 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7315 * break-catch-throw.c: Remove _initialize_break_catch_throw
7317 * breakpoint.c: Remove _initialize_breakpoint prototype.
7318 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7319 * btrace.c: Remove _initialize_btrace prototype.
7320 * charset.c: Remove _initialize_charset prototype.
7321 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7322 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7323 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7324 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7325 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7326 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7327 * coffread.c: Remove _initialize_coffread prototype.
7328 * compile/compile.c: Remove _initialize_compile prototype.
7329 * complaints.c: Remove _initialize_complaints prototype.
7330 * completer.c: Remove _initialize_completer prototype.
7331 * copying.awk: Remove _initialize_copying prototype.
7332 * copying.c: Regenerate.
7333 * core-regset.c: Remove _initialize_core_regset prototype.
7334 * corefile.c: Remove _initialize_core prototype.
7335 * corelow.c: Remove _initialize_corelow prototype.
7336 * cp-abi.c: Remove _initialize_cp_abi prototype.
7337 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7338 * cp-support.c: Remove _initialize_cp_support prototype.
7339 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7340 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7341 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7342 * ctf.c: Remove _initialize_ctf prototype.
7343 * d-lang.c: Remove _initialize_d_language prototype.
7344 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7346 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7347 * dbxread.c: Remove _initialize_dbxread prototype.
7348 * dcache.c: Remove _initialize_dcache prototype.
7349 * demangle.c: Remove _initialize_demangler prototype.
7350 * disasm-selftests.c: Remove _initialize_disasm_selftests
7352 * disasm.c: Remove _initialize_disasm prototype.
7353 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7354 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7355 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7357 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7358 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7359 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7360 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7361 * elfread.c: Remove _initialize_elfread prototype.
7362 * exec.c: Remove _initialize_exec prototype.
7363 * extension.c: Remove _initialize_extension prototype.
7364 * f-lang.c: Remove _initialize_f_language prototype.
7365 * f-valprint.c: Remove _initialize_f_valprint prototype.
7366 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7367 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7368 * filesystem.c: Remove _initialize_filesystem prototype.
7369 * findcmd.c: Remove _initialize_mem_search prototype.
7370 * fork-child.c: Remove _initialize_fork_child prototype.
7371 * frame-base.c: Remove _initialize_frame_base prototype.
7372 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7373 * frame.c: Remove _initialize_frame prototype.
7374 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7375 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7376 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7377 * gcore.c: Remove _initialize_gcore prototype.
7378 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7379 * gdbarch.c: Regenerate.
7380 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7381 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7382 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7383 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7384 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7385 * go-lang.c: Remove _initialize_go_language prototype.
7386 * go32-nat.c: Remove _initialize_go32_nat prototype.
7387 * guile/guile.c: Remove _initialize_guile prototype.
7388 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7389 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7390 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7391 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7392 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7393 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7394 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7395 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7396 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7397 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7399 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7401 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7402 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7403 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7404 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7405 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7406 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7407 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7408 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7409 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7410 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7411 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7412 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7413 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7414 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7415 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7416 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7418 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7420 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7421 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7422 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7423 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7424 * infcall.c: Remove _initialize_infcall prototype.
7425 * infcmd.c: Remove _initialize_infcmd prototype.
7426 * inferior.c: Remove _initialize_inferiors prototype.
7427 * inflow.c: Remove _initialize_inflow prototype.
7428 * infrun.c: Remove _initialize_infrun prototype.
7429 * interps.c: Remove _initialize_interpreter prototype.
7430 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7431 * jit.c: Remove _initialize_jit prototype.
7432 * language.c: Remove _initialize_language prototype.
7433 * linux-fork.c: Remove _initialize_linux_fork prototype.
7434 * linux-nat.c: Remove _initialize_linux_nat prototype.
7435 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7436 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7437 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7438 * m2-lang.c: Remove _initialize_m2_language prototype.
7439 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7440 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7441 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7442 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7443 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7444 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7445 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7446 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7447 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7448 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7449 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7450 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7451 * machoread.c: Remove _initialize_machoread prototype.
7452 * macrocmd.c: Remove _initialize_macrocmd prototype.
7453 * macroscope.c: Remove _initialize_macroscope prototype.
7454 * maint.c: Remove _initialize_maint_cmds prototype.
7455 * mdebugread.c: Remove _initialize_mdebugread prototype.
7456 * memattr.c: Remove _initialize_mem prototype.
7457 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7458 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7459 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7460 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7461 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7462 * microblaze-linux-tdep.c: Remove
7463 _initialize_microblaze_linux_tdep prototype.
7464 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7465 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7466 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7467 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7468 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7469 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7470 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7471 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7472 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7473 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7474 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7476 * mipsread.c: Remove _initialize_mipsread prototype.
7477 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7479 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7480 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7481 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7482 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7483 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7484 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7486 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7487 * nto-procfs.c: Remove _initialize_procfs prototype.
7488 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7489 * objc-lang.c: Remove _initialize_objc_language prototype.
7490 * objfiles.c: Remove _initialize_objfiles prototype.
7491 * observer.c: Remove observer_test_first_notification_function,
7492 observer_test_second_notification_function,
7493 observer_test_third_notification_function, and
7494 _initialize_observer prototypes.
7495 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7496 * osabi.c: Remove _initialize_gdb_osabi prototype.
7497 * osdata.c: Remove _initialize_osdata prototype.
7498 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7499 * parse.c: Remove _initialize_parse prototype.
7500 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7501 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7502 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7503 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7504 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7505 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7506 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7507 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7508 * printcmd.c: Remove _initialize_printcmd prototype.
7509 * probe.c: Remove _initialize_probe prototype.
7510 * proc-api.c: Remove _initialize_proc_api prototype.
7511 * proc-events.c: Remove _initialize_proc_events prototype.
7512 * proc-service.c: Remove _initialize_proc_service prototype.
7513 * procfs.c: Remove _initialize_procfs prototype.
7514 * psymtab.c: Remove _initialize_psymtab prototype.
7515 * python/python.c: Remove _initialize_python prototype.
7516 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7517 * record-btrace.c: Remove _initialize_record_btrace prototype.
7518 * record-full.c: Remove _initialize_record_full prototype.
7519 * record.c: Remove _initialize_record prototype.
7520 * regcache.c: Remove _initialize_regcache prototype.
7521 * reggroups.c: Remove _initialize_reggroup prototype.
7522 * remote-notif.c: Remove _initialize_notif prototype.
7523 * remote-sim.c: Remove _initialize_remote_sim prototype.
7524 * remote.c: Remove _initialize_remote prototype.
7525 * reverse.c: Remove _initialize_reverse prototype.
7526 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7527 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7528 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7530 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7531 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7532 * rust-exp.y: Remove _initialize_rust_exp prototype.
7533 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7534 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7535 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7536 * score-tdep.c: Remove _initialize_score_tdep prototype.
7537 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7539 * ser-go32.c: Remove _initialize_ser_dos prototype.
7540 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7541 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7542 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7543 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7544 * serial.c: Remove _initialize_serial prototype.
7545 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7546 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7547 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7548 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7549 * skip.c: Remove _initialize_step_skip prototype.
7550 * sol-thread.c: Remove _initialize_sol_thread prototype.
7551 * solib-aix.c: Remove _initialize_solib_aix prototype.
7552 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7553 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7554 * solib-frv.c: Remove _initialize_frv_solib prototype.
7555 * solib-spu.c: Remove _initialize_spu_solib prototype.
7556 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7557 * solib-target.c: Remove _initialize_solib_target prototype.
7558 * solib.c: Remove _initialize_solib prototype.
7559 * source.c: Remove _initialize_source prototype.
7560 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7561 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7563 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7564 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7565 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7566 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7568 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7569 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7570 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7571 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7573 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7575 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7577 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7579 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7580 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7582 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7584 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7586 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7588 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7590 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7591 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7592 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7593 * stabsread.c: Remove _initialize_stabsread prototype.
7594 * stack.c: Remove _initialize_stack prototype.
7595 * stap-probe.c: Remove _initialize_stap_probe prototype.
7596 * std-regs.c: Remove _initialize_frame_reg prototype.
7597 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7598 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7599 * symfile.c: Remove _initialize_symfile prototype.
7600 * symmisc.c: Remove _initialize_symmisc prototype.
7601 * symtab.c: Remove _initialize_symtab prototype.
7602 * target-dcache.c: Remove _initialize_target_dcache prototype.
7603 * target-descriptions.c: Remove _initialize_target_descriptions
7605 * thread.c: Remove _initialize_thread prototype.
7606 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7608 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7609 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7610 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7612 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
7613 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
7614 * tracefile.c: Remove _initialize_tracefile prototype.
7615 * tracepoint.c: Remove _initialize_tracepoint prototype.
7616 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
7617 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
7618 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
7619 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
7620 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
7621 * tui/tui-win.c: Remove _initialize_tui_win prototype.
7622 * tui/tui.c: Remove _initialize_tui prototype.
7623 * typeprint.c: Remove _initialize_typeprint prototype.
7624 * user-regs.c: Remove _initialize_user_regs prototype.
7625 * utils.c: Remove _initialize_utils prototype.
7626 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
7627 * valarith.c: Remove _initialize_valarith prototype.
7628 * valops.c: Remove _initialize_valops prototype.
7629 * valprint.c: Remove _initialize_valprint prototype.
7630 * value.c: Remove _initialize_values prototype.
7631 * varobj.c: Remove _initialize_varobj prototype.
7632 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
7633 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
7634 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
7635 * windows-nat.c: Remove _initialize_windows_nat,
7636 _initialize_check_for_gdb_ini, and _initialize_loadable
7638 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
7639 * xcoffread.c: Remove _initialize_xcoffread prototype.
7640 * xml-support.c: Remove _initialize_xml_support prototype.
7641 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
7642 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
7644 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
7646 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
7648 2017-09-08 Keith Seitz <keiths@redhat.com>
7650 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
7653 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
7655 * f-valprint.c (f_val_print): Remove check for one byte
7656 sized integers. Remove printing of character type.
7658 2017-09-08 Frank Penczek <frank.penczek@intel.com>
7659 Christoph Weinmann <christoph.t.weinmann@intel.com>
7660 Bernhard Heckel <bernhard.heckel@intel.com>
7662 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
7663 to maintain proper indentation when printing pointers/refs.
7665 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7669 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7671 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
7673 2017-09-05 Tom Tromey <tom@tromey.com>
7675 * parse.c (funcall_chain): Now a std::vector.
7676 (start_arglist, end_arglist): Simplify.
7677 (free_funcalls): Remove.
7678 (parse_exp_in_context_1): Remove cleanup.
7680 2017-09-05 Tom Tromey <tom@tromey.com>
7682 * go-exp.y (go_parse): Don't create a cleanup.
7684 2017-09-05 Tom Tromey <tom@tromey.com>
7686 * d-exp.y (PrimaryExpression): Use std::string.
7687 (d_parse): Don't create a cleanup.
7689 2017-09-05 Tom Tromey <tom@tromey.com>
7691 * utils.c (do_clear_parser_state): Remove.
7692 (make_cleanup_clear_parser_state): Remove.
7693 * p-exp.y (pascal_parse): Use scoped_restore.
7694 * m2-exp.y (m2_parse): Use scoped_restore.
7695 * f-exp.y (f_parse): Use scoped_restore.
7696 * d-exp.y (d_parse): Use scoped_restore.
7697 * c-exp.y (c_parse): Use scoped_restore.
7698 * ada-exp.y (ada_parse): Use scoped_restore.
7699 * utils.h (make_cleanup_clear_parser_state): Remove.
7701 2017-09-06 Keith Seitz <keiths@redhat.com>
7703 * dwarf2read.c (dw2_linkage_name_attr): New function.
7704 (dw2_linkage_name): New function.
7705 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
7706 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
7707 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
7709 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7711 * config/djgpp/djconfig.sh: Correct shell portability issue.
7713 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7715 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
7717 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7719 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
7720 * NEWS: Mention new FreeBSD/mips native configuration.
7721 * configure.host: Add aarch64*-*-freebsd*.
7722 * configure.nat: Likewise.
7723 * aarch64-fbsd-nat.c: New file.
7725 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7727 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7728 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7729 * NEWS: Mention new FreeBSD/aarch64 target.
7730 * configure.tgt: Add aarch64*-*-freebsd*.
7731 * aarch64-fbsd-tdep.c: New file.
7732 * aarch64-fbsd-tdep.h: New file.
7734 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7736 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7738 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7740 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7743 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7745 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7748 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7750 * infrun.c (follow_exec): Call add_thread after
7751 target_find_description.
7753 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7755 * infrun.c (handle_inferior_event_1): When exec'ing, read
7756 stop_pc after follow_exec.
7758 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7760 * remote.c (process_g_packet): Update error message.
7762 2017-09-05 Yao Qi <yao.qi@linaro.org>
7764 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
7767 2017-09-05 Pedro Alves <palves@redhat.com>
7769 * eval.c (eval_call, evaluate_funcall): New functions, factored
7771 (evaluate_subexp_standard): ... this.
7773 2017-09-05 Yao Qi <yao.qi@linaro.org>
7775 * amd64-tdep.c (amd64_target_description): Create target
7777 (_initialize_amd64_tdep): Don't call functions
7778 initialize_tdesc_amd64_*. Add self tests.
7779 * arch/amd64.c (amd64_create_target_description): Add parameter
7780 is_linux. Call set_tdesc_osabi if is_linux is true.
7781 * arch/amd64.h (amd64_create_target_description): Update the
7783 * arch/i386.c (i386_create_target_description): Add parameter
7784 is_linux. Call set_tdesc_osabi if is_linux is true.
7785 * arch/i386.h (i386_create_target_description): Update
7787 * configure.tgt: Add i386.o to gdb_target_obs.
7788 * features/Makefile (XMLTOC): Remove i386/*.xml.
7789 * features/i386/amd64-avx-avx512.c: Remove.
7790 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
7791 * features/i386/amd64-avx-mpx.c: Remove.
7792 * features/i386/amd64-avx.c: Remove.
7793 * features/i386/amd64-mpx.c: Remove.
7794 * features/i386/amd64.c: Remove.
7795 * features/i386/i386-avx-avx512.c: Remove.
7796 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
7797 * features/i386/i386-avx-mpx.c: Remove.
7798 * features/i386/i386-avx.c: Remove.
7799 * features/i386/i386-mmx.c: Remove.
7800 * features/i386/i386-mpx.c: Remove.
7801 * features/i386/i386.c: Remove.
7802 * i386-tdep.c: Don't include features/i386/i386*.c., include
7803 target-descriptions.h and arch/i386.h.
7804 (i386_target_description): Create target descriptions.
7805 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7806 functions. Do self tests.
7808 2017-09-05 Yao Qi <yao.qi@linaro.org>
7810 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7811 * features/i386/amd64-avx-avx512-linux.c: Removed.
7812 * features/i386/amd64-avx-linux.c: Removed.
7813 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
7814 * features/i386/amd64-avx-mpx-linux.c: Removed.
7815 * features/i386/amd64-linux.c: Removed.
7816 * features/i386/amd64-mpx-linux.c: Removed.
7817 * features/i386/x32-avx-avx512-linux.c: Removed.
7818 * features/i386/x32-avx-linux.c: Removed.
7819 * features/i386/x32-linux.c: Removed.
7821 2017-09-05 Yao Qi <yao.qi@linaro.org>
7823 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
7825 (amd64_linux_read_description): Call
7826 amd64_create_target_description.
7827 * arch/amd64.c: New file.
7828 * arch/amd64.h: New file.
7829 * configure.tgt (x86_64-*-linux*): Append amd64.o.
7830 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
7832 2017-09-05 Yao Qi <yao.qi@linaro.org>
7834 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
7835 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
7836 (amd64_linux_read_description): Create target descriptions.
7837 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
7838 functions. Add unit tests.
7839 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
7841 * features/i386/64bit-avx.c: Generated.
7842 * features/i386/64bit-avx512.c: Generated.
7843 * features/i386/64bit-core.c: Generated.
7844 * features/i386/64bit-linux.c: Generated.
7845 * features/i386/64bit-mpx.c: Generated.
7846 * features/i386/64bit-pkeys.c: Generated.
7847 * features/i386/64bit-segments.c: Generated.
7848 * features/i386/64bit-sse.c: Generated.
7849 * features/i386/x32-core.c: Generated.
7850 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
7851 c files for amd64-linux and x32-linux.
7853 2017-09-05 Yao Qi <yao.qi@linaro.org>
7855 * amd64-linux-tdep.c (amd64_linux_read_description): New
7857 (amd64_linux_core_read_description): Call
7858 amd64_linux_read_description.
7859 (amd64_linux_init_abi): Likewise.
7860 (amd64_x32_linux_init_abi): Likewise.
7861 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
7862 * x86-linux-nat.c (x86_linux_read_description): Call
7863 amd64_linux_read_description.
7865 2017-09-05 Yao Qi <yao.qi@linaro.org>
7867 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
7870 2017-09-05 Yao Qi <yao.qi@linaro.org>
7872 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
7873 * features/i386/i386-avx-avx512-linux.c: Remove.
7874 * features/i386/i386-avx-linux.c: Remove.
7875 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
7876 * features/i386/i386-avx-mpx-linux.c: Remove.
7877 * features/i386/i386-linux.c: Remove.
7878 * features/i386/i386-mmx-linux.c: Remove.
7879 * features/i386/i386-mpx-linux.c: Remove.
7881 2017-09-05 Yao Qi <yao.qi@linaro.org>
7883 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
7884 (SFILES): Add arch/i386.c.
7885 (HFILES_NO_SRCDIR): Add arch/i386.h.
7886 * arch/i386.c: New file.
7887 * arch/i386.h: New file.
7888 * arch/tdesc.h (allocate_target_description): Declare.
7889 (set_tdesc_architecture): Declare.
7890 (set_tdesc_osabi): Declare.
7891 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
7892 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
7893 include arch/i386.h.
7894 (i386_linux_read_description): Remove code and call
7895 i386_create_target_description.
7896 (set_tdesc_architecture): New function.
7897 (set_tdesc_osabi): New function.
7898 * target-descriptions.h (allocate_target_description): Remove.
7900 2017-09-05 Yao Qi <yao.qi@linaro.org>
7902 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
7903 * target-descriptions.c (tdesc_create_feature): Likewise, and
7905 * features/i386/32bit-avx.c: Re-generated.
7906 * features/i386/32bit-avx512.c: Re-generated.
7907 * features/i386/32bit-core.c: Re-generated.
7908 * features/i386/32bit-linux.c: Re-generated.
7909 * features/i386/32bit-mpx.c: Re-generated.
7910 * features/i386/32bit-pkeys.c: Re-generated.
7911 * features/i386/32bit-sse.c: Re-generated.
7913 2017-09-05 Yao Qi <yao.qi@linaro.org>
7915 * regformats/regdef.h (struct reg): Override operator == and !=.
7917 2017-09-05 Yao Qi <yao.qi@linaro.org>
7919 * arch/tdesc.h: New file.
7920 * regformats/regdat.sh: Generate code using tdesc_create_reg.
7921 * target-descriptions.c: Update comments.
7922 * target-descriptions.h: Include "arch/tdesc.h". Remove the
7924 * features/i386/32bit-avx.c: Re-generated.
7925 * features/i386/32bit-avx512.c: Re-generated.
7926 * features/i386/32bit-core.c: Re-generated.
7927 * features/i386/32bit-linux.c: Re-generated.
7928 * features/i386/32bit-mpx.c: Re-generated.
7929 * features/i386/32bit-pkeys.c: Re-generated.
7930 * features/i386/32bit-sse.c: Re-generated.
7932 2017-09-05 Yao Qi <yao.qi@linaro.org>
7934 * regformats/regdat.sh: Update generated code.
7936 2017-09-05 Yao Qi <yao.qi@linaro.org>
7938 * regformats/regdat.sh: Adjust code order.
7940 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7942 * expprint.c (dump_subexp_body_standard): Use constant format
7943 string in fprintf_filtered call.
7945 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7947 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
7949 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
7951 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7953 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
7955 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7957 * bsd-kvm.o: Define _KMEMUSER.
7958 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
7959 * configure: Regenerate.
7961 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7963 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
7964 * i386-fbsd-nat.c: Likewise.
7966 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7968 * unittests/array-view-selftests.c: Add include of <array>.
7970 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7972 * spu-tdep.c (flush_ea_cache): Add missing argument to
7973 call_function_by_hand.
7975 2017-09-04 Pedro Alves <palves@redhat.com>
7977 * NEWS (Safer support for debugging with no debug info): New.
7979 2017-09-04 Pedro Alves <palves@redhat.com>
7981 * c-exp.y (function_method, function_method_void): Add current
7982 instance flags to TYPE_INSTANCE.
7983 * dwarf2read.c (check_modifier): New.
7984 (compute_delayed_physnames): Assert that only C++ adds delayed
7985 physnames. Mark fn_fields as const/volatile depending on
7987 * eval.c (make_params): New type_instance_flags parameter. Use
7988 it as the new type's instance flags.
7989 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
7990 flags element and pass it to make_params.
7991 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
7992 instance flags element.
7993 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
7994 * gdbtypes.h: Include "enum-flags.h".
7995 (type_instance_flags): New enum-flags type.
7996 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
7997 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
7998 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
7999 (follow_type_instance_flags): New function.
8000 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8001 * parser-defs.h (follow_type_instance_flags): Declare.
8002 * valops.c (value_struct_elt_for_reference): const/volatile must
8005 2017-09-04 Pedro Alves <palves@redhat.com>
8007 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8008 function/method scopes; lookup the nested name as a function local
8011 2017-09-04 Pedro Alves <palves@redhat.com>
8013 (%type <voidval>): Add function_method.
8014 * c-exp.y (exp): New production for calls with no arguments.
8015 (function_method, function_method_void_or_typelist): New
8017 (exp): New production for "method()::static_var".
8018 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8019 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8020 Handle OP_FUNC_STATIC_VAR.
8021 * parse.c (operator_length_standard):
8022 Handle OP_FUNC_STATIC_VAR.
8024 2017-09-04 Pedro Alves <palves@redhat.com>
8026 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8028 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8030 * parse.c (operator_length_standard, operator_check_standard):
8032 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8034 2017-09-04 Pedro Alves <palves@redhat.com>
8036 * ax-gdb.c: Include "typeprint.h".
8037 (gen_expr_for_cast): New function.
8038 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8039 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8041 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8042 nodebug_data_symbol.
8043 * eval.c: Include "typeprint.h".
8044 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8045 Error out if symbol has unknown type.
8046 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8047 evaluate_subexp_for_cast.
8048 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8050 (evaluate_subexp_for_cast): New function.
8051 * gdbtypes.c (init_nodebug_var_type): New function.
8052 (objfile_type): Use it to initialize types of variables with no
8054 * typeprint.c (error_unknown_type): New.
8055 * typeprint.h (error_unknown_type): New declaration.
8056 * compile/compile-c-types.c (convert_type_basic): Handle
8057 TYPE_CODE_ERROR; warn and fallback to int for variables with
8060 2017-09-04 Pedro Alves <palves@redhat.com>
8062 * eval.c (evaluate_var_value): New function, factored out from ...
8063 (evaluate_subexp_standard): ... here.
8065 2017-09-04 Pedro Alves <palves@redhat.com>
8067 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8068 Remove useless assignments to 'op'.
8070 2017-09-04 Pedro Alves <palves@redhat.com>
8072 * eval.c (eval_skip_value): New function.
8073 (evaluate_subexp_standard): Use it.
8075 2017-09-04 Pedro Alves <palves@redhat.com>
8077 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8078 function name from symbol/minsym and pass it to
8079 error_call_unknown_return_type.
8081 2017-09-04 Pedro Alves <palves@redhat.com>
8083 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8084 * ax-gdb.c (gen_msym_var_ref): New function.
8085 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8086 * eval.c (evaluate_var_msym_value): New function.
8087 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8088 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8089 to call_function_by_hand.
8090 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8091 Handle OP_VAR_MSYM_VALUE.
8092 (union exp_element) <msymbol>: New field.
8093 * minsyms.h (struct type): Forward declare.
8094 (find_minsym_type_and_address): Declare.
8095 * parse.c (write_exp_elt_msym): New function.
8096 (write_exp_msymbol): Delete, refactored as ...
8097 (find_minsym_type_and_address): ... this new function.
8098 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8099 (operator_length_standard, operator_check_standard): Handle
8101 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8103 2017-09-04 Pedro Alves <palves@redhat.com>
8105 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8106 TYPE_GNU_IFUNC specially here. Throw error if return type is
8108 * ada-typeprint.c (print_func_type): Handle functions with unknown
8110 * c-typeprint.c (c_type_print_base): Handle functions and methods
8111 with unknown return type.
8112 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8113 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8114 * compile/compile-c-types.c: Include "objfiles.h".
8115 (convert_func): For functions with unknown return type, warn and
8117 * compile/compile-object-run.c (compile_object_run): Adjust call
8118 to call_function_by_hand_dummy.
8119 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8120 call_function_by_hand.
8121 * eval.c (evaluate_subexp_standard): Adjust calls to
8122 call_function_by_hand. Handle functions and methods with unknown
8123 return type. Pass expect_type to call_function_by_hand.
8124 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8126 * gcore.c (call_target_sbrk): Adjust call to
8127 call_function_by_hand.
8128 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8129 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8130 an integer address type instead of nodebug.
8131 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8132 call_function_by_hand.
8133 * infcall.c (error_call_unknown_return_type): New function.
8134 (call_function_by_hand): New "default_return_type" parameter.
8136 (call_function_by_hand_dummy): New "default_return_type"
8137 parameter. Use it instead of defaulting to int. If there's no
8138 default and the return type is unknown, throw an error. If
8139 there's a default return type, and the called function has no
8140 debug info, then assume the function is prototyped.
8141 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8142 New "default_return_type" parameter.
8143 (error_call_unknown_return_type): New declaration.
8144 * linux-fork.c (call_lseek): Cast return type of lseek.
8145 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8146 call_function_by_hand.
8147 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8148 calls to call_function_by_hand.
8149 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8151 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8152 (value_nsstring, print_object_command): Adjust calls to
8153 call_function_by_hand.
8154 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8155 functions with unknown return type.
8156 (pascal_type_print_func_varspec_suffix): New function.
8157 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8158 TYPE_CODE_METHOD>: Use it.
8159 * python/py-value.c (valpy_call): Adjust call to
8160 call_function_by_hand.
8161 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8162 call_function_by_hand.
8163 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8164 call_function_by_hand.
8165 * valops.c (value_allocate_space_in_inferior): Adjust call to
8166 call_function_by_hand.
8167 * typeprint.c (type_print_unknown_return_type): New function.
8168 * typeprint.h (type_print_unknown_return_type): New declaration.
8170 2017-09-04 Pedro Alves <palves@redhat.com>
8172 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8173 types with more than one parameter as prototyped.
8175 2017-09-04 Pedro Alves <palves@redhat.com>
8177 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8178 (disassemble_command): Use gdb_disassembly_flags instead of bare
8180 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8181 (dump_insns, do_mixed_source_and_assembly_deprecated)
8182 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8183 Use gdb_disassembly_flags instead of bare int.
8184 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8185 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8186 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8187 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8188 (enum gdb_disassembly_flag): ... values of this new enumeration.
8189 (gdb_disassembly_flags): Define.
8191 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8192 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8193 gdb_disassembly_flags instead of bare int.
8194 * record-btrace.c (btrace_insn_history)
8195 (record_btrace_insn_history, record_btrace_insn_history_range)
8196 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8197 instead of bare int.
8198 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8199 Use gdb_disassembly_flags instead of bare int.
8200 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8202 * target-delegates.c: Regenerate.
8203 * target.c (target_insn_history, target_insn_history_from)
8204 (target_insn_history_range): Use gdb_disassembly_flags instead of
8206 * target.h: Include "disasm.h".
8207 (struct target_ops) <to_insn_history, to_insn_history_from,
8208 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8210 (target_insn_history, target_insn_history_from)
8211 (target_insn_history_range): Use gdb_disassembly_flags instead of
8214 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8216 * cli/cli-script.c (build_command_line): For if/while commands,
8217 check whether args is empty.
8219 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8221 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8222 (enum command_control_type): Likewise.
8223 (struct command_line): Likewise.
8224 (free_command_lines): Likewise.
8225 (struct command_lines_deleter): Likewise.
8226 (command_line_up): Likewise.
8227 (read_command_lines): Likewise.
8228 (read_command_lines_1): Likewise.
8229 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8230 (enum command_control_type): Likewise.
8231 (struct command_line): Likewise.
8232 (free_command_lines): Likewise.
8233 (struct command_lines_deleter): Likewise.
8234 (command_line_up): Likewise.
8235 (read_command_lines): Likewise.
8236 (read_command_lines_1): Likewise.
8237 * breakpoint.h: Include cli/cli-script.h.
8238 * extension-priv.h: Likewise.
8239 * gdbcmd.h: Likewise.
8241 2017-09-04 Pedro Alves <palves@redhat.com>
8243 * ada-lang.c (is_known_support_routine): Move sal declaration to
8244 where it is initialized.
8245 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8246 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8247 (clear_command, update_static_tracepoint): Remove init_sal
8248 references. Move declarations closer to initializations.
8249 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8251 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8252 references. Move sal declarations closer to initializations.
8253 * frame.c (find_frame_sal): Return a symtab_and_line via function
8254 return instead of output parameter. Remove init_sal references.
8255 * frame.h (find_frame_sal): Return a symtab_and_line via function
8256 return instead of output parameter.
8257 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8258 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8260 (gdbscm_find_pc_line): Remove init_sal reference.
8261 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8262 references. Move declarations closer to initializations.
8263 * infcmd.c (set_step_frame): Update. Move declarations closer to
8265 (finish_backward): Remove init_sal references. Move declarations
8266 closer to initializations.
8267 * infrun.c (process_event_stop_test, handle_step_into_function)
8268 (insert_hp_step_resume_breakpoint_at_frame)
8269 (insert_step_resume_breakpoint_at_caller): Likewise.
8270 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8271 (symbol_to_sal): Likewise.
8272 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8273 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8274 to its initialization.
8275 * reverse.c (save_bookmark_command): Use new/delete. Remove
8276 init_sal references. Move declarations closer to initializations.
8277 * source.c (get_current_source_symtab_and_line): Remove brace
8279 (set_current_source_symtab_and_line): Now takes the sal by const
8280 reference. Remove brace initialization.
8281 (line_info): Remove init_sal reference.
8282 * source.h (set_current_source_symtab_and_line): Now takes a
8283 symtab_and_line via const reference.
8284 * stack.c (set_current_sal_from_frame): Adjust.
8285 (print_frame_info): Adjust.
8286 (get_last_displayed_sal): Return the sal via function return
8287 instead of via output parameter. Simplify.
8288 (frame_info): Adjust.
8289 * stack.h (get_last_displayed_sal): Return the sal via function
8290 return instead of via output parameter.
8291 * symtab.c (init_sal): Delete.
8292 (find_pc_sect_line): Remove init_sal references. Move
8293 declarations closer to initializations.
8294 (find_function_start_sal): Remove init_sal references. Move
8295 declarations closer to initializations.
8296 * symtab.h (struct symtab_and_line): In-class initialize all
8298 * tracepoint.c (set_traceframe_context)
8299 (print_one_static_tracepoint_marker): Remove init_sal references.
8300 Move declarations closer to initializations.
8301 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8302 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8303 declarations closer to initializations.
8304 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8305 init_sal references. Adjust.
8307 2017-09-04 Pedro Alves <palves@redhat.com>
8309 * ax-gdb.c (agent_command_1): Use range-for.
8310 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8311 * breakpoint.c: Include "common/array-view.h".
8312 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8313 parameter from struct symtabs_and_lines to
8314 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8315 (breakpoint_sals_to_pc): Change sals parameter from struct
8316 symtabs_and_lines to std::vector reference.
8317 (check_fast_tracepoint_sals): Change sals parameter from struct
8318 symtabs_and_lines to std::array_view. Use range-for.
8319 (decode_static_tracepoint_spec): Return a std::vector instead of
8320 symtabs_and_lines. Update.
8321 (create_breakpoint): Update.
8322 (break_range_command, until_break_command, clear_command): Update.
8323 (base_breakpoint_decode_location, bkpt_decode_location)
8324 (bkpt_probe_create_sals_from_location)
8325 (bkpt_probe_decode_location, tracepoint_decode_location)
8326 (tracepoint_probe_decode_location)
8327 (strace_marker_create_sals_from_location): Return a std::vector
8328 instead of symtabs_and_lines.
8329 (strace_marker_create_breakpoints_sal): Update.
8330 (strace_marker_decode_location): Return a std::vector instead of
8331 symtabs_and_lines. Update.
8332 (update_breakpoint_locations): Change struct symtabs_and_lines
8333 parameters to gdb::array_view. Adjust.
8334 (location_to_sals): Return a std::vector instead of
8335 symtabs_and_lines. Update.
8336 (breakpoint_re_set_default): Use std::vector instead of struct
8338 (decode_location_default): Return a std::vector instead of
8339 symtabs_and_lines. Update.
8340 * breakpoint.h: Include "common/array-view.h".
8341 (struct breakpoint_ops) <decode_location>: Now returns a
8342 std::vector instead of returning a symtabs_and_lines via output
8344 (update_breakpoint_locations): Change sals parameters to use
8346 * cli/cli-cmds.c (edit_command, list_command): Update to use
8347 std::vector and gdb::array_view.
8348 (ambiguous_line_spec): Adjust to use gdb::array_view and
8350 (compare_symtabs): Rename to ...
8351 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8352 const reference and adjust.
8353 (filter_sals): Rewrite using std::vector and standard algorithms.
8354 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8355 (jump_command): Update to use std::vector.
8356 * linespec.c (struct linespec_state) <canonical_names>: Update
8358 (add_sal_to_sals_basic): Delete.
8359 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8360 (decode_line_2, create_sals_line_offset)
8361 (convert_address_location_to_sals, convert_linespec_to_sals)
8362 (convert_explicit_location_to_sals, parse_linespec)
8363 (event_location_to_sals, decode_line_full, decode_line_1)
8364 (decode_line_with_current_source)
8365 (decode_line_with_last_displayed, decode_objc)
8366 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8367 (linespec_result::~linespec_result): Adjust to use std::vector
8368 instead of symtabs_and_lines.
8369 * linespec.h (linespec_sals::sals): Now a std::vector.
8370 (struct linespec_result): Use std::vector, bool, and in-class
8372 (decode_line_1, decode_line_with_current_source)
8373 (decode_line_with_last_displayed): Return std::vector.
8374 * macrocmd.c (info_macros_command): Use std::vector.
8375 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8376 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8378 * probe.h (parse_probes): Return a std::vector.
8379 * python/python.c (gdbpy_decode_line): Use std::vector and
8381 * source.c (select_source_symtab, line_info): Use std::vector.
8382 * stack.c (func_command): Use std::vector.
8383 * symtab.h (struct symtabs_and_lines): Delete.
8384 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8386 2017-09-04 Pedro Alves <palves@redhat.com>
8388 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8389 unittests/array-view-selftests.c.
8390 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8391 * common/array-view.h: New file.
8392 * unittests/array-view-selftests.c: New file.
8394 2017-09-04 Pedro Alves <palves@redhat.com>
8396 * cli/cli-cmds.c (edit_command): Pass message to
8397 ambiguous_line_spec.
8398 (list_command): Pass message to ambiguous_line_spec. Say
8399 "first"/"last" instead of "start" and "end" to be consistent with
8401 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8402 them to print formatted message.
8404 2017-09-04 Pedro Alves <palves@redhat.com>
8406 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8407 ftrace_update_insns by reference instead of pointer.
8409 2017-09-04 Yao Qi <yao.qi@linaro.org>
8411 * i386-go32-tdep.c: Include x86-xstate.h.
8412 (i386_go32_init_abi): Call i386_target_description.
8413 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8414 if xcr0 is X86_XSTATE_X87_MASK.
8415 * i386-tdep.h (tdesc_i386): Remove the declaration.
8416 (tdesc_i386_mmx): Likewise.
8418 2017-09-04 Yao Qi <yao.qi@linaro.org>
8420 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8421 X86_XSTATE_SSE_MASK instead of 0.
8423 2017-09-04 Yao Qi <yao.qi@linaro.org>
8425 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8426 i386_target_description.
8427 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8428 i386_target_description.
8429 * i386-tdep.c (i386_gdbarch_init): Likewise.
8431 2017-09-04 Yao Qi <yao.qi@linaro.org>
8433 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8434 (x86_darwin_init_abi_64): Call amd64_target_description.
8435 * amd64-dicos-tdep.c: Likewise.
8436 * amd64-fbsd-nat.c: Likewise.
8437 * amd64-fbsd-tdep.c: Likewise.
8438 * amd64-nbsd-tdep.c: Likewise.
8439 * amd64-obsd-tdep.c: Likewise.
8440 * amd64-sol2-tdep.c: Likewise.
8441 * amd64-windows-tdep.c: Likewise.
8442 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8444 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8446 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8447 (btrace_function) <insn>: Change type to use std::vector.
8448 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8449 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8450 ftrace_update_insns, ftrace_compute_global_level_offset,
8451 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8452 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8453 change to std::vector.
8454 (ftrace_update_insns): Adjust to change to std::vector, change
8455 type of INSN parameter.
8456 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8457 * record-btrace.c (btrace_call_history_insn_range,
8458 btrace_compute_src_line_range,
8459 record_btrace_frame_prev_register): Adjust to change to
8461 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8462 to change to std::vector.
8464 2017-09-03 Tom Tromey <tom@tromey.com>
8466 * corefile.c (reopen_exec_file): Use std::string.
8468 2017-09-03 Tom Tromey <tom@tromey.com>
8470 * compile/compile.c (compile_register_name_mangled): Return
8472 * compile/compile-loc2c.c (pushf_register_address): Update.
8473 (pushf_register): Update.
8474 * compile/compile-c-types.c (convert_array): Update.
8475 * compile/compile-c-symbols.c (generate_vla_size): Update.
8476 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8477 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8478 (convert_one_symbol): Update.
8479 (generate_c_for_for_one_variable): Update.
8480 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8482 (generate_register_struct): Update.
8483 * compile/compile-internal.h (c_get_range_decl_name): Return a
8485 (compile_register_name_mangled): Return std::string.
8487 2017-09-03 Tom Tromey <tom@tromey.com>
8489 * utils.c (perror_string): Return a std::string.
8490 (throw_perror_with_name, perror_warning_with_name): Update.
8492 2017-09-03 Tom Tromey <tom@tromey.com>
8494 * demangle.c (demangle_command): Use std::string,
8497 2017-09-03 Tom Tromey <tom@tromey.com>
8499 * cli/cli-setshow.c (do_set_command): Use std::string.
8501 2017-09-03 Tom Tromey <tom@tromey.com>
8503 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8505 2017-09-03 Tom Tromey <tom@tromey.com>
8507 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8509 2017-09-03 Tom Tromey <tom@tromey.com>
8511 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8512 gdb::unique_xmalloc_ptr.
8514 2017-09-03 Tom Tromey <tom@tromey.com>
8516 * thread.c (print_thread_info_1): Use string_printf.
8517 (thread_apply_command, thread_apply_all_command): Use
8520 2017-09-03 Tom Tromey <tom@tromey.com>
8522 * valprint.c (val_print_string): Update.
8523 * gdbcore.h (memory_error_message): Return std::string.
8524 * corefile.c (memory_error_message): Return std::string.
8525 (memory_error): Update.
8526 * breakpoint.c (insert_bp_location): Update.
8528 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8530 * target/waitstatus.h (target_waitstatus_to_string): Change
8531 return type to std::string.
8532 * target/waitstatus.c (target_waitstatus_to_string): Return
8534 * target.h (target_waitstatus_to_string): Remove declaration.
8535 * infrun.c (resume, clear_proceed_status_thread,
8536 print_target_wait_results, do_target_wait, save_waitstatus,
8537 stop_all_threads): Adjust.
8538 * record-btrace.c (record_btrace_wait): Adjust.
8540 (target_debug_print_struct_target_waitstatus_p): Adjust.
8542 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8545 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8548 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8550 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8551 for setting/unsetting environment variables on the remote target.
8552 (New remote packets): Add entries for QEnvironmentHexEncoded,
8553 QEnvironmentUnset and QEnvironmentReset.
8554 * common/environ.c (gdb_environ::operator=): Extend method to
8555 handle m_user_set_env_list and m_user_unset_env_list.
8556 (gdb_environ::clear): Likewise.
8557 (match_var_in_string): Change type of first parameter from 'char
8558 *' to 'const char *'.
8559 (gdb_environ::set): Extend method to handle
8560 m_user_set_env_list and m_user_unset_env_list.
8561 (gdb_environ::unset): Likewise.
8562 (gdb_environ::clear_user_set_env): New method.
8563 (gdb_environ::user_set_envp): Likewise.
8564 (gdb_environ::user_unset_envp): Likewise.
8565 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8566 m_user_unset_env_list on move constructor/assignment.
8567 (unset): Add new default parameter 'update_unset_list = true'.
8568 (clear_user_set_env): New method.
8569 (user_set_envp): Likewise.
8570 (user_unset_envp): Likewise.
8571 (m_user_set_env_list): New std::set.
8572 (m_user_unset_env_list): Likewise.
8573 * common/rsp-low.c (hex2str): New function.
8574 (bin2hex): New overload for bin2hex function.
8575 * common/rsp-low.c (hex2str): New prototype.
8576 (str2hex): New overload prototype.
8577 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8578 QEnvironmentUnset and QEnvironmentReset.
8579 (remote_protocol_features): Add QEnvironmentHexEncoded,
8580 QEnvironmentUnset and QEnvironmentReset packets.
8581 (send_environment_packet): New function.
8582 (extended_remote_environment_support): Likewise.
8583 (extended_remote_create_inferior): Call
8584 extended_remote_environment_support.
8585 (_initialize_remote): Add QEnvironmentHexEncoded,
8586 QEnvironmentUnset and QEnvironmentReset packet configs.
8587 * unittests/environ-selftests.c (gdb_selftest_env_var):
8589 (test_vector_initialization): New function.
8590 (test_init_from_host_environ): Likewise.
8591 (test_reinit_from_host_environ): Likewise.
8592 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8594 (test_unset_set_empty_vector): Likewise.
8595 (test_vector_clear): Likewise.
8596 (test_std_move): Likewise.
8597 (test_move_constructor):
8598 (test_self_move): Likewise.
8599 (test_set_unset_reset): Likewise.
8600 (run_tests): Rewrite in terms of the functions above.
8602 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
8604 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8605 (adi_available): Use a temp variable of type CORE_ADDR as argument
8606 3 when calling target_auxv_search.
8607 (adi_normalize_address): Use masks and xor operators to calculate
8609 (adi_read_versions, adi_write_versions, adi_print_versions)
8610 (do_examine, do_assign): Use paddress.
8612 2017-08-29 John Baldwin <jhb@FreeBSD.org>
8614 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
8615 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
8616 out of loop and add supply of FIR.
8617 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
8620 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
8623 * cli/cli-script.c (define_command): Don't convert command name
8626 2017-08-25 Joel Brobecker <brobecker@adacore.com>
8628 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
8629 Update all callers accordingly. Remove all code blocks handling
8630 the case where DISPP is not NULL.
8632 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8635 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
8636 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8637 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
8639 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8641 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
8642 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
8643 (read_comp_units_from_section): New parameter abbrev_section, use
8644 read_and_check_comp_unit_head, allocate signatured_type if needed.
8645 (create_all_comp_units): Update read_comp_units_from_section caller.
8647 2017-08-23 Pedro Alves <palves@redhat.com>
8650 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
8651 to null_ptid and switch to thread without reading the registers
8652 after adding the inferior.
8654 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8656 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
8658 * compile/compile.c (compile_gcc, show_compile_gcc): New.
8659 (compile_to_object): Implement compile_gcc.
8660 (_initialize_compile): Install "set compile-gcc". Initialize
8663 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8665 * compile/compile.c (compile_to_object): Conditionally call
8666 set_verbose. Conditionally call compile or compile_v0.
8668 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
8670 * sparc64-tdep.h: (adi_normalize_address): New export.
8671 * sparc-nat.h: (open_adi_tag_fd): New export.
8672 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
8673 * sparc64-linux-tdep.c:
8674 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
8675 (sparc64_linux_handle_segmentation_fault): New function.
8676 (sparc64_linux_init_abi): Register
8677 sparc64_linux_handle_segmentation_fault
8678 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
8679 (sparc64_addr_bits_remove): New function.
8680 (sparc64_init_abi): Register sparc64_addr_bits_remove.
8681 (MAX_PROC_NAME_SIZE): New macro.
8682 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
8683 (sparc64adilist): New variable.
8684 (adi_proc_list): New variable.
8685 (find_adi_info): New function.
8686 (add_adi_info): New function.
8687 (get_adi_info_proc): New function.
8688 (get_adi_info): New function.
8689 (info_adi_command): New function.
8690 (read_maps_entry): New function.
8691 (adi_available): New function.
8692 (adi_normalize_address): New function.
8693 (adi_align_address): New function.
8694 (adi_convert_byte_count): New function.
8695 (adi_tag_fd): New function.
8696 (adi_is_addr_mapped): New function.
8697 (adi_read_versions): New function.
8698 (adi_write_versions): New function.
8699 (adi_print_versions): New function.
8700 (do_examine): New function.
8701 (do_assign): New function.
8702 (adi_examine_command): New function.
8703 (adi_assign_command): New function.
8704 (_initialize_sparc64_adi_tdep): New function.
8706 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
8708 * breakpoint.c (breakpoints_info): Rename to ...
8709 (info_breakpoints_command): ... this.
8710 (watchpoints_info): Rename to ...
8711 (info_watchpoints_command): ... this.
8712 (tracepoints_info): Rename to ...
8713 (info_tracepoints_command): ... this.
8714 (_initialize_breakpoint): Adjust.
8715 * dcache.c (dcache_info): Rename to ...
8716 (info_display_command): ... this.
8717 (_initialize_dcache): Adjust.
8718 * frame.h (args_info): Rename to ...
8719 (info_args_command): ... this.
8720 (locals_info): Rename to ...
8721 (info_locals_command): ... this.
8722 * infcmd.c (nofp_registers_info): Rename to ...
8723 (info_registers_command): ... this.
8724 (float_info): Rename to ...
8725 (info_float_command): ... this.
8726 (program_info): Rename to ...
8727 (info_program_command): ... this.
8728 (all_registers_info): Rename to ...
8729 (info_all_registers_command): ... this.
8730 (vector_info): Rename to ...
8731 (info_vector_command): ... this.
8732 (float_info): Rename to ...
8733 (info_float_command): ... this.
8734 (_initialize_infcmd): Adjust.
8735 * inferior.h (term_info): Rename to ...
8736 (info_terminal_command): ... this.
8737 * inflow.c (term_info): Rename to ...
8738 (info_terminal_command): ... this.
8739 (_initialize_inflow): Adjust.
8740 * infrun.c (signals_info): Rename to ...
8741 (info_signals_command): ... this.
8742 (_initialize_infrun): Adjust.
8743 * objc-lang.c (classes_info): Rename to ...
8744 (info_classes_command): ... this.
8745 (selectors_info): Rename to ...
8746 (info_selectors_command): ... this.
8747 (_initialize_objc_language): Adjust.
8748 * printcmd.c (sym_info): Rename to ...
8749 (info_symbol_command): ... this.
8750 (address_info): Rename to ...
8751 (info_address_command): ... this.
8752 (display_info): Rename to ...
8753 (info_display_command): ... this.
8754 (_initialize_printcmd): Adjust.
8755 * reverse.c (bookmarks_info): Rename to ...
8756 (info_breakpoints_command): ... this.
8757 (_initialize_reverse): Adjust.
8758 * ser-go32.c (dos_info): Rename to ...
8759 (info_serial_command): ... this.
8760 (_initialize_ser_dos): Adjust.
8761 * skip.c (skip_info): Rename to ...
8762 (info_skip_command): ... this.
8763 (_initialize_step_skip): Adjust.
8764 * source.c (line_info): Rename to ...
8765 (info_line_command): ... this.
8766 (source_info): Rename to ...
8767 (info_source_command)
8768 * stack.c (frame_info): Rename to ...
8769 (info_frame_command): ... this.
8770 (locals_info): Rename to ...
8771 (info_locals_command): ... this.
8772 (args_info): Rename to ...
8773 (info_args_command): ... this.
8774 (_initialize_stack): Adjust.
8775 * symtab.c (sources_info): Rename to ...
8776 (info_sources_command): ... this.
8777 (variables_info): Rename to ...
8778 (info_variables_command): ... this.
8779 (functions_info): Rename to ...
8780 (info_functions_command): ... this.
8781 (types_info): Rename to ...
8782 (info_types_command): ... this.
8783 (_initialize_symtab): Adjust.
8784 * target.c (target_info): Rename to ...
8785 (info_target_command): ... this.
8786 (initialize_targets): Adjust.
8787 * tracepoint.c (tvariables_info): Rename to ...
8788 (info_tvariables_command): ... this.
8789 (scope_info): Rename to ...
8790 (info_scope_command): ... this.
8791 (trace_dump_actions): Adjust.
8792 (_initialize_tracepoint): Adjust.
8794 2017-08-22 Tom Tromey <tom@tromey.com>
8796 * breakpoint.h (install_breakpoint): Update.
8797 * breakpoint.c (add_solib_catchpoint): Update.
8798 (install_breakpoint): Change argument to a std::unique_ptr.
8799 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8800 (create_breakpoint_sal, create_breakpoint): Update.
8801 (watch_command_1, catch_exec_command_1)
8802 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8803 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8804 Return the breakpoint.
8805 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8806 (new_single_step_breakpoint): Update.
8807 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8809 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8811 * break-catch-sig.c (create_signal_catchpoint): Use
8813 * ada-lang.c (create_ada_exception_catchpoint): Use
8816 2017-08-22 Tom Tromey <tom@tromey.com>
8818 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
8820 2017-08-22 Tom Tromey <tom@tromey.com>
8822 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
8823 (lookup_partial_symbol): Update.
8825 2017-08-22 Tom Tromey <tom@tromey.com>
8827 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
8828 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
8829 (find_and_open_source, symtab_to_fullname): Update.
8830 * psymtab.c (psymtab_to_fullname): Update.
8832 2017-08-22 Tom Tromey <tom@tromey.com>
8834 * exec.c (exec_file_attach): Update.
8835 * linux-thread-db.c (try_thread_db_load): Update.
8836 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
8837 * utils.c (gdb_realpath): Change return type.
8838 (gdb_realpath_keepfile): Update.
8839 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
8840 (_initialize_utils): Register the new self test.
8841 * source.c (openp): Update.
8842 (find_and_open_source): Update.
8843 * nto-tdep.c (nto_find_and_open_solib): Update.
8844 * main.c (set_gdb_data_directory): Update.
8845 (captured_main_1): Update.
8846 * dwarf2read.c (dwarf2_get_dwz_file): Update
8847 (dw2_map_symbol_filenames): Update.
8848 * auto-load.c (auto_load_safe_path_vec_update): Update.
8849 (filename_is_in_auto_load_safe_path_vec): Change type of
8851 (auto_load_objfile_script): Update.
8852 (file_is_auto_load_safe): Update. Use std::string.
8853 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
8855 2017-08-22 Tom Tromey <tom@tromey.com>
8857 * utils.c (gdb_realpath_keepfile): Return a
8858 gdb::unique_xmalloc_ptr.
8859 * exec.c (exec_file_attach): Update.
8860 * utils.h (gdb_realpath_keepfile): Return a
8861 gdb::unique_xmalloc_ptr.
8863 2017-08-22 Tom Tromey <tom@tromey.com>
8865 * compile/compile.c (compile_file_command): Use
8866 gdb::unique_xmalloc_ptr, std::string.
8867 * utils.c (gdb_abspath): Change return type.
8868 * source.c (openp): Update.
8869 * objfiles.c (allocate_objfile): Update.
8870 * main.c (set_gdb_data_directory): Update.
8871 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
8873 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
8875 * cli-cmds.c (list_commands): List actual code around more than
8878 2017-08-21 John Baldwin <jhb@FreeBSD.org>
8880 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
8882 2017-08-21 Pedro Alves <palves@redhat.com>
8885 * c-exp.y (variable production): Handle function aliases.
8886 * minsyms.c (msymbol_is_text): New function.
8887 * minsyms.h (msymbol_is_text): Declare.
8888 * symtab.c (find_function_alias_target): New function.
8889 * symtab.h (find_function_alias_target): Declare.
8891 2017-08-21 Pedro Alves <palves@redhat.com>
8893 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
8895 * typeprint.c (whatis_exp): If handling "whatis", and expression
8896 is OP_TYPE, strip one typedef level. Otherwise don't strip
8898 * valops.c (value_cast): Save "to" type before resolving
8899 stubs/typedefs. Use that type as resulting value's type.
8901 2017-08-18 Tom Tromey <tom@tromey.com>
8902 Pedro Alves <palves@redhat.com>
8904 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
8905 * sol-thread.c (sol_thread_resume, sol_thread_wait)
8906 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
8907 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
8908 * proc-service.c (ps_xfer_memory): Use scoped_restore.
8909 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
8910 (linux_get_siginfo_data): Add "thread" argument. Use
8912 * linux-nat.c (linux_child_follow_fork)
8913 (check_stopped_by_watchpoint): Use scoped_restore.
8914 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
8915 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
8916 (restore_inferior_ptid, save_inferior_ptid): Remove.
8917 * btrace.c (btrace_fetch): Use scoped_restore.
8918 * bsd-uthread.c (bsd_uthread_fetch_registers)
8919 (bsd_uthread_store_registers): Use scoped_restore.
8920 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
8922 * aix-thread.c (aix_thread_resume, aix_thread_wait)
8923 (aix_thread_xfer_partial): Use scoped_restore.
8924 * inferior.h (save_inferior_ptid): Remove.
8926 2017-08-18 Yao Qi <yao.qi@linaro.org>
8929 * arm-tdep.c (gdb_print_insn_arm): Mark
8930 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
8932 2017-08-18 Yao Qi <yao.qi@linaro.org>
8934 * NEWS: Mention GDBserver's new option "--selftest".
8935 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
8936 * selftest.c: Move it to common/selftest.c.
8937 * selftest.h: Move it to common/selftest.h.
8938 * selftest-arch.c (reset): New function.
8939 (tests_with_arch): Call reset.
8941 2017-08-18 Yao Qi <yao.qi@linaro.org>
8943 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
8944 instead of exception_fprintf and printf_filtered.
8946 2017-08-18 Yao Qi <yao.qi@linaro.org>
8948 * selftest.c (register_self_test): Rename it to
8949 selftests::register_test.
8950 (run_self_tests): selftest::run_tests.
8951 * selftest.h: Update declarations.
8952 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
8953 selftests::register_test_foreach_arch.
8954 * selftest-arch.h: Update declaration.
8955 * aarch64-tdep.c: Update.
8956 * arm-tdep.c: Likewise.
8957 * disasm-selftests.c: Likewise.
8958 * dwarf2loc.c: Likewise.
8959 * dwarf2-frame.c: Likewise.
8960 * findvar.c: Likewise.
8961 * gdbarch-selftests.c: Likewise.
8962 * maint.c (maintenance_selftest): Likewise.
8963 * regcache.c: Likewise.
8964 * rust-exp.y: Likewise.
8965 * selftest-arch.c: Likewise.
8966 * unittests/environ-selftests.c: Likewise.
8967 * unittests/function-view-selftests.c: Likewise.
8968 * unittests/offset-type-selftests.c: Likewise.
8969 * unittests/optional-selftests.c: Likewise.
8970 * unittests/scoped_restore-selftests.c: Likewise.
8971 * utils-selftests.c: Likewise.
8973 2017-08-17 Pedro Alves <palves@redhat.com>
8975 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
8978 2017-08-17 Pedro Alves <palves@redhat.com>
8980 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
8982 (reset_die_in_process): Delete, replaced by ...
8983 (process_die_scope): ... this new class. Make it responsible for
8984 freeing cu->line_header too.
8985 (process_die): Use process_die_scope.
8986 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
8987 cu->line_header_die_owner. Don't release the line header if it's
8989 (setup_type_unit_groups): Make the CU/DIE own the line header.
8990 Don't release the line header here.
8992 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
8994 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
8996 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
8998 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9001 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9003 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9006 2017-08-15 Stafford Horne <shorne@gmail.com>
9008 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9010 2017-08-15 Stafford Horne <shorne@gmail.com>
9012 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9014 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9017 * infcmd.c (unset_environment_command): Use the 'clear' method on
9018 the environment instead of resetting it.
9020 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9022 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9025 2017-08-14 Tom Tromey <tom@tromey.com>
9027 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9028 (print_binary_chars): Likewise.
9029 (BITS_IN_BYTES): Remove.
9031 2017-08-14 Tom Tromey <tom@tromey.com>
9034 * valprint.c (LOW_ZERO): Change value to 034.
9035 (print_octal_chars): Add static_asserts for octal constants.
9036 * printcmd.c (print_scalar_formatted): Add 'd' case.
9038 2017-08-11 Tom Tromey <tom@tromey.com>
9040 * symfile.c (add_symbol_file_command): Use std::vector.
9042 2017-08-14 Tom Tromey <tom@tromey.com>
9044 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9045 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9047 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9049 2017-08-11 Pedro Alves <palves@redhat.com>
9051 * infrun.c (process_event_stop_test): Adjust
9052 function_name_is_marked_for_skip call.
9053 * skip.c: Include <list>.
9054 (skiplist_entry): Make it a class with private fields, and
9056 (skiplist_entry_chain): Delete.
9057 (skiplist_entries): New.
9058 (skiplist_entry_count): Delete.
9059 (highest_skiplist_entry_num): New.
9060 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9061 (add_skiplist_entry): Delete.
9062 (skiplist_entry::skiplist_entry): New.
9063 (skiplist_entry::add_entry): New.
9064 (skip_file_command, skip_function): Adjust.
9065 (compile_skip_regexp): Delete.
9066 (skip_command): Don't compile regexp here. Adjust to use
9067 skiplist_entry::add_entry.
9068 (skip_info): Adjust to use range-for and getters.
9069 (skip_enable_command, skip_disable_command): Adjust to use
9070 range-for and setters.
9071 (skip_delete_command): Adjust to use std::list.
9072 (add_skiplist_entry): Delete.
9073 (skip_file_p): Delete, refactored as ...
9074 (skiplist_entry::do_skip_file_p): ... this new method.
9075 (skip_gfile_p): Delete, refactored as ...
9076 (skiplist_entry::do_gskip_file_p): ... this new method.
9077 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9078 (skiplist_entry::skip_function_p): ... this new method.
9079 (function_name_is_marked_for_skip): Now returns bool, and takes
9080 the function sal by const reference. Adjust to use range-for and
9081 skiplist_entry methods.
9082 (_initialize_step_skip): Remove references to
9083 skiplist_entry_chain, skiplist_entry_count.
9084 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9085 takes the function sal by const reference.
9087 2017-08-11 Yao Qi <yao.qi@linaro.org>
9089 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9090 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9091 (dwarf2_frame_cache):
9092 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9093 RETURN_MASK_ALL and set *this_case to NULL.
9094 * frame-unwind.h: Update comments.
9096 2017-08-11 Yao Qi <yao.qi@linaro.org>
9098 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9099 (dwarf2_frame_state_copy_regs): Remove.
9100 (dwarf2_frame_state_free_regs): Remove.
9101 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9102 (dwarf2_restore_rule): Call method .alloc_regs instead of
9103 dwarf2_frame_state_alloc_regs.
9104 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9105 constructor. Call std::move.
9106 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9107 (dwarf2_frame_cache): Likewise.
9109 [GDB_SELF_TEST]: Include selftest.h and
9111 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9112 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9113 execute_cfa_program_test.
9115 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9116 copy ctor, assignment operator, move assignment.
9117 <alloc_regs>: New method.
9119 (struct dwarf2_frame_state): Delete dtor.
9120 (dwarf2_frame_state_alloc_regs): Remove declaration.
9121 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9122 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9124 2017-08-11 Yao Qi <yao.qi@linaro.org>
9126 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9127 (dwarf2_frame_state::dwarf2_frame_state): New.
9128 (dwarf2_frame_state::~dwarf2_frame_state): New.
9129 (dwarf2_fetch_cfa_info): Update.
9130 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9131 rather than a pointer. Update code.
9132 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9134 <data_align, code_align, retaddr_column>: Change them to const.
9135 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9138 2017-08-11 Yao Qi <yao.qi@linaro.org>
9140 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9141 <loc.exp>: New field.
9142 * dwarf2-frame.c (execute_cfa_program): Update.
9143 (dwarf2_frame_prev_register): Update.
9145 2017-08-10 Pedro Alves <palves@redhat.com>
9147 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9149 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9151 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9152 (fbsd_pending_children): Use std::list.
9153 (fbsd_remember_child): Likewise.
9154 (fbsd_is_child_pending): Likewise.
9155 (fbsd_pending_vfork_done): Use std::forward_list.
9156 (fbsd_add_vfork_done): Likewise.
9157 (fbsd_is_vfork_done_pending): Likewise.
9158 (fbsd_next_vfork_done): Likewise.
9160 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9162 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9163 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9164 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9166 (fbsd_xfer_partial): Use gdb::byte_vector.
9167 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9169 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9171 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9173 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9175 2017-08-09 Tom Tromey <tom@tromey.com>
9177 * skip.c (skiplist_entry): New constructor.
9178 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9179 (skiplist_entry::file_is_glob): Now bool.
9180 (skiplist_entry::file, skiplist_entry::function): Now
9182 (make_skip_entry): Return a unique_ptr. Use new.
9183 (free_skiplist_entry, free_skiplist_entry_cleanup)
9184 (make_free_skiplist_entry_cleanup): Remove.
9185 (skip_command, skip_disable_command, add_skiplist_entry)
9186 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9187 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9188 (function_name_is_marked_for_skip): Update.
9189 (skip_delete_command): Update. Use delete.
9191 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9193 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9194 (aarch64_linux_core_read_description): New function.
9195 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9197 2017-08-09 Pedro Alves <palves@redhat.com>
9199 * cp-name-parser.y (cp_comp_to_string): Return a
9200 gdb::unique_xmalloc_ptr<char>.
9201 * cp-support.c (replace_typedefs_qualified_name)
9202 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9203 (cp_canonicalize_string_full): Use op= instead of explicit
9205 (cp_class_name_from_physname, method_name_from_physname)
9206 (cp_func_name, cp_remove_params): Adjust to use
9207 gdb::unique_xmalloc_ptr<char>.
9208 * cp-support.h (cp_comp_to_string): Return a
9209 gdb::unique_xmalloc_ptr<char>.
9210 * python/py-type.c (typy_lookup_type): Adjust to use
9211 gdb::unique_xmalloc_ptr<char>.
9213 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9215 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9217 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9218 Yao Qi <yao.qi@linaro.org>
9220 * cp-support.c (cp_canonicalize_string_full): Use
9221 gdb::unique_xmalloc_ptr<char>.
9222 (cp_canonicalize_string): Likewise.
9224 2017-08-09 Yao Qi <yao.qi@linaro.org>
9226 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9227 * regformats/i386/amd64-avx-avx512.dat: Remove.
9228 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9229 * regformats/i386/amd64-avx-mpx.dat:Remove.
9230 * regformats/i386/amd64-avx.dat: Remove.
9231 * regformats/i386/amd64-mpx.dat: Remove.
9232 * regformats/i386/i386-avx-avx512.dat: Remove.
9233 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9234 * regformats/i386/i386-avx-mpx.dat: Remove.
9235 * regformats/i386/i386-mmx.dat: Remove.
9236 * regformats/i386/i386-mpx.dat: Remove.
9238 2017-08-09 Yao Qi <yao.qi@linaro.org>
9240 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9241 * amd64-tdep.c: Don't include features/i386/x32*.c.
9242 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9244 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9245 and i386/x32-avx-avx512.
9246 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9248 * features/i386/x32-avx-avx512.c: Removed.
9249 * features/i386/x32-avx-avx512.xml: Removed.
9250 * features/i386/x32-avx.c: Removed.
9251 * features/i386/x32-avx.xml: Removed.
9252 * features/i386/x32.c: Removed.
9253 * features/i386/x32.xml: Removed.
9254 * regformats/i386/x32-avx-avx512.dat: Removed.
9255 * regformats/i386/x32-avx.dat: Removed.
9256 * regformats/i386/x32.dat: Removed.
9258 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9260 PR breakpoints/21886
9261 * mem-break.c (default_memory_insert_breakpoint): Use
9262 `->placed_address' rather than `->reqstd_address' for the
9263 breakpoint location.
9265 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9267 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9270 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9272 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9273 a union of `tdep_info', `tdesc_data' and `id'.
9274 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9275 rather than `info.tdep_info'.
9276 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9277 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9278 * i386-tdep.c (i386_gdbarch_init): Likewise.
9279 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9280 * mips-tdep.c (mips_gdbarch_init): Likewise.
9281 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9282 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9283 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9285 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9287 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9288 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9290 * spu-tdep.c (spu_gdbarch_init): Likewise.
9291 * gdbarch.h: Regenerate.
9293 2017-08-07 Leszek Swirski <leszeks@google.com>
9296 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9298 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9300 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9301 (gdbsim_open): Rename gdb_argv args object to argv.
9303 2017-08-05 Tom Tromey <tom@tromey.com>
9305 * compile/compile-object-load.c (compile_object_load): Use
9306 gdb::unique_xmalloc_ptr.
9307 * cli/cli-dump.c (scan_filename): Rename from
9308 scan_filename_with_cleanup. Change return type.
9309 (scan_expression): Rename from scan_expression_with_cleanup.
9311 (dump_memory_to_file, dump_value_to_file, restore_command):
9312 Use gdb::unique_xmalloc_ptr. Update.
9313 * cli/cli-cmds.c (find_and_open_script): Use
9314 gdb::unique_xmalloc_ptr.
9315 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9316 * symmisc.c (maintenance_print_symbols)
9317 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9318 * symfile.c (symfile_bfd_open, generic_load)
9319 (add_symbol_file_command, remove_symbol_file_command): Use
9320 gdb::unique_xmalloc_ptr.
9321 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9322 * psymtab.c (maintenance_print_psymbols): Use
9323 gdb::unique_xmalloc_ptr.
9324 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9325 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9326 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9327 (reload_shared_libraries_1): Likewise.
9329 2017-08-05 Tom Tromey <tom@tromey.com>
9331 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9332 (rust_op_vector, rust_set_vector): New typedefs.
9333 (current_parser): New global.
9334 (work_obstack): Change to pointer type. Update all users.
9335 (rust_ast, pstate): Remove globals.
9336 (struct rust_parser): New.
9337 (%union) <params, field_inits>: Change type.
9338 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9339 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9340 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9341 (convert_params_to_types, convert_params_to_expression): Change
9343 (ast_string): Change type of "fields".
9344 (rust_parse): Make a rust_parser. Remove cleanups.
9345 (rust_lex_tests): Make and install an auto_obstack.
9347 2017-08-04 Yao Qi <yao.qi@linaro.org>
9349 * configure.srv (ipa_x32_linux_regobj): New.
9350 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9351 instead of X86_TDESC_AVX512.
9352 (initialize_low_tracepoint): Call
9353 init_registers_x32_avx_avx512_linux.
9355 2017-08-04 Yao Qi <yao.qi@linaro.org>
9357 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9359 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9361 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9363 2017-08-03 Tom Tromey <tom@tromey.com>
9365 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9367 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9369 2017-08-03 Tom Tromey <tom@tromey.com>
9371 * python/py-param.c (compute_enum_values): Use gdb_argv.
9373 2017-08-03 Tom Tromey <tom@tromey.com>
9375 * utils.h (struct gdb_argv_deleter): New.
9376 (gdb_argv): New class.
9377 * utils.c (gdb_argv::reset): New method.
9378 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9379 * tracefile.c (tsave_command): Use gdb_argv.
9380 * top.c (new_ui_command): Use gdb_argv.
9381 * symmisc.c (maintenance_print_symbols)
9382 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9383 * symfile.c (symbol_file_command, generic_load)
9384 (remove_symbol_file_command): Use gdb_argv.
9385 * stack.c (backtrace_command): Use gdb_argv.
9386 * source.c (add_path, show_substitute_path_command)
9387 (unset_substitute_path_command, set_substitute_path_command):
9389 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9390 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9391 * remote.c (extended_remote_run, remote_put_command)
9392 (remote_get_command, remote_delete_command): Use gdb_argv.
9393 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9394 (gdbsim_open): Use gdb_argv.
9395 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9396 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9397 * procfs.c (procfs_info_proc): Use gdb_argv.
9398 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9399 * infrun.c (handle_command): Use gdb_argv.
9400 * inferior.c (add_inferior_command, clone_inferior_command):
9402 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9403 * exec.c (exec_file_command): Use gdb_argv.
9404 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9405 * compile/compile.c (build_argc_argv): Use gdb_argv.
9407 2017-08-03 Tom Tromey <tom@tromey.com>
9409 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9411 2017-08-03 Tom Tromey <tom@tromey.com>
9413 * python/python.c (compute_python_string): Return std::string.
9414 (gdbpy_eval_from_control_command): Update.
9415 (do_start_initialization): Use std::string.
9416 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9418 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9421 2017-08-03 Tom Tromey <tom@tromey.com>
9423 * top.h (do_restore_instream_cleanup): Remove.
9424 * top.c (do_restore_instream_cleanup): Remove.
9425 (read_command_file): Use scoped_restore.
9426 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9428 2017-08-03 Tom Tromey <tom@tromey.com>
9430 * cli/cli-script.c (execute_user_command)
9431 (execute_control_command): Use scoped_restore.
9433 2017-08-03 Tom Tromey <tom@tromey.com>
9435 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9436 (execute_user_command): Remove user_call_depth; use
9437 user_args_stack's size instead.
9439 2017-08-03 Tom Tromey <tom@tromey.com>
9441 * top.h (in_user_command): Remove.
9442 * top.c (in_user_command): Remove.
9443 * cli/cli-script.c (do_restore_user_call_depth)
9444 (execute_user_command): Update.
9446 2017-08-03 Tom Tromey <tom@tromey.com>
9448 * valops.c (search_struct_method): Use gdb::byte_vector.
9449 * valarith.c (value_concat): Use std::vector.
9450 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9451 (simple_search_memory): Likewise.
9452 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9453 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9454 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9455 * elfread.c (elf_rel_plt_read): Use std::string.
9456 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9457 * cli/cli-dump.c (restore_section_callback): Use
9460 2017-08-03 Tom Tromey <tom@tromey.com>
9462 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9464 2017-08-03 Tom Tromey <tom@tromey.com>
9466 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9467 (tui_register_format): Use scoped_restore.
9469 2017-08-03 Tom Tromey <tom@tromey.com>
9471 * reverse.c (exec_direction_default): Remove.
9472 (exec_reverse_once): Use scoped_restore.
9473 * remote.c (restore_remote_timeout): Remove.
9474 (remote_flash_erase, remote_flash_write, remote_flash_done)
9475 (readchar, remote_serial_write): Use scoped_restore.
9476 * cli/cli-script.c (struct source_cleanup_lines_args)
9477 (source_cleanup_lines): Remove.
9478 (script_from_file): Use scoped_restore.
9479 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9480 (source_command): Use scoped_restore.
9482 2017-08-03 Tom Tromey <tom@tromey.com>
9484 * utils.h (make_cleanup_free_so): Remove.
9485 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9486 * solist.h (struct so_deleter): New.
9487 (so_list_up): New typedef.
9488 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9490 2017-08-03 Tom Tromey <tom@tromey.com>
9492 * utils.h (make_cleanup_restore_current_language): Remove.
9493 * utils.c (do_restore_current_language)
9494 (make_cleanup_restore_current_language): Remove.
9495 * parse.c (parse_exp_in_context_1)
9496 (parse_expression_with_language): Use
9497 scoped_restore_current_language.
9498 * mi/mi-main.c (mi_cmd_execute): Use
9499 scoped_restore_current_language.
9500 * language.h (scoped_restore_current_language): New class.
9502 2017-08-03 Tom Tromey <tom@tromey.com>
9504 * compile/compile.c (cleanup_unlink_file): Remove.
9505 (compile_to_object): Use gdb::unlinker.
9506 (eval_compile_command): Likewise.
9508 2017-08-03 Tom Tromey <tom@tromey.com>
9510 * utils.h (make_cleanup_fclose): Remove.
9511 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9513 2017-08-03 Tom Tromey <tom@tromey.com>
9515 * top.c (open_terminal_stream): Return gdb_file_up.
9516 (new_ui_command): Update.
9518 2017-08-03 Tom Tromey <tom@tromey.com>
9520 * source.c (print_source_lines_base, forward_search_command)
9521 (reverse_search_command): Use gdb_file_up.
9523 2017-08-03 Tom Tromey <tom@tromey.com>
9525 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9527 2017-08-03 Tom Tromey <tom@tromey.com>
9529 * cli/cli-cmds.c (find_and_open_script): Change return type.
9530 Remove "streamp" and "full_path" parameters.
9531 (source_script_with_search): Update.
9532 * auto-load.c (source_script_file): Update.
9533 * cli/cli-cmds.h (find_and_open_script): Change type.
9534 (open_script): New struct.
9536 2017-08-03 Tom Tromey <tom@tromey.com>
9538 * xml-support.c (xml_fetch_content_from_file): Update.
9539 * ui-file.c (stdio_file::open): Update.
9540 * tracefile-tfile.c (tfile_start): Update.
9541 * remote.c (remote_file_put, remote_file_get): Update.
9542 * nat/linux-procfs.c (linux_proc_get_int)
9543 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9544 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9545 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9546 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9547 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9548 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9549 * linux-nat.c (linux_proc_pending_signals): Update.
9550 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9551 (file_closer): Remove.
9552 * compile/compile.c (compile_to_object): Update.
9553 * common/filestuff.h (struct gdb_file_deleter): New.
9554 (gdb_file_up): New typedef.
9555 (gdb_fopen_cloexec): Change return type.
9556 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9557 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9558 (dump_binary_file, restore_binary_file): Update.
9559 * auto-load.c (auto_load_objfile_script_1): Update.
9561 2017-08-03 Tom Tromey <tom@tromey.com>
9563 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9564 (info_static_tracepoint_markers_command): Likewise.
9565 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9566 * skip.c (skip_info): Use ui_out_emit_table.
9567 * progspace.c (print_program_space): Use ui_out_emit_table.
9568 * osdata.c (info_osdata): Use ui_out_emit_table.
9569 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9571 * linux-thread-db.c (info_auto_load_libthread_db): Use
9573 * inferior.c (print_inferior): Use ui_out_emit_table.
9574 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9575 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9576 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9577 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9578 * ui-out.h (class ui_out_emit_table): New.
9580 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9582 * mips-tdep.c (mips_fpu_type_str): New function.
9583 (mips_dump_tdep): Call it.
9585 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9587 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9590 2017-07-31 Xavier Roirand <roirand@adacore.com>
9592 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9594 2017-07-27 Xavier Roirand <roirand@adacore.com>
9596 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9598 2017-07-26 Yao Qi <yao.qi@linaro.org>
9600 * cli/cli-cmds.c (maintenancechecklist): New variable.
9601 * gdbcmd.h (maintenancechecklist): Declare it.
9602 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9603 Call i386_linux_read_description with different masks.
9604 * maint.c (maintenance_check_command): New function.
9605 (_initialize_maint_cmds): Call add_prefix_cmd.
9606 * target-descriptions.c (tdesc_reg): override operator != and ==.
9607 (tdesc_type): Likewise.
9608 (tdesc_feature): Likewise.
9609 (target_desc): Likewise.
9610 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9611 (maintenance_check_xml_descriptions): New function.
9612 (_initialize_target_descriptions) Add command "xml-descriptions".
9613 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
9615 2017-07-26 Yao Qi <yao.qi@linaro.org>
9617 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
9618 Include features/i386/32bit-*.c.
9619 (i386_linux_read_description): Generate target description if it
9621 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
9623 * features/i386/32bit-linux.c: Re-generated.
9624 * features/i386/32bit-sse.c: Likewise.
9625 * target-descriptions.c (print_c_feature::visit): Print code to
9626 set register number if needed.
9627 (print_c_feature) <m_next_regnum>: New field.
9629 2017-07-26 Yao Qi <yao.qi@linaro.org>
9631 * features/Makefile (CFILES): Rename with TDESC_CFILES.
9632 (FEATURE_XMLFILES): New.
9633 (FEATURE_CFILES): New.
9635 (clean-cfiles): Remove generated c files.
9636 * features/i386/32bit-avx.c: Generated.
9637 * features/i386/32bit-avx512.c: Generated.
9638 * features/i386/32bit-core.c: Generated.
9639 * features/i386/32bit-linux.c: Generated.
9640 * features/i386/32bit-mpx.c: Generated.
9641 * features/i386/32bit-pkeys.c: Generated.
9642 * features/i386/32bit-sse.c: Generated.
9643 * target-descriptions.c: Include algorithm.
9644 (tdesc_element_visitor): Add method visit_end.
9645 (print_c_tdesc): Implement visit_end.
9646 (print_c_tdesc:: m_filename_after_features): Move it to
9648 (print_c_feature): New class.
9649 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
9650 name starts with "i386/32bit-".
9652 2017-07-26 Yao Qi <yao.qi@linaro.org>
9654 * target-descriptions.c (tdesc_element_visitor): New class.
9655 (tdesc_element): New class.
9656 (tdesc_reg): Inherit from tdesc_element.
9657 (tdesc_reg::accept): New function.
9658 (tdesc_type): Inherit from tdesc_element.
9659 (tdesc_type::accept): New function.
9660 (tdesc_feature): Inherit from tdesc_element.
9661 (tdesc_feature::accept): New function.
9662 (target_desc): Inherit from tdesc_element.
9663 (target_desc::target_desc): New.
9664 (target_desc::~target_desc): New.
9665 (target_desc::accept): New.
9666 (allocate_target_description): Use new.
9667 (free_target_description): Use delete.
9668 (print_c_tdesc): New class.
9669 (maint_print_c_tdesc_cmd): Adjust.
9671 * features/aarch64.c: Re-generated.
9672 * features/arc-arcompact.c: Re-generated.
9673 * features/arc-v2.c: Re-generated.
9674 * features/arm/arm-with-iwmmxt.c: Re-generated.
9675 * features/arm/arm-with-m.c: Re-generated.
9676 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
9677 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
9678 * features/arm/arm-with-neon.c: Re-generated.
9679 * features/arm/arm-with-vfpv2.c: Re-generated.
9680 * features/arm/arm-with-vfpv3.c: Re-generated.
9681 * features/i386/amd64-avx-avx512.c: Re-generated.
9682 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9683 * features/i386/amd64-avx.c: Re-generated.
9684 * features/i386/amd64-avx-linux.c: Re-generated.
9685 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
9686 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9687 * features/i386/amd64-avx-mpx.c: Re-generated.
9688 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
9689 * features/i386/amd64.c: Re-generated.
9690 * features/i386/amd64-linux.c: Re-generated.
9691 * features/i386/amd64-mpx.c: Re-generated.
9692 * features/i386/amd64-mpx-linux.c: Re-generated.
9693 * features/i386/i386-avx-avx512.c: Re-generated.
9694 * features/i386/i386-avx-avx512-linux.c: Re-generated.
9695 * features/i386/i386-avx.c: Re-generated.
9696 * features/i386/i386-avx-linux.c: Re-generated.
9697 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
9698 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
9699 * features/i386/i386-avx-mpx.c: Re-generated.
9700 * features/i386/i386-avx-mpx-linux.c: Re-generated.
9701 * features/i386/i386.c: Re-generated.
9702 * features/i386/i386-linux.c: Re-generated.
9703 * features/i386/i386-mmx.c: Re-generated.
9704 * features/i386/i386-mmx-linux.c: Re-generated.
9705 * features/i386/i386-mpx.c: Re-generated.
9706 * features/i386/i386-mpx-linux.c: Re-generated.
9707 * features/i386/x32-avx-avx512.c: Re-generated.
9708 * features/i386/x32-avx-avx512-linux.c: Re-generated.
9709 * features/i386/x32-avx.c: Re-generated.
9710 * features/i386/x32-avx-linux.c: Re-generated.
9711 * features/i386/x32.c: Re-generated.
9712 * features/i386/x32-linux.c: Re-generated.
9713 * features/microblaze.c: Re-generated.
9714 * features/microblaze-with-stack-protect.c: Re-generated.
9715 * features/mips64-dsp-linux.c: Re-generated.
9716 * features/mips64-linux.c: Re-generated.
9717 * features/mips-dsp-linux.c: Re-generated.
9718 * features/mips-linux.c: Re-generated.
9719 * features/nds32.c: Re-generated.
9720 * features/nios2.c: Re-generated.
9721 * features/nios2-linux.c: Re-generated.
9722 * features/rs6000/powerpc-32.c: Re-generated.
9723 * features/rs6000/powerpc-32l.c: Re-generated.
9724 * features/rs6000/powerpc-403.c: Re-generated.
9725 * features/rs6000/powerpc-403gc.c : Re-generated.
9726 * features/rs6000/powerpc-405.c: Re-generated.
9727 * features/rs6000/powerpc-505.c: Re-generated.
9728 * features/rs6000/powerpc-601.c: Re-generated.
9729 * features/rs6000/powerpc-602.c: Re-generated.
9730 * features/rs6000/powerpc-603.c: Re-generated.
9731 * features/rs6000/powerpc-604.c: Re-generated.
9732 * features/rs6000/powerpc-64.c: Re-generated.
9733 * features/rs6000/powerpc-64l.c: Re-generated.
9734 * features/rs6000/powerpc-7400.c: Re-generated.
9735 * features/rs6000/powerpc-750.c: Re-generated.
9736 * features/rs6000/powerpc-860.c: Re-generated.
9737 * features/rs6000/powerpc-altivec32.c: Re-generated.
9738 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9739 * features/rs6000/powerpc-altivec64.c: Re-generated.
9740 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9741 * features/rs6000/powerpc-cell32l.c: Re-generated.
9742 * features/rs6000/powerpc-cell64l.c: Re-generated.
9743 * features/rs6000/powerpc-e500.c: Re-generated.
9744 * features/rs6000/powerpc-e500l.c: Re-generated.
9745 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9746 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9747 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9748 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9749 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9750 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9751 * features/rs6000/powerpc-vsx32.c: Re-generated.
9752 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9753 * features/rs6000/powerpc-vsx64.c: Re-generated.
9754 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9755 * features/rs6000/rs6000.c: Re-generated.
9756 * features/s390-linux32.c: Re-generated.
9757 * features/s390-linux32v1.c: Re-generated.
9758 * features/s390-linux32v2.c: Re-generated.
9759 * features/s390-linux64.c: Re-generated.
9760 * features/s390-linux64v1.c: Re-generated.
9761 * features/s390-linux64v2.c: Re-generated.
9762 * features/s390-te-linux64.c: Re-generated.
9763 * features/s390-tevx-linux64.c: Re-generated.
9764 * features/s390-vx-linux64.c: Re-generated.
9765 * features/s390x-linux64.c: Re-generated.
9766 * features/s390x-linux64v1.c: Re-generated.
9767 * features/s390x-linux64v2.c: Re-generated.
9768 * features/s390x-te-linux64.c: Re-generated.
9769 * features/s390x-tevx-linux64.c: Re-generated.
9770 * features/s390x-vx-linux64.c: Re-generated.
9771 * features/sparc/sparc32-solaris.c: Re-generated.
9772 * features/sparc/sparc64-solaris.c: Re-generated.
9773 * features/tic6x-c62x.c: Re-generated.
9774 * features/tic6x-c62x-linux.c: Re-generated.
9775 * features/tic6x-c64x.c: Re-generated.
9776 * features/tic6x-c64x-linux.c: Re-generated.
9777 * features/tic6x-c64xp.c: Re-generated.
9778 * features/tic6x-c64xp-linux.c: Re-generated.
9780 2017-07-26 Yao Qi <yao.qi@linaro.org>
9782 * i386-linux-tdep.c (i386_linux_read_description): New function.
9783 (i386_linux_core_read_description): Call
9784 i386_linux_read_description.
9785 * i386-linux-tdep.h (i386_linux_read_description): Declare.
9786 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
9787 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
9788 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
9789 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
9790 * x86-linux-nat.c (x86_linux_read_description): Call
9791 i386_linux_read_description.
9793 2017-07-26 Yao Qi <yao.qi@linaro.org>
9796 * features/Makefile (%.c: %.xml): Pass the xml file name to
9797 command "maint print c-tdesc".
9798 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9801 2017-07-26 Yao Qi <yao.qi@linaro.org>
9803 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9804 in-class initialization.
9805 (tdesc_create_feature): Call new instead of XCNEW.
9806 (free_target_description): Ue delete.
9808 2017-07-25 John Baldwin <jhb@FreeBSD.org>
9810 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9812 2017-07-25 Yao Qi <yao.qi@linaro.org>
9814 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
9816 (amd64_x32_init_abi): Likewise.
9817 * amd64-tdep.h (amd64_init_abi): Update declaration.
9818 (amd64_x32_init_abi): Likewise.
9820 2017-07-25 Yao Qi <yao.qi@linaro.org>
9823 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
9824 condition for FPSCR.
9825 (arm_linux_store_inferior_registers): Likewise.
9827 2017-07-22 Tom Tromey <tom@tromey.com>
9829 * break-catch-syscall.c (struct catch_syscall_inferior_data)
9830 <syscalls_counts>: Now a std::vector.
9831 (get_catch_syscall_inferior_data): Use "new".
9832 (catch_syscall_inferior_data_cleanup): Use "delete".
9833 (insert_catch_syscall, remove_catch_syscall)
9834 (clear_syscall_counts): Update.
9836 2017-07-22 Tom Tromey <tom@tromey.com>
9838 * break-catch-syscall.c (syscall_catchpoint)
9839 <syscalls_to_be_caught>: Now a std::vector<int>
9840 (~syscall_catchpoint): Remove.
9841 (insert_catch_syscall, remove_catch_syscall)
9842 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
9843 (print_mention_catch_syscall, print_recreate_catch_syscall):
9845 (create_syscall_event_catchpoint): Change type of "filter"
9847 (catch_syscall_split_args): Return a std::vector.
9848 (catch_syscall_command_1, catching_syscall_number_1): Update.
9850 2017-07-22 Tom Tromey <tom@tromey.com>
9852 * break-catch-throw.c (struct exception_catchpoint)
9853 <exception_rx>: Now a std::string.
9854 (~exception_catchpoint): Remove.
9855 (print_one_detail_exception_catchpoint): Update.
9856 (handle_gnu_v3_exceptions): Change type of except_rx.
9857 (extract_exception_regexp): Return a std::string.
9858 (catch_exception_command_1): Update.
9860 2017-07-22 Tom Tromey <tom@tromey.com>
9862 * break-catch-sig.c (gdb_signal_type): Remove typedef.
9863 (struct signal_catchpoint) <signals_to_be_caught>: Now a
9865 <catch_all>: Now a bool.
9866 (~signal_catchpoint): Remove.
9867 (signal_catchpoint_insert_location)
9868 (signal_catchpoint_remove_location)
9869 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
9870 (signal_catchpoint_print_mention)
9871 (signal_catchpoint_print_recreate)
9872 (signal_catchpoint_explains_signal): Update.
9873 (create_signal_catchpoint): Change type of "filter" and
9875 (catch_signal_split_args): Return a std::vector. Change type of
9877 (catch_signal_command): Update.
9879 2017-07-20 Pedro Alves <palves@redhat.com>
9881 * ada-lang.c (ada_language_defn): Make extern.
9882 (_initialize_ada_language): Remove add_language call.
9883 * c-lang.c (c_language_defn, cplus_language_defn)
9884 (asm_language_defn, minimal_language_defn): Make extern.
9885 (_initialize_c_language): Delete.
9886 * completer.c (compare_cstrings): Delete, moved to utils.h.
9887 * d-lang.c (d_language_defn): Make extern.
9888 (_initialize_d_language): Remove add_language calls.
9889 * defs.h (enum language): Add comment.
9890 * f-lang.c (f_language_defn): Make extern.
9891 (_initialize_f_language): Remove add_language call.
9892 * go-lang.c (go_language_defn): Make extern.
9893 (_initialize_go_language): Remove add_language call.
9894 * language.c: Include <algorithm>.
9895 (languages): Redefine as const array.
9896 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
9897 (set_language_command): Handle "local". Use for-range loop.
9898 (set_language): Remove loop.
9899 (language_enum): Rewrite.
9900 (language_def, language_str): Remove loops.
9901 (add_language): Delete.
9902 (add_set_language_command): New, based on add_languages.
9903 (skip_language_trampoline): Adjust.
9904 (local_language_defn): Delete.
9905 (language_gdbarch_post_init): Adjust.
9906 (_initialize_language): Remove add_language calls. Call
9907 add_set_language_command.
9908 * language.h (add_language): Delete.
9909 (auto_language_defn)
9910 (unknown_language_defn, minimal_language_defn, ada_language_defn)
9911 (asm_language_defn, c_language_defn, cplus_language_defn)
9912 (d_language_defn, f_language_defn, go_language_defn)
9913 (m2_language_defn, objc_language_defn, opencl_language_defn)
9914 (pascal_language_defn, rust_language_defn): Declare.
9915 * m2-lang.c (m2_language_defn): Make extern.
9916 (_initialize_m2_language): Remove add_language call.
9917 * objc-lang.c (objc_language_defn): Make extern.
9918 (_initialize_objc_language): Remove add_language call.
9919 * opencl-lang.c (opencl_language_defn): Make extern.
9920 (_initialize_opencl_language): Remove add_language call.
9921 * p-lang.c (pascal_language_defn): Make extern.
9922 (_initialize_pascal_language): Delete.
9923 * rust-lang.c (rust_language_defn): Make extern.
9924 (_initialize_rust_language): Delete.
9925 * utils.h (compare_cstrings): New static inline function.
9927 2017-07-20 Pedro Alves <palves@redhat.com>
9929 * ada-lang.c (ada_to_fixed_type_1): Adjust.
9930 (get_var_value): Constify parameters.
9931 (get_int_var_value): Change prototype.
9932 (to_fixed_range_type): Adjust.
9933 * ada-lang.h (get_int_var_value): Change prototype.
9935 2017-07-20 Pedro Alves <palves@redhat.com>
9937 * dwarf2read.c (dw2_lookup_symbol): Use
9938 SYMBOL_MATCHES_SEARCH_NAME.
9939 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
9941 2017-07-20 Pedro Alves <palves@redhat.com>
9943 * block.c (block_iter_name_step, block_iter_name_first)
9944 (block_iter_name_next): Delete.
9945 (block_lookup_symbol_primary): Adjust to use
9946 dict_iter_match_first/dict_iter_match_next.
9947 * block.h (block_iter_name_first, block_iter_name_next): Delete
9949 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
9950 dict_iter_match_first/dict_iter_match_next.
9952 2017-07-20 Pedro Alves <palves@redhat.com>
9954 * cp-support.c (cp_find_first_component_aux): Add missing case for
9957 2017-07-18 David Blaikie <dblaikie@gmail.com>
9959 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
9960 of dwo_cu's dwo_file.
9962 2017-07-18 Yao Qi <yao.qi@linaro.org>
9964 * remote.c (store_registers_using_G): Remove one line comment.
9966 2017-07-18 Yao Qi <yao.qi@linaro.org>
9968 * regcache.c (regcache_cpy): Simplify it.
9969 (regcache::cpy_no_passthrough): Remove it.
9970 * regcache.h (cpy_no_passthrough): Remove it.
9971 (regcache_dup, regcache_cpy): Update comments.
9973 2017-07-18 Pedro Alves <palves@redhat.com>
9975 * remote-sim.c (sim_command_completer): Adjust to work with a
9976 completion_tracker instead of a VEC.
9978 2017-07-17 Pedro Alves <palves@redhat.com>
9980 * completer.c (complete_source_filenames): New function.
9981 (complete_address_and_linespec_locations): New function.
9982 (location_completer): Use complete_address_and_linespec_locations.
9983 (completion_tracker::build_completion_result): Honor the tracker's
9984 request to suppress append.
9985 * completer.h (completion_tracker::suppress_append_ws)
9986 (completion_tracker::set_suppress_append_ws): New methods.
9987 (completion_tracker::m_suppress_append_ws): New field.
9988 (complete_source_filenames): New declaration.
9989 * linespec.c (linespec_complete_what): New.
9990 (struct ls_parser) <complete_what, completion_word,
9991 completion_quote_char, completion_quote_end, completion_tracker>:
9993 (string_find_incomplete_keyword_at_end): New.
9994 (linespec_lexer_lex_string): Record quote char. If in completion
9996 (linespec_lexer_consume_token): Advance the completion word point.
9997 (linespec_lexer_peek_token): Save/restore completion info.
9998 (save_stream_and_consume_token): New.
9999 (set_completion_after_number): New.
10000 (linespec_parse_basic): Set what to complete next depending on
10001 token. Handle function and label completions specially.
10002 (parse_linespec): Disable objc shortcut in completion mode. Set
10003 what to complete next depending on token type. Skip keyword if in
10005 (complete_linespec_component, linespec_complete): New.
10006 * linespec.h (linespec_complete): Declare.
10008 2017-07-17 Pedro Alves <palves@redhat.com>
10010 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10011 Handle 'operator<' / 'operator<<'.
10013 2017-07-17 Pedro Alves <palves@redhat.com>
10015 * completer.c (collect_explicit_location_matches): Handle
10017 (convert_explicit_location_to_linespec): New, factored out from
10019 (convert_explicit_location_to_sals): ... this.
10020 (complete_label): New.
10021 (linespec_complete_label, find_label_symbols_in_block): New.
10022 (find_label_symbols): Add completion_mode parameter and adjust to
10023 call find_label_symbols_in_block.
10024 * linespec.h (linespec_complete_label): Declare.
10026 2017-07-17 Pedro Alves <palves@redhat.com>
10028 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10029 complete_symbol_mode parameter.
10030 * cli/cli-cmds.c (complete_command): Get the completion result out
10031 of the handle_brkchars tracker if used a custom word point.
10032 * completer.c: Include "linespec.h".
10033 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10034 (advance_to_expression_complete_word_point): New.
10035 (completion_tracker::completes_to_completion_word): New.
10036 (complete_files_symbols): Pass down
10037 complete_symbol_mode::EXPRESSION.
10038 (explicit_options, probe_options): New.
10039 (collect_explicit_location_matches): Complete on the
10040 explictit_loc->foo instead of word. Use
10041 linespec_complete_function. Handle MATCH_LINE. Handle offering
10042 keyword and options completions.
10043 (backup_text_ptr): Delete.
10044 (skip_keyword): New.
10045 (complete_explicit_location): Remove 'word' parameter. Add
10046 language, quoted_arg_start and quoted_arg_end parameters.
10047 Rewrite, parsing left to right.
10048 (location_completer): Rewrite.
10049 (location_completer_handle_brkchars): New function.
10050 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10051 (enum complete_line_internal_reason): Adjust comments.
10052 (completion_tracker::discard_completions): New.
10053 (completer_handle_brkchars_func_for_completer): Handle
10054 location_completer.
10055 (gdb_custom_word_point_brkchars)
10056 (gdb_org_rl_basic_quote_characters): New.
10057 (gdb_completion_word_break_characters_throw)
10058 (completion_find_completion_word): Handle trackers that use a
10060 (completion_tracker::advance_custom_word_point_by): New.
10061 (completion_tracker::build_completion_result): Don't rely on
10062 readline appending the quote char.
10063 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10064 use a custom word point.
10065 (gdb_rl_attempted_completion_function): Restore
10066 rl_basic_quote_characters.
10067 * completer.h (class completion_tracker): Extend intro comment.
10068 (completion_tracker::set_quote_char)
10069 (completion_tracker::quote_char)
10070 (completion_tracker::set_use_custom_word_point)
10071 (completion_tracker::use_custom_word_point)
10072 (completion_tracker::custom_word_point)
10073 (completion_tracker::set_custom_word_point)
10074 (completion_tracker::advance_custom_word_point_by)
10075 (completion_tracker::completes_to_completion_word)
10076 (completion_tracker::discard_completions): New methods.
10077 (completion_tracker::m_quote_char)
10078 (completion_tracker::m_use_custom_word_point)
10079 (completion_tracker::m_custom_word_point): New fields.
10080 (advance_to_expression_complete_word_point): Declare.
10081 * f-lang.c (f_collect_symbol_completion_matches): Add
10082 complete_symbol_mode parameter.
10083 * language.h (struct language_defn)
10084 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10086 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10087 (linespec_complete_function): New function.
10088 (linespec_lexer_lex_keyword): Adjust.
10089 * linespec.h (linespec_keywords, linespec_complete_function): New
10091 * location.c (find_end_quote): New function.
10092 (explicit_location_lex_one): Add explicit_completion_info
10093 parameter. Save quoting info. Don't throw if being called for
10094 completion. Don't handle Ada operators here.
10095 (is_cp_operator, skip_op_false_positives, first_of)
10096 (explicit_location_lex_one_function): New function.
10097 (string_to_explicit_location): Replace 'dont_throw' parameter with
10098 an explicit_completion_info pointer parameter. Handle it. Don't
10099 use explicit_location_lex_one to lex function names. Use
10100 explicit_location_lex_one_function instead.
10101 * location.h (struct explicit_completion_info): New.
10102 (string_to_explicit_location): Replace 'dont_throw' parameter with
10103 an explicit_completion_info pointer parameter.
10104 * symtab.c (default_collect_symbol_completion_matches_break_on):
10105 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10106 (default_collect_symbol_completion_matches)
10107 (collect_symbol_completion_matches): Add complete_symbol_mode
10109 (collect_symbol_completion_matches_type): Pass down
10110 complete_symbol_mode::EXPRESSION.
10111 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10112 parameter. Handle LINESPEC mode.
10113 * symtab.h (complete_symbol_mode): New.
10114 (default_collect_symbol_completion_matches_break_on)
10115 (default_collect_symbol_completion_matches)
10116 (collect_symbol_completion_matches)
10117 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10120 2017-07-17 Pedro Alves <palves@redhat.com>
10122 * utils.c (enum class strncmp_iw_mode): New.
10123 (strcmp_iw): Rename to ...
10124 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10125 parameters. Handle them.
10127 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10128 * utils.h (strncmp_iw): Declare.
10129 (strcmp_iw): Move describing comments here.
10131 2017-07-17 Pedro Alves <palves@redhat.com>
10133 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10135 * c-typeprint.c (is_type_conversion_operator): Use
10137 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10138 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10140 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10141 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10142 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10143 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10145 * location.c: Include "cp-support.h".
10146 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10148 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10151 2017-07-17 Pedro Alves <palves@redhat.com>
10153 * cli/cli-cmds.c (complete_command): Use a completion tracker
10154 along with completion_find_completion_word for handle_brkchars
10156 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10157 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10158 (struct gdb_rl_completion_word_info): New.
10159 (gdb_rl_find_completion_word): New.
10160 (completion_find_completion_word): New.
10161 * completer.h (completion_find_completion_word): Declare.
10163 2017-07-17 Pedro Alves <palves@redhat.com>
10165 * ada-lang.c (symbol_completion_match): Adjust comments.
10166 (symbol_completion_add): Replace vector parameter with
10167 completion_tracker parameter. Use it.
10168 (ada_make_symbol_completion_list): Rename to...
10169 (ada_collect_symbol_completion_matches): ... this. Add
10170 completion_tracker parameter and use it.
10171 (ada_language_defn): Adjust.
10172 * break-catch-syscall.c (catch_syscall_completer): Adjust
10173 prototype and work with completion_tracker instead of VEC.
10174 * breakpoint.c (condition_completer): Adjust prototype and work
10175 with completion_tracker instead of VEC.
10176 * c-lang.c (c_language_defn, cplus_language_defn)
10177 (asm_language_defn, minimal_language_defn): Adjust to renames.
10178 * cli/cli-cmds.c (complete_command): Rework using
10179 completion_tracker. Catch exceptions when completing.
10180 * cli/cli-decode.c (integer_unlimited_completer)
10181 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10182 with completion_tracker instead of VEC.
10183 * command.h (struct completion_tracker): Forward declare.
10184 (completer_ftype, completer_handle_brkchars_ftype): Change
10186 (complete_on_cmdlist, complete_on_enum): Adjust.
10187 * completer.c: Include <algorithm>.
10188 (struct gdb_completer_state): New.
10189 (current_completion): New global.
10190 (readline_line_completion_function): Delete.
10191 (noop_completer, filename_completer)
10192 (filename_completer_handle_brkchars, complete_files_symbols)
10193 (linespec_location_completer): Adjust to work with a
10194 completion_tracker instead of a VEC.
10195 (string_or_empty): New.
10196 (collect_explicit_location_matches): Adjust to work with a
10197 completion_tracker instead of a VEC.
10198 (explicit_location_completer): Rename to ...
10199 (complete_explicit_location): ... this and adjust to work with a
10200 completion_tracker instead of a VEC.
10201 (location_completer): Adjust to work with a completion_tracker
10203 (add_struct_fields): Adjust to work with a completion_list instead
10205 (expression_completer): Rename to ...
10206 (complete_expression): ... this and adjust to work with a
10207 completion_tracker instead of a VEC. Use complete_files_symbols.
10208 (expression_completer): Reimplement on top of complete_expression.
10209 (symbol_completer): Adjust to work with a completion_tracker
10211 (enum complete_line_internal_reason): Add describing comments.
10212 (complete_line_internal_normal_command): Adjust to work with a
10213 completion_tracker instead of a VEC.
10214 (complete_line_internal): Rename to ...
10215 (complete_line_internal_1): ... this and adjust to work with a
10216 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10217 handle_brkchars phase.
10218 (new_completion_tracker): Delete.
10219 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10220 complete_line_internal_1.
10221 (free_completion_tracker): Delete.
10222 (INITIAL_COMPLETION_HTAB_SIZE): New.
10223 (completion_tracker::completion_tracker)
10224 (completion_tracker::~completion_tracker): New.
10225 (maybe_add_completion): Delete.
10226 (completion_tracker::maybe_add_completion)
10227 (completion_tracker::add_completion)
10228 (completion_tracker::add_completions): New.
10229 (throw_max_completions_reached_error): Delete.
10230 (complete_line): Adjust to work with a completion_tracker instead
10231 of a VEC. Don't create a completion_tracker_t or check for max
10233 (command_completer, command_completer_handle_brkchars)
10234 (signal_completer, reg_or_group_completer_1)
10235 (reg_or_group_completer, default_completer_handle_brkchars):
10236 Adjust to work with a completion_tracker.
10237 (gdb_completion_word_break_characters_throw): New.
10238 (gdb_completion_word_break_characters): Reimplement.
10239 (line_completion_function): Delete.
10240 (completion_tracker::recompute_lowest_common_denominator)
10241 (expand_preserving_ws)
10242 (completion_tracker::build_completion_result)
10243 (completion_result::completion_result)
10244 (completion_result::completion_result)
10245 (completion_result::~completion_result)
10246 (completion_result::completion_result)
10247 (completion_result::release_match_list, compare_cstrings)
10248 (completion_result::sort_match_list)
10249 (completion_result::reset_match_list)
10250 (gdb_rl_attempted_completion_function_throw)
10251 (gdb_rl_attempted_completion_function): New.
10252 * completer.h (completion_list, struct completion_result)
10253 (class completion_tracker): New.
10254 (complete_line): Add completion_tracker parameter.
10255 (readline_line_completion_function): Delete.
10256 (gdb_rl_attempted_completion_function): New.
10257 (noop_completer, filename_completer, expression_completer)
10258 (location_completer, symbol_completer, command_completer)
10259 (signal_completer, reg_or_group_completer): Update prototypes.
10260 (completion_tracker_t, new_completion_tracker)
10261 (make_cleanup_free_completion_tracker): Delete.
10262 (enum maybe_add_completion_enum): Delete.
10263 (maybe_add_completion): Delete.
10264 (throw_max_completions_reached_error): Delete.
10265 * corefile.c (complete_set_gnutarget): Adjust to work with a
10266 completion_tracker instead of a VEC.
10267 * cp-abi.c (cp_abi_completer): Adjust to work with a
10268 completion_tracker instead of a VEC.
10269 * d-lang.c (d_language_defn): Adjust.
10270 * disasm.c (disassembler_options_completer): Adjust to work with a
10271 completion_tracker instead of a VEC.
10272 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10273 (f_collect_symbol_completion_matches): ... this. Adjust to work
10274 with a completion_tracker instead of a VEC.
10275 (f_language_defn): Adjust.
10276 * go-lang.c (go_language_defn): Adjust.
10277 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10278 Adjust to work with a completion_tracker instead of a VEC.
10279 * infrun.c (handle_completer): Likewise.
10280 * interps.c (interpreter_completer): Likewise.
10281 * interps.h (interpreter_completer): Likewise.
10282 * language.c (unknown_language_defn, auto_language_defn)
10283 (local_language_defn): Adjust.
10284 * language.h (language_defn::la_make_symbol_completion_list):
10286 (language_defn::la_collect_symbol_completion_matches): ... this
10287 and adjust to work with a completion_tracker instead of a VEC.
10288 * m2-lang.c (m2_language_defn): Adjust.
10289 * objc-lang.c (objc_language_defn): Adjust.
10290 * opencl-lang.c (opencl_language_defn): Adjust.
10291 * p-lang.c (pascal_language_defn): Adjust.
10292 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10293 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10294 with a completion_tracker.
10295 * rust-lang.c (rust_language_defn): Adjust.
10296 * symtab.c (free_completion_list, do_free_completion_list)
10297 (return_val, completion_tracker): Delete.
10298 (completion_list_add_name, completion_list_add_symbol)
10299 (completion_list_add_msymbol, completion_list_objc_symbol)
10300 (completion_list_add_fields, add_symtab_completions): Add
10301 completion_tracker parameter and use it.
10302 (default_make_symbol_completion_list_break_on_1): Rename to...
10303 (default_collect_symbol_completion_matches_break_on): ... this.
10304 Add completion_tracker parameter and use it instead of allocating
10305 a completion tracker here.
10306 (default_make_symbol_completion_list_break_on): Delete old
10308 (default_make_symbol_completion_list): Delete.
10309 (default_collect_symbol_completion_matches): New.
10310 (make_symbol_completion_list): Delete.
10311 (collect_symbol_completion_matches): New.
10312 (make_symbol_completion_type): Rename to ...
10313 (collect_symbol_completion_matches_type): ... this. Add
10314 completion_tracker parameter and use it instead of VEC.
10315 (make_file_symbol_completion_list_1): Rename to...
10316 (collect_file_symbol_completion_matches): ... this. Add
10317 completion_tracker parameter and use it instead of VEC.
10318 (make_file_symbol_completion_list): Delete.
10319 (add_filename_to_list): Use completion_list instead of a VEC.
10320 (add_partial_filename_data::list): Now a completion_list.
10321 (make_source_files_completion_list): Work with a completion_list
10323 * symtab.h: Include "completer.h".
10324 (default_make_symbol_completion_list_break_on)
10325 (default_make_symbol_completion_list, make_symbol_completion_list)
10326 (make_symbol_completion_type, make_file_symbol_completion_list)
10327 (make_source_files_completion_list): Delete.
10328 (default_collect_symbol_completion_matches_break_on)
10329 (default_collect_symbol_completion_matches)
10330 (collect_symbol_completion_matches)
10331 (collect_symbol_completion_matches_type)
10332 (collect_file_symbol_completion_matches)
10333 (make_source_files_completion_list): New.
10334 * top.c (init_main): Don't install a rl_completion_entry_function
10335 hook. Install a rl_attempted_completion_function hook instead.
10336 * tui/tui-layout.c (layout_completer): Adjust to work with a
10337 completion_tracker.
10338 * tui/tui-regs.c (tui_reggroup_completer):
10339 * tui/tui-win.c (window_name_completer, focus_completer)
10340 (winheight_completer): Adjust to work with a completion_tracker.
10341 * value.c: Include "completer.h".
10342 (complete_internalvar): Adjust to work with a completion_tracker.
10343 * value.h (complete_internalvar): Likewise.
10345 2017-07-17 Pedro Alves <palves@redhat.com>
10347 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10349 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10350 comments to completer_ftype's declaration.
10351 <completer_handle_brkchars>: Change type to
10352 completer_handle_brkchars_ftype.
10353 * command.h (completer_ftype): Add describing comment and give
10354 names to parameters.
10355 (completer_ftype_void): Rename to ...
10356 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10357 (set_cmd_completer_handle_brkchars): Adjust.
10358 * completer.c (filename_completer_handle_brkchars): New function.
10359 (complete_line_internal_normal_command): New function, factored
10361 (complete_line_internal): ... here.
10362 (command_completer_handle_brkchars)
10363 (default_completer_handle_brkchars)
10364 (completer_handle_brkchars_func_for_completer): New functions.
10365 * completer.h (set_gdb_completion_word_break_characters): Delete
10367 (completer_handle_brkchars_func_for_completer): New declaration.
10368 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10369 completer_handle_brkchars_func_for_completer.
10371 2017-07-17 Pedro Alves <palves@redhat.com>
10373 * completer.c (symbol_completer): New function, based on
10374 make_symbol_completion_list_fn.
10375 * completer.h (symbol_completer): New declaration.
10376 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10377 * python/py-cmd.c (completers): Adjust.
10378 * symtab.c (make_symbol_completion_list_fn): Delete.
10379 * symtab.h (make_symbol_completion_list_fn): Delete.
10380 * cli/cli-decode.c (add_cmd): Adjust.
10382 2017-07-17 Pedro Alves <palves@redhat.com>
10384 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10385 * dwarf2read.c: Include "filename-seen-cache.h".
10386 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10387 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10388 * filename-seen-cache.c: New file.
10389 * filename-seen-cache.h: New file.
10390 * symtab.c: Include "filename-seen-cache.h".
10391 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10392 (create_filename_seen_cache, clear_filename_seen_cache)
10393 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10394 to filename-seen-cache.h/filename-seen-cache.c.
10395 (output_source_filename, sources_info)
10396 (maybe_add_partial_symtab_filename)
10397 (make_source_files_completion_list): Adjust to use
10398 filename_seen_cache.
10400 2017-07-17 Pedro Alves <palves@redhat.com>
10402 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10404 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10405 dwarf2_debug_sections*)): New.
10406 (dwarf2_per_objfile::dwarf2_per_objfile(const
10407 dwarf2_per_objfile&)): Declare as deleted.
10408 (dwarf2_per_objfile::operator=): Declare as deleted.
10409 (dwarf2_per_objfile::dwarf2_per_objfile)
10410 (dwarf2_per_objfile::~dwarf2_per_objfile)
10411 (dwarf2_per_objfile::free_cached_comp_units): New.
10412 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10413 ctor. Call dwarf2_per_objfile's ctor manually.
10414 (dwarf2_locate_sections): Deleted/refactored as ...
10415 (dwarf2_per_objfile::locate_sections): ... this new method.
10416 (free_cached_comp_units): Defer to
10417 dwarf2_per_objfile::free_cached_comp_units.
10418 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10420 2017-07-14 Tom Tromey <tom@tromey.com>
10423 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10425 <UNOP_SIZEOF>: Split into separate case.
10426 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10428 2017-07-14 Tom Tromey <tom@tromey.com>
10431 * symtab.c (symbol_matches_domain): Add language_rust to special
10433 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10434 treat LOC_TYPEDEF symbols as variables.
10436 2017-07-14 Pedro Alves <palves@redhat.com>
10438 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10439 symtabs matching all symtabs with SRCFILE as file name instead of
10440 only considering the first hit, with lookup_symtab.
10442 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10444 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10445 operator_name parameters.
10446 (gen_expr): Update function call.
10448 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10450 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10452 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10454 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10455 parameter, use agent_expr::gdbarch instead, update function
10457 (locexpr_tracepoint_var_ref): Likewise.
10458 (loclist_tracepoint_var_ref): Likewise.
10459 * ax-gdb.c (gen_trace_static_fields): Likewise.
10460 (gen_traced_pop): Likewise.
10461 (gen_frame_args_address): Likewise.
10462 (gen_frame_locals_address): Likewise.
10463 (gen_var_ref): Likewise.
10464 (gen_struct_ref_recursive): Likewise.
10465 (gen_static_field): Likewise.
10466 (gen_maybe_namespace_elt): Likewise.
10467 (gen_expr): Likewise.
10468 (gen_trace_for_var): Likewise.
10469 (gen_trace_for_expr): Likewise.
10470 (gen_trace_for_return_address): Likewise.
10472 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10474 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10476 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10478 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10480 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10481 from ax, update calls.
10482 (gen_usual_arithmetic): Likewise.
10483 (gen_integral_promotions): Likewise.
10484 (gen_bitfield_ref): Likewise.
10485 (gen_primitive_field): Likewise.
10486 (gen_struct_ref_recursive): Likewise.
10487 (gen_struct_ref): Likewise.
10488 (gen_maybe_namespace_elt): Likewise.
10489 (gen_struct_elt_for_reference): Likewise.
10490 (gen_namespace_elt): Likewise.
10491 (gen_aggregate_elt_ref): Likewise.
10492 (gen_expr): Get gdbarch from ax, update calls.
10493 (gen_expr_binop_rest): Likewise.
10495 2017-07-13 Pedro Alves <palves@redhat.com>
10497 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10499 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10500 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10501 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10502 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10504 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10505 Get final tdesc from the tdep.
10506 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10508 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10509 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10510 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10511 Use it as default tdesc.
10512 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10513 down to amd_init_abi. No longer handle fallback tdesc here.
10514 * amd64-tdep.h (tdesc_x32): Declare.
10515 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10517 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10520 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10522 * s390-linux-tdep.c (s390_process_record): Add support for
10523 instructions new in arch12.
10525 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10527 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10528 PT_GETFSBASE and PT_GETGSBASE.
10529 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10532 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10534 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10535 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10536 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10538 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10539 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10540 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10541 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10542 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10543 * features/i386/amd64.xml: Add 64bit-segments.xml.
10544 * features/i386/amd64-avx-avx512.c: Regenerated.
10545 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10546 * features/i386/amd64-avx-mpx.c: Regenerated.
10547 * features/i386/amd64-avx.c: Regenerated.
10548 * features/i386/amd64-mpx.c: Regenerated.
10549 * features/i386/amd64.c: Regenerated.
10550 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10551 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10552 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10553 * regformats/i386/amd64-avx.dat: Regenerated.
10554 * regformats/i386/amd64-mpx.dat: Regenerated.
10555 * regformats/i386/amd64.dat: Regenerated.
10557 2017-07-10 Yao Qi <yao.qi@linaro.org>
10559 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10560 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10562 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10564 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10566 * gnulib/aclocal.m4: Regenerate.
10567 * gnulib/config.in: Regenerate.
10568 * gnulib/configure: Regenerate.
10569 * gnulib/import/Makefile.am: Regenerate.
10570 * gnulib/import/Makefile.in: Regenerate.
10571 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10572 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10573 * gnulib/import/m4/environ.m4: New file.
10574 * gnulib/import/m4/setenv.m4: New file.
10575 * gnulib/import/setenv.c: New file.
10576 * gnulib/import/unsetenv.c: New file.
10578 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10580 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10581 address when op is DW_OP_addr.
10583 2017-07-09 Tom Tromey <tom@tromey.com>
10585 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10586 check and apply to outer type.
10588 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10590 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10591 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10592 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10593 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10595 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10597 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10599 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10601 * corelow.c (get_core_siginfo): Remove.
10602 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10603 instead of get_core_siginfo.
10604 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10605 * gdbarch.h: Re-generate.
10606 * gdbarch.c: Re-generate.
10607 * linux-tdep.c (linux_core_xfer_siginfo): New.
10608 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10610 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10612 * corelow.c (thread_section_name): Move to ...
10613 * gdbcore.h (thread_section_name): ... here.
10615 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10617 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
10618 (struct siginfo32): New.
10619 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
10620 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
10621 via ptrace(PT_LWPINFO).
10623 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10625 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
10626 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
10627 (fbsd_get_siginfo_type): New.
10628 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
10629 (_initialize_fbsd_tdep): New.
10631 2017-07-06 David Blaikie <dblaikie@gmail.com>
10633 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
10634 a singular dwo_unit*) to support multiple CUs in the same way that
10635 multiple TUs are supported.
10636 (create_cus_hash_table): Replace create_dwo_cu with a function for
10637 parsing multiple CUs from a DWO file.
10638 (open_and_init_dwo_file): Use create_cus_hash_table rather than
10640 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
10641 htab_find, rather than comparing the signature to a singleton CU in
10644 2017-07-06 Pedro Alves <palves@redhat.com>
10646 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
10648 2017-07-04 Pedro Alves <palves@redhat.com>
10650 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
10651 * gdbtypes.h (TYPE_STATIC): Delete.
10652 (struct fn_field) <is_public, is_abstract, is_static, is_final,
10653 is_synchronized, is_native>: Delete.
10655 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
10656 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
10657 (TYPE_FN_FIELD_ABSTRACT): Delete.
10659 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
10661 * buffer.h (buffer_finish): Fix spelling mistakes.
10663 2017-07-01 Eli Zaretskii <eliz@gnu.org>
10665 * .dir-locals.el: Automatically switch to C-style comments in
10666 versions of Emacs that support the feature.
10668 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10669 Pedro Alves <palves@redhat.com>
10672 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
10673 (process_next_line): New variable 'inline_cmd'.
10674 Adjust 'if' clauses for "python", "compile" and "guile" to use
10675 'command_name_equals' and check for '!inline_cmd'.
10677 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10680 * cli/cli-script.c (command_name_equals_not_inline): New function.
10681 (process_next_line): Adjust 'if' clauses for "python", "compile"
10682 and "guile" to use command_name_equals_not_inline.
10684 2017-06-29 Pedro Alves <palves@redhat.com>
10686 * completer.c (expression_completer): Call
10687 linespec_location_completer instead of location_completer.
10689 2017-06-29 Pedro Alves <palves@redhat.com>
10691 * completer.c (expression_completer): Remove code that recomputes
10692 'text' from 'word'.
10694 2017-06-29 Yao Qi <yao.qi@linaro.org>
10696 * regformats/regdat.sh: Generate code with
10697 "ifndef IN_PROCESS_AGENT".
10699 2017-06-28 Pedro Alves <palves@redhat.com>
10701 * command.h: Include "common/scoped_restore.h".
10703 2017-06-28 Yao Qi <yao.qi@linaro.org>
10705 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
10706 instead of obstack_grow.
10708 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
10711 * symfile.c (reread_symbols): Call objfiles_changed just before
10714 2017-06-27 Pedro Alves <palves@redhat.com>
10716 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
10717 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
10718 (completion_list_add_symbol, completion_list_add_msymbol):
10719 ... these new functions.
10720 (add_symtab_completions)
10721 (default_make_symbol_completion_list_break_on_1): Adjust.
10723 2017-06-27 Pedro Alves <palves@redhat.com>
10725 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10726 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10727 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10729 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10730 'storage_obstack' field an auto_obstack. In-class initialize all
10731 non-bitfield fields. Make minsyms_read bool.
10732 * symfile.c (read_symbols): Adjust.
10734 2017-06-27 Alan Hayward <alan.hayward@arm.com>
10736 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10737 (gdbsim_store_register): Likewise.
10739 2017-06-27 Pedro Alves <palves@redhat.com>
10741 * c-exp.y (name_obstack): Now an auto_obstack.
10742 (yylex): Use auto_obstack::clear.
10743 (c_parse): Use auto_obstack::clear instead of reinitializing and
10744 freeing the obstack.
10745 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10746 * d-exp.y (name_obstack): Now an auto_obstack.
10747 (yylex): Use auto_obstack::clear.
10748 (d_parse): Use auto_obstack::clear instead of reinitializing and
10749 freeing the obstack.
10750 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10752 * dwarf2read.c (create_addrmap_from_index)
10753 (dwarf2_build_psymtabs_hard)
10754 (update_enumeration_type_from_children): Likewise.
10755 * gdb_obstack.h (auto_obstack): New type.
10756 * go-exp.y (name_obstack): Now an auto_obstack.
10757 (build_packaged_name): Use auto_obstack::clear.
10758 (go_parse): Use auto_obstack::clear instead of reinitializing and
10759 freeing the obstack.
10760 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10762 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
10763 * rust-exp.y (work_obstack): Now an auto_obstack.
10764 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
10765 reinitializing and freeing the obstack.
10766 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
10767 (host_char_to_target): Use auto_obstack.
10768 * utils.h (make_cleanup_obstack_free): Delete declaration.
10769 * valprint.c (generic_emit_char, generic_printstr): Use
10772 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
10774 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
10776 (darwin_init_thread_list): Don't update dummy thread.
10777 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
10779 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10781 * record-full.c (netorder16): Remove.
10783 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10785 * common/diagnostics.h: Define macros for GCC.
10786 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
10787 * common/vec.h: Include diagnostics.h.
10788 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
10789 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
10792 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10794 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
10796 * ada-lex.l: Ignore deprecated register warnings.
10798 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10800 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10801 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10803 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10805 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10808 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10810 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10812 2017-06-23 Alan Hayward <alan.hayward@arm.com>
10814 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
10815 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
10816 (xtensa_register_read_masked): Likewise.
10818 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
10820 * common/environ.c (gdb_environ::unset): Update comment.
10822 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10824 * python/py-unwind.c (pyuw_sniffer): Allocate space for
10827 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10829 * record-full.c (record_full_exec_insn): Use byte_vector.
10831 2017-06-22 Yao Qi <yao.qi@linaro.org>
10833 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
10834 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10836 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10838 * remote.c (cached_reg): Move from here...
10839 * regcache.h (cached_reg): ...to here.
10840 * python/py-unwind.c (struct reg_info): Remove.
10841 (cached_frame_info): Use cached_reg_t.
10842 (pyuw_prev_register): Likewise.
10843 (pyuw_sniffer): Use cached_reg_t and allocate registers.
10844 (pyuw_dealloc_cache): Free all registers.
10846 2017-06-22 Pedro Alves <palves@redhat.com>
10847 Simon Marchi <simon.marchi@ericsson.com>
10849 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
10851 * common/diagnostics.h: New file.
10853 2017-06-22 Pedro Alves <palves@redhat.com>
10855 * common/agent.h: Add include guards.
10857 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
10859 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
10860 talk about addressable units instead of bytes.
10862 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10864 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
10865 of '::const_iterator'.
10867 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10869 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10870 'unittests/environ-selftests.c'.
10871 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
10872 * charset.c (find_charset_names): Declare object 'iconv_env'.
10873 Update code to use 'iconv_env' object. Remove call to
10875 * common/environ.c: Include <utility>.
10876 (make_environ): Delete function.
10877 (free_environ): Delete function.
10878 (gdb_environ::clear): New function.
10879 (gdb_environ::operator=): New function.
10880 (gdb_environ::get): Likewise.
10881 (environ_vector): Delete function.
10882 (set_in_environ): Delete function.
10883 (gdb_environ::set): New function.
10884 (unset_in_environ): Delete function.
10885 (gdb_environ::unset): New function.
10886 (gdb_environ::envp): Likewise.
10887 * common/environ.h: Include <vector>.
10888 (struct gdb_environ): Delete; transform into...
10889 (class gdb_environ): ... this class.
10890 (free_environ): Delete prototype.
10891 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
10892 environ_vector): Likewise.
10893 * infcmd.c (run_command_1): Update code to call
10894 'envp' from 'gdb_environ' class.
10895 (environment_info): Update code to call methods from 'gdb_environ'
10897 (unset_environment_command): Likewise.
10898 (path_info): Likewise.
10899 (path_command): Likewise.
10900 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
10901 (inferior::inferior): Initialize 'environment' using the host's
10903 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
10904 Include "environ.h".
10905 (class inferior) <environment>: Change type from 'struct
10906 gdb_environ' to 'gdb_environ'.
10907 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
10908 methods from 'gdb_environ' class.
10909 * solib.c (solib_find_1): Likewise
10910 * unittests/environ-selftests.c: New file.
10912 2017-06-20 Yao Qi <yao.qi@linaro.org>
10914 * features/i386/i386-linux.xml: Exchange the order of including
10915 32bit-linux.xml and 32bit-sse.xml.
10916 * features/i386/i386-linux.c: Regenerated.
10918 2017-06-20 Yao Qi <yao.qi@linaro.org>
10920 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
10921 Delete copy ctor and assignment operator.
10922 (tdesc_type): Likewise.
10923 (tdesc_feature): Likewise.
10924 (tdesc_free_reg): Remove.
10925 (tdesc_create_reg): Use new.
10926 (tdesc_free_type): Remove.
10927 (tdesc_create_vector): Use new.
10928 (tdesc_create_union): Likewise.
10929 (tdesc_create_flags): Likewise.
10930 (tdesc_create_enum): Likewise.
10931 (tdesc_free_feature): Delete.
10932 (free_target_description): Use delete.
10934 2017-06-19 John Baldwin <jhb@FreeBSD.org>
10936 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
10939 2017-06-19 Pedro Alves <palves@redhat.com>
10941 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
10942 after gdb::unlinker.
10944 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
10946 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
10947 gdb_environ to access an environment variable.
10949 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10951 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
10954 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10956 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
10958 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10960 * configure: Re-generate.
10961 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
10963 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10965 * configure: Re-generate.
10966 * warning.m4: Pass -Werror to compiler when checking for
10967 supported warning flags.
10969 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10971 * Makefile.in (COMPILE.pre): Add "-x c++".
10973 2017-06-16 Alan Hayward <alan.hayward@arm.com>
10974 Pedro Alves <palves@redhat.com>
10975 Yao Qi <yao.qi@linaro.org>
10977 * defs.h (RequireLongest): New.
10978 (extract_integer): Declare function template.
10979 (extract_signed_integer): Remove the declaration, but define it
10981 (extract_unsigned_integer): Likewise.
10982 (store_integer): Declare function template.
10983 (store_signed_integer): Remove the declaration, but define it
10985 (store_unsigned_integer): Likewise.
10986 * findvar.c (extract_integer): New function template.
10987 (extract_signed_integer): Remove.
10988 (extract_unsigned_integer): Remove.
10989 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
10991 (store_integer): New function template.
10992 (store_signed_integer): Remove.
10993 (store_unsigned_integer): Remove.
10994 (store_integer): Explicit instantiations.
10995 * regcache.c (regcache_raw_read_signed): Update.
10996 (regcache::raw_read): New function.
10997 (regcache::raw_read_signed): Remove.
10998 (regcache::raw_read_unsigned): Remove.
10999 (regcache_raw_read_unsigned): Update.
11000 (regcache_raw_write_unsigned): Update.
11001 (regcache::raw_write_signed): Remove.
11002 (regcache::raw_write): New function.
11003 (regcache_cooked_read_signed): Update.
11004 (regcache::raw_write_unsigned): Remove.
11005 (regcache::cooked_read_signed): Remove.
11006 (regcache_cooked_read_unsigned): Update.
11007 (regcache::cooked_read_unsigned): Remove.
11008 (regcache_cooked_write_signed): Update.
11009 (regcache_cooked_write_unsigned): Update.
11010 * regcache.h (regcache) <raw_read_signed>: Remove.
11011 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11012 <raw_read, raw_write>: New.
11013 <cooked_read_signed, cooked_write_signed>: Remove.
11014 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11015 <cooked_read, cooked_write>: New.
11016 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11017 (sh64_pseudo_register_write): Update.
11019 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11021 * arc-tdep.c (arc_disassembler_options): New variable.
11022 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11023 of default_print_insn.
11024 (arc_delayed_print_insn): Set info->section when needed,
11025 use default_print_insn to retrieve a disassembler.
11027 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11030 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11031 to mention $SHELL and startup-with-shell.
11033 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11035 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11037 2017-06-14 Yao Qi <yao.qi@linaro.org>
11039 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11040 default_print_insn instead of print_insn_aarch64.
11041 * arm-tdep.c (gdb_print_insn_arm): Call
11042 default_print_insn instead of print_insn_big_arm
11043 and print_insn_little_arm.
11044 * i386-tdep.c (i386_print_insn): Call default_print_insn
11045 instead of print_insn_i386.
11046 * ia64-tdep.c (ia64_print_insn): Call
11047 default_print_insn instead of print_insn_ia64.
11048 * mips-tdep.c (gdb_print_insn_mips): Call
11049 default_print_insn instead of print_insn_big_mips
11050 and print_insn_little_mips.
11051 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11052 instead of print_insn_spu.
11054 2017-06-14 Pedro Alves <palves@redhat.com>
11056 * ada-lang.c: Include "common/byte-vector.h".
11057 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11058 * charset.c (wchar_iterator::iterate): Resize the vector instead
11060 * common/byte-vector.h: Include "common/def-vector.h".
11061 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11062 * cli/cli-dump.c: Include "common/byte-vector.h".
11063 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11064 * common/byte-vector.h: New file.
11065 * common/def-vector.h: New file.
11066 * common/default-init-alloc.h: New file.
11067 * dwarf2loc.c: Include "common/byte-vector.h".
11068 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11069 instead of reserving it.
11070 * dwarf2read.c: Include "common/byte-vector.h".
11071 (data_buf::m_vec): Now a gdb::byte_vector.
11072 * gdb_regex.c: Include "common/def-vector.h".
11073 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11074 * mi/mi-main.c: Include "common/byte-vector.h".
11075 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11076 * printcmd.c: Include "common/byte-vector.h".
11077 (print_scalar_formatted): Use gdb::byte_vector.
11078 * valprint.c: Include "common/byte-vector.h".
11079 (maybe_negate_by_bytes, print_decimal_chars): Use
11082 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11084 * darwin-nat.c: Include "nat/fork-inferior.h".
11086 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11088 * configure.nat: Factor out Darwin bits that are not
11089 architecture-specific. Add fork-inferior.o.
11091 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11093 * configure.nat: Factor out AIX bits that are not
11094 architecture-specific. Add fork-inferior.o.
11096 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11098 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11099 (read_pieced_value, write_pieced_value): ...here. Reduce to
11100 wrappers that just call rw_pieced_value.
11102 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11104 * dwarf2loc.c (write_pieced_value): When writing the data for a
11105 memory piece, use write_memory_with_notification instead of
11108 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11110 * valops.c (read_value_memory): Change embedded_offset to
11111 represent a bit offset instead of a byte offset.
11112 * value.h (read_value_memory): Adjust comment.
11114 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11116 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11117 dest_offset_bits and source_offset_bits.
11118 (write_pieced_value): Likewise.
11120 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11122 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11123 given by DW_OP_bit_piece.
11124 (write_pieced_value): Likewise.
11126 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11128 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11129 some other preparations to the places where sufficient information
11131 (write_pieced_value): Likewise.
11133 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11135 * dwarf2loc.c (bits_to_bytes): New function.
11136 (read_pieced_value): Fix offset calculations for register pieces
11137 on big-endian targets.
11138 (write_pieced_value): Likewise.
11140 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11142 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11143 (write_pieced_value): Likewise.
11145 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11147 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11148 transfer the source value's least significant bits, instead of its
11149 lowest-addressed ones. Rename type_len to max_offset.
11150 (read_pieced_value): Mirror above changes to write_pieced_value as
11153 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11155 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11156 truncate full bytes from dest_offset_bits before using it as an
11157 offset into the buffer.
11159 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11161 * dwarf2loc.c (write_pieced_value): Include transfer size in
11164 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11166 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11167 calculation of this_size.
11169 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11171 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11172 when targeting a bit-field.
11173 (write_pieced_value): Likewise.
11175 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11177 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11178 (allocate_piece_closure): Drop addr_size parameter.
11179 (dwarf2_evaluate_loc_desc_full): Adjust call to
11180 allocate_piece_closure.
11182 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11185 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11186 the LSB end, independent of endianness.
11188 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11190 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11193 2017-06-13 Yao Qi <yao.qi@linaro.org>
11195 * mips-linux-nat.c: Move include features/mips*-linux.c to
11197 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11198 to mips-linux-tdep.c.
11199 * mips-linux-tdep.c: Include features/mips*-linux.c
11200 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11202 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11203 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11204 (tdesc_mips64_dsp_linux): Declare.
11206 2017-06-12 Tom Tromey <tom@tromey.com>
11208 * valprint.h (val_print_type_code_int): Remove.
11209 * valprint.c (generic_val_print_int): Always call
11210 val_print_scalar_formatted.
11211 (val_print_type_code_int): Remove.
11212 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11213 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11214 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11215 * ada-valprint.c (ada_val_print_num): Use
11216 val_print_scalar_formatted.
11218 2017-06-12 Tom Tromey <tom@tromey.com>
11220 * printcmd.c (print_scalar_formatted): Unify the two switches.
11221 Don't convert scalars to LONGEST.
11223 2017-06-12 Tom Tromey <tom@tromey.com>
11226 * valprint.h (print_decimal_chars): Update.
11227 * valprint.c (maybe_negate_by_bytes): New function.
11228 (print_decimal_chars): Add "is_signed" argument.
11229 * printcmd.c (print_scalar_formatted): Update.
11231 2017-06-12 Tom Tromey <tom@tromey.com>
11234 * valprint.h (print_binary_chars, print_hex_chars): Update.
11235 * valprint.c (val_print_type_code_int): Update.
11236 (print_binary_chars): Add "zero_pad" argument.
11237 (emit_octal_digit): New function.
11238 (print_octal_chars): Don't zero-pad.
11239 (print_decimal_chars): Likewise.
11240 (print_hex_chars): Add "zero_pad" argument.
11241 * sh64-tdep.c (sh64_do_fp_register): Update.
11242 * regcache.c (regcache::dump): Update.
11243 * printcmd.c (print_scalar_formatted): Update.
11244 * infcmd.c (default_print_one_register_info): Update.
11246 2017-06-12 Pedro Alves <palves@redhat.com>
11247 Alan Hayward <alan.hayward@arm.com>
11249 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11250 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11251 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11252 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11253 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11255 2017-06-12 Pedro Alves <palves@redhat.com>
11257 * dwarf2read.c (mapped_symtab::data): Now a vector of
11258 symtab_index_entry instead of vector of
11259 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11260 whether an element's name is NULL instead of checking whether the
11261 element itself is NULL.
11262 (find_slot): Change return type. Adjust.
11263 (hash_expand, , add_index_entry, uniquify_cu_indices)
11264 (write_hash_table): Adjust.
11266 2017-06-12 Pedro Alves <palves@redhat.com>
11268 * dwarf2read.c (recursively_count_psymbols): New function.
11269 (write_psymtabs_to_index): Call it to compute number of psyms and
11270 pass estimate size of psyms_seen to unordered_set's ctor.
11272 2017-06-12 Pedro Alves <palves@redhat.com>
11274 * dwarf2read.c (write_hash_table): Check if key already exists
11277 2017-06-12 Pedro Alves <palves@redhat.com>
11279 * dwarf2read.c (data_buf::append_space): Rename to...
11280 (data_buf::grow): ... this, and make private. Adjust all callers.
11281 (data_buf::append_uint): New method.
11282 (add_address_entry, write_one_signatured_type)
11283 (write_psymtabs_to_index): Use it.
11285 2017-06-12 Pedro Alves <palves@redhat.com>
11287 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11288 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11289 (data_buf::file_write): Call ::fwrite directly.
11291 2017-06-12 Pedro Alves <palves@redhat.com>
11293 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11294 std::vector::erase.
11296 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11298 Code cleanup: C++ify .gdb_index producer.
11299 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11300 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11301 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11302 (create_strtab, add_string): Remove.
11303 (file_write, data_buf): New.
11304 (struct symtab_index_entry): Use std::vector for cu_indices.
11305 (struct mapped_symtab): Use std::vector for data.
11306 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11307 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11309 (find_slot): Change return type. Update it to the new data structures.
11310 (hash_expand, add_index_entry): Update it to the new data structures.
11311 (offset_type_compare): Remove.
11312 (uniquify_cu_indices): Update it to the new data structures.
11313 (c_str_view, c_str_view_hasher, vector_hasher): New.
11314 (add_indices_to_cpool): Remove.
11315 (write_hash_table): Update it to the new data structures.
11316 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11317 (eq_psymtab_cu_index): Remove.
11318 (psym_index_map): New typedef.
11319 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11320 reference and std::unordered_map for cu_index_htab.
11321 (add_address_entry, add_address_entry_worker, write_address_map)
11322 (write_psymbols): Update it to the new data structures.
11323 (write_obstack): Remove.
11324 (struct signatured_type_index_data): Change types_list to a data_buf
11325 reference and psyms_seen to a std::unordered_set reference.
11326 (write_one_signatured_type, recursively_write_psymbols)
11327 (write_psymtabs_to_index): Update it to the new data structures.
11329 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11331 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11332 separate-debug-file commands.
11333 * symfile.h (separate_debug_file_debug): New global.
11334 * symfile.c (separate_debug_file_debug): New global.
11335 (separate_debug_file_exists, find_separate_debug_file): Add
11337 (_initialize_symfile): Add "set debug separate-debug-file"
11339 * build-id.c (build_id_to_debug_bfd,
11340 find_separate_debug_file_by_buildid): Add debug output.
11342 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11344 * gdbarch.sh (displaced_step_free_closure): Remove.
11345 * gdbarch.h, gdbarch.c: Re-generate.
11346 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11347 displaced_step_free_closure.
11348 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11349 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11350 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11351 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11352 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11353 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11354 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11355 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11356 * infrun.c (displaced_step_clear): Call xfree instead of
11357 gdbarch_displaced_step_free_closure.
11359 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11361 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11364 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11366 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11367 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11368 (mn10300_push_dummy_call): Likewise.
11370 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11372 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11374 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11376 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11378 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11380 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11381 able to start inferiors using a shell.
11382 (New remote packets): Announce new packet "QStartupWithShell".
11383 * remote.c: Add PACKET_QStartupWithShell.
11384 (extended_remote_create_inferior): Handle new
11385 PACKET_QStartupWithShell.
11386 (remote_protocol_features) <QStartupWithShell>: New entry for
11387 PACKET_QStartupWithShell.
11388 (_initialize_remote): Call "add_packet_config_cmd" for
11391 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11392 Pedro Alves <palves@redhat.com>
11394 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11395 and "nat/fork-inferior.h".
11396 * common/common-inferior.h: New file, with contents from
11398 * commom/common-utils.c: Include "common-utils.h".
11399 (stringify_argv): New function.
11400 * common/common-utils.h (stringify_argv): New prototype.
11401 * configure.nat: Add "fork-inferior.o" as a dependency for
11402 "*linux*", "fbsd*" and "nbsd*" hosts.
11403 * corefile.c (get_exec_file): Update comment.
11404 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11405 instead of "startup_inferior".
11406 (darwin_create_inferior): Call "add_thread_silent" after
11408 * fork-child.c: Cleanup unnecessary includes.
11409 (SHELL_FILE): Move to "common/common-fork-child.c".
11410 (environ): Likewise.
11411 (exec_wrapper): Initialize.
11412 (get_exec_wrapper): New function.
11413 (breakup_args): Move to "common/common-fork-child.c"; rename to
11414 "breakup_args_for_exec".
11415 (escape_bang_in_quoted_argument): Move to
11416 "common/common-fork-child.c".
11417 (saved_ui): New variable.
11418 (prefork_hook): New function.
11419 (postfork_hook): Likewise.
11420 (postfork_child_hook): Likewise.
11421 (gdb_startup_inferior): Likewise.
11422 (fork_inferior): Move to "common/common-fork-child.c". Update
11423 function to support gdbserver.
11424 (startup_inferior): Likewise.
11425 * gdbcore.h (get_exec_file): Remove declaration.
11426 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11427 instead of "startup_inferior". Call "add_thread_silent" after
11429 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11430 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11431 instead of "startup_inferior". Call "add_thread_silent" after
11433 * inferior.h: Include "common-inferior.h".
11434 (trace_start_error): Move to "common/common-utils.h".
11435 (trace_start_error_with_name): Likewise.
11436 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11437 (startup_inferior): Likewise.
11438 (gdb_startup_inferior): New prototype.
11439 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11440 * nat/fork-inferior.h: New file.
11441 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11442 instead of "startup_inferior". Call "add_thread_silent" after
11444 * target.h (target_terminal_init): Move prototype to
11446 (target_terminal_inferior): Likewise.
11447 (target_terminal_ours): Likewise.
11448 * target/target.h (target_terminal_init): New prototype, moved
11450 (target_terminal_inferior): Likewise.
11451 (target_terminal_ours): Likewise.
11452 * utils.c (gdb_flush_out_err): New function.
11454 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11456 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11457 * common/common-gdbthread.h: New file, with parts from
11459 * gdbthread.h: Include "common-gdbthread.h".
11460 (switch_to_thread): Moved to "common/common-gdbthread.h".
11462 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11464 * Makefile.in (SFILES): Add "common/job-control.c".
11465 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11466 (COMMON_OBS): Add "job-control.o".
11467 * common/job-control.c: New file, with contents from
11469 * common/job-control.h: New file, with contents from "terminal.h".
11470 * fork-child.c: Include "job-control.h".
11471 * inflow.c: Include "job-control.h".
11472 (gdb_setpgid): Move to "common/common-inflow.c".
11473 (_initialize_inflow): Move setting of "job_control" to
11474 "handle_job_control".
11475 * terminal.h (job_control): Moved to "common/common-terminal.h".
11476 (gdb_setpgid): Likewise.
11477 * top.c: Include "job_control.h".
11478 * utils.c: Likewise.
11479 (job_control): Moved to "job-control.c".
11481 2017-06-07 Pedro Alves <palves@redhat.com>
11483 * Makefile.in (SFILES): Add gdb_regex.c.
11484 (COMMON_OBS): Add gdb_regex.o.
11485 * ada-lang.c (ada_add_standard_exceptions)
11486 (ada_add_exceptions_from_frame, name_matches_regex)
11487 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11488 parameter type to compiled_regex. Adjust.
11489 (ada_exceptions_list): Use compiled_regex.
11490 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11491 std::unique_ptr<compiled_regex>.
11492 (exception_catchpoint::~exception_catchpoint): Remove regfree
11494 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11495 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11496 * breakpoint.c (solib_catchpoint::compiled): Now a
11497 std::unique_ptr<compiled_regex>.
11498 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11499 (check_status_catch_solib): Adjust to use compiled_regex.
11500 (add_solib_catchpoint): Adjust to use compiled_regex.
11501 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11502 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11503 compiled_regex reference. Adjust to use it.
11504 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11505 declaration. Include "gdb_regex.h".
11506 (apropos_cmd): Change regex parameter to compiled_regex reference.
11507 * gdb_regex.c: New file.
11508 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11510 (class compiled_regex): New.
11511 * linux-tdep.c: Include "common/gdb_optional.h".
11512 (struct mapping_regexes): New, factored out from
11513 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11514 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11515 gdb::optional and remove cleanups. Adjust to compiled_regex.
11516 * probe.c: Include "common/gdb_optional.h".
11517 (collect_probes): Use compiled_regex and gdb::optional and remove
11519 * skip.c: Include "common/gdb_optional.h".
11520 (skiplist_entry::compiled_function_regexp): Now a
11521 gdb::optional<compiled_regex>.
11522 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11523 (free_skiplist_entry): Remove regfree call.
11524 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11525 compiled_regex and gdb::optional.
11526 * symtab.c: Include "common/gdb_optional.h".
11527 (search_symbols): Use compiled_regex and gdb::optional.
11528 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11529 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11532 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11534 * regcache.c (regcache::save): Avoid buffer use.
11535 (regcache::dump): Likewise.
11537 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11539 * sh-tdep.c (sh_pseudo_register_read): Remove
11541 (sh_pseudo_register_write): Likewise.
11542 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11543 (sh64_pseudo_register_write): Likewise
11545 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11547 * aarch64-tdep.c (aarch64_store_return_value): Use
11549 (aarch64_pseudo_read_value): Likewise.
11550 (aarch64_pseudo_write): Likewise.
11552 2017-06-06 Yao Qi <yao.qi@linaro.org>
11554 * regformats/regdef.h (set_register_cache): Remove the
11557 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11559 * frame.c (frame_unwind_register_signed): Use
11560 frame_unwind_register_value.
11562 2017-06-06 Pedro Alves <palves@redhat.com>
11564 PR breakpoints/21553
11565 * breakpoint.c (create_breakpoints_sal_default)
11566 (init_breakpoint_sal, create_breakpoint_sal): Use
11567 gdb::unique_xmalloc_ptr for string parameters.
11568 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11569 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11570 (base_breakpoint_create_breakpoints_sal)
11571 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11572 (strace_marker_create_breakpoints_sal)
11573 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11575 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11576 gdb::unique_xmalloc_ptr for string parameters.
11577 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11580 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11582 * alpha-tdep.c (alpha_register_to_value): Use
11583 get_frame_register_value.
11584 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11586 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11588 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11589 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11590 (ia64_value_to_register): Likewise.
11591 (ia64_extract_return_value): Likewise.
11592 (ia64_store_return_value): Likewise.
11593 (ia64_push_dummy_call): Likewise.
11595 2017-06-04 Joel Brobecker <brobecker@adacore.com>
11599 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11601 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11603 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11605 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11607 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11609 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11611 * event-loop.c (poll_timers): Unallocate timer using delete
11614 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11616 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
11617 (struct breakpoint) <~breakpoint>: New.
11618 (struct watchpoint): Inherit from breakpoint.
11619 <~watchpoint>: New.
11621 (struct tracepoint): Inherit from breakpoint.
11623 * breakpoint.c (longjmp_breakpoint_ops): Remove.
11624 (struct longjmp_breakpoint): Inherit from breakpoint.
11625 <~longjmp_breakpoint>: New.
11627 (new_breakpoint_from_type): Remove casts.
11628 (watchpoint_in_thread_scope): Remove reference to base field.
11629 (watchpoint_del_at_next_stop): Likewise.
11630 (update_watchpoint): Likewise.
11631 (watchpoint_check): Likewise.
11632 (bpstat_check_watchpoint): Likewise.
11633 (set_longjmp_breakpoint): Likewise.
11634 (struct fork_catchpoint): Inherit from breakpoint.
11636 (struct solib_catchpoint): Inherit from breakpoint.
11637 <~solib_catchpoint>: New.
11639 (dtor_catch_solib): Change to ...
11640 (solib_catchpoint::~solib_catchpoint): ... this.
11641 (breakpoint_hit_catch_solib): Remove reference to base field.
11642 (add_solib_catchpoint): Likewise.
11643 (create_fork_vfork_event_catchpoint): Likewise.
11644 (struct exec_catchpoint): Inherit from breakpoint.
11645 <~exec_catchpoint>: New.
11647 (dtor_catch_exec): Change to ...
11648 (exec_catchpoint::~exec_catchpoint): ... this.
11649 (dtor_watchpoint): Change to ...
11650 (watchpoint::~watchpoint): ... this.
11651 (watch_command_1): Remove reference to base field.
11652 (catch_exec_command_1): Likewise.
11653 (base_breakpoint_dtor): Change to ...
11654 (breakpoint::~breakpoint): ... this.
11655 (base_breakpoint_ops): Remove dtor field value.
11656 (longjmp_bkpt_dtor): Change to ...
11657 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
11658 (strace_marker_create_breakpoints_sal): Remove reference to base
11660 (delete_breakpoint): Don't manually call breakpoint destructor.
11661 (create_tracepoint_from_upload): Remove reference to base field.
11662 (trace_pass_set_count): Likewise.
11663 (initialize_breakpoint_ops): Don't initialize
11664 momentary_breakpoint_ops, don't set dtors.
11665 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
11666 <~ada_catchpoint>: New.
11668 (create_excep_cond_exprs): Remove reference to base field.
11669 (dtor_exception): Change to ...
11670 (ada_catchpoint::~ada_catchpoint): ... this.
11671 (dtor_catch_exception): Remove.
11672 (dtor_catch_exception_unhandled): Remove.
11673 (dtor_catch_assert): Remove.
11674 (create_ada_exception_catchpoint): Remove reference to base
11676 (initialize_ada_catchpoint_ops): Don't set dtors.
11677 * break-catch-sig.c (struct signal_catchpoint): Inherit from
11679 <~signal_catchpoint>: New.
11681 (signal_catchpoint_dtor): Change to ...
11682 (signal_catchpoint::~signal_catchpoint): ... this.
11683 (create_signal_catchpoint): Remove reference to base field.
11684 (initialize_signal_catchpoint_ops): Don't set dtor.
11685 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
11687 <~syscall_catchpoint>: New.
11689 (dtor_catch_syscall): Change to ...
11690 (syscall_catchpoint::~syscall_catchpoint): ... this.
11691 (create_syscall_event_catchpoint): Remove reference to base
11693 (initialize_syscall_catchpoint_ops): Don't set dtor.
11694 * break-catch-throw.c (struct exception_catchpoint): Inherit
11696 <~exception_catchpoint>: New.
11698 (dtor_exception_catchpoint): Change to ...
11699 (exception_catchpoint::~exception_catchpoint): ... this.
11700 (handle_gnu_v3_exceptions): Remove reference to base field.
11701 (initialize_throw_catchpoint_ops): Don't set dtor.
11702 * ctf.c (ctf_get_traceframe_address): Remove reference to base
11704 * remote.c (remote_get_tracepoint_status): Likewise.
11705 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
11706 * tracefile.c (tracefile_fetch_registers): Likewise.
11707 * tracepoint.c (actions_command): Likewise.
11708 (validate_actionline): Likewise.
11709 (tfind_1): Likewise.
11710 (get_traceframe_location): Likewise.
11711 (find_matching_tracepoint_location): Likewise.
11712 (parse_tracepoint_status): Likewise.
11713 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
11715 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11717 * breakpoint.c (struct longjmp_breakpoint): New struct.
11718 (is_tracepoint_type): Change return type to bool.
11719 (is_longjmp_type): New function.
11720 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
11721 (set_raw_breakpoint_without_location): Use
11722 new_breakpoint_from_type.
11723 (set_raw_breakpoint): Likewise.
11725 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11727 * breakpoint.c (new_breakpoint_from_type): New function.
11728 (create_breakpoint_sal): Use new_breakpoint_from_type and
11730 (create_breakpoint): Likewise.
11732 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11734 * memattr.c (mem_info_command): Rename to ...
11735 (info_mem_command): ... this.
11736 (mem_enable_command): Rename to ...
11737 (enable_mem_command): ... this.
11738 (mem_disable_command): Rename to ...
11739 (disable_mem_command): ... this.
11740 (mem_delete_command): Rename to ...
11741 (delete_mem_command): ... this.
11742 (_initialize_mem): Adjust function names.
11744 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11746 * btrace.c (handle_pt_insn_events): New.
11747 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11748 STATUS. Split into this and ...
11749 (handle_pt_insn_event_flags): ... this.
11751 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11753 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11754 and struct pt_insn.resynced.
11755 * configure: Regenerated.
11756 * config.in: Regenerated.
11758 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11760 * btrace.c (ftrace_find_call_by_number): New function.
11761 (ftrace_new_function): Store objects, not pointers.
11762 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
11763 ftrace_new_gap, ftrace_update_function,
11764 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
11765 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
11766 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
11767 btrace_ends_with_single_insn, btrace_call_get): Account for
11768 btrace_thread_info::functions now storing objects.
11769 * btrace.h (struct btrace_thread_info): Add constructor.
11770 (struct btrace_thread_info) <functions>: Make std::vector.
11771 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
11772 Initialize with default values.
11773 * record-btrace.c (record_btrace_frame_sniffer): Account for
11774 btrace_thread_info::functions now storing objects.
11776 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11778 * btrace.c: Remove typedef bfun_s.
11779 (ftrace_new_gap): Directly add gaps to the list of gaps.
11780 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
11781 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
11782 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
11783 instead of gdb VEC.
11785 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11787 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
11788 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
11789 with btrace_thread_info::next_segment and
11790 btrace_thread_info::prev_segment.
11791 * btrace.h: Remove struct btrace_func_link.
11792 (struct btrace_function): Replace pair of function segment pointers
11793 with pair of indices.
11794 * python/py-record-btrace.c (btpy_call_prev_sibling,
11795 btpy_call_next_sibling): Replace references to
11796 btrace_thread_info::segment with btrace_thread_info::next_segment and
11797 btrace_thread_info::prev_segment.
11798 * record-btrace.c (record_btrace_frame_this_id): Use
11799 btrace_find_call_by_number.
11801 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11803 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11804 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11805 btrace_insn_next, btrace_insn_prev): Remove references to
11806 btrace_thread_info::flow.
11807 * btrace.h (struct btrace_function): Remove FLOW.
11809 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11811 * btrace.c (ftrace_find_call_by_number): New function.
11812 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11813 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
11814 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
11815 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
11817 * btrace.h (struct btrace_function): Turn UP into an index.
11818 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
11820 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
11821 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
11822 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
11824 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11826 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11827 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11828 ftrace_update_function, ftrace_compute_global_level_offset,
11829 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
11830 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
11831 btrace_insn_end, btrace_is_empty): Remove references to
11832 btrace_thread_info::begin and btrace_thread_info::end.
11833 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
11834 (struct btrace_thread_info) <functions>: Adjust comment.
11835 * record-btrace.c (record_btrace_start_replaying): Remove reference to
11836 btrace_thread_info::begin.
11838 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11840 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11841 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11842 ftrace_update_function): Remove arguments that implicitly were always
11844 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
11845 Don't pass BTINFO->END.
11847 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11849 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
11850 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
11851 btrace_find_insn_by_number): Replace function segment pointer with
11853 (btrace_insn_cmp): Simplify.
11854 * btrace.h: (struct btrace_insn_iterator) Rename index to
11855 insn_index. Replace function segment pointer with index into function
11857 * record-btrace.c (record_btrace_call_history): Replace function
11858 segment pointer use with index.
11859 (record_btrace_frame_sniffer): Retrieve function call segment through
11861 (record_btrace_set_replay): Remove defunc't safety check.
11863 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11865 * btrace.c (btrace_ends_with_single_insn): New function.
11866 (btrace_call_get, btrace_call_number, btrace_call_begin,
11867 btrace_call_end, btrace_call_next, btrace_call_prev,
11868 btrace_find_call_by_number): Use index into call segment vector
11869 instead of pointer.
11870 (btrace_call_cmp): Simplify.
11871 * btrace.h (struct btrace_call_iterator): Replace function call segment
11872 pointer with index into vector.
11873 * record-btrace.c (record_btrace_call_history): Use index instead of
11876 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11878 * btrace.c (btrace_insn_begin, btrace_insn_end,
11879 btrace_find_insn_by_number): Add btinfo to iterator.
11880 * btrace.h (struct btrace_insn_iterator): Add btinfo.
11882 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11884 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
11885 and save pointers directly.
11886 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
11887 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
11888 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
11889 changed signature of functions.
11890 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
11891 (btrace_fetch): Remove code that adds btrace_function pointers to
11892 vector of btrace_functions.
11893 (btrace_clear): Simplify freeing vector of btrace_functions.
11895 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11897 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
11898 Replace VEC_* with std::vector functions.
11899 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
11900 (struct btrace_thread_info)<functions>: Change type to std::vector.
11902 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
11904 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
11905 "Removed targets and native configurations" up. Merge duplicate
11906 "New commands" sub-sections. Add "New options" sub-sections.
11908 2017-05-26 Alan Hayward <alan.hayward@arm.com>
11910 * defs.h (copy_integer_to_size): New declaration.
11911 * findvar.c (copy_integer_to_size): New function.
11912 (do_cint_test): New selftest function.
11913 (copy_integer_to_size_test): Likewise.
11914 (_initialize_findvar): Likewise.
11915 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
11916 (mips_fbsd_collect_reg): Use raw_collect_integer.
11917 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
11918 (mips64_fill_gregset): Use raw_collect_integer
11919 (mips64_fill_fpregset): Use raw_supply_integer.
11920 * regcache.c (regcache::raw_supply_integer): New function.
11921 (regcache::raw_collect_integer): Likewise.
11922 * regcache.h: (regcache::raw_supply_integer): New declaration.
11923 (regcache::raw_collect_integer): Likewise.
11925 2017-05-24 Yao Qi <yao.qi@linaro.org>
11927 * Makefile.in (SFILES): Add gdbarch-selftests.c.
11928 (COMMON_OBS): Add gdbarch-selftests.o.
11929 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
11930 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
11931 * gdbarch-selftests.c: New file.
11932 * regcache.h (regcache) <~regcache>: Mark it virtual if
11934 <raw_write>: Likewise.
11936 2017-05-24 Yao Qi <yao.qi@linaro.org>
11938 * regcache.c (current_regcache): Change it to
11939 regcache::current_regcache.
11940 (regcache_observer_target_changed): Update.
11941 (regcache_thread_ptid_changed): Make it a regcache static
11943 (regcache_thread_ptid_changed): Update.
11944 (class regcache_access): New.
11945 (current_regcache_test): Update.
11946 (_initialize_regcache): Update.
11947 * regcache.h: Include forward_list.
11948 (regcache): Declare regcache_thread_ptid_changed and declare
11949 registers_changed_ptid as friend.
11951 2017-05-24 Yao Qi <yao.qi@linaro.org>
11953 * i387-tdep.c (i387_register_to_value): Use register_size
11954 instead of TYPE_LENGTH.
11955 * m68k-tdep.c (m68k_register_to_value): Likewise.
11957 2017-05-24 Yao Qi <yao.qi@linaro.org>
11959 * i387-tdep.c (i387_convert_register_p): Return false if type
11960 code isn't TYPE_CODE_FLT.
11962 2017-05-24 Yao Qi <yao.qi@linaro.org>
11964 * alpha-tdep.c (alpha_convert_register_p): Return true if type
11966 (alpha_register_to_value): Remove type length check.
11967 (alpha_value_to_register): Likewise.
11969 2017-05-24 Yao Qi <yao.qi@linaro.org>
11971 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
11974 2017-05-24 Yao Qi <yao.qi@linaro.org>
11976 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
11977 TYPE_CODE_FLT or not.
11979 2017-05-24 Yao Qi <yao.qi@linaro.org>
11981 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
11982 * avr-tdep.c (avr_gdbarch_init): Likewise.
11983 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11984 * cris-tdep.c (cris_gdbarch_init): Likewise.
11985 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11986 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11987 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11989 * mep-tdep.c (mep_gdbarch_init): Likewise.
11990 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11991 * mips-tdep.c (mips_gdbarch_init): Likewise.
11992 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11993 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11994 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11995 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11996 * v850-tdep.c (v850_gdbarch_init): Likewise.
11998 2017-05-24 Yao Qi <yao.qi@linaro.org>
12000 * selftest-arch.c (tests_with_arch): Call registers_changed
12001 and reinit_frame_cache.
12002 * selftest.c (run_self_tests): Likewise.
12004 2017-05-24 Yao Qi <yao.qi@linaro.org>
12006 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12007 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12009 2017-05-24 Yao Qi <yao.qi@linaro.org>
12011 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12012 set_gdbarch_print_insn.
12014 2017-05-24 Yao Qi <yao.qi@linaro.org>
12016 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12017 set_gdbarch_print_insn.
12019 2017-05-24 Yao Qi <yao.qi@linaro.org>
12021 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12022 set_gdbarch_print_insn.
12023 * arc-tdep.c (arc_gdbarch_init): Likewise.
12024 * arch-utils.c: include dis-asm.h.
12025 (default_print_insn): New function.
12026 * arch-utils.h (default_print_insn): Declare.
12027 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12028 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12029 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12030 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12031 * frv-tdep.c (frv_gdbarch_init): Likewise.
12032 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12033 * gdbarch.sh (print_insn): Use default_print_insn.
12034 * gdbarch.c: Regenerated.
12035 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12036 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12037 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12038 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12039 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12040 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12041 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12042 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12043 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12044 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12045 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12046 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12047 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12048 * mt-tdep.c (mt_gdbarch_init): Likewise.
12049 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12050 * nios2-tdep.c (nios2_print_insn): Remove.
12051 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12052 * rx-tdep.c (rx_gdbarch_init): Likewise.
12053 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12054 * score-tdep.c (score_print_insn): Remove.
12055 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12056 * sh-tdep.c (sh_gdbarch_init): Likewise.
12057 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12058 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12059 * tic6x-tdep.c (tic6x_print_insn): Remove.
12060 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12061 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12062 * v850-tdep.c (v850_gdbarch_init): Likewise.
12063 * vax-tdep.c (vax_gdbarch_init): Likewise.
12064 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12065 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12067 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12069 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12070 (MIPS_FP0_REGNUM): Remove.
12071 (MIPS_FSR_REGNUM): Remove.
12072 (mips_fbsd_supply_fpregs): Use mips_regnum.
12073 (mips_fbsd_supply_gregs): Likewise.
12074 (mips_fbsd_collect_fpregs): Likewise.
12075 (mips_fbsd_collect_gregs): Likewise.
12077 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12079 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12080 (getpfpregs_supplies): New function.
12081 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12082 getfpregs_supplies.
12083 (mips_fbsd_store_inferior_registers): Likewise.
12085 2017-05-22 Pedro Alves <palves@redhat.com>
12087 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12090 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12092 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12093 (store_register): Likewise.
12094 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12095 (get_decimal_float_return_value): Likewise.
12096 (do_ppc_sysv_return_value): Likewise.
12097 (ppc64_sysv_abi_push_integer): Likewise.
12098 (ppc64_sysv_abi_push_freg): Likewise.
12099 (ppc64_sysv_abi_return_value_base): Likewise.
12100 (ppc64_sysv_abi_return_value): Likewise.
12101 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12102 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12103 * rs6000-nat.c: Likewise.
12104 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12105 (rs6000_value_to_register): Likewise.
12106 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12108 2017-05-21 Tom Tromey <tom@tromey.com>
12111 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12112 arrays as "[T]", not "[T; ]".
12114 2017-05-19 Tom Tromey <tom@tromey.com>
12117 * rust-lang.c (exp_descriptor_rust): New function.
12118 (rust_language_defn): Use it.
12119 * p-lang.c (pascal_language_defn): Update.
12120 * opencl-lang.c (opencl_language_defn): Update.
12121 * objc-lang.c (objc_language_defn): Update.
12122 * m2-lang.c (m2_language_defn): Update.
12123 * language.h (struct language_defn)
12124 <la_watch_location_expression>: New member.
12125 * language.c (unknown_language_defn, auto_language_defn)
12126 (local_language_defn): Update.
12127 * go-lang.c (go_language_defn): Update.
12128 * f-lang.c (f_language_defn): Update.
12129 * d-lang.c (d_language_defn): Update.
12130 * c-lang.h (c_watch_location_expression): Declare.
12131 * c-lang.c (c_watch_location_expression): New function.
12132 (c_language_defn, cplus_language_defn, asm_language_defn)
12133 (minimal_language_defn): Use it.
12134 * breakpoint.c (watch_command_1): Call
12135 la_watch_location_expression.
12136 * ada-lang.c (ada_language_defn): Update.
12138 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12141 * gdb_curses.h (NOMACROS): Define.
12142 (NCURSES_NOMACROS): Define.
12144 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12147 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12149 * tui/tui-wingeneral.c (box_win): Likewise.
12150 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12151 (tui_show_source_line): Likewise.
12152 (tui_show_exec_info_content): Likewise.
12154 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12156 * sparc-tdep.c (sparc_structure_return_p)
12157 (sparc_arg_on_registers_p): New functions.
12158 (sparc32_store_arguments): Use them.
12159 * sparc64-tdep.c (sparc64_16_byte_align_p)
12160 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12161 Handle TYPE_CODE_ARRAY.
12163 2017-05-17 Yao Qi <yao.qi@linaro.org>
12165 * cli/cli-decode.c (add_alias_cmd): New function.
12166 * command.h (add_alias_cmd): Declare.
12167 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12168 instead call add_alias_cmd.
12170 2017-05-17 Pedro Alves <palves@redhat.com>
12172 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12173 (nat_makefile_frag): ... this. All references updated.
12174 * configure.ac: Likewise.
12175 * configure.nat: Likewise. Enhance comments.
12176 * configure: Regenerate.
12178 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12180 * procfs.c (procfs_create_inferior): Change prototype to match
12183 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12185 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12186 C++ compiler warning.
12188 2017-05-12 Tom Tromey <tom@tromey.com>
12191 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12192 recurse, just call value_struct_elt directly.
12194 2017-05-12 Tom Tromey <tom@tromey.com>
12196 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12197 OP_RUST_ARRAY>: Fix.
12199 2017-05-12 Tom Tromey <tom@tromey.com>
12201 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12203 2017-05-09 Yao Qi <yao.qi@linaro.org>
12205 * regcache.c: Include <forward_list>.
12206 (struct regcache_list): Remove.
12207 (current_regcache): Update.
12208 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12209 (regcache_thread_ptid_changed): Likewise.
12210 (registers_changed_ptid): Likewise.
12211 (current_regcache_size): Likewise.
12213 2017-05-09 Yao Qi <yao.qi@linaro.org>
12215 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12216 (current_regcache_size): New function.
12217 (current_regcache_test): New function.
12218 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12220 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12222 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12223 (print_gp_register_row): Use get_frame_register_value.
12225 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12227 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12228 (mips_supply_fpregset): Likewise.
12229 (mips64_supply_gregset): Likewise.
12231 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12233 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12234 regcache->raw_supply_zeroed.
12236 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12238 * configure.nat: Rearrange 'case' statements to match
12241 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12243 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12244 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12245 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12246 "@nat_extra_makefile_frag@".
12247 (Makefile): Remove dependency on "@frags@".
12248 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12249 (data-directory/Makefile): Likewise.
12250 * config/aarch64/linux.mh: Deleted; moved contents to
12251 "gdb/configure.nat".
12252 * config/alpha/alpha-linux.mh: Likewise.
12253 * config/alpha/nbsd.mh: Likewise.
12254 * config/arm/linux.mh: Likewise.
12255 * config/arm/nbsdelf.mh: Likewise.
12256 * config/i386/cygwin.mh: Likewise.
12257 * config/i386/cygwin64.mh: Likewise.
12258 * config/i386/darwin.mh: Likewise.
12259 * config/i386/fbsd.mh: Likewise.
12260 * config/i386/fbsd64.mh: Likewise.
12261 * config/i386/go32.mh: Likewise.
12262 * config/i386/i386gnu.mh: Likewise.
12263 * config/i386/i386sol2.mh: Likewise.
12264 * config/i386/linux.mh: Likewise.
12265 * config/i386/linux64.mh: Likewise.
12266 * config/i386/mingw.mh: Likewise.
12267 * config/i386/mingw64.mh: Likewise.
12268 * config/i386/nbsd64.mh: Likewise.
12269 * config/i386/nbsdelf.mh: Likewise.
12270 * config/i386/nto.mh: Likewise.
12271 * config/i386/obsd.mh: Likewise.
12272 * config/i386/obsd64.mh: Likewise.
12273 * config/i386/sol2-64.mh: Likewise.
12274 * config/ia64/linux.mh: Likewise.
12275 * config/m32r/linux.mh: Likewise.
12276 * config/m68k/linux.mh: Likewise.
12277 * config/m68k/nbsdelf.mh: Likewise.
12278 * config/m68k/obsd.mh: Likewise.
12279 * config/m88k/obsd.mh: Likewise.
12280 * config/mips/fbsd.mh: Likewise.
12281 * config/mips/linux.mh: Likewise.
12282 * config/mips/nbsd.mh: Likewise.
12283 * config/mips/obsd64.mh: Likewise.
12284 * config/pa/linux.mh: Likewise.
12285 * config/pa/nbsd.mh: Likewise.
12286 * config/pa/obsd.mh: Likewise.
12287 * config/powerpc/aix.mh: Likewise.
12288 * config/powerpc/fbsd.mh: Likewise.
12289 * config/powerpc/linux.mh: Likewise.
12290 * config/powerpc/nbsd.mh: Likewise.
12291 * config/powerpc/obsd.mh: Likewise.
12292 * config/powerpc/ppc64-linux.mh: Likewise.
12293 * config/powerpc/spu-linux.mh: Likewise.
12294 * config/s390/linux.mh: Likewise.
12295 * config/sh/nbsd.mh: Likewise.
12296 * config/sparc/fbsd.mh: Likewise.
12297 * config/sparc/linux.mh: Likewise.
12298 * config/sparc/linux64.mh: Likewise.
12299 * config/sparc/nbsd64.mh: Likewise.
12300 * config/sparc/nbsdelf.mh: Likewise.
12301 * config/sparc/obsd64.mh: Likewise.
12302 * config/sparc/sol2.mh: Likewise.
12303 * config/tilegx/linux.mh: Likewise.
12304 * config/vax/nbsdelf.mh: Likewise.
12305 * config/vax/obsd.mh: Likewise.
12306 * config/xtensa/linux.mh: Likewise.
12307 * config/i386/i386gnu.mn: New file, with excerpts from
12308 "config/i386/i386gnu.mh".
12309 * configure: Regenerate.
12310 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12311 *.mh files under "gdb/config".
12312 * configure.nat: New file, with contents from the
12313 "gdb/config/*/*.mh" files.
12315 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12317 * btrace.c (btrace_clear): Free insn vector.
12319 2017-05-05 Pedro Alves <palves@redhat.com>
12321 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12322 * configure: Regenerate.
12324 2017-05-04 Pedro Alves <palves@redhat.com>
12326 * Makefile.in (SFILES): Add progspace-and-thread.c.
12327 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12328 (COMMON_OBS): Add progspace-and-thread.o.
12329 * breakpoint.c: Include "progspace-and-thread.h".
12330 (update_inserted_breakpoint_locations)
12331 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12332 Use scoped_restore_current_pspace_and_thread.
12333 (create_std_terminate_master_breakpoint): Use
12334 scoped_restore_current_program_space.
12335 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12336 (print_breakpoint_location): Use
12337 scoped_restore_current_program_space.
12338 (bp_loc_is_permanent): Use
12339 scoped_restore_current_pspace_and_thread.
12340 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12341 (download_tracepoint_locations): Use
12342 scoped_restore_current_pspace_and_thread.
12343 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12344 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12345 (enum step_over_calls_kind): Moved from inferior.h.
12346 (class scoped_restore_current_thread): New class.
12347 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12349 (scoped_restore_current_thread): New class.
12350 * infcmd.c: Include "common/gdb_optional.h".
12351 (continue_1, proceed_after_attach): Use
12352 scoped_restore_current_thread.
12353 (notice_new_inferior): Use scoped_restore_current_thread.
12354 * inferior.c: Include "progspace-and-thread.h".
12355 (restore_inferior, save_current_inferior): Delete.
12356 (add_inferior_command, clone_inferior_command): Use
12357 scoped_restore_current_pspace_and_thread.
12358 * inferior.h (scoped_restore_current_inferior): New class.
12359 * infrun.c: Include "progspace-and-thread.h" and
12360 "common/gdb_optional.h".
12361 (follow_fork_inferior): Use
12362 scoped_restore_current_pspace_and_thread.
12363 (scoped_restore_exited_inferior): New class.
12364 (handle_vfork_child_exec_or_exit): Use
12365 scoped_restore_exited_inferior,
12366 scoped_restore_current_pspace_and_thread,
12367 scoped_restore_current_thread and scoped_restore.
12368 (fetch_inferior_event): Use scoped_restore_current_thread.
12369 * linespec.c (decode_line_full, decode_line_1): Use
12370 scoped_restore_current_program_space.
12371 * mi/mi-main.c: Include "progspace-and-thread.h".
12372 (exec_continue): Use scoped_restore_current_thread.
12373 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12374 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12375 * proc-service.c (ps_pglobal_lookup): Use
12376 scoped_restore_current_program_space.
12377 * progspace-and-thread.c: New file.
12378 * progspace-and-thread.h: New file.
12379 * progspace.c (release_program_space, clone_program_space): Use
12380 scoped_restore_current_program_space.
12381 (restore_program_space, save_current_program_space)
12382 (save_current_space_and_thread): Delete.
12383 (switch_to_program_space_and_thread): Moved to
12384 progspace-and-thread.c.
12385 * progspace.h (save_current_program_space)
12386 (save_current_space_and_thread): Delete declarations.
12387 (scoped_restore_current_program_space): New class.
12388 * remote.c (remote_btrace_maybe_reopen): Use
12389 scoped_restore_current_thread.
12390 * symtab.c: Include "progspace-and-thread.h".
12391 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12392 * thread.c (print_thread_info_1): Use
12393 scoped_restore_current_thread.
12394 (struct current_thread_cleanup): Delete.
12395 (do_restore_current_thread_cleanup)
12396 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12397 (scoped_restore_current_thread::~scoped_restore_current_thread):
12399 (make_cleanup_restore_current_thread): Rename/convert to ...
12400 (scoped_restore_current_thread::scoped_restore_current_thread):
12402 (thread_apply_all_command): Use scoped_restore_current_thread.
12403 (thread_apply_command): Use scoped_restore_current_thread.
12404 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12405 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12407 2017-05-04 Pedro Alves <palves@redhat.com>
12409 * thread.c (make_cleanup_restore_current_thread): Move
12410 find_thread_ptid call before the is_stopped call. Assert that the
12411 thread is found. Replace is_stopped call by checking the thread's
12412 state directly. Remove unnecessary NULL-thread check.
12414 2017-05-04 Pedro Alves <palves@redhat.com>
12416 * corelow.c (thread_section_name): New class.
12417 (get_core_register_section, get_core_siginfo): Use it.
12419 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12421 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12422 (get_core_register_section): Remove xfree of NULL pointer.
12424 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12426 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12427 * regcache.c (regcache::raw_supply_zeroed): New function.
12428 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12430 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12432 * gdbarch.sh: Remove commented out definition of
12434 * gdbarch.h: Re-generate.
12436 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12438 * configure: Regenerate.
12440 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12442 * solib-target.c (solib_target_relocate_section_addresses):
12443 Remove num_section_bases, num_bases, segment_bases variables.
12445 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12447 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12449 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12451 * solib-target.c: Include <vector>
12452 (struct lm_info_target) <~lm_info_target>: Remove.
12453 <segment_bases, section_bases>: Change type to
12454 std::vector<CORE_ADDR>.
12455 (library_list_start_segment, library_list_start_section,
12456 library_list_end_library,
12457 solib_target_relocate_section_addresses): Adjust.
12459 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12461 * gdbarch.sh (software_single_step): Change return type to
12462 std::vector<CORE_ADDR>.
12463 * gdbarch.c, gdbarch.h: Re-generate.
12464 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12466 (arm_deal_with_atomic_sequence_raw): Adjust.
12467 (thumb_get_next_pcs_raw): Adjust.
12468 (arm_get_next_pcs_raw): Adjust.
12469 (arm_get_next_pcs): Adjust.
12470 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12471 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12472 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12473 (alpha_software_single_step): Adjust.
12474 * alpha-tdep.h (alpha_software_single_step): Adjust.
12475 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12476 * arm-tdep.c (arm_software_single_step): Adjust.
12477 (arm_breakpoint_kind_from_current_state): Adjust.
12478 * arm-tdep.h (arm_software_single_step): Adjust.
12479 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12480 * cris-tdep.c (cris_software_single_step): Adjust.
12481 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12482 (micromips_deal_with_atomic_sequence): Adjust.
12483 (deal_with_atomic_sequence): Adjust.
12484 (mips_software_single_step): Adjust.
12485 * mips-tdep.h (mips_software_single_step): Adjust.
12486 * moxie-tdep.c (moxie_software_single_step): Adjust.
12487 * nios2-tdep.c (nios2_software_single_step): Adjust.
12488 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12489 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12490 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12491 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12492 * sparc-tdep.c (sparc_software_single_step): Adjust.
12493 * spu-tdep.c (spu_software_single_step): Adjust.
12494 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12496 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12498 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12499 * gdbarch.h: Re-generate.
12501 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12503 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12504 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12505 * python/py-instruction.c, python/py-instruction.h: New file.
12506 * python/py-record.c: Add py-instruction.h include.
12507 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12508 gdb.RecordInstruction.
12509 * python/python-internal.h: Add gdbpy_initialize_instruction
12511 * python/python.c (do_start_initialization): Add
12512 gdbpy_initialize_instruction.
12514 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12516 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12518 (btrace_func_from_recpy_func): New function.
12519 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12520 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12521 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12522 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12523 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12524 Also, use new helper functions.
12525 (btpy_list_item): Use new helper functions.
12526 (recpy_bt_function_call_history): Use new type name.
12527 (btpy_call_getset): Remove.
12528 (gdbpy_initialize_btrace): Remove code to initialize
12529 gdb.BtraceFunctionCall.
12530 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12531 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12532 recpy_bt_func_prev, recpy_bt_func_next): New export.
12533 * python/py-record.c (recpy_func_type): New static object.
12534 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12535 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12536 recpy_func_next): New function.
12537 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12538 (recpy_func_getset): New static object.
12539 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12540 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12542 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12544 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12545 (btpy_object, btpy_insn_type, btpy_new): Remove.
12546 (btpy_list_object): Use gdb.RecordInstruction type instead of
12547 gdb.BtraceInstruction type.
12548 (btrace_insn_from_recpy_insn): New function.
12549 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12551 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12552 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12553 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12554 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12555 instead of btpy_object.
12556 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12557 btpy_insn_data, btpy_insn_decode): Rename to ...
12558 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12559 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12560 recpy_bt_insn_decode): This. Also, use new helper functions.
12561 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12563 (btpy_insn_getset): Remove.
12564 (gdbpy_initialize_btrace): Remove code to initialize
12565 gdb.BtraceInstruction. Use recpy_element_object.
12566 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12567 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12568 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12569 * python/py-record.c (recpy_insn_type): New static object.
12570 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12571 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12572 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12574 (recpy_insn_getset): New static object.
12575 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12576 * python/py-record.h (recpy_element_object): New typedef.
12577 (recpy_insn_type, recpy_insn_new): New export.
12579 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12581 * py-record-btrace.c (btpy_insn_new): Removed.
12582 (btpy_insn_or_gap_new): New function.
12583 (btpy_insn_error): Removed.
12584 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12585 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12586 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12587 btpy_insn_or_gap_new instead of btpy_insn_new.
12588 (btpy_insn_getset): Remove btpy_insn_error.
12589 * py-record.c (recpy_gap_type): New static object.
12590 (recpy_gap_object): New typedef.
12591 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12592 recpy_gap_reason_string): New function.
12593 (recpy_gap_getset): New static object.
12594 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12595 * py-record.h (recpy_gap_new): New export.
12597 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12599 * python/py-record.c (recpy_ptid): Remove.
12600 (recpy_record_getset): Remove recpy_ptid.
12602 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12604 * btrace.c (btrace_fetch): Set inferior_ptid.
12605 * python/py-record-btrace.c: Add "py-record.h" include.
12606 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12607 recpy_bt_end, recpy_bt_instruction_history,
12608 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12609 in gdb.Record object instead of current ptid.
12610 * python/py-record.c: Include new "py-record.h" file.
12611 (recpy_record_object): Moved to py-record.h.
12612 * python/py-record.h: New file.
12614 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12616 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
12617 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
12620 2017-05-01 Joel Brobecker <brobecker@adacore.com>
12622 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
12623 the past maintainers section.
12625 2017-04-28 Yao Qi <yao.qi@linaro.org>
12627 * infcmd.c (get_return_value): Use regcache ctor, and remove
12630 2017-04-28 Yao Qi <yao.qi@linaro.org>
12631 Pedro Alves <palves@redhat.com>
12633 * regcache.c (regcache::regcache): New tag dispatch ctor.
12634 (do_cooked_read): Moved above.
12635 (regcache_dup): Use the tag dispatch ctor..
12636 * regcache.h (regcache): Declare ctor, delete copy ctor and
12637 assignment operator, remove friend regcache_dup.
12639 2017-04-28 Yao Qi <yao.qi@linaro.org>
12641 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
12642 call method save instead of regcache_cpy.
12643 * regcache.h (struct regcache): Make regcache_dup a friend.
12645 2017-04-28 Yao Qi <yao.qi@linaro.org>
12647 * regcache.c (struct regcache): Move to regcache.h
12648 (regcache::arch): New method.
12649 (regcache_get_ptid): Update.
12650 (get_regcache_arch): Call arch method.
12651 (get_regcache_aspace): Call method aspace.
12652 (register_buffer): Change it to method.
12653 (regcache_save): Change it to regcache::save.
12654 (regcache_restore): Likewise.
12655 (regcache_cpy_no_passthrough): Remove the declaration.
12656 (regcache_cpy): Call methods restore and cpy_no_passthrough.
12657 (regcache_cpy_no_passthrough): Change it to method
12658 cpy_no_passthrough.
12659 (regcache_register_status): Change it to method
12660 get_register_status.
12661 (regcache_invalidate): Change it to method invalidate.
12662 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
12663 (regcache_raw_update): Change it to method raw_update.
12664 (regcache_raw_read): Likewise.
12665 (regcache_raw_read_signed): Likewise.
12666 (regcache_raw_read_unsigned): Likewise.
12667 (regcache_raw_write_signed): Likewise.
12668 (regcache_raw_write_unsigned): Likewise.
12669 (regcache_cooked_read): Likewise.
12670 (regcache_cooked_read_value): Likewise.
12671 (regcache_cooked_read_signed): Likewise.
12672 (regcache_cooked_read_unsigned): Likewise.
12673 (regcache_cooked_write_signed): Likewise.
12674 (regcache_cooked_write_unsigned): Likewise.
12675 (regcache_raw_set_cached_value): Likewise.
12676 (regcache_raw_write): Likewise.
12677 (regcache_cooked_write): Likewise.
12678 (regcache_xfer_part): Likewise.
12679 (regcache_raw_read_part): Likewise.
12680 (regcache_raw_write_part): Likewise.
12681 (regcache_cooked_read_part): Likewise.
12682 (regcache_cooked_write_part): Likewise.
12683 (regcache_raw_supply): Likewise.
12684 (regcache_raw_collect): Likewise.
12685 (regcache_transfer_regset): Likewise.
12686 (regcache_supply_regset): Likewise.
12687 (regcache_collect_regset): Likewise.
12688 (regcache_debug_print_register): Likewise.
12689 (enum regcache_dump_what): Move it to regcache.h.
12690 (regcache_dump): Change it to method dump.
12691 * regcache.h (enum regcache_dump_what): New.
12692 (class regcache): New.
12693 * target.c (target_fetch_registers): Call method
12694 debug_print_register.
12695 (target_store_registers): Likewise.
12697 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12699 * windows-nat.c (struct lm_info_windows): Initialize field.
12700 (windows_make_so): Allocate lm_info_windows with new.
12701 (windows_free_so): Free lm_info_windows with delete.
12703 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12705 * solib-darwin.c (struct lm_info_darwin): Initialize field.
12706 (darwin_current_sos): Allocate lm_info_darwin with new, remove
12708 (darwin_free_so): Free lm_info_darwin with delete.
12710 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12712 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
12713 <l_addr_p>: Change type to bool.
12714 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
12715 (svr4_free_so): Free lm_info_svr4 with delete.
12716 (svr4_copy_library_list): Replace memcpy with call to copy
12718 (library_list_start_library, svr4_default_sos): Allocate
12719 lm_info_svr4 with new.
12721 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12723 * solib-target.c (struct lm_info_target): Add destructor,
12725 <name>: Change type to std::string.
12726 (library_list_start_library): Allocate lm_info_target with new.
12727 (solib_target_free_library_list): Free lm_info_target with
12729 (solib_target_current_sos): Adapt to std::string.
12730 (solib_target_free_so): Free lm_info_target with delete.
12732 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12734 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12736 (frv_current_sos): Allocate lm_info_frv with new.
12737 (frv_relocate_main_executable): Free lm_info_frv with delete,
12739 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12741 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12743 * solib-frv.c (struct lm_info_frv): Fix indentation.
12745 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12747 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12749 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12750 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12751 and allocate with new.
12752 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12754 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12756 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12757 <filename, member_name>: Change type to std::string.
12758 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12759 (library_list_start_library): Allocate lm_info_aix with new.
12760 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12761 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12762 with copy constructor.
12764 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12766 * solist.h (struct lm_info): Remove.
12767 (struct lm_info_base): New class.
12768 (struct so_list) <lm_info>: Change type to lm_info_base *.
12769 * nto-tdep.c (struct lm_info): Remove.
12771 * solib-aix.c (struct lm_info): Rename to ...
12772 (struct lm_info_aix): ... this. Extend lm_info_base.
12773 (lm_info_p): Rename to ...
12774 (lm_info_aix_p): ... this, and adjust.
12775 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
12776 solib_aix_parse_libraries, library_list_start_library,
12777 solib_aix_free_library_list, solib_aix_parse_libraries,
12778 solib_aix_get_library_list,
12779 solib_aix_relocate_section_addresses, solib_aix_free_so,
12780 solib_aix_get_section_offsets,
12781 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
12783 (struct solib_aix_inferior_data) <library_list>: Adjust.
12784 * solib-darwin.c (struct lm_info): Rename to ...
12785 (struct lm_info_darwin): ... this. Extend lm_info_base.
12786 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
12787 * solib-dsbt.c (struct lm_info): Rename to ...
12788 (struct lm_info_dsbt): ... this. Extend lm_info_base.
12789 (struct dsbt_info) <main_executable_lm_info): Adjust.
12790 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
12791 dsbt_relocate_section_addresses): Adjust.
12792 * solib-frv.c (struct lm_info): Rename to ...
12793 (struct lm_info_frv): ... this. Extend lm_info_base.
12794 (main_executable_lm_info): Adjust.
12795 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
12796 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
12797 find_canonical_descriptor_in_load_object,
12798 frv_fdpic_find_canonical_descriptor): Adjust.
12799 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12801 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12802 svr4_clear_so, svr4_copy_library_list,
12803 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12804 svr4_current_sos, svr4_fetch_objfile_link_map,
12805 solist_update_incremental): Adjust.
12806 * solib-svr4.h (struct lm_info_svr4): Move here from
12808 * solib-target.c (struct lm_info): Rename to ...
12809 (struct lm_info_target): ... this. Extend lm_info_base.
12810 (lm_info_p): Rename to ...
12811 (lm_info_target_p): ... this.
12812 (solib_target_parse_libraries, library_list_start_segment,
12813 library_list_start_section, library_list_start_library,
12814 library_list_end_library, solib_target_free_library_list,
12815 solib_target_current_sos, solib_target_free_so,
12816 solib_target_relocate_section_addresses): Adjust.
12817 * windows-nat.c (struct lm_info): Rename to ...
12818 (struct lm_info_windows): ... this. Extend lm_info_base.
12819 (windows_make_so, handle_load_dll, handle_unload_dll,
12820 windows_xfer_shared_libraries): Adjust.
12822 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12824 * solib-darwin.c (struct darwin_so_list): Remove.
12825 (darwin_current_sos): Allocate an so_list object instead of a
12826 darwin_so_list, separately allocate an lm_info object.
12827 (darwin_free_so): Free lm_info.
12829 2017-04-28 John Baldwin <jhb@FreeBSD.org>
12831 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
12832 with fprintf_filtered.
12834 2017-04-28 Yao Qi <yao.qi@linaro.org>
12836 * regcache.c (regcache::regcache): New function.
12837 (regcache::~regcache): New function.
12838 (regcache_xmalloc_1): Remove.
12839 (regcache_xmalloc): Call new regcache.
12840 (regcache_xfree): Call delete regcache.
12841 (get_thread_arch_aspace_regcache): Call new regcache.
12843 2017-04-28 Yao Qi <yao.qi@linaro.org>
12845 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
12846 lwp instead of ptid_get_lwp.
12848 2017-04-28 Yao Qi <yao.qi@linaro.org>
12850 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
12851 lwp_info instead of getting from inferior_ptid.
12853 2017-04-27 Keith Seitz <keiths@redhat.com>
12855 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
12856 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
12857 (CV_CONVERSION_BADNESS): Define.
12858 (rank_one_type): Remove overly restrictive rvalue reference
12860 Add cv-qualifier checks and subranks for type equality.
12861 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
12862 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
12863 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
12865 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
12867 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
12868 count when creating the object.
12870 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
12871 Ulrich Weigand <uweigand@de.ibm.com>
12873 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
12874 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
12876 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
12877 (process_xcoff_symbol): Likewise.
12878 (scan_xcoff_symtab): Likewise.
12880 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12882 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
12883 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
12884 (ia64_access_reg): Use get_frame_register_unsigned.
12885 (ia64_access_rse_reg): Likewise.
12886 (ia64_libunwind_frame_prev_register): Likewise.
12888 2017-04-26 Jiong Wang <jiong.wang@arm.com>
12890 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
12891 * gdbarch.c: Regenerated.
12892 * gdbarch.h: Regenerated.
12893 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
12894 visibility external.
12895 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
12896 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
12897 (enum cfa_how_kind): Move to ...
12898 (struct dwarf2_frame_state_reg_info): Likewise.
12899 (struct dwarf2_frame_state): Likewise.
12900 * dwarf2-frame.h: ... here.
12901 (dwarf2_frame_state_alloc_regs): New declaration.
12902 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
12903 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
12905 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12907 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
12908 regcache_raw_read_unsigned.
12909 (xtensa_pseudo_register_write): Likewise.
12911 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12913 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
12914 (nds32_pseudo_register_write): Likewise.
12916 2017-04-25 Yao Qi <yao.qi@linaro.org>
12918 * regcache.c (struct regcache) <readonly_p>: Change its type
12920 (regcache_xmalloc_1): Update parameter type and callers update.
12922 2017-04-25 Yao Qi <yao.qi@linaro.org>
12924 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
12925 set_gdbarch_wchar_bit.
12926 * arm-tdep.c (arm_gdbarch_init): Likewise.
12928 2017-04-25 Pedro Alves <palves@redhat.com>
12930 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
12931 (BothAreRelocatable, memcopy, memmove): Don't define.
12932 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
12935 2017-04-25 Pedro Alves <palves@redhat.com>
12937 * common/common-defs.h: Include "common/poison.h".
12938 * common/function-view.h: (Not, Or, Requires): Move to traits.h
12940 * common/poison.h: New file.
12941 * common/traits.h: Include <type_traits>.
12942 (Not, Or, Requires): New, moved from common/function-view.h.
12944 2017-04-25 Pedro Alves <palves@redhat.com>
12946 * breakpoint.h (struct breakpoint): In-class initialize all
12947 fields. Make boolean fields "bool".
12948 * breakpoint.c (init_raw_breakpoint_without_location): Remove
12949 memset call and initializations no longer necessary.
12951 2017-04-25 Pedro Alves <palves@redhat.com>
12953 * btrace.c (pt_btrace_insn_flags): Change parameter type to
12955 (pt_btrace_insn): New function.
12956 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
12958 2017-04-25 Pedro Alves <palves@redhat.com>
12960 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
12961 "base" field and inherit from "bp_location" instead. Add
12963 (allocate_location_exception): Use new non-default ctor.
12964 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
12965 (init_bp_location): Convert to ...
12966 (bp_location::bp_location): ... this new ctor, and remove memset
12968 (base_breakpoint_allocate_location): Use the new non-default ctor.
12969 * breakpoint.h (bp_location): Now a class. Declare default and
12970 non-default ctors. In-class initialize all members.
12971 (init_bp_location): Remove declaration.
12973 2017-04-25 Pedro Alves <palves@redhat.com>
12975 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
12976 assignment operator.
12978 2017-04-24 Yao Qi <yao.qi@linaro.org>
12980 * doublest.c (convert_doublest_to_floatformat): Call
12981 floatformat_totalsize_bytes.
12983 2017-04-22 Tom Tromey <tom@tromey.com>
12985 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
12987 * stack.c (print_frame): Use ui_out_emit_list.
12988 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12990 * mi/mi-main.c (print_one_inferior)
12991 (mi_cmd_data_list_register_names)
12992 (mi_cmd_data_list_register_values, mi_cmd_list_features)
12993 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
12995 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
12996 (mi_output_solib_attribs): Use ui_out_emit_list,
12998 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
12999 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13000 (mi_cmd_stack_list_args, list_args_or_locals): Use
13002 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13003 * breakpoint.c (print_solib_event, output_thread_groups): Use
13006 2017-04-22 Tom Tromey <tom@tromey.com>
13008 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13009 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13010 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13012 2017-04-22 Tom Tromey <tom@tromey.com>
13014 * tracepoint.c (tvariables_info_1)
13015 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13017 2017-04-22 Tom Tromey <tom@tromey.com>
13019 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13020 annotate_arg_emitter.
13021 * breakpoint.c (print_mention_watchpoint)
13022 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13023 * annotate.h (struct annotate_arg_emitter): New.
13025 2017-04-22 Tom Tromey <tom@tromey.com>
13027 * record-btrace.c (record_btrace_insn_history)
13028 (record_btrace_insn_history_range, record_btrace_call_history)
13029 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13030 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13032 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13033 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13034 * skip.c (skip_info): Use ui_out_emit_tuple.
13035 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13036 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13037 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13038 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13039 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13041 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13042 (output_register, mi_cmd_data_read_memory)
13043 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13044 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13045 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13046 Use ui_out_emit_tuple.
13047 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13049 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13050 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13051 * linux-thread-db.c (info_auto_load_libthread_db): Use
13053 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13054 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13055 * disasm.c (do_mixed_source_and_assembly_deprecated)
13056 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13057 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13058 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13059 * breakpoint.c (print_one_breakpoint_location)
13060 (print_one_breakpoint): Use ui_out_emit_tuple.
13061 * auto-load.c (print_script, info_auto_load_cmd): Use
13063 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13065 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13067 * thread.c (print_thread_info_1): Remove dead code.
13069 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13071 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13073 * arm-tdep.c (selftests::arm_record_test): Likewise.
13075 2017-04-21 Yao Qi <yao.qi@linaro.org>
13077 * regcache.c (regcache_restore): Remove argument 2. Replace
13078 argument 3 with regcache. Get register status from
13079 src->register_status and get register contents from
13080 register_buffer (src, regnum).
13081 (regcache_cpy): Update.
13083 2017-04-19 Pedro Alves <palves@redhat.com>
13085 * gdbthread.h (thread): Add missing closing parenthesis in
13088 2017-04-19 Pedro Alves <palves@redhat.com>
13090 * common/refcounted-object.h: New file.
13091 * gdbthread.h: Include "common/refcounted-object.h".
13092 (thread_info): Inherit from refcounted_object and add comments.
13093 (thread_info::incref, thread_info::decref)
13094 (thread_info::m_refcount): Delete.
13095 (thread_info::deletable): Use the refcounted_object::refcount()
13097 * inferior.c (current_inferior_): Add comment.
13098 (set_current_inferior): Increment/decrement refcounts.
13099 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13100 not-deletable instead of comparing with the current inferior.
13101 (initialize_inferiors): Increment the initial inferior's refcount.
13102 * inferior.h (struct inferior): Forward declare.
13103 Include "common/refcounted-object.h".
13104 (current_inferior, set_current_inferior): Move declaration to
13105 before struct inferior's definition, and fix comment.
13106 (inferior): Inherit from refcounted_object. Add comments.
13107 * thread.c (switch_to_thread_no_regs): Reference the thread's
13108 inferior pointer directly instead of doing a ptid lookup.
13109 (switch_to_no_thread): New function.
13110 (switch_to_thread(thread_info *)): New function, factored out
13112 (switch_to_thread(ptid_t)): ... this.
13113 (restore_current_thread): Delete.
13114 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13115 fields, and add 'inf' field.
13116 (do_restore_current_thread_cleanup): Check whether old->inf is
13117 alive instead of looking up an inferior by ptid. Use
13118 switch_to_thread and switch_to_no_thread.
13119 (restore_current_thread_cleanup_dtor): Use old->inf directly
13120 instead of lookup up an inferior by id. Decref the inferior.
13121 Don't restore 'removable'.
13122 (make_cleanup_restore_current_thread): Same the inferior pointer
13123 in old, instead of the inferior number. Incref the inferior.
13124 Don't save/clear 'removable'.
13126 2017-04-19 Pedro Alves <palves@redhat.com>
13128 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13129 unittests/scoped_restore-selftests.c.
13130 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13131 * common/scoped_restore.h (scoped_restore_base): Make "class".
13132 (scoped_restore_base::release): New public method.
13133 (scoped_restore_base::scoped_restore_base): New protected ctor.
13134 (scoped_restore_base::m_saved_var): New protected field.
13135 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13136 scoped_restore_base base class instead of m_saved_var directly.
13137 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13138 (scoped_restore_tmpl::scoped_restore_tmpl(const
13139 scoped_restore_tmpl<T>&)): Likewise.
13140 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13142 (scoped_restore_tmpl::saved_var): New method.
13143 (scoped_restore_tmpl::m_saved_var): Delete.
13144 * inferior.h (inferior::detaching): Now a bool.
13145 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13147 * unittests/scoped_restore-selftests.c: New file.
13149 2017-04-19 Pedro Alves <palves@redhat.com>
13151 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13152 Re-sort in alphabetic order.
13154 2017-04-18 Pedro Alves <palves@redhat.com>
13156 * xml-support.c (obstack_xml_printf): Delete.
13157 * xml-support.h (obstack_xml_printf): Delete.
13159 2017-04-18 Pedro Alves <palves@redhat.com>
13161 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13162 vdebug, verror, body_text, start_element, end_element, name,
13163 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13164 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13165 is_xinclude>: Make private and add m_ prefix.
13166 (gdb_xml_parser::body_text): New method, based on ...
13167 (gdb_xml_body_text): ... this. Adjust.
13168 (gdb_xml_parser::vdebug): New method, based on ...
13169 (gdb_xml_debug): ... this. Adjust.
13170 (gdb_xml_parser::verror): New method, based on ...
13171 (gdb_xml_error): ... this. Adjust.
13172 (gdb_xml_parser::start_element): New method, based on ...
13173 (gdb_xml_start_element): ... this. Adjust.
13174 (gdb_xml_start_element_wrapper): Defer to
13175 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13176 (gdb_xml_parser::end_element): New method, based on ...
13177 (gdb_xml_end_element_wrapper): ... this. Adjust.
13178 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13179 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13180 (gdb_xml_parser::use_dtd): New method, based on ...
13181 (gdb_xml_use_dtd): ... this. Adjust.
13182 (gdb_xml_parser::parse): New method, based on ...
13183 (gdb_xml_parse): ... this. Adjust.
13184 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13185 (xinclude_start_include): Adjust to call the parser's name method.
13186 (xml_xinclude_default, xml_xinclude_start_doctype)
13187 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13189 (xml_process_xincludes): Adjust to call parser methods.
13190 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13193 2017-04-18 Pedro Alves <palves@redhat.com>
13195 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13196 gdb::optional<std::string>.
13197 * xml-support.c: Include <string>.
13198 (scope_level::scope_level(scope_level &&))
13199 (scope_level::~scope_level): Delete.
13200 (scope_level::body): Now a std::string.
13201 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13202 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13204 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13205 (xinclude_parsing_data::output): Now a std::string reference.
13206 (xinclude_start_include): Adjust.
13207 (xml_xinclude_default): Adjust.
13208 (xml_process_xincludes): Add 'output' parameter, and return bool.
13209 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13211 * xml-tdesc.c: Include <unordered_map> and <string>.
13212 (tdesc_xml_cache): Delete.
13213 (tdesc_xml_cache_s): Delete.
13214 (xml_cache): Now an std::unordered_map.
13215 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13216 (target_fetch_description_xml): Change return type to
13217 gdb::optional<std::string>, and adjust.
13218 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13219 (target_fetch_description_xml): Change return type to
13220 gdb::optional<std::string>.
13222 2017-04-18 Pedro Alves <palves@redhat.com>
13224 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13225 unittests/optional-selftests.c.
13226 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13227 * unittests/optional-selftests.c: New file.
13228 * unittests/optional/assignment/1.cc: New file.
13229 * unittests/optional/assignment/2.cc: New file.
13230 * unittests/optional/assignment/3.cc: New file.
13231 * unittests/optional/assignment/4.cc: New file.
13232 * unittests/optional/assignment/5.cc: New file.
13233 * unittests/optional/assignment/6.cc: New file.
13234 * unittests/optional/assignment/7.cc: New file.
13235 * unittests/optional/cons/copy.cc: New file.
13236 * unittests/optional/cons/default.cc: New file.
13237 * unittests/optional/cons/move.cc: New file.
13238 * unittests/optional/cons/value.cc: New file.
13239 * unittests/optional/in_place.cc: New file.
13240 * unittests/optional/observers/1.cc: New file.
13241 * unittests/optional/observers/2.cc: New file.
13243 2017-04-18 Pedro Alves <palves@redhat.com>
13245 * common/gdb_optional.h: Include common/traits.h.
13246 (in_place_t): New type.
13247 (in_place): New constexpr variable.
13248 (optional::optional): Remove member initialization of
13250 (optional::optional(in_place_t...)): New constructor.
13251 (optional::~optional): Use reset.
13252 (optional::optional(const optional&)): New.
13253 (optional::optional(const optional&&)): New.
13254 (optional::optional(T &)): New.
13255 (optional::optional(T &&)): New.
13256 (operator::operator=(const optional &)): New.
13257 (operator::operator=(optional &&)): New.
13258 (operator::operator= (const T &))
13259 (operator::operator= (T &&))
13260 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13261 (operator::reset): New.
13262 (operator::m_instantiated):: Add in-class initializer.
13263 * common/traits.h: Include <type_traits>.
13264 (struct And): New types.
13266 2017-04-18 Pedro Alves <palves@redhat.com>
13268 * xml-support.c: Include <vector>.
13269 (scope_level::scope_level(const gdb_xml_element *))
13270 (scope_level::scope_level(scope_level&&)): New.
13271 (scope_level::~scope_level): New.
13272 (scope_level_s): Delete.
13273 (gdb_xml_parser::scopes): Now a std::vector.
13274 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13276 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13277 scope cleanup code.
13278 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13279 of the scopes member. Use std::vector::emplace_back.
13281 2017-04-18 Pedro Alves <palves@redhat.com>
13283 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13285 (gdb_xml_end_element): Change type of first parameter.
13286 (gdb_xml_cleanup): Rename to ...
13287 (gdb_xml_parser::~gdb_xml_parser): ... this.
13288 (gdb_xml_create_parser_and_cleanup): Delete with ...
13289 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13291 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13292 using gdb_xml_create_parser_and_cleanup.
13293 (xinclude_parsing_data): Add ctor/dtor.
13294 (xml_xinclude_cleanup): Delete.
13295 (xml_process_xincludes): Create a local xinclude_parsing_data
13296 instead of heap-allocating one. Create a local gdb_xml_parser
13297 instead of heap-allocating one with
13298 gdb_xml_create_parser_and_cleanup.
13300 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13303 * fbsd-nat.c (resume_one_thread_cb): Remove.
13304 (resume_all_threads_cb): Remove.
13305 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13306 iterate_over_threads.
13308 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13310 * NEWS: Create a new section for the next release branch.
13311 Rename the section of the current branch, now that it has
13314 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13316 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13317 * version.in: Bump version to 8.0.50.DATE-git.
13319 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13322 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13323 independently of the host, and fix build breakage on Cygwin.
13325 2017-04-13 Pedro Alves <palves@redhat.com>
13327 * inferior.c (free_inferior): Convert to ...
13328 (inferior::~inferior): ... this dtor.
13329 (inferior::inferior): New ctor, factored out from ...
13330 (add_inferior_silent): ... here. Allocate the inferior with a new
13332 (delete_inferior): Call delete instead of free_inferior.
13333 * inferior.h (gdb_environ, continuation): Forward declare.
13334 (inferior): Now a class. Add in-class initialization to all
13335 members. Make boolean fields bool, except 'detaching'.
13336 (inferior::inferior): New explicit ctor.
13337 (inferior::~inferior): New.
13339 2017-04-13 Pedro Alves <palves@redhat.com>
13341 * inferior.c (init_inferior_list): Delete.
13342 * inferior.h (init_inferior_list): Delete.
13344 2017-04-13 Pedro Alves <palves@redhat.com>
13347 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13348 (top level): Call it twice, with different thread sets.
13350 2017-04-13 Pedro Alves <palves@redhat.com>
13352 * thread.c: Include <algorithm>.
13353 (thread_array_cleanup): Delete.
13354 (scoped_inc_dec_ref): New class.
13355 (live_threads_count): New function.
13356 (set_thread_refcount): Delete.
13357 (tp_array_compar_ascending): Now a bool.
13358 (tp_array_compar): Convert to a std::sort comparison function.
13359 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13360 and live_threads_count.
13362 2017-04-13 Pedro Alves <palves@redhat.com>
13364 * infrun.c (follow_fork_inferior): Also switch the current
13367 2017-04-13 Pedro Alves <palves@redhat.com>
13369 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13370 before calling create_internal_breakpoint.
13372 2017-04-13 Pedro Alves <palves@redhat.com>
13374 * fork-child.c (execv_argv): New class.
13375 (breakup_args): Refactored as ...
13376 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13377 Copy arguments to storage and replace separators with NULL
13378 terminators in place.
13379 (escape_bang_in_quoted_argument): Adjust to return bool.
13380 (execv_argv::execv_argv): New ctor.
13381 (execv_argv::init_for_shell): New method, factored out from
13382 fork_inferior. Don't strdup strings into the vector.
13383 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13384 Remove free_vector_argv call.
13386 2017-04-13 Yao Qi <yao.qi@linaro.org>
13388 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13391 2017-04-13 Yao Qi <yao.qi@linaro.org>
13393 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13394 * rx-tdep.c (rx_gdbarch_init): Likewise.
13396 2017-04-13 Pedro Alves <palves@redhat.com>
13398 * breakpoint.h (struct breakpoint): Reindent.
13400 2017-04-13 Pedro Alves <palves@redhat.com>
13402 * breakpoint.c (bp_location): Rename to ...
13403 (bp_locations): ... this. All references updated.
13404 (bp_location_count): Rename to ...
13405 (bp_locations_count): ... this. All references updated.
13406 (bp_location_placed_address_before_address_max): Rename to ...
13407 (bp_locations_placed_address_before_address_max): ... this. All
13408 references updated.
13409 (bp_location_shadow_len_after_address_max): Rename to ...
13410 (bp_locations_shadow_len_after_address_max): ... this. All
13411 references updated.
13412 (bp_location_compare_addrs): Rename to ...
13413 (bp_locations_compare_addrs): ... this. All references updated.
13414 (bp_location_compare):Rename to ...
13415 (bp_locations_compare): ... this. All references updated.
13416 (bp_location_target_extensions_update): Rename to ...
13417 (bp_locations_target_extensions_update): ... this. All references
13420 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13422 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13423 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13425 * common/gdb_termios.h: New file, with parts of "terminal.h".
13426 * inflow.c: Include "gdb_termios.h".
13427 * ser-unix.c: Include "gdb_termios.h".
13428 * terminal.h: Move terminal-related defines to
13429 "common/gdb_termios.h".
13431 2017-04-12 Tom Tromey <tom@tromey.com>
13433 * probe.c (parse_probes): Update.
13434 * location.h (delete_event_location): Don't declare.
13435 (event_location_deleter::operator()): Update.
13436 * location.c (event_location_deleter::operator()): Rename from
13437 delete_event_location.
13438 * linespec.h (linespec_result) <location>: Change type to
13440 * linespec.c (canonicalize_linespec, event_location_to_sals)
13441 (decode_objc): Update.
13442 (linespec_result): Don't call delete_event_location.
13443 * breakpoint.c (create_breakpoints_sal)
13444 (bkpt_probe_create_sals_from_location)
13445 (strace_marker_create_sals_from_location): Update.
13447 2017-04-12 Tom Tromey <tom@tromey.com>
13449 * linespec.h (struct linespec_result): Add constructor and
13451 (init_linespec_result, destroy_linespec_result)
13452 (make_cleanup_destroy_linespec_result): Don't declare.
13453 * linespec.c (init_linespec_result): Remove.
13454 (linespec_result::~linespec_result): Rename from
13455 destroy_linespec_result. Update.
13456 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13458 * breakpoint.c (create_breakpoint, break_range_command)
13459 (decode_location_default): Update.
13460 * ax-gdb.c (agent_command_1): Update.
13462 2017-04-12 Tom Tromey <tom@tromey.com>
13464 * remote.c (remote_download_tracepoint): Update.
13465 * python/py-breakpoint.c (bppy_get_location): Update.
13466 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13467 (gdbscm_breakpoint_location): Update.
13468 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13469 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13470 Change type to event_location_up.
13471 * breakpoint.c (create_overlay_event_breakpoint)
13472 (create_longjmp_master_breakpoint)
13473 (create_std_terminate_master_breakpoint)
13474 (create_exception_master_breakpoint)
13475 (breakpoint_event_location_empty_p, print_breakpoint_location)
13476 (print_one_breakpoint_location, create_thread_event_breakpoint)
13477 (init_breakpoint_sal, create_breakpoint)
13478 (print_recreate_ranged_breakpoint, break_range_command)
13479 (init_ada_exception_breakpoint, say_where): Update.
13480 (base_breakpoint_dtor): Don't call delete_event_location.
13481 (bkpt_print_recreate, tracepoint_print_recreate)
13482 (dprintf_print_recreate, update_static_tracepoint)
13483 (breakpoint_re_set_default): Update.
13485 2017-04-12 Tom Tromey <tom@tromey.com>
13487 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13488 type of "to_do". Update.
13489 (compute_stack_depth): Use std::vector.
13491 2017-04-12 Tom Tromey <tom@tromey.com>
13493 * printcmd.c (find_instruction_backward): Use std::vector.
13495 2017-04-12 Tom Tromey <tom@tromey.com>
13497 * symfile.c (objfilep): Remove typedef.
13498 (reread_symbols): Use a std::vector.
13500 2017-04-12 Tom Tromey <tom@tromey.com>
13502 * mi/mi-main.c (exec_direction_forward): Remove.
13503 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13504 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13506 * guile/guile.c (guile_repl_command, guile_command)
13507 (gdbscm_execute_gdb_command): Use scoped_restore.
13508 * go-exp.y (go_parse): Use scoped_restore.
13509 * d-exp.y (d_parse): Use scoped_restore.
13510 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13511 * c-exp.y (c_parse): Use scoped_restore.
13513 2017-04-12 Tom Tromey <tom@tromey.com>
13515 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13516 (mi_parse): Update return type.
13517 (mi_parse_free): Remove.
13518 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13519 (mi_parse::~mi_parse): Rename from mi_parse_free.
13520 (mi_parse_cleanup): Remove.
13521 (mi_parse): Return a unique_ptr. Use new.
13522 * mi/mi-main.c (mi_execute_command): Update.
13524 2017-04-12 Tom Tromey <tom@tromey.com>
13526 * location.c (explicit_location_lex_one): Return a
13527 unique_xmalloc_ptr.
13528 (string_to_explicit_location): Update. Remove cleanups.
13530 2017-04-12 Tom Tromey <tom@tromey.com>
13532 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13533 (compare_value_and_voffset): Change type. Update.
13534 (compute_vtable_size): Change type of "offset_vec".
13535 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13536 (gnuv3_get_typeid): Remove extraneous declaration.
13538 2017-04-12 Tom Tromey <tom@tromey.com>
13540 * charset.h (wchar_iterator): Fix comment.
13542 2017-04-12 Tom Tromey <tom@tromey.com>
13544 * charset.c (iconv_wrapper): New class.
13545 (cleanup_iconv): Remove.
13546 (convert_between_encodings): Use it.
13548 2017-04-12 Tom Tromey <tom@tromey.com>
13550 * symfile.h (increment_reading_symtab): Update type.
13551 * symfile.c (decrement_reading_symtab): Remove.
13552 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13553 * psymtab.c (psymtab_to_symtab): Update.
13554 * dwarf2read.c (dw2_instantiate_symtab): Update.
13556 2017-04-12 Tom Tromey <tom@tromey.com>
13558 * jit.c (struct jit_reader): Declare separately. Add constructor
13559 and destructor. Change type of "handle".
13560 (loaded_jit_reader): Define separately.
13561 (jit_reader_load): Update. New "new".
13562 (jit_reader_unload_command): Use "delete".
13563 * gdb-dlfcn.h (struct dlclose_deleter): New.
13564 (gdb_dlhandle_up): New typedef.
13565 (gdb_dlopen, gdb_dlsym): Update types.
13566 (gdb_dlclose): Remove.
13567 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13568 (gdb_dlsym): Change type of "handle".
13569 (make_cleanup_dlclose): Remove.
13570 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13571 * compile/compile-c-support.c (load_libcc): Update.
13573 2017-04-12 Tom Tromey <tom@tromey.com>
13575 * symtab.h (find_pcs_for_symtab_line): Change return type.
13576 * symtab.c (find_pcs_for_symtab_line): Change return type.
13577 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13578 type of "vec". Update.
13579 (ltpy_get_pcs_for_line): Update.
13580 * linespec.c (decode_digits_ordinary): Update.
13582 2017-04-12 Tom Tromey <tom@tromey.com>
13584 * tracepoint.c (actions_command): Update.
13585 * python/python.c (python_command, python_interactive_command):
13587 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13588 * guile/guile.c (guile_command): Update.
13589 * defs.h (read_command_lines, read_command_lines_1): Return
13591 (command_lines_deleter): New struct.
13592 (command_line_up): New typedef.
13593 * compile/compile.c (compile_code_command)
13594 (compile_print_command): Update.
13595 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13597 (make_cleanup_free_command_lines): Remove.
13598 * cli/cli-script.c (get_command_line, read_command_lines_1)
13599 (copy_command_lines): Return command_line_up.
13600 (while_command, if_command, read_command_lines, define_command)
13601 (document_command): Update.
13602 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13604 * breakpoint.h (breakpoint_set_commands): Change type of
13606 * breakpoint.c (breakpoint_set_commands): Change type of
13607 "commands". Update.
13608 (do_map_commands_command, update_dprintf_command_list)
13609 (create_tracepoint_from_upload): Update.
13611 2017-04-12 Tom Tromey <tom@tromey.com>
13613 * tracepoint.c (scope_info): Update.
13614 * spu-tdep.c (spu_catch_start): Update.
13615 * python/python.c (gdbpy_decode_line): Update.
13616 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
13617 * python/py-breakpoint.c (bppy_init): Update.
13618 * probe.c (parse_probes): Update.
13619 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
13620 * location.h (event_location_deleter): New struct.
13621 (event_location_up): New typedef.
13622 (new_linespec_location, new_address_location, new_probe_location)
13623 (new_explicit_location, copy_event_location)
13624 (string_to_event_location, string_to_event_location_basic)
13625 (string_to_explicit_location): Update return type.
13626 (make_cleanup_delete_event_location): Remove.
13627 * location.c (new_linespec_location, new_address_location)
13628 (new_probe_location, new_explicit_location, copy_event_location):
13629 Return event_location_up.
13630 (delete_event_location_cleanup)
13631 (make_cleanup_delete_event_location): Remove.
13632 (string_to_explicit_location, string_to_event_location_basic)
13633 (string_to_event_location): Return event_location_up.
13634 * linespec.c (canonicalize_linespec, event_location_to_sals)
13635 (decode_line_with_current_source)
13636 (decode_line_with_last_displayed, decode_objc): Update.
13637 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
13638 * completer.c (location_completer): Update.
13639 * cli/cli-cmds.c (edit_command, list_command): Update.
13640 * breakpoint.c (create_overlay_event_breakpoint)
13641 (create_longjmp_master_breakpoint)
13642 (create_std_terminate_master_breakpoint)
13643 (create_exception_master_breakpoint)
13644 (create_thread_event_breakpoint): Update.
13645 (init_breakpoint_sal): Update. Remove some dead code.
13646 (create_breakpoint_sal): Change type of "location". Update.
13647 (create_breakpoints_sal, create_breakpoint, break_command_1)
13648 (dprintf_command, break_range_command, until_break_command)
13649 (init_ada_exception_breakpoint)
13650 (strace_marker_create_sals_from_location)
13651 (update_static_tracepoint, trace_command, ftrace_command)
13652 (strace_command, create_tracepoint_from_upload): Update.
13653 * break-catch-throw.c (re_set_exception_catchpoint): Update.
13654 * ax-gdb.c (agent_command_1): Update.
13656 2017-04-12 Pedro Alves <palves@redhat.com>
13658 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
13659 * configure.tgt: Handle i[34567]86-*-go32* and
13660 i[34567]86-*-msdosdjgpp*.
13661 * i386-tdep.c (i386_svr4_reg_to_regnum):
13663 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
13665 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
13666 * i386-go32-tdep.c: New file.
13667 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
13670 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
13672 * aix-thread.c (pd_status2str): Change return type to const char *.
13674 2017-04-12 Pedro Alves <palves@redhat.com>
13676 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
13677 calls to set_gdbarch_gnu_triplet_regexp.
13679 2017-04-12 Pedro Alves <palves@redhat.com>
13682 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
13684 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
13685 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
13686 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
13687 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
13688 * gdbarch.h, gdbarch.c: Regenerate.
13689 * aarch64-tdep.c (aarch64_gdbarch_init): Override
13690 gdbarch_wchar_bit and gdbarch_wchar_signed.
13691 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
13692 * arm-tdep.c (arm_gdbarch_init): Likewise.
13693 * avr-tdep.c (avr_gdbarch_init): Likewise.
13694 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13695 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
13696 * i386-tdep.c (i386_go32_init_abi): Likewise.
13697 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13698 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13699 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
13700 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
13701 * sh-tdep.c (sh_gdbarch_init): Likewise.
13702 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13703 * sparc64-tdep.c (sparc64_init_abi): Likewise.
13704 * windows-tdep.c (windows_init_abi): Likewise.
13705 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13707 2017-04-12 Pedro Alves <palves@redhat.com>
13710 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
13711 cplus_primitive_type_char32_t>: New enum values.
13712 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
13713 and cplus_primitive_type_char32_t.
13714 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
13715 32, use the archtecture's built-in type for char16_t and char32_t,
13716 respectively. Otherwise, fallback to init_integer_type as before,
13717 but make the type unsigned, and issue a complaint.
13718 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
13720 2017-04-12 Alan Hayward <alan.hayward@arm.com>
13722 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
13723 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13725 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13727 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13730 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13732 * common/common-utils.c (free_vector_argv): New function.
13733 * common/common-utils.h: Include <vector>.
13734 (free_vector_argv): New prototype.
13735 * darwin-nat.c (darwin_create_inferior): Rewrite function
13736 prototype in order to constify "exec_file" and accept a
13737 "std::string" for "allargs".
13738 * fork-child.c: Include <vector>.
13739 (breakup_args): Rewrite function, using C++.
13740 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13741 and accept "std::string" for "allargs". Update the code to
13742 calculate "argv" based on "allargs". Update calls to "exec_fun"
13744 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13745 order to constify "exec_file" and accept a "std::string" for
13747 * go32-nat.c (go32_create_inferior): Likewise.
13748 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13749 * infcmd.c (run_command_1): Constify "exec_file". Use
13750 "std::string" for inferior arguments.
13751 * inferior.h (fork_inferior): Update prototype.
13752 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13753 prototype in order to constify "exec_file" and accept a
13754 "std::string" for "allargs".
13755 * nto-procfs.c (procfs_create_inferior): Likewise.
13756 * procfs.c (procfs_create_inferior): Likewise.
13757 * remote-sim.c (gdbsim_create_inferior): Likewise.
13758 * remote.c (extended_remote_run): Update code to accept
13759 "std::string" as argument.
13760 (extended_remote_create_inferior): Rewrite function prototype in
13761 order to constify "exec_file" and accept a "std::string" for
13763 * rs6000-nat.c (super_create_inferior): Likewise.
13764 (rs6000_create_inferior): Likewise.
13765 * target.h (struct target_ops) <to_create_inferior>: Likewise.
13766 * windows-nat.c (windows_create_inferior): Likewise.
13768 2017-04-11 Pedro Alves <palves@redhat.com>
13770 * thread.c: Fix whitespace throughout.
13772 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
13774 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
13776 2017-04-11 Alan Hayward <alan.hayward@arm.com>
13778 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
13780 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
13783 * osdata.c (info_osdata): Check if 'type' is an empty string
13786 2017-04-10 Pedro Alves <palves@redhat.com>
13788 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
13789 (ptid_to_global_thread_id, in_thread_list)
13790 (do_captured_list_thread_ids, set_resumed, set_running)
13791 (set_executing, set_stop_requested, finish_thread_state)
13792 (validate_registers_access, can_access_registers_ptid)
13793 (print_thread_info_1, switch_to_thread)
13794 (do_restore_current_thread_cleanup)
13795 (make_cleanup_restore_current_thread, thread_command)
13796 (thread_name_command): Use operator== instead of ptid_equal.
13798 2017-04-10 Pedro Alves <palves@redhat.com>
13800 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13801 (current_thread_cleanup_chain): Delete.
13802 (restore_current_thread_cleanup_dtor)
13803 (make_cleanup_restore_current_thread): Remove references to
13804 current_thread_cleanup_chain.
13806 2017-04-10 Alan Hayward <alan.hayward@arm.com>
13808 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13811 2017-04-10 Yao Qi <yao.qi@linaro.org>
13814 * gdbthread.h (thread_info::deletable): New method.
13815 (thread_info::incref): New method.
13816 (thread_info::decref): New method.
13817 (thread_info::refcount): Move it to private.
13818 * infrun.c (save_stop_context): Call inc_refcount.
13819 (release_stop_context_cleanup): Likewise.
13820 * thread.c (set_thread_exited): New function.
13821 (init_thread_list): Delete "tp" only it is deletable, otherwise
13822 call set_thread_exited.
13823 (delete_thread_1): Call set_thread_exited.
13824 (current_thread_cleanup) <inferior_pid>: Remove.
13825 <thread>: New field.
13826 (restore_current_thread_ptid_changed): Removed.
13827 (do_restore_current_thread_cleanup): Adjust.
13828 (restore_current_thread_cleanup_dtor): Don't call
13830 (set_thread_refcount): Use dec_refcount.
13831 (make_cleanup_restore_current_thread): Adjust.
13832 (thread_apply_all_command): Call inc_refcount.
13833 (_initialize_thread): Don't call
13834 observer_attach_thread_ptid_changed.
13836 2017-04-10 Yao Qi <yao.qi@linaro.org>
13838 * thread.c (delete_thread_1): Hoist code on marking thread as
13841 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13843 * windows-nat.c (windows_detach): Initialize ptid with
13846 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
13848 * unittests/ptid-selftests.c: Fix erroneous assert messages.
13850 2017-04-07 Alan Hayward <alan.hayward@arm.com>
13852 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
13853 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
13854 (bfin_pseudo_register_write): Likewise
13856 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
13858 * common/ptid.h (struct ptid): Change to...
13859 (class ptid_t): ... this.
13860 <ptid_t>: New constructors.
13861 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
13862 matches>: New methods.
13863 <make_null, make_minus_one>: New static methods.
13864 <pid>: Rename to...
13866 <lwp>: Rename to...
13868 <tid>: Rename to...
13870 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
13871 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
13872 as references, move comment to class ptid_t.
13873 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
13874 ptid_t static methods.
13875 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
13876 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
13877 Take ptid arguments as references, implement using ptid_t methods.
13878 * unittests/ptid-selftests.c: New file.
13879 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13880 unittests/ptid-selftests.c.
13881 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
13883 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13885 * python/python.c (python_run_simple_file): Cast mode literal to
13886 non-const char pointer as expected by PyFile_FromString.
13888 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
13890 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
13891 minus_one_ptid and null_ptid.
13893 2017-04-05 Pedro Alves <palves@redhat.com>
13895 * warning.m4 (build_warnings): Remove -Wno-write-strings.
13896 * configure: Regenerate.
13898 2017-04-05 Pedro Alves <palves@redhat.com>
13900 * ada-exp.y (yyerror): Constify.
13901 * ada-lang.c (bound_name, get_selections)
13902 (ada_variant_discrim_type)
13903 (ada_variant_discrim_name, ada_value_struct_elt)
13904 (ada_lookup_struct_elt_type, is_unchecked_variant)
13905 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
13906 (catch_ada_exception_command_split)
13907 (catch_ada_assert_command_split, catch_assert_command)
13908 (ada_op_name): Constify.
13909 * ada-lang.h (ada_yyerror, get_selections)
13910 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
13911 * arc-tdep.c (arc_print_frame_cache): Constify.
13912 * arm-tdep.c (arm_skip_stub): Constify.
13913 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
13914 (gen_aggregate_elt_ref): Constify.
13915 * bcache.c (print_bcache_statistics): Constify.
13916 * bcache.h (print_bcache_statistics): Constify.
13917 * break-catch-throw.c (catch_exception_command_1):
13918 * breakpoint.c (struct ep_type_description::description):
13920 (add_solib_catchpoint): Constify.
13921 (catch_fork_command_1): Add cast.
13922 (add_catch_command): Constify.
13923 * breakpoint.h (add_catch_command, add_solib_catchpoint):
13925 * bsd-uthread.c (bsd_uthread_state): Constify.
13926 * buildsym.c (patch_subfile_names): Constify.
13927 * buildsym.h (next_symbol_text_func, patch_subfile_names):
13929 * c-exp.y (yyerror): Constify.
13930 (token::oper): Constify.
13931 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
13932 * c-varobj.c (cplus_describe_child): Constify.
13933 * charset.c (find_charset_names): Add cast.
13934 (find_charset_names): Constify array and add const_cast.
13935 * cli/cli-cmds.c (complete_command, cd_command): Constify.
13936 (edit_command): Constify.
13937 * cli/cli-decode.c (lookup_cmd): Constify.
13938 * cli/cli-dump.c (dump_memory_command, dump_value_command):
13940 (struct dump_context): Constify.
13941 (add_dump_command, restore_command): Constify.
13942 * cli/cli-script.c (get_command_line): Constify.
13943 * cli/cli-script.h (get_command_line): Constify.
13944 * cli/cli-utils.c (check_for_argument): Constify.
13945 * cli/cli-utils.h (check_for_argument): Constify.
13946 * coff-pe-read.c (struct read_pe_section_data): Constify.
13947 * command.h (lookup_cmd): Constify.
13948 * common/print-utils.c (decimal2str): Constify.
13949 * completer.c (gdb_print_filename): Constify.
13950 * corefile.c (set_gnutarget): Constify.
13951 * cp-name-parser.y (yyerror): Constify.
13952 * cp-valprint.c (cp_print_class_member): Constify.
13953 * cris-tdep.c (cris_register_name, crisv32_register_name):
13955 * d-exp.y (yyerror): Constify.
13956 (struct token::oper): Constify.
13957 * d-lang.h (d_yyerror): Constify.
13958 * dbxread.c (struct header_file_location::name): Constify.
13959 (add_old_header_file, add_new_header_file, last_function_name)
13960 (dbx_next_symbol_text, add_bincl_to_list)
13961 (find_corresponding_bincl_psymtab, set_namestring)
13962 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
13963 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
13964 * defs.h (command_line_input, print_address_symbolic)
13965 (deprecated_readline_begin_hook): Constify.
13966 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
13968 * event-top.c (handle_line_of_input): Constify and add cast.
13969 * exceptions.c (catch_errors): Constify.
13970 * exceptions.h (catch_errors): Constify.
13971 * expprint.c (print_subexp_standard, op_string, op_name)
13972 (op_name_standard, dump_raw_expression, dump_raw_expression):
13973 * expression.h (op_name, op_string, dump_raw_expression):
13975 * f-exp.y (yyerror): Constify.
13976 (struct token::oper): Constify.
13977 (struct f77_boolean_val::name): Constify.
13978 * f-lang.c (f_word_break_characters): Constify.
13979 * f-lang.h (f_yyerror): Constify.
13980 * fork-child.c (fork_inferior): Add cast.
13981 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
13982 (new_variant): Constify.
13983 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
13984 * gdbarch.c: Regenerate.
13985 * gdbcore.h (set_gnutarget): Constify.
13986 * go-exp.y (yyerror): Constify.
13987 (token::oper): Constify.
13988 * go-lang.h (go_yyerror): Constify.
13989 * go32-nat.c (go32_sysinfo): Constify.
13990 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
13991 * guile/scm-cmd.c (cmdscm_function): Constify.
13992 * guile/scm-param.c (pascm_param_value): Constify.
13993 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
13994 (h8300sx_register_name): Constify.
13995 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
13997 * ia64-tdep.c (ia64_register_names): Constify.
13998 * infcmd.c (construct_inferior_arguments): Constify.
13999 (path_command, attach_post_wait): Constify.
14000 * language.c (show_range_command, show_case_command)
14001 (unk_lang_error): Constify.
14002 * language.h (language_defn::la_error)
14003 (language_defn::la_name_of_this): Constify.
14004 * linespec.c (decode_line_2): Constify.
14005 * linux-thread-db.c (thread_db_err_str): Constify.
14006 * lm32-tdep.c (lm32_register_name): Constify.
14007 * m2-exp.y (yyerror): Constify.
14008 * m2-lang.h (m2_yyerror): Constify.
14009 * m32r-tdep.c (m32r_register_names): Constify and make static.
14010 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14011 * m88k-tdep.c (m88k_register_name): Constify.
14012 * macroexp.c (appendmem): Constify.
14013 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14014 (upgrade_type, parse_external, parse_partial_symbols)
14015 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14016 (new_symbol): Constify.
14017 * memattr.c (mem_info_command): Constify.
14018 * mep-tdep.c (register_name_from_keyword): Constify.
14019 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14021 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14022 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14023 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14025 (mi_execute_async_cli_command): Constify.
14026 * mips-tdep.c (mips_register_name): Constify.
14027 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14028 (am33_register_name, am33_2_register_name)
14029 * moxie-tdep.c (moxie_register_names): Constify.
14030 * nat/linux-osdata.c (osdata_type): Constify fields.
14031 * nto-tdep.c (nto_parse_redirection): Constify.
14032 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14033 (lookup_child_selector): Constify.
14034 (objc_methcall::name): Constify.
14035 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14036 (lookup_struct_typedef): Constify.
14037 * objfiles.c (pc_in_section): Constify.
14038 * objfiles.h (pc_in_section): Constify.
14039 * p-exp.y (struct token::oper): Constify.
14040 (yyerror): Constify.
14041 * p-lang.h (pascal_yyerror): Constify.
14042 * parser-defs.h (op_name_standard): Constify.
14043 (op_print::string): Constify.
14044 (exp_descriptor::op_name): Constify.
14045 * printcmd.c (print_address_symbolic): Constify.
14046 * psymtab.c (print_partial_symbols): Constify.
14047 * python/py-breakpoint.c (stop_func): Constify.
14048 (bppy_get_expression): Constify.
14049 * python/py-cmd.c (cmdpy_completer::name): Constify.
14050 (cmdpy_function): Constify.
14051 * python/py-event.c (evpy_add_attribute)
14052 (gdbpy_initialize_event_generic): Constify.
14053 * python/py-event.h (evpy_add_attribute)
14054 (gdbpy_initialize_event_generic): Constify.
14055 * python/py-evts.c (add_new_registry): Constify.
14056 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14057 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14058 * python/py-inferior.c (get_buffer): Add cast.
14059 * python/py-param.c (parm_constant::name): Constify.
14060 * python/py-unwind.c (fprint_frame_id): Constify.
14061 * python/python.c (gdbpy_parameter_value): Constify.
14062 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14063 * remote.c (memory_packet_config::name): Constify.
14064 (show_packet_config_cmd, remote_write_bytes)
14065 (remote_buffer_add_string):
14066 * reverse.c (exec_reverse_once): Constify.
14067 * rs6000-tdep.c (variant::name, variant::description): Constify.
14068 * rust-exp.y (rustyyerror): Constify.
14069 * rust-lang.c (rust_op_name): Constify.
14070 * rust-lang.h (rustyyerror): Constify.
14071 * serial.h (serial_ops::name): Constify.
14072 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14073 (sh_sh3e_register_name, sh_sh2e_register_name)
14074 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14075 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14076 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14077 (sh_sh4al_dsp_register_name): Constify.
14078 * sh64-tdep.c (sh64_register_name): Constify.
14079 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14080 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14081 * stabsread.c (patch_block_stabs, read_type_number)
14082 (ref_map::stabs, ref_add, process_reference)
14083 (symbol_reference_defined, define_symbol, define_symbol)
14084 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14085 (read_one_struct_field, read_struct_fields, read_baseclasses)
14086 (read_tilde_fields, read_struct_type, read_array_type)
14087 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14088 (read_huge_number, read_range_type, read_args, common_block_start)
14089 (find_name_end): Constify.
14090 * stabsread.h (common_block_start, define_symbol)
14091 (process_one_symbol, symbol_reference_defined, ref_add):
14092 * symfile.c (get_section_index, add_symbol_file_command):
14093 * symfile.h (get_section_index): Constify.
14094 * target-descriptions.c (tdesc_type::name): Constify.
14095 (tdesc_free_type): Add cast.
14096 * target.c (find_default_run_target):
14097 (add_deprecated_target_alias, find_default_run_target)
14098 (target_announce_detach): Constify.
14099 (do_option): Constify.
14100 * target.h (add_deprecated_target_alias): Constify.
14101 * thread.c (print_thread_info_1): Constify.
14102 * top.c (deprecated_readline_begin_hook, command_line_input):
14104 (init_main): Add casts.
14105 * top.h (handle_line_of_input): Constify.
14106 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14107 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14108 (tfind_command): Rename to ...
14109 (tfind_command_1): ... this and constify.
14110 (tfind_command): New function.
14111 (tfind_end_command, tfind_start_command): Adjust.
14112 (encode_source_string): Constify.
14113 * tracepoint.h (encode_source_string): Constify.
14114 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14115 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14116 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14117 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14118 * tui/tui-win.c (parse_scrolling_args): Constify.
14119 * tui/tui-windata.c (tui_erase_data_content): Constify.
14120 * tui/tui-windata.h (tui_erase_data_content): Constify.
14121 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14122 * tui/tui.c (tui_enable): Add cast.
14123 * utils.c (defaulted_query): Constify.
14124 (init_page_info): Add cast.
14125 (puts_debug, subset_compare): Constify.
14126 * utils.h (subset_compare): Constify.
14127 * varobj.c (varobj_format_string): Constify.
14128 * varobj.h (varobj_format_string): Constify.
14129 * vax-tdep.c (vax_register_name): Constify.
14130 * windows-nat.c (windows_detach): Constify.
14131 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14132 * xml-support.c (gdb_xml_end_element): Constify.
14133 * xml-tdesc.c (tdesc_start_reg): Constify.
14134 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14135 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14136 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14138 2017-04-05 Pedro Alves <palves@redhat.com>
14140 * proc-api.c (struct trans): Constify.
14141 (procfs_note): Constify.
14142 * proc-events.c (struct trans, syscall_table):
14143 * proc-flags.c (struct trans): Constify.
14144 * proc-utils.h (procfs_note): Constify.
14145 * proc-why.c (struct trans): Constify.
14146 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14147 (procfs_detach): Constify.
14148 * sol-thread.c (struct string_map): Constify.
14149 (td_err_string, td_state_string): Constify.
14151 2017-04-05 Pedro Alves <palves@redhat.com>
14153 * proc-api.c (procfs_filename): Don't initialize
14155 (prepare_to_trace): Assume procfs_filename is non-NULL.
14156 (_initialize_proc_api): Give procfs_filename a default value here.
14158 2017-04-05 Pedro Alves <palves@redhat.com>
14160 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14161 'cond_string' parameter.
14162 (extract_exception_regexp): Constify 'string' parameter.
14163 (catch_exception_command_1): Constify.
14164 * breakpoint.c (init_catchpoint)
14165 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14167 (ep_parse_optional_if_clause, catch_fork_command_1)
14168 (catch_exec_command_1): Constify.
14169 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14171 (ep_parse_optional_if_clause): Constify.
14172 * cli/cli-utils.c (remove_trailing_whitespace)
14173 (check_for_argument): Constify.
14174 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14175 non-const overload.
14176 (check_for_argument): Likewise.
14178 2017-04-05 Pedro Alves <palves@redhat.com>
14180 * event-top.c (command_line_handler): Add cast to execute_command
14182 * record-btrace.c (cmd_record_btrace_bts_start)
14183 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14184 (cmd_record_btrace_start): Add cast to execute_command call.
14185 * record-full.c (record_full_goto_insn):
14186 * record.c (record_start, record_stop): Add cast to
14187 execute_command_to_string calls.
14188 (cmd_record_start): Add cast to execute_command calls.
14190 2017-04-05 Pedro Alves <palves@redhat.com>
14192 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14193 static inline function.
14194 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14195 array and use gdb_PyArg_ParseTupleAndKeywords.
14196 * python/py-cmd.c (cmdpy_init): Likewise.
14197 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14198 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14199 (infpy_search_memory): Likewise.
14200 * python/py-objfile.c (objfpy_add_separate_debug_file)
14201 (gdbpy_lookup_objfile): Likewise.
14202 * python/py-symbol.c (gdbpy_lookup_symbol)
14203 (gdbpy_lookup_global_symbol): Likewise.
14204 * python/py-type.c (gdbpy_lookup_type): Likewise.
14205 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14206 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14209 2017-04-05 Pedro Alves <palves@redhat.com>
14211 * python/python-internal.h (gdb_PyGetSetDef): New type.
14212 * python/py-block.c (block_object_getset)
14213 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14214 * python/py-event.c (event_object_getset)
14215 (finish_breakpoint_object_getset): Likewise.
14216 * python/py-inferior.c (inferior_object_getset): Likewise.
14217 * python/py-infthread.c (thread_object_getset): Likewise.
14218 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14219 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14220 * python/py-objfile.c (objfile_getset): Likewise.
14221 * python/py-progspace.c (pspace_getset): Likewise.
14222 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14224 * python/py-record.c (recpy_record_getset): Likewise.
14225 * python/py-symbol.c (symbol_object_getset): Likewise.
14226 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14228 * python/py-type.c (type_object_getset, field_object_getset):
14230 * python/py-value.c (value_object_getset): Likewise.
14232 2017-04-05 Pedro Alves <palves@redhat.com>
14234 * python/python-internal.h (gdb_PyObject_CallMethod)
14235 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14237 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14238 (PySys_GetObject, PySys_SetPath): New macros.
14240 2017-04-05 Pedro Alves <palves@redhat.com>
14242 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14243 info_osdata_command.
14244 * osdata.c (info_osdata_command): Rename to ...
14245 (info_osdata): ... this. Constify 'type' parameter, and remove
14246 the 'from_tty' parameter. Accept NULL TYPE.
14247 (info_osdata_command): New function.
14248 * osdata.h (info_osdata_command): Remove declaration.
14249 (info_osdata): New declaration.
14251 2017-04-05 Pedro Alves <palves@redhat.com>
14253 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14254 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14255 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14257 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14258 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14259 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14261 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14262 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14263 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14264 (mi_cmd_file_list_exec_source_files)
14265 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14266 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14267 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14269 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14270 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14271 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14272 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14273 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14274 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14275 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14276 'command' parameter.
14277 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14278 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14279 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14280 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14281 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14282 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14283 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14284 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14285 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14286 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14287 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14289 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14290 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14291 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14292 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14293 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14294 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14295 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14296 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14297 (mi_cmd_data_list_changed_registers)
14298 (mi_cmd_data_write_register_values)
14299 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14300 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14301 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14302 (mi_cmd_list_features, mi_cmd_list_target_features)
14303 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14304 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14305 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14306 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14307 (mi_cmd_trace_frame_collected): Constify 'command'
14309 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14310 'command' parameter.
14312 2017-04-05 Pedro Alves <palves@redhat.com>
14314 * ada-lang.c (ada_completer_word_break_characters): Now a const
14316 (ada_get_gdb_completer_word_break_characters): Constify.
14317 * completer.c (gdb_completer_command_word_break_characters)
14318 (gdb_completer_file_name_break_characters)
14319 (gdb_completer_quote_characters): Now const arrays.
14320 (get_gdb_completer_quote_characters): Constify.
14321 (set_rl_completer_word_break_characters): New function.
14322 (set_gdb_completion_word_break_characters)
14323 (complete_line_internal): Use it.
14324 * completer.h (get_gdb_completer_quote_characters): Constify.
14325 (set_rl_completer_word_break_characters): Declare.
14326 * f-lang.c (f_word_break_characters): Constify.
14327 * language.c (default_word_break_characters): Constify.
14328 * language.h (language_defn::la_word_break_characters): Constify.
14329 (default_word_break_characters): Constify.
14330 * top.c (init_main): Use set_rl_completer_word_break_characters.
14332 2017-04-05 Pedro Alves <palves@redhat.com>
14334 * aix-thread.c (aix_thread_pid_to_str)
14335 (aix_thread_extra_thread_info): Constify.
14336 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14337 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14338 (bsd_uthread_pid_to_str): Constify.
14339 * corelow.c (core_pid_to_str): Constify.
14340 * darwin-nat.c (darwin_pid_to_str): Constify.
14341 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14342 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14344 * gnu-nat.c (gnu_pid_to_str): Constify.
14345 * go32-nat.c (go32_pid_to_str): Constify.
14346 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14347 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14348 * inferior.c (inferior_pid_to_str): Constify.
14349 * linux-nat.c (linux_nat_pid_to_str): Constify.
14350 * linux-tdep.c (linux_core_pid_to_str): Constify.
14351 * linux-thread-db.c (thread_db_pid_to_str)
14352 (thread_db_extra_thread_info): Constify.
14353 * nto-tdep.c (nto_extra_thread_info): Constify.
14354 * nto-tdep.h (nto_extra_thread_info): Constify.
14355 * obsd-nat.c (obsd_pid_to_str): Constify.
14356 * procfs.c (procfs_pid_to_str): Constify.
14357 * ravenscar-thread.c (ravenscar_extra_thread_info)
14358 (ravenscar_pid_to_str): Constify.
14359 * remote-sim.c (gdbsim_pid_to_str): Constify.
14360 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14362 * sol-thread.c (solaris_pid_to_str): Constify.
14363 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14364 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14365 * target.c (default_pid_to_str, target_pid_to_str)
14366 (normal_pid_to_str, default_pid_to_str): Constify.
14367 * target.h (target_ops::to_pid_to_str)
14368 (target_ops::to_extra_thread_info): Constify.
14369 (target_pid_to_str, normal_pid_to_str): Constify.
14370 * windows-nat.c (windows_pid_to_str): Constify.
14371 * gdbarch.sh (core_pid_to_str): Constify.
14372 * target-delegates.c: Regenerate.
14373 * gdbarch.h, gdbarch.c: Regenerate.
14375 2017-04-05 Pedro Alves <palves@redhat.com>
14377 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14378 the memory of the temporary warning_pre_print override.
14379 * utils.c (warning_pre_print): Constify.
14380 * utils.h (warning_pre_print): Constify.
14382 2017-04-05 Pedro Alves <palves@redhat.com>
14384 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14385 (shell_command): New function.
14386 (make_command): Use std::string.
14387 (init_cli_cmds): Register shell_command instead of shell_escape.
14389 2017-04-05 Pedro Alves <palves@redhat.com>
14391 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14392 * tracepoint.c (default_collect): Don't initialize.
14394 2017-04-05 Pedro Alves <palves@redhat.com>
14396 * macroexp.c (macro_buffer::shared): Now a bool.
14397 (init_buffer): Update.
14398 (init_shared_buffer): Constify 'addr' parameter.
14399 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14402 2017-04-05 Pedro Alves <palves@redhat.com>
14404 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14405 * disasm.c (set_disassembler_options): Constify local.
14406 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14408 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14411 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14414 2017-04-05 Yao Qi <yao.qi@linaro.org>
14416 * frame.c (frame_unwind_register_unsigned): Call
14417 frame_unwind_register_value.
14419 2017-04-05 Yao Qi <yao.qi@linaro.org>
14421 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14422 Use gdb_test_multiple, and don't match anchor.
14424 2017-04-05 Pedro Alves <palves@redhat.com>
14426 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14427 (Write After Approval): Remove Simon Marchi.
14429 2017-04-05 Pedro Alves <palves@redhat.com>
14431 * common/gdb_optional.h (optional::optional): Make constexpr and
14432 initialize m_dummy.
14434 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14436 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14437 (amd64fbsd_jmp_buf_reg_offset): Remove.
14438 (amd64fbsd_supply_uthread): Remove function.
14439 (amd64fbsd_collect_uthread): Remove function.
14440 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14441 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14442 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14443 (fbsd-nat.c): Update comment.
14444 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14445 (i386fbsd_jmp_buf_reg_offset): Remove.
14446 (i386fbsd_supply_uthread): Remove function.
14447 (i386fbsd_collect_uthread): Remove function.
14448 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14450 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14452 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14453 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14454 * NEWS: Mention that support for FreeBSD/alpha was removed.
14455 * alpha-fbsd-tdep.c: Delete file.
14456 * config/alpha/fbsd.mh: Delete file.
14457 * configure.host: Delete alpha*-*-freebsd* and
14458 alpha*-*-kfreebsd*-gnu.
14459 * configure.tgt: Delete alpha*-*-freebsd* and
14460 alpha*-*-kfreebsd*-gnu.
14462 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14464 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14465 amd64bsd_store_inferior_registers): Use ptid from regcache.
14467 2017-04-04 Pedro Alves <palves@redhat.com>
14469 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14470 data fields, make them private and add "m_" prefixes.
14471 (lnp_state_machine::lnp_state_machine): New ctor.
14472 (record_line, check_line_address, handle_set_discriminator)
14473 (handle_set_address, handle_advance_pc, handle_special_opcode)
14474 (handle_advance_line, handle_set_file, handle_negate_stmt)
14475 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14476 (end_sequence, advance_line): New methods.
14477 (m_gdbarch, m_record_lines_p): New fields.
14478 (lnp_reader_state): Delete.
14479 (dwarf_record_line): Rename to ...
14480 (lnp_state_machine::record_line): ... adjust.
14481 (init_lnp_state_machine): Delete.
14482 (lnp_state_machine::lnp_state_machine): New.
14483 (check_line_address): Rename to ...
14484 (lnp_state_machine::check_line_address): This.
14485 (dwarf_decode_lines_1): Remove reference to "reader_state".
14486 Adjust lnp_state_machine having a non-default ctor. Use bool.
14487 State machine internal state manipulation moved to
14488 lnp_state_machine methods.
14490 2017-04-04 Pedro Alves <palves@redhat.com>
14492 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14493 unittests/offset-type-selftests.c.
14494 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14495 * common/offset-type.h: New file.
14496 * common/preprocessor.h: New file.
14497 * common/traits.h: New file.
14498 * common/valid-expr.h: New file.
14499 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14500 sect_offset and cu_offset strong typedefs throughout.
14501 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14502 typedefs throughout.
14503 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14504 sect_offset and cu_offset strong typedefs throughout.
14505 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14506 typedefs throughout.
14507 * gdbtypes.h: Include "common/offset-type.h".
14508 (cu_offset): Now an offset type (strong typedef) instead of a
14510 (sect_offset): Likewise.
14511 (union call_site_parameter_u): Rename "param_offset" field to
14513 * unittests/offset-type-selftests.c: New file.
14515 2017-04-04 Pedro Alves <palves@redhat.com>
14517 * common/underlying.h: New file.
14518 * dwarf2read.c: Include "common/gdb_optional.h" and
14519 "common/underlying.h".
14520 (dir_index, file_name_index): New types.
14521 (file_entry): Use them.
14522 (file_entry::include): Use to_underlying.
14523 (line_header::add_file_name): Use dir_index.
14524 (read_formatted_entries): Use gdb::optional. Read form before
14525 writting to file_entry.
14526 (dwarf_decode_line_header): Use dir_index.
14527 (lnp_state_machine::current_file): Use to_underlying.
14528 (lnp_state_machine::file): Change type to file_name_index.
14529 (dwarf_record_line): Use to_underlying.
14530 (init_lnp_state_machine): Use file_name_index.
14531 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14533 2017-04-04 Pedro Alves <palves@redhat.com>
14535 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14536 operator bool, has_value and get methods.
14538 2017-04-04 Pedro Alves <palves@redhat.com>
14540 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14542 (line_header): Initialize all data fields. Change type of
14543 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14544 Change type of include_dirs to std::vector<const char *>. Remove
14545 num_include_dirs, include_dirs_size. Change type of file_names to
14546 std::vector<file_entry>. Remove num_file_names, file_names_size.
14547 (line_header::line_header): New.
14548 (line_header::add_include_dir, line_header::add_file_name): New
14550 (line_header::include_dir_at): Remove NULL check.
14551 (line_header::file_name_at): Add const overload.
14552 (line_header_up): New unique_ptr typedef.
14553 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14554 std::vector. Remove free_line_header call.
14555 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14556 free_line_header call.
14557 (free_cu_line_header): Delete.
14558 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14559 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14560 Adjust to use std::vector.
14561 (free_line_header): Delete.
14562 (free_line_header_voidp): Use delete.
14563 (add_include_dir): Replace with ...
14564 (line_header::add_include_dir): ... this method. Use std::vector.
14565 (add_file_name): Replace with ...
14566 (line_header::add_file_name): ... this method. Use std::vector.
14567 (add_include_dir_stub): Delete.
14568 (read_formatted_entries): Remove memset.
14569 (dwarf_decode_line_header): Return a line_header_up instead of a
14570 raw pointer. Remove cleanup handling. Pass lambdas to
14571 read_formatted_entries. Adjust to use line_header methods.
14572 (dwarf_decode_lines_1): Adjust to use line_header methods.
14573 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14576 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14578 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14579 instead of struct ptid.
14581 2017-05-04 Alan Hayward <alan.hayward@arm.com>
14583 * frame.c (get_frame_register_bytes): Unwind using value.
14584 (put_frame_register_bytes): Likewise.
14586 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14588 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14591 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14593 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14595 2017-03-29 Yao Qi <yao.qi@linaro.org>
14597 * gdbthread.h (struct thread_info): Declare constructor and
14598 destructor. Add some in-class member initializers.
14599 * thread.c (free_thread): Remove.
14600 (init_thread_list): Call delete instead of free_thread.
14601 (new_thread): Call thread_info constructor.
14602 (thread_info::thread_info): New function.
14603 (thread_info::~thread_info): New function.
14604 (delete_thread_1): Call delete instead of free_thread.
14605 (make_cleanup_restore_current_thread): Move tp and frame to
14608 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14610 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14611 (arc_skip_prologue): Likewise.
14612 (arc_make_frame_cache): Likewise.
14613 (arc_pv_get_operand): New function.
14614 (arc_is_in_prologue): Likewise.
14615 (arc_analyze_prologue): Likewise.
14616 (arc_print_frame_cache): Likewise.
14617 (MAX_PROLOGUE_LENGTH): New constant.
14619 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14621 * configure.tgt: Add arc-insn.o.
14622 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
14623 (dump_arc_instruction_command): New function.
14624 (arc_fprintf_disasm): Likewise.
14625 (arc_disassemble_info): Likewise.
14626 (arc_insn_get_operand_value): Likewise.
14627 (arc_insn_get_operand_value_signed): Likewise.
14628 (arc_insn_get_memory_base_reg): Likewise.
14629 (arc_insn_get_memory_offset): Likewise.
14630 (arc_insn_get_branch_target): Likewise.
14631 (arc_insn_dump): Likewise.
14632 (arc_insn_get_linear_next_pc): Likewise.
14633 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
14634 (arc_disassemble_info): Likewise.
14635 (arc_insn_get_branch_target): Likewise.
14636 (arc_insn_get_linear_next_pc): Likewise.
14637 * NEWS: Mention new "maint print arc arc-instruction".
14639 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14641 * arc-tdep (maintenance_print_arc_list): New variable.
14642 (maintenance_print_arc_command): New function.
14644 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14646 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
14647 Add "limm" and "reserved".
14648 (arc_cannot_fetch_register, arc_cannot_store_register): Add
14649 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
14650 * arc-tdep.h (arc_regnum): Likewise.
14652 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14654 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14655 for THREADPTR register.
14656 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
14658 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
14659 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
14660 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
14662 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14664 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
14665 registers above gdbarch_num_regs (gdbarch) as privileged in
14668 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14670 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14671 for a single specified register or for all registers in
14672 a0_base..a0_base + C0_NREGS range.
14673 (supply_gregset_reg): Call regcache_raw_supply for a single
14674 specified register or for all registers in a0_base..a0_base +
14677 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14679 * arch/xtensa.h (C0_NREGS): Add definition.
14680 * xtensa-tdep.c (C0_NREGS): Remove definition.
14682 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14684 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
14685 Drop xtensa_default_isa initialization.
14686 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
14688 2017-03-27 Pedro Alves <palves@redhat.com>
14690 * dwarf2read.c (file_entry) <dir_index>: Add comment.
14691 (file_entry::include_dir): New method.
14692 (line_header::include_dir_at, line_header::file_name_at): New
14694 (setup_type_unit_groups, setup_type_unit_groups)
14695 (psymtab_include_file_name): Simplify using the new methods.
14696 (lnp_state_machine) <the_line_header>: New field.
14697 <file>: Add comment.
14698 (lnp_state_machine::current_file): New method.
14699 (dwarf_record_line): Simplify using the new methods.
14700 (init_lnp_state_machine): Initialize the "the_line_header" field.
14701 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
14702 Simplify using the new methods.
14704 2017-03-27 Pedro Alves <palves@redhat.com>
14706 * cp-name-parser.y (make_empty): Delete.
14707 (demangler_special, nested_name, ptr_operator, array_indicator)
14708 (direct_declarator, declarator_1): Use fill_comp instead of
14711 2017-03-27 Pedro Alves <palves@redhat.com>
14713 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
14714 to ATTRIBUTE_PRINTF.
14715 * solib-target.c (library_list_start_list): Print "string" not
14717 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
14718 gdb_xml_error call.
14720 2017-03-27 Pedro Alves <palves@redhat.com>
14722 * dwarf2read.c (struct file_and_directory): New.
14723 (dwarf2_get_dwz_file): Adjust to use std::string.
14724 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14725 (find_file_and_directory): Adjust to return a file_and_directory
14727 (read_file_scope): Adjust to use file_and_directory. Remove
14728 make_cleanup/do_cleanups calls.
14729 (open_and_init_dwp_file): Adjust to use std::string. Remove
14730 make_cleanup/do_cleanups calls.
14731 * python/python.c (do_start_initialization): Adjust to ldirname
14732 returning a std::string.
14733 * utils.c (ldirname): Now returns a std::string.
14734 * utils.h (ldirname): Change return type to std::string.
14735 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14736 returning a std::string.
14737 * xml-tdesc.c (file_read_description_xml): Likewise.
14739 2017-03-24 Alan Hayward <alan.hayward@arm.com>
14741 * regcache.c (regcache_debug_print_register): New function.
14742 * regcache.h (regcache_debug_print_register): New declaration.
14743 * target.c (debug_print_register): Remove.
14744 (target_fetch_registers): Call regcache_debug_print_register.
14745 (target_store_registers): Likewise.
14747 2017-03-24 Pádraig Brady <pbrady@fb.com>
14749 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14750 reference beyond the 'lh->include_dirs' array before accessing to
14752 (psymtab_include_file_name): Likewise.
14753 (dwarf_decode_lines_1): Likewise.
14754 (dwarf_decode_lines): Likewise.
14755 (file_file_name): Likewise.
14757 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14759 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14761 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14762 ps_lsetfpregs): Likewise.
14763 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
14764 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14765 ps_lsetfpregs): Likewise.
14766 * target.c (target_fetch_registers, target_store_registers):
14769 2017-03-23 Alan Hayward <alan.hayward@arm.com>
14771 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
14773 2017-03-23 Yao Qi <yao.qi@linaro.org>
14775 * aarch64-tdep.c (aarch64_process_record_test): Declare.
14776 (_initialize_aarch64_tdep): Register it.
14777 (aarch64_record_load_store): Handle PRFM instruction.
14778 (aarch64_process_record_test): New function.
14780 2017-03-23 Yao Qi <yao.qi@linaro.org>
14782 * aarch64-tdep.c (aarch64_record_load_store): Fix code
14785 2017-03-23 Yao Qi <yao.qi@linaro.org>
14787 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
14789 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14791 python/python.c (do_start_initialization): Fix memory leak.
14793 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14795 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
14796 using get_ptrace_pid.
14797 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
14799 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14800 inferior_ptid instead of pid.
14802 2017-03-22 Yao Qi <yao.qi@linaro.org>
14804 * aarch64-tdep.c: Wrap locally used classes in anonymous
14806 * arm-tdep.c: Likewise.
14807 * linespec.c: Likewise.
14808 * ui-out.c: Likewise.
14810 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
14813 * python/lib/gdb/printer/bound_registers.py: Import sys.
14815 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14817 * windows-nat.c (do_windows_fetch_inferior_registers): Add
14818 windows_thread_info parameter and use it instead of
14820 (windows_fetch_inferior_registers): Don't set current_thread,
14821 pass the thread to do_windows_fetch_inferior_registers. Use
14822 ptid from regcache instead of inferior_ptid.
14823 (do_windows_store_inferior_registers): Add windows_thread_info
14824 parameter and use it instead of current_thread.
14825 (windows_store_inferior_registers): Don't set current_thread,
14826 pass the thread to do_windows_store_inferior_registers. Use
14827 ptid from regcache instead of inferior_ptid.
14829 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14831 * ser-mingw.c (ser_windows_raw): Remove reference to
14832 struct serial::current_timeout.
14834 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
14837 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
14838 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
14839 (sparc64_fsr_type): Fix %fsr decoding.
14841 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
14843 * python/py-record-btrace.c (btpy_insn_data): Change return type
14846 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14848 * spu-linux-nat.c (spu_fetch_inferior_registers,
14849 spu_store_inferior_registers): Use ptid from regcache, set and
14850 restore inferior_ptid.
14851 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
14854 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14856 * i386-linux-nat.c (fetch_register, store_register,
14857 i386_linux_fetch_inferior_registers,
14858 i386_linux_store_inferior_registers): Use ptid from regcache.
14859 * ia64-linux-nat.c (ia64_linux_fetch_register,
14860 ia64_linux_store_register): Likewise.
14861 * inf-ptrace.c (inf_ptrace_fetch_register,
14862 inf_ptrace_store_register): Likewise.
14863 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
14864 m32r_linux_store_inferior_registers): Likewise.
14865 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
14866 m68kbsd_store_inferior_registers): Likewise.
14867 * m68k-linux-nat.c (fetch_register, store_register,
14868 m68k_linux_fetch_inferior_registers,
14869 m68k_linux_store_inferior_registers): Likewise.
14870 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
14871 m88kbsd_store_inferior_registers): Likewise.
14872 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
14873 mips_fbsd_store_inferior_registers): Likewise.
14874 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
14875 mips64_linux_regsets_store_registers): Likewise.
14876 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
14877 mipsnbsd_store_inferior_registers): Likewise.
14878 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
14879 mips64obsd_store_inferior_registers): Likewise.
14880 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
14882 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
14883 ppcfbsd_store_inferior_registers): Likewise.
14884 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
14885 ppc_linux_store_inferior_registers): Likewise.
14886 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
14887 ppcnbsd_store_inferior_registers): Likewise.
14888 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
14889 ppcobsd_store_registers): Likewise.
14890 * procfs.c (procfs_fetch_registers, procfs_store_registers):
14892 * ravenscar-thread.c (ravenscar_fetch_registers,
14893 ravenscar_store_registers, ravenscar_prepare_to_store):
14895 * record-btrace.c (record_btrace_fetch_registers,
14896 record_btrace_store_registers, record_btrace_prepare_to_store):
14898 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
14899 Lookup inferior using ptid from regcache, instead of
14901 * remote.c (remote_fetch_registers, remote_store_registers): Use
14902 ptid from regcache.
14903 * rs6000-nat.c (fetch_register, store_register): Likewise.
14904 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
14905 s390_linux_store_inferior_registers): Likewise.
14906 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
14907 shnbsd_store_inferior_registers): Likewise.
14908 * sol-thread.c (sol_thread_fetch_registers,
14909 sol_thread_store_registers): Likewise.
14910 * sparc-nat.c (sparc_fetch_inferior_registers,
14911 sparc_store_inferior_registers): Likewise.
14912 * tilegx-linux-nat.c (fetch_inferior_registers,
14913 store_inferior_registers): Likewise.
14914 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
14915 vaxbsd_store_inferior_registers): Likewise.
14916 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
14917 store_xtregs): Likewise.
14919 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14922 * NEWS: Mention support for rvalue references in GDB and python.
14923 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
14924 supports both lvalue and rvalue references.
14926 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14929 * gdbtypes.c (rank_one_type): Implement overloading
14930 resolution rules regarding rvalue references.
14932 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14935 * aarch64-tdep.c (aarch64_type_align)
14936 (aarch64_extract_return_value, aarch64_store_return_value): Change
14937 lvalue reference type checks to general reference type checks.
14938 * amd64-tdep.c (amd64_classify): Likewise.
14939 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
14941 * arm-tdep.c (arm_type_align, arm_extract_return_value)
14942 (arm_store_return_value): Likewise.
14943 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
14944 * c-typeprint.c (c_print_type): Likewise.
14945 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
14946 (cplus_number_of_children, cplus_describe_child): Likewise.
14947 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
14948 * completer.c (expression_completer): Likewise.
14949 * cp-support.c (make_symbol_overload_list_adl_namespace):
14951 * darwin-nat-info.c (info_mach_region_command): Likewise.
14952 * dwarf2loc.c (entry_data_value_coerce_ref)
14953 (value_of_dwarf_reg_entry): Likewise.
14954 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
14955 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
14957 * findvar.c (extract_typed_address, store_typed_address):
14959 * gdbtypes.c (rank_one_type): Likewise.
14960 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
14961 * infcall.c (value_arg_coerce): Likewise.
14962 * language.c (pointer_type): Likewise.
14963 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
14965 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
14966 * mn10300-tdep.c (mn10300_type_align): Likewise.
14967 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
14968 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
14969 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
14971 * printcmd.c (print_formatted, x_command): Likewise.
14972 * python/py-type.c (typy_get_composite, typy_template_argument):
14974 * python/py-value.c (valpy_referenced_value)
14975 (valpy_get_dynamic_type, value_has_field): Likewise.
14976 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
14977 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
14978 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
14979 * spu-tdep.c (spu_scalar_value_p): Likewise.
14980 * symtab.c (lookup_symbol_aux): Likewise.
14981 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
14982 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
14984 * valops.c (value_cast_pointers, value_cast)
14985 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
14986 (value_struct_elt, value_struct_elt_bitpos)
14987 (value_find_oload_method_list, find_overload_match)
14988 (value_rtti_indirect_type): Likewise.
14989 * valprint.c (val_print_scalar_type_p, generic_val_print):
14991 * value.c (value_actual_type, value_as_address, unpack_long)
14992 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
14993 (coerce_ref): Likewise.
14994 * varobj.c (varobj_get_value_type): Likewise.
14996 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14999 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15000 table of constants.
15001 * python/lib/gdb/command/explore.py: Support exploring values
15002 of rvalue reference types.
15003 * python/lib/gdb/types.py: Implement get_basic_type() for
15004 rvalue reference types.
15005 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15007 * python/py-value.c (valpy_getitem): Add an rvalue reference
15009 (valpy_reference_value): Add new parameter "refcode".
15010 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15011 New wrappers for valpy_reference_value().
15012 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15013 (gdbpy_invoke_xmethod): Likewise.
15015 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15018 * dwarf2read.c (process_die, read_type_die_1): Handle the
15019 DW_TAG_rvalue_reference_type DIE.
15020 (read_tag_reference_type): Add new parameter "refcode".
15022 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15025 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15026 (c_type_print_modifier, c_type_print_varspec_suffix)
15027 (c_type_print_base): Support printing rvalue reference types.
15028 * c-valprint.c (c_val_print, c_value_print): Support printing
15029 rvalue reference values.
15031 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15034 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15036 * cp-support.c (replace_typedefs): Handle
15037 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15038 * python/py-type.c (typy_lookup_type): Likewise.
15040 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15043 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15044 * parse.c (insert_type): Change assert statement.
15045 (follow_types): Handle rvalue reference types.
15046 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15049 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15052 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15053 value_ref() interface.
15054 * c-valprint.c (c_value_print): Likewise.
15055 * infcall.c (value_arg_coerce): Likewise.
15056 * python/py-value.c (valpy_reference_value): Likewise.
15057 * valops.c (value_cast, value_reinterpret_cast)
15058 (value_dynamic_cast, typecmp): Likewise.
15059 (value_ref): Parameterize by kind of return value reference type.
15060 * value.h (value_ref): Add new parameter "refcode".
15062 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15065 * dwarf2read.c (read_tag_reference_type): Use
15066 lookup_lvalue_reference_type() instead of lookup_reference_type().
15067 * eval.c (evaluate_subexp_standard): Likewise.
15068 * f-exp.y: Likewise.
15069 * gdbtypes.c (make_reference_type, lookup_reference_type):
15070 Generalize with rvalue reference types.
15071 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15072 convenience wrappers for lookup_reference_type().
15073 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15074 reference kind parameter.
15075 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15076 wrappers for lookup_reference_type().
15077 * guile/scm-type.c (gdbscm_type_reference): Use
15078 lookup_lvalue_reference_type() instead of lookup_reference_type().
15079 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15080 * parse.c (follow_types): Likewise.
15081 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15082 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15084 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15085 (gdbpy_invoke_xmethod): Likewise.
15086 * stabsread.c: Provide extra argument to make_reference_type()
15088 * valops.c (value_ref, value_rtti_indirect_type): Use
15089 lookup_lvalue_reference_type() instead of lookup_reference_type().
15091 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15094 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15095 (TYPE_IS_REFERENCE): New macro.
15096 (struct type): Add rvalue_reference_type field.
15097 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15099 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15101 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15102 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15103 New function definition.
15104 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15105 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15106 New function declaration.
15107 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15108 * mi/mi-interp.h: New file.
15109 * solib.c (info_sharedlibrary_command): Replace for loop with
15111 * solib.h (update_solib_list): New function declaration.
15112 (so_list_head): Move macro.
15113 * solist.h (ALL_SO_LIBS): New macro.
15115 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15117 * infcmd.c (post_create_inferior): Remove unused argument in
15119 * remote.c (remote_start_remote): Likewise.
15120 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15121 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15122 (enable_break): Likewise.
15123 * solib.c (update_solib_list): Remove unused target argument
15124 and its documentation.
15125 (solib_add): Remove unused target argument. Remove unused
15126 argument in call to update_solib_list.
15127 (info_sharedlibrary_command): Remove unused argument in call
15128 to update_solib_list.
15129 (sharedlibrary_command): Remove unused argument in call to
15131 (handle_solib_event): Likewise.
15132 (reload_shared_libraries): Likewise.
15133 * solib.h (solib_add): Remove unused target argument.
15135 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15137 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15138 (s390_displaced_step_fixup): Cover relative branches with the
15139 default fixup handling. This fixes lack of support for some
15140 relative branch instructions.
15142 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15144 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15145 ptid from regcache.
15147 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15149 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15150 i386_darwin_store_inferior_registers): Use ptid from regcache.
15152 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15154 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15155 i386bsd_store_inferior_registers): Use ptid from regcache.
15157 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15159 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15160 hppaobsd_store_registers): Use ptid from regcache.
15162 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15164 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15165 hppanbsd_store_registers): Use ptid from regcache.
15167 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15169 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15170 from regcache. Use get_ptrace_pid.
15172 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15174 * corelow.c (get_core_register_section): Use ptid from regcache,
15177 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15179 * bsd-uthread.c (bsd_uthread_fetch_registers,
15180 bsd_uthread_store_registers): Use ptid from regcache, set and
15181 restore inferior_ptid.
15183 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15185 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15186 fetch_fp_regs, store_register, store_regs, store_fp_register,
15187 store_fp_regs): Use ptid from regcache.
15189 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15191 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15192 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15193 store_vfp_regs): Use ptid from regcache.
15195 2017-03-17 Pedro Alves <palves@redhat.com>
15198 * ser-base.c (ser_base_wait_for): Add comment.
15199 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15201 * ser-unix.c (hardwire_raw): Remove reference to
15202 scb->current_timeout.
15203 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15204 (hardwire_ops): Install ser_base_readchar instead of
15206 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15209 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15212 * python/lib/gdb/printer/bound_registers.py: Add support for
15215 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15217 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15218 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15219 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15220 byte_offset to subobj_byte_offset. Fix the handling of
15221 DWARF_VALUE_STACK on big-endian targets when coming via an
15223 (dwarf2_evaluate_loc_desc): Adjust call to
15224 dwarf2_evaluate_loc_desc_full.
15225 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15226 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15228 2017-03-16 Yao Qi <yao.qi@linaro.org>
15230 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15231 and REVSH instructions.
15233 2017-03-16 Yao Qi <yao.qi@linaro.org>
15235 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15236 (arm_record_test): Declare.
15237 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15238 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15239 align with the manual.
15240 (thumb_record_misc): Adjust the code order to align with the
15242 (thumb2_record_decode_insn_handler): Fix instruction matching.
15243 (instruction_reader_thumb): New class.
15244 (arm_record_test): New function.
15246 2017-03-16 Yao Qi <yao.qi@linaro.org>
15248 * arm-tdep.c (abstract_memory_reader): New class.
15249 (instruction_reader): New class.
15250 (extract_arm_insn): Add argument 'reader'. Callers updated.
15251 (decode_insn): Likewise.
15253 2017-03-16 Doug Evans <dje@google.com>
15255 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15256 member. Change type of TYPE member to SCM. All uses updated.
15257 (lsscm_make_lazy_string_smob): Add assert.
15258 (lsscm_make_lazy_string): Flag bad length values.
15259 (lsscm_elt_type): New function.
15260 (gdbscm_lazy_string_to_value): Rewrite to use
15261 lsscm_safe_lazy_string_to_value.
15262 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15263 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15264 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15266 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15267 * guile/scm-type.c (tyscm_scm_to_type): New function.
15269 2017-03-15 Doug Evans <dje@google.com>
15271 PR python/17728, python/18439, python/18779
15272 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15273 member. Change type of TYPE member to PyObject *. All uses updated.
15274 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15275 (gdbpy_create_lazy_string_object): Flag bad length values.
15276 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15277 Handle typedefs in incoming type.
15278 (stpy_lazy_string_elt_type): New function.
15279 (gdbpy_extract_lazy_string): Call it.
15280 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15281 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15282 typedefs in incoming type.
15284 2017-03-16 Doug Evans <dje@google.com>
15286 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15287 * guile/scm-type.c (tyscm_scm_to_type): New function.
15289 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15291 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15292 "ULONGEST" for "skip".
15294 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15297 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15298 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15299 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15300 over ptrace peek/poke until end of buffer or error.
15302 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15304 * parse.c (length_of_subexp): Make static.
15305 * parser-defs.h (length_of_subexp): Remove.
15307 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15309 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15312 2017-03-14 Pedro Alves <palves@redhat.com>
15314 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15315 (main): Use std::unique_ptr. Remove calls to
15316 cp_demangled_name_parse_free.
15318 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15320 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15321 alphabsd_store_inferior_registers): Use regcache->ptid instead
15324 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15326 * aix-thread.c (aix_thread_fetch_registers,
15327 aix_thread_store_registers): Use regcache->ptid instead of
15330 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15332 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15333 store_gregs_to_thread, fetch_fpregs_from_thread,
15334 store_fpregs_to_thread): Use regcache->ptid instead of
15337 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15339 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15340 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15341 instead of inferior_ptid.
15343 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15345 * target.c (target_fetch_registers, target_store_registers): Add
15348 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15350 * regcache.h (regcache_get_ptid): New function.
15351 * regcache.c (regcache_get_ptid): New function.
15353 2017-03-13 Mark Wielaard <mark@klomp.org>
15355 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15357 2017-03-10 Keith Seitz <keiths@redhat.com>
15360 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15362 2017-03-08 Pedro Alves <palves@redhat.com>
15365 * infrun.c (start_step_over, do_target_resume, resume)
15366 (restart_threads): Assert we're not resuming a thread that is
15367 meant to be stopped.
15368 (infrun_thread_stop_requested_callback): Delete.
15369 (infrun_thread_stop_requested): If the thread is internally
15370 stopped, queue a pending stop event and clear the thread's
15371 inline-frame state.
15372 (handle_stop_requested): New function.
15373 (handle_syscall_event, handle_inferior_event_1): Use
15374 handle_stop_requested.
15375 (handle_stop_requested): New function.
15376 (handle_signal_stop): Set the thread's stop_signal here instead of
15378 (finish_step_over): Clear step over info unconditionally.
15379 (handle_signal_stop): If the user had interrupted the event
15380 thread, consider the stop a random signal.
15381 (handle_signal_stop) <signal arrived while stepping over
15382 breakpoint>: Don't restart threads here.
15383 (stop_waiting): Don't clear step-over info here.
15385 2017-03-08 Pedro Alves <palves@redhat.com>
15388 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15389 goes to argument 2, not 1.
15391 2017-03-08 Pedro Alves <palves@redhat.com>
15394 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15395 display_gdb_prompt.
15396 (command_line_input): Add comment.
15398 2017-03-08 Pedro Alves <palves@redhat.com>
15401 * tui/tui-file.c (tui_file::write): New.
15402 * tui/tui-file.h (tui_file): Override "write".
15403 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15404 factored out from ...
15405 (tui_puts): ... here.
15406 (tui_putc): Use them.
15407 (tui_write): New function.
15408 * tui/tui-io.h (tui_write): Declare.
15410 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15412 * Makefile.in (SFILES): Replace "environ.c" with
15413 "common/environ.c".
15414 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15415 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15417 * common/environ.c: ... here.
15418 * environ.h: Moved to...
15419 * common/environ.h: ... here.
15421 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15423 * gdbarch.sh (pstring_ptr): New static function.
15424 (gdbarch_disassembler_options): Use it.
15425 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15426 not valid_disassembler_option->name.
15427 * gdbarch.c: Regenerate.
15429 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15431 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15433 2017-03-07 Pedro Alves <palves@redhat.com>
15435 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15437 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15439 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15440 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15441 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15442 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15444 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15446 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15448 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15450 * remote.c (remote_add_target_side_commands): Use range-based
15453 2017-03-03 Yao Qi <yao.qi@linaro.org>
15456 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15458 * valprint.c (common_val_print): Likewise.
15460 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15462 * NEWS: Mention new set/show disassembler-options commands.
15463 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15464 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15465 (prospective_options): New static variable.
15466 (gdb_disassembler::gdb_disassembler): Initialize
15467 m_di.disassembler_options.
15468 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15469 (get_disassembler_options): New function.
15470 (set_disassembler_options): Likewise.
15471 (set_disassembler_options_sfunc): Likewise.
15472 (show_disassembler_options_sfunc): Likewise.
15473 (disassembler_options_completer): Likewise.
15474 (_initialize_disasm): Likewise.
15475 * disasm.h (get_disassembler_options): New prototype.
15476 (set_disassembler_options): Likewise.
15477 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15478 (gdbarch_verify_disassembler_options): Likewise.
15479 * gdbarch.c: Regenerate.
15480 * gdbarch.h: Likewise.
15481 * arm-tdep.c (num_disassembly_options): Delete.
15482 (set_disassembly_style): Likewise.
15483 (arm_disassembler_options): New static variable.
15484 (set_disassembly_style_sfunc): Convert short style name into long
15485 option name. Call set_disassembler_options.
15486 (show_disassembly_style_sfunc): New function.
15487 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15488 set_gdbarch_verify_disassembler_options.
15489 (_initialize_arm_tdep): Delete regnames variable and update callers.
15490 (arm_disassembler_options): Initialize.
15491 (disasm_options): New variable.
15492 (num_disassembly_options): Rename from this...
15493 (num_disassembly_styles): ...to this. Compute by scanning through
15495 (valid_disassembly_styles): Initialize using disasm_options.
15496 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15497 set_arm_regname_option.
15498 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15499 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15500 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15501 set_gdbarch_verify_disassembler_options.
15502 * s390-tdep.c (s390_disassembler_options): New static variable.
15503 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15504 set_gdbarch_verify_disassembler_options.
15506 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15508 * remote.c (remote_add_target_side_condition): Remove "struct"
15509 keyword from range-based for loop.
15511 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15513 * remote.c (remote_add_target_side_condition): Use range-based
15514 for loop. Update comment.
15516 2017-02-27 Yao Qi <yao.qi@linaro.org>
15518 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15520 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15522 * regcache.c (regcache_raw_update): New function.
15523 (regcache_raw_read): Move code to regcache_raw_update.
15524 * regcache.h (regcache_raw_update): New declaration.
15525 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15527 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15529 * dwarf2read.c (create_debug_type_hash_table): Initialize
15530 header.signature and header.type_offset_in_tu.
15532 2017-02-24 Pedro Alves <palves@redhat.com>
15534 * symtab.c (make_file_symbol_completion_list_1): Use
15535 add_symtab_completions.
15537 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15539 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15541 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15543 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15544 I386_MAX_REGISTER_SIZE.
15545 (i386_pseudo_register_write): Likewise.
15546 (i386_process_record): Likewise.
15547 * i387-tdep.c (i387_supply_xsave): Likewise.
15548 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15549 (store_register): Likewise.
15551 2017-02-23 Pedro Alves <palves@redhat.com>
15553 * ada-lang.c: Include "common/function-view.h".
15554 (ada_iterate_over_symbols): Adjust to use function_view as
15556 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15557 (ada_make_symbol_completion_list): Use a lambda.
15558 (ada_exc_search_name_matches): Delete.
15559 (name_matches_regex): New.
15560 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15561 * compile/compile-c-support.c: Include "common/function-view.h".
15562 (print_one_macro): Change prototype to accept a ui_file pointer.
15563 (write_macro_definitions): Use a lambda.
15564 * dwarf2read.c: Include "common/function-view.h".
15565 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15566 (dw2_expand_symtabs_matching): Adjust to use function_view as
15568 * language.h: Include "common/function-view.h".
15569 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15570 function_view as callback type.
15571 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15572 * linespec.c: Include "common/function-view.h".
15573 (collect_info::add_symbol): New method.
15574 (struct symbol_and_data_callback, iterate_inline_only, struct
15575 symbol_matcher_data, iterate_name_matcher): Delete.
15576 (iterate_over_all_matching_symtabs): Adjust to use function_view
15577 as callback type and lambdas.
15578 (iterate_over_file_blocks): Adjust to use function_view as
15580 (decode_compound_collector): Now a class with private fields.
15581 (decode_compound_collector::release_symbols): New method.
15582 (collect_one_symbol): Rename to...
15583 (decode_compound_collector::operator()): ... this and adjust.
15584 (lookup_prefix_sym): decode_compound_collector construction bits
15585 move to decode_compound_collector ctor. Pass the
15586 decode_compound_collector object directly as callback. Remove
15587 cleanups and use decode_compound_collector::release_symbols
15589 (symtab_collector): Now a class with private fields.
15590 (symtab_collector::release_symtabs): New method.
15591 (add_symtabs_to_list): Rename to...
15592 (symtab_collector::operator()): ... this and adjust.
15593 (collect_symtabs_from_filename): symtab_collector construction
15594 bits move to symtab_collector ctor. Pass the symtab_collector
15595 object directly as callback. Remove cleanups and use
15596 symtab_collector::release_symtabs instead.
15597 (collect_symbols): Delete.
15598 (add_matching_symbols_to_info): Use lambdas.
15599 * macrocmd.c (print_macro_callback): Delete.
15600 (info_macro_command): Use a lambda.
15601 (info_macros_command): Pass print_macro_definition as callable
15603 (print_one_macro): Remove 'ignore' parameter.
15604 (macro_list_command): Adjust.
15605 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15606 (macro_for_each_data::user_data): Delete field.
15607 (foreach_macro): Adjust to call the function_view.
15608 (macro_for_each): Adjust to use function_view as callback type.
15609 (foreach_macro_in_scope): Adjust to call the function_view.
15610 (macro_for_each_in_scope): Adjust to use function_view as callback
15612 * macrotab.h: Include "common/function-view.h".
15613 (macro_callback_fn): Declare a prototype instead of a pointer.
15614 Remove "user_data" parameter.
15615 (macro_for_each, macro_for_each_in_scope): Adjust to use
15616 function_view as callback type.
15617 * psymtab.c (partial_map_expand_apply)
15618 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
15619 Adjust to use function_view as callback type and to return bool.
15620 (psym_expand_symtabs_matching): Adjust to use function_view as
15622 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
15623 to use function_view as callback type and to return bool.
15624 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
15626 * symfile.c (expand_symtabs_matching): Adjust to use function_view
15628 * symfile.h: Include "common/function-view.h".
15629 (expand_symtabs_file_matcher_ftype)
15630 (expand_symtabs_symbol_matcher_ftype)
15631 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
15633 (quick_symbol_functions::map_symtabs_matching_filename)
15634 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
15635 function_view as callback type and return bool.
15636 (expand_symtabs_matching): Adjust to use function_view as callback
15638 (maintenance_expand_name_matcher)
15639 (maintenance_expand_file_matcher): Delete.
15640 (maintenance_expand_symtabs): Use lambdas.
15641 * symtab.c (iterate_over_some_symtabs): Adjust to use
15642 function_view as callback types and return bool.
15643 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
15645 (lookup_symtab_callback): Delete.
15646 (lookup_symtab): Use a lambda.
15647 (iterate_over_symbols): Adjust to use function_view as callback
15649 (struct search_symbols_data, search_symbols_file_matches)
15650 (search_symbols_name_matches): Delete.
15651 (search_symbols): Use a pair of lambdas.
15652 (struct add_name_data, add_macro_name, symbol_completion_matcher)
15653 (symtab_expansion_callback): Delete.
15654 (default_make_symbol_completion_list_break_on_1): Use lambdas.
15655 * symtab.h: Include "common/function-view.h".
15656 (iterate_over_some_symtabs): Adjust to use function_view as
15657 callback type and return bool.
15658 (iterate_over_symtabs): Adjust to use function_view as callback
15660 (symbol_found_callback_ftype): Remove 'data' parameter and return
15662 (iterate_over_symbols): Adjust to use function_view as callback
15665 2017-02-23 Pedro Alves <palves@redhat.com>
15667 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
15668 (%.o) <unittests/%.c>: New pattern.
15669 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
15670 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
15671 * common/function-view.h: New file.
15672 * unittests/function-view-selftests.c: New file.
15673 * configure: Regenerate.
15675 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
15677 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
15679 * go32-nat.c (go32_thread_alive): Likewise.
15681 2017-02-23 Yao Qi <yao.qi@linaro.org>
15683 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
15686 2017-02-23 Yao Qi <yao.qi@linaro.org>
15688 * varobj.c (varobj_clear_saved_item): Use delete instead of
15690 (update_dynamic_varobj_children): Likewise.
15692 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15694 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
15696 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
15698 * common/enum-flags.h (enum_flags::enum_flags): Initialize
15699 m_enum_value to 0 in default constructor.
15701 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15703 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
15704 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
15705 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
15706 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
15707 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
15708 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
15709 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
15710 IS_STORE_CONDITIONAL_INSN.
15712 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15714 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
15716 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15718 * NEWS (Changes since GDB 7.12): Add DWARF-5.
15720 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15722 * dwarf2read.c (skip_one_die, read_attribute_value)
15723 (dwarf2_const_value_attr, dump_die_shallow)
15724 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15725 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15727 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15729 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15730 (dwarf_parse_macro_header): Accept DWARF version 5.
15731 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15733 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15735 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15737 * common/common-exceptions.h (enum errors): Likewise.
15738 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15739 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15740 (dwarf_expr_context::execute_stack_op): Likewise.
15741 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15743 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15744 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15745 (show_entry_values_debug, call_site_to_target_addr)
15746 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15747 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15748 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15749 (value_of_dwarf_block_entry, indirect_pieced_value)
15750 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15751 (disassemble_dwarf_expression): Likewise.
15752 * dwarf2read.c (process_die, inherit_abstract_dies)
15753 (read_call_site_scope): Likewise.
15754 * gdbtypes.h (struct func_type, struct call_site_parameter)
15755 (struct call_site): Likewise.
15756 * stack.c (read_frame_arg): Likewise.
15757 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15759 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15761 * defs.h (read_unsigned_leb128): New declaration.
15762 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
15763 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
15764 (dwarf2_find_location_expression): Call also
15765 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
15766 * dwarf2loc.h (dwarf2_version): New declaration.
15767 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
15769 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
15771 (struct dwop_section_names): Add loclists_dwo.
15772 (dwop_section_names): Add .debug_loclists.dwo.
15773 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
15774 (struct dwarf2_per_cu_data): Add dwarf_version.
15775 (struct dwo_sections): Add loclists.
15776 (struct attr_abbrev): Add implicit_const.
15777 (read_indirect_line_string): New declaration.
15778 (read_unsigned_leb128): Delete declaration.
15779 (rcuh_kind): New definition.
15780 (read_and_check_comp_unit_head): Change parameter
15781 is_debug_types_section to section_kind.
15782 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
15783 (read_comp_unit_head): Change parameter abfd to section, add parameter
15784 section_kind. Handle DWARF-5.
15785 (error_check_comp_unit_head): Accept also DWARF version 5.
15786 (read_and_check_comp_unit_head): Change parameter
15787 is_debug_types_section to section_kind.
15788 (read_and_check_type_unit_head): Delete function.
15789 (read_abbrev_offset): Handle DWARF-5.
15790 (create_debug_type_hash_table): Add parameter section_kind. Process
15791 only DW_UT_type. Use signature and type_offset_in_tu from struct
15793 (create_debug_types_hash_table): Update create_debug_type_hash_table
15795 (create_all_type_units): Call create_debug_type_hash_table.
15796 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
15797 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
15799 (skip_one_die): Handle DW_FORM_implicit_const.
15800 (dwarf2_rnglists_process): New function.
15801 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15802 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15803 (read_attribute_value): Handle DW_FORM_implicit_const,
15805 (read_attribute): Handle DW_FORM_implicit_const.
15806 (read_indirect_string_at_offset_from): New function from
15807 read_indirect_string_at_offset.
15808 (read_indirect_string_at_offset): Call
15809 read_indirect_string_at_offset_from.
15810 (read_indirect_line_string_at_offset): New function.
15811 (read_indirect_string): New function comment.
15812 (read_indirect_line_string): New function.
15813 (read_unsigned_leb128): Make it global.
15814 (dwarf2_string_attr): Handle DWARF-5.
15815 (add_include_dir_stub, read_formatted_entries): New functions.
15816 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
15818 (per_cu_header_read_in): Update read_comp_unit_head caller.
15819 (dwarf2_version): New function.
15820 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
15822 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
15825 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15827 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
15829 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15831 * dwarf2read.c (dwarf2_ranges_process): New function from
15832 dwarf2_ranges_read.
15833 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
15834 dwarf2_ranges_process.
15836 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15838 * dwarf2read.c (create_debug_type_hash_table): New function from
15839 create_debug_types_hash_table.
15840 (create_debug_types_hash_table): Call create_debug_type_hash_table.
15841 (create_all_type_units, open_and_init_dwo_file): Update
15842 create_debug_types_hash_table callers.
15844 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15847 * fork-child.c (trace_start_error): Fix thinko. va_end should
15848 refer to 'ap', not 'args'.
15850 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15851 Pedro Alves <palves@redhat.com>
15854 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
15856 * fork-child.c (trace_start_error): New function.
15857 (trace_start_error_with_name): Likewise.
15858 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
15859 * inf-ptrace.c (inf_ptrace_me): Likewise.
15860 * inferior.h (trace_start_error): New prototype.
15861 (trace_start_error_with_name): Likewise.
15863 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
15866 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
15867 NULL before using it.
15868 * symmisc.c (maintenance_print_symbols): Likewise.
15869 (maintenance_print_msymbols): Likewise.
15871 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15873 * NEWS: Add record Python bindings entry.
15875 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15877 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
15879 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
15880 * python/py-record-btrace.c, python/py-record-btrace.h,
15881 python/py-record-full.c, python/py-record-full.h: New file.
15882 * python/py-record.c: Add include for py-record-btrace.h and
15884 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
15885 recpy_instruction_history, recpy_function_call_history, recpy_begin,
15886 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
15887 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
15889 (gdbpy_initialize_btrace): New export.
15890 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
15892 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15894 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
15895 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
15896 * python/py-record.c: New file.
15897 * python/python-internal.h (gdbpy_start_recording,
15898 gdbpy_current_recording, gdpy_stop_recording,
15899 gdbpy_initialize_record): New export.
15900 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
15901 (python_GdbMethods): Add gdbpy_start_recording,
15902 gdbpy_current_recording and gdbpy_stop_recording.
15904 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15906 * record-btrace.c (record_btrace_record_method): New function.
15907 (init_record_btrace_ops): Initialize to_record_method.
15908 * record-full.c (record_full_record_method): New function.
15909 (init_record_full_ops, init_record_full_core_ops): Add
15910 record_full_record_method.
15911 * record.h (enum record_method): New enum.
15912 * target-debug.h (target_debug_print_enum_record_method: New define.
15913 * target-delegates.c: Regenerate.
15914 * target.c (target_record_method): New function.
15915 * target.h: Include record.h.
15916 (struct target_ops) <to_record_method>: New field.
15917 (target_record_method): New export.
15919 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15921 * record.h (record_start, record_stop): New export.
15922 * record.c (record_start, record_stop): New function.
15924 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15926 * btrace.c (btrace_fetch): Copy function call segments pointer
15928 (btrace_clear): Clear the vector.
15929 (btrace_find_insn_by_number): Use binary search to find the correct
15930 function call segment.
15931 * btrace.h (brace_fun_p): New typedef.
15932 (struct btrace_thread_info) <functions>: New field.
15934 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15936 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
15937 * btrace.c (btrace_decode_error): ... here. New function.
15938 * btrace.h (btrace_decode_error): New export.
15940 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15942 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
15943 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
15944 btrace_find_insn_by_number): Remove special case for gaps.
15945 * btrace.h (btrace_insn_get_error): New export.
15946 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
15947 * record-btrace.c (btrace_insn_history): Print number for gaps.
15948 (record_btrace_info, record_btrace_goto): Handle gaps.
15950 2017-02-14 Tom Tromey <tom@tromey.com>
15953 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
15955 * python/py-evts.c (gdbpy_initialize_py_events): Add
15956 before_prompt registry.
15957 * python/py-events.h (events_object) <before_prompt>: New field.
15959 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
15961 * btrace.c (ftrace_new_switch): Preserve up link and flags.
15963 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
15965 * symfile (_initialize_symfile): Add usage text to the load command's
15968 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
15970 * utils.c (defaulted_query): Don't query on secondary UIs.
15972 2017-02-10 Tom Tromey <tom@tromey.com>
15974 * rust-lang.c (rust_get_disr_info): Remove unused variable.
15976 2017-02-10 Tom Tromey <tom@tromey.com>
15978 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
15980 * python/py-type.c (typy_legacy_template_argument): Remove
15981 unnecessary "cleanup" local.
15983 2017-02-10 Tom Tromey <tom@tromey.com>
15985 * python/python.c (do_start_initialization): New function, from
15986 _initialize_python.
15987 (_initialize_python): Call do_start_initialization.
15988 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
15991 2017-02-10 Tom Tromey <tom@tromey.com>
15993 * python/py-prettyprint.c (pretty_print_one_value): Use
15996 2017-02-10 Tom Tromey <tom@tromey.com>
15998 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
15999 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16001 * python/py-type.c (field_new): Use gdbpy_ref.
16002 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16004 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16005 (py_free_pspace): Likewise.
16006 (pspace_to_pspace_object): Likewise.
16007 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16008 (py_free_objfile): Likewise.
16009 (objfile_to_objfile_object): Likewise.
16010 * python/py-inferior.c (delete_thread_object): Use
16012 (infpy_read_memory): Likewise.
16013 (py_free_inferior): Likewise.
16014 * python/py-evtregistry.c (create_eventregistry_object): Use
16016 * python/py-event.c (create_event_object): Use gdbpy_ref.
16018 2017-02-10 Tom Tromey <tom@tromey.com>
16020 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16021 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16023 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16024 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16025 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16026 python/py-framefilter.c, python/py-function.c,
16027 python/py-inferior.c, python/py-infevents.c,
16028 python/py-linetable.c, python/py-newobjfileevent.c,
16029 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16030 python/py-signalevent.c, python/py-stopevent.c,
16031 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16032 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16033 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16034 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16036 2017-02-10 Tom Tromey <tom@tromey.com>
16038 * ui-out.h (ui_out_emit_type): New class.
16039 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16040 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16041 and ui_out_emit_tuple.
16042 (enumerate_locals): Likewise.
16043 (py_mi_print_variables, py_print_locals, py_print_args): Use
16045 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16047 * common/gdb_optional.h: New file.
16049 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16051 * MAINTAINERS (Write After Approval): Update my e-mail address.
16053 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16056 * breakpoint.c (_initialize_breakpoint): Update the help description
16057 of the 'commands' command to indicate that it takes a list argument.
16059 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16061 * interps.c (current_interp_set_logging): Remove "return".
16063 2017-02-09 Gary Benson <gbenson@redhat.com>
16065 * symtab.c (add_symtab_completions): Prevent NULL pointer
16068 2017-02-08 Pedro Alves <palves@redhat.com>
16070 * interps.c (interp::interp): Remove reference to quiet_p.
16071 (interp_set): Make static. Remove dead "Switching to" output
16073 (interp_quiet_p, interp_set_quiet): Delete.
16074 (interpreter_exec_cmd): Don't set the interpreter quiet.
16075 * interps.h (interp_quiet_p): Make static.
16076 (class interp) <quiet_p>: Remove field
16078 2017-02-08 Jerome Guitton <guitton@adacore.com>
16080 * cli/cli-decode.c (find_command_name_length): Make it extern.
16081 * cli/cli-decode.h (find_command_name_length): Declare.
16082 * cli/cli-script.c (command_name_equals, line_first_arg):
16084 (process_next_line): Use cli-decode to parse command names.
16085 (build_command_line): Make args a constant pointer.
16087 2017-02-08 Jerome Guitton <guitton@adacore.com>
16089 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16090 Remove case-insensitive search.
16092 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16094 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16095 at the end of the line. Avoids an ARI warning.
16097 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16099 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16100 rdseed instructions.
16101 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16103 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16106 Provide and use sparc32 and sparc64 target description XML files.
16107 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16108 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16109 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16110 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16111 * features/sparc/sparc32-solaris.xml: New file.
16112 * features/sparc/sparc64-solaris.xml: New file.
16113 * features/sparc/sparc32-solaris.c: Generated.
16114 * features/sparc/sparc64-solaris.c: Generated.
16115 * sparc-tdep.h: Account for differences in target descriptions.
16116 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16117 (sparc32_register_type): Use target provided registers.
16118 (validate_tdesc_registers): New function.
16119 (sparc32_gdbarch_init): Use tdesc_has_registers.
16120 Set pseudoregister functions.
16121 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16122 (sparc64_register_type): Use target provided registers.
16123 (sparc64_init_abi): Set pseudoregister functions.
16125 2017-02-03 Tom Tromey <tom@tromey.com>
16128 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16129 with a single member.
16131 2017-02-03 Pedro Alves <palves@redhat.com>
16133 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16134 (cli_interp_base::~cli_interp_base): New.
16135 (cli_interp): New struct.
16136 (as_cli_interp): Cast the interp itself to cli_interp.
16137 (cli_interpreter_pre_command_loop): Rename to ...
16138 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16140 (cli_interpreter_init): Rename to ...
16141 (cli_interp::init): ... this. Remove 'self' parameter. Use
16142 boolean. Make extern.
16143 (cli_interpreter_resume): Rename to ...
16144 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16146 (cli_interpreter_suspend): Rename to ...
16147 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16149 (cli_interpreter_exec): Rename to ...
16150 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16152 (cli_interpreter_supports_command_editing): Rename to ...
16153 (cli_interp_base::supports_command_editing): ... this. Remove
16154 'interp' parameter. Make extern.
16155 (cli_ui_out): Rename to ...
16156 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16158 (cli_set_logging): Rename to ...
16159 (cli_interp_base::set_logging): ... this. Remove 'interp'
16160 parameter. Make extern.
16161 (cli_interp_procs): Delete.
16162 (cli_interp_factory): Adjust to use "new".
16163 * cli/cli-interp.h: Include "interps.h".
16164 (struct cli_interp_base): New struct.
16165 * interps.c (struct interp): Delete. Fields moved to interps.h.
16166 (interp_new): Delete.
16167 (interp::interp, interp::~interp): New.
16168 (interp_set): Use bool, and return void. Assume the interpreter
16169 has suspend, init and resume methods, and that the all return
16171 (set_top_level_interpreter): interp_set returns void.
16172 (interp_ui_out): Adapt.
16173 (current_interp_set_logging): Adapt.
16174 (interp_data): Delete.
16175 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16176 (interp_exec): Adapt.
16177 (top_level_interpreter_data): Delete.
16178 * interps.h (interp_init_ftype, interp_resume_ftype)
16179 (interp_suspend_ftype, interp_exec_ftype)
16180 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16181 (class interp): New.
16182 (interp_new): Delete.
16183 (interp_set): Now returns void. Use bool.
16184 (interp_data, top_level_interpreter_data): Delete.
16185 * mi/mi-common.h: Include interps.h.
16186 (class mi_interp): Inherit from interp. Define a ctor. Declare
16187 init, resume, suspect, exec, interp_ui_out, set_logging and
16188 pre_command_loop methods.
16189 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16190 (mi_interpreter_init): Rename to ...
16191 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16192 bool, return void and make extern. Adjust.
16193 (mi_interpreter_resume): ... Rename to ...
16194 (mi_interp::resume): ... this. Remove the 'data' parameter,
16195 return void and make extern. Adjust.
16196 (mi_interpreter_suspend): ... Rename to ...
16197 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16198 return void and make extern. Adjust.
16199 (mi_interpreter_exec): ... Rename to ...
16200 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16202 (mi_interpreter_pre_command_loop): ... Rename to ...
16203 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16204 parameter and make extern.
16205 (mi_on_normal_stop_1): Adjust.
16206 (mi_ui_out): Rename to ...
16207 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16208 parameter and make extern. Adjust.
16209 (mi_set_logging): Rename to ...
16210 (mi_interp::set_logging): ... this. Remove the 'interp'
16211 parameter and make extern. Adjust.
16212 (mi_interp_procs): Delete.
16213 (mi_interp_factory): Adjust to use 'new'.
16214 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16215 (mi_print_exception, mi_execute_command, mi_load_progress):
16217 * tui/tui-interp.c (tui_interp): New class.
16218 (as_tui_interp): Return a tui_interp pointer.
16219 (tui_on_normal_stop, tui_on_signal_received)
16220 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16221 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16222 to use interp::interp_ui_out.
16223 (tui_init): Rename to ...
16224 (tui_interp::init): ... this. Remove the 'self' parameter, use
16225 bool, return void and make extern. Adjust.
16226 (tui_resume): Rename to ...
16227 (tui_interp::resume): ... this. Remove the 'data' parameter,
16228 return void and make extern. Adjust.
16229 (tui_suspend): Rename to ...
16230 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16231 return void and make extern. Adjust.
16232 (tui_ui_out): Rename to ...
16233 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16234 parameter, and make extern. Adjust.
16235 (tui_exec): Rename to ...
16236 (tui_interp::exec): ... this. Remove the 'data' parameter and
16238 (tui_interp_procs): Delete.
16239 (tui_interp_factory): Use "new".
16241 2017-02-02 Tom Tromey <tom@tromey.com>
16243 * rust-exp.y (ends_raw_string, space_then_number)
16244 (rust_identifier_start_p): Return bool.
16245 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16246 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16247 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16248 (rust_chartype_p): Return bool.
16249 (val_print_struct, rust_print_struct_def, rust_print_type):
16251 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16254 2017-02-02 Tom Tromey <tom@tromey.com>
16256 * rust-lang.c: Reindent.
16258 2017-02-02 Tom Tromey <tom@tromey.com>
16260 * rust-lang.h (rust_crate_for_block): Update.
16261 * rust-lang.c (rust_crate_for_block): Return std::string.
16262 (rust_get_disr_info): Use std:;string, not
16263 gdb::unique_xmalloc_ptr.
16264 * rust-exp.y (crate_name): Update.
16266 2017-02-02 Pedro Alves <palves@redhat.com>
16268 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16269 field out of gdb_disassembler_test and make it static.
16271 2017-02-02 Pedro Alves <palves@redhat.com>
16273 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16274 mi1_interp and mi_interp fields.
16276 2017-02-02 Pedro Alves <palves@redhat.com>
16278 * cli/cli-interp.c (struct saved_output_files, saved_output):
16279 Moved from cli/cli-logging.c.
16280 (cli_set_logging): New function.
16281 (cli_interp_procs): Install cli_set_logging.
16282 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16284 * cli/cli-logging.c (struct saved_output_files, saved_output):
16285 Moved to cli/cli-interp.c.
16286 (pop_output_files): Don't save outputs here.
16287 (make_logging_output): New function.
16288 (handle_redirections): Don't build tee nor save previous outputs
16290 * interps.c (current_interp_set_logging): Change prototype.
16291 Assume there's always a set_logging_proc method installed.
16292 * interps.h (interp_set_logging_ftype): Change prototype.
16293 (current_interp_set_logging): Change prototype and adjust comment.
16294 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16295 use make_logging_output.
16296 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16297 2017-02-02 Pedro Alves <palves@redhat.com>
16299 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16301 (set_logging_overwrite): ... here.
16302 (logging_no_redirect_file): Delete.
16303 (set_logging_redirect): Don't handle redirection on the fly.
16304 Instead warn that "logging off" / "logging on" is necessary.
16305 (pop_output_files): Delete references to logging_no_redirect_file.
16306 (show_logging_command): Always speak in terms of what will happen
16307 once logging is reenabled.
16309 2017-02-02 Pedro Alves <palves@redhat.com>
16311 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16313 2017-02-02 Pedro Alves <palves@redhat.com>
16315 * disasm.c (gdb_pretty_print_insn): Rename to ...
16316 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16317 Remove gdbarch parameter. Adapt to clear the object's buffers
16318 instead of allocating new buffers, and to print using the object's
16319 gdb_disassembler instead of calling gdb_print_insn.
16320 (dump_insns): Use gdb_pretty_print_disassembler.
16321 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16322 (gdb_pretty_print_disassembler): New class.
16323 * record-btrace.c (btrace_insn_history): Use
16324 gdb_pretty_print_disassembler.
16326 2017-02-02 Pedro Alves <palves@redhat.com>
16328 * ada-lang.c (type_as_string): Use string_file.
16329 * ada-valprint.c (ada_print_floating): Use string_file.
16330 * ada-varobj.c (ada_varobj_scalar_image)
16331 (ada_varobj_get_value_image): Use string_file.
16332 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16333 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16334 * breakpoint.c (update_inserted_breakpoint_locations)
16335 (insert_breakpoint_locations, reattach_breakpoints)
16336 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16337 (print_it_watchpoint): Use string_file.
16338 (save_breakpoints): Use stdio_file.
16339 * c-exp.y (oper): Use string_file.
16340 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16342 (pop_output_files): Use delete.
16343 (handle_redirections): Use stdio_file and tee_file.
16344 * cli/cli-setshow.c (do_show_command): Use string_file.
16345 * compile/compile-c-support.c (c_compute_program): Use
16347 * compile/compile-c-symbols.c (generate_vla_size): Take a
16348 'string_file &' instead of a 'ui_file *'.
16349 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16350 of a 'ui_file *'. Use string_file.
16351 (generate_c_for_variable_locations): Take a 'string_file &'
16352 instead of a 'ui_file *'.
16353 * compile/compile-internal.h (generate_c_for_for_one_variable):
16354 Take a 'string_file &' instead of a 'ui_file *'.
16355 * compile/compile-loc2c.c (push, pushf, unary, binary)
16356 (print_label, pushf_register_address, pushf_register)
16357 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16358 'ui_file *'. Adjust.
16359 * compile/compile.c (compile_to_object): Use string_file.
16360 * compile/compile.h (compile_dwarf_expr_to_c)
16361 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16363 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16364 (replace_typedefs_qualified_name): Use string_file and
16366 * disasm.c (gdb_pretty_print_insn): Use string_file.
16367 (gdb_disassembly): Adjust reference the null_stream global.
16368 (do_ui_file_delete): Delete.
16369 (gdb_insn_length): Use null_stream.
16370 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16371 * dwarf2loc.c (dwarf2_compile_property_to_c)
16372 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16373 'string_file &' instead of a 'ui_file *'.
16374 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16375 * dwarf2read.c (do_ui_file_peek_last): Delete.
16376 (dwarf2_compute_name): Use string_file.
16377 * event-top.c (gdb_setup_readline): Use stdio_file.
16378 * gdbarch.sh (verify_gdbarch): Use string_file.
16379 * gdbtypes.c (safe_parse_type): Use null_stream.
16380 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16382 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16383 'string_file *' instead of a 'ui_file *'.
16384 (gdbscm_arch_disassemble): Use string_file.
16385 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16386 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16387 inherits from ui_file.
16388 (ioscm_file_port_delete, ioscm_file_port_rewind)
16389 (ioscm_file_port_put): Delete.
16390 (ioscm_file_port_write): Rename to ...
16391 (ioscm_file_port::write): ... this. Remove file_port_magic
16393 (ioscm_file_port_new): Delete.
16394 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16396 * guile/scm-type.c (tyscm_type_name): Use string_file.
16397 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16399 * infcmd.c (print_return_value_1): Use string_file.
16400 * infrun.c (print_target_wait_results): Use string_file.
16401 * language.c (add_language): Use string_file.
16402 * location.c (explicit_to_string_internal): Use string_file.
16403 * main.c (captured_main_1): Use null_file.
16404 * maint.c (maintenance_print_architecture): Use stdio_file.
16405 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16406 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16407 event_channel>: Change type to mi_console_file pointer.
16408 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16409 (mi_console_file_delete): Delete.
16410 (struct mi_console_file): Delete.
16411 (mi_console_file_magic): Delete.
16412 (mi_console_file_new): Delete.
16413 (mi_console_file::mi_console_file): New.
16414 (mi_console_file_delete): Delete.
16415 (mi_console_file_fputs): Delete.
16416 (mi_console_file::write): New.
16417 (mi_console_raw_packet): Delete.
16418 (mi_console_file::flush): New.
16419 (mi_console_file_flush): Delete.
16420 (mi_console_set_raw): Rename to ...
16421 (mi_console_file::set_raw): ... this.
16422 * mi/mi-console.h (class mi_console_file): New class.
16423 (mi_console_file_new, mi_console_set_raw): Delete.
16424 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16425 (mi_set_logging): Use delete and tee_file. Adjust.
16426 * mi/mi-main.c (output_register): Use string_file.
16427 (mi_cmd_data_evaluate_expression): Use string_file.
16428 (mi_cmd_data_read_memory): Use string_file.
16429 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16430 * mi/mi-out.c (mi_ui_out::main_stream): New.
16431 (mi_ui_out::rewind): Use main_stream and
16433 (mi_ui_out::put): Use main_stream and string_file.
16434 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16435 Allocate a 'string_file' instead.
16436 (mi_out_new): Don't allocate a mem_fileopen stream here.
16437 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16438 (mi_ui_out::main_stream): Declare method.
16439 * printcmd.c (eval_command): Use string_file.
16440 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16441 * python/py-arch.c (archpy_disassemble): Use string_file.
16442 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16443 * python/py-frame.c (frapy_str): Use string_file.
16444 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16446 * python/py-type.c (typy_str): Use string_file.
16447 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16448 * python/py-value.c (valpy_str): Use string_file.
16449 * record-btrace.c (btrace_insn_history): Use string_file.
16450 * regcache.c (regcache_print): Use stdio_file.
16451 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16452 * remote.c (escape_buffer): Use string_file.
16453 * rust-lang.c (rust_get_disr_info): Use string_file.
16454 * serial.c (serial_open_ops_1): Use stdio_file.
16455 (do_serial_close): Use delete.
16456 * stack.c (print_frame_arg): Use string_file.
16457 (print_frame_args): Remove local mem_fileopen stream, not used.
16458 (print_frame): Use string_file.
16459 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16460 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16461 Take a 'string_file *' instead of a 'ui_file *'.
16462 * top.c (new_ui): Use stdio_file and stderr_file.
16463 (free_ui): Use delete.
16464 (execute_command_to_string): Use string_file.
16465 (quit_confirm): Use string_file.
16466 * tracepoint.c (collection_list::append_exp): Use string_file.
16467 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16468 * tui/tui-file.c: Don't include "ui-file.h".
16469 (enum streamtype, struct tui_stream): Delete.
16470 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16471 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16472 (tui_file::tui_file): New method.
16473 (tui_file_fputs): Delete.
16474 (tui_file_get_strbuf): Delete.
16475 (tui_file::puts): New method.
16476 (tui_file_adjust_strbuf): Delete.
16477 (tui_file_flush): Delete.
16478 (tui_file::flush): New method.
16479 * tui/tui-file.h: Tweak intro comment.
16481 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16482 (tui_file_adjust_strbuf): Delete declarations.
16483 (class tui_file): New class.
16484 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16485 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16486 (tui_register_format): Use string_stream.
16487 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16488 (tui_get_function_from_frame): Use string_file.
16489 * typeprint.c (type_to_string): Use string_file.
16490 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16491 (null_stream): New global.
16492 (ui_file_delete): Delete.
16493 (ui_file::ui_file): New.
16494 (null_file_isatty): Delete.
16495 (ui_file::~ui_file): New.
16496 (null_file_rewind): Delete.
16497 (ui_file::printf): New.
16498 (null_file_put): Delete.
16499 (null_file_flush): Delete.
16500 (ui_file::putstr): New.
16501 (null_file_write): Delete.
16502 (ui_file::putstrn): New.
16503 (null_file_read): Delete.
16504 (ui_file::putc): New.
16505 (null_file_fputs): Delete.
16506 (null_file_write_async_safe): Delete.
16507 (ui_file::vprintf): New.
16508 (null_file_delete): Delete.
16509 (null_file::write): New.
16510 (null_file_fseek): Delete.
16511 (null_file::puts): New.
16512 (ui_file_data): Delete.
16513 (null_file::write_async_safe): New.
16514 (gdb_flush, ui_file_isatty): Adjust.
16515 (ui_file_put, ui_file_rewind): Delete.
16516 (ui_file_write): Adjust.
16517 (ui_file_write_for_put): Delete.
16518 (ui_file_write_async_safe, ui_file_read): Adjust.
16519 (ui_file_fseek): Delete.
16520 (fputs_unfiltered): Adjust.
16521 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16522 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16523 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16524 (set_ui_file_data): Delete.
16525 (string_file::~string_file, string_file::write)
16526 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16527 (do_ui_file_as_string, ui_file_as_string): Delete.
16528 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16529 (struct mem_file): Delete.
16530 (mem_file_new): Delete.
16531 (stdio_file::stdio_file): New.
16532 (mem_file_delete): Delete.
16533 (stdio_file::stdio_file): New.
16534 (mem_fileopen): Delete.
16535 (stdio_file::~stdio_file): New.
16536 (mem_file_rewind): Delete.
16537 (stdio_file::set_stream): New.
16538 (mem_file_put): Delete.
16539 (stdio_file::open): New.
16540 (mem_file_write): Delete.
16541 (stdio_file_magic, struct stdio_file): Delete.
16542 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16543 (stdio_file::flush): New.
16544 (stdio_file_read): Rename to ...
16545 (stdio_file::read): ... this. Adjust.
16546 (stdio_file_write): Rename to ...
16547 (stdio_file::write): ... this. Adjust.
16548 (stdio_file_write_async_safe): Rename to ...
16549 (stdio_file::write_async_safe) ... this. Adjust.
16550 (stdio_file_fputs): Rename to ...
16551 (stdio_file::puts) ... this. Adjust.
16552 (stdio_file_isatty): Delete.
16553 (stdio_file_fseek): Delete.
16554 (stdio_file::isatty): New.
16555 (stderr_file_write): Rename to ...
16556 (stderr_file::write) ... this. Adjust.
16557 (stderr_file_fputs): Rename to ...
16558 (stderr_file::puts) ... this. Adjust.
16559 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16560 (stderr_file::stderr_file): New.
16561 (tee_file_magic): Delete.
16562 (struct tee_file): Delete.
16563 (tee_file::tee_file): New.
16564 (tee_file_new): Delete.
16565 (tee_file::~tee_file): New.
16566 (tee_file_delete): Delete.
16567 (tee_file_flush): Rename to ...
16568 (tee_file::flush): ... this. Adjust.
16569 (tee_file_write): Rename to ...
16570 (tee_file::write): ... this. Adjust.
16571 (tee_file::write_async_safe): New.
16572 (tee_file_fputs): Rename to ...
16573 (tee_file::puts): ... this. Adjust.
16574 (tee_file_isatty): Rename to ...
16575 (tee_file::isatty): ... this. Adjust.
16576 * ui-file.h (struct obstack, struct ui_file): Don't
16578 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16579 (ui_file_write_ftype)
16580 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16581 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16582 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16583 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16584 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16585 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16586 (set_ui_file_fseek): Delete.
16587 (ui_file_data, ui_file_delete, ui_file_rewind)
16588 (struct ui_file): New.
16590 (class null_file): New.
16591 (null_stream): Declare.
16592 (ui_file_write_for_put, ui_file_put): Delete.
16593 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16595 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16596 (gdb_fopen, tee_file_new): Delete.
16597 (struct string_file): New.
16598 (struct stdio_file): New.
16599 (stdio_file_up): New.
16600 (struct stderr_file): New.
16601 (class tee_file): New.
16602 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16603 of a 'ui_file *'. Adjust.
16604 * ui-out.h (class ui_out) <field_stream>: Likewise.
16605 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16606 (null_stream): Delete.
16607 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16609 * utils.h (struct ui_file): Delete forward declaration..
16610 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16611 (error_stream): Take a 'string_file &' instead of a
16613 * varobj.c (varobj_value_get_print_value): Use string_file.
16614 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
16615 * gdbarch.c: Regenerate.
16617 2017-02-02 Pedro Alves <palves@redhat.com>
16619 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
16620 (gdb_pretty_print_insn): ... this. Now a free function. Add back
16621 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
16622 Adjust to call gdb_print_insn instead of
16623 gdb_disassembler::print_insn.
16624 (dump_insns, do_mixed_source_and_assembly_deprecated)
16625 (do_mixed_source_and_assembly, do_assembly_only): Add back a
16626 'gdbarch' parameter. Remove gdb_disassembler parameter.
16627 (gdb_disassembly): Don't allocate a gdb_disassembler here.
16628 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
16630 (gdb_pretty_print_insn): Re-add declaration.
16631 * record-btrace.c (btrace_insn_history): Don't allocate a
16632 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
16634 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
16636 * disasm.h (gdb_disassembly): Remove file_string parameter.
16637 * disasm.c (gdb_disassembly): Likewise.
16638 * cli/cli-cmds.c (print_disassembly): Adapt.
16639 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
16640 * stack.c (do_gdb_disassembly): Likewise.
16642 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
16644 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
16645 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
16646 targets. And if the implicit value is longer than needed, extract
16647 the first bytes instead of the "least significant" ones.
16649 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16651 * btrace.c (btrace_enable): Do not call btrace_add_pc for
16652 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
16653 (btrace_fetch): Assert can_access_registers_ptid.
16654 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
16655 validate_registers_access.
16657 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16659 * gdbthread.h (can_access_registers_ptid): New.
16660 * thread.c (can_access_registers_ptid): New.
16662 2017-02-01 Pedro Alves <palves@redhat.com>
16664 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
16666 2017-01-31 Pedro Alves <palves@redhat.com>
16668 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
16671 2017-01-31 Pedro Alves <palves@redhat.com>
16673 * stack.c (print_frame_args): Remove local mem_fileopen stream,
16676 2017-01-31 Pedro Alves <palves@redhat.com>
16678 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
16680 2017-01-31 Pedro Alves <palves@redhat.com>
16682 * common/scoped_restore.h
16683 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
16684 change the value's parameter type to T2.
16685 (make_scoped_restore): Likewise.
16687 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16688 Richard Henderson <rth@redhat.com>
16690 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
16691 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
16692 GS_BASE for older kernels.
16693 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
16694 GS_BASE for older kernels.
16695 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
16696 and GS_BASE to the offset table.
16697 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
16698 system register group.
16699 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
16701 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
16703 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
16704 AMD64_GSBASE_REGNUM.
16705 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
16706 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
16707 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
16708 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
16709 i386/64bit-segments.xml in those rules.
16710 * features/i386/64bit-segments.xml: New file.
16711 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
16712 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
16713 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
16714 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
16715 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
16716 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
16717 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
16718 * features/i386/amd64-avx-linux.c: Regenerated.
16719 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
16720 * features/i386/amd64-avx-mpx.c: Regenerated.
16721 * features/i386/amd64-avx512-linux.c: Regenerated.
16722 * features/i386/amd64-linux.c: Regenerated.
16723 * features/i386/amd64-mpx-linux.c: Regenerated.
16724 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16725 * features/i386/i386-avx-mpx.c: Regenerated.
16726 * features/i386/x32-avx-linux.c: Regenerated.
16727 * features/i386/x32-avx512-linux.c: Regenerated.
16728 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16729 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16730 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16731 * regformats/i386/amd64-linux.dat: Regenerated.
16732 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16733 * regformats/i386/x32-avx-linux.dat: Regenerated.
16734 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16735 * regformats/i386/x32-linux.dat: Regenerated.
16737 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16739 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16740 Set to AMD64_NUM_REGS.
16742 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16744 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16745 that checks validity of a register number.
16747 2017-01-27 Kees Cook <keescook@google.com>
16749 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16750 fetch_fpregs if target has fpa registers.
16751 (arm_linux_store_inferior_registers): Call store_fpregs if target
16754 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16756 * cris-tdep.c (cris_gdbarch_init): Remove check for
16757 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16759 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16761 * corelow.c (get_core_register_section): Check for regset
16762 existence before checking for REGSET_VARIABLE_SIZE.
16764 2017-01-26 Yao Qi <yao.qi@linaro.org>
16765 Pedro Alves <palves@redhat.com>
16768 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
16769 call memory_error, save memaddr instead.
16770 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
16771 negative, cal memory_error.
16772 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
16774 2017-01-26 Yao Qi <yao.qi@linaro.org>
16776 * disasm-selftests.c (memory_error_test): New function.
16777 (_initialize_disasm_selftests): Register memory_error_test.
16779 2017-01-26 Yao Qi <yao.qi@linaro.org>
16781 * Makefile.in (SFILES): Add disasm-selftests.c and
16783 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
16784 * disasm-selftests.c: New file.
16785 * selftest-arch.c: New file.
16786 * selftest-arch.h: New file.
16788 2017-01-26 Yao Qi <yao.qi@linaro.org>
16790 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
16791 to bfd_arch_mep. Don't return 0 if section is not
16792 found. Call print_insn_mep.
16794 2017-01-26 Pedro Alves <palves@redhat.com>
16795 Yao Qi <yao.qi@linaro.org>
16797 * arm-tdep.c: Include "disasm.h".
16798 (gdb_print_insn_arm): Update code to get gdbarch.
16799 * disasm.c (dis_asm_read_memory): Change it to
16800 gdb_disassembler::dis_asm_read_memory.
16801 (dis_asm_memory_error): Likewise.
16802 (dis_asm_print_address): Likewise.
16803 (gdb_pretty_print_insn): Change it to
16804 gdb_disassembler::pretty_print_insn.
16805 (dump_insns): Add one argument gdb_disassemlber. All
16807 (do_mixed_source_and_assembly_deprecated): Likewise.
16808 (do_mixed_source_and_assembly): Likewise.
16809 (do_assembly_only): Likewise.
16810 (gdb_disassembler::gdb_disassembler): New.
16811 (gdb_disassembler::print_insn): New.
16812 * disasm.h (class gdb_disassembler): New.
16813 (gdb_pretty_print_insn): Remove declaration.
16814 (gdb_disassemble_info): Likewise.
16815 * guile/scm-disasm.c (class gdbscm_disassembler): New.
16816 (gdbscm_disasm_read_memory_worker): Update.
16817 (gdbscm_disasm_read_memory): Update.
16818 (gdbscm_disasm_memory_error): Remove.
16819 (gdbscm_disasm_print_address): Remove.
16820 (gdbscm_disassembler::gdbscm_disassembler): New.
16821 (gdbscm_print_insn_from_port): Update.
16822 * mips-tdep.c: Include disasm.h.
16823 (gdb_print_insn_mips): Update code to get gdbarch.
16824 * record-btrace.c (btrace_insn_history): Update.
16825 * spu-tdep.c: Include disasm.h.
16826 (struct spu_dis_asm_data): Remove.
16827 (struct spu_dis_asm_info): New.
16828 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
16830 (gdb_print_insn_spu): Cast disassemble_info to
16833 2017-01-26 Yao Qi <yao.qi@linaro.org>
16835 * disasm.c (do_ui_file_delete): Delete.
16836 (gdb_insn_length): Move code creating stream to ...
16837 * utils.c (null_stream): ... here. New function.
16838 * utils.h (null_stream): Declare.
16840 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16842 * python/py-inferior.c (find_thread_object): Return directly
16843 from the loop. Remove "found" variable.
16845 2017-01-21 Joel Brobecker <brobecker@adacore.com>
16847 GDB 7.12.1 released.
16849 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16851 * python/py-function.c (fnpy_call): Reorder declarations to have
16852 the gdbpy_enter object declared first.
16853 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
16855 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16858 * python/python-internal.h (PyMem_RawMalloc): Define for
16860 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
16861 PyMem_RawMalloc instead of PyMem_Malloc.
16863 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
16864 Luis Machado <lgustavo@codesourcery.com>
16866 * NEWS (New commands): Mention flash-erase.
16867 (New MI commands): Mention target-flash-erase.
16868 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
16870 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
16871 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
16872 * target.c (flash_erase_command): New function.
16873 (initialize_targets): Add new flash-erase command.
16874 * target.h (flash_erase_command): New declaration.
16876 2017-01-20 Joel Brobecker <brobecker@adacore.com>
16878 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
16879 HAVE_SYS_PROCFS_H is defined.
16881 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16883 * remote.c (struct cached_reg): Change data into a pointer.
16884 * (stop_reply_dtr): Free data pointers before deleting vector.
16885 (process_stop_reply): Likewise.
16886 (remote_parse_stop_reply): Allocate space for data
16888 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16890 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
16892 (amd64_pseudo_register_read_value): Likewise.
16893 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
16894 (store_register_using_P): Likewise.
16895 * regcache.c (regcache_xfer_part): Likewise.
16897 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
16899 Split real and pseudo registers.
16900 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
16901 (sparc32_pseudo_regnum): New enum.
16902 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
16903 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
16904 (SPARC32_CP0_REGISTERS): New macro.
16905 (sparc32_pseudo_register_name): New function.
16906 (sparc32_register_name): Use sparc32_pseudo_register_name.
16907 (sparc32_pseudo_register_type): New function.
16908 (sparc32_register_type): Use sparc32_pseudo_register_type.
16909 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
16910 pseudo register numbers.
16911 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
16912 (SPARC64_CP0_REGISTERS): New macro.
16913 (sparc64_pseudo_register_name): New function.
16914 (sparc64_register_name): Use sparc64_pseudo_register_name.
16915 (sparc64_pseudo_register_type): New function.
16916 (sparc64_register_type): Use sparc64_pseudo_register_type.
16917 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
16918 pseudo register numbers.
16919 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
16920 sparc64_store_arguments): Handle pseudo register numbers.
16922 2017-01-13 Yao Qi <yao.qi@linaro.org>
16924 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
16925 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
16927 (getpkt_or_notif_sane_1): Likewise.
16929 2017-01-13 Yao Qi <yao.qi@linaro.org>
16931 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
16932 of CC. Pass "-x c++-header" instead of "-x c".
16934 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16936 * remote.c (remote_can_async_p): Update comment.
16938 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16940 * linux-nat.c (linux_nat_can_async_p): Update comment.
16942 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16944 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
16946 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
16948 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
16950 2017-01-10 Tom Tromey <tom@tromey.com>
16952 * python/py-type.c (typy_legacy_template_argument): Update.
16953 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
16954 ~demangle_parse_info): Declare new members.
16955 (cp_demangled_name_to_comp): Return unique_ptr.
16956 (cp_demangled_name_parse_free)
16957 (make_cleanup_cp_demangled_name_parse_free)
16958 (cp_new_demangle_parse_info): Remove.
16959 * cp-support.c (do_demangled_name_parse_free_cleanup)
16960 (make_cleanup_cp_demangled_name_parse_free): Remove.
16961 (inspect_type, cp_canonicalize_string_full)
16962 (cp_canonicalize_string): Update.
16963 (mangled_name_to_comp): Change return type.
16964 (cp_class_name_from_physname, method_name_from_physname)
16965 (cp_func_name, cp_remove_params): Update.
16966 * cp-name-parser.y (demangle_parse_info): New constructor, from
16967 cp_new_demangle_parse_info.
16968 (~demangle_parse_info): New destructor, from
16969 cp_demangled_name_parse_free.
16970 (cp_merge_demangle_parse_infos): Update.
16971 (cp_demangled_name_to_comp): Change return type.
16973 2017-01-10 Tom Tromey <tom@tromey.com>
16975 * top.c (prevent_dont_repeat): Change return type.
16976 * python/python.c (execute_gdb_command): Use std::string.
16978 * guile/guile.c (gdbscm_execute_gdb_command): Update.
16979 * command.h (prevent_dont_repeat): Change return type.
16980 * breakpoint.c (bpstat_do_actions_1): Update.
16982 2017-01-10 Tom Tromey <tom@tromey.com>
16984 * value.h (scoped_value_mark::~scoped_value_mark): Call
16986 (scoped_value_mark::free_to_mark): New method.
16987 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
16990 2017-01-10 Tom Tromey <tom@tromey.com>
16992 * python/py-value.c (valpy_dereference, valpy_referenced_value)
16993 (valpy_reference_value, valpy_const_value, valpy_get_address)
16994 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
16995 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
16996 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
16997 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
16999 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17000 * value.h (scoped_value_mark): New class.
17002 2017-01-10 Tom Tromey <tom@tromey.com>
17004 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17005 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17006 * psymtab.c (discard_psymtabs_upto): Remove.
17007 (make_cleanup_discard_psymtabs): Remove.
17008 (struct psymtab_state): Remove.
17010 2017-01-10 Tom Tromey <tom@tromey.com>
17012 * record-full.c (record_full_save_cleanups): Remove.
17013 (record_full_save): Use gdb::unlinker.
17014 * gcore.c (do_bfd_delete_cleanup): Remove.
17015 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17017 * dwarf2read.c (unlink_if_set): Remove.
17018 (write_psymtabs_to_index): Use gdb::unlinker.
17019 * common/gdb_unlinker.h: New file.
17021 2017-01-10 Tom Tromey <tom@tromey.com>
17023 * windows-tdep.c (windows_xfer_shared_library): Update.
17024 * windows-nat.c (windows_make_so): Update.
17025 * utils.h (make_cleanup_bfd_unref): Remove.
17026 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17027 * symfile.h (symfile_bfd_open)
17028 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17029 * symfile.c (read_symbols, symbol_file_add)
17030 (separate_debug_file_exists): Update.
17031 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17032 (generic_load, reread_symbols): Update.
17033 * symfile-mem.c (symbol_file_add_from_memory): Update.
17034 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17035 (spu_symbol_file_add_from_memory): Update.
17036 * solist.h (struct target_so_ops) <bfd_open>: Return
17038 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17039 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17041 (solib_map_sections, reload_shared_libraries_1): Update.
17042 * solib-svr4.c (enable_break): Update.
17043 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17044 * solib-frv.c (enable_break2): Update.
17045 * solib-dsbt.c (enable_break): Update.
17046 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17048 (darwin_solib_get_all_image_info_addr_at_init): Update.
17049 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17050 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17051 * record-full.c (record_full_save): Update.
17052 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17053 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17054 * minidebug.c (find_separate_debug_file_in_section): Return
17056 * machoread.c (macho_add_oso_symfile): Change abfd to
17058 (macho_symfile_read_all_oso): Update.
17059 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17060 (macho_symfile_read): Update.
17061 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17062 (jit_bfd_try_read_symtab): Update.
17063 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17064 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17065 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17067 (gdb_bfd_ref_policy): New struct.
17068 (gdb_bfd_ref_ptr): New typedef.
17069 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17070 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17071 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17073 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17074 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17075 (gcore_command): Update.
17076 * exec.c (exec_file_attach): Update.
17077 * elfread.c (elf_symfile_read): Update.
17078 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17079 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17080 (open_and_init_dwo_file): Update.
17081 (open_dwp_file): Return gdb_bfd_ref_ptr.
17082 (open_and_init_dwp_file): Update.
17083 * corelow.c (core_open): Update.
17084 * compile/compile-object-load.c (compile_object_load): Update.
17085 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17086 * coffread.c (coff_symfile_read): Update.
17087 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17088 gdb_bfd_ref_ptr. Rename.
17089 (dump_bfd_file, restore_command): Update.
17090 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17091 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17092 (find_separate_debug_file_by_buildid): Update.
17094 2017-01-10 Tom Tromey <tom@tromey.com>
17096 * common/gdb_ref_ptr.h: New file.
17097 * python/py-ref.h (struct gdbpy_ref_policy): New.
17098 (gdbpy_ref): Now a typedef.
17100 2017-01-10 Tom Tromey <tom@tromey.com>
17102 * utils.h (make_cleanup_htab_delete): Don't declare.
17103 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17105 * linespec.c (decode_compound_collector): Add constructor,
17107 (lookup_prefix_sym): Remove cleanup.
17108 (symtab_collector): Add constructor, destructor.
17109 (collect_symtabs_from_filename): Remove cleanup.
17110 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17111 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17113 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17114 * dwarf2read.c (dw2_expand_symtabs_matching)
17115 (dw2_map_symbol_filenames, dwarf_decode_macros)
17116 (write_psymtabs_to_index): Use htab_up.
17117 * dwarf2loc.c (func_verify_no_selftailcall)
17118 (call_site_find_chain_1, func_verify_no_selftailcall)
17119 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17120 std::vector, gdb::unique_xmalloc_ptr.
17121 (call_sitep): Remove typedef.
17122 (dwarf2_locexpr_baton_eval): Remove unused variable.
17124 2017-01-10 Tom Tromey <tom@tromey.com>
17126 * python/python-internal.h (make_cleanup_py_decref)
17127 (make_cleanup_py_xdecref): Don't declare.
17128 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17129 (py_xdecref, make_cleanup_py_xdecref): Remove.
17131 2017-01-10 Tom Tromey <tom@tromey.com>
17133 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17134 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17136 2017-01-10 Tom Tromey <tom@tromey.com>
17138 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17140 2017-01-10 Tom Tromey <tom@tromey.com>
17142 * python/py-utils.c (unicode_to_encoded_string)
17143 (python_string_to_target_string)
17144 (python_string_to_target_python_string)
17145 (python_string_to_host_string, gdbpy_obj_to_string)
17146 (get_addr_from_python): Use gdbpy_ref.
17148 2017-01-10 Tom Tromey <tom@tromey.com>
17150 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17153 2017-01-10 Tom Tromey <tom@tromey.com>
17155 * python/python.c (eval_python_command, gdbpy_decode_line)
17156 (gdbpy_run_events, gdbpy_start_type_printers)
17157 (gdbpy_apply_type_printers): Use gdbpy_ref.
17159 2017-01-10 Tom Tromey <tom@tromey.com>
17161 * python/py-param.c (get_doc_string, compute_enum_values): Use
17164 2017-01-10 Tom Tromey <tom@tromey.com>
17166 * python/py-inferior.c (find_thread_object, build_inferior_list):
17169 2017-01-10 Tom Tromey <tom@tromey.com>
17171 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17173 2017-01-10 Tom Tromey <tom@tromey.com>
17175 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17178 2017-01-10 Tom Tromey <tom@tromey.com>
17180 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17182 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17185 2017-01-10 Tom Tromey <tom@tromey.com>
17187 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17190 2017-01-10 Tom Tromey <tom@tromey.com>
17192 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17193 decref results of PyArg_ParseTupleAndKeywords.
17195 2017-01-10 Tom Tromey <tom@tromey.com>
17197 * python/python.c (python_run_simple_file): Use
17198 unique_xmalloc_ptr, gdbpy_ref.
17200 2017-01-10 Tom Tromey <tom@tromey.com>
17202 * python/py-prettyprint.c (print_stack_unless_memory_error)
17203 (print_string_repr, print_children): Use gdbpy_ref.
17204 (dummy_python_frame): New class.
17205 (dummy_python_frame::dummy_python_frame): Rename from
17206 push_dummy_python_frame.
17207 (py_restore_tstate): Remove.
17209 2017-01-10 Tom Tromey <tom@tromey.com>
17211 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17213 2017-01-10 Tom Tromey <tom@tromey.com>
17215 * python/python.c (ensure_python_env, restore_python_env):
17217 * python/python-internal.h (ensure_python_env): Don't declare.
17218 * varobj.h (varobj_ensure_python_env): Don't declare.
17219 * varobj.c (varobj_ensure_python_env): Remove.
17221 2017-01-10 Tom Tromey <tom@tromey.com>
17223 * varobj.c (varobj_value_get_print_value): Use
17224 gdbpy_enter_varobj.
17226 2017-01-10 Tom Tromey <tom@tromey.com>
17228 * python/py-prettyprint.c (print_string_repr, print_children):
17230 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17232 * varobj.c (varobj_value_get_print_value): Update.
17233 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17235 2017-01-10 Tom Tromey <tom@tromey.com>
17237 * varobj.c (varobj_get_display_hint)
17238 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17239 (varobj_set_visualizer, free_variable): Use
17240 gdbpy_enter_varobj.
17242 2017-01-10 Tom Tromey <tom@tromey.com>
17244 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17245 (do_finish_initialization): New function. Use gdbpy_ref.
17246 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17247 do_finish_initialization.
17249 2017-01-10 Tom Tromey <tom@tromey.com>
17251 * python/py-param.c (get_set_value, get_show_value): Use
17252 gdbpy_enter, gdbpy_ref.
17254 2017-01-10 Tom Tromey <tom@tromey.com>
17256 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17258 2017-01-10 Tom Tromey <tom@tromey.com>
17260 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17262 2017-01-10 Tom Tromey <tom@tromey.com>
17264 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17265 Use gdbpy_enter_varobj.
17267 2017-01-10 Tom Tromey <tom@tromey.com>
17269 * varobj.c (gdbpy_enter_varobj): New constructor.
17270 * python/python-internal.h (gdbpy_enter_varobj): New class.
17271 * python/py-varobj.c (py_varobj_get_iterator): Use
17272 gdbpy_enter_varobj.
17274 2017-01-10 Tom Tromey <tom@tromey.com>
17276 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17277 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17278 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17279 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17280 unique_xmalloc_ptr.
17281 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17283 2017-01-10 Tom Tromey <tom@tromey.com>
17285 * python/py-xmethods.c (invoke_match_method): Use
17288 2017-01-10 Tom Tromey <tom@tromey.com>
17290 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17291 gdbpy_enter, gdbpy_ref.
17293 2017-01-10 Tom Tromey <tom@tromey.com>
17295 * python/python.c (python_interactive_command): Use gdbpy_enter.
17297 2017-01-10 Tom Tromey <tom@tromey.com>
17299 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17302 2017-01-10 Tom Tromey <tom@tromey.com>
17304 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17305 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17307 2017-01-10 Tom Tromey <tom@tromey.com>
17309 * utils.h (htab_deleter): New struct.
17310 (htab_up): New typedef.
17311 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17312 gdbpy_enter, gdbpy_ref, htab_up.
17314 2017-01-10 Tom Tromey <tom@tromey.com>
17316 * python/py-unwind.c (pending_frame_invalidate): Remove.
17317 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17319 2017-01-10 Tom Tromey <tom@tromey.com>
17321 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17322 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17324 2017-01-10 Tom Tromey <tom@tromey.com>
17326 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17328 2017-01-10 Tom Tromey <tom@tromey.com>
17330 * python/python.c (gdbpy_eval_from_control_command)
17331 (gdbpy_source_script, gdbpy_run_events)
17332 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17333 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17336 2017-01-10 Tom Tromey <tom@tromey.com>
17338 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17340 2017-01-10 Tom Tromey <tom@tromey.com>
17342 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17344 2017-01-10 Tom Tromey <tom@tromey.com>
17346 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17347 (python_on_inferior_call_pre, python_on_inferior_call_post)
17348 (python_on_memory_change, python_on_register_change)
17349 (python_inferior_exit, python_new_objfile, add_thread_object)
17350 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17352 2017-01-10 Tom Tromey <tom@tromey.com>
17354 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17355 (bpfinishpy_handle_exit): Use gdbpy_enter.
17357 2017-01-10 Tom Tromey <tom@tromey.com>
17359 * python/py-cmd.c (cmdpy_destroyer)
17360 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17363 2017-01-10 Tom Tromey <tom@tromey.com>
17365 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17367 (gdbpy_breakpoint_has_cond): Likewise.
17369 2017-01-10 Tom Tromey <tom@tromey.com>
17371 * python/python.c (gdbpy_enter): New constructor.
17372 (~gdbpy_enter): New destructor.
17373 (restore_python_env, ensure_python_env): Rewrite.
17374 * python/python-internal.h (gdbpy_enter): New class.
17376 2017-01-10 Tom Tromey <tom@tromey.com>
17378 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17380 2017-01-10 Tom Tromey <tom@tromey.com>
17382 * python/py-value.c (value_has_field, get_field_flag)
17383 (get_field_type, valpy_getitem, convert_value_from_python): Use
17386 2017-01-10 Tom Tromey <tom@tromey.com>
17388 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17391 2017-01-10 Tom Tromey <tom@tromey.com>
17393 * python/py-prettyprint.c (search_pp_list)
17394 (find_pretty_printer_from_objfiles)
17395 (find_pretty_printer_from_progspace)
17396 (find_pretty_printer_from_gdb, find_pretty_printer)
17397 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17400 2017-01-10 Tom Tromey <tom@tromey.com>
17402 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17404 2017-01-10 Tom Tromey <tom@tromey.com>
17406 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17407 (ltpy_get_all_source_lines): Use gdbpy_ref.
17409 2017-01-10 Tom Tromey <tom@tromey.com>
17411 * python/py-framefilter.c (extract_sym, extract_value)
17412 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17415 2017-01-10 Tom Tromey <tom@tromey.com>
17417 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17419 2017-01-10 Tom Tromey <tom@tromey.com>
17421 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17423 2017-01-10 Tom Tromey <tom@tromey.com>
17425 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17428 2017-01-10 Tom Tromey <tom@tromey.com>
17430 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17432 2017-01-10 Tom Tromey <tom@tromey.com>
17434 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17435 (typy_range): Use gdbpy_ref.
17437 2017-01-10 Tom Tromey <tom@tromey.com>
17439 * python/py-threadevent.c (create_thread_event_object): Use
17441 * python/py-stopevent.c (create_stop_event_object): Simplify.
17442 (emit_stop_event): Use gdbpy_ref.
17443 * python/py-signalevent.c (create_signal_event_object): Use
17445 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17446 (emit_new_objfile_event, create_clear_objfiles_event_object)
17447 (emit_clear_objfiles_event): Use gdbpy_ref.
17448 * python/py-infevents.c (create_inferior_call_event_object)
17449 (create_register_changed_event_object)
17450 (create_memory_changed_event_object, emit_inferior_call_event)
17451 (emit_memory_changed_event, emit_register_changed_event): Use
17453 * python/py-exitedevent.c (create_exited_event_object)
17454 (emit_exited_event): Use gdbpy_ref.
17455 * python/py-event.h (evpy_emit_event): Remove
17456 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17457 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17458 * python/py-continueevent.c (emit_continue_event): Use
17460 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17461 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17463 * python/py-bpevent.c (create_breakpoint_event_object): Use
17466 2017-01-10 Tom Tromey <tom@tromey.com>
17468 * python/py-ref.h: New file.
17470 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17472 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17474 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17475 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17476 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17477 * ui-out.c (ui_out::redirect): Likewise.
17478 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17479 * cli/cli-logging.c (set_logging_redirect): Update call site of
17481 (handle_redirections): Likewise.
17482 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17483 * top.c (execute_command_to_string): Likewise.
17484 * utils.c (do_ui_out_redirect_pop): Likewise.
17486 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17488 * stack.c (_initialize_stack): Update "frame" command help message.
17490 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17492 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17494 2017-01-06 Yao Qi <yao.qi@linaro.org>
17496 * x86-linux-nat.h: Include gdb_proc_service.h.
17498 2017-01-06 Yao Qi <yao.qi@linaro.org>
17500 * ser-base.h: Include serial.h.
17502 2017-01-06 Yao Qi <yao.qi@linaro.org>
17504 * ppc-linux-tdep.h: Include ppc-tdep.h.
17506 2017-01-06 Yao Qi <yao.qi@linaro.org>
17508 * nat/amd64-linux-siginfo.h: Include signal.h.
17510 2017-01-06 Yao Qi <yao.qi@linaro.org>
17512 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17514 2017-01-06 Yao Qi <yao.qi@linaro.org>
17516 * mi/mi-parse.h: Include mi-cmds.h.
17518 2017-01-06 Yao Qi <yao.qi@linaro.org>
17520 * inf-loop.c: Don't include "target.h".
17521 * inf-loop.h: Include it here.
17523 2017-01-06 Yao Qi <yao.qi@linaro.org>
17525 * dfp.h: Include "dboulest.h" and "expression.h".
17527 2017-01-06 Yao Qi <yao.qi@linaro.org>
17529 * ax-gdb.h: Include "ax.h".
17531 2017-01-06 Yao Qi <yao.qi@linaro.org>
17533 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17534 with nat/gdb_ptrace.h.
17536 2017-01-05 Yao Qi <yao.qi@linaro.org>
17538 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17540 (mips64_fbsd_sigframe_init): Likewise.
17542 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17544 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17545 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17547 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17549 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17550 * NEWS: Mention new FreeBSD/mips native configuration.
17551 * config/mips/fbsd.mh: New file.
17552 * configure.host: Add mips*-*-freebsd*.
17553 * mips-fbsd-nat.c: New file.
17555 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17557 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17558 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17559 * NEWS: Mention new FreeBSD/mips target.
17560 * configure.tgt: Add mips*-*-freebsd*.
17561 * mips-fbsd-tdep.c: New file.
17562 * mips-fbsd-tdep.h: New file.
17564 2017-01-04 Yao Qi <yao.qi@linaro.org>
17566 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17567 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17569 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17571 Update copyright year range in all GDB files.
17573 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17575 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
17577 For older changes see ChangeLog-2016.
17583 version-control: never