1 2017-12-04 Tom Tromey <tom@tromey.com>
3 * NEWS: Mention Rust trait object inspection.
5 2017-12-04 Pedro Alves <palves@redhat.com>
8 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
9 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
10 (vex2_prefix_p, vex3_prefix_p): New functions.
11 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
13 (fixup_riprel): Set VEX3.!B.
15 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
17 * target.h (mem_region_vector): Remove.
18 (struct target_ops) <to_memory_map>: Change return type to
19 std::vector<mem_region>.
20 * target-debug.h (target_debug_print_mem_region_vector): Rename
22 (target_debug_print_std_vector_mem_region): ... this.
23 * target-delegates.c: Re-generate.
25 2017-12-03 Pedro Alves <palves@redhat.com>
27 * make-target-delegates (munge_type): Also munge '<', '>', and
28 ':'. Avoid double underscores in identifiers, and trailing
31 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
33 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
34 * target-delegates.c: Regenerate.
36 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
38 * common/poison.h (XDELETE): Fix typo.
40 2017-12-01 Andrew Cagney <cagney@redhat.com>
41 Joel Brobecker <brobecker@adacore.com>
42 Sergio Durigan Junior <sergiodj@redhat.com>
44 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
46 * coffread.c (coff_symfile_read): Do not map over sections with
47 'coff_locate_sections' if readnever is on.
48 * dwarf2read.c (dwarf2_has_info): Return 0 if
50 * elfread.c (elf_symfile_read): Do not map over sections with
51 'elf_locate_sections' if readnever is on.
52 * main.c (validate_readnow_readnever): New function.
53 (captured_main_1): Add support for --readnever.
54 (print_gdb_help): Document --readnever.
55 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
57 * symfile.c (readnever_symbol_files): New global.
58 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
59 'READNEVER_SYMBOL_FILES' is set.
60 (validate_readnow_readnever): New function.
61 (symbol_file_command): Handle '-readnever' option.
62 Call 'validate_readnow_readnever'.
63 (add_symbol_file_command): Handle '-readnever' option.
64 Call 'validate_readnow_readnever'.
65 (_initialize_symfile): Document new '-readnever' option for
66 both 'symbol-file' and 'add-symbol-file' commands.
67 * top.h (readnever_symbol_files): New extern global.
68 * xcoffread.c (xcoff_initial_scan): Do not read debug
69 information if readnever is on.
71 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
73 * symfile.c (symbol_file_command): Call
74 'symbol_file_add_main_1' only after processing all command
76 (add_symbol_file_command): Modify logic to make arguments
79 2017-12-01 Joel Brobecker <brobecker@adacore.com>
81 * ada-lang.c (symbol_list_obstack): Delete.
82 (resolve_subexp): Make sure "candidates" gets xfree'ed.
83 (ada_lookup_symbol_list_worker): Remove the limitation that
84 the result is only good until the next call, now making it
85 the responsibility of the caller to free the result when no
86 longer needed. Adjust the function's intro comment accordingly.
87 (ada_lookup_symbol_list): Adjust the function's intro comment.
88 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
89 (ada_lookup_encoded_symbol, get_var_value): Likewise.
90 (_initialize_ada_language): Remove symbol_list_obstack
92 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
93 (write_var_or_type, write_name_assoc): Likewise.
95 2017-12-01 Tom Tromey <tom@tromey.com>
97 * Makefile.in (all_deps_files): New variable.
98 Include .Po files using all_deps_files.
100 2017-12-01 Joel Brobecker <brobecker@adacore.com>
102 * MAINTAINERS: Update list of maintainers, moving those who
103 stepped down or became inactive to the "Past Maintainers"
106 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
108 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
110 (NEW_PROC_API): Remove.
111 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
113 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
114 * configure: Regenerate.
115 * config.in: Regenerate.
116 * gdbserver/configure: Regenerate.
117 * gdbserver/config.in: Regenerate.
119 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
121 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
123 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
125 * proc-api.c: Remove !NEW_PROC_API support.
126 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
127 Remove tests for macros always defined on Solaris.
128 * proc-events.c: Remove !NEW_PROC_API support.
129 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
130 HAVE_SYS_USER_H tests.
131 (init_syscall_table): Remove non-Solaris syscalls.
132 Remove tests for syscalls present on all Solaris versions.
133 Add missing Solaris 10+ syscalls.
134 (signal_table): Remove non-Solaris signals.
135 Remove tests for signals present on all Solaris versions.
136 (fault_table): Remove non-Solaris faults.
137 Remove tests for faults present on all Solaris versions.
138 * proc-flags.c: Remove !NEW_PROC_API support.
139 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
140 Remove non-Solaris flags.
141 * proc-why.c: Remove !NEW_PROC_API support.
142 (pr_why_table): Remove meaningless comments.
143 Remove tests for reasons present on all Solaris versions.
145 (proc_prettyfprint_why): Likewise.
147 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
148 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
149 Remove WA_READ test, IRIX watchpoint support.
150 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
152 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
153 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
155 Remove CTL_PROC_NAME_FMT tests.
156 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
158 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
159 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
160 (proc_modify_flag): Replace GDBRESET by PCUNSET.
161 Remove PR_ASYNC, PR_KLC tests.
162 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
163 (proc_parent_pid): Remove PCWATCH etc. tests.
164 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
166 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
167 Remove SYS_lwpcreate || SYS_lwp_create test.
168 (proc_get_current_thread): Likewise.
169 [PIOCNTHR && PIOCTLIST]: Remove.
170 [PIOCLSTATUS]: Remove.
171 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
172 [PRFS_STOPEXEC]: Remove.
173 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
174 (syscall_is_exit): Likewise.
175 (syscall_is_exec): Likewise.
176 (syscall_is_lwp_create): Likewise.
177 Remove SYS_syssgi support.
178 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
179 [SYS_syssgi]: Remove.
180 Remove non-Solaris cases, conditionals.
181 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
183 (procfs_init_inferior) [SYS_syssgi]: Remove.
184 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
185 (procfs_inferior_created) [SYS_syssgi]: Remove.
186 (procfs_set_watchpoint): Remove !AIX5 test.
187 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
189 (mappingflags) [MA_PHYS]: Remove.
190 (info_mappings_callback): Remove PCAGENT test.
191 Remove PIOCOPENLWP || PCAGENT test.
193 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
195 * sol-thread.c (info_solthreads): Constify args.
198 2017-11-29 John Baldwin <jhb@FreeBSD.org>
200 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
202 2017-11-29 Joel Brobecker <brobecker@adacore.com>
204 * ada-lang.c (to_fixed_range_type): Make sure that the size
205 of the range type being returned is the same as the size
206 of the range type being fixed.
208 2017-11-29 Pedro Alves <palves@redhat.com>
211 * NEWS: Mention setting breakpoints on functions with C++ ABI
213 * completer.h (completion_match_for_lcd) <match,
214 mark_ignored_range>: New methods.
215 <finish>: Consider ignored ranges.
216 <clear>: Clear ignored ranges.
217 <m_ignored_ranges, m_finished_storage>: New fields.
218 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
219 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
220 completion_match_for_lcd pointer to strncmp_iw_with_mode.
221 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
222 * language.c (default_symbol_name_matcher): Pass the
223 completion_match_for_lcd pointer to strncmp_iw_with_mode.
224 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
225 * utils.c (skip_abi_tag): New function.
226 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
228 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
231 2017-11-29 Pedro Alves <palves@redhat.com>
234 * NEWS: Mention setting breakpoints on functions with C++ ABI
236 * completer.h (completion_match_for_lcd) <match,
237 mark_ignored_range>: New methods.
238 <finish>: Consider ignored ranges.
239 <clear>: Clear ignored ranges.
240 <m_ignored_ranges, m_finished_storage>: New fields.
241 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
242 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
243 completion_match_for_lcd pointer to strncmp_iw_with_mode.
244 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
245 * language.c (default_symbol_name_matcher): Pass the
246 completion_match_for_lcd pointer to strncmp_iw_with_mode.
247 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
248 * utils.c (skip_abi_tag): New function.
249 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
251 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
254 2017-11-29 Pedro Alves <palves@redhat.com>
256 * NEWS: Mention that breakpoints on C++ functions are now set on
257 on all namespaces/classes by default, and mention "break
259 * ax-gdb.c (agent_command_1): Adjust to pass a
260 symbol_name_match_type to new_linespec_location.
261 * breakpoint.c (parse_breakpoint_sals): Adjust to
262 get_linespec_location's return type change.
263 (strace_marker_create_sals_from_location): Adjust to pass a
264 symbol_name_match_type to new_linespec_location.
265 (strace_marker_decode_location): Adjust to get_linespec_location's
267 (strace_command): Adjust to pass a symbol_name_match_type to
268 new_linespec_location.
269 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
270 mention "-qualified".
271 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
272 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
274 (complete_address_and_linespec_locations): New parameter
275 'match_type'. Pass it down.
276 (explicit_options): Add "-qualified".
277 (collect_explicit_location_matches): Pass the requested match type
278 to the linespec completers. Handle MATCH_QUALIFIED.
279 (location_completer): Handle "-qualified" combined with linespecs.
280 * cp-support.c (cp_search_name_hash): New.
281 (cp_symbol_name_matches_1): Implement wild matching for C++.
282 (cp_fq_symbol_name_matches): Reimplement.
283 (cp_get_symbol_name_matcher): Return different matchers depending
284 on the lookup name's match type.
285 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
286 * cp-support.h (cp_search_name_hash): New declaration.
288 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
290 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
292 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
293 pass a symbol_name_match_type to new_linespec_location.
294 * linespec.c (linespec_parse_basic): Lookup function symbols using
295 the parser's symbol name match type.
296 (convert_explicit_location_to_linespec): New
297 symbol_name_match_type parameter. Pass it down to
298 find_linespec_symbols.
299 (convert_explicit_location_to_sals): Pass the location's name
300 match type to convert_explicit_location_to_linespec.
301 (parse_linespec): New match_type parameter. Save it in the
303 (linespec_parser_new): Default to symbol_name_match_type::WILD.
304 (linespec_complete_function): New symbol_name_match_type
306 (complete_linespec_component): Pass down the parser's recorded
308 (linespec_complete_label): New symbol_name_match_type parameter.
310 (linespec_complete): New symbol_name_match_type parameter. Save
311 it in the parser and pass it down. Adjust to
312 get_linespec_location's prototype change.
313 (find_function_symbols, find_linespec_symbols): New
314 symbol_name_match_type parameter. Pass it down instead of
315 assuming symbol_name_match_type::WILD.
316 * linespec.h (linespec_complete, linespec_complete_function)
317 (linespec_complete_label): New symbol_name_match_type parameter.
318 * location.c (event_location::linespec_location): Now a struct
320 (EL_LINESPEC): Adjust.
321 (initialize_explicit_location): Default to
322 symbol_name_match_type::WILD.
323 (new_linespec_location): New symbol_name_match_type parameter.
324 Record it in the location.
325 (get_linespec_location): Now returns a struct linespec_location.
326 (new_explicit_location): Also copy func_name_match_type.
327 (explicit_to_string_internal)
328 (string_to_explicit_location): Handle "-qualified".
329 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
330 Copy symbol_name_match_type fields.
331 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
333 (event_location_to_string): Adjust to LINESPEC_LOCATION type
334 change. Handle "-qualfied".
335 (string_to_explicit_location): Handle "-qualified".
336 (string_to_event_location_basic): New symbol_name_match_type
337 parameter. Pass it down.
338 (string_to_event_location): Handle "-qualified".
339 * location.h (struct linespec_location): New.
340 (explicit_location::func_name_match_type): New field.
341 (new_linespec_location): Now returns a const linespec_location *.
342 (string_to_event_location_basic): New symbol_name_match_type
344 (explicit_completion_info::saw_explicit_location_option): New
346 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
347 symbol_name_match_type to new_linespec_location.
348 * python/py-breakpoint.c (bppy_init): Likewise.
349 * python/python.c (gdbpy_decode_line): Likewise.
351 2017-11-29 Pedro Alves <palves@redhat.com>
353 * ada-lang.c (ada_lookup_name_info::matches): Change type of
354 parameter from completion_match to completion_match_result.
356 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
357 * completer.c (completion_tracker::maybe_add_completion): Add
358 match_for_lcd parameter and use it.
359 (completion_tracker::add_completion): Likewise.
360 * completer.h (class completion_match_for_lcd): New class.
361 (completion_match_result::match_for_lcd): New field.
362 (completion_match_result::set_match): New method.
363 (completion_tracker): Add comments.
364 (completion_tracker::add_completion): Add match_for_lcd parameter.
365 (completion_tracker::reset_completion_match_result): Reset
367 (completion_tracker::maybe_add_completion): Add match_for_lcd
369 (completion_tracker::m_lowest_common_denominator_unique): Extend
371 * cp-support.c (cp_symbol_name_matches_1)
372 (cp_fq_symbol_name_matches): Change type of parameter from
373 completion_match to completion_match_result. Adjust.
374 * language.c (default_symbol_name_matcher): Change type of
375 parameter from completion_match to completion_match_result.
377 * language.h (completion_match_for_lcd): Forward declare.
378 (default_symbol_name_matcher): Change type of parameter from
379 completion_match to completion_match_result.
380 * symtab.c (compare_symbol_name): Adjust.
381 (completion_list_add_name): Pass the match_for_lcd to the tracker.
382 * symtab.h (ada_lookup_name_info::matches): Change type of
383 parameter from completion_match to completion_match_result.
384 (symbol_name_matcher_ftype): Likewise, and update comments.
386 2017-11-29 Pedro Alves <palves@redhat.com>
388 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
389 * minsyms.c (msymbol_is_text): Delete.
390 (msymbol_is_function): New function.
391 * minsyms.h (msymbol_is_text): Delete.
392 (msymbol_is_function): New declaration.
393 * symtab.c (find_function_alias_target): Use msymbol_is_function.
395 2017-11-29 Tom Tromey <tom@tromey.com>
397 * Makefile.in (distclean): Handle the case where rmdir fails.
399 2017-11-29 Tom Tromey <tom@tromey.com>
401 * symfile.c (_initialize_symfile): Update usage text for
402 add-symbol-file, symbol-file, load.
404 2017-11-29 Tom Tromey <tom@tromey.com>
406 * symfile.c (add_symbol_file_command): Error if some arguments to
407 -s are missing. Change unrecognized-argument error message.
408 (_initialize_symfile): Fix usage text for add-symbol-file.
410 2017-11-27 Tom Tromey <tom@tromey.com>
412 * Makefile.in (REMOTE_OBS): Remove.
413 (SFILES): Remove remote sources.
414 (COMMON_SFILES): Add remote sources.
415 (ALLDEPFILES): Remove dcache.c.
417 2017-11-27 Tom Tromey <tom@tromey.com>
419 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
421 (SFILES): Use SUBDIR_TARGET_SRCS.
422 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
423 (CONFIG_SRC_SUBDIR): Add target.
424 (%.o): Remove target rule.
426 2017-11-27 Tom Tromey <tom@tromey.com>
428 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
429 registry.o, thread-fsm.o, debug.o.
430 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
431 thread-fsm.c, debug.c.
433 2017-11-27 Tom Tromey <tom@tromey.com>
435 * Makefile.in (COMMON_SFILES): New.
436 (SFILES): Move some entries to COMMON_SFILES.
437 (COMMON_OBS): Use COMMON_SFILES.
439 2017-11-27 Tom Tromey <tom@tromey.com>
441 * Makefile.in (YYFILES): Update comment.
444 2017-11-27 Tom Tromey <tom@tromey.com>
446 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
447 (CONFIG_SRC_SUBDIR): Add python.
448 (%.o): Remove python rule.
449 (python/%.o): New rule.
450 * configure: Rebuild.
451 * configure.ac (CONFIG_OBS): Refer to python/python.o
453 2017-11-27 Tom Tromey <tom@tromey.com>
455 * configure: Rebuild.
456 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
457 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
458 (CONFIG_SRC_SUBDIR): Add guile.
459 (%.o): Remove guile rule.
461 2017-11-27 Tom Tromey <tom@tromey.com>
463 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
464 (%.o): Remove unittests rule.
465 (CONFIG_SRC_SUBDIR): Add unittests.
467 2017-11-27 Tom Tromey <tom@tromey.com>
469 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
470 (CONFIG_SRC_SUBDIR): Add tui.
471 (%.o): Remove tui rule.
473 2017-11-27 Tom Tromey <tom@tromey.com>
475 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
476 (%.o): Remove compile rule.
477 (CONFIG_SRC_SUBDIR): Add compile.
479 2017-11-27 Tom Tromey <tom@tromey.com>
481 * Makefile.in (SUBDIR_MI_OBS): Redefine.
482 (%.o): Remove mi rule.
483 (CONFIG_SRC_SUBDIR): Add mi.
484 (COMMON_OBS): Use mi/mi-common.o
486 2017-11-27 Tom Tromey <tom@tromey.com>
488 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
489 (%.o): Remove cli rule.
490 (CONFIG_SRC_SUBDIR): Add cli.
492 2017-11-27 Tom Tromey <tom@tromey.com>
494 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
495 * configure: Rebuild.
496 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
497 (CONFIG_DEP_SUBDIR): New variable.
498 (%.o): Add order-only dependency.
499 ($(CONFIG_DEP_SUBDIR)): New target.
501 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
504 * findcmd.c (_initialize_mem_search): Update find command help
507 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
509 * python/python.c (do_start_initialization): Change progname
510 type to gdb::unique_xmalloc_ptr. Release the pointer when using
513 2017-11-26 Tom Tromey <tom@tromey.com>
515 * common/format.h: Add include guards.
517 2017-11-26 Tom Tromey <tom@tromey.com>
519 * nat/linux-personality.h (class
520 maybe_disable_address_space_randomization): New class.
521 (maybe_disable_address_space_randomization): Don't declare
523 * nat/linux-personality.c (restore_personality)
524 (make_disable_asr_cleanup): Remove.
525 (maybe_disable_address_space_randomization): Now a constructor.
526 (~maybe_disable_address_space_randomization): New destructor.
527 * linux-nat.c (linux_nat_create_inferior): Update.
529 2017-11-26 Tom Tromey <tom@tromey.com>
531 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
533 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
535 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
536 "cooked" register. Access only first four bytes of branch target
539 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
542 * stap-probe.c (relocate_address): New function.
543 (stap_probe::get_relocated_address): Use 'relocate_address'.
544 (stap_probe::set_semaphore): Use 'relocate_address' and pass
546 (stap_probe::clear_semaphore): Likewise.
548 2017-11-25 Pedro Alves <palves@redhat.com>
550 * dictionary.c: Include "safe-ctype.h".
551 * minsyms.c: Include "safe-ctype.h".
552 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
554 2017-11-25 Pedro Alves <palves@redhat.com>
556 * completer.c (complete_line_internal_1): Skip spaces until the
557 start of the command.
559 2017-11-24 Pedro Alves <palves@redhat.com>
561 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
562 cp_fq_symbol_name_matches. Pass language_cplus to
564 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
565 (selftests::test_cp_symbol_name_cmp): New.
566 (_initialize_cp_support): Register "cp_symbol_name_matches"
568 * language.c (default_symbol_name_matcher): Pass language_minimal
569 to strncmp_iw_with_mode.
570 * utils.c: Include "cp-support.h" and <algorithm>.
571 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
572 (cp_is_operator): New functions.
573 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
574 skip whitespace in the symbol name when the lookup name doesn't
575 have spaces, and vice versa.
576 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
577 * utils.h (strncmp_iw_with_mode): Add language parameter.
579 2017-11-24 Joel Brobecker <brobecker@adacore.com>
581 * ada-lang.c (ada_exception_message_1, ada_exception_message):
583 (print_it_exception): If available, display the exception
585 * NEWS: Document new feature.
587 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
589 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
591 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
593 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
594 (dtrace_probe::is_enabled, dtrace_probe::enable)
595 (dtrace_probe::disable): Remove keyword 'struct' at for-range
597 * probe.c (gen_ui_out_table_header_info)
598 (print_ui_out_not_applicables): Remove keyword 'struct' at
601 2017-11-24 Alan Hayward <alan.hayward@arm.com>
603 * configure.tgt: Add arch/aarch64.o
605 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
607 * common/common-utils.h: Include poison.h.
608 (xfree): Remove declaration, add definition with static_assert.
609 * common/common-utils.c (xfree): Remove.
610 * common/poison.h (IsMallocatable): Define.
611 (IsFreeable): Define.
612 (free): Delete for non-freeable types.
614 (XNEW): Undef and redefine.
616 (XCNEW): Undef and redefine.
618 (XDELETE): Undef and redefine.
620 (XNEWVEC): Undef and redefine.
622 (XCNEWVEC): Undef and redefine.
624 (XRESIZEVEC): Undef and redefine.
626 (XDELETEVEC): Undef and redefine.
628 (XNEWVAR): Undef and redefine.
630 (XCNEWVAR): Undef and redefine.
632 (XRESIZEVAR): Undef and redefine.
634 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
636 * gdbthread.h (private_thread_info): Define structure type, add
637 virtual pure destructor.
638 (thread_info) <priv>: Change type to unique_ptr.
639 <private_dtor>: Remove.
640 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
641 (private_thread_info::~private_thread_info): Provide default
643 (thread_info::~thread_info): Don't call private_dtor nor
645 * aix-thread.c (private_thread_info): Rename to ...
646 (aix_thread_info): ... this.
647 (get_aix_thread_info): New.
648 (sync_threadlists): Adjust.
650 (aix_thread_resume): Adjust.
651 (aix_thread_fetch_registers): Adjust.
652 (aix_thread_store_registers): Adjust.
653 (aix_thread_extra_thread_info): Adjust.
654 * darwin-nat.h (private_thread_info): Rename to ...
655 (darwin_thread_info): ... this.
656 (get_darwin_thread_info): New.
657 * darwin-nat.c (darwin_init_thread_list): Adjust.
658 (darwin_check_new_threads): Adjust.
659 (thread_info_from_private_thread_info): Adjust.
660 * linux-thread-db.c (private_thread_info): Rename to ...
661 (thread_db_thread_info): ... this, initialize fields.
662 (get_thread_db_thread_info): New.
663 <dying>: Change type to bool.
664 (update_thread_state): Adjust to type rename.
665 (record_thread): Adjust to type rename an use of unique_ptr.
666 (thread_db_pid_to_str): Likewise.
667 (thread_db_extra_thread_info): Likewise.
668 (thread_db_thread_handle_to_thread_info): Likewise.
669 (thread_db_get_thread_local_address): Likewise.
670 * nto-tdep.h (private_thread_info): Rename to ...
671 (nto_thread_info): ... this, initialize fields.
672 (get_nto_thread_info): New.
673 <name>: Change type to std::string.
674 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
676 * nto-procfs.c (update_thread_private_data_name): Adjust to
677 std::string change, allocate nto_private_thread_info with new.
678 (update_thread_private_data): Adjust to unique_ptr.
679 * remote.c (private_thread_info): Rename to ...
680 (remote_thread_info): ... this, initialize data members with
682 <extra, name>: Change type to std::string.
683 <thread_handle>: Change type to non-pointer.
684 (free_private_thread_info): Remove.
685 (get_private_info_thread): Rename to...
686 (get_remote_thread_info): ... this, change return type, adjust to
687 use of unique_ptr, use remote_thread_info constructor.
688 (remote_add_thread): Adjust.
689 (get_private_info_ptid): Rename to...
690 (get_remote_thread_info): ...this, change return type.
691 (remote_thread_name): Use get_remote_thread_info, adjust to
692 change to std::string.
693 (struct thread_item) <~thread_item>: Remove.
694 <thread_handle>: Make non pointer.
695 (start_thread): Adjust to thread_item::thread_handle type
697 (remote_update_thread_list): Adjust to type name change, move
698 strings from temporary to long-lived object instead of
700 (remote_threads_extra_info): Use get_remote_thread_info.
701 (process_initial_stop_replies): Likewise.
702 (resume_clear_thread_private_info): Likewise.
703 (remote_resume): Adjust to type name change.
704 (remote_commit_resume): Use get_remote_thread_info.
705 (process_stop_reply): Adjust to type name change.
706 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
707 (remote_stopped_by_hw_breakpoint): Likewise.
708 (remote_stopped_by_watchpoint): Likewise.
709 (remote_stopped_data_address): Likewise.
710 (remote_core_of_thread): Likewise.
711 (remote_thread_handle_to_thread_info): Use
712 get_private_info_thread, adjust to thread_handle field type
715 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
717 * remote.c (struct thread_item): Add constructor, disable copy
718 construction and copy assignment, define default move
719 construction and move assignment.
720 <extra, name>: Change type to std::string.
722 <thread_handle>: Make non-pointer.
723 (thread_item_t): Remove typedef.
724 (DEF_VEC_O(thread_item_t)): Remove.
725 (threads_listing_context) <contains_thread>: New method.
726 <remove_thread>: New method.
727 <items>: Change type to std::vector.
728 (clear_threads_listing_context): Remove.
729 (threads_listing_context_remove): Remove.
730 (remote_newthread_step): Use thread_item constructor, adjust to
731 change to std::vector.
732 (start_thread): Use thread_item constructor, adjust to change to
734 (end_thread): Adjust to change to std::vector and std::string.
735 (remote_get_threads_with_qthreadinfo): Use thread_item
736 constructor, adjust to std::vector.
737 (remote_update_thread_list): Adjust to change to std::vector and
738 std::string, use threads_listing_context methods.
739 (remove_child_of_pending_fork): Adjust.
740 (remove_new_fork_children): Adjust.
741 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
742 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
743 * unittests/rsp-low-selftests.c: New file.
744 * common/rsp-low.h: Include common/byte-vector.h.
745 (hex2bin): New overload.
746 * common/rsp-low.c (hex2bin): New overload.
748 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
750 * inferior.h (private_inferior): Define structure type, add
751 virtual pure destructor.
752 (inferior) <priv>: Change type to unique_ptr.
753 * inferior.c (private_inferior::~private_inferior): Provide
754 default implementation.
755 (inferior::~inferior): Don't free priv field.
756 (exit_inferior_1): Likewise.
757 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
758 (darwin_exception_info): Remove typedef.
759 (DEF_VEC_O (darwin_thread_t)); Remove.
760 (private_inferior): Rename to ...
761 (darwin_private_inferior): ... this, extend private_inferior.
762 (get_darwin_inferior): New.
763 <threads>: Change type to std::vector of darwin_thread_t pointers.
764 * darwin-nat.c (darwin_check_new_threads): Adjust.
765 (find_inferior_task_it): Adjust.
766 (darwin_find_thread); Adjust.
767 (darwin_suspend_inferior): Adjust.
768 (darwin_resume_inferior): Adjust.
769 (darwin_find_new_inferior): Adjust.
770 (darwin_decode_notify_message): Adjust.
771 (darwin_send_reply): Adjust.
772 (darwin_resume_inferior_threads): Adjust.
773 (darwin_suspend_inferior_threads): Adjust.
774 (darwin_decode_message): Adjust.
775 (darwin_wait): Adjust.
776 (darwin_interrupt): Adjust.
777 (darwin_deallocate_threads): Adjust.
778 (darwin_mourn_inferior): Adjust, don't free private data.
779 (darwin_reply_to_all_pending_messages): Adjust.
780 (darwin_stop_inferior): Adjust.
781 (darwin_setup_exceptions): Adjust.
782 (darwin_kill_inferior): Adjust.
783 (darwin_setup_request_notification): Adjust.
784 (darwin_attach_pid): Adjust.
785 (darwin_init_thread_list): Adjust.
786 (darwin_setup_fake_stop_event): Adjust.
787 (darwin_attach): Adjust.
788 (darwin_detach): Adjust.
789 (darwin_xfer_partial): Adjust.
790 (set_enable_mach_exceptions): Adjust.
791 (darwin_pid_to_exec_file): Adjust.
792 (darwin_get_ada_task_ptid): Adjust.
793 * darwin-nat-info.c (get_task_from_args): Adjust.
794 (info_mach_ports_command): Adjust.
795 (info_mach_region_command): Adjust.
796 (info_mach_exceptions_command): Adjust.
797 * remote.c (private_inferior): Rename to ...
798 (remote_private_inferior): ... this, initialize fields.
799 (get_remote_inferior); New.
800 (remote_commit_resume): Use get_remote_inferior.
801 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
803 2017-11-24 Pedro Alves <palves@redhat.com>
805 * NEWS: Mention linespecs and explicit locations, and completion
808 2017-11-24 Yao Qi <yao.qi@linaro.org>
810 * regcache.c (regcache::dump): Remove footnote_register_size.
812 2017-11-24 Yao Qi <yao.qi@linaro.org>
814 * regcache.c (cooked_read_test): Add more test for readonly
817 2017-11-24 Yao Qi <yao.qi@linaro.org>
819 * gdbarch-selftests.c (test_target_has_registers): Move it to
821 (test_target_has_stack): Likewise.
822 (test_target_has_memory): Likewise.
823 (test_target_prepare_to_store): Likewise.
824 (test_target_store_registers): Likewise.
825 (test_target_ops): Likewise.
826 * regcache.c: Include selftest-arch.h and gdbthread.h.
827 (target_ops_no_register): New class.
828 (test_target_fetch_registers): New.
829 (test_target_store_registers): New.
830 (test_target_xfer_partial): New.
831 (readwrite_regcache): New.
832 (cooked_read_test): New.
833 (_initialize_regcache): Register the test.
834 * target.c: (test_target_has_registers): Moved from
836 (test_target_has_stack): Likewise.
837 (test_target_has_memory): Likewise.
838 (test_target_prepare_to_store): Likewise.
839 (test_target_store_registers): Likewise.
840 * target.h (test_target_ops): New class.
842 2017-11-24 Alan Hayward <alan.hayward@arm.com>
844 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
847 2017-11-24 Alan Hayward <alan.hayward@arm.com>
849 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
850 * arch/aarch64.c (aarch64_create_target_description): Create
851 new target description.
852 * features/Makefile: Add new files.
853 * features/aarch64.c: Remove file.
854 * features/aarch64-core.c: New autogenerated file.
855 * features/aarch64-fpu.c: New autogenerated file.
856 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
858 2017-11-24 Alan Hayward <alan.hayward@arm.com>
860 * Makefile.in: Add new files.
861 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
862 aarch64_read_description.
863 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
864 Call aarch64_read_description.
865 * aarch64-tdep.c (aarch64_read_description): New function.
866 (aarch64_gdbarch_init): Call aarch64_read_description.
867 * aarch64-tdep.h (aarch64_read_description): New function.
868 * arch/aarch64.c: New file.
869 * configure.tgt: Add new files.
871 2017-11-24 Yao Qi <yao.qi@linaro.org>
873 * mi/mi-main.c (register_changed_p): Update.
874 * value.c (value_contents_bits_eq): Change return type.
875 (value_contents_eq): Likewise.
876 * value.h: Update comments.
878 2017-11-24 Yao Qi <yao.qi@linaro.org>
880 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
881 local 'changed'. Remove error.
882 (register_changed_p): Change return type to bool.
884 2017-11-24 Yao Qi <yao.qi@linaro.org>
886 * arch/tic6x.c: New file.
887 * arch/tic6x.h: New file.
888 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
889 tic6x-core.xml and tic6x-gp.xml.
890 * features/tic6x-c6xp.c: Generated.
891 * features/tic6x-core.c: Generated.
892 * features/tic6x-gp.c: Generated.
893 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
896 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
898 * mi/mi-main.c (list_available_thread_groups): Change map value
901 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
903 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
905 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
907 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
909 <children_requested>: ... this.
910 (varobj_get_num_children, varobj_update): Adjust.
912 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
914 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
915 (ada_value_has_mutated): Likewise.
916 * c-varobj.c (varobj_is_anonymous_child): Likewise.
917 (c_is_path_expr_parent): Likewise.
918 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
919 (mi_cmd_var_set_frozen): Likewise.
920 (mi_cmd_var_update_iter): Likewise.
921 (mi_cmd_var_update): Likewise.
922 * varobj.c (pretty_printing): Likewise.
923 (varobj_enable_pretty_printing): Likewise.
924 (struct varobj_root) <floating, is_valid>: Likewise.
925 (struct varobj_dynamic) <children_requested>: Likewise.
926 (delete_variable): Likewise.
927 (delete_variable_1): Likewise.
928 (install_variable): Likewise.
929 (update_type_if_necessary): Likewise.
930 (install_new_value): Likewise.
931 (value_of_root): Likewise.
932 (is_root_p): Likewise.
933 (varobj_create): Likewise.
934 (varobj_delete): Likewise.
935 (varobj_has_more): Likewise.
936 (varobj_set_frozen): Likewise.
937 (varobj_get_frozen): Likewise.
938 (install_dynamic_child): Likewise.
939 (dynamic_varobj_has_child_method): Likewise.
940 (update_dynamic_varobj_children): Likewise.
941 (varobj_get_num_children): Likewise.
942 (varobj_list_children): Likewise.
943 (is_path_expr_parent): Likewise.
944 (varobj_default_is_path_expr_parent): Likewise.
945 (varobj_is_dynamic_p): Likewise.
946 (varobj_set_value): Likewise.
947 (varobj_value_has_mutated): Likewise.
948 (varobj_update): Likewise.
949 (check_scope): Likewise.
950 (value_of_root_1): Likewise.
951 (varobj_value_get_print_value): Likewise.
952 (varobj_editable_p): Likewise.
953 (varobj_value_is_changeable_p): Likewise.
954 (varobj_floating_p): Likewise.
955 (varobj_default_value_is_changeable_p): Likewise.
956 (varobj_invalidate_iter): Likewise.
957 * varobj.h (struct varobj_update_result) <type_changed,
958 children_changed, changed, value_installed>: Likewise.
959 (struct varobj) <updated, frozen, not_fetched>: Likewise.
960 (struct lang_varobj_ops) <value_is_changeable_p,
961 value_has_mutated, is_path_expr_parent>: Likewise.
962 (varobj_delete): Likewise.
963 (varobj_set_frozen): Likewise.
964 (varobj_get_frozen): Likewise.
965 (varobj_set_value): Likewise.
966 (varobj_update): Likewise.
967 (varobj_editable_p): Likewise.
968 (varobj_floating_p): Likewise.
969 (varobj_has_more): Likewise.
970 (varobj_is_dynamic_p): Likewise.
971 (varobj_default_value_is_changeable_p): Likewise.
972 (varobj_value_is_changeable_p): Likewise.
973 (varobj_is_anonymous_child): Likewise.
974 (varobj_default_is_path_expr_parent): Likewise.
976 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
978 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
979 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
980 <type_str>: Convert to 'std::string'.
981 <expr>: Convert to 'expression_up'.
982 (dtrace_probe_arg_s): Delete type and VEC.
983 (dtrace_probe_enabler_s): Likewise.
984 (struct dtrace_probe): Replace by...
985 (class dtrace_static_probe_ops): ...this and...
986 (class dtrace_probe): ...this.
987 (dtrace_probe_is_linespec): Rename to...
988 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
990 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
991 Adjust code. Create new instance of 'dtrace_probe'.
992 (dtrace_build_arg_exprs): Rename to...
993 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
995 (dtrace_get_probes): Rename to...
996 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
998 (dtrace_get_arg): Rename to...
999 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1001 (dtrace_probe_is_enabled): Rename to...
1002 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1004 (dtrace_get_probe_address): Rename to...
1005 (dtrace_probe::get_relocated_address): ...this. Adjust code
1007 (dtrace_get_probe_argument_count): Rename to...
1008 (dtrace_probe::get_argument_count): ...this. Adjust code to
1010 (dtrace_can_evaluate_probe_arguments): Rename to...
1011 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1013 (dtrace_evaluate_probe_argument): Rename to...
1014 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1016 (dtrace_compile_to_ax): Rename to...
1017 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1019 (dtrace_probe_destroy): Delete.
1020 (dtrace_type_name): Rename to...
1021 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1023 (dtrace_probe::get_static_ops): New method.
1024 (dtrace_gen_info_probes_table_header): Rename to...
1025 (dtrace_static_probe_ops::gen_info_probes_table_header):
1026 ...this. Adjust code to reflect change.
1027 (dtrace_gen_info_probes_table_values): Rename to...
1028 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1029 code to reflect change.
1030 (dtrace_enable_probe): Rename to...
1031 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1033 (dtrace_disable_probe): Rename to...
1034 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1036 (struct probe_ops dtrace_probe_ops): Delete.
1037 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1038 instead of 'info_probes_for_ops'.
1039 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1042 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1043 Simon Marchi <simark@simark.ca>
1045 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1047 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1048 <aexpr>: Change type to 'expression_up'.
1049 (stap_probe_arg_s): Delete type and VEC.
1050 (struct stap_probe): Delete. Replace by...
1051 (class stap_static_probe_ops): ...this and...
1052 (class stap_probe): ...this. Rename variables to add 'm_'
1053 prefix. Do not use 'union' for arguments anymore.
1054 (stap_get_expected_argument_type): Receive probe name instead
1055 of 'struct stap_probe'. Adjust code.
1056 (stap_parse_probe_arguments): Rename to...
1057 (stap_probe::parse_arguments): ...this. Adjust code to
1059 (stap_get_probe_address): Rename to...
1060 (stap_probe::get_relocated_address): ...this. Adjust code
1062 (stap_get_probe_argument_count): Rename to...
1063 (stap_probe::get_argument_count): ...this. Adjust code
1065 (stap_get_arg): Rename to...
1066 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1068 (can_evaluate_probe_arguments): Rename to...
1069 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1071 (stap_evaluate_probe_argument): Rename to...
1072 (stap_probe::evaluate_argument): ...this. Adjust code
1074 (stap_compile_to_ax): Rename to...
1075 (stap_probe::compile_to_ax): ...this. Adjust code to
1077 (stap_probe_destroy): Delete.
1078 (stap_modify_semaphore): Adjust comment.
1079 (stap_set_semaphore): Rename to...
1080 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1082 (stap_clear_semaphore): Rename to...
1083 (stap_probe::clear_semaphore): ...this. Adjust code to
1085 (stap_probe::get_static_ops): New method.
1086 (handle_stap_probe): Adjust code to create instance of
1088 (stap_get_probes): Rename to...
1089 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1091 (stap_probe_is_linespec): Rename to...
1092 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1094 (stap_type_name): Rename to...
1095 (stap_static_probe_ops::type_name): ...this. Adjust code to
1097 (stap_gen_info_probes_table_header): Rename to...
1098 (stap_static_probe_ops::gen_info_probes_table_header):
1099 ...this. Adjust code to reflect change.
1100 (stap_gen_info_probes_table_values): Rename to...
1101 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1102 code to reflect change.
1103 (struct probe_ops stap_probe_ops): Delete.
1104 (info_probes_stap_command): Use 'info_probes_for_spops'
1105 instead of 'info_probes_for_ops'.
1106 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1109 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1111 * break-catch-throw.c (fetch_probe_arguments): Use
1112 'probe.prob' instead of 'probe.probe'.
1113 * breakpoint.c (create_longjmp_master_breakpoint): Call
1114 'can_evaluate_arguments' and 'get_relocated_address' methods
1116 (create_exception_master_breakpoint): Likewise.
1117 (add_location_to_breakpoint): Use 'sal->prob' instead of
1119 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1121 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1122 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1124 (probe_key_free): Call 'delete' on probe.
1125 (check_exception_resume): Use 'probe.prob' instead of
1127 * location.c (string_to_event_location_basic): Call
1128 'probe_linespec_to_static_ops'.
1129 * probe.c (class any_static_probe_ops): New class.
1130 (any_static_probe_ops any_static_probe_ops): New variable.
1131 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1132 argument. Adjust code to reflect change.
1133 (parse_probes): Use 'static_probe_ops' instead of
1134 'probe_ops'. Adjust code to reflect change.
1135 (find_probes_in_objfile): Call methods to get name and
1136 provider from probe.
1137 (find_probe_by_pc): Use 'result.prob' instead of
1138 'result.probe'. Call 'get_relocated_address' method from
1140 (collect_probes): Adjust comment and argument list to receive
1141 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1142 reflect change. Call necessary methods from probe.
1143 (compare_probes): Call methods to get name and provider from
1145 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1146 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1147 adjust code accordingly.
1148 (print_ui_out_not_applicables): Likewise.
1149 (info_probes_for_ops): Rename to...
1150 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1151 as argument instead of 'probe_ops'. Adjust code. Call
1152 necessary methods from probe.
1153 (info_probes_command): Use 'info_probes_for_spops'.
1154 (enable_probes_command): Pass correct argument to
1155 'collect_probes'. Call methods from probe.
1156 (disable_probes_command): Likewise.
1157 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1158 (get_probe_argument_count): Move to
1159 'any_static_probe_ops::get_argument_count'.
1160 (can_evaluate_probe_arguments): Move to
1161 'any_static_probe_ops::can_evaluate_arguments'.
1162 (evaluate_probe_argument): Move to
1163 'any_static_probe_ops::evaluate_argument'.
1164 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1166 (probe_linespec_to_ops): Rename to...
1167 (probe_linespec_to_static_ops): ...this. Adjust code.
1168 (probe_any_is_linespec): Rename to...
1169 (any_static_probe_ops::is_linespec): ...this.
1170 (probe_any_get_probes): Rename to...
1171 (any_static_probe_ops::get_probes): ...this.
1172 (any_static_probe_ops::type_name): New method.
1173 (any_static_probe_ops::gen_info_probes_table_header): New
1175 (compute_probe_arg): Use 'pc_probe.prob' instead of
1176 'pc_probe.probe'. Call methods from probe.
1177 (compile_probe_arg): Likewise.
1178 (std::vector<const probe_ops *> all_probe_ops): Delete.
1179 (std::vector<const static_probe_ops *> all_static_probe_ops):
1181 (_initialize_probe): Use 'all_static_probe_ops' instead of
1183 * probe.h (struct info_probe_column) <field_name>: Delete
1185 (info_probe_column_s): Delete type and VEC.
1186 (struct probe_ops): Delete. Replace with...
1187 (class static_probe_ops): ...this and...
1188 (clas probe): ...this.
1189 (struct bound_probe) <bound_probe>: Delete extraneous
1190 newline. Adjust constructor to receive 'probe' instead of
1192 <probe>: Rename to...
1193 <prob>: ...this. Delete extraneous newline.
1194 <objfile>: Delete extraneous newline.
1195 (register_probe_ops): Delete unused prototype.
1196 (info_probes_for_ops): Rename to...
1197 (info_probes_for_spops): ...this. Adjust comment.
1198 (get_probe_address): Move to 'probe::get_address'.
1199 (get_probe_argument_count): Move to
1200 'probe::get_argument_count'.
1201 (can_evaluate_probe_arguments): Move to
1202 'probe::can_evaluate_arguments'.
1203 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1204 * solib-svr4.c (struct svr4_info): Adjust comment.
1205 (struct probe_and_action) <probe>: Rename to...
1207 (register_solib_event_probe): Receive 'probe' instead of
1208 'struct probe' as argument. Use 'prob' instead of 'probe'
1210 (solib_event_probe_action): Call 'get_argument_count' method
1211 from probe. Adjust comment.
1212 (svr4_handle_solib_event): Adjust comment. Call
1213 'evaluate_argument' method from probe.
1214 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1216 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1217 'struct probe'. Call 'can_evaluate_arguments' from probe.
1218 * symfile.h: Forward declare 'class probe' instead of 'struct
1220 * symtab.h: Likewise.
1221 (struct symtab_and_line) <probe>: Rename to...
1223 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1225 (stop_tracing): Likewise.
1227 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1229 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1230 trailing newline at end of string in call to warning.
1232 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1234 * osdata.h: Include vector isntead of vec.h.
1235 (osdata_column_s): Remove typedef.
1236 (struct osdata_column): Add constructor.
1237 <name, value>: Change type to std::string.
1238 (DEF_VEC_O (osdata_column_s)): Remove.
1239 (osdata_item_s): Remove typedef.
1240 (struct osdata_item) <columns>: Change type to std::vector.
1241 (DEF_VEC_O (osdata_item_s)): Remove.
1242 (struct osdata): Add constructor.
1243 <type>: Change type to std::string.
1244 <items>: Change type to std::vector.
1245 (osdata_p): Remove typedef.
1246 (DEF_VEC_P (osdata_p)): Remove.
1247 (osdata_parse): Return a unique_ptr.
1248 (osdata_free): Remove.
1249 (make_cleanup_osdata_free): Remove.
1250 (get_osdata): Return a unique_ptr.
1251 (get_osdata_column): Return pointer to std::string, take a
1252 reference to osdata_item as parameter.
1253 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1255 <property_name>: Change type to std::string.
1256 (osdata_start_osdata): Allocate osdata with new and adjust.
1257 (osdata_start_item): Adjust.
1258 (osdata_start_column): Adjust.
1259 (osdata_end_column): Adjust.
1260 (clear_parsing_data): Remove.
1261 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1262 (osdata_item_clear): Remove.
1263 (get_osdata): return a unique_ptr and adjust.
1264 (get_osdata_column): Return a pointer to std::string and adjust.
1265 (info_osdata): Adjust.
1266 * mi/mi-main.c: Include <map>.
1267 (free_vector_of_osdata_items): Remove.
1268 (list_available_thread_groups): Adjust, use std::map instead of
1271 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1273 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1276 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1278 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1280 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1282 * varobj.h (struct varobj_update_result): Add constructor, add
1283 move constructor, disable copy and assign, initialize fields.
1284 <newobj>: Change type to std::vector.
1285 (varobj_update): Return std::vector.
1286 * varobj.c (install_dynamic_child): Change VEC parameters to
1287 std::vector and adjust.
1288 (update_dynamic_varobj_children): Likewise.
1289 (varobj_update): Return std::vector and adjust.
1290 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1292 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1294 * varobj.h (struct varobj) <parent>: Remove const.
1295 <children>: Change type to std::vector.
1296 (varobj_list_children): Return std::vector const reference.
1297 (varobj_restrict_range): Change parameter type to std::vector
1299 * varobj.c (varobj_has_more): Adjust.
1300 (varobj_restrict_range): Change parameter type to std::vector
1301 const reference and adjust.
1302 (install_dynamic_child): Adjust.
1303 (update_dynamic_varobj_children): Adjust.
1304 (varobj_list_children): Return std::vector const reference and
1306 (varobj_add_child): Adjust.
1307 (update_type_if_necessary): Adjust.
1308 (varobj_update): Adjust.
1309 (delete_variable_1): Adjust.
1310 * ada-varobj.c (ada_value_has_mutated): Adjust.
1311 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1313 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1315 * varobj.h (struct varobj): Add constructor and destructor,
1317 * varobj.c (struct varobj_root): Initialize fields.
1318 (struct varobj_dynamic): Initialize fields.
1319 (varobj_create): Use unique_ptr instead of cleanup. Create
1320 varobj with new instead of new_root_variable.
1321 (delete_variable_1): Free variable with delete instead of
1323 (create_child_with_value): Create variable with new instead of
1325 (varobj::varobj): New.
1326 (varobj::~varobj): New (body mostly coming from free_variable).
1327 (new_variable): Remove.
1328 (free_variable): Remove.
1329 (do_free_variable_cleanup): Remove.
1330 (make_cleanup_free_variable): Remove.
1332 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1334 * core-regset.c: Remove file.
1335 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1337 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1339 * NEWS: Document use of GNU MPFR.
1342 * Makefile.in (LIBMPFR): Add define.
1343 (CLIBS): Add $(LIBMPFR).
1344 * configure.ac: Add --with-mpfr configure option.
1345 * configure: Regenerate.
1346 * config.in: Regenerate.
1348 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1349 (class mpfr_float_ops): New type.
1350 (mpfr_float_ops::from_target): Two new overloaded functions.
1351 (mpfr_float_ops::to_target): Likewise.
1352 (mpfr_float_ops::to_string): New function.
1353 (mpfr_float_ops::from_string): Likewise.
1354 (mpfr_float_ops::to_longest): Likewise.
1355 (mpfr_float_ops::from_longest): Likewise.
1356 (mpfr_float_ops::from_ulongest): Likewise.
1357 (mpfr_float_ops::to_host_double): Likewise.
1358 (mpfr_float_ops::from_host_double): Likewise.
1359 (mpfr_float_ops::convert): Likewise.
1360 (mpfr_float_ops::binop): Likewise.
1361 (mpfr_float_ops::compare): Likewise.
1362 (get_target_float_ops): Use mpfr_float_ops if available.
1364 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1366 * target-float.c: Do not include <math.h>.
1367 Include <cmath> and <limits>.
1368 (DOUBLEST): Do not define.
1369 (class target_float_ops): New type.
1370 (class host_float_ops): New templated type.
1371 (class decimal_float_ops): New type.
1373 (floatformat_to_doublest): Rename to ...
1374 (host_float_ops<T>::from_target): ... this. Use template type T
1375 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1376 (host_float_ops<T>::from_target): New overload using a type argument.
1377 (floatformat_from_doublest): Rename to ...
1378 (host_float_ops<T>::to_target): ... this. Use template type T
1379 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1380 (host_float_ops<T>::to_target): New overload using a type argument.
1381 (floatformat_printf_format): New function.
1382 (struct printf_length_modifier): New templated type.
1383 (floatformat_to_string): Rename to ...
1384 (host_float_ops<T>::to_string): ... this. Use type instead of
1385 floatformat argument. Use floatformat_printf_format and
1386 printf_length_modifier. Remove special handling of invalid numbers,
1387 infinities and NaN (moved to target_float_to_string).
1388 (struct scanf_length_modifier): New templated type.
1389 (floatformat_from_string): Rename to ...
1390 (host_float_ops<T>::from_string): ... this. Use type instead of
1391 floatformat argument. Use scanf_length_modifier.
1392 (floatformat_to_longest): Rename to ...
1393 (host_float_ops<T>::to_longest): ... this. Use type instead of
1394 floatformat argument. Handle out-of-range values deterministically.
1395 (floatformat_from_longest): Rename to ...
1396 (host_float_ops<T>::from_longest): ... this. Use type instead of
1397 floatformat argument.
1398 (floatformat_from_ulongest): Rename to ...
1399 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1400 floatformat argument.
1401 (floatformat_to_host_double): Rename to ...
1402 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1403 floatformat argument.
1404 (floatformat_from_host_double): Rename to ...
1405 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1406 floatformat argument.
1407 (floatformat_convert): Rename to ...
1408 (host_float_ops<T>::convert): ... this. Use type instead of
1409 floatformat arguments. Remove handling of no-op conversions.
1410 (floatformat_binop): Rename to ...
1411 (host_float_ops<T>::binop): ... this. Use type instead of
1412 floatformat arguments.
1413 (floatformat_compare): Rename to ...
1414 (host_float_ops<T>::compare): ... this. Use type instead of
1415 floatformat arguments.
1417 (match_endianness): Use type instead of length/byte_order arguments.
1418 (set_decnumber_context): Likewise.
1419 (decimal_from_number): Likewise. Update calls.
1420 (decimal_to_number): Likewise.
1421 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1422 (decimal_float_ops::to_host_double): New dummy function.
1423 (decimal_float_ops::from_host_double): Likewise.
1424 (decimal_to_string): Rename to ...
1425 (decimal_float_ops::to_string): ... this. Use type instead of
1426 length/byte_order arguments. Update calls.
1427 (decimal_from_string): Rename to ...
1428 (decimal_float_ops::from_string): ... this. Use type instead of
1429 length/byte_order arguments. Update calls.
1430 (decimal_from_longest): Rename to ...
1431 (decimal_float_ops::from_longest): ... this. Use type instead of
1432 length/byte_order arguments. Update calls.
1433 (decimal_from_ulongest): Rename to ...
1434 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1435 length/byte_order arguments. Update calls.
1436 (decimal_to_longest): Rename to ...
1437 (decimal_float_ops::to_longest): ... this. Use type instead of
1438 length/byte_order arguments. Update calls.
1439 (decimal_binop): Rename to ...
1440 (decimal_float_ops::binop): ... this. Use type instead of
1441 length/byte_order arguments. Update calls.
1442 (decimal_compare): Rename to ...
1443 (decimal_float_ops::compare): ... this. Use type instead of
1444 length/byte_order arguments. Update calls.
1445 (decimal_convert): Rename to ...
1446 (decimal_float_ops::convert): ... this. Use type instead of
1447 length/byte_order arguments. Update calls.
1449 (target_float_same_category_p): New function.
1450 (target_float_same_format_p): Likewise.
1451 (target_float_format_length): Likewise.
1452 (enum target_float_ops_kind): New type.
1453 (get_target_float_ops_kind): New function.
1454 (get_target_float_ops): Three new overloaded functions.
1456 (target_float_is_zero): Update call.
1457 (target_float_to_string): Add special handling of invalid numbers,
1458 infinities and NaN (moved from floatformat_to_string). Use
1459 target_float_ops callback.
1460 (target_float_from_string): Use target_float_ops callback.
1461 (target_float_to_longest): Likewise.
1462 (target_float_from_longest): Likewise.
1463 (target_float_from_ulongest): Likewise.
1464 (target_float_to_host_double): Likewise.
1465 (target_float_from_host_double): Likewise.
1466 (target_float_convert): Add special case for no-op conversions.
1467 Use target_float_ops callback.
1468 (target_float_binop): Use target_float_ops callback.
1469 (target_float_compare): Likewise.
1471 2017-11-22 Yao Qi <yao.qi@linaro.org>
1473 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
1475 2017-11-22 Yao Qi <yao.qi@linaro.org>
1477 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
1478 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
1480 2017-11-21 Jerome Guitton <guitton@adacore.com>
1482 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
1483 with event ptid from the lower layer before doing the
1484 ravenscar-specific update.
1486 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1488 * ravenscar-thread.c (is_ravenscar_task): Also verify that
1489 the ptid's TID is nonzero.
1491 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1493 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
1494 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
1495 Make non-static. Change return type to char *. Adjust code
1496 accordingly. Rewrite the function's documentation.
1497 (read_atcb): Adjust call to get_tcb_types_info accordingly.
1498 * ravenscar-thread.c (ravenscar_inferior_created): Check that
1499 we have enough debugging information in the runtime to support
1500 Ada task debugging before we enable the ravenscar-thread layer.
1502 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1504 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
1505 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
1506 * ravenscar-thread.c: Add into comment.
1507 (base_magic_null_ptid): Delete.
1508 (base_ptid): Change documentation.
1509 (ravenscar_active_task): Renames ravenscar_running_thread.
1510 All callers updated throughout.
1511 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
1512 (ravenscar_task_is_currently_active): Likewise.
1513 (get_base_thread_from_ravenscar_task): Ditto.
1514 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
1515 (ravenscar_runtime_initialized): Likewise.
1516 (get_running_thread_id): Add new parameter "cpu". Adjust
1517 implementation to handle this new parameter.
1518 (ravenscar_fetch_registers): Small adjustment to use
1519 is_ravenscar_task and ravenscar_task_is_currently_active in
1520 order to decide whether to use the target beneath or this
1522 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
1523 (ravenscar_stopped_by_sw_breakpoint): Use
1524 get_base_thread_from_ravenscar_task to get the underlying
1525 thread, rather than using base_ptid.
1526 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1527 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1529 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
1531 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1533 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
1534 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
1535 (get_tcb_types_info): Set fieldnos.base_cpu.
1536 (read_atcb): Set task_info->base_cpu.
1537 (info_task): Print "Base CPU" info if set by runtime.
1539 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1541 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
1542 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1543 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1545 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
1546 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
1547 to_stopped_data_address and to_core_of_thread fields of
1550 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
1552 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
1553 (struct gdbarch_tdep): New member long_double_abi.
1554 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
1555 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
1556 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
1557 format depending on long_double_abi tdep member.
1558 (ppc_floatformat_for_type): Handle __ibm128 type.
1560 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1562 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1564 2017-11-21 Pedro Alves <palves@redhat.com>
1566 * dwarf2read.c (mapped_index::find_name_components_bounds)
1567 <completion mode, upper bound>: Use std::lower_bound instead of
1569 (test_mapped_index_find_name_component_bounds): Remove incorrect
1570 "t1_fund" from expected symbols.
1572 2017-11-21 Pedro Alves <palves@redhat.com>
1574 * dwarf2read.c (mapped_index::name_components_casing): New field.
1575 (mapped_index) <build_name_components,
1576 find_name_components_bounds): Declare new methods.
1577 (mapped_index::find_name_components_bounds)
1578 (mapped_index::build_name_components): New methods, factored out
1579 from dw2_expand_symtabs_matching_symbol.
1580 (check_find_bounds_finds)
1581 (test_mapped_index_find_name_component_bounds): New.
1582 (run_test): Rename to ...
1583 (test_dw2_expand_symtabs_matching_symbol): ... this.
1584 (run_test): Reimplement.
1586 2017-11-21 Pedro Alves <palves@redhat.com>
1588 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1589 (symbol_end): Use cp_ident_is_alnum.
1590 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1591 * dwarf2read.c (make_sort_after_prefix_name): New function.
1592 (dw2_expand_symtabs_matching_symbol): Use it.
1593 (test_symbols): Add more symbols.
1594 (run_test): Add tests.
1596 2017-11-17 Tom Tromey <tom@tromey.com>
1598 * symtab.h (enum symbol_subclass_kind): New.
1599 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
1601 <subclass>: New member.
1602 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
1603 * rust-lang.c (rust_get_trait_object_pointer): Update.
1604 * dwarf2read.c (read_func_scope): Update.
1605 (read_variable): Update.
1607 2017-11-17 Tom Tromey <tom@tromey.com>
1609 * dwarf2read.c (read_func_scope): Update.
1610 * symtab.h (struct template_symbol): Derive from symbol.
1613 2017-11-17 Tom Tromey <tom@tromey.com>
1615 * symtab.h (struct symbol) <is_rust_vtable>: New member.
1616 (struct rust_vtable_symbol): New.
1617 (find_symbol_at_address): Declare.
1618 * symtab.c (find_symbol_at_address): New function.
1619 * symfile.h (struct quick_symbol_functions)
1620 <find_compunit_symtab_by_address>: New member.
1621 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
1623 (debug_sym_quick_functions): Link to
1624 debug_qf_find_compunit_symtab_by_address.
1625 * rust-lang.c (rust_get_trait_object_pointer): New function.
1626 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
1627 rust_get_trait_object_pointer.
1628 * psymtab.c (psym_relocate): Clear psymbol_map.
1629 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
1631 (psym_functions): Link to psym_find_compunit_symtab_by_address.
1632 * objfiles.h (struct objfile) <psymbol_map>: New member.
1633 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1634 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1635 (rust_containing_type, read_variable): New functions.
1637 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1639 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1641 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1643 * common/filestuff.c: Include <algorithm>.
1644 (open_fds): Change type to std::vector<int>.
1645 (do_mark_open_fd): Adjust.
1646 (unmark_fd_no_cloexec): Adjust.
1649 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1651 * breakpoint.c (output_thread_groups): Take an std::vector.
1652 (print_one_breakpoint_location): Adjust.
1654 2017-11-17 Joel Brobecker <brobecker@adacore.com>
1656 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
1657 (ada_evaluate_subexp_for_cast): New function.
1658 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
1659 ada_evaluate_subexp_for_cast.
1660 (ada_evaluate_subexp) <nosideret>: Replace code by call to
1662 * eval.c (evaluate_var_value): Make non-static.
1663 (evaluate_var_msym_value, eval_skip_value): Likewise.
1664 * value.h (evaluate_var_value, evaluate_var_msym_value)
1665 (eval_skip_value): Declare.
1667 2017-11-16 Joel Brobecker <brobecker@adacore.com>
1669 * ada-lang.c (ada_value_cast): Remove parameter "noside".
1672 2017-11-16 Pedro Alves <palves@redhat.com>
1674 * python/py-unwind.c (pyuw_sniffer): Translate
1675 PyExc_KeyboardInterrupt to a GDB Quit exception.
1677 2017-11-16 Pedro Alves <palves@redhat.com>
1679 * infrun.c (resume_cleanups): Delete.
1680 (resume): No longer install a resume_cleanups cleanup nor call
1682 (proceed): Pass the terminal to the inferior.
1683 (keep_going_pass_signal): No longer install a resume_cleanups
1686 2017-11-16 Pedro Alves <palves@redhat.com>
1688 * inf-loop.c (inferior_event_handler): Don't swallow the exception
1689 if the prompt is blocked.
1691 2017-11-16 Pedro Alves <palves@redhat.com>
1693 * breakpoint.c (insert_bp_location): Replace bp_err and
1694 bp_err_message locals by a gdb_exception local.
1696 2017-11-16 Pedro Alves <palves@redhat.com>
1698 * inflow.c (scoped_ignore_sigttou): New class.
1699 (child_terminal_ours_1, new_tty): Use it.
1701 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1703 * target-float.c (decimal_from_number): Add byte_order argument and
1704 call match_endianness. Error if unknown floating-point type.
1705 (decimal_to_number): Add byte_order argument and call match_endianness.
1706 (decimal_from_longest): Update call. Do not call match_endianness.
1707 (decimal_from_ulongest): Likewise.
1708 (decimal_binop): Likewise.
1709 (decimal_is_zero): Likewise.
1710 (decimal_compare): Likewise.
1711 (decimal_convert): Likewise.
1713 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
1715 * python/python.c (gdbpy_rbreak): New function.
1716 * NEWS: Document Python rbreak feature.
1718 2017-11-16 Yao Qi <yao.qi@linaro.org>
1720 * features/tic6x-c62x.xml: Remove.
1721 * features/tic6x-c64x.xml: Remove.
1722 * features/tic6x-c64xp.xml: Remove.
1724 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1726 * symtab.h: Include <array>.
1728 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1730 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
1731 (bsd_kvm_proc_cmd): Likewise.
1733 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
1735 * tui/tui-win.c (window_name_completer): Replace VEC with
1738 2017-11-15 Andrew Cagney <cagney@gnu.org>
1740 * MAINTAINERS: Remove no-longer applicable entries.
1742 2017-11-15 Andrew Cagney <cagney@gnu.org>
1744 * MAINTAINERS: Move self to Past Maintainers.
1746 2017-11-15 Yao Qi <yao.qi@linaro.org>
1748 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
1749 * features/nios2-linux.c: Remove.
1750 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
1751 initialize_tdesc_nios2_linux.
1753 2017-11-15 Yao Qi <yao.qi@linaro.org>
1755 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
1756 M68HC11_LAST_HARD_REG + 1.
1758 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
1761 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
1762 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
1763 Return TARGET_XFER_EOF if size of returned data is 0.
1765 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
1767 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1768 memory-map-selftests.c.
1769 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
1770 * memory-map.c (memory_map_start_memory): Fix computation of hi
1772 * unittests/memory-map-selftests.c: New file.
1774 2017-11-09 Joel Brobecker <brobecker@adacore.com>
1776 * ada-lang.c: Fix some typos in the general command documenting
1777 how Ada expressions are being evaluated and how their result
1780 2017-11-09 Tom Tromey <tom@tromey.com>
1782 * psymtab.c (psymbol_hash): Do not hash string contents.
1783 (psymbol_compare): Add comment.
1785 2017-11-09 Tom Tromey <tom@tromey.com>
1787 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
1789 2017-11-08 Joel Brobecker <brobecker@adacore.com>
1791 * ada-exp.y (write_var_from_sym): Remove parameter
1792 "orig_left_context". Update all callers.
1794 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
1796 * tracepoint.h (class collection_list) <stringify>: Return
1797 std::vector<std::string>.
1798 (encode_actions_rsp): Change parameters to
1799 std::vector<std::string> *.
1800 * tracepoint.c (collection_list::stringify): Return
1801 std::vector<std::string> and adjust accordingly.
1802 (encode_actions_rsp): Changee parameters to
1803 std::vector<std::string> and adjust accordingly.
1804 * remote.c (free_actions_list),
1805 free_actions_list_cleanup_wrapper): Remove.
1806 (remote_download_tracepoint): Adjust to std::vector.
1808 2017-11-08 Tom Tromey <tom@tromey.com>
1810 * dwarf2read.c (symbolp): Remove typedef.
1811 (read_func_scope): Use std::vector.
1812 (process_structure_scope): Use std::vector.
1814 2017-11-08 Pedro Alves <palves@redhat.com>
1816 * ada-lang.c (ada_make_symbol_completion_list): Use
1817 completion_skip_symbol.
1818 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
1819 (symbol_is_function_or_method(symbol*)): New.
1820 (add_symtab_completions): Add complete_symbol_mode parameter. Use
1821 completion_skip_symbol.
1822 (default_collect_symbol_completion_matches_break_on): Use
1823 completion_skip_symbol. Pass down mode.
1824 (collect_file_symbol_completion_matches): Pass down mode.
1825 * symtab.h (symbol_is_function_or_method): New declarations.
1826 (completion_skip_symbol): New template function.
1828 2017-11-08 Pedro Alves <palves@redhat.com>
1830 * linespec.c (iterate_over_all_matching_symtabs): Add
1831 search_domain parameter. Pass it down to expand_symtabs_matching.
1832 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
1833 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
1835 (add_all_symbol_names_from_pspace): Add search_domain parameter.
1837 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
1839 (add_matching_symbols_to_info): Add search_domain parameter. Pass
1842 2017-11-08 Pedro Alves <palves@redhat.com>
1844 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
1845 text_len locals and don't pass them down.
1846 * symtab.c (completion_list_add_name): Remove
1847 sym_text/sym_text_len parameters and adjust.
1848 (completion_list_add_symbol, completion_list_add_msymbol)
1849 (completion_list_objc_symbol, completion_list_add_fields)
1850 (add_symtab_completions): Likewise.
1851 (default_collect_symbol_completion_matches_break_on)
1852 (collect_file_symbol_completion_matches): Remove sym_text_len
1853 local and don't pass it down.
1854 * symtab.h (completion_list_add_name): Remove
1855 sym_text/sym_text_len parameters.
1857 2017-11-08 Pedro Alves <palves@redhat.com>
1859 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1860 unittests/lookup_name_info-selftests.c.
1861 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
1862 * cp-support.c: Include "selftest.h".
1863 (cp_remove_params_1): Rename from cp_remove_params. Add
1864 'require_param' parameter, and handle it.
1865 (cp_remove_params): Reimplement.
1866 (cp_remove_params_if_any): New.
1867 (selftests::quote): New.
1868 (selftests::check_remove_params): New.
1869 (selftests::test_cp_remove_params): New.
1870 (_initialize_cp_support): Install
1871 selftests::test_cp_remove_params.
1872 * cp-support.h (cp_remove_params_if_any): Declare.
1873 * dwarf2read.c :Include "selftest.h".
1874 (dw2_expand_symtabs_matching_symbol): Use
1875 lookup_name_info::make_ignore_params.
1876 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
1877 (selftests::dw2_expand_symtabs_matching::string_or_null)
1878 (selftests::dw2_expand_symtabs_matching::check_match)
1879 (selftests::dw2_expand_symtabs_matching::test_symbols)
1880 (selftests::dw2_expand_symtabs_matching::run_test): New.
1881 (_initialize_dwarf2_read): Register
1882 selftests::dw2_expand_symtabs_matching::run_test.
1883 * psymtab.c (psym_expand_symtabs_matching): Use
1884 lookup_name_info::make_ignore_params.
1885 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
1886 If the lookup name wants to ignore parameters, strip them.
1887 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
1889 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
1890 (default_collect_symbol_completion_matches_break_on): Don't try to
1892 * symtab.h (lookup_name_info::lookup_name_info): Add
1893 'ignore_parameters' parameter.
1894 (lookup_name_info::ignore_parameters)
1895 (lookup_name_info::make_ignore_params): New methods.
1896 (lookup_name_info::m_ignore_parameters): New field.
1897 * unittests/lookup_name_info-selftests.c: New file.
1899 2017-11-08 Pedro Alves <palves@redhat.com>
1901 * dwarf2read.c (dw2_expand_marked_cus)
1902 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
1903 (dw2_expand_symtabs_matching): Move further below.
1904 (dw2_expand_marked_cus): Reindent.
1906 2017-11-08 Pedro Alves <palves@redhat.com>
1908 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
1909 (struct name_component): New.
1910 (mapped_index::name_components): New field.
1911 (mapped_index::symbol_name_at): New method.
1912 (dwarf2_read_index): Call mapped_index ctor.
1913 (dw2_map_matching_symbols): Add comment about name_components
1915 (dw2_expand_symtabs_matching): Factor part to...
1916 (dw2_expand_symtabs_matching_symbol): ... this new function.
1917 Build name components table, and lookup symbols in it before
1918 calling the name matcher.
1919 (dw2_expand_marked_cus): New, factored out from
1920 dw2_expand_symtabs_matching.
1921 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
1923 2017-11-08 Pedro Alves <palves@redhat.com>
1925 * ada-lang.c (ada_encode): Rename to ..
1926 (ada_encode_1): ... this. Add throw_errors parameter and handle
1928 (ada_encode): Reimplement.
1929 (match_name): Delete, folded into full_name.
1930 (resolve_subexp): No longer pass the encoded name to
1931 ada_lookup_symbol_list.
1932 (should_use_wild_match): Delete.
1933 (name_match_type_from_name): New.
1934 (ada_lookup_simple_minsym): Use lookup_name_info and the
1935 language's symbol_name_matcher_ftype.
1936 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
1937 (ada_add_block_renamings): Adjust to use lookup_name_info.
1938 (ada_lookup_name): New.
1939 (add_nonlocal_symbols, ada_add_all_symbols)
1940 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
1941 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
1942 (ada_name_for_lookup): Delete.
1943 (ada_lookup_encoded_symbol): Construct a verbatim name.
1944 (wild_match): Reverse sense of return type. Use bool.
1945 (full_match): Reverse sense of return type. Inline bits of old
1947 (ada_add_block_symbols): Adjust to use lookup_name_info.
1948 (symbol_completion_match): Delete, folded into...
1949 (ada_lookup_name_info::matches): ... .this new method.
1950 (symbol_completion_add): Delete.
1951 (ada_collect_symbol_completion_matches): Add name_match_type
1952 parameter. Adjust to use lookup_name_info and
1953 completion_list_add_name.
1954 (get_var_value, ada_add_global_exceptions): Adjust to use
1956 (ada_get_symbol_name_cmp): Delete.
1957 (do_wild_match, do_full_match): New functions.
1958 (ada_lookup_name_info::ada_lookup_name_info): New method.
1959 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
1961 (ada_language_defn): Install ada_get_symbol_name_matcher.
1962 * ada-lex.l (processId): If name starts with '<', copy it
1964 * block.c (block_iter_match_step, block_iter_match_first)
1965 (block_iter_match_next, block_lookup_symbol)
1966 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
1968 * block.h (block_iter_match_first, block_iter_match_next)
1969 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
1970 * c-lang.c (c_language_defn, cplus_language_defn)
1971 (asm_language_defn, minimal_language_defn): Adjust comments to
1972 refer to la_get_symbol_name_matcher.
1973 * completer.c (complete_files_symbols)
1974 (collect_explicit_location_matches, symbol_completer): Pass a
1975 symbol_name_match_type down.
1976 * completer.h (class completion_match, completion_match_result):
1978 (completion_tracker::reset_completion_match_result): New method.
1979 (completion_tracker::m_completion_match_result): New field.
1980 * cp-support.c (make_symbol_overload_list_block): Adjust to use
1982 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
1984 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
1985 * d-lang.c: Adjust comments to refer to
1986 la_get_symbol_name_matcher.
1987 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
1988 Adjust to use lookup_name_info.
1989 (dict_iter_match_first, dict_iter_match_next)
1990 (iter_match_first_hashed, iter_match_next_hashed)
1991 (iter_match_first_linear, iter_match_next_linear): Adjust to work
1992 with a lookup_name_info.
1993 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
1995 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
1996 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
1997 (gdb_index_symbol_name_matcher): New class.
1998 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
1999 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2000 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2001 with a symbol_name_match_type.
2002 (f_language_defn): Adjust comments to refer to
2003 la_get_symbol_name_matcher.
2004 * go-lang.c (go_language_defn): Adjust comments to refer to
2005 la_get_symbol_name_matcher.
2006 * language.c (default_symbol_name_matcher)
2007 (language_get_symbol_name_matcher): New functions.
2008 (unknown_language_defn, auto_language_defn): Adjust comments to
2009 refer to la_get_symbol_name_matcher.
2010 * language.h (symbol_name_cmp_ftype): Delete.
2011 (language_defn) <la_collect_symbol_completion_matches>: Add match
2013 <la_get_symbol_name_cmp>: Delete field.
2014 <la_get_symbol_name_matcher>: New field.
2015 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2016 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2018 * linespec.c (iterate_over_all_matching_symtabs)
2019 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2020 (find_methods): Add language parameter, and use lookup_name_info
2021 and the language's symbol_name_matcher_ftype.
2022 (linespec_complete_function): Adjust.
2023 (lookup_prefix_sym): Use lookup_name_info.
2024 (add_all_symbol_names_from_pspace): Adjust.
2025 (find_superclass_methods): Add language parameter and pass it
2027 (find_method): Pass symbol language down.
2028 (find_linespec_symbols): Don't demangle or Ada encode here.
2029 (search_minsyms_for_name): Add lookup_name_info parameter.
2030 (add_matching_symbols_to_info): Add name_match_type parameter.
2031 Use lookup_name_info.
2032 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2033 la_get_symbol_name_matcher.
2034 * minsyms.c: Include <algorithm>.
2035 (add_minsym_to_demangled_hash_table): Remove table parameter and
2036 add objfile parameter. Use search_name_hash, and add language to
2037 demangled languages vector.
2038 (struct found_minimal_symbols): New struct.
2039 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2041 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2042 input names here. Use lookup_name_info instead. Lookup up
2043 demangled names once for each language in the demangled names
2045 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2046 demangled names once for each language in the demangled names
2048 (build_minimal_symbol_hash_tables): Adjust.
2049 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2051 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2052 la_get_symbol_name_matcher.
2053 * objfiles.h: Include <vector>.
2054 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2055 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2056 la_get_symbol_name_matcher.
2057 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2058 la_get_symbol_name_matcher.
2059 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2060 (match_partial_symbol): Use symbol_name_match_type,
2061 lookup_name_info and psymbol_name_matches.
2062 (lookup_partial_symbol): Use lookup_name_info.
2063 (map_block): Use symbol_name_match_type and lookup_name_info.
2064 (psym_map_matching_symbols): Use symbol_name_match_type.
2065 (psymbol_name_matches): New.
2066 (recursively_search_psymtabs): Use lookup_name_info and
2067 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2068 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2069 'kind' parameter to 'domain'.
2070 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2071 la_get_symbol_name_matcher.
2072 * symfile-debug.c (debug_qf_map_matching_symbols)
2073 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2074 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2075 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2076 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2077 Adjust to use symbol_name_match_type.
2078 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2079 (expand_symtabs_matching): Adjust to use lookup_name_info.
2080 * symmisc.c (maintenance_expand_symtabs): Use
2081 lookup_name_info::match_any ().
2082 * symtab.c (symbol_matches_search_name): New.
2083 (eq_symbol_entry): Adjust to use lookup_name_info and the
2085 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2086 (lookup_name_info::match_any): New.
2087 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2088 (compare_symbol_name): Add language, lookup_name_info and
2089 completion_match_result parameters, and use them.
2090 (completion_list_add_name): Make extern. Add language and
2091 lookup_name_info parameters. Use them.
2092 (completion_list_add_symbol, completion_list_add_msymbol)
2093 (completion_list_objc_symbol): Add lookup_name_info parameters and
2094 adjust. Pass down language.
2095 (completion_list_add_fields): Add lookup_name_info parameters and
2096 adjust. Pass down language.
2097 (add_symtab_completions): Add lookup_name_info parameters and
2099 (default_collect_symbol_completion_matches_break_on): Add
2100 name_match_type parameter, and use it. Use lookup_name_info.
2101 (default_collect_symbol_completion_matches)
2102 (collect_symbol_completion_matches): Add name_match_type
2103 parameter, and pass it down.
2104 (collect_symbol_completion_matches_type): Adjust.
2105 (collect_file_symbol_completion_matches): Add name_match_type
2106 parameter, and use lookup_name_info.
2107 * symtab.h: Include <string> and "common/gdb_optional.h".
2108 (enum class symbol_name_match_type): New.
2109 (class ada_lookup_name_info): New.
2110 (struct demangle_for_lookup_info): New.
2111 (class lookup_name_info): New.
2112 (symbol_name_matcher_ftype): New.
2113 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2114 (symbol_matches_search_name): Declare.
2115 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2116 (default_collect_symbol_completion_matches)
2117 (collect_symbol_completion_matches)
2118 (collect_file_symbol_completion_matches): Add name_match_type
2120 (iterate_over_symbols): Use lookup_name_info.
2121 (completion_list_add_name): Declare.
2122 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2123 (strncmp_iw_with_mode): Now extern.
2124 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2125 (strncmp_iw_with_mode): Declare.
2127 2017-11-08 Keith Seitz <keiths@redhat.com>
2128 Pedro Alves <palves@redhat.com>
2130 * ada-lang.c (ada_language_defn): Install
2131 default_search_name_hash.
2132 * buildsym.c (struct buildsym_compunit): <language>: New field.
2133 (finish_block_internal): Pass language when creating dictionaries.
2134 (start_buildsym_compunit, start_symtab): New language parameters.
2136 (restart_symtab): Pass down compilation unit's language.
2137 * buildsym.h (enum language): Forward declare.
2138 (start_symtab): New 'language' parameter.
2139 * c-lang.c (c_language_defn, cplus_language_defn)
2140 (asm_language_defn, minimal_language_defn): Install
2141 default_search_name_hash.
2142 * coffread.c (coff_start_symtab): Adjust.
2143 * d-lang.c (d_language_defn): Install default_search_name_hash.
2144 * dbxread.c (struct symloc): Add 'pst_language' field.
2145 (PST_LANGUAGE): Define.
2146 (start_psymtab, read_ofile_symtab): Use it.
2147 (process_one_symbol): New 'language' parameter. Pass it down.
2148 * dictionary.c (struct dictionary) <language>: New field.
2149 (DICT_LANGUAGE): Define.
2150 (dict_create_hashed, dict_create_hashed_expandable)
2151 (dict_create_linear, dict_create_linear_expandable): New parameter
2152 'language'. Set the dictionary's language.
2153 (iter_match_first_hashed): Adjust to rename.
2154 (insert_symbol_hashed): Assert we don't see mismatching
2155 languages. Adjust to rename.
2156 (dict_hash): Rename to ...
2157 (default_search_name_hash): ... this and make extern.
2158 * dictionary.h (struct language_defn): Forward declare.
2159 (dict_create_hashed): New parameter 'language'.
2160 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2161 * f-lang.c (f_language_defn): Install default_search_name_hash.
2162 * go-lang.c (go_language_defn): Install default_search_name_hash.
2163 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2165 * language.c (unknown_language_defn, auto_language_defn):
2166 * language.h (language_defn::la_search_name_hash): New field.
2167 (default_search_name_hash): Declare.
2168 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2169 * mdebugread.c (new_block): New parameter 'language'.
2170 * mdebugread.c (parse_symbol): Pass symbol language to block
2172 (psymtab_to_symtab_1): Pass down language.
2173 (new_symtab): Pass compunit's language to block allocation.
2174 * objc-lang.c (objc_language_defn): Install
2175 default_search_name_hash.
2176 * opencl-lang.c (opencl_language_defn):
2177 * p-lang.c (pascal_language_defn): Install
2178 default_search_name_hash.
2179 * rust-lang.c (rust_language_defn): Install
2180 default_search_name_hash.
2181 * stabsread.h (enum language): Forward declare.
2182 (process_one_symbol): Add 'language' parameter.
2183 * symtab.c (search_name_hash): New function.
2184 * symtab.h (search_name_hash): Declare.
2185 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2187 2017-11-08 Pedro Alves <palves@redhat.com>
2189 * cp-name-parser.y (main): Don't initialize extra_chars.
2191 2017-11-07 Tom Tromey <tom@tromey.com>
2193 * event-top.h (command_handler): Constify.
2194 * record-full.c (cmd_record_full_start): Update.
2195 * thread.c (thread_apply_all_command): Update.
2196 * printcmd.c (eval_command): Update.
2197 * mi/mi-main.c (mi_execute_cli_command): Update.
2198 (mi_execute_async_cli_command): Update.
2199 * tui/tui-stack.c (tui_update_command): Update.
2200 * cli/cli-interp.c (safe_execute_command): Constify.
2201 * record.c (record_start): Update.
2202 (record_start, record_stop, cmd_record_start): Update.
2203 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2204 (cmd_record_btrace_pt_start): Update.
2205 (cmd_record_btrace_start): Update.
2206 (cmd_record_btrace_start): Update.
2207 * reverse.c (exec_reverse_once): Update.
2208 * python/python.c (execute_gdb_command): Don't copy the command.
2209 * event-top.c (command_line_handler): Update.
2210 (command_handler): Constify.
2211 * defs.h (deprecated_call_command_hook): Constify.
2212 * cli/cli-script.h (execute_user_command): Constify.
2213 * cli/cli-script.c (execute_user_command): Constify.
2214 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2215 (enum command_control_type): Update.
2216 * main.c (catch_command_errors): Remove non-const overload.
2217 (catch_command_errors_ftype): Remove.
2218 * python/py-cmd.c (cmdpy_function): Constify.
2219 * guile/scm-cmd.c (cmdscm_function): Constify.
2220 * cli/cli-dump.c (call_dump_func): Constify.
2221 * cli/cli-decode.c (do_const_cfunc): Constify.
2222 (do_sfunc): Constify.
2223 (cmd_func): Constify.
2224 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2225 * top.h (execute_command): Constify.
2226 * top.c (execute_command): Constify.
2227 (execute_command_to_string): Constify.
2228 (deprecated_call_command_hook): Constify.
2229 * command.h (cmd_func): Constify.
2230 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2232 2017-11-07 Tom Tromey <tom@tromey.com>
2234 * ada-lang.c (catch_ada_exception_command): Constify.
2235 (catch_assert_command): Constify.
2236 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2237 (catch_rethrow_command): Constify.
2238 (catch_exception_command_1): Constify.
2239 * breakpoint.h (add_catch_command): Constify.
2240 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2241 (catch_syscall_split_args): Constify.
2242 * break-catch-sig.c (catch_signal_command): Constify.
2243 (catch_signal_split_args): Constify.
2244 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2245 cmd_const_sfunc_ftype.
2246 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2247 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2248 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2249 (add_setshow_string_cmd, struct cmd_list_element)
2250 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2251 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2252 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2254 (set_cmd_sfunc): Constify.
2255 (empty_sfunc): Constify.
2256 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2257 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2258 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2259 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2260 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2261 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2263 (set_cmd_sfunc): Constify.
2264 (cmd_sfunc_ftype): Remove.
2265 * compile/compile.c (set_compile_args): Constify.
2266 * infrun.c (set_disable_randomization): Constify.
2267 * infcmd.c (set_args_command, set_cwd_command): Constify.
2268 * breakpoint.c (set_condition_evaluation_mode): Constify.
2269 (add_catch_command): Constify.
2270 (catch_fork_command_1, catch_exec_command_1)
2271 (catch_load_command_1, catch_unload_command_1): Constify.
2272 (catch_load_or_unload): Constify.
2273 * guile/scm-param.c (pascm_set_func): Constify.
2274 (add_setshow_generic): Constify.
2275 * python/py-param.c (get_set_value): Constify.
2276 * top.h (set_verbose): Constify.
2277 * tui/tui-win.c (tui_set_var_cmd): Constify.
2278 * mi/mi-main.c (set_mi_async_command): Constify.
2279 * cli/cli-logging.c (set_logging_overwrite)
2280 (set_logging_redirect): Constify.
2281 * value.c (set_max_value_size): Constify.
2282 * valprint.c (set_input_radix, set_output_radix): Constify.
2283 * utils.c (set_width_command, set_height_command): Constify.
2284 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2285 * tracepoint.c (set_disconnected_tracing)
2286 (set_circular_trace_buffer, set_trace_buffer_size)
2287 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2288 * top.c (set_history_size_command, set_verbose, set_editing)
2289 (set_gdb_datadir, set_history_filename): Constify.
2290 * target.c (set_targetdebug, maint_set_target_async_command)
2291 (maint_set_target_non_stop_command, set_target_permissions)
2292 (set_write_memory_permission): Constify.
2293 (open_target): Constify.
2294 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2295 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2296 * symtab.c (set_symbol_cache_size_handler): Constify.
2297 * symfile.c (set_ext_lang_command): Constify.
2298 * symfile-debug.c (set_debug_symfile): Constify.
2299 * source.c (set_directories_command): Constify.
2300 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2301 * serial.c (set_parity): Constify.
2302 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2303 * remote.c (set_remote_exec_file, set_remotebreak)
2304 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2305 * record.c (set_record_insn_history_size)
2306 (set_record_call_history_size): Constify.
2307 * record-full.c (set_record_full_insn_max_num): Constify.
2308 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2309 * osabi.c (set_osabi): Constify.
2310 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2311 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2312 * maint.c (maintenance_set_profile_cmd): Constify.
2313 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2314 * language.c (set_language_command, set_range_command)
2315 (set_case_command): Constify.
2316 * infrun.c (set_non_stop, set_observer_mode)
2317 (set_stop_on_solib_events, set_schedlock_func)
2318 (set_exec_direction_func): Constify.
2319 * infcmd.c (set_inferior_tty_command): Constify.
2320 * disasm.c (set_disassembler_options_sfunc): Constify.
2321 * demangle.c (set_demangling_command): Constify.
2322 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2323 * cris-tdep.c (set_cris_version, set_cris_mode)
2324 (set_cris_dwarf2_cfi): Constify.
2325 * corefile.c (set_gnutarget_command): Constify.
2326 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2327 (set_target_wide_charset_sfunc): Constify.
2328 * breakpoint.c (update_dprintf_commands): Constify.
2329 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2330 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2331 (set_disassembly_style_sfunc): Constify.
2332 * arch-utils.c (set_endian, set_architecture): Constify.
2333 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2334 * agent.c (set_can_use_agent): Constify.
2336 2017-11-07 Tom Tromey <tom@tromey.com>
2338 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2339 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2340 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2341 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2342 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2343 (parse_int_arg, show_thread_default_detach_sc_cmd)
2344 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2345 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2346 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2347 (show_task_pause_cmd, set_task_detach_sc_cmd)
2348 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2349 (set_noninvasive_cmd, set_thread_pause_cmd)
2350 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2351 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2352 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2353 * windows-nat.c (display_selectors): Constify.
2354 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2356 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2357 (cmd_cfunc_eq): Likewise.
2358 (struct cmd_list_element): Likewise.
2360 (cli_user_command_p): Update.
2361 * command.h (add_cmd): Remove non-const overload.
2362 (cmd_cfunc_ftype): Remove typedef.
2363 (cmd_cfunc_eq): Remove non-const overload.
2364 * value.c (show_values): Constify.
2365 * thread.c (thread_apply_all_command): Constify.
2366 * symfile.c (load_command): Constify.
2367 * source.c (directory_command): Constify.
2368 * maint.c (maintenance_internal_error)
2369 (maintenance_demangler_warning, maintenance_space_display)
2370 (maintenance_print_architecture, maintenance_translate_address)
2371 (maintenance_info_selftests, maintenance_internal_warning):
2373 * breakpoint.c (disable_trace_command, enable_trace_command):
2375 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2377 (add_auto_load_safe_path): Constify.
2378 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2379 * top.h (show_commands): Constify.
2380 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2381 * sparc64-tdep.c (adi_examine_command): Constify.
2382 (adi_assign_command): Constify.
2384 2017-11-07 Tom Tromey <tom@tromey.com>
2386 * frame.h (info_locals_command, info_args_command): Constify.
2387 * auto-load.h (auto_load_info_scripts): Constify.
2388 * inferior.h (registers_info): Constify.
2389 * copying.c: Rebuild.
2390 * copying.awk: Constify generated commands.
2391 * auto-load.c (auto_load_info_scripts)
2392 (info_auto_load_gdb_scripts): Constify.
2393 * cli/cli-decode.c (struct cmd_list_element): Take a
2394 cmd_const_cfunc_ftype.
2395 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2396 * tui/tui-win.c (tui_all_windows_info): Constify.
2397 * python/py-auto-load.c (info_auto_load_python_scripts):
2399 * cli/cli-cmds.c (show_command): Remove non-const overload.
2400 * tracepoint.c (info_tvariables_command, info_scope_command):
2402 (info_static_tracepoint_markers_command): Constify.
2403 * thread.c (info_threads_command): Constify.
2404 (print_thread_info_1): Constify.
2405 * target.c (info_target_command): Constify.
2406 * symtab.c (info_sources_command, info_functions_command)
2407 (info_types_command): Constify.
2408 (info_variables_command): Remove non-const overload.
2409 * symfile.c (info_ext_lang_command): Constify.
2410 * stack.c (info_frame_command, info_locals_command)
2411 (info_args_command): Constify.
2412 (backtrace_command): Remove non-const overload.
2413 * source.c (info_source_command, info_line_command): Constify.
2414 * solib.c (info_sharedlibrary_command): Constify.
2415 * skip.c (info_skip_command): Constify.
2416 * ser-go32.c (info_serial_command): Constify.
2417 * reverse.c (info_bookmarks_command): Constify.
2418 * printcmd.c (info_symbol_command, info_address_command)
2419 (info_display_command): Constify.
2420 * osdata.c (info_osdata_command): Constify.
2421 * objc-lang.c (info_selectors_command, info_classes_command):
2423 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2424 * memattr.c (info_mem_command): Constify.
2425 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2426 * linux-fork.c (info_checkpoints_command): Constify.
2427 * infrun.c (info_signals_command): Constify.
2428 * inflow.c (info_terminal_command): Constify.
2429 * inferior.c (info_inferiors_command): Constify.
2430 (print_inferior): Constify.
2431 * infcmd.c (info_program_command, info_all_registers_command)
2432 (info_registers_command, info_vector_command)
2433 (info_float_command): Constify.
2434 (registers_info): Constify.
2435 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2436 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2438 * f-valprint.c (info_common_command): Constify.
2439 * dcache.c (info_dcache_command): Constify.
2440 (dcache_info_1): Constify.
2441 * darwin-nat-info.c (info_mach_tasks_command)
2442 (info_mach_task_command, info_mach_ports_command)
2443 (info_mach_port_command, info_mach_threads_command)
2444 (info_mach_thread_command, info_mach_regions_command)
2445 (info_mach_regions_recurse_command, info_mach_region_command)
2446 (info_mach_exceptions_command): Constify.
2447 (get_task_from_args): Constify.
2448 * cp-support.c (info_vtbl_command): Constify.
2449 * breakpoint.c (info_watchpoints_command)
2450 (info_tracepoints_command): Constify.
2451 (info_breakpoints_command): Remove non-const overload.
2452 * avr-tdep.c (avr_io_reg_read_command): Constify.
2453 * auxv.c (info_auxv_command): Constify.
2454 * ada-tasks.c (info_tasks_command): Constify.
2455 (info_task): Constify.
2456 * ada-lang.c (info_exceptions_command): Constify.
2458 2017-11-07 Tom Tromey <tom@tromey.com>
2460 * solib.h (no_shared_libraries): Constify.
2461 * frame.h (return_command): Constify.
2462 * cli/cli-cmds.h (quit_command): Constify.
2463 * top.h (quit_command, execute_command): Constify.
2464 * target.h (flash_erase_command): Constify.
2465 * inferior.h (set_inferior_args, attach_command): Constify.
2466 * tracepoint.h (start_tracing, stop_tracing): Constify.
2467 * breakpoint.h (break_command, tbreak_command)
2468 (hbreak_command_wrapper, thbreak_command_wrapper)
2469 (rbreak_command_wrapper, watch_command_wrapper)
2470 (awatch_command_wrapper, rwatch_command_wrapper)
2471 (get_tracepoint_by_number): Constify.
2472 * symtab.c (info_variables_command, rbreak_command)
2473 (symtab_symbol_info): Constify.
2474 (info_variables_command): Add non-const overload.
2475 * top.c (dont_repeat_command): Constify.
2476 * breakpoint.c (ignore_command, commands_command)
2477 (condition_command, tbreak_command, hbreak_command)
2478 (thbreak_command, clear_command, break_command)
2479 (info_breakpoints_command, watch_command, rwatch_command)
2480 (awatch_command, trace_command, ftrace_command, strace_command)
2481 (trace_pass_command, break_range_command, dprintf_command)
2482 (agent_printf_command, get_tracepoint_by_number)
2483 (watch_maybe_just_location, trace_pass_command): Constify.
2484 (info_breakpoints_command): Add non-const overload.
2485 * tracefile.c (tsave_command): Constify.
2486 * infcmd.c (attach_command, disconnect_command, signal_command)
2487 (queue_signal_command, stepi_command, nexti_command)
2488 (finish_command, next_command, step_command, until_command)
2489 (advance_command, jump_command, continue_command, run_command)
2490 (start_command, starti_command, interrupt_command)
2491 (run_command_1, set_inferior_args, step_1): Constify.
2492 * inferior.c (add_inferior_command, remove_inferior_command)
2493 (clone_inferior_command): Constify.
2494 * linux-fork.c (checkpoint_command, restart_command): Constify.
2495 * windows-nat.c (signal_event_command): Constify.
2496 * guile/guile.c (guile_repl_command, guile_command): Constify.
2497 * printcmd.c (x_command, display_command, printf_command)
2498 (output_command, set_command, call_command, print_command)
2499 (eval_command): Constify.
2500 (non_const_set_command): Remove.
2501 (_initialize_printcmd): Update.
2502 * source.c (forward_search_command, reverse_search_command):
2504 * jit.c (jit_reader_load_command, jit_reader_unload_command):
2506 * infrun.c (handle_command): Constify.
2507 * memattr.c (mem_command): Constify.
2508 * stack.c (return_command, up_command, up_silently_command)
2509 (down_command, down_silently_command, frame_command)
2510 (backtrace_command, func_command, backtrace_command_1): Constify.
2511 (backtrace_command): Add non-const overload.
2512 * remote-sim.c (simulator_command): Constify.
2513 * exec.c (set_section_command): Constify.
2514 * tracepoint.c (tdump_command, trace_variable_command)
2515 (tstatus_command, tstop_command, tstart_command)
2516 (end_actions_pseudocommand, while_stepping_pseudocommand)
2517 (collect_pseudocommand, teval_pseudocommand, actions_command)
2518 (start_tracing, stop_tracing): Constify.
2519 * value.c (init_if_undefined_command): Constify.
2520 * tui/tui-stack.c (tui_update_command): Constify.
2521 * tui/tui-win.c (tui_refresh_all_command)
2522 (tui_set_tab_width_command, tui_set_win_height_command)
2523 (tui_set_focus_command, tui_scroll_forward_command)
2524 (tui_scroll_backward_command, tui_scroll_left_command)
2525 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
2526 (tui_set_win_height): Constify.
2527 * tui/tui-layout.c (tui_layout_command): Constify.
2528 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
2529 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
2530 (proc_untrace_sysexit_cmd): Constify.
2531 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
2532 (threadset_test_cmd, threadlist_update_test_cmd)
2533 (threadalive_test): Constify.
2534 * objc-lang.c (print_object_command): Constify.
2535 * command.h (add_com): Constify.
2536 * cli/cli-dump.c (restore_command): Constify.
2537 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
2538 (help_command, complete_command, shell_command, edit_command)
2539 (list_command, disassemble_command, make_command)
2540 (apropos_command, alias_command): Constify.
2541 * cli/cli-script.c (document_command, define_command)
2542 (while_command, if_command, validate_comname): Constify.
2543 * cli/cli-decode.c (struct cmd_list_element): Change type of
2545 * target.c (do_monitor_command, flash_erase_command): Constify.
2546 * regcache.c (reg_flush_command): Constify.
2547 * reverse.c (reverse_step, reverse_next, reverse_stepi)
2548 (reverse_nexti, reverse_continue, reverse_finish)
2549 (save_bookmark_command, goto_bookmark_command)
2550 (exec_reverse_once): Constify.
2551 * python/python.c (python_interactive_command, python_command):
2553 * typeprint.c (ptype_command, whatis_command, whatis_exp):
2555 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
2556 * gcore.c (gcore_command): Constify.
2558 2017-11-07 Tom Tromey <tom@tromey.com>
2560 * printcmd.c (x_command): Call set_repeat_arguments.
2561 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2562 * top.c (repeat_arguments): New global.
2563 (set_repeat_arguments): New function.
2564 (execute_command): Handle repeat_arguments.
2565 (show_commands): Calls set_repeat_arguments.
2566 * command.h (set_repeat_arguments): Declare.
2568 2017-11-07 Tom Tromey <tom@tromey.com>
2570 * stack.c (backtrace_command): Use std::string.
2571 (backtrace_command_1): Make "count_exp" const.
2573 2017-11-07 Tom Tromey <tom@tromey.com>
2575 * source.c (directory_switch, mod_path, add_path): Constify.
2576 * defs.h (add_path, mod_path, directory_switch): Constify.
2577 * mi/mi-cmd-env.c (env_mod_path): Constify.
2579 2017-11-07 Tom Tromey <tom@tromey.com>
2581 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2582 (run_command_1, continue_command, step_1, jump_command)
2583 (signal_command, until_command, advance_command, finish_command)
2584 (attach_command): Update.
2586 2017-11-07 Tom Tromey <tom@tromey.com>
2588 * command.h (set_cmd_cfunc): Don't declare.
2589 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2591 2017-11-07 Tom Tromey <tom@tromey.com>
2593 * stack.c (select_frame_command): Constify.
2594 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2595 * command.h (add_com_suppress_notification): Constify.
2597 2017-11-07 Tom Tromey <tom@tromey.com>
2599 * breakpoint.c (stop_command): Constify.
2600 * cli/cli-decode.c (struct cmd_list_element): Constify.
2601 * command.h (add_abbrev_prefix_cmd): Constify.
2603 2017-11-07 Pedro Alves <palves@redhat.com>
2605 * breakpoint.c (extract_bp_kind): New enum.
2606 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
2607 factored out from ...
2608 (extract_bp_number_and_location): ... here.
2609 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
2611 2017-11-07 Pedro Alves <palves@redhat.com>
2613 * breakpoint.c (extract_bp_number_and_location): Change return
2614 type to void. Throw error instead of warning.
2615 (enable_disable_command): Adjust.
2617 2017-11-07 Xavier Roirand <roirand@adacore.com>
2618 Pedro Alves <palves@redhat.com>
2620 * breakpoint.c (map_breakpoint_number_range): New, factored out
2622 (map_breakpoint_numbers): ... here.
2623 (find_location_by_number): Change parameters from string to
2624 breakpoint number and location.
2625 (extract_bp_number_and_location): New function.
2626 (enable_disable_bp_num_loc)
2627 (enable_disable_breakpoint_location_range)
2628 (enable_disable_command): New functions, factored out ...
2629 (enable_command, disable_command): ... these functions, and
2630 adjusted to support ranges.
2631 * NEWS: Document enable/disable breakpoint location range feature.
2633 2017-11-06 Luis Machado <luis.machado@linaro.org>
2635 * MAINTAINERS (Write After Approval): Update my e-mail address.
2637 2017-11-06 Pedro Alves <palves@redhat.com>
2639 * gnu-nat.c (gnu_terminal_init): Delete.
2640 (gnu_target): Don't install gnu_terminal_init.
2641 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2642 (child_terminal_init): ... this function.
2644 2017-11-06 Pedro Alves <palves@redhat.com>
2646 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2648 * config.in, configure: Regenerate.
2650 2017-11-06 Pedro Alves <palves@redhat.com>
2652 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
2653 (async_init_signals): Adjust.
2654 (handle_stop_sig): Rename to ...
2655 (handle_sigtstp): ... this.
2656 (async_stop_sig): Rename to ...
2657 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
2659 * event-top.h: Move signal.h include to the top. Check SIGTSTP
2660 instead of STOP_SIGNAL thoughout.
2661 (handle_stop_sig): Rename to ...
2662 (handle_sigtstp): ... this.
2663 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
2665 2017-11-06 Pedro Alves <palves@redhat.com>
2667 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
2668 longer set flags twice in row.
2670 2017-11-06 Pedro Alves <palves@redhat.com>
2672 * Makefile.in (SER_HARDWIRE): Update comment.
2673 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
2674 * common/gdb_termios.h: Delete file.
2675 * common/job-control.c: Include termios.h and unistd.h instead of
2677 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
2679 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
2681 * configure.ac: No longer check for termio.h and sgtty.h.
2682 * configure: Regenerate.
2683 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
2684 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
2685 Replace PROCESS_GROUP_TYPE references with pid_t references
2687 (gdb_getpgrp): Delete.
2688 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
2689 (child_terminal_inferior): Remove comment. Remove sgtty code.
2690 (child_terminal_ours_1): Use tcgetpgrp directly instead of
2691 gdb_getpgrp. Use serial_set_tty_state instead aof
2692 serial_noflush_set_tty_state. Remove sgtty code.
2693 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
2694 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
2695 (inferior_process_group): Now returns pid_t.
2696 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
2697 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
2698 * ser-event.c (serial_event_ops): Update.
2699 * ser-go32.c (dos_noflush_set_tty_state): Delete.
2701 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
2702 * ser-pipe.c (pipe_ops): Update.
2703 * ser-tcp.c (tcp_ops): Update.
2704 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
2705 HAVE_TERMIOS checks.
2706 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
2707 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
2708 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
2710 (hardwire_noflush_set_tty_state): Delete.
2711 (hardwire_print_tty_state, hardwire_drain_output)
2712 (hardwire_flush_output, hardwire_flush_input)
2713 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
2714 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
2715 code, and assume termios.
2716 (hardwire_ops): Update.
2717 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
2718 * serial.c (serial_noflush_set_tty_state): Delete.
2719 * serial.h (serial_noflush_set_tty_state): Delete.
2720 (serial_ops::noflush_set_tty_state): Delete.
2722 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2724 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
2725 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
2726 (COMMON_OBS): Remove doublest.o and dfp.o.
2727 Do not build target-float.c (instead of doublest.c)
2728 with -Wformat-nonliteral.
2730 * doublest.c: Remove file.
2731 * doublest.h: Remove file.
2732 * dfp.c: Remove file.
2733 * dfp.h: Remove file.
2735 * target-float.c: Do not include "doublest.h" and "dfp.h".
2736 (DOUBLEST): Move here from doublest.h.
2737 (enum float_kind): Likewise.
2738 (FLOATFORMAT_CHAR_BIT): Likewise.
2739 (FLOATFORMAT_LARGEST_BYTES): Likewise.
2740 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
2741 (floatformat_precision): Likewise.
2742 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
2743 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
2745 (host_float_format, host_double_format, host_long_double_format):
2747 (floatformat_to_string, floatformat_from_string): Likewise.
2748 (floatformat_to_doublest): Likewise. Also, inline the original
2749 convert_floatformat_to_doublest.
2750 (floatformat_from_doublest): Likewise. Also, inline the original
2751 convert_floatformat_from_doublest.
2753 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
2754 (MAX_DECIMAL_STRING): Move here from dfp.c.
2755 (match_endianness): Likewise.
2756 (set_decnumber_context, decimal_check_errors): Likewise.
2757 (decimal_from_number, decimal_to_number): Likewise.
2758 (decimal_to_string, decimal_from_string): Likewise. Make static.
2759 (decimal_from_longest, decimal_from_ulongest): Likewise.
2760 (decimal_to_longest): Likewise.
2761 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
2762 (decimal_convert): Likewise.
2764 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2766 * doublest.c: Do not include "gdbtypes.h".
2767 (extract_typed_floating): Remove.
2768 (store_typed_floating): Remove.
2769 (convert_typed_floating): Remove.
2770 * doublest.h (struct type): Remove.
2771 (DOUBLEST_PRINT_FORMAT): Remove.
2772 (DOUBLEST_SCAN_FORMAT): Remove.
2773 (extract_typed_floating): Remove.
2774 (store_typed_floating): Remove.
2775 (convert_typed_floating): Remove.
2777 * dfp.c (decimal_from_doublest): Remove.
2778 (decimal_to_doublest): Remove.
2779 * dfp.h: Do not include "doublest.h".
2780 (decimal_from_doublest): Remove.
2781 (decimal_to_doublest): Remove.
2783 * value.c: Do not include "doublest.h" and "dfp.h".
2784 (value_as_double): Remove.
2785 (unpack_double): Remove.
2786 (value_from_double): Remove.
2787 (value_from_decfloat): Remove.
2788 * value.h: Do not include "doublest.h".
2789 (value_as_double): Remove.
2790 (unpack_double): Remove.
2791 (value_from_double): Remove.
2792 (value_from_decfloat): Remove.
2794 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2796 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
2797 (i386_extract_return_value): Use target_float_convert.
2798 (i386_store_return_value): Likewise.
2799 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
2800 (i387_value_to_register): Likewise.
2801 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
2802 (ia64_register_to_value): Use target_float_convert.
2803 (ia64_value_to_register): Likewise.
2804 (ia64_extract_return_value): Likewise.
2805 (ia64_store_return_value): Likewise.
2806 (ia64_push_dummy_call): Likewise.
2807 * m68k-tdep.c: Include "target-float.h".
2808 (m68k_register_to_value): Use target_float_convert.
2809 (m68k_value_to_register): Likewise.
2810 (m68k_svr4_extract_return_value): Likewise.
2811 (m68k_svr4_store_return_value): Likewise.
2812 * ppc-sysv-tdep.c: Include "target-float.h".
2813 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
2814 (do_ppc_sysv_return_value): Likewise.
2815 (ppc64_sysv_abi_push_freg): Likewise.
2816 (ppc64_sysv_abi_return_value_base): Likewise.
2817 * rs6000-aix-tdep.c: Include "target-float.h".
2818 (rs6000_push_dummy_call): Use target_float_convert.
2819 (rs6000_return_value): Likewise.
2820 * rs6000-lynx178-tdep.c: Include "target-float.h".
2821 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
2822 (rs6000_lynx178_return_value): Likewise.
2823 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
2824 (rs6000_register_to_value): Use target_float_convert.
2825 (rs6000_value_to_register): Likewise.
2826 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
2827 (arm_extract_return_value): Use target_float_convert.
2828 (arm_store_return_value): Likewise.
2829 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
2830 (sh_register_convert_to_virtual): Use target_float_convert.
2831 (sh_register_convert_to_raw): Likewise.
2832 * sh64-tdep.c: Include "target-float.h".
2833 (sh64_extract_return_value): Use target_float_convert.
2834 (sh64_register_convert_to_virtual): Likewise.
2835 (sh64_register_convert_to_raw): Likewise. Fix argument types.
2837 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2839 * target-float.c (floatformat_to_host_double): New function.
2840 (floatformat_from_host_double): Likewise.
2841 (target_float_to_host_double): Likewise.
2842 (target_float_from_host_double): Likewise.
2843 * target-float.h (target_float_to_host_double): Add prototype.
2844 (target_float_from_host_double): Likewise.
2846 * guile/scm-value.c: Include "target-float.h".
2847 (gdbscm_value_to_real): Use target_float_to_host_double.
2848 Handle integer source values via value_as_long.
2849 * guile/scm-math.c: Include "target-float.h". Do not include
2850 "doublest.h", "dfp.h", and "expression.h".
2851 (vlscm_convert_typed_number): Use target_float_from_host_double.
2852 (vlscm_convert_number): Likewise.
2854 * python/py-value.c (valpy_float): Use target_float_to_host_double.
2855 (convert_value_from_python): Use target_float_from_host_double.
2857 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2859 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
2860 (cast_from_fixed): Likewise.
2861 (ada_scaling_type): New function.
2862 (ada_delta): Return value instead of DOUBLEST. Perform target
2863 arithmetic instead of host arithmetic.
2864 (scaling_factor): Rename to ...
2865 (ada_scaling_factor) ... this. Make non-static. Return value instead
2866 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
2867 (ada_fixed_to_float): Remove.
2868 (ada_float_to_fixed): Remove.
2869 * ada-lang.h (ada_fixed_to_float): Remove.
2870 (ada_float_to_fixed): Remove.
2871 (ada_delta): Return value instead of DOUBLEST.
2872 (ada_scaling_factor): Add prototype.
2874 * ada-typeprint.c: Include "target-float.h".
2875 (print_fixed_point_type): Perform target arithmetic instead of
2877 * ada-valprint.c: Include "target-float.h".
2878 (ada_val_print_num): Perform target arithmetic instead of
2879 host arithmetic for fixed-point types.
2881 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2883 * target-float.c: Include <math.h>.
2884 (floatformat_binop): New function.
2885 (floatformat_compare): Likewise.
2886 (target_float_binop): Likewise.
2887 (target_float_compare): Likewise.
2888 * target-float.h: Include "expression.h".
2889 (target_float_binop): Add prototype.
2890 (target_float_compare): Likewise.
2892 * valarith.c: Do not include "doublest.h" and "dfp.h".
2893 Include "common/byte-vector.h".
2894 (value_args_as_decimal): Remove, replace by ...
2895 (value_args_as_target_float): ... this function. Handle both
2896 binary and decimal target floating-point formats.
2897 (scalar_binop): Handle both binary and decimal FP using
2898 value_args_as_target_float and target_float_binop.
2899 (value_equal): Handle both binary and decimal FP using
2900 value_args_as_target_float and target_float_compare.
2901 (value_less): Likewise.
2902 (value_pos): Handle all scalar types as simple copy.
2903 (value_neg): Handle all scalar types via BINOP_SUB from 0.
2904 * dfp.c (decimal_binop): Throw error instead of internal_error
2905 when called with an unsupported operation code.
2907 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2909 * target-float.c (target_float_to_string): New function.
2910 (target_float_from_string): New function.
2911 * target-float.h (target_float_to_string): Add prototype.
2912 (target_float_from_string): Add prototype.
2914 * valprint.c: Include "target-float.h". Do not include
2915 "doublest.h" and "dfp.h".
2916 (print_floating): Use target_float_to_string.
2917 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
2918 (printf_floating): Use target_float_to_string.
2919 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
2920 (print_i387_value): Use target_float_to_string.
2921 * mips-tdep.c: Include "target-float.h".
2922 (mips_print_fp_register): Use target_float_to_string.
2923 * sh64-tdep.c: Include "target-float.h".
2924 (sh64_do_fp_register): Use target_float_to_string.
2926 * parse.c: Include "target-float.h". Do not include
2927 "doublest.h" and "dfp.h".
2928 (parse_float): Use target_float_from_string.
2929 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
2930 (define_symbol): Use target_float_from_string.
2931 * gdbarch-selftests.c: Include "target-float.h".
2932 (register_to_value_test): Use target_float_from_string.
2934 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2936 * Makefile.c (SFILES): Add target-float.c.
2937 (HFILES_NO_SRCDIR): Add target-float.h.
2938 (COMMON_OBS): Add target-float.o.
2939 * target-float.h: New file.
2940 * target-float.c: New file.
2942 * doublest.c (floatformat_classify): Fix detection of float_zero.
2944 * gdbtypes.c (is_floating_type): New function.
2945 * gdbtypes.h (is_floating_type): Add prototype.
2947 * value.c: Do not include "floatformat.h".
2948 (unpack_double): Use target_float_is_valid.
2949 (is_floating_value): New function.
2950 * value.h (is_floating_value): Add prototype-
2952 * valarith.c: Include "target-float.h".
2953 (value_logical_not): Use target_float_is_zero.
2955 * python/py-value.c: Include "target-float.h".
2956 (valpy_nonzero): Use target_float_is_zero.
2958 2017-11-04 Tom Tromey <tom@tromey.com>
2960 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
2962 2017-11-04 Tom Tromey <tom@tromey.com>
2964 * breakpoint.c (set_momentary_breakpoint): Return
2966 (until_break_command): Update.
2967 (new_until_break_fsm): Change argument types to
2969 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2970 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
2972 * infcmd.c (finish_forward): Update.
2973 * breakpoint.h (set_momentary_breakpoint)
2974 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2975 (make_cleanup_delete_breakpoint): Remove.
2976 (struct breakpoint_deleter): New.
2977 (breakpoint_up): New typedef.
2978 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
2979 (insert_exception_resume_breakpoint): Update.
2980 (insert_exception_resume_from_probe): Update.
2981 (insert_longjmp_resume_breakpoint): Update.
2982 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
2983 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
2984 * infcall.c (call_function_by_hand_dummy): Update
2986 2017-11-04 Tom Tromey <tom@tromey.com>
2988 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
2990 2017-11-04 Tom Tromey <tom@tromey.com>
2992 * linux-tdep.c (linux_core_info_proc_mappings): Use
2994 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
2996 (linux_corefile_thread): Update.
2997 (linux_make_corefile_notes): Remove unused variable.
2999 2017-11-04 Tom Tromey <tom@tromey.com>
3001 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3004 2017-11-04 Tom Tromey <tom@tromey.com>
3006 * objfiles.c (do_free_objfile_cleanup): Remove.
3007 * compile/compile-object-load.c (compile_object_load): Update.
3008 * objfiles.h (make_cleanup_free_objfile): Remove.
3010 2017-11-04 Tom Tromey <tom@tromey.com>
3012 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3013 (adi_read_versions): Change "tags" to "gdb_byte *".
3014 (adi_print_versions): Likewise.
3016 2017-11-04 Tom Tromey <tom@tromey.com>
3019 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3020 from start_rbreak_breakpoints.
3021 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3022 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3023 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3024 * symtab.c (do_end_rbreak_breakpoints): Remove.
3025 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3027 2017-11-04 Tom Tromey <tom@tromey.com>
3029 * cp-namespace.c (reset_directive_searched): Remove.
3030 (cp_lookup_symbol_via_imports): Use scoped_restore.
3031 * cp-support.c (reset_directive_searched): Remove.
3032 (make_symbol_overload_list_using): Use scoped_restore.
3033 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3034 (reset_directive_searched): Remove.
3036 2017-11-04 Tom Tromey <tom@tromey.com>
3038 * symfile.c (find_separate_debug_file_by_debuglink): Use
3041 2017-11-04 Tom Tromey <tom@tromey.com>
3043 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3045 (compute_stack_depth): Likewise.
3046 (do_compile_dwarf_expr_to_c): Use std::vector.
3048 2017-11-04 Tom Tromey <tom@tromey.com>
3050 * compile/compile-object-load.c (link_callbacks_einfo): Use
3053 2017-11-04 Tom Tromey <tom@tromey.com>
3055 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3056 Use scoped_free_pendings.
3057 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3058 scoped_free_pendings.
3059 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3060 (xcoff_initial_scan): Likewise.
3061 * buildsym.c (reset_symtab_globals): Update comment.
3062 (scoped_free_pendings): Rename from really_free_pendings.
3063 (prepare_for_building): Update comment.
3064 (buildsym_init): Likewise.
3065 * buildsym.h (class scoped_free_pendings): New class.
3066 (really_free_pendings): Don't declare.
3068 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3070 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3071 output when converting a zero value to a special byteorder format.
3073 2017-11-02 Yao Qi <yao.qi@linaro.org>
3075 * frame.c (do_frame_register_read): Remove aspace.
3076 * jit.c (jit_frame_sniffer): Likwise.
3077 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3078 * regcache.c (regcache::regcache): Pass nullptr.
3079 (regcache_print): Caller updated.
3080 * regcache.h (regcache::regcache): Remove one constructor
3083 2017-11-02 Yao Qi <yao.qi@linaro.org>
3085 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3087 2017-11-02 Yao Qi <yao.qi@linaro.org>
3089 * breakpoint.c (insert_single_step_breakpoints): Update.
3090 * frame.c (struct frame_info) <aspace>: Add const.
3091 (frame_save_as_regcache): Add const.
3092 (get_frame_address_space): Return const address_space *.
3093 * frame.h (get_frame_address_space): Update declaration.
3094 * infrun.c (struct step_over_info) <aspace>: Add const.
3095 (set_step_over_info): Make aspace const.
3096 (displaced_step_prepare_throw): Change variable const.
3098 (proceed): Likewise.
3099 (adjust_pc_after_break): Likewise.
3100 (save_waitstatus): Likewise.
3101 (handle_signal_stop): Likewise.
3102 (keep_going_pass_signal): Likewise.
3103 * jit.c (jit_frame_sniffer): Add const.
3104 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3105 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3106 * record-full.c (record_full_wait_1): Likewise.
3107 * regcache.c (regcache::regcache): Change parameter to const.
3108 * regcache.h (regcache::regcache): Likewise.
3109 (regcache::aspace): Return const address_space *.
3110 (regcache) <m_aspace>: Add const.
3112 2017-11-02 Yao Qi <yao.qi@linaro.org>
3114 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3115 * frame.c (create_sentinel_frame): Likewise.
3116 * infrun.c (displaced_step_prepare_throw): Likewise.
3118 (thread_still_needs_step_over_bp): Likewise.
3119 (proceed): Likewise.
3120 (do_target_wait): Likewise.
3121 (adjust_pc_after_break): Likewise.
3122 (handle_syscall_event): Likewise.
3123 (save_waitstatus): Likewise.
3124 (handle_inferior_event_1): Likewise.
3125 (handle_signal_stop): Likewise.
3126 (keep_going_pass_signal): Likewise.
3127 * linux-nat.c (status_callback): Likewise.
3128 (save_stop_reason): Likewise.
3129 (resume_stopped_resumed_lwps): Likewise.
3130 * record-full.c (record_full_exec_insn): Likewise.
3131 (record_full_wait_1): Likewise.
3132 * regcache.c (get_regcache_aspace): Remove.
3133 * regcache.h (get_regcache_aspace): Remove.
3135 2017-11-02 Yao Qi <yao.qi@linaro.org>
3137 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3138 (init_regcache_descr): Use gdbarch_num_regs.
3139 (regcache::regcache): Likewise.
3140 (regcache::get_register_status): Likewise.
3141 (regcache::assert_raw_regnum): Likewise.
3142 (regcache::cooked_read): Likewise.
3143 (regcache::cooked_read_value): Likewise.
3144 (regcache::cooked_write): Likewise.
3145 (regcache::dump): Likewise.
3146 (regcache::num_raw_registers): New method.
3147 * regcache.h (class regcache) <num_raw_registers>: New.
3149 2017-11-02 Yao Qi <yao.qi@linaro.org>
3151 * regcache.c (regcache::assert_regnum): New method.
3152 (regcache::invalidate): Call assert_regnum.
3153 (regcache::raw_update): Likewise.
3154 (regcache::raw_write): Likewise.
3155 (regcache::raw_read_part): Likewise.
3156 (regcache::raw_write_part): Likewise.
3157 (regcache::raw_supply): Likewise.
3158 (regcache::raw_supply_integer): Likewise.
3159 (regcache::raw_supply_zeroed): Likewise.
3160 (regcache::raw_collect): Likewise.
3161 (regcache::raw_collect_integer): Likewise.
3162 * regcache.h (regcache::assert_regnum): Declare.
3164 2017-11-02 Yao Qi <yao.qi@linaro.org>
3166 * regcache.c (regcache::dump): Remove code.
3168 2017-11-02 Yao Qi <yao.qi@linaro.org>
3170 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3172 <sizeof_cooked_register_status>: Remove.
3173 (init_regcache_descr): Update.
3174 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3175 (regcache::save): Likewise.
3176 (regcache::dump): Likewise.
3178 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3180 * ft32-tdep.c (ft32_fetch_instruction): New function.
3181 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3183 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3185 * cli/cli-script.c (execute_control_command): Rename to ...
3186 (execute_control_command_1): ... this.
3187 (execute_control_command): New function.
3189 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3191 * tracepoint.c (tfind_command): Remove const_cast.
3193 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3195 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3197 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3199 * common/common-utils.h (in_inclusive_range): New function.
3200 * arm-tdep.c (arm_record_extension_space): Use
3202 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3203 * cris-tdep.c (cris_spec_reg_applicable): Use
3206 2017-10-30 Pedro Alves <palves@redhat.com>
3207 Simon Marchi <simon.marchi@ericsson.com>
3209 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3210 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3212 2017-10-30 Pedro Alves <palves@redhat.com>
3214 * common/common-utils.c (string_appendf, string_vappendf): New
3216 * common/common-utils.h (string_appendf, string_vappendf): New
3218 * unittests/common-utils-selftests.c (string_appendf_func)
3219 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3220 (string_vappendf_tests): New functions.
3221 (_initialize_common_utils_selftests): Register "string_appendf" and
3222 "string_vappendf tests".
3224 2017-10-30 Pedro Alves <palves@redhat.com>
3226 * unittests/common-utils-selftests.c (format_func): New typedef.
3227 (string_printf_tests, string_vprintf_tests): Tests factored out
3229 (test_format_func): ... this new function.
3230 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3233 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3235 * darwin-nat.c: Remove include of gdb.h.
3237 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3239 * xtensa-xtregs.c: Fix formatting issues.
3241 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3243 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3245 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3248 * python/py-infthread.c (thpy_get_inferior): Increment reference
3249 of inferior before returning it.
3251 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3253 * unittests/common-utils-selftests.c (format): Add
3256 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3258 * xml-syscall.c (struct syscall_desc): Add constructor.
3259 <name>: Change type to std::string.
3260 (syscall_desc_up): New typedef.
3261 (syscall_desc_p): Remove typeder.
3262 (DEF_VEC_P(syscall_desc_p)): Remove.
3263 (struct syscall_group_desc): Add constructor.
3264 <name>: Change type to std::string.
3265 <syscalls>: Change type to std::vector.
3266 (syscall_group_desc_up): New typedef.
3267 (syscall_group_desc_p): Remove typedef.
3268 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3269 (struct syscalls_info) <syscalls>: Change type to std::vector of
3272 <my_gdb_datadir>: Change type to std::string.
3273 (syscalls_info_up): New typedef.
3274 (allocate_syscalls_info): Remove.
3275 (syscalls_info_free_syscalls_desc): Remove.
3276 (syscalls_info_free_syscall_group_desc): Remove.
3277 (free_syscalls_info): Remove.
3278 (make_cleanup_free_syscalls_info): Remove.
3279 (syscall_group_create_syscall_group_desc): Adjust.
3280 (syscall_group_add_syscall): Adjust.
3281 (syscall_create_syscall_desc): Adjust.
3282 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3283 (init_syscalls_info): Adjust.
3284 (syscall_group_get_group_by_name): Adjust.
3285 (xml_get_syscall_number): Adjust.
3286 (xml_get_syscall_name): Adjust.
3287 (xml_list_of_syscalls): Adjust.
3288 (xml_list_syscalls_by_group): Adjust.
3289 (xml_list_of_groups): Adjust.
3291 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3293 * probe.h: Don't include gdb_vecs.h.
3294 (DEF_VEC_P (probe_p)): Remove.
3295 (find_probes_in_objfile): Return an std::vector.
3296 * probe.c (find_probes_in_objfile): Likewise.
3297 * breakpoint.c (breakpoint_objfile_data)
3298 <longjmp_probes>: Change type to std::vector.
3299 <exception_probes>: Likewise.
3300 (free_breakpoint_probes): Don't manually free vectors.
3301 (create_longjmp_master_breakpoint): Adjust.
3302 (create_exception_master_breakpoint): Adjust.
3303 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3304 parameter type, adjust.
3305 (svr4_create_solib_event_breakpoints): Adjust.
3307 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3309 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3310 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3312 (free_breakpoint_probes): Rename to ...
3313 (free_breakpoint_objfile_data): ... this, and call delete on
3316 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3318 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3319 (loaded_script_ptr): Remove typedef.
3320 (DEF_VEC_P (loaded_script_ptr)): Remove.
3321 (struct collect_matching_scripts_data): Add constructor.
3322 <scripts_p>: Change type to (pointer to) std::vector.
3323 (collect_matching_scripts_data): Adjust.
3324 (sort_scripts_by_name): Make suitable for std::sort.
3325 (print_scripts): Don't sort vector, adjust to std::vector.
3326 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3328 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3330 * symfile.c (filename_language): Make struct, not typedef. Add
3332 <ext>: Change type to std::string.
3333 (DEF_VEC_O (filename_language)): Remove.
3334 (filename_language_table): Change type to std::vector.
3335 (add_filename_language): Adjust.
3336 (set_ext_lang_command): Adjust.
3337 (info_ext_lang_command): Adjust.
3338 (deduce_language_from_filename): Adjust.
3339 (class scoped_restore_filename_language_table): Remove.
3340 (test_filename_language): Use scoped_restore.
3341 (test_set_ext_lang_command): Use scoped_restore, adjust to
3344 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3346 * symfile.c: Include selftest.h.
3347 (class scoped_restore_filename_language_table): New.
3348 (test_filename_language): New test.
3349 (test_set_ext_lang_command): New test.
3350 (_initialize_symfile): Register tests.
3352 2017-10-27 Keith Seitz <keiths@redhat.com>
3354 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3355 in the bp_location, falling back to find_pc_sect_function when
3357 (add_location_to_breakpoint): Save sal->symbol.
3358 * breakpoint.h (struct bp_location) <symbol>: New field.
3359 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3360 * symtab.h (struct symtab_and_line) <symbol>: New field.
3362 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3365 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3368 2017-10-26 Pedro Alves <palves@redhat.com>
3370 * remote.c (remote_async_terminal_ours_p): Delete.
3371 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3372 Remove references to 'remote_async_terminal_ours_p'.
3374 2017-10-26 Yao Qi <yao.qi@linaro.org>
3376 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3378 2017-10-26 Yao Qi <yao.qi@linaro.org>
3380 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3382 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3384 * breakpoint.c (bpstat_check_location): Remove cast.
3385 (breakpoint_hit_catch_fork): Make aspce const.
3386 (breakpoint_hit_catch_solib): Likewise.
3387 (breakpoint_hit_catch_exec): Likewise.
3388 (breakpoint_hit_ranged_breakpoint): Likewise.
3389 (breakpoint_hit_watchpoint): Likewise.
3390 (base_breakpoint_breakpoint_hit): Likewise.
3391 (bkpt_breakpoint_hit): Likewise.
3392 (dprintf_breakpoint_hit): Likewise.
3393 (tracepoint_breakpoint_hit): Likewise.
3394 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3396 2017-10-26 Yao Qi <yao.qi@linaro.org>
3398 * breakpoint.c (breakpoint_location_address_match): Change
3399 "struct address_space *" to "const address_space".
3400 (breakpoint_location_address_range_overlap): Likewise.
3401 (breakpoint_here_p): Likewise.
3402 (breakpoint_in_range_p): Likewise.
3403 (moribund_breakpoint_here_p): Likewise.
3404 (bp_location_inserted_here_p): Likewise.
3405 (software_breakpoint_inserted_here_p): Likewise.
3406 (hardware_breakpoint_inserted_here_p): Likewise.
3407 (hardware_watchpoint_inserted_in_range): Likewise.
3408 (bpstat_check_location): Likewise.
3409 (bpstat_stop_status): Likewise.
3410 (breakpoint_address_match): Likewise.
3411 (breakpoint_address_match_range): Likewise.
3412 (breakpoint_location_address_match): Likewise.
3413 (breakpoint_location_address_range_overlap): Likewise.
3414 (insert_single_step_breakpoint): Likewise.
3415 (breakpoint_has_location_inserted_here): Likewise.
3416 (single_step_breakpoint_inserted_here_p): Likewise.
3417 (pc_at_non_inline_function): Likewise.
3418 * breakpoint.h (bpstat_stop_status): Update declaration.
3419 (breakpoint_here_p): Likewise.
3420 (breakpoint_in_range_p): Likewise.
3421 (moribund_breakpoint_here_p): Likewise.
3422 (breakpoint_inserted_here_p): Likewise.
3423 (software_breakpoint_inserted_here_p): Likewise.
3424 (hardware_breakpoint_inserted_here_p): Likewise.
3425 (breakpoint_has_location_inserted_here): Likewise.
3426 (single_step_breakpoint_inserted_here_p): Likewise.
3427 (hardware_watchpoint_inserted_in_range): Likewise.
3428 (breakpoint_address_match): Likewise.
3429 (insert_single_step_breakpoint): Likewise.
3430 (pc_at_non_inline_function): Likewise.
3431 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3432 * record.c (record_check_stopped_by_breakpoint): Likewise.
3433 * record.h (record_check_stopped_by_breakpoint): Likewise.
3434 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3436 2017-10-25 Yao Qi <yao.qi@linaro.org>
3438 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3439 regcache->arch () instead get_regcache_arch.
3440 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3442 (aarch64_fbsd_store_inferior_registers): Likewise.
3443 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3444 (store_gregs_to_thread): Likewise.
3445 (fetch_fpregs_from_thread): Likewise.
3446 (store_fpregs_to_thread): Likewise.
3447 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
3448 (aarch64_store_return_value): Likewise.
3449 (aarch64_software_single_step): Likewise.
3450 * aix-thread.c (aix_thread_wait): Likewise.
3451 (supply_reg32): Likewise.
3452 (supply_sprs64): Likewise.
3453 (supply_sprs32): Likewise.
3454 (fill_gprs64): Likewise.
3455 (fill_gprs32): Likewise.
3456 (fill_sprs64): Likewise.
3457 (fill_sprs32): Likewise.
3458 (store_regs_user_thread): Likewise.
3459 (store_regs_kernel_thread): Likewise.
3460 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3461 (alphabsd_store_inferior_registers): Likewise.
3462 * alpha-tdep.c (alpha_extract_return_value): Likewise.
3463 (alpha_store_return_value): Likewise.
3464 (alpha_deal_with_atomic_sequence): Likewise.
3465 (alpha_next_pc): Likewise.
3466 (alpha_software_single_step): Likewise.
3467 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3468 (amd64bsd_store_inferior_registers): Likewise.
3469 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3471 (amd64_linux_store_inferior_registers): Likewise.
3472 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
3473 (amd64_collect_native_gregset): Likewise.
3474 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
3475 (amd64obsd_collect_uthread): Likewise.
3476 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
3477 (amd64_collect_fpregset): Likewise.
3478 (amd64_supply_fxsave): Likewise.
3479 (amd64_supply_xsave): Likewise.
3480 (amd64_collect_fxsave): Likewise.
3481 (amd64_collect_xsave): Likewise.
3482 * arc-tdep.c (arc_write_pc): Likewise.
3483 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
3484 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
3485 (arm_fbsd_store_inferior_registers): Likewise.
3486 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
3487 (store_vfp_regs): Likewise.
3488 (arm_linux_fetch_inferior_registers): Likewise.
3489 (arm_linux_store_inferior_registers): Likewise.
3490 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3491 (arm_linux_sigreturn_next_pc): Likewise.
3492 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3493 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
3494 (fetch_register): Likewise.
3495 (store_register): Likewise.
3496 * arm-tdep.c (arm_is_thumb): Likewise.
3497 (displaced_in_arm_mode): Likewise.
3498 (bx_write_pc): Likewise.
3499 (arm_get_next_pcs_addr_bits_remove): Likewise.
3500 (arm_software_single_step): Likewise.
3501 (arm_extract_return_value): Likewise.
3502 (arm_store_return_value): Likewise.
3503 (arm_write_pc): Likewise.
3504 * bfin-tdep.c (bfin_extract_return_value): Likewise.
3505 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3506 (bsd_uthread_store_registers): Likewise.
3507 * core-regset.c (fetch_core_registers): Likewise.
3508 * corelow.c (get_core_registers): Likewise.
3509 * cris-tdep.c (cris_store_return_value): Likewise.
3510 (cris_extract_return_value): Likewise.
3511 (find_step_target): Likewise.
3512 (find_step_target): Likewise.
3513 (cris_software_single_step): Likewise.
3514 * ctf.c (ctf_fetch_registers): Likewise.
3515 * darwin-nat.c (cancel_breakpoint): Likewise.
3516 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
3517 * frv-tdep.c (frv_extract_return_value): Likewise.
3518 * ft32-tdep.c (ft32_store_return_value): Likewise.
3519 (ft32_extract_return_value): Likewise.
3520 * go32-nat.c (fetch_register): Likewise.
3521 (go32_fetch_registers): Likewise.
3522 (go32_store_registers): Likewise.
3523 (store_register): Likewise.
3524 * h8300-tdep.c (h8300_extract_return_value): Likewise.
3525 (h8300_store_return_value): Likewise.
3526 * hppa-linux-nat.c (fetch_register): Likewise.
3527 (store_register): Likewise.
3528 (hppa_linux_fetch_inferior_registers): Likewise.
3529 (hppa_linux_store_inferior_registers): Likewise.
3530 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
3531 (i386_darwin_store_inferior_registers): Likewise.
3532 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
3533 (gnu_store_registers): Likewise.
3534 * i386-linux-nat.c (fetch_register): Likewise.
3535 (store_register): Likewise.
3536 (supply_gregset): Likewise.
3537 (fill_gregset): Likewise.
3538 (i386_linux_fetch_inferior_registers): Likewise.
3539 (i386_linux_store_inferior_registers): Likewise.
3540 (i386_linux_resume): Likewise.
3541 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
3543 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
3544 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
3545 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
3546 (i386obsd_collect_uthread): Likewise.
3547 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3548 (i386_supply_gregset): Likewise.
3549 (i386_collect_gregset): Likewise.
3550 (i386_supply_fpregset): Likewise.
3551 (i386_collect_fpregset): Likewise.
3552 (i386_mpx_bd_base): Likewise.
3553 * i386-v4-nat.c (supply_fpregset): Likewise.
3554 (fill_fpregset): Likewise.
3555 * i387-tdep.c (i387_supply_fsave): Likewise.
3556 (i387_collect_fsave): Likewise.
3557 (i387_supply_fxsave): Likewise.
3558 (i387_collect_fxsave): Likewise.
3559 (i387_supply_xsave): Likewise.
3560 (i387_collect_xsave): Likewise.
3561 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3562 (ia64_linux_store_registers): Likewise.
3563 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3564 (ia64_extract_return_value): Likewise.
3565 (ia64_store_return_value): Likewise.
3566 (find_func_descr): Likewise.
3567 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3568 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3569 (inf_ptrace_store_registers): Likewise.
3570 * infrun.c (use_displaced_stepping): Likewise.
3571 (displaced_step_prepare_throw): Likewise.
3573 (proceed): Likewise.
3574 (do_target_wait): Likewise.
3575 (adjust_pc_after_break): Likewise.
3576 (handle_inferior_event_1): Likewise.
3577 (handle_signal_stop): Likewise.
3578 (save_infcall_suspend_state): Likewise.
3579 (restore_infcall_suspend_state): Likewise.
3580 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3581 * jit.c (jit_frame_prev_register): Likewise.
3582 * linux-nat.c (save_stop_reason): Likewise.
3583 (linux_nat_wait_1): Likewise.
3584 (resume_stopped_resumed_lwps): Likewise.
3585 * linux-record.c (record_linux_sockaddr): Likewise.
3586 (record_linux_msghdr): Likewise.
3587 (record_linux_system_call): Likewise.
3588 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3589 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3590 (lm32_store_return_value): Likewise.
3591 * m32c-tdep.c (m32c_read_flg): Likewise.
3592 (m32c_pseudo_register_read): Likewise.
3593 (m32c_pseudo_register_write): Likewise.
3594 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3595 (m32r_linux_collect_gregset): Likewise.
3596 * m32r-tdep.c (m32r_store_return_value): Likewise.
3597 (m32r_extract_return_value): Likewise.
3598 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3599 (m68kbsd_collect_fpregset): Likewise.
3600 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3601 * m68k-linux-nat.c (fetch_register): Likewise.
3602 (old_fetch_inferior_registers): Likewise.
3603 (old_store_inferior_registers): Likewise.
3604 (store_regs): Likewise.
3605 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
3606 (m68k_svr4_store_return_value): Likewise.
3607 * m88k-tdep.c (m88k_store_arguments): Likewise.
3608 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
3609 (mi_cmd_data_write_register_values): Likewise.
3610 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
3611 (mips_fbsd_store_inferior_registers): Likewise.
3612 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
3613 (mips_fbsd_supply_gregs): Likewise.
3614 (mips_fbsd_collect_fpregs): Likewise.
3615 (mips_fbsd_collect_gregs): Likewise.
3616 (mips_fbsd_supply_fpregset): Likewise.
3617 (mips_fbsd_collect_fpregset): Likewise.
3618 (mips_fbsd_supply_gregset): Likewise.
3619 (mips_fbsd_collect_gregset): Likewise.
3620 * mips-linux-nat.c (supply_gregset): Likewise.
3621 (fill_gregset): Likewise.
3622 (supply_fpregset): Likewise.
3623 (fill_fpregset): Likewise.
3624 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
3625 (mips_fill_gregset): Likewise.
3626 (mips_supply_fpregset): Likewise.
3627 (mips_fill_fpregset): Likewise.
3628 (mips64_supply_gregset): Likewise.
3629 (micromips_linux_sigframe_validate): Likewise.
3630 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3631 (mipsnbsd_fetch_inferior_registers): Likewise.
3632 (mipsnbsd_store_inferior_registers): Likewise.
3633 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3634 (mipsnbsd_supply_gregset): Likewise.
3635 (mipsnbsd_iterate_over_regset_sections): Likewise.
3636 (mipsnbsd_supply_reg): Likewise.
3637 (mipsnbsd_supply_fpreg): Likewise.
3638 * mips-tdep.c (mips_in_frame_stub): Likewise.
3639 (mips_dummy_id): Likewise.
3640 (is_octeon_bbit_op): Likewise.
3641 (micromips_bc1_pc): Likewise.
3642 (extended_mips16_next_pc): Likewise.
3643 (mips16_next_pc): Likewise.
3644 (deal_with_atomic_sequence): Likewise.
3645 * moxie-tdep.c (moxie_process_readu): Likewise.
3646 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3647 * nto-procfs.c (procfs_store_registers): Likewise.
3648 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
3649 (ppcfbsd_store_inferior_registers): Likewise.
3650 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
3651 (fetch_altivec_register): Likewise.
3652 (get_spe_registers): Likewise.
3653 (fetch_spe_register): Likewise.
3654 (fetch_altivec_registers): Likewise.
3655 (fetch_all_gp_regs): Likewise.
3656 (fetch_all_fp_regs): Likewise.
3657 (store_vsx_register): Likewise.
3658 (store_altivec_register): Likewise.
3659 (set_spe_registers): Likewise.
3660 (store_spe_register): Likewise.
3661 (store_altivec_registers): Likewise.
3662 (store_all_gp_regs): Likewise.
3663 (store_all_fp_regs): Likewise.
3664 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
3665 (ppc_linux_collect_gregset): Likewise.
3666 (ppc_canonicalize_syscall): Likewise.
3667 (ppc_linux_record_signal): Likewise.
3668 (ppu2spu_prev_register): Likewise.
3669 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
3670 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
3671 (ppcobsd_store_registers): Likewise.
3672 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
3674 (ppc_ravenscar_generic_store_registers): Likewise.
3675 * procfs.c (procfs_fetch_registers): Likewise.
3676 (procfs_store_registers): Likewise.
3677 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
3678 (ravenscar_store_registers): Likewise.
3679 (ravenscar_prepare_to_store): Likewise.
3680 * record-btrace.c (record_btrace_fetch_registers): Likewise.
3681 * record-full.c (record_full_wait_1): Likewise.
3682 (record_full_registers_change): Likewise.
3683 (record_full_store_registers): Likewise.
3684 (record_full_core_fetch_registers): Likewise.
3685 (record_full_save): Likewise.
3686 (record_full_goto_insn): Likewise.
3687 * regcache.c (regcache_register_size): Likewise.
3688 (get_regcache_arch): Remove.
3689 (regcache_read_pc): Likewise.
3690 * regcache.h (get_regcache_arch): Remove.
3691 * remote-sim.c (gdbsim_fetch_register): Likewise.
3692 (gdbsim_store_register): Likewise.
3693 * remote.c (fetch_register_using_p): Likewise.
3694 (send_g_packet): Likewise.
3695 (remote_prepare_to_store): Likewise.
3696 (store_registers_using_G): Likewise.
3697 * reverse.c (save_bookmark_command): Likewise.
3698 (goto_bookmark_command): Likewise.
3699 * rs6000-aix-tdep.c (branch_dest): Likewise.
3700 * rs6000-nat.c (rs6000_ptrace64): Likewise.
3701 (fetch_register): Likewise.
3702 * rs6000-tdep.c (ppc_supply_reg): Likewise.
3703 (ppc_collect_reg): Likewise.
3704 (ppc_collect_gregset): Likewise.
3705 (ppc_collect_fpregset): Likewise.
3706 (ppc_collect_vsxregset): Likewise.
3707 (ppc_collect_vrregset): Likewise.
3708 (ppc_displaced_step_hw_singlestep): Likewise.
3709 (rs6000_pseudo_register_read): Likewise.
3710 (rs6000_pseudo_register_write): Likewise.
3711 * s390-linux-nat.c (supply_gregset): Likewise.
3712 (fill_gregset): Likewise.
3713 (s390_linux_fetch_inferior_registers): Likewise.
3714 * s390-linux-tdep.c (s390_write_pc): Likewise.
3715 (s390_software_single_step): Likewise.
3716 (s390_all_but_pc_registers_record): Likewise.
3717 (s390_linux_syscall_record): Likewise.
3718 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
3719 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3720 (shnbsd_store_inferior_registers): Likewise.
3721 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3722 (sh_extract_return_value_fpu): Likewise.
3723 (sh_store_return_value_nofpu): Likewise.
3724 (sh_corefile_supply_regset): Likewise.
3725 (sh_corefile_collect_regset): Likewise.
3726 * sh64-tdep.c (sh64_extract_return_value): Likewise.
3727 (sh64_store_return_value): Likewise.
3728 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
3729 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
3730 (sparc_store_inferior_registers): Likewise.
3731 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
3732 (sparc_ravenscar_prepare_to_store): Likewise.
3733 * sparc-tdep.c (sparc32_store_arguments): Likewise.
3734 (sparc_analyze_control_transfer): Likewise.
3735 (sparc_step_trap): Likewise.
3736 (sparc_software_single_step): Likewise.
3737 (sparc32_gdbarch_init): Likewise.
3738 (sparc_supply_rwindow): Likewise.
3739 (sparc_collect_rwindow): Likewise.
3740 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
3741 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
3742 (sparc64nbsd_collect_gregset): Likewise.
3743 (sparc64nbsd_supply_fpregset): Likewise.
3744 (sparc64nbsd_collect_fpregset): Likewise.
3745 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
3746 (sparc64_supply_gregset): Likewise.
3747 (sparc64_collect_gregset): Likewise.
3748 (sparc64_supply_fpregset): Likewise.
3749 (sparc64_collect_fpregset): Likewise.
3750 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3751 * spu-tdep.c (spu_unwind_sp): Likewise.
3752 (spu2ppu_prev_register): Likewise.
3753 (spu_memory_remove_breakpoint): Likewise.
3754 * stack.c (return_command): Likewise.
3755 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
3756 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3757 * tracefile.c (trace_save_ctf): Likewise.
3758 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
3759 (do_windows_store_inferior_registers): Likewise.
3760 (windows_resume): Likewise.
3761 * xtensa-linux-nat.c (fill_gregset): Likewise.
3762 (supply_gregset_reg): Likewise.
3763 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
3764 (xtensa_register_read_masked): Likewise.
3765 (xtensa_supply_gregset): Likewise.
3766 (xtensa_extract_return_value): Likewise.
3767 (xtensa_store_return_value): Likewise.
3769 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
3771 * doublest.c (floatformat_from_string): New function.
3772 * doublest.h (floatformat_from_string): Add prototype.
3774 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
3775 (OP_FLOAT): ... this.
3776 * expression.h: Do not include "doublest.h".
3777 (union exp_element): Replace doubleconst and decfloatconst by
3778 new element floatconst.
3779 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
3780 (ada_evaluate_subexp): Likewise.
3781 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
3782 OP_DOUBLE and OP_DECFLOAT.
3783 * expprint.c (print_subexp_standard): Likewise.
3784 (dump_subexp_body_standard): Likewise.
3785 * breakpoint.c (watchpoint_exp_is_const): Likewise.
3787 * parse.c: Include "dfp.h".
3788 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3789 (write_exp_elt_floatcst): New function.
3790 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
3792 (operator_check_standard): Likewise.
3793 (parse_float): Do not accept suffix. Take type as input. Return bool.
3794 Return target format buffer instead of host DOUBLEST.
3795 Use floatformat_from_string and decimal_from_string to parse
3796 either binary or decimal floating-point types.
3797 (parse_c_float): Remove.
3798 * parser-defs.h: Do not include "doublest.h".
3799 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3800 (write_exp_elt_floatcst): Add prototype.
3801 (parse_float): Update prototype.
3802 (parse_c_float): Remove.
3804 * c-exp.y: Do not include "dfp.h".
3805 (typed_val_float): Use byte buffer instead of DOUBLEST.
3806 (typed_val_decfloat): Remove.
3808 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3809 (parse_number): Update to new parse_float interface.
3810 Parse suffixes and determine type before calling parse_float.
3811 Handle decimal and binary FP types the same way.
3813 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3814 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
3815 (parse_number): Update to new parse_float interface.
3816 Parse suffixes and determine type before calling parse_float.
3818 * f-exp.y: Replace dval by typed_val_float.
3819 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3820 (parse_number): Use parse_float instead of atof.
3822 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3823 (parse_go_float): Remove.
3824 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3825 (parse_number): Call parse_float instead of parse_go_float.
3826 Parse suffixes and determine type before calling parse_float.
3828 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3829 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3830 (parse_number): Update to new parse_float interface.
3831 Parse suffixes and determine type before calling parse_float.
3833 * m2-exp.y: Replace dval by byte buffer val.
3834 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3835 (parse_number): Call parse_float instead of atof.
3837 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3838 (lex_number): Call parse_float instead of strtod.
3839 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
3840 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
3841 Use write_exp_elt_floatcst.
3842 (unit_testing): Remove static variable.
3843 (rust_type): Do not check unit_testing.
3844 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
3846 * ada-exp.y (type_float, type_double): Remove.
3847 (typed_val_float): Use byte buffer instead of DOUBLEST.
3848 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3849 * ada-lex.l (processReal): Use parse_float instead of sscanf.
3851 2017-10-25 Alan Hayward <alan.hayward@arm.com>
3853 * aarch64-tdep.h (enum aarch64_regnum): Remove.
3854 * arch/aarch64.h: New file.
3856 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3858 * dfp.h (decimal_from_string): Use const reference for argument.
3859 * dfp.c (decimal_from_string): Likewise.
3861 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3863 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
3864 * sh64-tdep.c (sh64_do_fp_register): Likewise.
3865 * mips-tdep.c (mips_print_fp_register): Likewise.
3867 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3869 * common/format.h (enum argclass): Replace decfloat_arg by
3870 dec32float_arg, dec64float_arg, and dec128float_arg.
3871 * common/format.c (parse_format_string): Update to return
3872 new decimal float argument classes.
3874 * printcmd.c (printf_decfloat): Rename to ...
3875 (printf_floating): ... this. Add argclass argument, and use it
3876 instead of parsing the format string again. Add support for
3877 binary floating-point values, using floatformat_to_string.
3878 Convert value to the target format if it doesn't already match.
3879 (ui_printf): Call printf_floating instead of printf_decfloat,
3880 also for double_arg / long_double_arg. Pass argclass.
3882 * dfp.c (decimal_to_string): Add format string argument.
3883 * dfp.h (decimal_to_string): Likewise.
3885 * doublest.c (floatformat_to_string): Add format string argument.
3886 * doublest.h (floatformat_to_string): Likewise.
3888 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3890 * doublest.c (floatformat_precision): New routine.
3891 (floatformat_to_string): Likewise.
3892 * doublest.c (floatformat_to_string): Add prototype.
3894 * printcmd.c (print_scalar_formatted): Only call print_floating
3895 on floating-point types.
3896 * valprint.c: Do not include "floatformat.h".
3897 (generic_val_print_decfloat): Remove.
3898 (generic_val_print): Call generic_val_print_float for both
3899 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
3900 (print_floating): Use floatformat_to_string. Handle decimal float.
3901 (print_decimal_floating): Remove, merge into floatformat_to_string.
3902 * value.h (print_decimal_floating): Remove.
3904 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
3906 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3908 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
3910 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3912 * memattr.h: Don't include vec.h.
3913 (struct mem_attrib): Initialize fields.
3914 <unknown>: New static method.
3915 (struct mem_region): Add constructors, operator<, initialize
3917 * memattr.c: Include algorithm.
3918 (default_mem_attrib, unknown_mem_attrib): Remove.
3919 (user_mem_region_list): New global.
3920 (target_mem_region_list, mem_region_list): Change type to
3921 std::vector<mem_region>.
3922 (mem_use_target): Now a function.
3923 (target_mem_regions_valid): Change type to bool.
3924 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
3925 (require_user_regions): Adjust.
3926 (require_target_regions): Adjust.
3927 (create_mem_region): Adjust.
3928 (lookup_mem_region): Adjust.
3929 (invalidate_target_mem_regions): Adjust.
3930 (mem_clear): Rename to...
3931 (user_mem_clear): ... this, and adjust.
3932 (mem_command): Adjust.
3933 (info_mem_command): Adjust.
3934 (mem_enable, enable_mem_command, mem_disable,
3935 disable_mem_command): Adjust.
3936 (mem_delete): Adjust.
3937 (delete_mem_command): Adjust.
3938 * memory-map.h (parse_memory_map): Return an std::vector.
3939 * memory-map.c (parse_memory_map): Likewise.
3940 (struct memory_map_parsing_data): Add constructor.
3941 <memory_map>: Point to std::vector.
3942 (memory_map_start_memory): Adjust.
3943 (memory_map_end_memory): Adjust.
3944 (memory_map_end_property): Adjust.
3945 (clear_result): Remove.
3946 * remote.c (remote_memory_map): Return an std::vector.
3947 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
3949 (target_debug_print_mem_region_vector): New.
3950 * target-delegates.c: Regenerate.
3951 * target.h (mem_region_vector): New typedef.
3952 (to_memory_map): Return mem_region_vector.
3953 (target_memory_map): Return an std::vector.
3954 * target.c (target_memory_map): Return an std::vector.
3955 (flash_erase_command): Adjust.
3957 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3959 * memory-map.c (struct memory_map_parsing_data) <property_name>:
3960 Change type to std::string.
3961 (memory_map_start_property): Adjust.
3962 (memory_map_end_property): Adjust.
3964 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3966 * infrun.h: Include common/byte-vector.h.
3967 (struct displaced_step_closure): New struct.
3968 (struct buf_displaced_step_closure): New struct.
3969 * infrun.c (displaced_step_closure::~displaced_step_closure):
3970 Provide default implementation.
3971 (displaced_step_clear): Deallocate step closure with delete.
3972 * aarch64-tdep.c (displaced_step_closure): Rename to ...
3973 (aarch64_displaced_step_closure): ... this, extend
3974 displaced_step_closure.
3975 (aarch64_displaced_step_data) <dsc>: Change type to
3976 aarch64_displaced_step_closure.
3977 (aarch64_displaced_step_copy_insn): Adjust to type change, use
3979 (aarch64_displaced_step_fixup): Add cast for displaced step
3981 * amd64-tdep.c (displaced_step_closure): Rename to ...
3982 (amd64_displaced_step_closure): ... this, extend
3983 displaced_step_closure.
3984 <insn_buf>: Change type to std::vector<gdb_byte>.
3986 (fixup_riprel): Change type of DSC parameter, adjust to type
3988 (fixup_displaced_copy): Change type of DSC parameter.
3989 (amd64_displaced_step_copy_insn): Instantiate
3990 amd64_displaced_step_closure.
3991 (amd64_displaced_step_fixup): Add cast for closure type, adjust
3992 to type change of insn_buf.
3993 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
3995 (arm_linux_copy_svc): Likewise.
3996 (cleanup_kernel_helper_return): Likewise.
3997 (arm_catch_kernel_helper_return): Likewise.
3998 (arm_linux_displaced_step_copy_insn): Instantiate
3999 arm_displaced_step_closure.
4000 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4001 (displaced_read_reg): Change type of parameter DSC.
4002 (branch_write_pc): Likewise.
4003 (load_write_pc): Likewise.
4004 (alu_write_pc): Likewise.
4005 (displaced_write_reg): Likewise.
4006 (arm_copy_unmodified): Likewise.
4007 (thumb_copy_unmodified_32bit): Likewise.
4008 (thumb_copy_unmodified_16bit): Likewise.
4009 (cleanup_preload): Likewise.
4010 (install_preload): Likewise.
4011 (arm_copy_preload): Likewise.
4012 (thumb2_copy_preload): Likewise.
4013 (install_preload_reg): Likewise.
4014 (arm_copy_preload_reg): Likewise.
4015 (cleanup_copro_load_store): Likewise.
4016 (install_copro_load_store): Likewise.
4017 (arm_copy_copro_load_store) Likewise.
4018 (thumb2_copy_copro_load_store): Likewise.
4019 (cleanup_branch): Likewise.
4020 (install_b_bl_blx): Likewise.
4021 (arm_copy_b_bl_blx): Likewise.
4022 (thumb2_copy_b_bl_blx): Likewise.
4023 (thumb_copy_b): Likewise.
4024 (install_bx_blx_reg): Likewise.
4025 (arm_copy_bx_blx_reg): Likewise.
4026 (thumb_copy_bx_blx_reg): Likewise.
4027 (cleanup_alu_imm): Likewise.
4028 (arm_copy_alu_imm): Likewise.
4029 (thumb2_copy_alu_imm): Likewise.
4030 (cleanup_alu_reg): Likewise.
4031 (install_alu_reg): Likewise.
4032 (arm_copy_alu_reg): Likewise.
4033 (thumb_copy_alu_reg): Likewise.
4034 (cleanup_alu_shifted_reg): Likewise.
4035 (install_alu_shifted_reg): Likewise.
4036 (arm_copy_alu_shifted_reg): Likewise.
4037 (cleanup_load): Likewise.
4038 (cleanup_store): Likewise.
4039 (arm_copy_extra_ld_st): Likewise.
4040 (install_load_store): Likewise.
4041 (thumb2_copy_load_literal): Likewise.
4042 (thumb2_copy_load_reg_imm): Likewise.
4043 (arm_copy_ldr_str_ldrb_strb): Likewise.
4044 (cleanup_block_load_all): Likewise.
4045 (cleanup_block_store_pc): Likewise.
4046 (cleanup_block_load_pc): Likewise.
4047 (arm_copy_block_xfer): Likewise.
4048 (thumb2_copy_block_xfer): Likewise.
4049 (cleanup_svc): Likewise.
4050 (install_svc): Likewise.
4051 (arm_copy_svc): Likewise.
4052 (thumb_copy_svc): Likewise.
4053 (arm_copy_undef): Likewise.
4054 (thumb_32bit_copy_undef): Likewise.
4055 (arm_copy_unpred): Likewise.
4056 (arm_decode_misc_memhint_neon): Likewise.
4057 (arm_decode_unconditional): Likewise.
4058 (arm_decode_miscellaneous): Likewise.
4059 (arm_decode_dp_misc): Likewise.
4060 (arm_decode_ld_st_word_ubyte): Likewise.
4061 (arm_decode_media): Likewise.
4062 (arm_decode_b_bl_ldmstm): Likewise.
4063 (arm_decode_ext_reg_ld_st): Likewise.
4064 (thumb2_decode_dp_shift_reg): Likewise.
4065 (thumb2_decode_ext_reg_ld_st): Likewise.
4066 (arm_decode_svc_copro): Likewise.
4067 (thumb2_decode_svc_copro): Likewise.
4068 (install_pc_relative): Likewise.
4069 (thumb_copy_pc_relative_16bit): Likewise.
4070 (thumb_decode_pc_relative_16bit): Likewise.
4071 (thumb_copy_pc_relative_32bit): Likewise.
4072 (thumb_copy_16bit_ldr_literal): Likewise.
4073 (thumb_copy_cbnz_cbz): Likewise.
4074 (thumb2_copy_table_branch): Likewise.
4075 (cleanup_pop_pc_16bit_all): Likewise.
4076 (thumb_copy_pop_pc_16bit): Likewise.
4077 (thumb_process_displaced_16bit_insn): Likewise.
4078 (decode_thumb_32bit_ld_mem_hints): Likewise.
4079 (thumb_process_displaced_32bit_insn): Likewise.
4080 (thumb_process_displaced_insn): Likewise.
4081 (arm_process_displaced_insn): Likewise.
4082 (arm_displaced_init_closure): Likewise.
4083 (arm_displaced_step_fixup): Add cast for closure.
4084 * arm-tdep.h: Include infrun.h.
4085 (displaced_step_closure): Rename to ...
4086 (arm_displaced_step_closure): ... this, extend
4087 displaced_step_closure.
4088 <u::svc::copy_svc_os>: Change type of parameter DSC.
4089 <cleanup>: Likewise.
4090 (arm_process_displaced_insn): Likewise.
4091 (arm_displaced_init_closure): Likewise.
4092 (displaced_read_reg): Likewise.
4093 (displaced_write_reg): Likewise.
4094 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4096 * i386-tdep.h: Include infrun.h.
4097 (i386_displaced_step_closure): New typedef.
4098 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4099 i386_displaced_step_closure.
4100 (i386_displaced_step_fixup): Adjust.
4101 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4102 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4104 (ppc_displaced_step_fixup): Adjust.
4105 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4106 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4108 (s390_displaced_step_fixup): Adjust.
4110 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4112 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4113 Remove declarations.
4115 2017-10-20 Tom Tromey <tom@tromey.com>
4117 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4119 (gdb_bfd_record_inclusion): Update.
4120 (bfdp): Remove typedef.
4122 2017-10-20 Tom Tromey <tom@tromey.com>
4124 * gdb_bfd.c (gdb_bfd_ref): Use new.
4125 (struct gdb_bfd_data): Add constructor, destructor, and member
4127 (gdb_bfd_unref): Use delete.
4129 2017-10-20 Tom Tromey <tom@tromey.com>
4131 * exec.c (exec_file_attach): Use new_bfd_ref.
4132 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4133 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4134 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4136 * gdb_bfd.h (new_bfd_ref): New function.
4138 2017-10-20 Pedro Alves <palves@redhat.com>
4140 * main.c (captured_command_loop): Add attribute noinline.
4142 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4144 * interps.c (struct interp_factory): Add constructor.
4145 (interp_factory_p): Remove typedef.
4146 (DEF_VEC_P(interp_factory_p)): Remove.
4147 (interpreter_factories): Change type to std::vector.
4148 (interp_factory_register): Adjust.
4149 (interp_lookup): Adjust.
4150 (interpreter_completer): Adjust.
4152 2017-10-19 Tom Tromey <tom@tromey.com>
4154 * break-catch-syscall.c (catch_syscall_completer): Use
4155 std::string, gdb::unique_xmalloc_ptr.
4157 2017-10-19 Tom Tromey <tom@tromey.com>
4159 * infcall.c (call_function_by_hand_dummy): Use std::string.
4161 2017-10-19 Tom Tromey <tom@tromey.com>
4163 * mi/mi-main.c (mi_cmd_execute): Update.
4164 * top.h (prepare_execute_command): Return scoped_value_mark.
4165 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4166 Add move constructor.
4167 * top.c (prepare_execute_command): Return scoped_value_mark.
4168 (execute_command): Update.
4170 2017-10-19 Pedro Alves <palves@redhat.com>
4172 * xml-support.c (xml_fetch_content_from_file): Check fread's
4175 2017-10-19 Pedro Alves <palves@redhat.com>
4177 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4179 (handle_error_fd): New function.
4180 (ser_base_async): Add/delete an event loop file handler for
4183 2017-10-19 Pedro Alves <palves@redhat.com>
4185 * xml-support.c (xml_fetch_content_from_file): Don't read in
4186 chunks. Instead use fseek to determine the file's size, and read
4189 2017-11-18 Keith Seitz <keiths@redhat.com>
4191 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4193 Add whitespace to front of type name.
4195 2017-10-18 Keith Seitz <keiths@redhat.com>
4197 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4198 DW_AT_accessibility.
4200 2017-10-18 Yao Qi <yao.qi@linaro.org>
4202 * features/tic6x-c62x-linux.c: Remove.
4204 2017-10-17 Tom Tromey <tom@tromey.com>
4206 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4207 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4208 (do_mixed_source_and_assembly): Likewise.
4210 2017-10-17 Tom Tromey <tom@tromey.com>
4212 * regcache.c (regcache::xfer_part): Remove assertion.
4214 2017-10-17 Pedro Alves <palves@redhat.com>
4216 * xml-support.c (xml_fetch_content_from_file): Call
4217 unique_ptr::release() instead unique_ptr::get() when passing
4220 2017-10-17 Yao Qi <yao.qi@linaro.org>
4222 * regcache.c (regcache::xfer_part): Remove parameters read and
4223 write, add parameter is_raw. All callers are updated.
4225 2017-10-16 Keith Seitz <keiths@redhat.com>
4227 * c-typeprint.c (enum access_specifier): Moved here from
4229 (output_access_specifier): New function.
4230 (c_type_print_base): Consider typedefs when assessing
4231 whether access labels are needed.
4232 Use output_access_specifier as needed.
4233 Output access specifier for typedefs, if needed.
4234 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4235 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4237 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4240 2017-10-16 Tom Tromey <tom@tromey.com>
4242 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4243 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4244 * target.c (target_fileio_read_stralloc): Update.
4245 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4246 * target.h (target_fileio_read_stralloc): Return
4249 2017-10-16 Tom Tromey <tom@tromey.com>
4251 * xml-syscall.c (xml_init_syscalls_info): Update.
4252 * xml-support.c (xinclude_start_include): Update.
4253 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4254 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4255 (xml_fetch_content_from_file): Likewise.
4256 * osdata.c (get_osdata): Update.
4257 * target.h (target_read_stralloc, target_get_osdata): Return
4259 * solib-aix.c (solib_aix_get_library_list): Update.
4260 * solib-target.c (solib_target_current_sos): Update.
4261 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4262 * xml-tdesc.c (fetch_available_features_from_target): Update.
4263 (target_fetch_description_xml): Update.
4264 (file_read_description_xml): Update.
4265 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4266 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4267 (remote_pid_to_exec_file): Update.
4268 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4269 (target_get_osdata): Likewise.
4271 2017-10-16 Tom Tromey <tom@tromey.com>
4273 * remote.c (remote_register_number_and_offset): Use std::vector.
4274 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4275 (putpkt_binary): Use gdb::def_vector.
4276 (compare_sections_command): Use gdb::byte_vector.
4278 2017-10-16 Tom Tromey <tom@tromey.com>
4280 * ppc-linux-nat.c (hwdebug_insert_point): Use
4281 gdb::unique_xmalloc_ptr, XDUP.
4283 2017-10-16 Tom Tromey <tom@tromey.com>
4285 * probe.c (parse_probes): Use std::string.
4286 (info_probes_for_ops, enable_probes_command)
4287 (disable_probes_command): Remove cleanups.
4289 2017-10-16 Tom Tromey <tom@tromey.com>
4291 * buildsym.c (block_compar): Remove.
4292 (end_symtab_get_static_block): Use std::vector.
4294 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4296 * memrange.h (struct mem_range): Define operator< and operator==.
4297 (mem_range_s): Remove.
4298 (DEF_VEC_O (mem_range_s)): Remove.
4299 (normalize_mem_ranges): Change parameter type to std::vector.
4300 * memrange.c (compare_mem_ranges): Remove.
4301 (normalize_mem_ranges): Change parameter type to std::vector,
4302 adjust to vector change.
4303 * exec.c (section_table_available_memory): Return vector, remove
4305 (section_table_read_available_memory): Adjust to std::vector
4307 * remote.c (remote_read_bytes): Adjust to std::vector
4309 * tracepoint.h (traceframe_available_memory): Change parameter
4310 type to std::vector.
4311 * tracepoint.c (traceframe_available_memory): Change parameter
4312 type to std::vector, adjust.
4313 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4315 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4316 unittests/memrange-selftests.c.
4317 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4318 * gdb/unittests/memrange-selftests.c: New file.
4320 2017-10-16 Pedro Alves <palves@redhat.com>
4322 * elfread.c (probe_key_free): Rename range-for variable.
4323 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4324 (find_probe_by_pc, collect_probes): Rename range-for variable.
4326 2017-10-16 Yao Qi <yao.qi@linaro.org>
4328 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4329 * features/tic6x-c62x.c: Remove.
4330 * features/tic6x-c64x-linux.c: Remove.
4331 * features/tic6x-c64x.c: Remove.
4332 * features/tic6x-c64xp-linux.c: Remove.
4333 * features/tic6x-c64xp.c: Remove.
4334 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4335 initialize_tdesc_tic6x_*_linux functions.
4336 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4337 initialize_tdesc_tic6x_* functions.
4339 2017-10-16 Yao Qi <yao.qi@linaro.org>
4341 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4343 * regformats/tic6x-c62x.dat: Remove.
4344 * regformats/tic6x-c64x.dat: Remove.
4345 * regformats/tic6x-c64xp.dat: Remove.
4347 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4349 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4350 (the !HAVE_LIBEXPAT version).
4352 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4354 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4357 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4359 * target.h: Include tracepoint.h.
4360 (enum trace_find_type): Move to tracepoint.h.
4361 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4362 * tracepoint.h: Don't include target.h
4363 (enum trace_find_type): Move from target.h.
4364 (parse_traceframe_info): Return a unique ptr.
4365 * tracepoint.c (current_traceframe_info): Change type to unique
4367 (free_traceframe_info): Remove.
4368 (clear_traceframe_info): Don't manually free
4369 current_traceframe_info.
4370 (free_result): Remove.
4371 (parse_traceframe_info): Return a unique ptr.
4372 (get_traceframe_info): Adjust to unique ptr.
4373 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4374 * remote.c (remote_traceframe_info): Return a unique ptr.
4375 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4377 * target-debug.h (target_debug_print_traceframe_info_up): New
4379 * target-delegates.c: Regenerate.
4381 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4383 * memrange.h (struct mem_range): Add constructors.
4384 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4385 std::vector<mem_range>.
4386 * tracepoint.c (free_traceframe_info): Don't manually free
4388 (traceframe_info_start_memory): Adjust to vector change.
4389 (traceframe_available_memory): Likewise.
4390 * tracefile-tfile.c (build_traceframe_info): Likewise.
4391 * ctf.c (ctf_traceframe_info): Likewise.
4393 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4395 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4397 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4398 (traceframe_info_start_tvar): Adjust to vector change.
4399 (parse_traceframe_info): Allocate with new.
4400 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4402 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4404 tfile_traceframe_info): Allocate with new.
4405 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4408 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4410 * tracepoint.c (traceframe_info): Rename to...
4411 (current_traceframe_info): ...this.
4412 (clear_traceframe_info): Adjust.
4413 (get_traceframe_info): Adjust.
4415 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4417 * nat/linux-osdata.c: Include algorithm.
4418 (compare_processes): Remove.
4419 (struct pid_pgid_entry): New struct.
4420 (linux_xfer_osdata_processgroups): Use std::vector instead of
4423 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4425 * objfiles.h: Don't include symfile.h.
4426 (struct partial_symbol): Remove forward-declaration.
4427 (struct objfile) <global_psymbols, static_psymbols>: Change type
4428 to std::vector<partial_symbol *>.
4429 * objfiles.c (objfile::objfile): Don't memset those fields.
4430 (objfile::~objfile): Don't free those fields.
4431 * psympriv.h (struct psymbol_allocation_list): Remove
4432 forward-declaration.
4433 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4435 (start_psymtab_common): Change parameters to std::vector.
4436 * psymtab.c: Include algorithm.
4437 (require_partial_symbols): Call shrink_to_fit.
4438 (find_pc_sect_psymbol): Adjust to vector change.
4439 (match_partial_symbol): Likewise.
4440 (lookup_partial_symbol): Likewise.
4441 (psym_relocate): Likewise.
4442 (dump_psymtab): Likewise.
4443 (recursively_search_psymtabs): Likewise.
4444 (compare_psymbols): Remove.
4445 (sort_pst_symbols): Adjust to vector change.
4446 (start_psymtab_common): Likewise.
4447 (end_psymtab_common): Likewise.
4448 (psymbol_bcache_full): De-constify return value.
4449 (add_psymbol_to_bcache): Likewise.
4450 (extend_psymbol_list): Remove.
4451 (append_psymbol_to_list): Adjust to vector change.
4452 (add_psymbol_to_list): Likewise.
4453 (init_psymbol_list): Likewise.
4454 (maintenance_info_psymtabs): Likewise.
4455 (maintenance_check_psymtabs): Likewise.
4456 * symfile.h (struct psymbol_allocation_list): Remove.
4457 * symfile.c (reread_symbols): Adjust to vector change.
4458 * dbxread.c (start_psymtab): Change type of parameters.
4459 (dbx_symfile_read): Adjust to vector change.
4460 (read_dbx_symtab): Likewise.
4461 (start_psymtab): Change type of parameters.
4462 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
4463 (create_partial_symtab): Likewise.
4464 (add_partial_symbol): Likewise.
4465 (write_one_signatured_type): Likewise.
4466 (recursively_write_psymbols): Likewise.
4467 * mdebugread.c (parse_partial_symbols): Likewise.
4468 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
4469 (scan_xcoff_symtab): Adjust to vector change.
4470 (xcoff_initial_scan): Likewise.
4472 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
4474 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
4476 2017-10-13 Yao Qi <yao.qi@linaro.org>
4478 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
4479 Remove s390x-*-expedite, add s390x-expedite.
4481 2017-10-13 Yao Qi <yao.qi@linaro.org>
4483 * features/s390-gs-linux64.c: Regenerated.
4484 * features/s390x-gs-linux64.c: Regenerated.
4486 2017-10-13 Tom Tromey <tom@tromey.com>
4488 * compile/compile-object-run.c (do_module_cleanup): Use delete.
4489 * solib.c (update_solib_list, reload_shared_libraries_1): Use
4491 * symfile.c (symbol_file_add_with_addrs): Use new.
4492 (symbol_file_add_separate): Update comment.
4493 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
4494 * jit.c (jit_object_close_impl): Use new.
4495 (jit_unregister_code): Use delete.
4496 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
4497 (~objfile): Rename from free_objfile.
4498 (free_objfile_separate_debug, do_free_objfile_cleanup)
4499 (free_all_objfiles, objfile_purge_solibs): Use delete.
4500 * objfiles.h (struct objfile): Add constructor and destructor.
4501 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
4502 (allocate_objfile, free_objfile): Don't declare.
4503 (struct objstats): Add initializers.
4505 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4507 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
4508 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
4509 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
4510 * gdbarch.h: Regenerate.
4511 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4513 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
4514 (i386_displaced_step_fixup): Adjust comment.
4515 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
4517 2017-10-12 Tom Tromey <tom@tromey.com>
4519 * prologue-value.h (pv_area::store_would_trash): Return bool.
4520 (pv_area::find_reg): Likewise.
4521 * prologue-value.c (pv_area::store_would_trash): Return bool.
4522 (pv_area::find_reg): Likewise.
4524 2017-10-12 Tom Tromey <tom@tromey.com>
4526 * s390-linux-tdep.c (s390_store, s390_load)
4527 (s390_check_for_saved, s390_analyze_prologue): Update.
4528 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
4529 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
4530 * prologue-value.h (class pv_area): Move from prologue-value.c.
4531 Change names of members. Add constructor, destructor, member
4533 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
4534 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
4535 (pv_area_fetch, pv_area_scan): Don't declare.
4536 * prologue-value.c (struct pv_area::area_entry): Now member of
4538 (struct pv_area): Move to prologue-value.h.
4539 (pv_area::pv_area): Rename from make_pv_area.
4540 (pv_area::~pv_area): Rename from free_pv_area.
4541 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
4542 (clear_entries, find_entry, overlaps, store_would_trash, store)
4543 (fetch, find_reg, scan): Now member of pv_area.
4544 Remove "area" argument. Update.
4545 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
4547 * mn10300-tdep.c (push_reg, check_for_saved)
4548 (mn10300_analyze_prologue): Update.
4549 * mep-tdep.c (is_arg_spill, check_for_saved)
4550 (mep_analyze_prologue): Update.
4551 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
4552 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
4553 (m32c_is_struct_return, m32c_analyze_prologue): Update.
4554 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
4556 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
4557 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4559 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4561 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4562 * linux-nat.c (linux_nat_delete_thread): New variable.
4563 (lwp_free): Invoke linux_nat_delete_thread if set.
4564 (linux_nat_set_delete_thread): New function.
4565 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4566 thread delete callback.
4567 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4568 (_initialize_arm_linux_nat): Assign thread delete callback.
4569 * s390-linux-nat.c (s390_delete_thread): New function.
4570 (_initialize_s390_nat): Assign thread delete callback.
4571 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4572 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4574 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4576 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4577 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4579 2017-10-09 Tom Tromey <tom@tromey.com>
4581 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4583 * tui/tui-layout.c (enum tui_status): Use std::string.
4585 2017-10-11 Tom Tromey <tom@tromey.com>
4587 * gdbthread.h (thread_command): Constify.
4588 * inferior.h (detach_command): Constify.
4589 * top.h (set_history, show_history): Constify.
4590 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4591 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4592 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4593 * printcmd.c (set_command): Constify.
4594 (non_const_set_command): New function.
4595 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4596 * breakpoint.c (enable_command, disable_command, delete_command)
4597 (catch_command, tcatch_command, set_breakpoint_cmd)
4598 (show_breakpoint_cmd): Constify.
4599 * macrocmd.c (macro_command): Constify.
4600 * infcmd.c (unset_command, kill_command, detach_command)
4601 (info_proc_cmd): Constify.
4602 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
4603 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
4604 (info_auto_load_cmd): Constify.
4605 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4606 (unset_tdesc_cmd): Constify.
4607 * ada-lang.c (set_ada_command, show_ada_command)
4608 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
4609 * guile/guile.c (set_guile_command, show_guile_command)
4610 (info_guile_command): Constify.
4611 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
4613 * skip.c (skip_command): Constify.
4614 * compile/compile.c (_initialize_compile): Constify.
4615 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
4616 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4617 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4618 (maint_btrace_pt_show_cmd): Constify.
4619 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
4621 * python/python.c (user_show_python, user_set_python): Constify.
4622 * mips-tdep.c (set_mips_command, show_mips_command)
4623 (set_mipsfpu_command): Constify.
4624 * record-btrace.c (cmd_record_btrace_start)
4625 (cmd_set_record_btrace, cmd_show_record_btrace)
4626 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
4627 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
4628 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
4630 * symfile.c (overlay_command): Constify.
4631 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
4632 * cli/cli-logging.c (set_logging_command, show_logging_command):
4634 * cli/cli-dump.c (dump_command, append_command)
4635 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4636 (tekhex_dump_command, binary_dump_command)
4637 (binary_append_command): Constify.
4638 * cli/cli-decode.c (struct cmd_list_element): Change type of
4640 * cli/cli-cmds.c (info_command, show_command, set_debug)
4641 (show_debug): Constify.
4642 (show_command): Add non-const overload.
4643 * top.c (set_history, show_history): Constify.
4644 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4645 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4646 * target.c (target_command): Constify.
4647 * sparc64-tdep.c (info_adi_command): Constify.
4648 * record-full.c (cmd_record_full_start): Constify.
4649 (set_record_full_command): Constify. Fix typo.
4650 (show_record_full_command): Constify.
4651 * thread.c (thread_command, thread_apply_command): Constify.
4652 * memattr.c (dummy_cmd): Constify.
4653 * value.c (function_command): Constify.
4654 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
4655 * probe.c (info_probes_command): Constify.
4656 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
4657 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
4658 (show_thread_cmd, set_thread_default_cmd)
4659 (show_thread_default_cmd): Constify.
4660 (check_empty): Constify.
4661 * tracepoint.c (tfind_command): Constify.
4662 * cp-support.c (maint_cplus_command): Constify.
4663 * windows-tdep.c (info_w32_command): Constify.
4664 * record.c (cmd_record_start, set_record_command)
4665 (show_record_command, info_record_command, cmd_record_goto):
4667 * ravenscar-thread.c (set_ravenscar_command)
4668 (show_ravenscar_command): Constify.
4669 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4671 (add_internal_problem_command): Remove casts.
4672 * arc-tdep.c (maintenance_print_arc_command): Constify.
4673 * valprint.c (set_print, show_print, set_print_raw)
4674 (show_print_raw): Constify.
4675 * maint.c (maintenance_command, maintenance_info_command)
4676 (maintenance_print_command, maintenance_set_cmd)
4677 (maintenance_show_cmd, set_per_command_cmd)
4678 (show_per_command_cmd, maintenance_check_command): Constify.
4679 * language.c (set_check, show_check): Constify.
4680 * typeprint.c (show_print_type, set_print_type): Constify.
4681 * go32-nat.c (go32_info_dos_command): Constify.
4683 2017-10-11 Tom Tromey <tom@tromey.com>
4685 * breakpoint.c (prepare_re_set_context): Remove.
4686 (breakpoint_re_set_one): Update. Don't use cleanups.
4687 (breakpoint_re_set): Use scoped_restore, std::string, and
4688 scoped_restore_current_language.
4690 2017-10-11 Tom Tromey <tom@tromey.com>
4692 * breakpoint.c (commands_command_1): Use std::string.
4693 (cleanup_executing_breakpoints): Remove.
4694 (bpstat_do_actions_1): Use scoped_restore.
4695 (bpstat_check_watchpoint): Use std::string.
4696 (decode_static_tracepoint_spec): Likewise.
4697 (break_range_command): Likewise.
4698 (watch_command_1): Likewise.
4699 (compare_breakpoints): Change argument types.
4700 (clear_command): Use std::vector.
4701 (cleanup_executing_breakpoints): Remove.
4702 (update_global_location_list): Use unique_xmalloc_ptr.
4703 (strace_command): Remove unused declaration.
4705 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4707 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
4708 * NEWS: Mention new FreeBSD/arm native configuration.
4709 * configure.host: Add arm*-*-freebsd*.
4710 * configure.nat: Likewise.
4711 * arm-fbsd-nat.c: New file.
4713 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4715 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
4716 (ALLDEPFILES): Add arm-fbsd-tdep.c.
4717 * NEWS: Mention new FreeBSD/arm target.
4718 * configure.tgt: Add arm*-*-freebsd*.
4719 * arm-fbsd-tdep.c: New file.
4720 * arm-fbsd-tdep.h: New file.
4722 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4724 * linux-tdep.c (linux_make_corefile_notes): Remove call to
4725 `gdbarch_elfcore_write_linux_prpsinfo'.
4726 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
4728 (elf_internal_linux_prpsinfo): Remove declaration.
4729 * gdbarch.h: Regenerate.
4730 * gdbarch.c: Regenerate.
4732 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4734 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
4735 `set_gdbarch_elfcore_write_linux_prpsinfo'.
4737 2017-10-11 Pedro Alves <palves@redhat.com>
4739 * breakpoint.c (reattach_breakpoints): Delete.
4740 * breakpoint.h (reattach_breakpoints): Delete.
4742 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
4744 * symfile.c (registered_sym_fns): Make struct, not typedef.
4745 (DEF_VEC_O (registered_sym_fns)): Remove.
4746 (symtab_fns): Change type to std::vector.
4747 (add_symtab_fns): Adjust.
4748 (find_sym_fns): Adjust.
4750 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
4752 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
4753 * arc-tdep.h (arc_arch_is_em): New function.
4754 (arc_arch_is_hs): Likewise.
4756 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
4758 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
4759 parentheses in the declaration.
4760 (macro_lookup_inclusion): Likewise.
4761 (macro_lookup_definition): Likewise.
4762 * p-lang.h (pascal_builtin_types): Likewise.
4763 * tui/tui-data.c (tui_win_list): Likewise.
4764 * tui/tui-data.h (tui_win_list): Likewise.
4765 * utils.h (make_cleanup_free_section_addr_info): Likewise.
4767 2017-10-11 Mark Rages <markrages@gmail.com>
4769 * target-memory.c (block_boundaries): Fix for block address not
4770 aligned on block size.
4772 2017-10-10 Pedro Alves <palves@redhat.com>
4773 Tom Tromey <tom@tromey.com>
4775 * breakpoint.c (struct captured_breakpoint_query_args)
4776 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
4777 (print_breakpoint): New.
4778 * breakpoint.h (print_breakpoint): Declare.
4779 * common/common-exceptions.h (enum return_reason): Remove
4780 references to catch_exceptions.
4781 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
4783 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
4784 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
4786 * gdbthread.h (thread_select): Declare.
4787 * mi/mi-cmd-break.c: Don't include gdb.h.
4788 (breakpoint_notify): Use print_breakpoint.
4789 * mi/mi-cmd-catch.c: Don't include gdb.h.
4790 * mi/mi-interp.c: Don't include gdb.h.
4791 (mi_print_breakpoint_for_event): New.
4792 (mi_breakpoint_created, mi_breakpoint_modified): Use
4793 mi_print_breakpoint_for_event.
4794 * mi/mi-main.c: Don't include gdb.h.
4795 (mi_cmd_thread_select): Parse the global thread ID here. Use
4796 thread_select instead of gdb_thread_select.
4797 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
4798 of using gdb_list_thread_ids.
4799 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
4801 (remote_fileio_request): Use TRY/CATCH instead of
4803 * symfile-mem.c (struct symbol_file_add_from_memory_args)
4804 (symbol_file_add_from_memory_wrapper): Delete.
4805 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
4806 * thread.c: Don't include gdb.h.
4807 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
4808 (thread_alive): Use thread_select.
4809 (do_captured_thread_select): Delete, parts salvaged as ...
4810 (thread_select): ... this new function.
4811 (gdb_thread_select): Delete.
4813 2017-10-10 Pedro Alves <palves@redhat.com>
4814 Tom Tromey <tom@tromey.com>
4816 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
4818 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
4819 No longer macros. Instead ...
4820 (enum wp_check_result): They're now values of this new
4822 (watchpoint_check): Change return type to wp_check_result and
4823 parameter type to bpstat.
4824 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
4825 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
4826 catch_errors. Reverse logic of watchpoint_check call.
4827 (breakpoint_re_set_one): Now returns void and takes a breakpoint
4828 pointer as parameter.
4829 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
4830 * common/common-exceptions.c (throw_exception_sjlj): Update
4831 comments to avoid mentioning catch_errors.
4832 * exceptions.c (catch_errors): Delete.
4833 * exceptions.h: Update comments to avoid mentioning catch_errors.
4834 (catch_errors_ftype, catch_errors): Delete.
4835 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
4836 (hook_stop_stub): Delete.
4837 (restore_selected_frame): Change return type to void, and
4838 parameter type to const frame_id &.
4839 (restore_infcall_control_state): Use TRY/CATCH instead of
4841 * main.c (captured_command_loop): Return void and remove
4842 parameter. Remove references to catch_errors.
4843 (captured_main): Use TRY/CATCH instead of catch_errors.
4844 * objc-lang.c (objc_submethod_helper_data)
4845 (find_objc_msgcall_submethod_helper): Delete.
4846 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
4848 * record-full.c (record_full_message): Return void.
4849 (record_full_message_args, record_full_message_wrapper): Delete.
4850 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
4851 instead of catch_errors.
4852 * solib-aix.c (solib_aix_open_symbol_file_object): Change
4853 parameter type to int.
4854 * solib-darwin.c (open_symbol_file_object): Ditto.
4855 * solib-dsbt.c (open_symbol_file_object): Ditto.
4856 * solib-frv.c (open_symbol_file_object): Ditto.
4857 * solib-svr4.c (open_symbol_file_object): Ditto.
4858 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
4859 * solib.c (update_solib_list): Use TRY/CATCH instead of
4861 * solist.h (struct target_so_ops) <open_symbol_file_object>:
4863 * symmisc.c (struct print_symbol_args): Remove.
4864 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
4865 (print_symbol): Change type.
4866 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
4867 and remove parameters.
4868 (catch_errors): New.
4869 (get_windows_debug_event): Adjust.
4871 2017-10-09 Tom Tromey <tom@tromey.com>
4873 * mi/mi-main.c (free_splay_tree): Remove.
4874 (list_available_thread_groups): Use splay_tree_up.
4875 * common/gdb_splay_tree.h: New file.
4877 2017-10-09 Tom Tromey <tom@tromey.com>
4879 * mi/mi-main.c (do_nothing): Remove.
4880 (list_available_thread_groups): Update.
4882 2017-10-09 Pedro Alves <palves@redhat.com>
4884 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
4885 reading registers when switching context.
4887 2017-10-09 John Baldwin <jhb@FreeBSD.org>
4889 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
4890 (fbsd_convert_siginfo): Likewise.
4891 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
4893 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
4895 * configure.ac (try_guile_versions): Remove guile-2.2.
4896 * configure: Regenerate.
4898 2017-10-09 Tom Tromey <tom@tromey.com>
4900 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
4901 (COMPILE.pre): Use $(CXX).
4903 2017-10-09 Pedro Alves <palves@redhat.com>
4905 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4907 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4908 * cp-support.h (cp_remove_params): Now returns a
4909 gdb::unique_xmalloc_ptr.
4910 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
4911 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
4912 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
4913 returning a gdb::unique_xmalloc_ptr.
4914 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4915 * stack.c (find_frame_funname): Adjust to cp_remove_params
4916 returning a gdb::unique_xmalloc_ptr.
4918 2017-10-08 Tom Tromey <tom@tromey.com>
4920 * dwarf2read.c (dwarf2_get_dwz_file): Use
4921 gdb::unique_xmalloc_ptr.
4922 (find_slot_in_mapped_hash): Likewise.
4923 (dwarf2_physname): Likewise.
4924 (create_dwo_unit_in_dwp_v1): Use std::string.
4925 (create_dwo_unit_in_dwp_v2): Likewise.
4926 (lookup_dwo_cutu): Likewise.
4927 (inherit_abstract_dies): Use std::vector.
4928 (read_array_type): Likewise.
4929 (dwarf_decode_macros): Remove unused declaration.
4930 (unsigned_int_compar): Remove.
4931 (dwarf2_build_psymtabs_hard): Use scoped_restore.
4932 (psymtabs_addrmap_cleanup): Remove.
4934 2017-10-08 Tom Tromey <tom@tromey.com>
4936 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4937 * frame.h (frame_cleanup_after_sniffer): Declare.
4938 (frame_prepare_for_sniffer): Return void.
4939 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
4941 (frame_prepare_for_sniffer): Return void.
4943 2017-10-08 Tom Tromey <tom@tromey.com>
4945 * utils.h (make_cleanup_value_free): Remove.
4946 * utils.c (do_value_free, struct cleanup): Remove.
4947 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
4949 * value.h (struct value_deleter): New.
4950 (gdb_value_up): New typedef.
4952 2017-10-08 Tom Tromey <tom@tromey.com>
4954 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
4955 (make_cleanup_free_search_symbols): Remove.
4956 (search_symbols): Return std::vector.
4957 (symbol_search::compare_search_syms): Now member of
4958 symbol_search. Change arguments.
4959 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
4960 (symtab_symbol_info, rbreak_command): Update.
4961 * symtab.h (struct symbol_search) <next>: Remove.
4963 (symbol_search::operator<): New function.
4964 (symbol_search::operator==): New function.
4965 (search_symbols): Remove std::vector.
4966 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
4967 (symbol_search::compare_search_syms): Declare.
4969 2017-10-06 Yao Qi <yao.qi@linaro.org>
4971 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
4972 arch/aarch64-insn.o.
4974 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
4976 2017-10-06 Yao Qi <yao.qi@linaro.org>
4978 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4979 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
4980 arch/arm-linux.o respectively.
4981 * configure.tgt: Likewise.
4983 2017-10-06 Yao Qi <yao.qi@linaro.org>
4985 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
4986 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
4988 2017-10-06 Pedro Alves <palves@redhat.com>
4990 * windows-nat.c: Include <algorithm>.
4992 2017-10-06 Yao Qi <yao.qi@linaro.org>
4994 * configure.tgt (i386_tobjs): New variable.
4995 (amd64_tobjs): New variable.
4996 Set $cpu_obs and $os_obs.
4998 2017-10-06 Yao Qi <yao.qi@linaro.org>
5000 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5001 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5002 (clean): Remove object files and dependency files.
5003 (distclean): Remove the directory.
5004 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5005 * configure: Re-generated.
5006 * configure.tgt: Replace amd64.o with arch/amd64.o.
5008 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5011 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5014 2017-10-05 Pedro Alves <palves@redhat.com>
5016 * linux-nat.c (linux_child_follow_fork): When following the parent
5017 and detaching the child, consult the parent thread's architecture
5018 instead of the child's.
5020 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5022 * ax.h: Do not include "doublest.h".
5023 (union agent_val): Remove.
5025 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5027 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5028 (decimal_to_string): Return std::string object.
5029 (decimal_from_string): Accept std::string object. Return bool.
5030 (decimal_from_integral, decimal_from_doublest): Remove.
5031 (decimal_from_longest): Add prototype.
5032 (decimal_from_ulongest): Likewise.
5033 (decimal_to_longest): Likewise.
5034 (decimal_from_doublest): Likewise.
5035 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5036 (MAX_DECIMAL_STRING): Move here.
5037 (decimal_to_string): Return std::string object.
5038 (decimal_from_string): Accept std::string object. Return bool.
5039 (decimal_from_integral): Remove, replace by ...
5040 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5041 (decimal_to_longest): New function.
5042 (decimal_from_floating): Remove, replace by ...
5043 (decimal_from_doublest): ... this new function.
5044 (decimal_to_doublest): Update to new decimal_to_string interface.
5046 * value.c (unpack_long): Use decimal_to_longest.
5047 * valops.c (value_cast): Use decimal_from_doublest instead of
5048 decimal_from_floating. Use decimal_from_[u]longest isntead of
5049 decimal_from_integral.
5050 * valarith.c (value_args_as_decimal): Likewise.
5051 * valprint.c (print_decimal_floating): Update to new
5052 decimal_to_string interface.
5053 * printcmd.c (printf_decfloat): Likewise.
5054 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5056 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5058 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5059 * gdbtypes.c: Include "floatformat.h".
5060 * value.c: Likewise.
5061 * m68k-tdep.c: Likewise.
5063 * findvar.c: Do not include "floatformat.h".
5064 * amd64-darwin-tdep.c: Likewise.
5065 * arm-linux-tdep.c: Likewise.
5066 * i386-darwin-tdep.c: Likewise.
5067 * i387-tdep.c: Likewise.
5068 * m68k-linux-tdep.c: Likewise.
5069 * mep-tdep.c: Likewise.
5070 * mips-tdep.c: Likewise.
5071 * nios2-tdep.c: Likewise.
5072 * s390-linux-tdep.c: Likewise.
5073 * sparc-obsd-tdep.c: Likewise.
5074 * sparc-tdep.c: Likewise.
5075 * sparc64-tdep.c: Likewise.
5076 * spu-tdep.c: Likewise.
5077 * tic6x-tdep.c: Likewise.
5078 * tilegx-tdep.c: Likewise.
5079 * vax-tdep.c: Likewise.
5080 * xstormy16-tdep.c: Likewise.
5081 * xtensa-tdep.c: Likewise.
5083 * top.c: Do not include "doublest.h".
5084 * aarch64-tdep.c: Likewise.
5085 * alpha-tdep.c: Likewise.
5086 * arm-linux-tdep.c: Likewise.
5087 * m68k-linux-tdep.c: Likewise.
5088 * tilegx-tdep.c: Likewise.
5089 * xstormy16-tdep.c: Likewise.
5091 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5093 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5094 (mipsn32_fbsd_sigframe): Define.
5095 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5096 for FreeBSD/mipsn32.
5098 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5100 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5103 2017-10-05 Tristan Gingold <tgingold@free.fr>
5105 * MAINTAINERS (Misc): Update my email address.
5107 2017-10-04 Pedro Alves <palves@redhat.com>
5109 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5110 it instead of target_gdbarch.
5111 (get_remote_state, get_remote_packet_size): Adjust
5112 get_remote_arch_state calls, passing down target_gdbarch
5114 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5115 'gdbarch' and use it instead of target_gdbarch.
5116 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5117 passing down target_gdbarch explicitly.
5118 (struct stop_reply) <arch>: New field.
5119 (remote_parse_stop_reply): Use the stopped thread's architecture,
5120 not the current inferior's. Save the architecture in the
5122 (process_stop_reply): Use the stop reply's architecture.
5123 (process_g_packet, remote_fetch_registers)
5124 (remote_prepare_to_store, store_registers_using_G)
5125 (remote_store_registers): Adjust get_remote_arch_state calls,
5126 using the regcache's architecture.
5127 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5128 passing down target_gdbarch explicitly.
5129 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5130 beneath instead of calling target_gdbarch.
5131 * target.c (default_thread_architecture): Use the specified
5132 inferior's architecture, instead of the current inferior's
5133 architecture (via target_gdbarch).
5135 2017-10-04 Pedro Alves <palves@redhat.com>
5137 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5139 (regcache_print): Handle !target_has_registers here instead.
5141 2017-10-04 Pedro Alves <palves@redhat.com>
5143 * frame.c (create_test_frame): Delete.
5144 * frame.h (create_test_frame): Delete.
5145 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5146 (class regcache_test): Delete.
5147 (test_target_has_registers, test_target_has_stack)
5148 (test_target_has_memory, test_target_prepare_to_store)
5149 (test_target_store_registers): New functions.
5150 (test_target_ops): New class.
5151 (register_to_value_test): Error out if there's already a
5152 process_stratum (or higher) target pushed. Create a fuller mock
5153 environment, with mock target_ops, inferior, address space, thread
5155 * progspace.c (struct address_space): Move to ...
5156 * progspace.h (struct address_space): ... here.
5157 * regcache.h (regcache::~regcache, regcache::raw_write)
5158 [GDB_SELF_TEST]: No longer virtual.
5160 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5162 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5164 2017-10-04 Pedro Alves <palves@redhat.com>
5166 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5167 out of 'between TRY and CATCH'.
5169 2017-10-04 Pedro Alves <palves@redhat.com>
5171 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5172 * common/common-exceptions.h (TRY): Open an outermost scope.
5173 Expand intro comment.
5175 (END_CATCH): Close the outermost scope.
5176 * completer.c (complete_line_internal): Add missing END_CATCH.
5178 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5180 * NEWS (Changes since GDB 8.0): Add entry about new
5181 'set-cwd-on-gdbserver' feature.
5182 (New remote packets): Add entry for QSetWorkingDir.
5183 * common/common-inferior.h (set_inferior_cwd): New prototype.
5184 * infcmd.c (set_inferior_cwd): Remove "static".
5185 (show_cwd_command): Expand text to include remote debugging.
5186 * remote.c: Add PACKET_QSetWorkingDir.
5187 (remote_protocol_features) <QSetWorkingDir>: New entry for
5188 PACKET_QSetWorkingDir.
5189 (extended_remote_set_inferior_cwd): New function.
5190 (extended_remote_create_inferior): Call
5191 "extended_remote_set_inferior_cwd".
5192 (_initialize_remote): Call "add_packet_config_cmd" for
5195 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5197 * NEWS (New commands): Mention "set/show cwd".
5198 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5199 "cd" command's help text.
5200 * common/common-inferior.h (get_inferior_cwd): New prototype.
5201 * infcmd.c (inferior_cwd_scratch): New global variable.
5202 (set_inferior_cwd): New function.
5203 (get_inferior_cwd): Likewise.
5204 (set_cwd_command): Likewise.
5205 (show_cwd_command): Likewise.
5206 (_initialize_infcmd): Add "set/show cwd" commands.
5207 * inferior.h (class inferior) <cwd>: New field.
5208 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5209 (fork_inferior): Change inferior's cwd before its execution.
5210 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5213 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5215 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5216 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5217 (COMMON_OBS): Add gdb_tilde_expand.o.
5218 * common/gdb_tilde_expand.c: New file.
5219 * common/gdb_tilde_expand.h: Likewise.
5221 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5223 * gdbarch.sh (objfile): Remove duplicate declaration.
5224 * gdbarch.h: Regenerate.
5226 2017-10-03 Tom Tromey <tom@tromey.com>
5228 * utils.c (internal_vproblem): Use string_vprintf.
5230 2017-10-03 Tom Tromey <tom@tromey.com>
5232 * printcmd.c (info_symbol_command): Use std::string.
5234 2017-10-03 Tom Tromey <tom@tromey.com>
5236 * top.c (gdb_safe_append_history): Use std::string.
5238 2017-10-03 Tom Tromey <tom@tromey.com>
5240 * event-top.c (stdin_event_handler): Update.
5241 * main.c (captured_main_1): Update.
5242 * top.h (make_delete_ui_cleanup): Remove.
5243 (struct ui): Add constructor and destructor.
5244 (new_ui, delete_ui): Remove.
5245 * top.c (make_delete_ui_cleanup): Remove.
5246 (new_ui_command): Use std::unique_ptr.
5247 (delete_ui_cleanup): Remove.
5248 (ui::ui): Rename from new_ui. Update.
5250 (ui::~ui): Rename from delete_ui. Update.
5252 2017-10-03 Tom Tromey <tom@tromey.com>
5254 * symfile.c (load_progress): Use gdb::byte_vector.
5256 2017-10-03 Tom Tromey <tom@tromey.com>
5258 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5260 * printcmd.c (x_command): Remove unused declaration.
5261 * symfile.c (symbol_file_command): Remove unused declaration.
5263 2017-10-03 Tom Tromey <tom@tromey.com>
5265 * utils.c (internal_vproblem): Use std::string.
5266 (defaulted_query): Likewise.
5268 2017-10-03 Tom Tromey <tom@tromey.com>
5270 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5271 * top.c (execute_command_to_string): Update.
5272 * utils.c (make_cleanup_restore_page_info): Remove.
5273 (do_restore_page_info_cleanup): Remove.
5274 (set_batch_flag_and_restore_page_info):
5276 (make_cleanup_restore_page_info): Remove.
5277 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5278 (~set_batch_flag_and_restore_page_info): New
5279 (make_cleanup_restore_uinteger): Remove.
5280 (make_cleanup_restore_integer): Remove.
5281 (struct restore_integer_closure): Remove.
5282 (restore_integer): Remove.
5283 * utils.h (struct set_batch_flag_and_restore_page_info): New
5285 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5286 (make_cleanup_restore_page_info): Remove.
5287 (make_cleanup_restore_uinteger) Remove.
5288 (make_cleanup_restore_integer) Remove.
5290 2017-10-03 Tom Tromey <tom@tromey.com>
5292 * record-full.h (record_full_gdb_operation_disable_set): Return
5293 scoped_restore_tmpl<int>.
5294 * infrun.c (adjust_pc_after_break): Update.
5295 (handle_signal_stop): Update.
5296 * record-full.c (record_full_gdb_operation_disable_set): Return
5297 scoped_restore_tmpl<int>.
5298 (record_full_wait_1, record_full_insert_breakpoint)
5299 (record_full_remove_breakpoint, record_full_save)
5300 (record_full_goto_insn): Update.
5302 2017-10-02 Tom Tromey <tom@tromey.com>
5305 * rust-lang.c (rust_val_print_str): New function.
5306 (val_print_struct): Call it.
5307 (rust_subscript): Preserve name of slice type.
5309 2017-10-02 Tom Tromey <tom@tromey.com>
5311 * rust-lang.c (rust_subscript): Handle slices in
5312 EVAL_AVOID_SIDE_EFFECTS case.
5314 2017-10-02 Tom Tromey <tom@tromey.com>
5316 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5318 2017-10-02 Tom Tromey <tom@tromey.com>
5320 * rust-lang.h (rust_slice_type): Add "extern".
5322 2017-10-02 Tom Tromey <tom@tromey.com>
5323 Pedro Alves <palves@redhat.com>
5325 * ada-lang.h (ada_exc_info::operator<): Make const.
5326 (ada_exc_info::operator==): Make const.
5327 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5330 2017-09-29 Tom Tromey <tom@tromey.com>
5332 * target.c (read_whatever_is_readable): Change type of "result".
5334 (free_memory_read_result_vector): Remove.
5335 (read_memory_robust): Change return type. Update.
5336 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5337 bin2hex, std::string.
5338 * target.h (memory_read_result_s): Remove typedef.
5339 (free_memory_read_result_vector): Remove.
5340 (read_memory_robust): Return std::vector.
5342 2017-09-29 Tom Tromey <tom@tromey.com>
5344 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5346 2017-09-29 Tom Tromey <tom@tromey.com>
5348 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5349 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5350 operator< and operator==.
5351 (ada_exceptions_list): Return a std::vector.
5352 * ada-lang.c (ada_exc_info::operator<): Rename from
5353 compare_ada_exception_info.
5354 (ada_exc_info::operator==): New.
5355 (sort_remove_dups_ada_exceptions_list): Change type of
5357 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5358 (ada_add_global_exceptions): Likewise.
5359 (ada_exceptions_list_1): Return a std::vector.
5360 (ada_exceptions_list): Likewise.
5362 2017-09-29 Tom Tromey <tom@tromey.com>
5364 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5366 (print_one_inferior): Update.
5367 (free_vector_of_ints): Remove.
5368 (list_available_thread_groups): Change "ids" to std::set.
5369 (mi_cmd_list_thread_groups): Update.
5370 (struct collect_cores_data) <core>: Now a std::set.
5371 (collect_cores): Update.
5373 (print_one_inferior): Update.
5375 2017-09-29 Tom Tromey <tom@tromey.com>
5377 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5378 (mi_execute_async_cli_command): Likewise.
5379 (mi_cmd_trace_frame_collected): Use field_fmt.
5381 2017-09-29 Tom Tromey <tom@tromey.com>
5383 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5386 2017-09-29 Tom Tromey <tom@tromey.com>
5388 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5390 2017-09-29 Tom Tromey <tom@tromey.com>
5392 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5394 2017-09-29 Tom Tromey <tom@tromey.com>
5396 * varobj.h (varobj_gen_name): Return std::string.
5397 * varobj.c (varobj_gen_name): Return std::string.
5398 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5399 (mi_cmd_var_delete): Don't copy "name".
5401 2017-09-29 Tom Tromey <tom@tromey.com>
5403 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5404 (mi_cmd_break_insert_1): Update.
5406 2017-09-29 Tom Tromey <tom@tromey.com>
5408 * target.h (make_scoped_defer_target_commit_resume): Update.
5409 * target.c (make_scoped_defer_target_commit_resume): Rename from
5410 make_cleanup_defer_target_commit_resume. Return a
5412 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5414 2017-09-29 Tom Tromey <tom@tromey.com>
5416 * main.c (captured_main_1): Remove unused declaration.
5417 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5419 2017-09-29 Tom Tromey <tom@tromey.com>
5421 * symtab.c (search_symbols): Remove unused outer cleanup.
5422 (make_source_files_completion_list): Remove unused declaration.
5424 2017-09-29 Tom Tromey <tom@tromey.com>
5426 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5428 2017-09-29 Tom Tromey <tom@tromey.com>
5430 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5433 2017-09-29 Tom Tromey <tom@tromey.com>
5435 * complaints.c (vcomplaint): Use std::string.
5437 2017-09-29 Tom Tromey <tom@tromey.com>
5439 * tracepoint.c (trace_variable_command): Use std::string.
5440 (encode_actions_1): Remove unused declarations.
5441 (create_tsv_from_upload): Use std::string.
5443 2017-09-29 Tom Tromey <tom@tromey.com>
5445 * cp-support.c (gdb_demangle): Use std::string.
5447 2017-09-29 Tom Tromey <tom@tromey.com>
5449 * stack.c (parse_frame_specification): Use std::string
5450 (info_frame_command): Use gdb::unique_xmalloc_ptr.
5452 2017-09-29 Tom Tromey <tom@tromey.com>
5454 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
5456 2017-09-29 Tom Tromey <tom@tromey.com>
5458 * utils.c (vfprintf_maybe_filtered): Use std::string.
5459 (vfprintf_unfiltered): Likewise.
5461 2017-09-29 Tom Tromey <tom@tromey.com>
5463 * event-top.c (top_level_prompt): Return std::string.
5464 (display_gdb_prompt): Update.
5466 2017-09-29 Tom Tromey <tom@tromey.com>
5468 * unittests/common-utils-selftests.c (format): New function.
5469 (string_vprintf_tests): New function.
5470 (_initialize_common_utils_selftests): Register new tests.
5471 * common/common-utils.c (string_vprintf): New function.
5472 * common/common-utils.h (string_vprintf): Declare.
5474 2017-09-29 Pedro Alves <palves@redhat.com>
5476 * common/rsp-low.c (unpack_varlen_hex): Constify.
5477 * common/rsp-low.h (unpack_varlen_hex): Constify.
5478 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5480 * remote.c (remote_set_permissions, read_ptid)
5481 (remote_current_thread, remote_get_threads_with_qthreadinfo)
5482 (remote_static_tracepoint_marker_at)
5483 (remote_static_tracepoint_markers_by_strid)
5484 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
5485 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
5486 (parse_tracepoint_definition, parse_tsv_definition)
5487 (parse_static_tracepoint_marker_definition): Constify.
5488 * tracepoint.h (parse_static_tracepoint_marker_definition)
5489 (parse_trace_status, parse_tracepoint_status)
5490 (parse_tracepoint_definition, parse_tsv_definition): Constify.
5492 2017-09-29 Pedro Alves <palves@redhat.com>
5494 * remote.c (target_buf, target_buf_size): Delete.
5495 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
5496 Use the connection's packet buffer instead.
5497 All callers adjusted.
5498 (_initialize_remote): Remove references to target_buf and
5501 2017-09-28 Pedro Alves <palves@redhat.com>
5503 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5504 unittests/common-utils-selftests.c.
5505 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
5506 (COMMON_OBS): Remove utils-selftests.o.
5507 * utils-selftests.c: Move to ...
5508 * unittests/common-utils-selftests.c: ... here and rename self
5509 test to "string_printf".
5511 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
5513 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
5514 having NULL cus or tus.
5516 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5518 * arm-tdep.c: (convert_from_extended): Remove.
5519 (convert_to_extended): Likewise.
5520 (arm_extract_return_value): Use convert_typed_floating.
5521 (arm_store_return_value): Likewise.
5523 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5524 * sh-tdep.c: Do not include "floatformat.h".
5525 (sh_littlebyte_bigword_type): New function.
5526 (sh_register_convert_to_virtual): Use convert_typed_floating.
5527 (sh_register_convert_to_raw): Likewise.
5528 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5529 (sh64_littlebyte_bigword_type): New function.
5530 (sh64_extract_return_value): Use convert_typed_floating.
5531 (sh64_register_convert_to_virtual): Likewise.
5532 (sh64_register_convert_to_raw): Likewise.
5534 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5536 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
5537 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5539 * gdbtypes.h (union type_specific): Make field floatformat hold
5540 just a single struct floatformat, not an array.
5541 (floatformat_from_type): Move here.
5542 * gdbtypes.c (floatformat_from_type): Move here. Update to
5543 changed TYPE_FLOATFORMAT definition.
5544 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
5545 (recursive_dump_type): Likewise.
5546 (init_float_type): Install correct floatformat for byte order.
5547 (arch_float_type): Likewise.
5549 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5551 * gdbtypes.c (init_type): Change incoming argument from
5552 length-in-bytes to length-in-bits. Assert length is a
5553 multiple of TARGET_CHAR_BITS.
5554 (arch_type, arch_flags_type): Likewise.
5555 (init_integer_type): Update call to init_type.
5556 (init_character_type): Likewise.
5557 (init_boolean_type): Likewise.
5558 (init_float_type): Likewise.
5559 (init_decfloat_type): Likewise.
5560 (init_complex_type): Likewise.
5561 (init_pointer_type): Likewise.
5562 (objfile_type): Likewise.
5563 (arch_integer_type): Update call to arch_type.
5564 (arch_character_type): Likewise.
5565 (arch_boolean_type): Likewise.
5566 (arch_float_type): Likewise.
5567 (arch_decfloat_type): Likewise.
5568 (arch_complex_type): Likewise.
5569 (arch_pointer_type): Likewise.
5570 (gdbtypes_post_init): Likewise.
5572 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5573 (read_base_type): Likewise.
5574 * mdebugread.c (basic_type): Likewise.
5575 * stabsread.c (dbx_init_float_type): Likewise.
5576 (rs6000_builtin_type): Likewise.
5577 (read_range_type): Likewise. Also, fix call to init_integer_type
5578 with erroneous length argument.
5580 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5581 * d-lang.c (build_d_types): Likewise.
5582 * f-lang.c (build_fortran_types): Likewise.
5583 * go-lang.c (build_go_types): Likewise.
5584 * opencl-lang.c (build_opencl_types): Likewise.
5585 * jit.c (finalize_symtab): Likewise.
5586 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5587 (build_std_type_info_type): Likewise.
5588 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5589 update call to arch_flags_type.
5591 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5593 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5594 * windows-tdep.c (windows_get_tlb_type): Likewise.
5596 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
5597 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5598 * m32c-tdep.c (make_types): Likewise.
5599 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5600 (rl78_psw_type): Update call to arch_flags_type.
5601 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
5602 * rx-tdep.c (rx_psw_type): Likewise.
5603 (rx_fpsw_type): Likewise.
5604 * sparc-tdep.c (sparc_psr_type): Likewise.
5605 (sparc_fsr_type): Likewise.
5606 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
5607 (sparc64_ccr_type): Likewise.
5608 (sparc64_fsr_type): Likewise.
5609 (sparc64_fprs_type): Likewise.
5611 2017-09-27 Tom Tromey <tom@tromey.com>
5613 * findcmd.c (find_command): Constify.
5615 2017-09-27 Tom Tromey <tom@tromey.com>
5617 * ada-tasks.c (task_command_1, task_command): Constify.
5619 2017-09-27 Tom Tromey <tom@tromey.com>
5621 * symtab.c (maintenance_print_symbol_cache)
5622 (maintenance_flush_symbol_cache)
5623 (maintenance_print_symbol_cache_statistics): Constify.
5625 2017-09-27 Tom Tromey <tom@tromey.com>
5627 * inferior.c (detach_inferior_command, kill_inferior_command)
5628 (inferior_command): Constify.
5630 2017-09-27 Tom Tromey <tom@tromey.com>
5632 * regcache.c (regcache_print, maintenance_print_registers)
5633 (maintenance_print_raw_registers)
5634 (maintenance_print_cooked_registers)
5635 (maintenance_print_register_groups)
5636 (maintenance_print_remote_registers): Constify.
5638 2017-09-27 Tom Tromey <tom@tromey.com>
5640 * printcmd.c (map_display_numbers, undisplay_command)
5641 (enable_disable_display_command, enable_display_command)
5642 (disable_display_command): Constify.
5644 2017-09-27 Tom Tromey <tom@tromey.com>
5646 * breakpoint.h (delete_command): Don't declare.
5647 * breakpoint.c (delete_command, enable_once_command)
5648 (enable_count_command, enable_delete_command, breakpoint_1)
5649 (maintenance_info_breakpoints, stopin_command, stopat_command)
5650 (delete_command, delete_trace_command, save_breakpoints)
5651 (save_breakpoints_command, save_tracepoints_command): Constify.
5653 2017-09-27 Tom Tromey <tom@tromey.com>
5655 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5656 (skip_ws, extract_identifier, macro_define_command)
5657 (macro_undef_command, macro_list_command): Constify.
5659 2017-09-27 Tom Tromey <tom@tromey.com>
5661 * infcmd.c (environment_info, set_environment_command)
5662 (unset_environment_command, path_info, info_proc_cmd_1)
5663 (info_proc_cmd_mappings, info_proc_cmd_stat)
5664 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
5665 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
5667 2017-09-27 Tom Tromey <tom@tromey.com>
5669 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
5672 2017-09-27 Tom Tromey <tom@tromey.com>
5674 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
5676 2017-09-27 Tom Tromey <tom@tromey.com>
5678 * demangle.c (demangle_command): Constify.
5680 2017-09-27 Tom Tromey <tom@tromey.com>
5682 * progspace.c (maintenance_info_program_spaces_command):
5685 2017-09-27 Tom Tromey <tom@tromey.com>
5687 * compile/compile.c (check_raw_argument, compile_file_command)
5688 (compile_code_command, compile_print_command): Constify.
5690 2017-09-27 Tom Tromey <tom@tromey.com>
5692 * reggroups.c (maintenance_print_reggroups): Constify.
5694 2017-09-27 Tom Tromey <tom@tromey.com>
5696 * dwarf2read.c (save_gdb_index_command): Constify.
5698 2017-09-27 Tom Tromey <tom@tromey.com>
5700 * stap-probe.c (info_probes_stap_command): Constify.
5702 2017-09-27 Tom Tromey <tom@tromey.com>
5704 * fork-child.c (unset_exec_wrapper_command): Constify.
5706 2017-09-27 Tom Tromey <tom@tromey.com>
5708 * btrace.c (get_uint, get_context_size, no_chunk)
5709 (maint_btrace_packet_history_cmd)
5710 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5711 (maint_info_btrace_cmd): Constify.
5713 2017-09-27 Tom Tromey <tom@tromey.com>
5715 * reverse.c (delete_bookmark_command): Constify.
5717 2017-09-27 Tom Tromey <tom@tromey.com>
5719 * remote.c (set_memory_packet_size)
5720 (set_memory_write_packet_size, show_memory_write_packet_size)
5721 (set_memory_read_packet_size, show_memory_read_packet_size)
5722 (compare_sections_command, packet_command, remote_put_command)
5723 (remote_get_command, remote_delete_command): Constify.
5725 2017-09-27 Tom Tromey <tom@tromey.com>
5727 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
5728 (set_mipsfpu_double_command, set_mipsfpu_none_command)
5729 (set_mipsfpu_auto_command): Constify.
5731 2017-09-27 Tom Tromey <tom@tromey.com>
5733 * cli/cli-cmds.h (cd_command): Constify.
5734 * cli/cli-cmds.c (cd_command): Constify.
5736 2017-09-27 Tom Tromey <tom@tromey.com>
5738 * thread.c (thread_name_command, thread_find_command): Constify.
5740 2017-09-27 Tom Tromey <tom@tromey.com>
5742 * probe.c (enable_probes_command, disable_probes_command):
5745 2017-09-27 Tom Tromey <tom@tromey.com>
5747 * symfile.c (symbol_file_command): Constify.
5748 * gdbcore.h (deprecated_file_changed_hook): Constify.
5749 * exec.c (deprecated_file_changed_hook, exec_file_command)
5750 (file_command): Constify.
5751 * defs.h (symbol_file_command): Constify.
5753 2017-09-27 Tom Tromey <tom@tromey.com>
5755 * remote-fileio.c (set_system_call_allowed)
5756 (show_system_call_allowed): Constify.
5758 2017-09-27 Tom Tromey <tom@tromey.com>
5760 * tracepoint.c (delete_trace_variable_command)
5761 (tfind_end_command, tfind_start_command, tfind_pc_command)
5762 (tfind_tracepoint_command, tfind_line_command)
5763 (tfind_range_command, tfind_outside_command): Constify.
5765 2017-09-27 Tom Tromey <tom@tromey.com>
5767 * ax-gdb.c (maint_agent_printf_command, agent_command)
5768 (agent_eval_command): Constify.
5770 2017-09-27 Tom Tromey <tom@tromey.com>
5772 * tracepoint.c (info_scope_command): Constify.
5773 * python/python.c (gdbpy_decode_line): Constify.
5774 * python/py-breakpoint.c (bppy_init): Constify.
5775 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
5776 * location.h: (new_linespec_location)
5777 (string_to_event_location_basic, string_to_event_location):
5779 * location.c (new_linespec_location)
5780 (string_to_event_location_basic, string_to_event_location):
5782 * linespec.h (decode_line_with_current_source)
5783 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
5784 * linespec.c (linespec_lex_to_end)
5785 (decode_line_with_current_source)
5786 (decode_line_with_last_displayed): Constify.
5787 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
5789 * cli/cli-cmds.c (edit_command, list_command): Constify.
5790 * breakpoint.h (until_break_command, watch_command_wrapper)
5791 (awatch_command_wrapper, rwatch_command_wrapper)
5792 (init_ada_exception_breakpoint): Constify.
5793 * breakpoint.c (break_command_1, dprintf_command)
5794 (break_range_command, watch_command_wrapper)
5795 (rwatch_command_wrapper, awatch_command_wrapper)
5796 (until_break_command, init_ada_exception_breakpoint)
5797 (strace_marker_create_sals_from_location, trace_command)
5798 (ftrace_command, strace_command, struct tracepoint): Constify.
5799 * ax-gdb.c (agent_command_1): Constify.
5800 * ada-lang.c (ada_exception_sal): Constify.
5802 2017-09-27 Tom Tromey <tom@tromey.com>
5804 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
5805 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
5806 (get_context_size, no_chunk, get_insn_history_modifiers)
5807 (cmd_record_insn_history, get_call_history_modifiers)
5808 (cmd_record_call_history): Constify.
5810 2017-09-27 Tom Tromey <tom@tromey.com>
5812 * source.c (show_substitute_path_command)
5813 (unset_substitute_path_command, set_substitute_path_command):
5816 2017-09-27 Tom Tromey <tom@tromey.com>
5818 * typeprint.c (maintenance_print_type): Constify.
5819 * maint.c (maintenance_dump_me, maintenance_demangle)
5820 (maintenance_time_display, maintenance_info_sections)
5821 (maintenance_print_statistics, maintenance_deprecate)
5822 (maintenance_undeprecate): Constify.
5823 (maintenance_do_deprecate): Constify. Use std::string.
5824 (maintenance_selftest): Constify.
5825 * gdbtypes.h (maintenance_print_type): Constify.
5827 2017-09-27 Tom Tromey <tom@tromey.com>
5829 * hppa-tdep.c (unwind_command): Constify.
5831 2017-09-27 Tom Tromey <tom@tromey.com>
5833 * target-descriptions.c (unset_tdesc_filename_cmd)
5834 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
5837 2017-09-27 Tom Tromey <tom@tromey.com>
5839 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
5841 2017-09-27 Tom Tromey <tom@tromey.com>
5843 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
5845 2017-09-27 Tom Tromey <tom@tromey.com>
5847 * tui/tui-regs.c (tui_reg_command): Constify.
5849 2017-09-27 Tom Tromey <tom@tromey.com>
5851 * skip.c (skip_file_command, skip_function_command)
5852 (skip_enable_command, skip_disable_command, skip_delete_command):
5855 2017-09-27 Tom Tromey <tom@tromey.com>
5857 * record-btrace.c (cmd_record_btrace_bts_start)
5858 (cmd_record_btrace_pt_start): Constify.
5860 2017-09-27 Tom Tromey <tom@tromey.com>
5862 * symmisc.c (maintenance_print_symbols)
5863 (maintenance_print_msymbols, maintenance_print_objfiles)
5864 (maintenance_info_symtabs, maintenance_check_symtabs)
5865 (maintenance_expand_symtabs, maintenance_info_line_tables):
5868 2017-09-27 Tom Tromey <tom@tromey.com>
5870 * top.c (new_ui_command): Constify.
5872 2017-09-27 Tom Tromey <tom@tromey.com>
5874 * symfile.c (add_symbol_file_command)
5875 (remove_symbol_file_command, list_overlays_command)
5876 (map_overlay_command, unmap_overlay_command)
5877 (overlay_auto_command, overlay_manual_command)
5878 (overlay_off_command, overlay_load_command): Constify.
5880 2017-09-27 Tom Tromey <tom@tromey.com>
5882 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
5883 (info_spu_mailbox_command, info_spu_dma_command)
5884 (info_spu_proxydma_command): Constify.
5886 2017-09-27 Tom Tromey <tom@tromey.com>
5888 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
5890 2017-09-27 Tom Tromey <tom@tromey.com>
5892 * cli/cli-script.c (user_defined_command): Constify.
5894 2017-09-27 Tom Tromey <tom@tromey.com>
5896 * cli/cli-dump.c (dump_memory_command, dump_value_command)
5897 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
5898 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
5899 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
5900 (dump_binary_value, append_binary_memory, append_binary_value):
5902 (struct dump_context) <func>: Constify.
5903 (add_dump_command): Update.
5905 2017-09-27 Tom Tromey <tom@tromey.com>
5907 * cli/cli-cmds.c (show_version, show_configuration)
5908 (source_command, show_user): Constify.
5910 2017-09-27 Tom Tromey <tom@tromey.com>
5912 * target.c (maintenance_print_target_stack): Constify.
5914 2017-09-27 Tom Tromey <tom@tromey.com>
5916 * interps.c (interpreter_exec_cmd): Constify.
5918 2017-09-27 Tom Tromey <tom@tromey.com>
5920 * record-full.c (cmd_record_full_restore): Constify.
5922 2017-09-27 Tom Tromey <tom@tromey.com>
5924 * memattr.c (enable_mem_command, disable_mem_command)
5925 (delete_mem_command): Constify.
5927 2017-09-27 Tom Tromey <tom@tromey.com>
5929 * value.c (show_convenience): Constify.
5931 2017-09-27 Tom Tromey <tom@tromey.com>
5933 * gdbcore.h (core_file_command): Update.
5934 * corefile.c (core_file_command): Constify.
5936 2017-09-27 Tom Tromey <tom@tromey.com>
5938 * user-regs.c (maintenance_print_user_registers): Constify.
5940 2017-09-27 Tom Tromey <tom@tromey.com>
5942 * cp-namespace.c (maintenance_cplus_namespace): Constify.
5944 2017-09-27 Tom Tromey <tom@tromey.com>
5946 * cp-support.c (first_component_command): Constify.
5948 2017-09-27 Tom Tromey <tom@tromey.com>
5950 * psymtab.c (maintenance_print_psymbols)
5951 (maintenance_info_psymtabs, maintenance_check_psymtabs):
5954 2017-09-27 Tom Tromey <tom@tromey.com>
5956 * windows-tdep.c (display_tib): Constify.
5958 2017-09-27 Tom Tromey <tom@tromey.com>
5960 * linux-fork.c (delete_checkpoint_command)
5961 (detach_checkpoint_command): Constify.
5963 2017-09-27 Tom Tromey <tom@tromey.com>
5965 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
5967 2017-09-27 Tom Tromey <tom@tromey.com>
5969 * arc-tdep.c (dump_arc_instruction_command): Constify.
5971 2017-09-27 Tom Tromey <tom@tromey.com>
5973 * valprint.c (set_radix, show_radix): Constify.
5975 2017-09-27 Tom Tromey <tom@tromey.com>
5977 * dtrace-probe.c (info_probes_dtrace_command): Constify.
5979 2017-09-27 Tom Tromey <tom@tromey.com>
5981 * command.h (not_just_help_class_command): Update.
5982 * cli/cli-decode.h (not_just_help_class_command): Update.
5983 * cli/cli-decode.c (not_just_help_class_command): Constify.
5985 2017-09-27 Tom Tromey <tom@tromey.com>
5987 * gdb_bfd.c (maintenance_info_bfds): Constify.
5989 2017-09-27 Tom Tromey <tom@tromey.com>
5991 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
5993 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
5994 (do_const_cfunc): New function.
5995 (cmd_cfunc_eq): New overload.
5996 (cli_user_command_p): Check do_const_cfunc.
5997 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
5999 * command.h (add_cmd): Add const overload and no-function
6001 (set_cmd_cfunc): Add const overload.
6002 (cmd_const_cfunc_ftype): Declare.
6003 (cmd_cfunc_eq): Add const overload.
6004 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6005 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6008 2017-09-27 Tom Tromey <tom@tromey.com>
6010 * macroexp.c (get_next_token_for_substitution): New function.
6011 (substitute_args): Call it. Check for __VA_OPT__.
6013 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6014 Pedro Alves <palves@redhat.com>
6016 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6017 producer_is_icc_lt_14.
6018 (producer_is_icc_lt_14): New function.
6019 (check_producer): Add code for checking version of ICC.
6020 (producer_is_icc): Move to producer.c.
6021 (read_structure_type): Restrict ICC workaround to ICC<14.
6022 * producer.c: Include selftest.h.
6023 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6025 * producer.h (producer_is_icc): New declaration.
6027 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6029 * Makefile.in (SFILES): Add producer.c.
6030 (COMMON_OBS): Add producer.o
6031 * amd64-tdep.c (producer.h): Add new include.
6032 * dwarf2read.c (producer.h): Add new include.
6033 * producer.c: New file.
6034 * producer.h: New file.
6035 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6037 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6040 2017-09-26 Matthias Klose <doko@ubuntu.com>
6042 * configure.ac: Search ncursesw before ncurses.
6043 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6044 * gdb_curses.h: Include <ncursesw/ncurses.h>
6045 * config.in, configure: Regenerate.
6047 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6050 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6052 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6053 Remove i386sol2 support.
6054 * configure.nat <i386sol2>: Remove.
6055 <sol2-64>: Fold into ...
6057 Move common settings to default section.
6059 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6060 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6061 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6062 <i[34567]86-*-solaris*>: Remove.
6063 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6065 * configure.ac: Remove wctype in libw check.
6066 (_MSE_INT_H): Don't define on Solaris 7-9.
6067 <solaris*>: Remove libthread_db.so.1 check.
6068 * configure: Regenerate.
6069 * config.in: Regenerate.
6071 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6072 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6073 (gdb_ps_size_t): Remove.
6074 Use base types in users.
6075 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6077 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6079 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6082 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6083 (adi_is_addr_mapped): Likewise.
6084 (PSR_ICC): Don't redefine.
6085 (PSR_IMPL): Likewise.
6087 2017-09-25 Tom Tromey <tom@tromey.com>
6089 * regcache.c (regcache::dump): Use string_printf.
6091 2017-09-25 Tom Tromey <tom@tromey.com>
6093 * regcache.c (class regcache_invalidator): New.
6094 (struct register_to_invalidate): Remove.
6095 (make_cleanup_regcache_invalidate): Remove.
6096 (regcache::raw_write): Use regcache_invalidator.
6098 2017-09-25 Tom Tromey <tom@tromey.com>
6100 * spu-tdep.c (spu2ppu_sniffer): Update.
6101 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6102 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6104 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6105 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6106 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6107 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6108 (frame_pop): Update.
6110 2017-09-25 Tom Tromey <tom@tromey.com>
6112 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6113 * regcache.h (regcache_xfree): Don't declare.
6114 * regcache.c (regcache_xfree): Remove.
6115 (do_regcache_xfree): Use delete.
6116 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6117 * linux-fork.c (free_fork): Use delete.
6118 (fork_save_infrun_state): Likewise.
6119 * jit.c (jit_dealloc_cache): Use delete.
6120 * infrun.c (discard_infcall_suspend_state): Use delete.
6122 2017-09-25 Tom Tromey <tom@tromey.com>
6124 * regcache.h (regcache_xmalloc): Don't declare.
6125 (regcache_raw_set_cached_value): Update comment.
6126 * regcache.c (regcache_xmalloc): Remove.
6127 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6128 * jit.c (jit_frame_sniffer): Use new.
6129 * frame.c (frame_save_as_regcache): Use new.
6131 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6133 * NEWS: Advertise support for guarded-storage registers on IBM z.
6135 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6137 * s390-linux-nat.c (have_regset_gs): New static variable.
6138 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6139 control block and guarded-storage broadcast control regsets.
6140 (s390_read_description): Detect whether the target has
6141 guarded-storage support, return appropriate tdesc.
6142 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6143 (features/s390x-gs-linux64.c): Likewise.
6144 (struct gdbarch_tdep) <have_gs>: New field.
6145 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6146 (s390_gsbc_regset): New variables.
6147 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6148 and s390_gsbc_regset, if applicable.
6149 (s390_core_read_description): Check whether core file was from a
6150 target with guarded-storage support; include appropriate regsets.
6151 (s390_gdbarch_init): Add registers for guarded-storage support.
6152 (_initialize_s390_tdep): Initialize new target descriptions that
6153 include registers for guarded-storage support.
6154 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6155 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6156 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6157 (S390_NUM_REGS): Adjust macro definition.
6158 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6159 (tdesc_s390x_gs_linux64): New declarations.
6161 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6163 * features/s390-gs-linux64.xml: New file.
6164 * features/s390-gs.xml: New file.
6165 * features/s390-gsbc.xml: New file.
6166 * features/s390x-gs-linux64.xml: New file.
6167 * features/Makefile (WHICH): Add s390-gs-linux64 and
6169 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6170 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6171 * features/s390-gs-linux64.c: New generated file.
6172 * features/s390x-gs-linux64.c: New file.
6173 * regformats/s390-gs-linux64.dat: New file.
6174 * regformats/s390x-gs-linux64.dat: New file.
6176 2017-09-23 Tom Tromey <tom@tromey.com>
6178 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6180 2017-09-22 Tom Tromey <tom@tromey.com>
6182 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6183 type to scoped_restore_tmpl.
6184 <scoped_input_handler>: Initialize m_quit_handler directly.
6186 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6188 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6189 (cd_command): Likewise. Free "current_directory" before
6191 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6192 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6193 * top.c (gdb_dirbuf): Remove global declaration.
6194 * top.h (gdb_dirbuf): Likewise.
6196 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6198 * gnulib/aclocal.m4: Regenerate.
6199 * gnulib/config.in: Regenerate.
6200 * gnulib/configure: Regenerate.
6201 * gnulib/import/Makefile.am: Regenerate.
6202 * gnulib/import/Makefile.in: Regenerate.
6203 * gnulib/import/assure.h: New file.
6204 * gnulib/import/at-func.c: Likewise
6205 * gnulib/import/chdir-long.c: New file.
6206 * gnulib/import/chdir-long.h: New file.
6207 * gnulib/import/cloexec.c: New file.
6208 * gnulib/import/cloexec.h: New file.
6209 * gnulib/import/close.c: New file.
6210 * gnulib/import/closedir.c: New file.
6211 * gnulib/import/dirent-private.h: New file.
6212 * gnulib/import/dup-safer.c: New file.
6213 * gnulib/import/dup.c: New file.
6214 * gnulib/import/dup2.c: New file.
6215 * gnulib/import/error.c: New file.
6216 * gnulib/import/error.h: New file.
6217 * gnulib/import/exitfail.c: New file.
6218 * gnulib/import/exitfail.h: New file.
6219 * gnulib/import/fchdir.c: New file.
6220 * gnulib/import/fcntl.c: New file.
6221 * gnulib/import/fcntl.in.h: New file.
6222 * gnulib/import/fd-hook.c: New file.
6223 * gnulib/import/fd-hook.h: New file.
6224 * gnulib/import/fd-safer.c: New file.
6225 * gnulib/import/fdopendir.c: New file.
6226 * gnulib/import/filename.h: New file.
6227 * gnulib/import/filenamecat-lgpl.c: New file.
6228 * gnulib/import/filenamecat.h: New file.
6229 * gnulib/import/fstat.c: New file.
6230 * gnulib/import/fstatat.c: New file.
6231 * gnulib/import/getcwd-lgpl.c: New file.
6232 * gnulib/import/getcwd.c: New file.
6233 * gnulib/import/getdtablesize.c: New file.
6234 * gnulib/import/getlogin_r.c: New file.
6235 * gnulib/import/getprogname.c: New file.
6236 * gnulib/import/getprogname.h: New file.
6237 * gnulib/import/gettext.h: New file.
6238 * gnulib/import/glob-libc.h: New file.
6239 * gnulib/import/glob.c: New file.
6240 * gnulib/import/glob.in.h: New file.
6241 * gnulib/import/intprops.h: New file.
6242 * gnulib/import/m4/chdir-long.m4: New file.
6243 * gnulib/import/m4/close.m4: New file.
6244 * gnulib/import/m4/closedir.m4: New file.
6245 * gnulib/import/m4/d-ino.m4: New file.
6246 * gnulib/import/m4/d-type.m4: New file.
6247 * gnulib/import/m4/dup.m4: New file.
6248 * gnulib/import/m4/dup2.m4: New file.
6249 * gnulib/import/m4/error.m4: New file.
6250 * gnulib/import/m4/fchdir.m4: New file.
6251 * gnulib/import/m4/fcntl.m4: New file.
6252 * gnulib/import/m4/fcntl_h.m4: New file.
6253 * gnulib/import/m4/fdopendir.m4: New file.
6254 * gnulib/import/m4/filenamecat.m4: New file.
6255 * gnulib/import/m4/fstat.m4: New file.
6256 * gnulib/import/m4/fstatat.m4: New file.
6257 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6258 * gnulib/import/m4/getcwd-path-max.m4: New file.
6259 * gnulib/import/m4/getcwd.m4: New file.
6260 * gnulib/import/m4/getdtablesize.m4: New file.
6261 * gnulib/import/m4/getlogin_r.m4: New file.
6262 * gnulib/import/m4/getprogname.m4: New file.
6263 * gnulib/import/m4/glob.m4: New file.
6264 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6265 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6266 * gnulib/import/m4/mempcpy.m4: New file.
6267 * gnulib/import/m4/memrchr.m4: New file.
6268 * gnulib/import/m4/mode_t.m4: New file.
6269 * gnulib/import/m4/msvc-inval.m4: New file.
6270 * gnulib/import/m4/msvc-nothrow.m4: New file.
6271 * gnulib/import/m4/open.m4: New file.
6272 * gnulib/import/m4/openat.m4: New file.
6273 * gnulib/import/m4/opendir.m4: New file.
6274 * gnulib/import/m4/readdir.m4: New file.
6275 * gnulib/import/m4/realloc.m4: New file.
6276 * gnulib/import/m4/rewinddir.m4: New file.
6277 * gnulib/import/m4/save-cwd.m4: New file.
6278 * gnulib/import/m4/strdup.m4: New file.
6279 * gnulib/import/m4/strerror.m4: New file.
6280 * gnulib/import/m4/unistd-safer.m4: New file.
6281 * gnulib/import/mempcpy.c: New file.
6282 * gnulib/import/memrchr.c: New file.
6283 * gnulib/import/msvc-inval.c: New file.
6284 * gnulib/import/msvc-inval.h: New file.
6285 * gnulib/import/msvc-nothrow.c: New file.
6286 * gnulib/import/msvc-nothrow.h: New file.
6287 * gnulib/import/open.c: New file.
6288 * gnulib/import/openat-die.c: New file.
6289 * gnulib/import/openat-priv.h: New file.
6290 * gnulib/import/openat-proc.c: New file.
6291 * gnulib/import/openat.c: New file.
6292 * gnulib/import/openat.h: New file.
6293 * gnulib/import/opendir.c: New file.
6294 * gnulib/import/pipe-safer.c: New file.
6295 * gnulib/import/readdir.c: New file.
6296 * gnulib/import/realloc.c: New file.
6297 * gnulib/import/rewinddir.c: New file.
6298 * gnulib/import/save-cwd.c: New file.
6299 * gnulib/import/save-cwd.h: New file.
6300 * gnulib/import/strdup.c: New file.
6301 * gnulib/import/strerror-override.c: New file.
6302 * gnulib/import/strerror-override.h: New file.
6303 * gnulib/import/strerror.c: New file.
6304 * gnulib/import/unistd--.h: New file.
6305 * gnulib/import/unistd-safer.h: New file.
6306 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6307 "getcwd" and "glob".
6308 * ser-tcp.c: Undefine "close" before redefining it.
6310 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6312 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6315 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6317 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6318 <sol2,sparc>: Likewise.
6319 <sol2-64,i386>: Likewise.
6321 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6322 -Wdeprecated-declarations on *-*-solaris*.
6323 * configure: Regenerate.
6325 * procfs.c: Include "nat/inferior.h".
6326 (procfs_info_proc): Fix typo.
6328 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6330 * remote.c (vector): Include.
6331 (struct private_thread_info): Add field, thread_handle.
6332 (free_private_thread_info): Deallocate storage associated with
6334 (get_private_info_thread): Initialize `thread_handle' field.
6335 (struct thread_item): Add field, thread_handle.
6336 (clear_threads_listing_context): Deallocate storage associated
6338 (start_thread): Add support for "handle" attribute.
6339 (thread_attributes): Add "handle".
6340 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6342 (remote_update_thread_list): Update thread_handle.
6343 (remote_thread_handle_to_thread_info): New function.
6344 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6346 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6348 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6350 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6351 * python/python-internal.h (thread_object_type): Declare.
6353 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6355 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6356 (target_thread_handle_to_thread_info): Declare.
6357 * target.c (target_thread_handle_to_thread_info): New function.
6358 * target-delegates.c: Regenerate.
6359 * gdbthread.h (find_thread_by_handle): Declare.
6360 * thread.c (find_thread_by_handle): New function.
6361 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6363 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6365 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6367 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6369 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6371 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6373 2017-09-21 Yao Qi <yao.qi@linaro.org>
6375 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6378 2017-09-20 Tom Tromey <tom@tromey.com>
6380 * breakpoint.c (struct counted_command_line): Remove.
6381 (breakpoint_commands): Update.
6382 (alloc_counted_command_line, incref_counted_command_line)
6383 (decref_counted_command_line, do_cleanup_counted_command_line)
6384 (make_cleanup_decref_counted_command_line): Remove.
6385 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6386 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6387 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6388 (save_breakpoints): Update.
6389 * breakpoint.h (counted_command_line): Now a typedef to
6391 (struct breakpoint) <commands>: Now a counted_command_line.
6392 (struct bpstats) <command>: Likewise.
6394 2017-09-20 Tom Tromey <tom@tromey.com>
6396 * breakpoint.c (struct commands_info, do_map_commands_command):
6398 (commands_command_1): Update.
6399 (iterate_over_related_breakpoints): Take a function_view.
6400 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6401 (delete_command): Update.
6402 (map_breakpoint_numbers): Take a function_view.
6403 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6404 (disable_command): Update.
6405 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6406 (enable_command): Update.
6407 (struct disp_data, do_enable_breakpoint_disp)
6408 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6409 (do_map_enable_delete_breakpoint): Remove.
6410 (enable_once_command, enable_count_command, enable_delete_command)
6411 (delete_trace_variable_command): Update.
6413 2017-09-20 Tom Tromey <tom@tromey.com>
6415 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6416 (bpstat_clear): Use delete.
6417 (bpstats): New constructors.
6418 (bpstat_copy, bpstat_stop_status): Use new.
6419 (dprintf_after_condition_true): Update.
6420 * breakpoint.h (bpstats::bpstats): Add constructors.
6421 (bpstats::~bpstats): Add destructor.
6423 2017-09-20 Pedro Alves <palves@redhat.com>
6425 * eval.c (make_params): Delete, refactored as ...
6426 (class fake_method): ... this new type's ctor.
6427 (fake_method::~fake_method): New.
6428 (evaluate_subexp_standard): Use 'fake_method'.
6430 2017-09-20 Tom Tromey <tom@tromey.com>
6432 * windows-nat.c (get_windows_debug_event, windows_wait)
6433 (do_initial_windows_stuff, windows_attach): Update.
6434 * utils.c (vwarning, internal_vproblem): Update.
6435 (ui_unregister_input_event_handler_cleanup)
6436 (prepare_to_handle_input): Remove.
6437 (class scoped_input_handler): New.
6438 (defaulted_query, prompt_for_continue): Update.
6439 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6441 * top.c (undo_terminal_modifications_before_exit): Update.
6442 * target/target.h (target_terminal_init, target_terminal_inferior)
6443 (target_terminal_ours): Don't declare.
6444 (class target_terminal): New.
6445 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
6446 (target_terminal_ours_for_output)
6447 (make_cleanup_restore_target_terminal): Don't declare.
6448 (target_terminal_info): Remove.
6449 * target.c (enum terminal_state, terminal_state): Remove.
6450 (target_terminal::terminal_state): Define.
6451 (target_terminal::init): Rename from target_terminal_init.
6452 (target_terminal::inferior): Rename from
6453 target_terminal_inferior.
6454 (target_terminal::ours): Rename from target_terminal_ours.
6455 (target_terminal::ours_for_output): Rename from
6456 target_terminal_ours_for_output.
6457 (target_terminal::info): New method.
6458 (cleanup_restore_target_terminal)
6459 (make_cleanup_restore_target_terminal): Remove.
6460 * solib.c (handle_solib_event): Update.
6461 * remote.c (remote_serial_quit_handler): Update.
6462 (remote_terminal_inferior, remote_wait_as): Update.
6463 * record-full.c (record_full_wait_1): Update.
6464 * nto-procfs.c (procfs_create_inferior): Update.
6465 * nat/fork-inferior.c (startup_inferior): Update.
6466 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6467 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6468 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6469 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6470 (mi_breakpoint_created, mi_breakpoint_deleted)
6471 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
6472 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6473 (mi_user_selected_context_changed, report_initial_inferior):
6475 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
6476 (linux_nat_terminal_inferior): Update.
6477 * infrun.c (follow_fork_inferior)
6478 (handle_vfork_child_exec_or_exit, do_target_resume)
6479 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
6480 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
6482 * inflow.c (child_terminal_init, info_terminal_command): Update.
6483 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
6484 (attach_command): Update.
6485 * infcall.c (call_thread_fsm_should_stop): Update.
6486 * gnu-nat.c (gnu_attach): Update.
6487 * extension.c (struct active_ext_lang_state)
6488 (restore_active_ext_lang): Update.
6489 * exceptions.c (print_flush): Update.
6490 * event-top.c (async_enable_stdin, default_quit_handler): Update.
6491 (struct quit_handler_cleanup_data, restore_quit_handler)
6492 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
6494 * cp-support.c (gdb_demangle): Update.
6495 * breakpoint.c (update_inserted_breakpoint_locations)
6496 (insert_breakpoint_locations, handle_jit_event)
6497 (disable_breakpoints_in_unloaded_shlib): Update.
6498 * annotate.c (annotate_breakpoints_invalid)
6499 (annotate_frames_invalid): Update.
6501 2017-09-20 Tom Tromey <tom@tromey.com>
6503 * main.c (catch_command_errors): Rename from
6504 catch_command_errors_const.
6505 (captured_main_1): Update.
6507 2017-09-20 Pedro Alves <palves@redhat.com>
6509 * cli/cli-cmds.c (list_command): Use print_sal_location.
6510 (print_sal_location): New function.
6511 (ambiguous_line_spec): Use print_sal_location.
6512 * linespec.c (symbol_to_sal): Record the symbol in the sal.
6513 * symtab.c (find_function_start_sal): Likewise.
6514 * symtab.h (symtab_and_line::symbol): New field.
6516 2017-09-20 Pedro Alves <palves@redhat.com>
6518 * linespec.c (minsym_found): Handle non-text minsyms.
6519 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
6521 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6523 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
6526 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6528 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
6529 vmovups instead vmovaps.
6530 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
6532 2017-09-19 John Baldwin <jhb@FreeBSD.org>
6534 * NEWS (Changes since GDB 8.0): Add starti.
6535 * infcmd.c (enum run_break): New.
6536 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
6538 (run_command): Use enum run_how.
6539 (start_command): Likewise.
6540 (starti_command): New function.
6541 (RUN_ARGS_HELP): New macro.
6542 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
6543 commands. Add starti command.
6545 2017-09-19 Yao Qi <yao.qi@linaro.org>
6547 * Makefile.in (monitor.o): Remove the rule.
6549 2017-09-19 Yao Qi <yao.qi@linaro.org>
6551 * annotate.h (struct annotate_arg_emitter): Use
6552 DISABLE_COPY_AND_ASSIGN.
6553 * common/refcounted-object.h (refcounted_object): Likewise.
6554 * completer.h (struct completion_result): Likewise.
6555 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
6556 * filename-seen-cache.h (filename_seen_cache): Likewise.
6557 * gdbcore.h (thread_section_name): Likewise.
6558 * gdb_regex.h (compiled_regex): Likewise.
6559 * gdbthread.h (scoped_restore_current_thread): Likewise.
6560 * inferior.h (scoped_restore_current_inferior): Likewise.
6561 * jit.c (jit_reader): Likewise.
6562 * linespec.h (struct linespec_result): Likewise.
6563 * mi/mi-parse.h (struct mi_parse): Likewise.
6564 * nat/fork-inferior.c (execv_argv): Likewise.
6565 * progspace.h (scoped_restore_current_program_space): Likewise.
6566 * python/python-internal.h (class gdbpy_enter): Likewise.
6567 * regcache.h (regcache): Likewise.
6568 * target-descriptions.c (struct tdesc_reg): Likewise.
6569 (struct tdesc_type): Likewise.
6570 (struct tdesc_feature): Likewise.
6571 * ui-out.h (ui_out_emit_type): Likewise.
6573 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6575 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6576 label abort_expression.
6578 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6580 * common/buffer.c (buffer_xml_printf): Adjust.
6581 * common/xml-utils.c (xml_escape_text): Change return type to
6582 std::string, update code accordingly.
6583 * common/xml-utils.h (xml_escape_text): Change return type to
6585 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6586 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6587 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6590 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6592 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6593 (SUBDIR_UNITTESTS_OBS): Add new object file.
6594 * unittests/xml-utils-selftests.c: New file.
6596 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6598 * common/selftest.h (selftest): New struct/interface.
6599 (register_test): Add name parameter, add new overload.
6600 (run_tests): Add filter parameter.
6601 (for_each_selftest_ftype): New typedef.
6602 (for_each_selftest): New declaration.
6603 * common/selftest.c (tests): Change type to
6604 map<string, unique_ptr<selftest>>.
6605 (simple_selftest): New struct.
6606 (register_test): New function.
6607 (register_test): Add name parameter and use it.
6608 (run_tests): Add filter parameter and use it. Add prints.
6609 Adjust to vector -> map change.
6610 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
6611 registering selftests.
6612 * arm-tdep.c (_initialize_arm_tdep): Likewise.
6613 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
6614 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
6615 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
6616 * findvar.c (_initialize_findvar): Likewise.
6617 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
6618 * maint.c (maintenance_selftest): Update call to run_tests.
6619 (maintenance_info_selftests): New function.
6620 (_initialize_maint_cmds): Register "maintenance info selftests"
6621 command. Update "maintenance selftest" doc.
6622 * regcache.c (_initialize_regcache): Add names when registering
6624 * rust-exp.y (_initialize_rust_exp): Likewise.
6625 * selftest-arch.c (gdbarch_selftest): New struct.
6626 (gdbarch_tests): Remove.
6627 (register_test_foreach_arch): Add name parameter. Call
6629 (tests_with_arch): Remove, move most content to
6630 gdbarch_selftest::operator().
6631 (_initialize_selftests_foreach_arch): Remove.
6632 * selftest-arch.h (register_test_foreach_arch): Add name
6634 (run_tests_with_arch): New declaration.
6635 * utils-selftests.c (_initialize_utils_selftests): Add names
6636 when registering selftests.
6637 * utils.c (_initialize_utils): Likewise.
6638 * unittests/array-view-selftests.c
6639 (_initialize_array_view_selftests): Likewise.
6640 * unittests/environ-selftests.c (_initialize_environ_selftests):
6642 * unittests/function-view-selftests.c
6643 (_initialize_function_view_selftests): Likewise.
6644 * unittests/offset-type-selftests.c
6645 (_initialize_offset_type_selftests): Likewise.
6646 * unittests/optional-selftests.c
6647 (_initialize_optional_selftests): Likewise.
6648 * unittests/scoped_restore-selftests.c
6649 (_initialize_scoped_restore_selftests): Likewise.
6650 * NEWS: Document "maintenance selftest" and "maint info
6653 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6655 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
6658 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6660 * mi/mi-main.c (mi_load_progress): Make uiout variable
6663 2017-09-15 Pedro Alves <palves@redhat.com>
6665 * compile/compile-c-types.c (convert_enum, convert_int)
6666 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
6668 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6670 * dwarf2read.c (copy_string): Remove.
6671 (parse_macro_definition): Replace copy_string with savestring.
6673 2017-09-15 Yao Qi <yao.qi@linaro.org>
6675 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
6677 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6679 (i[34567]86-*-linux*): Likewise.
6681 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6683 * dwarf2expr.h (dwarf_stack_value): Add constructor.
6684 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
6685 <stack>: Change type to std::vector.
6686 <stack_len, stack_allocated>: Remove.
6687 <grow_stack>: Remove.
6688 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6689 (dwarf_expr_context::~dwarf_expr_context): Remove.
6690 (dwarf_expr_context::grow_stack): Remove.
6691 (dwarf_expr_context::push): Adjust.
6692 (dwarf_expr_context::pop): Adjust.
6693 (dwarf_expr_context::fetch): Adjust.
6694 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
6695 (dwarf_expr_context::stack_empty_p): Adjust.
6696 (dwarf_expr_context::execute_stack_op): Adjust.
6698 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6700 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
6701 return type to bool.
6702 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
6704 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6706 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
6707 Change type to bool.
6708 (dwarf_stack_value) <in_stack_memory>: Likewise.
6709 (dwarf_expr_context) <push_address>: Change parameter type to
6711 <fetch_in_stack_memory>: Change return type to bool.
6712 <push>: Change parameter type to bool.
6713 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
6715 (dwarf_expr_context::push_address): Likewise.
6716 (dwarf_expr_context::fetch_in_stack_memory): Change return type
6718 (dwarf_expr_context::execute_stack_op): Adjust.
6719 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
6721 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6723 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
6724 (struct dwarf_expr_context) <n_pieces>: Remove.
6725 <pieces>: Change type to std::vector.
6726 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6727 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
6729 (dwarf_expr_context::add_piece): Adjust.
6730 * dwarf2loc.c (struct piece_closure): Initialize fields.
6732 <pieces>: Change type to std::vector.
6733 (allocate_piece_closure): Adjust, change parameter to
6734 std::vector rvalue and std::move it to piece_closure.
6735 (rw_pieced_value): Adjust.
6736 (check_pieced_synthetic_pointer): Adjust.
6737 (indirect_synthetic_pointer): Adjust.
6738 (coerce_pieced_ref): Adjust.
6739 (free_pieced_value_closure): Adjust. Use delete to free
6741 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
6742 to allocate_piece_closure.
6743 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
6745 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6747 * probe.h (probe_ops_cp): Remove typedef.
6748 (DEF_VEC_P (probe_ops_cp)): Remove.
6749 (all_probe_ops): Change type to std::vector.
6750 * probe.c (info_probes_for_ops): Adjust to vector change.
6751 (probe_linespec_to_ops): Likewise.
6752 (all_probe_ops): Change type to std::vector.
6753 (_initialize_probe): Adjust to vector change.
6754 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
6755 * elfread.c (elf_get_probes): Likewise.
6756 * stap-probe.c (_initialize_stap_probe): Likewise.
6758 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6760 * probe.h (struct bound_probe): Define constructors.
6761 * probe.c (bound_probe_s): Remove typedef.
6762 (DEF_VEC_O (bound_probe_s)): Remove VEC.
6763 (collect_probes): Change return type to std::vector, remove
6765 (compare_probes): Return bool, change parameter type. Change
6766 semantic to "less than".
6767 (gen_ui_out_table_header_info): Change parameter to std::vector
6769 (exists_probe_with_pops): Likewise.
6770 (info_probes_for_ops): Update to std::vector change.
6771 (enable_probes_command): Likewise.
6772 (disable_probes_command): Likewise.
6774 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6776 * probe.h (struct probe_ops) <get_probes>: Change parameter from
6778 * probe.c (parse_probes_in_pspace): Update.
6779 (find_probes_in_objfile): Update.
6780 (find_probe_by_pc): Update.
6781 (collect_probes): Update.
6782 (probe_any_get_probes): Update.
6783 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
6784 return type to reference to std::vector.
6785 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
6786 std::vector and update.
6787 (dtrace_process_dof): Likewise.
6788 (dtrace_get_probes): Likewise.
6789 * elfread.c (elf_get_probes): Change return type to std::vector,
6790 store an std::vector in bfd_data.
6791 (probe_key_free): Update to std::vector.
6792 * stap-probe.c (handle_stap_probe): Change parameter to
6793 std::vector and update.
6794 (stap_get_probes): Likewise.
6795 * symfile-debug.c (debug_sym_get_probes): Change return type to
6796 std::vector and update.
6798 2017-09-11 Tom Tromey <tom@tromey.com>
6800 * breakpoint.c (program_breakpoint_here_p): Update.
6801 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
6802 from make_show_memory_breakpoints_cleanup. Return a
6803 scoped_restore_tmpl<int>.
6804 (restore_show_memory_breakpoints): Remove.
6805 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
6806 * mem-break.c (memory_validate_breakpoint): Update.
6807 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
6808 (ia64_memory_remove_breakpoint): Update.
6809 (ia64_breakpoint_from_pc): Update.
6810 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
6811 from make_show_memory_breakpoints_cleanup.
6813 2017-09-11 Tom Tromey <tom@tromey.com>
6815 * d-namespace.c (d_lookup_symbol): Use std::string.
6816 (find_symbol_in_baseclass): Likewise.
6818 2017-09-11 Tom Tromey <tom@tromey.com>
6820 * ctf.c (ctf_start): Use std::string.
6822 2017-09-11 Tom Tromey <tom@tromey.com>
6824 * ada-lang.c (is_known_support_routine): Update.
6825 (ada_unhandled_exception_name_addr_from_raise): Update.
6826 * guile/scm-frame.c (gdbscm_frame_name): Update.
6827 * python/py-frame.c (frapy_name): Update.
6828 (frapy_function): Update.
6829 * stack.h (find_frame_funname): Update.
6830 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
6831 (print_frame): Update.
6833 2017-09-11 Tom Tromey <tom@tromey.com>
6835 * findcmd.c (put_bits): Take a gdb::byte_vector.
6836 (parse_find_args): Return gdb::byte_vector. "args" now const.
6837 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
6839 (find_command): Update.
6841 2017-09-11 Tom Tromey <tom@tromey.com>
6843 * cli/cli-script.c (class scoped_restore_hook_in): New.
6844 (clear_hook_in_cleanup): Remove.
6845 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
6846 scoped_restore_hook_in.
6848 2017-09-11 Tom Tromey <tom@tromey.com>
6850 * cli/cli-script.c (restore_interp): Remove.
6851 (read_command_lines): Use scoped_restore_interp.
6852 * interps.c (scoped_restore_interp::set_temp): Rename from
6854 * interps.h (class scoped_restore_interp): New.
6855 (interp_set_temp): Remove.
6857 2017-09-11 Tom Tromey <tom@tromey.com>
6859 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6860 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
6861 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
6863 (mi_cmd_break_insert_1): Update.
6864 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
6867 2017-09-11 Tom Tromey <tom@tromey.com>
6869 * demangle.c (demangle_command): Update.
6870 * breakpoint.c (disable_command): Update.
6871 (enable_command): Update.
6872 (find_location_by_number): Make "number" const. Use
6874 * cli/cli-utils.c (extract_arg): Return std::string.
6875 * probe.c (parse_probe_linespec): Update. Change types.
6876 (collect_probes): Take string arguments.
6877 (parse_probe_linespec): Likewise.
6878 (info_probes_for_ops): Update.
6879 (enable_probes_command): Update.
6880 (disable_probes_command): Update.
6881 * break-catch-sig.c (catch_signal_split_args): Update.
6882 * mi/mi-parse.c (mi_parse): Update.
6884 2017-09-11 Tom Tromey <tom@tromey.com>
6886 * language.h (language_enum): Make argument const.
6887 * language.c (language_enum): Make argument const.
6889 2017-09-11 Tom Tromey <tom@tromey.com>
6891 * common/common-utils.h (skip_to_space): Remove macro, redeclare
6893 (skip_to_space): Rename from skip_to_space_const.
6894 * common/common-utils.c (skip_to_space): New function.
6895 (skip_to_space): Rename from skip_to_space_const.
6896 * cli/cli-utils.h (get_number): Rename from get_number_const.
6897 (extract_arg): Rename from extract_arg_const.
6898 * cli/cli-utils.c (get_number): Rename from get_number_const.
6899 (extract_arg): Rename from extract_arg_const.
6900 (number_or_range_parser::get_number): Use ::get_number.
6901 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
6902 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
6903 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
6904 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
6905 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
6906 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
6907 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
6908 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
6910 2017-09-11 Tom Tromey <tom@tromey.com>
6912 * python/python.c (do_start_initialization): Use
6913 py-event-types.def to initialize types.
6914 Define all object type structures.
6915 * python/python-internal.h: Don't declare event initialization
6917 * python/py-threadevent.c (thread_event_object_type): Don't
6919 * python/py-stopevent.c (stop_event_object_type): Don't define.
6920 * python/py-signalevent.c (signal_event_object_type): Don't
6922 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6923 (clear_objfiles_event_object_type): Don't declare or define.
6924 * python/py-infevents.c (inferior_call_pre_event_object_type)
6925 (inferior_call_post_event_object_type)
6926 (register_changed_event_object_type)
6927 (memory_changed_event_object_type): Don't declare or define.
6928 * python/py-inferior.c (new_thread_event_object_type)
6929 (new_inferior_event_object_type)
6930 (inferior_deleted_event_object_type): Don't declare or define.
6931 * python/py-exitedevent.c (exited_event_object_type): Don't
6933 * python/py-evts.c (gdbpy_initialize_py_events): Use
6935 * python/py-events.h (thread_event_object_type): Don't declare.
6936 (events_object): Use py-all-events.def.
6937 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
6939 * python/py-event-types.def: New file.
6940 * python/py-continueevent.c (create_continue_event_object): Don't
6942 * python/py-bpevent.c (breakpoint_event_object_type): Don't
6944 * python/py-all-events.def: New file.
6946 2017-09-11 Tom Tromey <tom@tromey.com>
6948 * python/py-threadevent.c (create_thread_event_object): Return
6950 * python/py-stopevent.h (create_stop_event_object)
6951 (create_breakpoint_event_object, create_signal_event_object):
6953 * python/py-stopevent.c (create_stop_event_object): Return
6955 (emit_stop_event): Update.
6956 * python/py-signalevent.c (create_signal_event_object): Return
6958 * python/py-infevents.c (create_inferior_call_event_object):
6960 * python/py-event.h (create_event_object)
6961 (create_thread_event_object): Update.
6962 * python/py-event.c (create_event_object): Return gdbpy_ref.
6963 * python/py-continueevent.c: Return gdbpy_ref.
6964 * python/py-bpevent.c (create_breakpoint_event_object): Return
6967 2017-09-11 Tom Tromey <tom@tromey.com>
6971 * python/python.c (do_start_initialization): Initialize new event
6973 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
6974 (gdbpy_initialize_inferior_deleted_event)
6975 (gdbpy_initialize_new_thread_event): Declare.
6976 * python/py-threadevent.c (create_thread_event_object): Add option
6978 * python/py-inferior.c (new_thread_event_object_type)
6979 (new_inferior_event_object_type)
6980 (inferior_deleted_event_object_type): Declare.
6981 (python_new_inferior, python_inferior_deleted): New functions.
6982 (add_thread_object): Emit new_thread event.
6983 (gdbpy_initialize_inferior): Attach new functions to corresponding
6985 (new_thread, new_inferior, inferior_deleted): Define new event
6987 * python/py-evts.c (gdbpy_initialize_py_events): Add new
6989 * python/py-events.h (events_object) <new_inferior,
6990 inferior_deleted, new_thread>: New fields.
6991 * python/py-event.h (create_thread_event_breakpoint): Add optional
6994 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
6996 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
6997 check current_ui instead.
6998 (internal_vproblem): Likewise.
7000 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7002 * thread.c (print_thread_info_1): Remove unnecessary calls to
7003 uiout->is_mi_like_p.
7005 2017-09-09 Tom Tromey <tom@tromey.com>
7007 * namespace.h (add_using_directive): Update.
7008 * namespace.c (add_using_directive): Change type of excludes to
7010 * dwarf2read.c (read_import_statement): Use std::vector.
7011 (read_namespace): Update.
7012 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7014 2017-09-09 Tom Tromey <tom@tromey.com>
7016 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7018 2017-09-09 Tom Tromey <tom@tromey.com>
7020 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7022 2017-09-09 Tom Tromey <tom@tromey.com>
7024 * stack.c (func_command): Use gdb::def_vector.
7026 2017-09-09 Tom Tromey <tom@tromey.com>
7028 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7029 ui_out_emit_list, ui_out_emit_tuple.
7030 (mi_cmd_var_update): Likewise.
7032 2017-09-09 Tom Tromey <tom@tromey.com>
7034 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7035 ui_out_redirect_pop.
7036 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7037 ui_out_redirect_pop.
7038 * utils.c (do_ui_out_redirect_pop)
7039 (make_cleanup_ui_out_redirect_pop): Remove.
7040 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7041 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7042 * ui-out.h (ui_out_redirect_pop): New class.
7044 2017-09-09 Tom Tromey <tom@tromey.com>
7046 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7047 (list_available_thread_groups, mi_cmd_list_thread_groups)
7048 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7049 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7052 2017-09-09 Tom Tromey <tom@tromey.com>
7054 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7057 2017-09-09 Tom Tromey <tom@tromey.com>
7059 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7060 * stack.c (print_frame): Use ui_out_emit_tuple.
7061 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7062 (info_spu_mailbox_command, info_spu_dma_command)
7063 (info_spu_proxydma_command): Likewise.
7064 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7065 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7066 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7068 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7070 2017-09-09 Tom Tromey <tom@tromey.com>
7072 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7073 (class ui_out_emit_table): Update comment.
7074 * ui-out.c (do_cleanup_table_end)
7075 (make_cleanup_ui_out_table_begin_end): Remove.
7076 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7077 (info_spu_dma_cmdlist): Likewise.
7078 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7079 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7082 2017-09-09 Tom Tromey <tom@tromey.com>
7084 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7085 ui_out_emit_list, gdb::optional.
7087 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7089 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7091 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7093 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7095 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7096 * ada-exp.y: Remove _initialize_ada_exp prototype.
7097 * ada-lang.c: Remove _initialize_ada_language prototype.
7098 * ada-tasks.c: Remove _initialize_tasks prototype.
7099 * addrmap.c: Remove _initialize_addrmap prototype.
7100 * agent.c: Remove _initialize_agent prototype.
7101 * aix-thread.c: Remove _initialize_aix_thread prototype.
7102 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7103 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7104 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7106 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7107 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7108 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7109 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7111 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7113 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7114 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7115 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7116 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7118 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7119 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7120 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7121 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7122 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7123 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7124 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7126 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7128 * annotate.c: Remove _initialize_annotate prototype.
7129 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7130 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7131 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7132 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7133 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7134 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7135 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7136 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7138 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7139 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7140 * auto-load.c: Remove _initialize_auto_load prototype.
7141 * auxv.c: Remove _initialize_auxv prototype.
7142 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7143 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7144 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7145 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7146 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7147 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7149 * break-catch-throw.c: Remove _initialize_break_catch_throw
7151 * breakpoint.c: Remove _initialize_breakpoint prototype.
7152 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7153 * btrace.c: Remove _initialize_btrace prototype.
7154 * charset.c: Remove _initialize_charset prototype.
7155 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7156 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7157 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7158 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7159 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7160 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7161 * coffread.c: Remove _initialize_coffread prototype.
7162 * compile/compile.c: Remove _initialize_compile prototype.
7163 * complaints.c: Remove _initialize_complaints prototype.
7164 * completer.c: Remove _initialize_completer prototype.
7165 * copying.awk: Remove _initialize_copying prototype.
7166 * copying.c: Regenerate.
7167 * core-regset.c: Remove _initialize_core_regset prototype.
7168 * corefile.c: Remove _initialize_core prototype.
7169 * corelow.c: Remove _initialize_corelow prototype.
7170 * cp-abi.c: Remove _initialize_cp_abi prototype.
7171 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7172 * cp-support.c: Remove _initialize_cp_support prototype.
7173 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7174 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7175 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7176 * ctf.c: Remove _initialize_ctf prototype.
7177 * d-lang.c: Remove _initialize_d_language prototype.
7178 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7180 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7181 * dbxread.c: Remove _initialize_dbxread prototype.
7182 * dcache.c: Remove _initialize_dcache prototype.
7183 * demangle.c: Remove _initialize_demangler prototype.
7184 * disasm-selftests.c: Remove _initialize_disasm_selftests
7186 * disasm.c: Remove _initialize_disasm prototype.
7187 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7188 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7189 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7191 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7192 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7193 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7194 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7195 * elfread.c: Remove _initialize_elfread prototype.
7196 * exec.c: Remove _initialize_exec prototype.
7197 * extension.c: Remove _initialize_extension prototype.
7198 * f-lang.c: Remove _initialize_f_language prototype.
7199 * f-valprint.c: Remove _initialize_f_valprint prototype.
7200 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7201 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7202 * filesystem.c: Remove _initialize_filesystem prototype.
7203 * findcmd.c: Remove _initialize_mem_search prototype.
7204 * fork-child.c: Remove _initialize_fork_child prototype.
7205 * frame-base.c: Remove _initialize_frame_base prototype.
7206 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7207 * frame.c: Remove _initialize_frame prototype.
7208 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7209 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7210 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7211 * gcore.c: Remove _initialize_gcore prototype.
7212 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7213 * gdbarch.c: Regenerate.
7214 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7215 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7216 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7217 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7218 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7219 * go-lang.c: Remove _initialize_go_language prototype.
7220 * go32-nat.c: Remove _initialize_go32_nat prototype.
7221 * guile/guile.c: Remove _initialize_guile prototype.
7222 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7223 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7224 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7225 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7226 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7227 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7228 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7229 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7230 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7231 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7233 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7235 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7236 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7237 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7238 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7239 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7240 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7241 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7242 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7243 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7244 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7245 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7246 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7247 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7248 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7249 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7250 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7252 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7254 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7255 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7256 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7257 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7258 * infcall.c: Remove _initialize_infcall prototype.
7259 * infcmd.c: Remove _initialize_infcmd prototype.
7260 * inferior.c: Remove _initialize_inferiors prototype.
7261 * inflow.c: Remove _initialize_inflow prototype.
7262 * infrun.c: Remove _initialize_infrun prototype.
7263 * interps.c: Remove _initialize_interpreter prototype.
7264 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7265 * jit.c: Remove _initialize_jit prototype.
7266 * language.c: Remove _initialize_language prototype.
7267 * linux-fork.c: Remove _initialize_linux_fork prototype.
7268 * linux-nat.c: Remove _initialize_linux_nat prototype.
7269 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7270 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7271 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7272 * m2-lang.c: Remove _initialize_m2_language prototype.
7273 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7274 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7275 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7276 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7277 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7278 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7279 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7280 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7281 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7282 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7283 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7284 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7285 * machoread.c: Remove _initialize_machoread prototype.
7286 * macrocmd.c: Remove _initialize_macrocmd prototype.
7287 * macroscope.c: Remove _initialize_macroscope prototype.
7288 * maint.c: Remove _initialize_maint_cmds prototype.
7289 * mdebugread.c: Remove _initialize_mdebugread prototype.
7290 * memattr.c: Remove _initialize_mem prototype.
7291 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7292 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7293 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7294 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7295 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7296 * microblaze-linux-tdep.c: Remove
7297 _initialize_microblaze_linux_tdep prototype.
7298 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7299 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7300 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7301 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7302 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7303 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7304 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7305 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7306 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7307 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7308 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7310 * mipsread.c: Remove _initialize_mipsread prototype.
7311 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7313 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7314 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7315 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7316 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7317 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7318 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7320 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7321 * nto-procfs.c: Remove _initialize_procfs prototype.
7322 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7323 * objc-lang.c: Remove _initialize_objc_language prototype.
7324 * objfiles.c: Remove _initialize_objfiles prototype.
7325 * observer.c: Remove observer_test_first_notification_function,
7326 observer_test_second_notification_function,
7327 observer_test_third_notification_function, and
7328 _initialize_observer prototypes.
7329 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7330 * osabi.c: Remove _initialize_gdb_osabi prototype.
7331 * osdata.c: Remove _initialize_osdata prototype.
7332 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7333 * parse.c: Remove _initialize_parse prototype.
7334 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7335 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7336 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7337 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7338 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7339 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7340 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7341 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7342 * printcmd.c: Remove _initialize_printcmd prototype.
7343 * probe.c: Remove _initialize_probe prototype.
7344 * proc-api.c: Remove _initialize_proc_api prototype.
7345 * proc-events.c: Remove _initialize_proc_events prototype.
7346 * proc-service.c: Remove _initialize_proc_service prototype.
7347 * procfs.c: Remove _initialize_procfs prototype.
7348 * psymtab.c: Remove _initialize_psymtab prototype.
7349 * python/python.c: Remove _initialize_python prototype.
7350 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7351 * record-btrace.c: Remove _initialize_record_btrace prototype.
7352 * record-full.c: Remove _initialize_record_full prototype.
7353 * record.c: Remove _initialize_record prototype.
7354 * regcache.c: Remove _initialize_regcache prototype.
7355 * reggroups.c: Remove _initialize_reggroup prototype.
7356 * remote-notif.c: Remove _initialize_notif prototype.
7357 * remote-sim.c: Remove _initialize_remote_sim prototype.
7358 * remote.c: Remove _initialize_remote prototype.
7359 * reverse.c: Remove _initialize_reverse prototype.
7360 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7361 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7362 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7364 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7365 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7366 * rust-exp.y: Remove _initialize_rust_exp prototype.
7367 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7368 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7369 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7370 * score-tdep.c: Remove _initialize_score_tdep prototype.
7371 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7373 * ser-go32.c: Remove _initialize_ser_dos prototype.
7374 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7375 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7376 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7377 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7378 * serial.c: Remove _initialize_serial prototype.
7379 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7380 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7381 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7382 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7383 * skip.c: Remove _initialize_step_skip prototype.
7384 * sol-thread.c: Remove _initialize_sol_thread prototype.
7385 * solib-aix.c: Remove _initialize_solib_aix prototype.
7386 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7387 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7388 * solib-frv.c: Remove _initialize_frv_solib prototype.
7389 * solib-spu.c: Remove _initialize_spu_solib prototype.
7390 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7391 * solib-target.c: Remove _initialize_solib_target prototype.
7392 * solib.c: Remove _initialize_solib prototype.
7393 * source.c: Remove _initialize_source prototype.
7394 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7395 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7397 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7398 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7399 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7400 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7402 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7403 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7404 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7405 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7407 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7409 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7411 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7413 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7414 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7416 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7418 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7420 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7422 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7424 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7425 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7426 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7427 * stabsread.c: Remove _initialize_stabsread prototype.
7428 * stack.c: Remove _initialize_stack prototype.
7429 * stap-probe.c: Remove _initialize_stap_probe prototype.
7430 * std-regs.c: Remove _initialize_frame_reg prototype.
7431 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7432 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7433 * symfile.c: Remove _initialize_symfile prototype.
7434 * symmisc.c: Remove _initialize_symmisc prototype.
7435 * symtab.c: Remove _initialize_symtab prototype.
7436 * target-dcache.c: Remove _initialize_target_dcache prototype.
7437 * target-descriptions.c: Remove _initialize_target_descriptions
7439 * thread.c: Remove _initialize_thread prototype.
7440 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7442 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7443 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7444 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7446 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
7447 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
7448 * tracefile.c: Remove _initialize_tracefile prototype.
7449 * tracepoint.c: Remove _initialize_tracepoint prototype.
7450 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
7451 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
7452 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
7453 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
7454 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
7455 * tui/tui-win.c: Remove _initialize_tui_win prototype.
7456 * tui/tui.c: Remove _initialize_tui prototype.
7457 * typeprint.c: Remove _initialize_typeprint prototype.
7458 * user-regs.c: Remove _initialize_user_regs prototype.
7459 * utils.c: Remove _initialize_utils prototype.
7460 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
7461 * valarith.c: Remove _initialize_valarith prototype.
7462 * valops.c: Remove _initialize_valops prototype.
7463 * valprint.c: Remove _initialize_valprint prototype.
7464 * value.c: Remove _initialize_values prototype.
7465 * varobj.c: Remove _initialize_varobj prototype.
7466 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
7467 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
7468 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
7469 * windows-nat.c: Remove _initialize_windows_nat,
7470 _initialize_check_for_gdb_ini, and _initialize_loadable
7472 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
7473 * xcoffread.c: Remove _initialize_xcoffread prototype.
7474 * xml-support.c: Remove _initialize_xml_support prototype.
7475 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
7476 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
7478 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
7480 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
7482 2017-09-08 Keith Seitz <keiths@redhat.com>
7484 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
7487 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
7489 * f-valprint.c (f_val_print): Remove check for one byte
7490 sized integers. Remove printing of character type.
7492 2017-09-08 Frank Penczek <frank.penczek@intel.com>
7493 Christoph Weinmann <christoph.t.weinmann@intel.com>
7494 Bernhard Heckel <bernhard.heckel@intel.com>
7496 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
7497 to maintain proper indentation when printing pointers/refs.
7499 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7503 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7505 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
7507 2017-09-05 Tom Tromey <tom@tromey.com>
7509 * parse.c (funcall_chain): Now a std::vector.
7510 (start_arglist, end_arglist): Simplify.
7511 (free_funcalls): Remove.
7512 (parse_exp_in_context_1): Remove cleanup.
7514 2017-09-05 Tom Tromey <tom@tromey.com>
7516 * go-exp.y (go_parse): Don't create a cleanup.
7518 2017-09-05 Tom Tromey <tom@tromey.com>
7520 * d-exp.y (PrimaryExpression): Use std::string.
7521 (d_parse): Don't create a cleanup.
7523 2017-09-05 Tom Tromey <tom@tromey.com>
7525 * utils.c (do_clear_parser_state): Remove.
7526 (make_cleanup_clear_parser_state): Remove.
7527 * p-exp.y (pascal_parse): Use scoped_restore.
7528 * m2-exp.y (m2_parse): Use scoped_restore.
7529 * f-exp.y (f_parse): Use scoped_restore.
7530 * d-exp.y (d_parse): Use scoped_restore.
7531 * c-exp.y (c_parse): Use scoped_restore.
7532 * ada-exp.y (ada_parse): Use scoped_restore.
7533 * utils.h (make_cleanup_clear_parser_state): Remove.
7535 2017-09-06 Keith Seitz <keiths@redhat.com>
7537 * dwarf2read.c (dw2_linkage_name_attr): New function.
7538 (dw2_linkage_name): New function.
7539 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
7540 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
7541 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
7543 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7545 * config/djgpp/djconfig.sh: Correct shell portability issue.
7547 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7549 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
7551 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7553 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
7554 * NEWS: Mention new FreeBSD/mips native configuration.
7555 * configure.host: Add aarch64*-*-freebsd*.
7556 * configure.nat: Likewise.
7557 * aarch64-fbsd-nat.c: New file.
7559 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7561 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7562 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7563 * NEWS: Mention new FreeBSD/aarch64 target.
7564 * configure.tgt: Add aarch64*-*-freebsd*.
7565 * aarch64-fbsd-tdep.c: New file.
7566 * aarch64-fbsd-tdep.h: New file.
7568 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7570 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7572 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7574 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7577 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7579 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7582 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7584 * infrun.c (follow_exec): Call add_thread after
7585 target_find_description.
7587 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7589 * infrun.c (handle_inferior_event_1): When exec'ing, read
7590 stop_pc after follow_exec.
7592 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7594 * remote.c (process_g_packet): Update error message.
7596 2017-09-05 Yao Qi <yao.qi@linaro.org>
7598 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
7601 2017-09-05 Pedro Alves <palves@redhat.com>
7603 * eval.c (eval_call, evaluate_funcall): New functions, factored
7605 (evaluate_subexp_standard): ... this.
7607 2017-09-05 Yao Qi <yao.qi@linaro.org>
7609 * amd64-tdep.c (amd64_target_description): Create target
7611 (_initialize_amd64_tdep): Don't call functions
7612 initialize_tdesc_amd64_*. Add self tests.
7613 * arch/amd64.c (amd64_create_target_description): Add parameter
7614 is_linux. Call set_tdesc_osabi if is_linux is true.
7615 * arch/amd64.h (amd64_create_target_description): Update the
7617 * arch/i386.c (i386_create_target_description): Add parameter
7618 is_linux. Call set_tdesc_osabi if is_linux is true.
7619 * arch/i386.h (i386_create_target_description): Update
7621 * configure.tgt: Add i386.o to gdb_target_obs.
7622 * features/Makefile (XMLTOC): Remove i386/*.xml.
7623 * features/i386/amd64-avx-avx512.c: Remove.
7624 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
7625 * features/i386/amd64-avx-mpx.c: Remove.
7626 * features/i386/amd64-avx.c: Remove.
7627 * features/i386/amd64-mpx.c: Remove.
7628 * features/i386/amd64.c: Remove.
7629 * features/i386/i386-avx-avx512.c: Remove.
7630 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
7631 * features/i386/i386-avx-mpx.c: Remove.
7632 * features/i386/i386-avx.c: Remove.
7633 * features/i386/i386-mmx.c: Remove.
7634 * features/i386/i386-mpx.c: Remove.
7635 * features/i386/i386.c: Remove.
7636 * i386-tdep.c: Don't include features/i386/i386*.c., include
7637 target-descriptions.h and arch/i386.h.
7638 (i386_target_description): Create target descriptions.
7639 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7640 functions. Do self tests.
7642 2017-09-05 Yao Qi <yao.qi@linaro.org>
7644 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7645 * features/i386/amd64-avx-avx512-linux.c: Removed.
7646 * features/i386/amd64-avx-linux.c: Removed.
7647 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
7648 * features/i386/amd64-avx-mpx-linux.c: Removed.
7649 * features/i386/amd64-linux.c: Removed.
7650 * features/i386/amd64-mpx-linux.c: Removed.
7651 * features/i386/x32-avx-avx512-linux.c: Removed.
7652 * features/i386/x32-avx-linux.c: Removed.
7653 * features/i386/x32-linux.c: Removed.
7655 2017-09-05 Yao Qi <yao.qi@linaro.org>
7657 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
7659 (amd64_linux_read_description): Call
7660 amd64_create_target_description.
7661 * arch/amd64.c: New file.
7662 * arch/amd64.h: New file.
7663 * configure.tgt (x86_64-*-linux*): Append amd64.o.
7664 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
7666 2017-09-05 Yao Qi <yao.qi@linaro.org>
7668 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
7669 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
7670 (amd64_linux_read_description): Create target descriptions.
7671 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
7672 functions. Add unit tests.
7673 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
7675 * features/i386/64bit-avx.c: Generated.
7676 * features/i386/64bit-avx512.c: Generated.
7677 * features/i386/64bit-core.c: Generated.
7678 * features/i386/64bit-linux.c: Generated.
7679 * features/i386/64bit-mpx.c: Generated.
7680 * features/i386/64bit-pkeys.c: Generated.
7681 * features/i386/64bit-segments.c: Generated.
7682 * features/i386/64bit-sse.c: Generated.
7683 * features/i386/x32-core.c: Generated.
7684 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
7685 c files for amd64-linux and x32-linux.
7687 2017-09-05 Yao Qi <yao.qi@linaro.org>
7689 * amd64-linux-tdep.c (amd64_linux_read_description): New
7691 (amd64_linux_core_read_description): Call
7692 amd64_linux_read_description.
7693 (amd64_linux_init_abi): Likewise.
7694 (amd64_x32_linux_init_abi): Likewise.
7695 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
7696 * x86-linux-nat.c (x86_linux_read_description): Call
7697 amd64_linux_read_description.
7699 2017-09-05 Yao Qi <yao.qi@linaro.org>
7701 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
7704 2017-09-05 Yao Qi <yao.qi@linaro.org>
7706 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
7707 * features/i386/i386-avx-avx512-linux.c: Remove.
7708 * features/i386/i386-avx-linux.c: Remove.
7709 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
7710 * features/i386/i386-avx-mpx-linux.c: Remove.
7711 * features/i386/i386-linux.c: Remove.
7712 * features/i386/i386-mmx-linux.c: Remove.
7713 * features/i386/i386-mpx-linux.c: Remove.
7715 2017-09-05 Yao Qi <yao.qi@linaro.org>
7717 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
7718 (SFILES): Add arch/i386.c.
7719 (HFILES_NO_SRCDIR): Add arch/i386.h.
7720 * arch/i386.c: New file.
7721 * arch/i386.h: New file.
7722 * arch/tdesc.h (allocate_target_description): Declare.
7723 (set_tdesc_architecture): Declare.
7724 (set_tdesc_osabi): Declare.
7725 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
7726 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
7727 include arch/i386.h.
7728 (i386_linux_read_description): Remove code and call
7729 i386_create_target_description.
7730 (set_tdesc_architecture): New function.
7731 (set_tdesc_osabi): New function.
7732 * target-descriptions.h (allocate_target_description): Remove.
7734 2017-09-05 Yao Qi <yao.qi@linaro.org>
7736 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
7737 * target-descriptions.c (tdesc_create_feature): Likewise, and
7739 * features/i386/32bit-avx.c: Re-generated.
7740 * features/i386/32bit-avx512.c: Re-generated.
7741 * features/i386/32bit-core.c: Re-generated.
7742 * features/i386/32bit-linux.c: Re-generated.
7743 * features/i386/32bit-mpx.c: Re-generated.
7744 * features/i386/32bit-pkeys.c: Re-generated.
7745 * features/i386/32bit-sse.c: Re-generated.
7747 2017-09-05 Yao Qi <yao.qi@linaro.org>
7749 * regformats/regdef.h (struct reg): Override operator == and !=.
7751 2017-09-05 Yao Qi <yao.qi@linaro.org>
7753 * arch/tdesc.h: New file.
7754 * regformats/regdat.sh: Generate code using tdesc_create_reg.
7755 * target-descriptions.c: Update comments.
7756 * target-descriptions.h: Include "arch/tdesc.h". Remove the
7758 * features/i386/32bit-avx.c: Re-generated.
7759 * features/i386/32bit-avx512.c: Re-generated.
7760 * features/i386/32bit-core.c: Re-generated.
7761 * features/i386/32bit-linux.c: Re-generated.
7762 * features/i386/32bit-mpx.c: Re-generated.
7763 * features/i386/32bit-pkeys.c: Re-generated.
7764 * features/i386/32bit-sse.c: Re-generated.
7766 2017-09-05 Yao Qi <yao.qi@linaro.org>
7768 * regformats/regdat.sh: Update generated code.
7770 2017-09-05 Yao Qi <yao.qi@linaro.org>
7772 * regformats/regdat.sh: Adjust code order.
7774 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7776 * expprint.c (dump_subexp_body_standard): Use constant format
7777 string in fprintf_filtered call.
7779 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7781 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
7783 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
7785 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7787 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
7789 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7791 * bsd-kvm.o: Define _KMEMUSER.
7792 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
7793 * configure: Regenerate.
7795 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7797 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
7798 * i386-fbsd-nat.c: Likewise.
7800 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7802 * unittests/array-view-selftests.c: Add include of <array>.
7804 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7806 * spu-tdep.c (flush_ea_cache): Add missing argument to
7807 call_function_by_hand.
7809 2017-09-04 Pedro Alves <palves@redhat.com>
7811 * NEWS (Safer support for debugging with no debug info): New.
7813 2017-09-04 Pedro Alves <palves@redhat.com>
7815 * c-exp.y (function_method, function_method_void): Add current
7816 instance flags to TYPE_INSTANCE.
7817 * dwarf2read.c (check_modifier): New.
7818 (compute_delayed_physnames): Assert that only C++ adds delayed
7819 physnames. Mark fn_fields as const/volatile depending on
7821 * eval.c (make_params): New type_instance_flags parameter. Use
7822 it as the new type's instance flags.
7823 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
7824 flags element and pass it to make_params.
7825 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
7826 instance flags element.
7827 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
7828 * gdbtypes.h: Include "enum-flags.h".
7829 (type_instance_flags): New enum-flags type.
7830 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
7831 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
7832 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
7833 (follow_type_instance_flags): New function.
7834 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
7835 * parser-defs.h (follow_type_instance_flags): Declare.
7836 * valops.c (value_struct_elt_for_reference): const/volatile must
7839 2017-09-04 Pedro Alves <palves@redhat.com>
7841 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
7842 function/method scopes; lookup the nested name as a function local
7845 2017-09-04 Pedro Alves <palves@redhat.com>
7847 (%type <voidval>): Add function_method.
7848 * c-exp.y (exp): New production for calls with no arguments.
7849 (function_method, function_method_void_or_typelist): New
7851 (exp): New production for "method()::static_var".
7852 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
7853 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7854 Handle OP_FUNC_STATIC_VAR.
7855 * parse.c (operator_length_standard):
7856 Handle OP_FUNC_STATIC_VAR.
7858 2017-09-04 Pedro Alves <palves@redhat.com>
7860 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
7862 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7864 * parse.c (operator_length_standard, operator_check_standard):
7866 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
7868 2017-09-04 Pedro Alves <palves@redhat.com>
7870 * ax-gdb.c: Include "typeprint.h".
7871 (gen_expr_for_cast): New function.
7872 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
7873 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
7875 * dwarf2read.c (new_symbol_full): Fallback to int instead of
7876 nodebug_data_symbol.
7877 * eval.c: Include "typeprint.h".
7878 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
7879 Error out if symbol has unknown type.
7880 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
7881 evaluate_subexp_for_cast.
7882 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
7884 (evaluate_subexp_for_cast): New function.
7885 * gdbtypes.c (init_nodebug_var_type): New function.
7886 (objfile_type): Use it to initialize types of variables with no
7888 * typeprint.c (error_unknown_type): New.
7889 * typeprint.h (error_unknown_type): New declaration.
7890 * compile/compile-c-types.c (convert_type_basic): Handle
7891 TYPE_CODE_ERROR; warn and fallback to int for variables with
7894 2017-09-04 Pedro Alves <palves@redhat.com>
7896 * eval.c (evaluate_var_value): New function, factored out from ...
7897 (evaluate_subexp_standard): ... here.
7899 2017-09-04 Pedro Alves <palves@redhat.com>
7901 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
7902 Remove useless assignments to 'op'.
7904 2017-09-04 Pedro Alves <palves@redhat.com>
7906 * eval.c (eval_skip_value): New function.
7907 (evaluate_subexp_standard): Use it.
7909 2017-09-04 Pedro Alves <palves@redhat.com>
7911 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
7912 function name from symbol/minsym and pass it to
7913 error_call_unknown_return_type.
7915 2017-09-04 Pedro Alves <palves@redhat.com>
7917 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
7918 * ax-gdb.c (gen_msym_var_ref): New function.
7919 (gen_expr): Handle OP_VAR_MSYM_VALUE.
7920 * eval.c (evaluate_var_msym_value): New function.
7921 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
7922 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
7923 to call_function_by_hand.
7924 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7925 Handle OP_VAR_MSYM_VALUE.
7926 (union exp_element) <msymbol>: New field.
7927 * minsyms.h (struct type): Forward declare.
7928 (find_minsym_type_and_address): Declare.
7929 * parse.c (write_exp_elt_msym): New function.
7930 (write_exp_msymbol): Delete, refactored as ...
7931 (find_minsym_type_and_address): ... this new function.
7932 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
7933 (operator_length_standard, operator_check_standard): Handle
7935 * std-operator.def (OP_VAR_MSYM_VALUE): New.
7937 2017-09-04 Pedro Alves <palves@redhat.com>
7939 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
7940 TYPE_GNU_IFUNC specially here. Throw error if return type is
7942 * ada-typeprint.c (print_func_type): Handle functions with unknown
7944 * c-typeprint.c (c_type_print_base): Handle functions and methods
7945 with unknown return type.
7946 * compile/compile-c-symbols.c (convert_symbol_bmsym)
7947 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
7948 * compile/compile-c-types.c: Include "objfiles.h".
7949 (convert_func): For functions with unknown return type, warn and
7951 * compile/compile-object-run.c (compile_object_run): Adjust call
7952 to call_function_by_hand_dummy.
7953 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
7954 call_function_by_hand.
7955 * eval.c (evaluate_subexp_standard): Adjust calls to
7956 call_function_by_hand. Handle functions and methods with unknown
7957 return type. Pass expect_type to call_function_by_hand.
7958 * f-typeprint.c (f_type_print_base): Handle functions with unknown
7960 * gcore.c (call_target_sbrk): Adjust call to
7961 call_function_by_hand.
7962 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
7963 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
7964 an integer address type instead of nodebug.
7965 * guile/scm-value.c (gdbscm_value_call): Adjust call to
7966 call_function_by_hand.
7967 * infcall.c (error_call_unknown_return_type): New function.
7968 (call_function_by_hand): New "default_return_type" parameter.
7970 (call_function_by_hand_dummy): New "default_return_type"
7971 parameter. Use it instead of defaulting to int. If there's no
7972 default and the return type is unknown, throw an error. If
7973 there's a default return type, and the called function has no
7974 debug info, then assume the function is prototyped.
7975 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
7976 New "default_return_type" parameter.
7977 (error_call_unknown_return_type): New declaration.
7978 * linux-fork.c (call_lseek): Cast return type of lseek.
7979 (inferior_call_waitpid, checkpoint_command): Adjust calls to
7980 call_function_by_hand.
7981 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
7982 calls to call_function_by_hand.
7983 * m2-typeprint.c (m2_procedure): Handle functions with unknown
7985 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7986 (value_nsstring, print_object_command): Adjust calls to
7987 call_function_by_hand.
7988 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
7989 functions with unknown return type.
7990 (pascal_type_print_func_varspec_suffix): New function.
7991 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
7992 TYPE_CODE_METHOD>: Use it.
7993 * python/py-value.c (valpy_call): Adjust call to
7994 call_function_by_hand.
7995 * rust-lang.c (rust_evaluate_funcall): Adjust call to
7996 call_function_by_hand.
7997 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
7998 call_function_by_hand.
7999 * valops.c (value_allocate_space_in_inferior): Adjust call to
8000 call_function_by_hand.
8001 * typeprint.c (type_print_unknown_return_type): New function.
8002 * typeprint.h (type_print_unknown_return_type): New declaration.
8004 2017-09-04 Pedro Alves <palves@redhat.com>
8006 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8007 types with more than one parameter as prototyped.
8009 2017-09-04 Pedro Alves <palves@redhat.com>
8011 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8012 (disassemble_command): Use gdb_disassembly_flags instead of bare
8014 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8015 (dump_insns, do_mixed_source_and_assembly_deprecated)
8016 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8017 Use gdb_disassembly_flags instead of bare int.
8018 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8019 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8020 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8021 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8022 (enum gdb_disassembly_flag): ... values of this new enumeration.
8023 (gdb_disassembly_flags): Define.
8025 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8026 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8027 gdb_disassembly_flags instead of bare int.
8028 * record-btrace.c (btrace_insn_history)
8029 (record_btrace_insn_history, record_btrace_insn_history_range)
8030 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8031 instead of bare int.
8032 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8033 Use gdb_disassembly_flags instead of bare int.
8034 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8036 * target-delegates.c: Regenerate.
8037 * target.c (target_insn_history, target_insn_history_from)
8038 (target_insn_history_range): Use gdb_disassembly_flags instead of
8040 * target.h: Include "disasm.h".
8041 (struct target_ops) <to_insn_history, to_insn_history_from,
8042 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8044 (target_insn_history, target_insn_history_from)
8045 (target_insn_history_range): Use gdb_disassembly_flags instead of
8048 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8050 * cli/cli-script.c (build_command_line): For if/while commands,
8051 check whether args is empty.
8053 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8055 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8056 (enum command_control_type): Likewise.
8057 (struct command_line): Likewise.
8058 (free_command_lines): Likewise.
8059 (struct command_lines_deleter): Likewise.
8060 (command_line_up): Likewise.
8061 (read_command_lines): Likewise.
8062 (read_command_lines_1): Likewise.
8063 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8064 (enum command_control_type): Likewise.
8065 (struct command_line): Likewise.
8066 (free_command_lines): Likewise.
8067 (struct command_lines_deleter): Likewise.
8068 (command_line_up): Likewise.
8069 (read_command_lines): Likewise.
8070 (read_command_lines_1): Likewise.
8071 * breakpoint.h: Include cli/cli-script.h.
8072 * extension-priv.h: Likewise.
8073 * gdbcmd.h: Likewise.
8075 2017-09-04 Pedro Alves <palves@redhat.com>
8077 * ada-lang.c (is_known_support_routine): Move sal declaration to
8078 where it is initialized.
8079 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8080 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8081 (clear_command, update_static_tracepoint): Remove init_sal
8082 references. Move declarations closer to initializations.
8083 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8085 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8086 references. Move sal declarations closer to initializations.
8087 * frame.c (find_frame_sal): Return a symtab_and_line via function
8088 return instead of output parameter. Remove init_sal references.
8089 * frame.h (find_frame_sal): Return a symtab_and_line via function
8090 return instead of output parameter.
8091 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8092 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8094 (gdbscm_find_pc_line): Remove init_sal reference.
8095 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8096 references. Move declarations closer to initializations.
8097 * infcmd.c (set_step_frame): Update. Move declarations closer to
8099 (finish_backward): Remove init_sal references. Move declarations
8100 closer to initializations.
8101 * infrun.c (process_event_stop_test, handle_step_into_function)
8102 (insert_hp_step_resume_breakpoint_at_frame)
8103 (insert_step_resume_breakpoint_at_caller): Likewise.
8104 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8105 (symbol_to_sal): Likewise.
8106 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8107 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8108 to its initialization.
8109 * reverse.c (save_bookmark_command): Use new/delete. Remove
8110 init_sal references. Move declarations closer to initializations.
8111 * source.c (get_current_source_symtab_and_line): Remove brace
8113 (set_current_source_symtab_and_line): Now takes the sal by const
8114 reference. Remove brace initialization.
8115 (line_info): Remove init_sal reference.
8116 * source.h (set_current_source_symtab_and_line): Now takes a
8117 symtab_and_line via const reference.
8118 * stack.c (set_current_sal_from_frame): Adjust.
8119 (print_frame_info): Adjust.
8120 (get_last_displayed_sal): Return the sal via function return
8121 instead of via output parameter. Simplify.
8122 (frame_info): Adjust.
8123 * stack.h (get_last_displayed_sal): Return the sal via function
8124 return instead of via output parameter.
8125 * symtab.c (init_sal): Delete.
8126 (find_pc_sect_line): Remove init_sal references. Move
8127 declarations closer to initializations.
8128 (find_function_start_sal): Remove init_sal references. Move
8129 declarations closer to initializations.
8130 * symtab.h (struct symtab_and_line): In-class initialize all
8132 * tracepoint.c (set_traceframe_context)
8133 (print_one_static_tracepoint_marker): Remove init_sal references.
8134 Move declarations closer to initializations.
8135 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8136 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8137 declarations closer to initializations.
8138 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8139 init_sal references. Adjust.
8141 2017-09-04 Pedro Alves <palves@redhat.com>
8143 * ax-gdb.c (agent_command_1): Use range-for.
8144 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8145 * breakpoint.c: Include "common/array-view.h".
8146 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8147 parameter from struct symtabs_and_lines to
8148 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8149 (breakpoint_sals_to_pc): Change sals parameter from struct
8150 symtabs_and_lines to std::vector reference.
8151 (check_fast_tracepoint_sals): Change sals parameter from struct
8152 symtabs_and_lines to std::array_view. Use range-for.
8153 (decode_static_tracepoint_spec): Return a std::vector instead of
8154 symtabs_and_lines. Update.
8155 (create_breakpoint): Update.
8156 (break_range_command, until_break_command, clear_command): Update.
8157 (base_breakpoint_decode_location, bkpt_decode_location)
8158 (bkpt_probe_create_sals_from_location)
8159 (bkpt_probe_decode_location, tracepoint_decode_location)
8160 (tracepoint_probe_decode_location)
8161 (strace_marker_create_sals_from_location): Return a std::vector
8162 instead of symtabs_and_lines.
8163 (strace_marker_create_breakpoints_sal): Update.
8164 (strace_marker_decode_location): Return a std::vector instead of
8165 symtabs_and_lines. Update.
8166 (update_breakpoint_locations): Change struct symtabs_and_lines
8167 parameters to gdb::array_view. Adjust.
8168 (location_to_sals): Return a std::vector instead of
8169 symtabs_and_lines. Update.
8170 (breakpoint_re_set_default): Use std::vector instead of struct
8172 (decode_location_default): Return a std::vector instead of
8173 symtabs_and_lines. Update.
8174 * breakpoint.h: Include "common/array-view.h".
8175 (struct breakpoint_ops) <decode_location>: Now returns a
8176 std::vector instead of returning a symtabs_and_lines via output
8178 (update_breakpoint_locations): Change sals parameters to use
8180 * cli/cli-cmds.c (edit_command, list_command): Update to use
8181 std::vector and gdb::array_view.
8182 (ambiguous_line_spec): Adjust to use gdb::array_view and
8184 (compare_symtabs): Rename to ...
8185 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8186 const reference and adjust.
8187 (filter_sals): Rewrite using std::vector and standard algorithms.
8188 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8189 (jump_command): Update to use std::vector.
8190 * linespec.c (struct linespec_state) <canonical_names>: Update
8192 (add_sal_to_sals_basic): Delete.
8193 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8194 (decode_line_2, create_sals_line_offset)
8195 (convert_address_location_to_sals, convert_linespec_to_sals)
8196 (convert_explicit_location_to_sals, parse_linespec)
8197 (event_location_to_sals, decode_line_full, decode_line_1)
8198 (decode_line_with_current_source)
8199 (decode_line_with_last_displayed, decode_objc)
8200 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8201 (linespec_result::~linespec_result): Adjust to use std::vector
8202 instead of symtabs_and_lines.
8203 * linespec.h (linespec_sals::sals): Now a std::vector.
8204 (struct linespec_result): Use std::vector, bool, and in-class
8206 (decode_line_1, decode_line_with_current_source)
8207 (decode_line_with_last_displayed): Return std::vector.
8208 * macrocmd.c (info_macros_command): Use std::vector.
8209 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8210 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8212 * probe.h (parse_probes): Return a std::vector.
8213 * python/python.c (gdbpy_decode_line): Use std::vector and
8215 * source.c (select_source_symtab, line_info): Use std::vector.
8216 * stack.c (func_command): Use std::vector.
8217 * symtab.h (struct symtabs_and_lines): Delete.
8218 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8220 2017-09-04 Pedro Alves <palves@redhat.com>
8222 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8223 unittests/array-view-selftests.c.
8224 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8225 * common/array-view.h: New file.
8226 * unittests/array-view-selftests.c: New file.
8228 2017-09-04 Pedro Alves <palves@redhat.com>
8230 * cli/cli-cmds.c (edit_command): Pass message to
8231 ambiguous_line_spec.
8232 (list_command): Pass message to ambiguous_line_spec. Say
8233 "first"/"last" instead of "start" and "end" to be consistent with
8235 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8236 them to print formatted message.
8238 2017-09-04 Pedro Alves <palves@redhat.com>
8240 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8241 ftrace_update_insns by reference instead of pointer.
8243 2017-09-04 Yao Qi <yao.qi@linaro.org>
8245 * i386-go32-tdep.c: Include x86-xstate.h.
8246 (i386_go32_init_abi): Call i386_target_description.
8247 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8248 if xcr0 is X86_XSTATE_X87_MASK.
8249 * i386-tdep.h (tdesc_i386): Remove the declaration.
8250 (tdesc_i386_mmx): Likewise.
8252 2017-09-04 Yao Qi <yao.qi@linaro.org>
8254 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8255 X86_XSTATE_SSE_MASK instead of 0.
8257 2017-09-04 Yao Qi <yao.qi@linaro.org>
8259 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8260 i386_target_description.
8261 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8262 i386_target_description.
8263 * i386-tdep.c (i386_gdbarch_init): Likewise.
8265 2017-09-04 Yao Qi <yao.qi@linaro.org>
8267 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8268 (x86_darwin_init_abi_64): Call amd64_target_description.
8269 * amd64-dicos-tdep.c: Likewise.
8270 * amd64-fbsd-nat.c: Likewise.
8271 * amd64-fbsd-tdep.c: Likewise.
8272 * amd64-nbsd-tdep.c: Likewise.
8273 * amd64-obsd-tdep.c: Likewise.
8274 * amd64-sol2-tdep.c: Likewise.
8275 * amd64-windows-tdep.c: Likewise.
8276 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8278 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8280 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8281 (btrace_function) <insn>: Change type to use std::vector.
8282 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8283 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8284 ftrace_update_insns, ftrace_compute_global_level_offset,
8285 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8286 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8287 change to std::vector.
8288 (ftrace_update_insns): Adjust to change to std::vector, change
8289 type of INSN parameter.
8290 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8291 * record-btrace.c (btrace_call_history_insn_range,
8292 btrace_compute_src_line_range,
8293 record_btrace_frame_prev_register): Adjust to change to
8295 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8296 to change to std::vector.
8298 2017-09-03 Tom Tromey <tom@tromey.com>
8300 * corefile.c (reopen_exec_file): Use std::string.
8302 2017-09-03 Tom Tromey <tom@tromey.com>
8304 * compile/compile.c (compile_register_name_mangled): Return
8306 * compile/compile-loc2c.c (pushf_register_address): Update.
8307 (pushf_register): Update.
8308 * compile/compile-c-types.c (convert_array): Update.
8309 * compile/compile-c-symbols.c (generate_vla_size): Update.
8310 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8311 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8312 (convert_one_symbol): Update.
8313 (generate_c_for_for_one_variable): Update.
8314 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8316 (generate_register_struct): Update.
8317 * compile/compile-internal.h (c_get_range_decl_name): Return a
8319 (compile_register_name_mangled): Return std::string.
8321 2017-09-03 Tom Tromey <tom@tromey.com>
8323 * utils.c (perror_string): Return a std::string.
8324 (throw_perror_with_name, perror_warning_with_name): Update.
8326 2017-09-03 Tom Tromey <tom@tromey.com>
8328 * demangle.c (demangle_command): Use std::string,
8331 2017-09-03 Tom Tromey <tom@tromey.com>
8333 * cli/cli-setshow.c (do_set_command): Use std::string.
8335 2017-09-03 Tom Tromey <tom@tromey.com>
8337 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8339 2017-09-03 Tom Tromey <tom@tromey.com>
8341 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8343 2017-09-03 Tom Tromey <tom@tromey.com>
8345 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8346 gdb::unique_xmalloc_ptr.
8348 2017-09-03 Tom Tromey <tom@tromey.com>
8350 * thread.c (print_thread_info_1): Use string_printf.
8351 (thread_apply_command, thread_apply_all_command): Use
8354 2017-09-03 Tom Tromey <tom@tromey.com>
8356 * valprint.c (val_print_string): Update.
8357 * gdbcore.h (memory_error_message): Return std::string.
8358 * corefile.c (memory_error_message): Return std::string.
8359 (memory_error): Update.
8360 * breakpoint.c (insert_bp_location): Update.
8362 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8364 * target/waitstatus.h (target_waitstatus_to_string): Change
8365 return type to std::string.
8366 * target/waitstatus.c (target_waitstatus_to_string): Return
8368 * target.h (target_waitstatus_to_string): Remove declaration.
8369 * infrun.c (resume, clear_proceed_status_thread,
8370 print_target_wait_results, do_target_wait, save_waitstatus,
8371 stop_all_threads): Adjust.
8372 * record-btrace.c (record_btrace_wait): Adjust.
8374 (target_debug_print_struct_target_waitstatus_p): Adjust.
8376 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8379 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8382 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8384 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8385 for setting/unsetting environment variables on the remote target.
8386 (New remote packets): Add entries for QEnvironmentHexEncoded,
8387 QEnvironmentUnset and QEnvironmentReset.
8388 * common/environ.c (gdb_environ::operator=): Extend method to
8389 handle m_user_set_env_list and m_user_unset_env_list.
8390 (gdb_environ::clear): Likewise.
8391 (match_var_in_string): Change type of first parameter from 'char
8392 *' to 'const char *'.
8393 (gdb_environ::set): Extend method to handle
8394 m_user_set_env_list and m_user_unset_env_list.
8395 (gdb_environ::unset): Likewise.
8396 (gdb_environ::clear_user_set_env): New method.
8397 (gdb_environ::user_set_envp): Likewise.
8398 (gdb_environ::user_unset_envp): Likewise.
8399 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8400 m_user_unset_env_list on move constructor/assignment.
8401 (unset): Add new default parameter 'update_unset_list = true'.
8402 (clear_user_set_env): New method.
8403 (user_set_envp): Likewise.
8404 (user_unset_envp): Likewise.
8405 (m_user_set_env_list): New std::set.
8406 (m_user_unset_env_list): Likewise.
8407 * common/rsp-low.c (hex2str): New function.
8408 (bin2hex): New overload for bin2hex function.
8409 * common/rsp-low.c (hex2str): New prototype.
8410 (str2hex): New overload prototype.
8411 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8412 QEnvironmentUnset and QEnvironmentReset.
8413 (remote_protocol_features): Add QEnvironmentHexEncoded,
8414 QEnvironmentUnset and QEnvironmentReset packets.
8415 (send_environment_packet): New function.
8416 (extended_remote_environment_support): Likewise.
8417 (extended_remote_create_inferior): Call
8418 extended_remote_environment_support.
8419 (_initialize_remote): Add QEnvironmentHexEncoded,
8420 QEnvironmentUnset and QEnvironmentReset packet configs.
8421 * unittests/environ-selftests.c (gdb_selftest_env_var):
8423 (test_vector_initialization): New function.
8424 (test_init_from_host_environ): Likewise.
8425 (test_reinit_from_host_environ): Likewise.
8426 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8428 (test_unset_set_empty_vector): Likewise.
8429 (test_vector_clear): Likewise.
8430 (test_std_move): Likewise.
8431 (test_move_constructor):
8432 (test_self_move): Likewise.
8433 (test_set_unset_reset): Likewise.
8434 (run_tests): Rewrite in terms of the functions above.
8436 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
8438 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8439 (adi_available): Use a temp variable of type CORE_ADDR as argument
8440 3 when calling target_auxv_search.
8441 (adi_normalize_address): Use masks and xor operators to calculate
8443 (adi_read_versions, adi_write_versions, adi_print_versions)
8444 (do_examine, do_assign): Use paddress.
8446 2017-08-29 John Baldwin <jhb@FreeBSD.org>
8448 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
8449 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
8450 out of loop and add supply of FIR.
8451 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
8454 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
8457 * cli/cli-script.c (define_command): Don't convert command name
8460 2017-08-25 Joel Brobecker <brobecker@adacore.com>
8462 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
8463 Update all callers accordingly. Remove all code blocks handling
8464 the case where DISPP is not NULL.
8466 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8469 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
8470 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8471 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
8473 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8475 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
8476 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
8477 (read_comp_units_from_section): New parameter abbrev_section, use
8478 read_and_check_comp_unit_head, allocate signatured_type if needed.
8479 (create_all_comp_units): Update read_comp_units_from_section caller.
8481 2017-08-23 Pedro Alves <palves@redhat.com>
8484 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
8485 to null_ptid and switch to thread without reading the registers
8486 after adding the inferior.
8488 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8490 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
8492 * compile/compile.c (compile_gcc, show_compile_gcc): New.
8493 (compile_to_object): Implement compile_gcc.
8494 (_initialize_compile): Install "set compile-gcc". Initialize
8497 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8499 * compile/compile.c (compile_to_object): Conditionally call
8500 set_verbose. Conditionally call compile or compile_v0.
8502 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
8504 * sparc64-tdep.h: (adi_normalize_address): New export.
8505 * sparc-nat.h: (open_adi_tag_fd): New export.
8506 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
8507 * sparc64-linux-tdep.c:
8508 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
8509 (sparc64_linux_handle_segmentation_fault): New function.
8510 (sparc64_linux_init_abi): Register
8511 sparc64_linux_handle_segmentation_fault
8512 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
8513 (sparc64_addr_bits_remove): New function.
8514 (sparc64_init_abi): Register sparc64_addr_bits_remove.
8515 (MAX_PROC_NAME_SIZE): New macro.
8516 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
8517 (sparc64adilist): New variable.
8518 (adi_proc_list): New variable.
8519 (find_adi_info): New function.
8520 (add_adi_info): New function.
8521 (get_adi_info_proc): New function.
8522 (get_adi_info): New function.
8523 (info_adi_command): New function.
8524 (read_maps_entry): New function.
8525 (adi_available): New function.
8526 (adi_normalize_address): New function.
8527 (adi_align_address): New function.
8528 (adi_convert_byte_count): New function.
8529 (adi_tag_fd): New function.
8530 (adi_is_addr_mapped): New function.
8531 (adi_read_versions): New function.
8532 (adi_write_versions): New function.
8533 (adi_print_versions): New function.
8534 (do_examine): New function.
8535 (do_assign): New function.
8536 (adi_examine_command): New function.
8537 (adi_assign_command): New function.
8538 (_initialize_sparc64_adi_tdep): New function.
8540 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
8542 * breakpoint.c (breakpoints_info): Rename to ...
8543 (info_breakpoints_command): ... this.
8544 (watchpoints_info): Rename to ...
8545 (info_watchpoints_command): ... this.
8546 (tracepoints_info): Rename to ...
8547 (info_tracepoints_command): ... this.
8548 (_initialize_breakpoint): Adjust.
8549 * dcache.c (dcache_info): Rename to ...
8550 (info_display_command): ... this.
8551 (_initialize_dcache): Adjust.
8552 * frame.h (args_info): Rename to ...
8553 (info_args_command): ... this.
8554 (locals_info): Rename to ...
8555 (info_locals_command): ... this.
8556 * infcmd.c (nofp_registers_info): Rename to ...
8557 (info_registers_command): ... this.
8558 (float_info): Rename to ...
8559 (info_float_command): ... this.
8560 (program_info): Rename to ...
8561 (info_program_command): ... this.
8562 (all_registers_info): Rename to ...
8563 (info_all_registers_command): ... this.
8564 (vector_info): Rename to ...
8565 (info_vector_command): ... this.
8566 (float_info): Rename to ...
8567 (info_float_command): ... this.
8568 (_initialize_infcmd): Adjust.
8569 * inferior.h (term_info): Rename to ...
8570 (info_terminal_command): ... this.
8571 * inflow.c (term_info): Rename to ...
8572 (info_terminal_command): ... this.
8573 (_initialize_inflow): Adjust.
8574 * infrun.c (signals_info): Rename to ...
8575 (info_signals_command): ... this.
8576 (_initialize_infrun): Adjust.
8577 * objc-lang.c (classes_info): Rename to ...
8578 (info_classes_command): ... this.
8579 (selectors_info): Rename to ...
8580 (info_selectors_command): ... this.
8581 (_initialize_objc_language): Adjust.
8582 * printcmd.c (sym_info): Rename to ...
8583 (info_symbol_command): ... this.
8584 (address_info): Rename to ...
8585 (info_address_command): ... this.
8586 (display_info): Rename to ...
8587 (info_display_command): ... this.
8588 (_initialize_printcmd): Adjust.
8589 * reverse.c (bookmarks_info): Rename to ...
8590 (info_breakpoints_command): ... this.
8591 (_initialize_reverse): Adjust.
8592 * ser-go32.c (dos_info): Rename to ...
8593 (info_serial_command): ... this.
8594 (_initialize_ser_dos): Adjust.
8595 * skip.c (skip_info): Rename to ...
8596 (info_skip_command): ... this.
8597 (_initialize_step_skip): Adjust.
8598 * source.c (line_info): Rename to ...
8599 (info_line_command): ... this.
8600 (source_info): Rename to ...
8601 (info_source_command)
8602 * stack.c (frame_info): Rename to ...
8603 (info_frame_command): ... this.
8604 (locals_info): Rename to ...
8605 (info_locals_command): ... this.
8606 (args_info): Rename to ...
8607 (info_args_command): ... this.
8608 (_initialize_stack): Adjust.
8609 * symtab.c (sources_info): Rename to ...
8610 (info_sources_command): ... this.
8611 (variables_info): Rename to ...
8612 (info_variables_command): ... this.
8613 (functions_info): Rename to ...
8614 (info_functions_command): ... this.
8615 (types_info): Rename to ...
8616 (info_types_command): ... this.
8617 (_initialize_symtab): Adjust.
8618 * target.c (target_info): Rename to ...
8619 (info_target_command): ... this.
8620 (initialize_targets): Adjust.
8621 * tracepoint.c (tvariables_info): Rename to ...
8622 (info_tvariables_command): ... this.
8623 (scope_info): Rename to ...
8624 (info_scope_command): ... this.
8625 (trace_dump_actions): Adjust.
8626 (_initialize_tracepoint): Adjust.
8628 2017-08-22 Tom Tromey <tom@tromey.com>
8630 * breakpoint.h (install_breakpoint): Update.
8631 * breakpoint.c (add_solib_catchpoint): Update.
8632 (install_breakpoint): Change argument to a std::unique_ptr.
8633 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8634 (create_breakpoint_sal, create_breakpoint): Update.
8635 (watch_command_1, catch_exec_command_1)
8636 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8637 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8638 Return the breakpoint.
8639 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8640 (new_single_step_breakpoint): Update.
8641 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8643 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8645 * break-catch-sig.c (create_signal_catchpoint): Use
8647 * ada-lang.c (create_ada_exception_catchpoint): Use
8650 2017-08-22 Tom Tromey <tom@tromey.com>
8652 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
8654 2017-08-22 Tom Tromey <tom@tromey.com>
8656 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
8657 (lookup_partial_symbol): Update.
8659 2017-08-22 Tom Tromey <tom@tromey.com>
8661 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
8662 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
8663 (find_and_open_source, symtab_to_fullname): Update.
8664 * psymtab.c (psymtab_to_fullname): Update.
8666 2017-08-22 Tom Tromey <tom@tromey.com>
8668 * exec.c (exec_file_attach): Update.
8669 * linux-thread-db.c (try_thread_db_load): Update.
8670 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
8671 * utils.c (gdb_realpath): Change return type.
8672 (gdb_realpath_keepfile): Update.
8673 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
8674 (_initialize_utils): Register the new self test.
8675 * source.c (openp): Update.
8676 (find_and_open_source): Update.
8677 * nto-tdep.c (nto_find_and_open_solib): Update.
8678 * main.c (set_gdb_data_directory): Update.
8679 (captured_main_1): Update.
8680 * dwarf2read.c (dwarf2_get_dwz_file): Update
8681 (dw2_map_symbol_filenames): Update.
8682 * auto-load.c (auto_load_safe_path_vec_update): Update.
8683 (filename_is_in_auto_load_safe_path_vec): Change type of
8685 (auto_load_objfile_script): Update.
8686 (file_is_auto_load_safe): Update. Use std::string.
8687 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
8689 2017-08-22 Tom Tromey <tom@tromey.com>
8691 * utils.c (gdb_realpath_keepfile): Return a
8692 gdb::unique_xmalloc_ptr.
8693 * exec.c (exec_file_attach): Update.
8694 * utils.h (gdb_realpath_keepfile): Return a
8695 gdb::unique_xmalloc_ptr.
8697 2017-08-22 Tom Tromey <tom@tromey.com>
8699 * compile/compile.c (compile_file_command): Use
8700 gdb::unique_xmalloc_ptr, std::string.
8701 * utils.c (gdb_abspath): Change return type.
8702 * source.c (openp): Update.
8703 * objfiles.c (allocate_objfile): Update.
8704 * main.c (set_gdb_data_directory): Update.
8705 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
8707 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
8709 * cli-cmds.c (list_commands): List actual code around more than
8712 2017-08-21 John Baldwin <jhb@FreeBSD.org>
8714 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
8716 2017-08-21 Pedro Alves <palves@redhat.com>
8719 * c-exp.y (variable production): Handle function aliases.
8720 * minsyms.c (msymbol_is_text): New function.
8721 * minsyms.h (msymbol_is_text): Declare.
8722 * symtab.c (find_function_alias_target): New function.
8723 * symtab.h (find_function_alias_target): Declare.
8725 2017-08-21 Pedro Alves <palves@redhat.com>
8727 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
8729 * typeprint.c (whatis_exp): If handling "whatis", and expression
8730 is OP_TYPE, strip one typedef level. Otherwise don't strip
8732 * valops.c (value_cast): Save "to" type before resolving
8733 stubs/typedefs. Use that type as resulting value's type.
8735 2017-08-18 Tom Tromey <tom@tromey.com>
8736 Pedro Alves <palves@redhat.com>
8738 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
8739 * sol-thread.c (sol_thread_resume, sol_thread_wait)
8740 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
8741 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
8742 * proc-service.c (ps_xfer_memory): Use scoped_restore.
8743 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
8744 (linux_get_siginfo_data): Add "thread" argument. Use
8746 * linux-nat.c (linux_child_follow_fork)
8747 (check_stopped_by_watchpoint): Use scoped_restore.
8748 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
8749 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
8750 (restore_inferior_ptid, save_inferior_ptid): Remove.
8751 * btrace.c (btrace_fetch): Use scoped_restore.
8752 * bsd-uthread.c (bsd_uthread_fetch_registers)
8753 (bsd_uthread_store_registers): Use scoped_restore.
8754 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
8756 * aix-thread.c (aix_thread_resume, aix_thread_wait)
8757 (aix_thread_xfer_partial): Use scoped_restore.
8758 * inferior.h (save_inferior_ptid): Remove.
8760 2017-08-18 Yao Qi <yao.qi@linaro.org>
8763 * arm-tdep.c (gdb_print_insn_arm): Mark
8764 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
8766 2017-08-18 Yao Qi <yao.qi@linaro.org>
8768 * NEWS: Mention GDBserver's new option "--selftest".
8769 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
8770 * selftest.c: Move it to common/selftest.c.
8771 * selftest.h: Move it to common/selftest.h.
8772 * selftest-arch.c (reset): New function.
8773 (tests_with_arch): Call reset.
8775 2017-08-18 Yao Qi <yao.qi@linaro.org>
8777 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
8778 instead of exception_fprintf and printf_filtered.
8780 2017-08-18 Yao Qi <yao.qi@linaro.org>
8782 * selftest.c (register_self_test): Rename it to
8783 selftests::register_test.
8784 (run_self_tests): selftest::run_tests.
8785 * selftest.h: Update declarations.
8786 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
8787 selftests::register_test_foreach_arch.
8788 * selftest-arch.h: Update declaration.
8789 * aarch64-tdep.c: Update.
8790 * arm-tdep.c: Likewise.
8791 * disasm-selftests.c: Likewise.
8792 * dwarf2loc.c: Likewise.
8793 * dwarf2-frame.c: Likewise.
8794 * findvar.c: Likewise.
8795 * gdbarch-selftests.c: Likewise.
8796 * maint.c (maintenance_selftest): Likewise.
8797 * regcache.c: Likewise.
8798 * rust-exp.y: Likewise.
8799 * selftest-arch.c: Likewise.
8800 * unittests/environ-selftests.c: Likewise.
8801 * unittests/function-view-selftests.c: Likewise.
8802 * unittests/offset-type-selftests.c: Likewise.
8803 * unittests/optional-selftests.c: Likewise.
8804 * unittests/scoped_restore-selftests.c: Likewise.
8805 * utils-selftests.c: Likewise.
8807 2017-08-17 Pedro Alves <palves@redhat.com>
8809 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
8812 2017-08-17 Pedro Alves <palves@redhat.com>
8814 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
8816 (reset_die_in_process): Delete, replaced by ...
8817 (process_die_scope): ... this new class. Make it responsible for
8818 freeing cu->line_header too.
8819 (process_die): Use process_die_scope.
8820 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
8821 cu->line_header_die_owner. Don't release the line header if it's
8823 (setup_type_unit_groups): Make the CU/DIE own the line header.
8824 Don't release the line header here.
8826 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
8828 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
8830 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
8832 * NEWS: Mention new shortcuts for nexti and stepi in TUI
8835 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
8837 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
8840 2017-08-15 Stafford Horne <shorne@gmail.com>
8842 * MAINTAINERS (Write After Approval): Add Stafford Horne.
8844 2017-08-15 Stafford Horne <shorne@gmail.com>
8846 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
8848 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
8851 * infcmd.c (unset_environment_command): Use the 'clear' method on
8852 the environment instead of resetting it.
8854 2017-08-15 John Baldwin <jhb@FreeBSD.org>
8856 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
8859 2017-08-14 Tom Tromey <tom@tromey.com>
8861 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
8862 (print_binary_chars): Likewise.
8863 (BITS_IN_BYTES): Remove.
8865 2017-08-14 Tom Tromey <tom@tromey.com>
8868 * valprint.c (LOW_ZERO): Change value to 034.
8869 (print_octal_chars): Add static_asserts for octal constants.
8870 * printcmd.c (print_scalar_formatted): Add 'd' case.
8872 2017-08-11 Tom Tromey <tom@tromey.com>
8874 * symfile.c (add_symbol_file_command): Use std::vector.
8876 2017-08-14 Tom Tromey <tom@tromey.com>
8878 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
8879 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8881 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
8883 2017-08-11 Pedro Alves <palves@redhat.com>
8885 * infrun.c (process_event_stop_test): Adjust
8886 function_name_is_marked_for_skip call.
8887 * skip.c: Include <list>.
8888 (skiplist_entry): Make it a class with private fields, and
8890 (skiplist_entry_chain): Delete.
8891 (skiplist_entries): New.
8892 (skiplist_entry_count): Delete.
8893 (highest_skiplist_entry_num): New.
8894 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
8895 (add_skiplist_entry): Delete.
8896 (skiplist_entry::skiplist_entry): New.
8897 (skiplist_entry::add_entry): New.
8898 (skip_file_command, skip_function): Adjust.
8899 (compile_skip_regexp): Delete.
8900 (skip_command): Don't compile regexp here. Adjust to use
8901 skiplist_entry::add_entry.
8902 (skip_info): Adjust to use range-for and getters.
8903 (skip_enable_command, skip_disable_command): Adjust to use
8904 range-for and setters.
8905 (skip_delete_command): Adjust to use std::list.
8906 (add_skiplist_entry): Delete.
8907 (skip_file_p): Delete, refactored as ...
8908 (skiplist_entry::do_skip_file_p): ... this new method.
8909 (skip_gfile_p): Delete, refactored as ...
8910 (skiplist_entry::do_gskip_file_p): ... this new method.
8911 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
8912 (skiplist_entry::skip_function_p): ... this new method.
8913 (function_name_is_marked_for_skip): Now returns bool, and takes
8914 the function sal by const reference. Adjust to use range-for and
8915 skiplist_entry methods.
8916 (_initialize_step_skip): Remove references to
8917 skiplist_entry_chain, skiplist_entry_count.
8918 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
8919 takes the function sal by const reference.
8921 2017-08-11 Yao Qi <yao.qi@linaro.org>
8923 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
8924 (dwarf2_frame_cache): Remove reset_cache_cleanup.
8925 (dwarf2_frame_cache):
8926 * frame-unwind.c (frame_unwind_try_unwinder): Catch
8927 RETURN_MASK_ALL and set *this_case to NULL.
8928 * frame-unwind.h: Update comments.
8930 2017-08-11 Yao Qi <yao.qi@linaro.org>
8932 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
8933 (dwarf2_frame_state_copy_regs): Remove.
8934 (dwarf2_frame_state_free_regs): Remove.
8935 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
8936 (dwarf2_restore_rule): Call method .alloc_regs instead of
8937 dwarf2_frame_state_alloc_regs.
8938 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
8939 constructor. Call std::move.
8940 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
8941 (dwarf2_frame_cache): Likewise.
8943 [GDB_SELF_TEST]: Include selftest.h and
8945 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
8946 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
8947 execute_cfa_program_test.
8949 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
8950 copy ctor, assignment operator, move assignment.
8951 <alloc_regs>: New method.
8953 (struct dwarf2_frame_state): Delete dtor.
8954 (dwarf2_frame_state_alloc_regs): Remove declaration.
8955 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
8956 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
8958 2017-08-11 Yao Qi <yao.qi@linaro.org>
8960 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
8961 (dwarf2_frame_state::dwarf2_frame_state): New.
8962 (dwarf2_frame_state::~dwarf2_frame_state): New.
8963 (dwarf2_fetch_cfa_info): Update.
8964 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
8965 rather than a pointer. Update code.
8966 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
8968 <data_align, code_align, retaddr_column>: Change them to const.
8969 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
8972 2017-08-11 Yao Qi <yao.qi@linaro.org>
8974 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
8975 <loc.exp>: New field.
8976 * dwarf2-frame.c (execute_cfa_program): Update.
8977 (dwarf2_frame_prev_register): Update.
8979 2017-08-10 Pedro Alves <palves@redhat.com>
8981 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
8983 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8985 * fbsd-nat.c (struct fbsd_fork_info): Remove.
8986 (fbsd_pending_children): Use std::list.
8987 (fbsd_remember_child): Likewise.
8988 (fbsd_is_child_pending): Likewise.
8989 (fbsd_pending_vfork_done): Use std::forward_list.
8990 (fbsd_add_vfork_done): Likewise.
8991 (fbsd_is_vfork_done_pending): Likewise.
8992 (fbsd_next_vfork_done): Likewise.
8994 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8996 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
8997 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
8998 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9000 (fbsd_xfer_partial): Use gdb::byte_vector.
9001 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9003 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9005 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9007 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9009 2017-08-09 Tom Tromey <tom@tromey.com>
9011 * skip.c (skiplist_entry): New constructor.
9012 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9013 (skiplist_entry::file_is_glob): Now bool.
9014 (skiplist_entry::file, skiplist_entry::function): Now
9016 (make_skip_entry): Return a unique_ptr. Use new.
9017 (free_skiplist_entry, free_skiplist_entry_cleanup)
9018 (make_free_skiplist_entry_cleanup): Remove.
9019 (skip_command, skip_disable_command, add_skiplist_entry)
9020 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9021 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9022 (function_name_is_marked_for_skip): Update.
9023 (skip_delete_command): Update. Use delete.
9025 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9027 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9028 (aarch64_linux_core_read_description): New function.
9029 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9031 2017-08-09 Pedro Alves <palves@redhat.com>
9033 * cp-name-parser.y (cp_comp_to_string): Return a
9034 gdb::unique_xmalloc_ptr<char>.
9035 * cp-support.c (replace_typedefs_qualified_name)
9036 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9037 (cp_canonicalize_string_full): Use op= instead of explicit
9039 (cp_class_name_from_physname, method_name_from_physname)
9040 (cp_func_name, cp_remove_params): Adjust to use
9041 gdb::unique_xmalloc_ptr<char>.
9042 * cp-support.h (cp_comp_to_string): Return a
9043 gdb::unique_xmalloc_ptr<char>.
9044 * python/py-type.c (typy_lookup_type): Adjust to use
9045 gdb::unique_xmalloc_ptr<char>.
9047 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9049 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9051 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9052 Yao Qi <yao.qi@linaro.org>
9054 * cp-support.c (cp_canonicalize_string_full): Use
9055 gdb::unique_xmalloc_ptr<char>.
9056 (cp_canonicalize_string): Likewise.
9058 2017-08-09 Yao Qi <yao.qi@linaro.org>
9060 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9061 * regformats/i386/amd64-avx-avx512.dat: Remove.
9062 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9063 * regformats/i386/amd64-avx-mpx.dat:Remove.
9064 * regformats/i386/amd64-avx.dat: Remove.
9065 * regformats/i386/amd64-mpx.dat: Remove.
9066 * regformats/i386/i386-avx-avx512.dat: Remove.
9067 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9068 * regformats/i386/i386-avx-mpx.dat: Remove.
9069 * regformats/i386/i386-mmx.dat: Remove.
9070 * regformats/i386/i386-mpx.dat: Remove.
9072 2017-08-09 Yao Qi <yao.qi@linaro.org>
9074 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9075 * amd64-tdep.c: Don't include features/i386/x32*.c.
9076 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9078 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9079 and i386/x32-avx-avx512.
9080 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9082 * features/i386/x32-avx-avx512.c: Removed.
9083 * features/i386/x32-avx-avx512.xml: Removed.
9084 * features/i386/x32-avx.c: Removed.
9085 * features/i386/x32-avx.xml: Removed.
9086 * features/i386/x32.c: Removed.
9087 * features/i386/x32.xml: Removed.
9088 * regformats/i386/x32-avx-avx512.dat: Removed.
9089 * regformats/i386/x32-avx.dat: Removed.
9090 * regformats/i386/x32.dat: Removed.
9092 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9094 PR breakpoints/21886
9095 * mem-break.c (default_memory_insert_breakpoint): Use
9096 `->placed_address' rather than `->reqstd_address' for the
9097 breakpoint location.
9099 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9101 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9104 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9106 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9107 a union of `tdep_info', `tdesc_data' and `id'.
9108 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9109 rather than `info.tdep_info'.
9110 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9111 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9112 * i386-tdep.c (i386_gdbarch_init): Likewise.
9113 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9114 * mips-tdep.c (mips_gdbarch_init): Likewise.
9115 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9116 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9117 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9119 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9121 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9122 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9124 * spu-tdep.c (spu_gdbarch_init): Likewise.
9125 * gdbarch.h: Regenerate.
9127 2017-08-07 Leszek Swirski <leszeks@google.com>
9130 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9132 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9134 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9135 (gdbsim_open): Rename gdb_argv args object to argv.
9137 2017-08-05 Tom Tromey <tom@tromey.com>
9139 * compile/compile-object-load.c (compile_object_load): Use
9140 gdb::unique_xmalloc_ptr.
9141 * cli/cli-dump.c (scan_filename): Rename from
9142 scan_filename_with_cleanup. Change return type.
9143 (scan_expression): Rename from scan_expression_with_cleanup.
9145 (dump_memory_to_file, dump_value_to_file, restore_command):
9146 Use gdb::unique_xmalloc_ptr. Update.
9147 * cli/cli-cmds.c (find_and_open_script): Use
9148 gdb::unique_xmalloc_ptr.
9149 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9150 * symmisc.c (maintenance_print_symbols)
9151 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9152 * symfile.c (symfile_bfd_open, generic_load)
9153 (add_symbol_file_command, remove_symbol_file_command): Use
9154 gdb::unique_xmalloc_ptr.
9155 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9156 * psymtab.c (maintenance_print_psymbols): Use
9157 gdb::unique_xmalloc_ptr.
9158 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9159 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9160 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9161 (reload_shared_libraries_1): Likewise.
9163 2017-08-05 Tom Tromey <tom@tromey.com>
9165 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9166 (rust_op_vector, rust_set_vector): New typedefs.
9167 (current_parser): New global.
9168 (work_obstack): Change to pointer type. Update all users.
9169 (rust_ast, pstate): Remove globals.
9170 (struct rust_parser): New.
9171 (%union) <params, field_inits>: Change type.
9172 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9173 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9174 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9175 (convert_params_to_types, convert_params_to_expression): Change
9177 (ast_string): Change type of "fields".
9178 (rust_parse): Make a rust_parser. Remove cleanups.
9179 (rust_lex_tests): Make and install an auto_obstack.
9181 2017-08-04 Yao Qi <yao.qi@linaro.org>
9183 * configure.srv (ipa_x32_linux_regobj): New.
9184 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9185 instead of X86_TDESC_AVX512.
9186 (initialize_low_tracepoint): Call
9187 init_registers_x32_avx_avx512_linux.
9189 2017-08-04 Yao Qi <yao.qi@linaro.org>
9191 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9193 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9195 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9197 2017-08-03 Tom Tromey <tom@tromey.com>
9199 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9201 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9203 2017-08-03 Tom Tromey <tom@tromey.com>
9205 * python/py-param.c (compute_enum_values): Use gdb_argv.
9207 2017-08-03 Tom Tromey <tom@tromey.com>
9209 * utils.h (struct gdb_argv_deleter): New.
9210 (gdb_argv): New class.
9211 * utils.c (gdb_argv::reset): New method.
9212 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9213 * tracefile.c (tsave_command): Use gdb_argv.
9214 * top.c (new_ui_command): Use gdb_argv.
9215 * symmisc.c (maintenance_print_symbols)
9216 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9217 * symfile.c (symbol_file_command, generic_load)
9218 (remove_symbol_file_command): Use gdb_argv.
9219 * stack.c (backtrace_command): Use gdb_argv.
9220 * source.c (add_path, show_substitute_path_command)
9221 (unset_substitute_path_command, set_substitute_path_command):
9223 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9224 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9225 * remote.c (extended_remote_run, remote_put_command)
9226 (remote_get_command, remote_delete_command): Use gdb_argv.
9227 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9228 (gdbsim_open): Use gdb_argv.
9229 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9230 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9231 * procfs.c (procfs_info_proc): Use gdb_argv.
9232 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9233 * infrun.c (handle_command): Use gdb_argv.
9234 * inferior.c (add_inferior_command, clone_inferior_command):
9236 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9237 * exec.c (exec_file_command): Use gdb_argv.
9238 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9239 * compile/compile.c (build_argc_argv): Use gdb_argv.
9241 2017-08-03 Tom Tromey <tom@tromey.com>
9243 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9245 2017-08-03 Tom Tromey <tom@tromey.com>
9247 * python/python.c (compute_python_string): Return std::string.
9248 (gdbpy_eval_from_control_command): Update.
9249 (do_start_initialization): Use std::string.
9250 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9252 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9255 2017-08-03 Tom Tromey <tom@tromey.com>
9257 * top.h (do_restore_instream_cleanup): Remove.
9258 * top.c (do_restore_instream_cleanup): Remove.
9259 (read_command_file): Use scoped_restore.
9260 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9262 2017-08-03 Tom Tromey <tom@tromey.com>
9264 * cli/cli-script.c (execute_user_command)
9265 (execute_control_command): Use scoped_restore.
9267 2017-08-03 Tom Tromey <tom@tromey.com>
9269 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9270 (execute_user_command): Remove user_call_depth; use
9271 user_args_stack's size instead.
9273 2017-08-03 Tom Tromey <tom@tromey.com>
9275 * top.h (in_user_command): Remove.
9276 * top.c (in_user_command): Remove.
9277 * cli/cli-script.c (do_restore_user_call_depth)
9278 (execute_user_command): Update.
9280 2017-08-03 Tom Tromey <tom@tromey.com>
9282 * valops.c (search_struct_method): Use gdb::byte_vector.
9283 * valarith.c (value_concat): Use std::vector.
9284 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9285 (simple_search_memory): Likewise.
9286 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9287 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9288 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9289 * elfread.c (elf_rel_plt_read): Use std::string.
9290 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9291 * cli/cli-dump.c (restore_section_callback): Use
9294 2017-08-03 Tom Tromey <tom@tromey.com>
9296 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9298 2017-08-03 Tom Tromey <tom@tromey.com>
9300 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9301 (tui_register_format): Use scoped_restore.
9303 2017-08-03 Tom Tromey <tom@tromey.com>
9305 * reverse.c (exec_direction_default): Remove.
9306 (exec_reverse_once): Use scoped_restore.
9307 * remote.c (restore_remote_timeout): Remove.
9308 (remote_flash_erase, remote_flash_write, remote_flash_done)
9309 (readchar, remote_serial_write): Use scoped_restore.
9310 * cli/cli-script.c (struct source_cleanup_lines_args)
9311 (source_cleanup_lines): Remove.
9312 (script_from_file): Use scoped_restore.
9313 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9314 (source_command): Use scoped_restore.
9316 2017-08-03 Tom Tromey <tom@tromey.com>
9318 * utils.h (make_cleanup_free_so): Remove.
9319 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9320 * solist.h (struct so_deleter): New.
9321 (so_list_up): New typedef.
9322 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9324 2017-08-03 Tom Tromey <tom@tromey.com>
9326 * utils.h (make_cleanup_restore_current_language): Remove.
9327 * utils.c (do_restore_current_language)
9328 (make_cleanup_restore_current_language): Remove.
9329 * parse.c (parse_exp_in_context_1)
9330 (parse_expression_with_language): Use
9331 scoped_restore_current_language.
9332 * mi/mi-main.c (mi_cmd_execute): Use
9333 scoped_restore_current_language.
9334 * language.h (scoped_restore_current_language): New class.
9336 2017-08-03 Tom Tromey <tom@tromey.com>
9338 * compile/compile.c (cleanup_unlink_file): Remove.
9339 (compile_to_object): Use gdb::unlinker.
9340 (eval_compile_command): Likewise.
9342 2017-08-03 Tom Tromey <tom@tromey.com>
9344 * utils.h (make_cleanup_fclose): Remove.
9345 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9347 2017-08-03 Tom Tromey <tom@tromey.com>
9349 * top.c (open_terminal_stream): Return gdb_file_up.
9350 (new_ui_command): Update.
9352 2017-08-03 Tom Tromey <tom@tromey.com>
9354 * source.c (print_source_lines_base, forward_search_command)
9355 (reverse_search_command): Use gdb_file_up.
9357 2017-08-03 Tom Tromey <tom@tromey.com>
9359 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9361 2017-08-03 Tom Tromey <tom@tromey.com>
9363 * cli/cli-cmds.c (find_and_open_script): Change return type.
9364 Remove "streamp" and "full_path" parameters.
9365 (source_script_with_search): Update.
9366 * auto-load.c (source_script_file): Update.
9367 * cli/cli-cmds.h (find_and_open_script): Change type.
9368 (open_script): New struct.
9370 2017-08-03 Tom Tromey <tom@tromey.com>
9372 * xml-support.c (xml_fetch_content_from_file): Update.
9373 * ui-file.c (stdio_file::open): Update.
9374 * tracefile-tfile.c (tfile_start): Update.
9375 * remote.c (remote_file_put, remote_file_get): Update.
9376 * nat/linux-procfs.c (linux_proc_get_int)
9377 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9378 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9379 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9380 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9381 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9382 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9383 * linux-nat.c (linux_proc_pending_signals): Update.
9384 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9385 (file_closer): Remove.
9386 * compile/compile.c (compile_to_object): Update.
9387 * common/filestuff.h (struct gdb_file_deleter): New.
9388 (gdb_file_up): New typedef.
9389 (gdb_fopen_cloexec): Change return type.
9390 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9391 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9392 (dump_binary_file, restore_binary_file): Update.
9393 * auto-load.c (auto_load_objfile_script_1): Update.
9395 2017-08-03 Tom Tromey <tom@tromey.com>
9397 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9398 (info_static_tracepoint_markers_command): Likewise.
9399 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9400 * skip.c (skip_info): Use ui_out_emit_table.
9401 * progspace.c (print_program_space): Use ui_out_emit_table.
9402 * osdata.c (info_osdata): Use ui_out_emit_table.
9403 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9405 * linux-thread-db.c (info_auto_load_libthread_db): Use
9407 * inferior.c (print_inferior): Use ui_out_emit_table.
9408 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9409 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9410 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9411 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9412 * ui-out.h (class ui_out_emit_table): New.
9414 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9416 * mips-tdep.c (mips_fpu_type_str): New function.
9417 (mips_dump_tdep): Call it.
9419 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9421 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9424 2017-07-31 Xavier Roirand <roirand@adacore.com>
9426 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9428 2017-07-27 Xavier Roirand <roirand@adacore.com>
9430 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9432 2017-07-26 Yao Qi <yao.qi@linaro.org>
9434 * cli/cli-cmds.c (maintenancechecklist): New variable.
9435 * gdbcmd.h (maintenancechecklist): Declare it.
9436 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9437 Call i386_linux_read_description with different masks.
9438 * maint.c (maintenance_check_command): New function.
9439 (_initialize_maint_cmds): Call add_prefix_cmd.
9440 * target-descriptions.c (tdesc_reg): override operator != and ==.
9441 (tdesc_type): Likewise.
9442 (tdesc_feature): Likewise.
9443 (target_desc): Likewise.
9444 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9445 (maintenance_check_xml_descriptions): New function.
9446 (_initialize_target_descriptions) Add command "xml-descriptions".
9447 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
9449 2017-07-26 Yao Qi <yao.qi@linaro.org>
9451 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
9452 Include features/i386/32bit-*.c.
9453 (i386_linux_read_description): Generate target description if it
9455 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
9457 * features/i386/32bit-linux.c: Re-generated.
9458 * features/i386/32bit-sse.c: Likewise.
9459 * target-descriptions.c (print_c_feature::visit): Print code to
9460 set register number if needed.
9461 (print_c_feature) <m_next_regnum>: New field.
9463 2017-07-26 Yao Qi <yao.qi@linaro.org>
9465 * features/Makefile (CFILES): Rename with TDESC_CFILES.
9466 (FEATURE_XMLFILES): New.
9467 (FEATURE_CFILES): New.
9469 (clean-cfiles): Remove generated c files.
9470 * features/i386/32bit-avx.c: Generated.
9471 * features/i386/32bit-avx512.c: Generated.
9472 * features/i386/32bit-core.c: Generated.
9473 * features/i386/32bit-linux.c: Generated.
9474 * features/i386/32bit-mpx.c: Generated.
9475 * features/i386/32bit-pkeys.c: Generated.
9476 * features/i386/32bit-sse.c: Generated.
9477 * target-descriptions.c: Include algorithm.
9478 (tdesc_element_visitor): Add method visit_end.
9479 (print_c_tdesc): Implement visit_end.
9480 (print_c_tdesc:: m_filename_after_features): Move it to
9482 (print_c_feature): New class.
9483 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
9484 name starts with "i386/32bit-".
9486 2017-07-26 Yao Qi <yao.qi@linaro.org>
9488 * target-descriptions.c (tdesc_element_visitor): New class.
9489 (tdesc_element): New class.
9490 (tdesc_reg): Inherit from tdesc_element.
9491 (tdesc_reg::accept): New function.
9492 (tdesc_type): Inherit from tdesc_element.
9493 (tdesc_type::accept): New function.
9494 (tdesc_feature): Inherit from tdesc_element.
9495 (tdesc_feature::accept): New function.
9496 (target_desc): Inherit from tdesc_element.
9497 (target_desc::target_desc): New.
9498 (target_desc::~target_desc): New.
9499 (target_desc::accept): New.
9500 (allocate_target_description): Use new.
9501 (free_target_description): Use delete.
9502 (print_c_tdesc): New class.
9503 (maint_print_c_tdesc_cmd): Adjust.
9505 * features/aarch64.c: Re-generated.
9506 * features/arc-arcompact.c: Re-generated.
9507 * features/arc-v2.c: Re-generated.
9508 * features/arm/arm-with-iwmmxt.c: Re-generated.
9509 * features/arm/arm-with-m.c: Re-generated.
9510 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
9511 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
9512 * features/arm/arm-with-neon.c: Re-generated.
9513 * features/arm/arm-with-vfpv2.c: Re-generated.
9514 * features/arm/arm-with-vfpv3.c: Re-generated.
9515 * features/i386/amd64-avx-avx512.c: Re-generated.
9516 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9517 * features/i386/amd64-avx.c: Re-generated.
9518 * features/i386/amd64-avx-linux.c: Re-generated.
9519 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
9520 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9521 * features/i386/amd64-avx-mpx.c: Re-generated.
9522 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
9523 * features/i386/amd64.c: Re-generated.
9524 * features/i386/amd64-linux.c: Re-generated.
9525 * features/i386/amd64-mpx.c: Re-generated.
9526 * features/i386/amd64-mpx-linux.c: Re-generated.
9527 * features/i386/i386-avx-avx512.c: Re-generated.
9528 * features/i386/i386-avx-avx512-linux.c: Re-generated.
9529 * features/i386/i386-avx.c: Re-generated.
9530 * features/i386/i386-avx-linux.c: Re-generated.
9531 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
9532 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
9533 * features/i386/i386-avx-mpx.c: Re-generated.
9534 * features/i386/i386-avx-mpx-linux.c: Re-generated.
9535 * features/i386/i386.c: Re-generated.
9536 * features/i386/i386-linux.c: Re-generated.
9537 * features/i386/i386-mmx.c: Re-generated.
9538 * features/i386/i386-mmx-linux.c: Re-generated.
9539 * features/i386/i386-mpx.c: Re-generated.
9540 * features/i386/i386-mpx-linux.c: Re-generated.
9541 * features/i386/x32-avx-avx512.c: Re-generated.
9542 * features/i386/x32-avx-avx512-linux.c: Re-generated.
9543 * features/i386/x32-avx.c: Re-generated.
9544 * features/i386/x32-avx-linux.c: Re-generated.
9545 * features/i386/x32.c: Re-generated.
9546 * features/i386/x32-linux.c: Re-generated.
9547 * features/microblaze.c: Re-generated.
9548 * features/microblaze-with-stack-protect.c: Re-generated.
9549 * features/mips64-dsp-linux.c: Re-generated.
9550 * features/mips64-linux.c: Re-generated.
9551 * features/mips-dsp-linux.c: Re-generated.
9552 * features/mips-linux.c: Re-generated.
9553 * features/nds32.c: Re-generated.
9554 * features/nios2.c: Re-generated.
9555 * features/nios2-linux.c: Re-generated.
9556 * features/rs6000/powerpc-32.c: Re-generated.
9557 * features/rs6000/powerpc-32l.c: Re-generated.
9558 * features/rs6000/powerpc-403.c: Re-generated.
9559 * features/rs6000/powerpc-403gc.c : Re-generated.
9560 * features/rs6000/powerpc-405.c: Re-generated.
9561 * features/rs6000/powerpc-505.c: Re-generated.
9562 * features/rs6000/powerpc-601.c: Re-generated.
9563 * features/rs6000/powerpc-602.c: Re-generated.
9564 * features/rs6000/powerpc-603.c: Re-generated.
9565 * features/rs6000/powerpc-604.c: Re-generated.
9566 * features/rs6000/powerpc-64.c: Re-generated.
9567 * features/rs6000/powerpc-64l.c: Re-generated.
9568 * features/rs6000/powerpc-7400.c: Re-generated.
9569 * features/rs6000/powerpc-750.c: Re-generated.
9570 * features/rs6000/powerpc-860.c: Re-generated.
9571 * features/rs6000/powerpc-altivec32.c: Re-generated.
9572 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9573 * features/rs6000/powerpc-altivec64.c: Re-generated.
9574 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9575 * features/rs6000/powerpc-cell32l.c: Re-generated.
9576 * features/rs6000/powerpc-cell64l.c: Re-generated.
9577 * features/rs6000/powerpc-e500.c: Re-generated.
9578 * features/rs6000/powerpc-e500l.c: Re-generated.
9579 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9580 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9581 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9582 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9583 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9584 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9585 * features/rs6000/powerpc-vsx32.c: Re-generated.
9586 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9587 * features/rs6000/powerpc-vsx64.c: Re-generated.
9588 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9589 * features/rs6000/rs6000.c: Re-generated.
9590 * features/s390-linux32.c: Re-generated.
9591 * features/s390-linux32v1.c: Re-generated.
9592 * features/s390-linux32v2.c: Re-generated.
9593 * features/s390-linux64.c: Re-generated.
9594 * features/s390-linux64v1.c: Re-generated.
9595 * features/s390-linux64v2.c: Re-generated.
9596 * features/s390-te-linux64.c: Re-generated.
9597 * features/s390-tevx-linux64.c: Re-generated.
9598 * features/s390-vx-linux64.c: Re-generated.
9599 * features/s390x-linux64.c: Re-generated.
9600 * features/s390x-linux64v1.c: Re-generated.
9601 * features/s390x-linux64v2.c: Re-generated.
9602 * features/s390x-te-linux64.c: Re-generated.
9603 * features/s390x-tevx-linux64.c: Re-generated.
9604 * features/s390x-vx-linux64.c: Re-generated.
9605 * features/sparc/sparc32-solaris.c: Re-generated.
9606 * features/sparc/sparc64-solaris.c: Re-generated.
9607 * features/tic6x-c62x.c: Re-generated.
9608 * features/tic6x-c62x-linux.c: Re-generated.
9609 * features/tic6x-c64x.c: Re-generated.
9610 * features/tic6x-c64x-linux.c: Re-generated.
9611 * features/tic6x-c64xp.c: Re-generated.
9612 * features/tic6x-c64xp-linux.c: Re-generated.
9614 2017-07-26 Yao Qi <yao.qi@linaro.org>
9616 * i386-linux-tdep.c (i386_linux_read_description): New function.
9617 (i386_linux_core_read_description): Call
9618 i386_linux_read_description.
9619 * i386-linux-tdep.h (i386_linux_read_description): Declare.
9620 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
9621 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
9622 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
9623 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
9624 * x86-linux-nat.c (x86_linux_read_description): Call
9625 i386_linux_read_description.
9627 2017-07-26 Yao Qi <yao.qi@linaro.org>
9630 * features/Makefile (%.c: %.xml): Pass the xml file name to
9631 command "maint print c-tdesc".
9632 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9635 2017-07-26 Yao Qi <yao.qi@linaro.org>
9637 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9638 in-class initialization.
9639 (tdesc_create_feature): Call new instead of XCNEW.
9640 (free_target_description): Ue delete.
9642 2017-07-25 John Baldwin <jhb@FreeBSD.org>
9644 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9646 2017-07-25 Yao Qi <yao.qi@linaro.org>
9648 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
9650 (amd64_x32_init_abi): Likewise.
9651 * amd64-tdep.h (amd64_init_abi): Update declaration.
9652 (amd64_x32_init_abi): Likewise.
9654 2017-07-25 Yao Qi <yao.qi@linaro.org>
9657 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
9658 condition for FPSCR.
9659 (arm_linux_store_inferior_registers): Likewise.
9661 2017-07-22 Tom Tromey <tom@tromey.com>
9663 * break-catch-syscall.c (struct catch_syscall_inferior_data)
9664 <syscalls_counts>: Now a std::vector.
9665 (get_catch_syscall_inferior_data): Use "new".
9666 (catch_syscall_inferior_data_cleanup): Use "delete".
9667 (insert_catch_syscall, remove_catch_syscall)
9668 (clear_syscall_counts): Update.
9670 2017-07-22 Tom Tromey <tom@tromey.com>
9672 * break-catch-syscall.c (syscall_catchpoint)
9673 <syscalls_to_be_caught>: Now a std::vector<int>
9674 (~syscall_catchpoint): Remove.
9675 (insert_catch_syscall, remove_catch_syscall)
9676 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
9677 (print_mention_catch_syscall, print_recreate_catch_syscall):
9679 (create_syscall_event_catchpoint): Change type of "filter"
9681 (catch_syscall_split_args): Return a std::vector.
9682 (catch_syscall_command_1, catching_syscall_number_1): Update.
9684 2017-07-22 Tom Tromey <tom@tromey.com>
9686 * break-catch-throw.c (struct exception_catchpoint)
9687 <exception_rx>: Now a std::string.
9688 (~exception_catchpoint): Remove.
9689 (print_one_detail_exception_catchpoint): Update.
9690 (handle_gnu_v3_exceptions): Change type of except_rx.
9691 (extract_exception_regexp): Return a std::string.
9692 (catch_exception_command_1): Update.
9694 2017-07-22 Tom Tromey <tom@tromey.com>
9696 * break-catch-sig.c (gdb_signal_type): Remove typedef.
9697 (struct signal_catchpoint) <signals_to_be_caught>: Now a
9699 <catch_all>: Now a bool.
9700 (~signal_catchpoint): Remove.
9701 (signal_catchpoint_insert_location)
9702 (signal_catchpoint_remove_location)
9703 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
9704 (signal_catchpoint_print_mention)
9705 (signal_catchpoint_print_recreate)
9706 (signal_catchpoint_explains_signal): Update.
9707 (create_signal_catchpoint): Change type of "filter" and
9709 (catch_signal_split_args): Return a std::vector. Change type of
9711 (catch_signal_command): Update.
9713 2017-07-20 Pedro Alves <palves@redhat.com>
9715 * ada-lang.c (ada_language_defn): Make extern.
9716 (_initialize_ada_language): Remove add_language call.
9717 * c-lang.c (c_language_defn, cplus_language_defn)
9718 (asm_language_defn, minimal_language_defn): Make extern.
9719 (_initialize_c_language): Delete.
9720 * completer.c (compare_cstrings): Delete, moved to utils.h.
9721 * d-lang.c (d_language_defn): Make extern.
9722 (_initialize_d_language): Remove add_language calls.
9723 * defs.h (enum language): Add comment.
9724 * f-lang.c (f_language_defn): Make extern.
9725 (_initialize_f_language): Remove add_language call.
9726 * go-lang.c (go_language_defn): Make extern.
9727 (_initialize_go_language): Remove add_language call.
9728 * language.c: Include <algorithm>.
9729 (languages): Redefine as const array.
9730 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
9731 (set_language_command): Handle "local". Use for-range loop.
9732 (set_language): Remove loop.
9733 (language_enum): Rewrite.
9734 (language_def, language_str): Remove loops.
9735 (add_language): Delete.
9736 (add_set_language_command): New, based on add_languages.
9737 (skip_language_trampoline): Adjust.
9738 (local_language_defn): Delete.
9739 (language_gdbarch_post_init): Adjust.
9740 (_initialize_language): Remove add_language calls. Call
9741 add_set_language_command.
9742 * language.h (add_language): Delete.
9743 (auto_language_defn)
9744 (unknown_language_defn, minimal_language_defn, ada_language_defn)
9745 (asm_language_defn, c_language_defn, cplus_language_defn)
9746 (d_language_defn, f_language_defn, go_language_defn)
9747 (m2_language_defn, objc_language_defn, opencl_language_defn)
9748 (pascal_language_defn, rust_language_defn): Declare.
9749 * m2-lang.c (m2_language_defn): Make extern.
9750 (_initialize_m2_language): Remove add_language call.
9751 * objc-lang.c (objc_language_defn): Make extern.
9752 (_initialize_objc_language): Remove add_language call.
9753 * opencl-lang.c (opencl_language_defn): Make extern.
9754 (_initialize_opencl_language): Remove add_language call.
9755 * p-lang.c (pascal_language_defn): Make extern.
9756 (_initialize_pascal_language): Delete.
9757 * rust-lang.c (rust_language_defn): Make extern.
9758 (_initialize_rust_language): Delete.
9759 * utils.h (compare_cstrings): New static inline function.
9761 2017-07-20 Pedro Alves <palves@redhat.com>
9763 * ada-lang.c (ada_to_fixed_type_1): Adjust.
9764 (get_var_value): Constify parameters.
9765 (get_int_var_value): Change prototype.
9766 (to_fixed_range_type): Adjust.
9767 * ada-lang.h (get_int_var_value): Change prototype.
9769 2017-07-20 Pedro Alves <palves@redhat.com>
9771 * dwarf2read.c (dw2_lookup_symbol): Use
9772 SYMBOL_MATCHES_SEARCH_NAME.
9773 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
9775 2017-07-20 Pedro Alves <palves@redhat.com>
9777 * block.c (block_iter_name_step, block_iter_name_first)
9778 (block_iter_name_next): Delete.
9779 (block_lookup_symbol_primary): Adjust to use
9780 dict_iter_match_first/dict_iter_match_next.
9781 * block.h (block_iter_name_first, block_iter_name_next): Delete
9783 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
9784 dict_iter_match_first/dict_iter_match_next.
9786 2017-07-20 Pedro Alves <palves@redhat.com>
9788 * cp-support.c (cp_find_first_component_aux): Add missing case for
9791 2017-07-18 David Blaikie <dblaikie@gmail.com>
9793 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
9794 of dwo_cu's dwo_file.
9796 2017-07-18 Yao Qi <yao.qi@linaro.org>
9798 * remote.c (store_registers_using_G): Remove one line comment.
9800 2017-07-18 Yao Qi <yao.qi@linaro.org>
9802 * regcache.c (regcache_cpy): Simplify it.
9803 (regcache::cpy_no_passthrough): Remove it.
9804 * regcache.h (cpy_no_passthrough): Remove it.
9805 (regcache_dup, regcache_cpy): Update comments.
9807 2017-07-18 Pedro Alves <palves@redhat.com>
9809 * remote-sim.c (sim_command_completer): Adjust to work with a
9810 completion_tracker instead of a VEC.
9812 2017-07-17 Pedro Alves <palves@redhat.com>
9814 * completer.c (complete_source_filenames): New function.
9815 (complete_address_and_linespec_locations): New function.
9816 (location_completer): Use complete_address_and_linespec_locations.
9817 (completion_tracker::build_completion_result): Honor the tracker's
9818 request to suppress append.
9819 * completer.h (completion_tracker::suppress_append_ws)
9820 (completion_tracker::set_suppress_append_ws): New methods.
9821 (completion_tracker::m_suppress_append_ws): New field.
9822 (complete_source_filenames): New declaration.
9823 * linespec.c (linespec_complete_what): New.
9824 (struct ls_parser) <complete_what, completion_word,
9825 completion_quote_char, completion_quote_end, completion_tracker>:
9827 (string_find_incomplete_keyword_at_end): New.
9828 (linespec_lexer_lex_string): Record quote char. If in completion
9830 (linespec_lexer_consume_token): Advance the completion word point.
9831 (linespec_lexer_peek_token): Save/restore completion info.
9832 (save_stream_and_consume_token): New.
9833 (set_completion_after_number): New.
9834 (linespec_parse_basic): Set what to complete next depending on
9835 token. Handle function and label completions specially.
9836 (parse_linespec): Disable objc shortcut in completion mode. Set
9837 what to complete next depending on token type. Skip keyword if in
9839 (complete_linespec_component, linespec_complete): New.
9840 * linespec.h (linespec_complete): Declare.
9842 2017-07-17 Pedro Alves <palves@redhat.com>
9844 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
9845 Handle 'operator<' / 'operator<<'.
9847 2017-07-17 Pedro Alves <palves@redhat.com>
9849 * completer.c (collect_explicit_location_matches): Handle
9851 (convert_explicit_location_to_linespec): New, factored out from
9853 (convert_explicit_location_to_sals): ... this.
9854 (complete_label): New.
9855 (linespec_complete_label, find_label_symbols_in_block): New.
9856 (find_label_symbols): Add completion_mode parameter and adjust to
9857 call find_label_symbols_in_block.
9858 * linespec.h (linespec_complete_label): Declare.
9860 2017-07-17 Pedro Alves <palves@redhat.com>
9862 * ada-lang.c (ada_collect_symbol_completion_matches): Add
9863 complete_symbol_mode parameter.
9864 * cli/cli-cmds.c (complete_command): Get the completion result out
9865 of the handle_brkchars tracker if used a custom word point.
9866 * completer.c: Include "linespec.h".
9867 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
9868 (advance_to_expression_complete_word_point): New.
9869 (completion_tracker::completes_to_completion_word): New.
9870 (complete_files_symbols): Pass down
9871 complete_symbol_mode::EXPRESSION.
9872 (explicit_options, probe_options): New.
9873 (collect_explicit_location_matches): Complete on the
9874 explictit_loc->foo instead of word. Use
9875 linespec_complete_function. Handle MATCH_LINE. Handle offering
9876 keyword and options completions.
9877 (backup_text_ptr): Delete.
9878 (skip_keyword): New.
9879 (complete_explicit_location): Remove 'word' parameter. Add
9880 language, quoted_arg_start and quoted_arg_end parameters.
9881 Rewrite, parsing left to right.
9882 (location_completer): Rewrite.
9883 (location_completer_handle_brkchars): New function.
9884 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
9885 (enum complete_line_internal_reason): Adjust comments.
9886 (completion_tracker::discard_completions): New.
9887 (completer_handle_brkchars_func_for_completer): Handle
9889 (gdb_custom_word_point_brkchars)
9890 (gdb_org_rl_basic_quote_characters): New.
9891 (gdb_completion_word_break_characters_throw)
9892 (completion_find_completion_word): Handle trackers that use a
9894 (completion_tracker::advance_custom_word_point_by): New.
9895 (completion_tracker::build_completion_result): Don't rely on
9896 readline appending the quote char.
9897 (gdb_rl_attempted_completion_function_throw): Handle trackers that
9898 use a custom word point.
9899 (gdb_rl_attempted_completion_function): Restore
9900 rl_basic_quote_characters.
9901 * completer.h (class completion_tracker): Extend intro comment.
9902 (completion_tracker::set_quote_char)
9903 (completion_tracker::quote_char)
9904 (completion_tracker::set_use_custom_word_point)
9905 (completion_tracker::use_custom_word_point)
9906 (completion_tracker::custom_word_point)
9907 (completion_tracker::set_custom_word_point)
9908 (completion_tracker::advance_custom_word_point_by)
9909 (completion_tracker::completes_to_completion_word)
9910 (completion_tracker::discard_completions): New methods.
9911 (completion_tracker::m_quote_char)
9912 (completion_tracker::m_use_custom_word_point)
9913 (completion_tracker::m_custom_word_point): New fields.
9914 (advance_to_expression_complete_word_point): Declare.
9915 * f-lang.c (f_collect_symbol_completion_matches): Add
9916 complete_symbol_mode parameter.
9917 * language.h (struct language_defn)
9918 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
9920 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
9921 (linespec_complete_function): New function.
9922 (linespec_lexer_lex_keyword): Adjust.
9923 * linespec.h (linespec_keywords, linespec_complete_function): New
9925 * location.c (find_end_quote): New function.
9926 (explicit_location_lex_one): Add explicit_completion_info
9927 parameter. Save quoting info. Don't throw if being called for
9928 completion. Don't handle Ada operators here.
9929 (is_cp_operator, skip_op_false_positives, first_of)
9930 (explicit_location_lex_one_function): New function.
9931 (string_to_explicit_location): Replace 'dont_throw' parameter with
9932 an explicit_completion_info pointer parameter. Handle it. Don't
9933 use explicit_location_lex_one to lex function names. Use
9934 explicit_location_lex_one_function instead.
9935 * location.h (struct explicit_completion_info): New.
9936 (string_to_explicit_location): Replace 'dont_throw' parameter with
9937 an explicit_completion_info pointer parameter.
9938 * symtab.c (default_collect_symbol_completion_matches_break_on):
9939 Add complete_symbol_mode parameter. Handle LINESPEC mode.
9940 (default_collect_symbol_completion_matches)
9941 (collect_symbol_completion_matches): Add complete_symbol_mode
9943 (collect_symbol_completion_matches_type): Pass down
9944 complete_symbol_mode::EXPRESSION.
9945 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9946 parameter. Handle LINESPEC mode.
9947 * symtab.h (complete_symbol_mode): New.
9948 (default_collect_symbol_completion_matches_break_on)
9949 (default_collect_symbol_completion_matches)
9950 (collect_symbol_completion_matches)
9951 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9954 2017-07-17 Pedro Alves <palves@redhat.com>
9956 * utils.c (enum class strncmp_iw_mode): New.
9957 (strcmp_iw): Rename to ...
9958 (strncmp_iw_with_mode): ... this. Add string2_len and mode
9959 parameters. Handle them.
9961 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
9962 * utils.h (strncmp_iw): Declare.
9963 (strcmp_iw): Move describing comments here.
9965 2017-07-17 Pedro Alves <palves@redhat.com>
9967 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
9969 * c-typeprint.c (is_type_conversion_operator): Use
9971 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
9972 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
9974 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
9975 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
9976 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
9977 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
9979 * location.c: Include "cp-support.h".
9980 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
9982 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
9985 2017-07-17 Pedro Alves <palves@redhat.com>
9987 * cli/cli-cmds.c (complete_command): Use a completion tracker
9988 along with completion_find_completion_word for handle_brkchars
9990 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
9991 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
9992 (struct gdb_rl_completion_word_info): New.
9993 (gdb_rl_find_completion_word): New.
9994 (completion_find_completion_word): New.
9995 * completer.h (completion_find_completion_word): Declare.
9997 2017-07-17 Pedro Alves <palves@redhat.com>
9999 * ada-lang.c (symbol_completion_match): Adjust comments.
10000 (symbol_completion_add): Replace vector parameter with
10001 completion_tracker parameter. Use it.
10002 (ada_make_symbol_completion_list): Rename to...
10003 (ada_collect_symbol_completion_matches): ... this. Add
10004 completion_tracker parameter and use it.
10005 (ada_language_defn): Adjust.
10006 * break-catch-syscall.c (catch_syscall_completer): Adjust
10007 prototype and work with completion_tracker instead of VEC.
10008 * breakpoint.c (condition_completer): Adjust prototype and work
10009 with completion_tracker instead of VEC.
10010 * c-lang.c (c_language_defn, cplus_language_defn)
10011 (asm_language_defn, minimal_language_defn): Adjust to renames.
10012 * cli/cli-cmds.c (complete_command): Rework using
10013 completion_tracker. Catch exceptions when completing.
10014 * cli/cli-decode.c (integer_unlimited_completer)
10015 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10016 with completion_tracker instead of VEC.
10017 * command.h (struct completion_tracker): Forward declare.
10018 (completer_ftype, completer_handle_brkchars_ftype): Change
10020 (complete_on_cmdlist, complete_on_enum): Adjust.
10021 * completer.c: Include <algorithm>.
10022 (struct gdb_completer_state): New.
10023 (current_completion): New global.
10024 (readline_line_completion_function): Delete.
10025 (noop_completer, filename_completer)
10026 (filename_completer_handle_brkchars, complete_files_symbols)
10027 (linespec_location_completer): Adjust to work with a
10028 completion_tracker instead of a VEC.
10029 (string_or_empty): New.
10030 (collect_explicit_location_matches): Adjust to work with a
10031 completion_tracker instead of a VEC.
10032 (explicit_location_completer): Rename to ...
10033 (complete_explicit_location): ... this and adjust to work with a
10034 completion_tracker instead of a VEC.
10035 (location_completer): Adjust to work with a completion_tracker
10037 (add_struct_fields): Adjust to work with a completion_list instead
10039 (expression_completer): Rename to ...
10040 (complete_expression): ... this and adjust to work with a
10041 completion_tracker instead of a VEC. Use complete_files_symbols.
10042 (expression_completer): Reimplement on top of complete_expression.
10043 (symbol_completer): Adjust to work with a completion_tracker
10045 (enum complete_line_internal_reason): Add describing comments.
10046 (complete_line_internal_normal_command): Adjust to work with a
10047 completion_tracker instead of a VEC.
10048 (complete_line_internal): Rename to ...
10049 (complete_line_internal_1): ... this and adjust to work with a
10050 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10051 handle_brkchars phase.
10052 (new_completion_tracker): Delete.
10053 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10054 complete_line_internal_1.
10055 (free_completion_tracker): Delete.
10056 (INITIAL_COMPLETION_HTAB_SIZE): New.
10057 (completion_tracker::completion_tracker)
10058 (completion_tracker::~completion_tracker): New.
10059 (maybe_add_completion): Delete.
10060 (completion_tracker::maybe_add_completion)
10061 (completion_tracker::add_completion)
10062 (completion_tracker::add_completions): New.
10063 (throw_max_completions_reached_error): Delete.
10064 (complete_line): Adjust to work with a completion_tracker instead
10065 of a VEC. Don't create a completion_tracker_t or check for max
10067 (command_completer, command_completer_handle_brkchars)
10068 (signal_completer, reg_or_group_completer_1)
10069 (reg_or_group_completer, default_completer_handle_brkchars):
10070 Adjust to work with a completion_tracker.
10071 (gdb_completion_word_break_characters_throw): New.
10072 (gdb_completion_word_break_characters): Reimplement.
10073 (line_completion_function): Delete.
10074 (completion_tracker::recompute_lowest_common_denominator)
10075 (expand_preserving_ws)
10076 (completion_tracker::build_completion_result)
10077 (completion_result::completion_result)
10078 (completion_result::completion_result)
10079 (completion_result::~completion_result)
10080 (completion_result::completion_result)
10081 (completion_result::release_match_list, compare_cstrings)
10082 (completion_result::sort_match_list)
10083 (completion_result::reset_match_list)
10084 (gdb_rl_attempted_completion_function_throw)
10085 (gdb_rl_attempted_completion_function): New.
10086 * completer.h (completion_list, struct completion_result)
10087 (class completion_tracker): New.
10088 (complete_line): Add completion_tracker parameter.
10089 (readline_line_completion_function): Delete.
10090 (gdb_rl_attempted_completion_function): New.
10091 (noop_completer, filename_completer, expression_completer)
10092 (location_completer, symbol_completer, command_completer)
10093 (signal_completer, reg_or_group_completer): Update prototypes.
10094 (completion_tracker_t, new_completion_tracker)
10095 (make_cleanup_free_completion_tracker): Delete.
10096 (enum maybe_add_completion_enum): Delete.
10097 (maybe_add_completion): Delete.
10098 (throw_max_completions_reached_error): Delete.
10099 * corefile.c (complete_set_gnutarget): Adjust to work with a
10100 completion_tracker instead of a VEC.
10101 * cp-abi.c (cp_abi_completer): Adjust to work with a
10102 completion_tracker instead of a VEC.
10103 * d-lang.c (d_language_defn): Adjust.
10104 * disasm.c (disassembler_options_completer): Adjust to work with a
10105 completion_tracker instead of a VEC.
10106 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10107 (f_collect_symbol_completion_matches): ... this. Adjust to work
10108 with a completion_tracker instead of a VEC.
10109 (f_language_defn): Adjust.
10110 * go-lang.c (go_language_defn): Adjust.
10111 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10112 Adjust to work with a completion_tracker instead of a VEC.
10113 * infrun.c (handle_completer): Likewise.
10114 * interps.c (interpreter_completer): Likewise.
10115 * interps.h (interpreter_completer): Likewise.
10116 * language.c (unknown_language_defn, auto_language_defn)
10117 (local_language_defn): Adjust.
10118 * language.h (language_defn::la_make_symbol_completion_list):
10120 (language_defn::la_collect_symbol_completion_matches): ... this
10121 and adjust to work with a completion_tracker instead of a VEC.
10122 * m2-lang.c (m2_language_defn): Adjust.
10123 * objc-lang.c (objc_language_defn): Adjust.
10124 * opencl-lang.c (opencl_language_defn): Adjust.
10125 * p-lang.c (pascal_language_defn): Adjust.
10126 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10127 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10128 with a completion_tracker.
10129 * rust-lang.c (rust_language_defn): Adjust.
10130 * symtab.c (free_completion_list, do_free_completion_list)
10131 (return_val, completion_tracker): Delete.
10132 (completion_list_add_name, completion_list_add_symbol)
10133 (completion_list_add_msymbol, completion_list_objc_symbol)
10134 (completion_list_add_fields, add_symtab_completions): Add
10135 completion_tracker parameter and use it.
10136 (default_make_symbol_completion_list_break_on_1): Rename to...
10137 (default_collect_symbol_completion_matches_break_on): ... this.
10138 Add completion_tracker parameter and use it instead of allocating
10139 a completion tracker here.
10140 (default_make_symbol_completion_list_break_on): Delete old
10142 (default_make_symbol_completion_list): Delete.
10143 (default_collect_symbol_completion_matches): New.
10144 (make_symbol_completion_list): Delete.
10145 (collect_symbol_completion_matches): New.
10146 (make_symbol_completion_type): Rename to ...
10147 (collect_symbol_completion_matches_type): ... this. Add
10148 completion_tracker parameter and use it instead of VEC.
10149 (make_file_symbol_completion_list_1): Rename to...
10150 (collect_file_symbol_completion_matches): ... this. Add
10151 completion_tracker parameter and use it instead of VEC.
10152 (make_file_symbol_completion_list): Delete.
10153 (add_filename_to_list): Use completion_list instead of a VEC.
10154 (add_partial_filename_data::list): Now a completion_list.
10155 (make_source_files_completion_list): Work with a completion_list
10157 * symtab.h: Include "completer.h".
10158 (default_make_symbol_completion_list_break_on)
10159 (default_make_symbol_completion_list, make_symbol_completion_list)
10160 (make_symbol_completion_type, make_file_symbol_completion_list)
10161 (make_source_files_completion_list): Delete.
10162 (default_collect_symbol_completion_matches_break_on)
10163 (default_collect_symbol_completion_matches)
10164 (collect_symbol_completion_matches)
10165 (collect_symbol_completion_matches_type)
10166 (collect_file_symbol_completion_matches)
10167 (make_source_files_completion_list): New.
10168 * top.c (init_main): Don't install a rl_completion_entry_function
10169 hook. Install a rl_attempted_completion_function hook instead.
10170 * tui/tui-layout.c (layout_completer): Adjust to work with a
10171 completion_tracker.
10172 * tui/tui-regs.c (tui_reggroup_completer):
10173 * tui/tui-win.c (window_name_completer, focus_completer)
10174 (winheight_completer): Adjust to work with a completion_tracker.
10175 * value.c: Include "completer.h".
10176 (complete_internalvar): Adjust to work with a completion_tracker.
10177 * value.h (complete_internalvar): Likewise.
10179 2017-07-17 Pedro Alves <palves@redhat.com>
10181 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10183 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10184 comments to completer_ftype's declaration.
10185 <completer_handle_brkchars>: Change type to
10186 completer_handle_brkchars_ftype.
10187 * command.h (completer_ftype): Add describing comment and give
10188 names to parameters.
10189 (completer_ftype_void): Rename to ...
10190 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10191 (set_cmd_completer_handle_brkchars): Adjust.
10192 * completer.c (filename_completer_handle_brkchars): New function.
10193 (complete_line_internal_normal_command): New function, factored
10195 (complete_line_internal): ... here.
10196 (command_completer_handle_brkchars)
10197 (default_completer_handle_brkchars)
10198 (completer_handle_brkchars_func_for_completer): New functions.
10199 * completer.h (set_gdb_completion_word_break_characters): Delete
10201 (completer_handle_brkchars_func_for_completer): New declaration.
10202 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10203 completer_handle_brkchars_func_for_completer.
10205 2017-07-17 Pedro Alves <palves@redhat.com>
10207 * completer.c (symbol_completer): New function, based on
10208 make_symbol_completion_list_fn.
10209 * completer.h (symbol_completer): New declaration.
10210 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10211 * python/py-cmd.c (completers): Adjust.
10212 * symtab.c (make_symbol_completion_list_fn): Delete.
10213 * symtab.h (make_symbol_completion_list_fn): Delete.
10214 * cli/cli-decode.c (add_cmd): Adjust.
10216 2017-07-17 Pedro Alves <palves@redhat.com>
10218 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10219 * dwarf2read.c: Include "filename-seen-cache.h".
10220 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10221 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10222 * filename-seen-cache.c: New file.
10223 * filename-seen-cache.h: New file.
10224 * symtab.c: Include "filename-seen-cache.h".
10225 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10226 (create_filename_seen_cache, clear_filename_seen_cache)
10227 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10228 to filename-seen-cache.h/filename-seen-cache.c.
10229 (output_source_filename, sources_info)
10230 (maybe_add_partial_symtab_filename)
10231 (make_source_files_completion_list): Adjust to use
10232 filename_seen_cache.
10234 2017-07-17 Pedro Alves <palves@redhat.com>
10236 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10238 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10239 dwarf2_debug_sections*)): New.
10240 (dwarf2_per_objfile::dwarf2_per_objfile(const
10241 dwarf2_per_objfile&)): Declare as deleted.
10242 (dwarf2_per_objfile::operator=): Declare as deleted.
10243 (dwarf2_per_objfile::dwarf2_per_objfile)
10244 (dwarf2_per_objfile::~dwarf2_per_objfile)
10245 (dwarf2_per_objfile::free_cached_comp_units): New.
10246 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10247 ctor. Call dwarf2_per_objfile's ctor manually.
10248 (dwarf2_locate_sections): Deleted/refactored as ...
10249 (dwarf2_per_objfile::locate_sections): ... this new method.
10250 (free_cached_comp_units): Defer to
10251 dwarf2_per_objfile::free_cached_comp_units.
10252 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10254 2017-07-14 Tom Tromey <tom@tromey.com>
10257 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10259 <UNOP_SIZEOF>: Split into separate case.
10260 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10262 2017-07-14 Tom Tromey <tom@tromey.com>
10265 * symtab.c (symbol_matches_domain): Add language_rust to special
10267 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10268 treat LOC_TYPEDEF symbols as variables.
10270 2017-07-14 Pedro Alves <palves@redhat.com>
10272 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10273 symtabs matching all symtabs with SRCFILE as file name instead of
10274 only considering the first hit, with lookup_symtab.
10276 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10278 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10279 operator_name parameters.
10280 (gen_expr): Update function call.
10282 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10284 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10286 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10288 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10289 parameter, use agent_expr::gdbarch instead, update function
10291 (locexpr_tracepoint_var_ref): Likewise.
10292 (loclist_tracepoint_var_ref): Likewise.
10293 * ax-gdb.c (gen_trace_static_fields): Likewise.
10294 (gen_traced_pop): Likewise.
10295 (gen_frame_args_address): Likewise.
10296 (gen_frame_locals_address): Likewise.
10297 (gen_var_ref): Likewise.
10298 (gen_struct_ref_recursive): Likewise.
10299 (gen_static_field): Likewise.
10300 (gen_maybe_namespace_elt): Likewise.
10301 (gen_expr): Likewise.
10302 (gen_trace_for_var): Likewise.
10303 (gen_trace_for_expr): Likewise.
10304 (gen_trace_for_return_address): Likewise.
10306 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10308 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10310 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10312 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10314 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10315 from ax, update calls.
10316 (gen_usual_arithmetic): Likewise.
10317 (gen_integral_promotions): Likewise.
10318 (gen_bitfield_ref): Likewise.
10319 (gen_primitive_field): Likewise.
10320 (gen_struct_ref_recursive): Likewise.
10321 (gen_struct_ref): Likewise.
10322 (gen_maybe_namespace_elt): Likewise.
10323 (gen_struct_elt_for_reference): Likewise.
10324 (gen_namespace_elt): Likewise.
10325 (gen_aggregate_elt_ref): Likewise.
10326 (gen_expr): Get gdbarch from ax, update calls.
10327 (gen_expr_binop_rest): Likewise.
10329 2017-07-13 Pedro Alves <palves@redhat.com>
10331 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10333 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10334 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10335 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10336 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10338 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10339 Get final tdesc from the tdep.
10340 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10342 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10343 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10344 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10345 Use it as default tdesc.
10346 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10347 down to amd_init_abi. No longer handle fallback tdesc here.
10348 * amd64-tdep.h (tdesc_x32): Declare.
10349 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10351 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10354 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10356 * s390-linux-tdep.c (s390_process_record): Add support for
10357 instructions new in arch12.
10359 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10361 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10362 PT_GETFSBASE and PT_GETGSBASE.
10363 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10366 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10368 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10369 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10370 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10372 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10373 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10374 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10375 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10376 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10377 * features/i386/amd64.xml: Add 64bit-segments.xml.
10378 * features/i386/amd64-avx-avx512.c: Regenerated.
10379 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10380 * features/i386/amd64-avx-mpx.c: Regenerated.
10381 * features/i386/amd64-avx.c: Regenerated.
10382 * features/i386/amd64-mpx.c: Regenerated.
10383 * features/i386/amd64.c: Regenerated.
10384 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10385 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10386 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10387 * regformats/i386/amd64-avx.dat: Regenerated.
10388 * regformats/i386/amd64-mpx.dat: Regenerated.
10389 * regformats/i386/amd64.dat: Regenerated.
10391 2017-07-10 Yao Qi <yao.qi@linaro.org>
10393 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10394 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10396 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10398 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10400 * gnulib/aclocal.m4: Regenerate.
10401 * gnulib/config.in: Regenerate.
10402 * gnulib/configure: Regenerate.
10403 * gnulib/import/Makefile.am: Regenerate.
10404 * gnulib/import/Makefile.in: Regenerate.
10405 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10406 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10407 * gnulib/import/m4/environ.m4: New file.
10408 * gnulib/import/m4/setenv.m4: New file.
10409 * gnulib/import/setenv.c: New file.
10410 * gnulib/import/unsetenv.c: New file.
10412 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10414 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10415 address when op is DW_OP_addr.
10417 2017-07-09 Tom Tromey <tom@tromey.com>
10419 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10420 check and apply to outer type.
10422 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10424 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10425 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10426 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10427 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10429 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10431 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10433 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10435 * corelow.c (get_core_siginfo): Remove.
10436 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10437 instead of get_core_siginfo.
10438 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10439 * gdbarch.h: Re-generate.
10440 * gdbarch.c: Re-generate.
10441 * linux-tdep.c (linux_core_xfer_siginfo): New.
10442 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10444 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10446 * corelow.c (thread_section_name): Move to ...
10447 * gdbcore.h (thread_section_name): ... here.
10449 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10451 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
10452 (struct siginfo32): New.
10453 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
10454 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
10455 via ptrace(PT_LWPINFO).
10457 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10459 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
10460 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
10461 (fbsd_get_siginfo_type): New.
10462 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
10463 (_initialize_fbsd_tdep): New.
10465 2017-07-06 David Blaikie <dblaikie@gmail.com>
10467 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
10468 a singular dwo_unit*) to support multiple CUs in the same way that
10469 multiple TUs are supported.
10470 (create_cus_hash_table): Replace create_dwo_cu with a function for
10471 parsing multiple CUs from a DWO file.
10472 (open_and_init_dwo_file): Use create_cus_hash_table rather than
10474 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
10475 htab_find, rather than comparing the signature to a singleton CU in
10478 2017-07-06 Pedro Alves <palves@redhat.com>
10480 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
10482 2017-07-04 Pedro Alves <palves@redhat.com>
10484 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
10485 * gdbtypes.h (TYPE_STATIC): Delete.
10486 (struct fn_field) <is_public, is_abstract, is_static, is_final,
10487 is_synchronized, is_native>: Delete.
10489 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
10490 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
10491 (TYPE_FN_FIELD_ABSTRACT): Delete.
10493 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
10495 * buffer.h (buffer_finish): Fix spelling mistakes.
10497 2017-07-01 Eli Zaretskii <eliz@gnu.org>
10499 * .dir-locals.el: Automatically switch to C-style comments in
10500 versions of Emacs that support the feature.
10502 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10503 Pedro Alves <palves@redhat.com>
10506 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
10507 (process_next_line): New variable 'inline_cmd'.
10508 Adjust 'if' clauses for "python", "compile" and "guile" to use
10509 'command_name_equals' and check for '!inline_cmd'.
10511 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10514 * cli/cli-script.c (command_name_equals_not_inline): New function.
10515 (process_next_line): Adjust 'if' clauses for "python", "compile"
10516 and "guile" to use command_name_equals_not_inline.
10518 2017-06-29 Pedro Alves <palves@redhat.com>
10520 * completer.c (expression_completer): Call
10521 linespec_location_completer instead of location_completer.
10523 2017-06-29 Pedro Alves <palves@redhat.com>
10525 * completer.c (expression_completer): Remove code that recomputes
10526 'text' from 'word'.
10528 2017-06-29 Yao Qi <yao.qi@linaro.org>
10530 * regformats/regdat.sh: Generate code with
10531 "ifndef IN_PROCESS_AGENT".
10533 2017-06-28 Pedro Alves <palves@redhat.com>
10535 * command.h: Include "common/scoped_restore.h".
10537 2017-06-28 Yao Qi <yao.qi@linaro.org>
10539 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
10540 instead of obstack_grow.
10542 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
10545 * symfile.c (reread_symbols): Call objfiles_changed just before
10548 2017-06-27 Pedro Alves <palves@redhat.com>
10550 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
10551 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
10552 (completion_list_add_symbol, completion_list_add_msymbol):
10553 ... these new functions.
10554 (add_symtab_completions)
10555 (default_make_symbol_completion_list_break_on_1): Adjust.
10557 2017-06-27 Pedro Alves <palves@redhat.com>
10559 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10560 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10561 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10563 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10564 'storage_obstack' field an auto_obstack. In-class initialize all
10565 non-bitfield fields. Make minsyms_read bool.
10566 * symfile.c (read_symbols): Adjust.
10568 2017-06-27 Alan Hayward <alan.hayward@arm.com>
10570 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10571 (gdbsim_store_register): Likewise.
10573 2017-06-27 Pedro Alves <palves@redhat.com>
10575 * c-exp.y (name_obstack): Now an auto_obstack.
10576 (yylex): Use auto_obstack::clear.
10577 (c_parse): Use auto_obstack::clear instead of reinitializing and
10578 freeing the obstack.
10579 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10580 * d-exp.y (name_obstack): Now an auto_obstack.
10581 (yylex): Use auto_obstack::clear.
10582 (d_parse): Use auto_obstack::clear instead of reinitializing and
10583 freeing the obstack.
10584 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10586 * dwarf2read.c (create_addrmap_from_index)
10587 (dwarf2_build_psymtabs_hard)
10588 (update_enumeration_type_from_children): Likewise.
10589 * gdb_obstack.h (auto_obstack): New type.
10590 * go-exp.y (name_obstack): Now an auto_obstack.
10591 (build_packaged_name): Use auto_obstack::clear.
10592 (go_parse): Use auto_obstack::clear instead of reinitializing and
10593 freeing the obstack.
10594 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10596 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
10597 * rust-exp.y (work_obstack): Now an auto_obstack.
10598 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
10599 reinitializing and freeing the obstack.
10600 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
10601 (host_char_to_target): Use auto_obstack.
10602 * utils.h (make_cleanup_obstack_free): Delete declaration.
10603 * valprint.c (generic_emit_char, generic_printstr): Use
10606 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
10608 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
10610 (darwin_init_thread_list): Don't update dummy thread.
10611 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
10613 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10615 * record-full.c (netorder16): Remove.
10617 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10619 * common/diagnostics.h: Define macros for GCC.
10620 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
10621 * common/vec.h: Include diagnostics.h.
10622 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
10623 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
10626 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10628 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
10630 * ada-lex.l: Ignore deprecated register warnings.
10632 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10634 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10635 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10637 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10639 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10642 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10644 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10646 2017-06-23 Alan Hayward <alan.hayward@arm.com>
10648 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
10649 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
10650 (xtensa_register_read_masked): Likewise.
10652 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
10654 * common/environ.c (gdb_environ::unset): Update comment.
10656 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10658 * python/py-unwind.c (pyuw_sniffer): Allocate space for
10661 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10663 * record-full.c (record_full_exec_insn): Use byte_vector.
10665 2017-06-22 Yao Qi <yao.qi@linaro.org>
10667 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
10668 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10670 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10672 * remote.c (cached_reg): Move from here...
10673 * regcache.h (cached_reg): ...to here.
10674 * python/py-unwind.c (struct reg_info): Remove.
10675 (cached_frame_info): Use cached_reg_t.
10676 (pyuw_prev_register): Likewise.
10677 (pyuw_sniffer): Use cached_reg_t and allocate registers.
10678 (pyuw_dealloc_cache): Free all registers.
10680 2017-06-22 Pedro Alves <palves@redhat.com>
10681 Simon Marchi <simon.marchi@ericsson.com>
10683 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
10685 * common/diagnostics.h: New file.
10687 2017-06-22 Pedro Alves <palves@redhat.com>
10689 * common/agent.h: Add include guards.
10691 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
10693 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
10694 talk about addressable units instead of bytes.
10696 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10698 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
10699 of '::const_iterator'.
10701 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10703 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10704 'unittests/environ-selftests.c'.
10705 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
10706 * charset.c (find_charset_names): Declare object 'iconv_env'.
10707 Update code to use 'iconv_env' object. Remove call to
10709 * common/environ.c: Include <utility>.
10710 (make_environ): Delete function.
10711 (free_environ): Delete function.
10712 (gdb_environ::clear): New function.
10713 (gdb_environ::operator=): New function.
10714 (gdb_environ::get): Likewise.
10715 (environ_vector): Delete function.
10716 (set_in_environ): Delete function.
10717 (gdb_environ::set): New function.
10718 (unset_in_environ): Delete function.
10719 (gdb_environ::unset): New function.
10720 (gdb_environ::envp): Likewise.
10721 * common/environ.h: Include <vector>.
10722 (struct gdb_environ): Delete; transform into...
10723 (class gdb_environ): ... this class.
10724 (free_environ): Delete prototype.
10725 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
10726 environ_vector): Likewise.
10727 * infcmd.c (run_command_1): Update code to call
10728 'envp' from 'gdb_environ' class.
10729 (environment_info): Update code to call methods from 'gdb_environ'
10731 (unset_environment_command): Likewise.
10732 (path_info): Likewise.
10733 (path_command): Likewise.
10734 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
10735 (inferior::inferior): Initialize 'environment' using the host's
10737 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
10738 Include "environ.h".
10739 (class inferior) <environment>: Change type from 'struct
10740 gdb_environ' to 'gdb_environ'.
10741 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
10742 methods from 'gdb_environ' class.
10743 * solib.c (solib_find_1): Likewise
10744 * unittests/environ-selftests.c: New file.
10746 2017-06-20 Yao Qi <yao.qi@linaro.org>
10748 * features/i386/i386-linux.xml: Exchange the order of including
10749 32bit-linux.xml and 32bit-sse.xml.
10750 * features/i386/i386-linux.c: Regenerated.
10752 2017-06-20 Yao Qi <yao.qi@linaro.org>
10754 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
10755 Delete copy ctor and assignment operator.
10756 (tdesc_type): Likewise.
10757 (tdesc_feature): Likewise.
10758 (tdesc_free_reg): Remove.
10759 (tdesc_create_reg): Use new.
10760 (tdesc_free_type): Remove.
10761 (tdesc_create_vector): Use new.
10762 (tdesc_create_union): Likewise.
10763 (tdesc_create_flags): Likewise.
10764 (tdesc_create_enum): Likewise.
10765 (tdesc_free_feature): Delete.
10766 (free_target_description): Use delete.
10768 2017-06-19 John Baldwin <jhb@FreeBSD.org>
10770 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
10773 2017-06-19 Pedro Alves <palves@redhat.com>
10775 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
10776 after gdb::unlinker.
10778 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
10780 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
10781 gdb_environ to access an environment variable.
10783 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10785 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
10788 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10790 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
10792 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10794 * configure: Re-generate.
10795 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
10797 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10799 * configure: Re-generate.
10800 * warning.m4: Pass -Werror to compiler when checking for
10801 supported warning flags.
10803 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10805 * Makefile.in (COMPILE.pre): Add "-x c++".
10807 2017-06-16 Alan Hayward <alan.hayward@arm.com>
10808 Pedro Alves <palves@redhat.com>
10809 Yao Qi <yao.qi@linaro.org>
10811 * defs.h (RequireLongest): New.
10812 (extract_integer): Declare function template.
10813 (extract_signed_integer): Remove the declaration, but define it
10815 (extract_unsigned_integer): Likewise.
10816 (store_integer): Declare function template.
10817 (store_signed_integer): Remove the declaration, but define it
10819 (store_unsigned_integer): Likewise.
10820 * findvar.c (extract_integer): New function template.
10821 (extract_signed_integer): Remove.
10822 (extract_unsigned_integer): Remove.
10823 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
10825 (store_integer): New function template.
10826 (store_signed_integer): Remove.
10827 (store_unsigned_integer): Remove.
10828 (store_integer): Explicit instantiations.
10829 * regcache.c (regcache_raw_read_signed): Update.
10830 (regcache::raw_read): New function.
10831 (regcache::raw_read_signed): Remove.
10832 (regcache::raw_read_unsigned): Remove.
10833 (regcache_raw_read_unsigned): Update.
10834 (regcache_raw_write_unsigned): Update.
10835 (regcache::raw_write_signed): Remove.
10836 (regcache::raw_write): New function.
10837 (regcache_cooked_read_signed): Update.
10838 (regcache::raw_write_unsigned): Remove.
10839 (regcache::cooked_read_signed): Remove.
10840 (regcache_cooked_read_unsigned): Update.
10841 (regcache::cooked_read_unsigned): Remove.
10842 (regcache_cooked_write_signed): Update.
10843 (regcache_cooked_write_unsigned): Update.
10844 * regcache.h (regcache) <raw_read_signed>: Remove.
10845 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
10846 <raw_read, raw_write>: New.
10847 <cooked_read_signed, cooked_write_signed>: Remove.
10848 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
10849 <cooked_read, cooked_write>: New.
10850 * sh64-tdep.c (sh64_pseudo_register_read): Update.
10851 (sh64_pseudo_register_write): Update.
10853 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
10855 * arc-tdep.c (arc_disassembler_options): New variable.
10856 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
10857 of default_print_insn.
10858 (arc_delayed_print_insn): Set info->section when needed,
10859 use default_print_insn to retrieve a disassembler.
10861 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
10864 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
10865 to mention $SHELL and startup-with-shell.
10867 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
10869 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
10871 2017-06-14 Yao Qi <yao.qi@linaro.org>
10873 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
10874 default_print_insn instead of print_insn_aarch64.
10875 * arm-tdep.c (gdb_print_insn_arm): Call
10876 default_print_insn instead of print_insn_big_arm
10877 and print_insn_little_arm.
10878 * i386-tdep.c (i386_print_insn): Call default_print_insn
10879 instead of print_insn_i386.
10880 * ia64-tdep.c (ia64_print_insn): Call
10881 default_print_insn instead of print_insn_ia64.
10882 * mips-tdep.c (gdb_print_insn_mips): Call
10883 default_print_insn instead of print_insn_big_mips
10884 and print_insn_little_mips.
10885 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
10886 instead of print_insn_spu.
10888 2017-06-14 Pedro Alves <palves@redhat.com>
10890 * ada-lang.c: Include "common/byte-vector.h".
10891 (ada_value_primitive_packed_val): Use gdb::byte_vector.
10892 * charset.c (wchar_iterator::iterate): Resize the vector instead
10894 * common/byte-vector.h: Include "common/def-vector.h".
10895 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
10896 * cli/cli-dump.c: Include "common/byte-vector.h".
10897 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
10898 * common/byte-vector.h: New file.
10899 * common/def-vector.h: New file.
10900 * common/default-init-alloc.h: New file.
10901 * dwarf2loc.c: Include "common/byte-vector.h".
10902 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
10903 instead of reserving it.
10904 * dwarf2read.c: Include "common/byte-vector.h".
10905 (data_buf::m_vec): Now a gdb::byte_vector.
10906 * gdb_regex.c: Include "common/def-vector.h".
10907 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
10908 * mi/mi-main.c: Include "common/byte-vector.h".
10909 (mi_cmd_data_read_memory): Use gdb::byte_vector.
10910 * printcmd.c: Include "common/byte-vector.h".
10911 (print_scalar_formatted): Use gdb::byte_vector.
10912 * valprint.c: Include "common/byte-vector.h".
10913 (maybe_negate_by_bytes, print_decimal_chars): Use
10916 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10918 * darwin-nat.c: Include "nat/fork-inferior.h".
10920 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10922 * configure.nat: Factor out Darwin bits that are not
10923 architecture-specific. Add fork-inferior.o.
10925 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10927 * configure.nat: Factor out AIX bits that are not
10928 architecture-specific. Add fork-inferior.o.
10930 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10932 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
10933 (read_pieced_value, write_pieced_value): ...here. Reduce to
10934 wrappers that just call rw_pieced_value.
10936 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10938 * dwarf2loc.c (write_pieced_value): When writing the data for a
10939 memory piece, use write_memory_with_notification instead of
10942 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10944 * valops.c (read_value_memory): Change embedded_offset to
10945 represent a bit offset instead of a byte offset.
10946 * value.h (read_value_memory): Adjust comment.
10948 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10950 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
10951 dest_offset_bits and source_offset_bits.
10952 (write_pieced_value): Likewise.
10954 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10956 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
10957 given by DW_OP_bit_piece.
10958 (write_pieced_value): Likewise.
10960 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10962 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
10963 some other preparations to the places where sufficient information
10965 (write_pieced_value): Likewise.
10967 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10969 * dwarf2loc.c (bits_to_bytes): New function.
10970 (read_pieced_value): Fix offset calculations for register pieces
10971 on big-endian targets.
10972 (write_pieced_value): Likewise.
10974 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10976 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
10977 (write_pieced_value): Likewise.
10979 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10981 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
10982 transfer the source value's least significant bits, instead of its
10983 lowest-addressed ones. Rename type_len to max_offset.
10984 (read_pieced_value): Mirror above changes to write_pieced_value as
10987 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10989 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
10990 truncate full bytes from dest_offset_bits before using it as an
10991 offset into the buffer.
10993 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10995 * dwarf2loc.c (write_pieced_value): Include transfer size in
10998 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11000 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11001 calculation of this_size.
11003 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11005 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11006 when targeting a bit-field.
11007 (write_pieced_value): Likewise.
11009 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11011 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11012 (allocate_piece_closure): Drop addr_size parameter.
11013 (dwarf2_evaluate_loc_desc_full): Adjust call to
11014 allocate_piece_closure.
11016 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11019 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11020 the LSB end, independent of endianness.
11022 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11024 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11027 2017-06-13 Yao Qi <yao.qi@linaro.org>
11029 * mips-linux-nat.c: Move include features/mips*-linux.c to
11031 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11032 to mips-linux-tdep.c.
11033 * mips-linux-tdep.c: Include features/mips*-linux.c
11034 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11036 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11037 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11038 (tdesc_mips64_dsp_linux): Declare.
11040 2017-06-12 Tom Tromey <tom@tromey.com>
11042 * valprint.h (val_print_type_code_int): Remove.
11043 * valprint.c (generic_val_print_int): Always call
11044 val_print_scalar_formatted.
11045 (val_print_type_code_int): Remove.
11046 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11047 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11048 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11049 * ada-valprint.c (ada_val_print_num): Use
11050 val_print_scalar_formatted.
11052 2017-06-12 Tom Tromey <tom@tromey.com>
11054 * printcmd.c (print_scalar_formatted): Unify the two switches.
11055 Don't convert scalars to LONGEST.
11057 2017-06-12 Tom Tromey <tom@tromey.com>
11060 * valprint.h (print_decimal_chars): Update.
11061 * valprint.c (maybe_negate_by_bytes): New function.
11062 (print_decimal_chars): Add "is_signed" argument.
11063 * printcmd.c (print_scalar_formatted): Update.
11065 2017-06-12 Tom Tromey <tom@tromey.com>
11068 * valprint.h (print_binary_chars, print_hex_chars): Update.
11069 * valprint.c (val_print_type_code_int): Update.
11070 (print_binary_chars): Add "zero_pad" argument.
11071 (emit_octal_digit): New function.
11072 (print_octal_chars): Don't zero-pad.
11073 (print_decimal_chars): Likewise.
11074 (print_hex_chars): Add "zero_pad" argument.
11075 * sh64-tdep.c (sh64_do_fp_register): Update.
11076 * regcache.c (regcache::dump): Update.
11077 * printcmd.c (print_scalar_formatted): Update.
11078 * infcmd.c (default_print_one_register_info): Update.
11080 2017-06-12 Pedro Alves <palves@redhat.com>
11081 Alan Hayward <alan.hayward@arm.com>
11083 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11084 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11085 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11086 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11087 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11089 2017-06-12 Pedro Alves <palves@redhat.com>
11091 * dwarf2read.c (mapped_symtab::data): Now a vector of
11092 symtab_index_entry instead of vector of
11093 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11094 whether an element's name is NULL instead of checking whether the
11095 element itself is NULL.
11096 (find_slot): Change return type. Adjust.
11097 (hash_expand, , add_index_entry, uniquify_cu_indices)
11098 (write_hash_table): Adjust.
11100 2017-06-12 Pedro Alves <palves@redhat.com>
11102 * dwarf2read.c (recursively_count_psymbols): New function.
11103 (write_psymtabs_to_index): Call it to compute number of psyms and
11104 pass estimate size of psyms_seen to unordered_set's ctor.
11106 2017-06-12 Pedro Alves <palves@redhat.com>
11108 * dwarf2read.c (write_hash_table): Check if key already exists
11111 2017-06-12 Pedro Alves <palves@redhat.com>
11113 * dwarf2read.c (data_buf::append_space): Rename to...
11114 (data_buf::grow): ... this, and make private. Adjust all callers.
11115 (data_buf::append_uint): New method.
11116 (add_address_entry, write_one_signatured_type)
11117 (write_psymtabs_to_index): Use it.
11119 2017-06-12 Pedro Alves <palves@redhat.com>
11121 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11122 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11123 (data_buf::file_write): Call ::fwrite directly.
11125 2017-06-12 Pedro Alves <palves@redhat.com>
11127 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11128 std::vector::erase.
11130 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11132 Code cleanup: C++ify .gdb_index producer.
11133 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11134 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11135 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11136 (create_strtab, add_string): Remove.
11137 (file_write, data_buf): New.
11138 (struct symtab_index_entry): Use std::vector for cu_indices.
11139 (struct mapped_symtab): Use std::vector for data.
11140 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11141 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11143 (find_slot): Change return type. Update it to the new data structures.
11144 (hash_expand, add_index_entry): Update it to the new data structures.
11145 (offset_type_compare): Remove.
11146 (uniquify_cu_indices): Update it to the new data structures.
11147 (c_str_view, c_str_view_hasher, vector_hasher): New.
11148 (add_indices_to_cpool): Remove.
11149 (write_hash_table): Update it to the new data structures.
11150 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11151 (eq_psymtab_cu_index): Remove.
11152 (psym_index_map): New typedef.
11153 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11154 reference and std::unordered_map for cu_index_htab.
11155 (add_address_entry, add_address_entry_worker, write_address_map)
11156 (write_psymbols): Update it to the new data structures.
11157 (write_obstack): Remove.
11158 (struct signatured_type_index_data): Change types_list to a data_buf
11159 reference and psyms_seen to a std::unordered_set reference.
11160 (write_one_signatured_type, recursively_write_psymbols)
11161 (write_psymtabs_to_index): Update it to the new data structures.
11163 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11165 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11166 separate-debug-file commands.
11167 * symfile.h (separate_debug_file_debug): New global.
11168 * symfile.c (separate_debug_file_debug): New global.
11169 (separate_debug_file_exists, find_separate_debug_file): Add
11171 (_initialize_symfile): Add "set debug separate-debug-file"
11173 * build-id.c (build_id_to_debug_bfd,
11174 find_separate_debug_file_by_buildid): Add debug output.
11176 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11178 * gdbarch.sh (displaced_step_free_closure): Remove.
11179 * gdbarch.h, gdbarch.c: Re-generate.
11180 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11181 displaced_step_free_closure.
11182 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11183 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11184 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11185 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11186 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11187 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11188 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11189 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11190 * infrun.c (displaced_step_clear): Call xfree instead of
11191 gdbarch_displaced_step_free_closure.
11193 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11195 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11198 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11200 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11201 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11202 (mn10300_push_dummy_call): Likewise.
11204 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11206 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11208 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11210 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11212 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11214 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11215 able to start inferiors using a shell.
11216 (New remote packets): Announce new packet "QStartupWithShell".
11217 * remote.c: Add PACKET_QStartupWithShell.
11218 (extended_remote_create_inferior): Handle new
11219 PACKET_QStartupWithShell.
11220 (remote_protocol_features) <QStartupWithShell>: New entry for
11221 PACKET_QStartupWithShell.
11222 (_initialize_remote): Call "add_packet_config_cmd" for
11225 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11226 Pedro Alves <palves@redhat.com>
11228 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11229 and "nat/fork-inferior.h".
11230 * common/common-inferior.h: New file, with contents from
11232 * commom/common-utils.c: Include "common-utils.h".
11233 (stringify_argv): New function.
11234 * common/common-utils.h (stringify_argv): New prototype.
11235 * configure.nat: Add "fork-inferior.o" as a dependency for
11236 "*linux*", "fbsd*" and "nbsd*" hosts.
11237 * corefile.c (get_exec_file): Update comment.
11238 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11239 instead of "startup_inferior".
11240 (darwin_create_inferior): Call "add_thread_silent" after
11242 * fork-child.c: Cleanup unnecessary includes.
11243 (SHELL_FILE): Move to "common/common-fork-child.c".
11244 (environ): Likewise.
11245 (exec_wrapper): Initialize.
11246 (get_exec_wrapper): New function.
11247 (breakup_args): Move to "common/common-fork-child.c"; rename to
11248 "breakup_args_for_exec".
11249 (escape_bang_in_quoted_argument): Move to
11250 "common/common-fork-child.c".
11251 (saved_ui): New variable.
11252 (prefork_hook): New function.
11253 (postfork_hook): Likewise.
11254 (postfork_child_hook): Likewise.
11255 (gdb_startup_inferior): Likewise.
11256 (fork_inferior): Move to "common/common-fork-child.c". Update
11257 function to support gdbserver.
11258 (startup_inferior): Likewise.
11259 * gdbcore.h (get_exec_file): Remove declaration.
11260 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11261 instead of "startup_inferior". Call "add_thread_silent" after
11263 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11264 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11265 instead of "startup_inferior". Call "add_thread_silent" after
11267 * inferior.h: Include "common-inferior.h".
11268 (trace_start_error): Move to "common/common-utils.h".
11269 (trace_start_error_with_name): Likewise.
11270 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11271 (startup_inferior): Likewise.
11272 (gdb_startup_inferior): New prototype.
11273 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11274 * nat/fork-inferior.h: New file.
11275 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11276 instead of "startup_inferior". Call "add_thread_silent" after
11278 * target.h (target_terminal_init): Move prototype to
11280 (target_terminal_inferior): Likewise.
11281 (target_terminal_ours): Likewise.
11282 * target/target.h (target_terminal_init): New prototype, moved
11284 (target_terminal_inferior): Likewise.
11285 (target_terminal_ours): Likewise.
11286 * utils.c (gdb_flush_out_err): New function.
11288 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11290 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11291 * common/common-gdbthread.h: New file, with parts from
11293 * gdbthread.h: Include "common-gdbthread.h".
11294 (switch_to_thread): Moved to "common/common-gdbthread.h".
11296 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11298 * Makefile.in (SFILES): Add "common/job-control.c".
11299 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11300 (COMMON_OBS): Add "job-control.o".
11301 * common/job-control.c: New file, with contents from
11303 * common/job-control.h: New file, with contents from "terminal.h".
11304 * fork-child.c: Include "job-control.h".
11305 * inflow.c: Include "job-control.h".
11306 (gdb_setpgid): Move to "common/common-inflow.c".
11307 (_initialize_inflow): Move setting of "job_control" to
11308 "handle_job_control".
11309 * terminal.h (job_control): Moved to "common/common-terminal.h".
11310 (gdb_setpgid): Likewise.
11311 * top.c: Include "job_control.h".
11312 * utils.c: Likewise.
11313 (job_control): Moved to "job-control.c".
11315 2017-06-07 Pedro Alves <palves@redhat.com>
11317 * Makefile.in (SFILES): Add gdb_regex.c.
11318 (COMMON_OBS): Add gdb_regex.o.
11319 * ada-lang.c (ada_add_standard_exceptions)
11320 (ada_add_exceptions_from_frame, name_matches_regex)
11321 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11322 parameter type to compiled_regex. Adjust.
11323 (ada_exceptions_list): Use compiled_regex.
11324 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11325 std::unique_ptr<compiled_regex>.
11326 (exception_catchpoint::~exception_catchpoint): Remove regfree
11328 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11329 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11330 * breakpoint.c (solib_catchpoint::compiled): Now a
11331 std::unique_ptr<compiled_regex>.
11332 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11333 (check_status_catch_solib): Adjust to use compiled_regex.
11334 (add_solib_catchpoint): Adjust to use compiled_regex.
11335 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11336 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11337 compiled_regex reference. Adjust to use it.
11338 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11339 declaration. Include "gdb_regex.h".
11340 (apropos_cmd): Change regex parameter to compiled_regex reference.
11341 * gdb_regex.c: New file.
11342 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11344 (class compiled_regex): New.
11345 * linux-tdep.c: Include "common/gdb_optional.h".
11346 (struct mapping_regexes): New, factored out from
11347 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11348 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11349 gdb::optional and remove cleanups. Adjust to compiled_regex.
11350 * probe.c: Include "common/gdb_optional.h".
11351 (collect_probes): Use compiled_regex and gdb::optional and remove
11353 * skip.c: Include "common/gdb_optional.h".
11354 (skiplist_entry::compiled_function_regexp): Now a
11355 gdb::optional<compiled_regex>.
11356 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11357 (free_skiplist_entry): Remove regfree call.
11358 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11359 compiled_regex and gdb::optional.
11360 * symtab.c: Include "common/gdb_optional.h".
11361 (search_symbols): Use compiled_regex and gdb::optional.
11362 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11363 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11366 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11368 * regcache.c (regcache::save): Avoid buffer use.
11369 (regcache::dump): Likewise.
11371 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11373 * sh-tdep.c (sh_pseudo_register_read): Remove
11375 (sh_pseudo_register_write): Likewise.
11376 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11377 (sh64_pseudo_register_write): Likewise
11379 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11381 * aarch64-tdep.c (aarch64_store_return_value): Use
11383 (aarch64_pseudo_read_value): Likewise.
11384 (aarch64_pseudo_write): Likewise.
11386 2017-06-06 Yao Qi <yao.qi@linaro.org>
11388 * regformats/regdef.h (set_register_cache): Remove the
11391 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11393 * frame.c (frame_unwind_register_signed): Use
11394 frame_unwind_register_value.
11396 2017-06-06 Pedro Alves <palves@redhat.com>
11398 PR breakpoints/21553
11399 * breakpoint.c (create_breakpoints_sal_default)
11400 (init_breakpoint_sal, create_breakpoint_sal): Use
11401 gdb::unique_xmalloc_ptr for string parameters.
11402 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11403 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11404 (base_breakpoint_create_breakpoints_sal)
11405 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11406 (strace_marker_create_breakpoints_sal)
11407 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11409 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11410 gdb::unique_xmalloc_ptr for string parameters.
11411 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11414 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11416 * alpha-tdep.c (alpha_register_to_value): Use
11417 get_frame_register_value.
11418 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11420 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11422 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11423 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11424 (ia64_value_to_register): Likewise.
11425 (ia64_extract_return_value): Likewise.
11426 (ia64_store_return_value): Likewise.
11427 (ia64_push_dummy_call): Likewise.
11429 2017-06-04 Joel Brobecker <brobecker@adacore.com>
11433 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11435 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11437 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11439 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11441 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11443 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11445 * event-loop.c (poll_timers): Unallocate timer using delete
11448 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11450 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
11451 (struct breakpoint) <~breakpoint>: New.
11452 (struct watchpoint): Inherit from breakpoint.
11453 <~watchpoint>: New.
11455 (struct tracepoint): Inherit from breakpoint.
11457 * breakpoint.c (longjmp_breakpoint_ops): Remove.
11458 (struct longjmp_breakpoint): Inherit from breakpoint.
11459 <~longjmp_breakpoint>: New.
11461 (new_breakpoint_from_type): Remove casts.
11462 (watchpoint_in_thread_scope): Remove reference to base field.
11463 (watchpoint_del_at_next_stop): Likewise.
11464 (update_watchpoint): Likewise.
11465 (watchpoint_check): Likewise.
11466 (bpstat_check_watchpoint): Likewise.
11467 (set_longjmp_breakpoint): Likewise.
11468 (struct fork_catchpoint): Inherit from breakpoint.
11470 (struct solib_catchpoint): Inherit from breakpoint.
11471 <~solib_catchpoint>: New.
11473 (dtor_catch_solib): Change to ...
11474 (solib_catchpoint::~solib_catchpoint): ... this.
11475 (breakpoint_hit_catch_solib): Remove reference to base field.
11476 (add_solib_catchpoint): Likewise.
11477 (create_fork_vfork_event_catchpoint): Likewise.
11478 (struct exec_catchpoint): Inherit from breakpoint.
11479 <~exec_catchpoint>: New.
11481 (dtor_catch_exec): Change to ...
11482 (exec_catchpoint::~exec_catchpoint): ... this.
11483 (dtor_watchpoint): Change to ...
11484 (watchpoint::~watchpoint): ... this.
11485 (watch_command_1): Remove reference to base field.
11486 (catch_exec_command_1): Likewise.
11487 (base_breakpoint_dtor): Change to ...
11488 (breakpoint::~breakpoint): ... this.
11489 (base_breakpoint_ops): Remove dtor field value.
11490 (longjmp_bkpt_dtor): Change to ...
11491 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
11492 (strace_marker_create_breakpoints_sal): Remove reference to base
11494 (delete_breakpoint): Don't manually call breakpoint destructor.
11495 (create_tracepoint_from_upload): Remove reference to base field.
11496 (trace_pass_set_count): Likewise.
11497 (initialize_breakpoint_ops): Don't initialize
11498 momentary_breakpoint_ops, don't set dtors.
11499 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
11500 <~ada_catchpoint>: New.
11502 (create_excep_cond_exprs): Remove reference to base field.
11503 (dtor_exception): Change to ...
11504 (ada_catchpoint::~ada_catchpoint): ... this.
11505 (dtor_catch_exception): Remove.
11506 (dtor_catch_exception_unhandled): Remove.
11507 (dtor_catch_assert): Remove.
11508 (create_ada_exception_catchpoint): Remove reference to base
11510 (initialize_ada_catchpoint_ops): Don't set dtors.
11511 * break-catch-sig.c (struct signal_catchpoint): Inherit from
11513 <~signal_catchpoint>: New.
11515 (signal_catchpoint_dtor): Change to ...
11516 (signal_catchpoint::~signal_catchpoint): ... this.
11517 (create_signal_catchpoint): Remove reference to base field.
11518 (initialize_signal_catchpoint_ops): Don't set dtor.
11519 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
11521 <~syscall_catchpoint>: New.
11523 (dtor_catch_syscall): Change to ...
11524 (syscall_catchpoint::~syscall_catchpoint): ... this.
11525 (create_syscall_event_catchpoint): Remove reference to base
11527 (initialize_syscall_catchpoint_ops): Don't set dtor.
11528 * break-catch-throw.c (struct exception_catchpoint): Inherit
11530 <~exception_catchpoint>: New.
11532 (dtor_exception_catchpoint): Change to ...
11533 (exception_catchpoint::~exception_catchpoint): ... this.
11534 (handle_gnu_v3_exceptions): Remove reference to base field.
11535 (initialize_throw_catchpoint_ops): Don't set dtor.
11536 * ctf.c (ctf_get_traceframe_address): Remove reference to base
11538 * remote.c (remote_get_tracepoint_status): Likewise.
11539 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
11540 * tracefile.c (tracefile_fetch_registers): Likewise.
11541 * tracepoint.c (actions_command): Likewise.
11542 (validate_actionline): Likewise.
11543 (tfind_1): Likewise.
11544 (get_traceframe_location): Likewise.
11545 (find_matching_tracepoint_location): Likewise.
11546 (parse_tracepoint_status): Likewise.
11547 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
11549 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11551 * breakpoint.c (struct longjmp_breakpoint): New struct.
11552 (is_tracepoint_type): Change return type to bool.
11553 (is_longjmp_type): New function.
11554 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
11555 (set_raw_breakpoint_without_location): Use
11556 new_breakpoint_from_type.
11557 (set_raw_breakpoint): Likewise.
11559 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11561 * breakpoint.c (new_breakpoint_from_type): New function.
11562 (create_breakpoint_sal): Use new_breakpoint_from_type and
11564 (create_breakpoint): Likewise.
11566 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11568 * memattr.c (mem_info_command): Rename to ...
11569 (info_mem_command): ... this.
11570 (mem_enable_command): Rename to ...
11571 (enable_mem_command): ... this.
11572 (mem_disable_command): Rename to ...
11573 (disable_mem_command): ... this.
11574 (mem_delete_command): Rename to ...
11575 (delete_mem_command): ... this.
11576 (_initialize_mem): Adjust function names.
11578 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11580 * btrace.c (handle_pt_insn_events): New.
11581 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11582 STATUS. Split into this and ...
11583 (handle_pt_insn_event_flags): ... this.
11585 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11587 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11588 and struct pt_insn.resynced.
11589 * configure: Regenerated.
11590 * config.in: Regenerated.
11592 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11594 * btrace.c (ftrace_find_call_by_number): New function.
11595 (ftrace_new_function): Store objects, not pointers.
11596 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
11597 ftrace_new_gap, ftrace_update_function,
11598 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
11599 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
11600 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
11601 btrace_ends_with_single_insn, btrace_call_get): Account for
11602 btrace_thread_info::functions now storing objects.
11603 * btrace.h (struct btrace_thread_info): Add constructor.
11604 (struct btrace_thread_info) <functions>: Make std::vector.
11605 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
11606 Initialize with default values.
11607 * record-btrace.c (record_btrace_frame_sniffer): Account for
11608 btrace_thread_info::functions now storing objects.
11610 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11612 * btrace.c: Remove typedef bfun_s.
11613 (ftrace_new_gap): Directly add gaps to the list of gaps.
11614 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
11615 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
11616 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
11617 instead of gdb VEC.
11619 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11621 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
11622 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
11623 with btrace_thread_info::next_segment and
11624 btrace_thread_info::prev_segment.
11625 * btrace.h: Remove struct btrace_func_link.
11626 (struct btrace_function): Replace pair of function segment pointers
11627 with pair of indices.
11628 * python/py-record-btrace.c (btpy_call_prev_sibling,
11629 btpy_call_next_sibling): Replace references to
11630 btrace_thread_info::segment with btrace_thread_info::next_segment and
11631 btrace_thread_info::prev_segment.
11632 * record-btrace.c (record_btrace_frame_this_id): Use
11633 btrace_find_call_by_number.
11635 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11637 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11638 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11639 btrace_insn_next, btrace_insn_prev): Remove references to
11640 btrace_thread_info::flow.
11641 * btrace.h (struct btrace_function): Remove FLOW.
11643 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11645 * btrace.c (ftrace_find_call_by_number): New function.
11646 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11647 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
11648 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
11649 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
11651 * btrace.h (struct btrace_function): Turn UP into an index.
11652 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
11654 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
11655 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
11656 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
11658 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11660 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11661 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11662 ftrace_update_function, ftrace_compute_global_level_offset,
11663 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
11664 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
11665 btrace_insn_end, btrace_is_empty): Remove references to
11666 btrace_thread_info::begin and btrace_thread_info::end.
11667 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
11668 (struct btrace_thread_info) <functions>: Adjust comment.
11669 * record-btrace.c (record_btrace_start_replaying): Remove reference to
11670 btrace_thread_info::begin.
11672 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11674 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11675 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11676 ftrace_update_function): Remove arguments that implicitly were always
11678 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
11679 Don't pass BTINFO->END.
11681 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11683 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
11684 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
11685 btrace_find_insn_by_number): Replace function segment pointer with
11687 (btrace_insn_cmp): Simplify.
11688 * btrace.h: (struct btrace_insn_iterator) Rename index to
11689 insn_index. Replace function segment pointer with index into function
11691 * record-btrace.c (record_btrace_call_history): Replace function
11692 segment pointer use with index.
11693 (record_btrace_frame_sniffer): Retrieve function call segment through
11695 (record_btrace_set_replay): Remove defunc't safety check.
11697 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11699 * btrace.c (btrace_ends_with_single_insn): New function.
11700 (btrace_call_get, btrace_call_number, btrace_call_begin,
11701 btrace_call_end, btrace_call_next, btrace_call_prev,
11702 btrace_find_call_by_number): Use index into call segment vector
11703 instead of pointer.
11704 (btrace_call_cmp): Simplify.
11705 * btrace.h (struct btrace_call_iterator): Replace function call segment
11706 pointer with index into vector.
11707 * record-btrace.c (record_btrace_call_history): Use index instead of
11710 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11712 * btrace.c (btrace_insn_begin, btrace_insn_end,
11713 btrace_find_insn_by_number): Add btinfo to iterator.
11714 * btrace.h (struct btrace_insn_iterator): Add btinfo.
11716 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11718 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
11719 and save pointers directly.
11720 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
11721 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
11722 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
11723 changed signature of functions.
11724 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
11725 (btrace_fetch): Remove code that adds btrace_function pointers to
11726 vector of btrace_functions.
11727 (btrace_clear): Simplify freeing vector of btrace_functions.
11729 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11731 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
11732 Replace VEC_* with std::vector functions.
11733 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
11734 (struct btrace_thread_info)<functions>: Change type to std::vector.
11736 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
11738 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
11739 "Removed targets and native configurations" up. Merge duplicate
11740 "New commands" sub-sections. Add "New options" sub-sections.
11742 2017-05-26 Alan Hayward <alan.hayward@arm.com>
11744 * defs.h (copy_integer_to_size): New declaration.
11745 * findvar.c (copy_integer_to_size): New function.
11746 (do_cint_test): New selftest function.
11747 (copy_integer_to_size_test): Likewise.
11748 (_initialize_findvar): Likewise.
11749 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
11750 (mips_fbsd_collect_reg): Use raw_collect_integer.
11751 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
11752 (mips64_fill_gregset): Use raw_collect_integer
11753 (mips64_fill_fpregset): Use raw_supply_integer.
11754 * regcache.c (regcache::raw_supply_integer): New function.
11755 (regcache::raw_collect_integer): Likewise.
11756 * regcache.h: (regcache::raw_supply_integer): New declaration.
11757 (regcache::raw_collect_integer): Likewise.
11759 2017-05-24 Yao Qi <yao.qi@linaro.org>
11761 * Makefile.in (SFILES): Add gdbarch-selftests.c.
11762 (COMMON_OBS): Add gdbarch-selftests.o.
11763 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
11764 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
11765 * gdbarch-selftests.c: New file.
11766 * regcache.h (regcache) <~regcache>: Mark it virtual if
11768 <raw_write>: Likewise.
11770 2017-05-24 Yao Qi <yao.qi@linaro.org>
11772 * regcache.c (current_regcache): Change it to
11773 regcache::current_regcache.
11774 (regcache_observer_target_changed): Update.
11775 (regcache_thread_ptid_changed): Make it a regcache static
11777 (regcache_thread_ptid_changed): Update.
11778 (class regcache_access): New.
11779 (current_regcache_test): Update.
11780 (_initialize_regcache): Update.
11781 * regcache.h: Include forward_list.
11782 (regcache): Declare regcache_thread_ptid_changed and declare
11783 registers_changed_ptid as friend.
11785 2017-05-24 Yao Qi <yao.qi@linaro.org>
11787 * i387-tdep.c (i387_register_to_value): Use register_size
11788 instead of TYPE_LENGTH.
11789 * m68k-tdep.c (m68k_register_to_value): Likewise.
11791 2017-05-24 Yao Qi <yao.qi@linaro.org>
11793 * i387-tdep.c (i387_convert_register_p): Return false if type
11794 code isn't TYPE_CODE_FLT.
11796 2017-05-24 Yao Qi <yao.qi@linaro.org>
11798 * alpha-tdep.c (alpha_convert_register_p): Return true if type
11800 (alpha_register_to_value): Remove type length check.
11801 (alpha_value_to_register): Likewise.
11803 2017-05-24 Yao Qi <yao.qi@linaro.org>
11805 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
11808 2017-05-24 Yao Qi <yao.qi@linaro.org>
11810 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
11811 TYPE_CODE_FLT or not.
11813 2017-05-24 Yao Qi <yao.qi@linaro.org>
11815 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
11816 * avr-tdep.c (avr_gdbarch_init): Likewise.
11817 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11818 * cris-tdep.c (cris_gdbarch_init): Likewise.
11819 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11820 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11821 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11822 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11823 * mep-tdep.c (mep_gdbarch_init): Likewise.
11824 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11825 * mips-tdep.c (mips_gdbarch_init): Likewise.
11826 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11827 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11828 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11829 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11830 * v850-tdep.c (v850_gdbarch_init): Likewise.
11832 2017-05-24 Yao Qi <yao.qi@linaro.org>
11834 * selftest-arch.c (tests_with_arch): Call registers_changed
11835 and reinit_frame_cache.
11836 * selftest.c (run_self_tests): Likewise.
11838 2017-05-24 Yao Qi <yao.qi@linaro.org>
11840 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
11841 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
11843 2017-05-24 Yao Qi <yao.qi@linaro.org>
11845 * rl78-tdep.c (rl78_gdbarch_init): Don't call
11846 set_gdbarch_print_insn.
11848 2017-05-24 Yao Qi <yao.qi@linaro.org>
11850 * h8300-tdep.c (h8300_gdbarch_init): Don't call
11851 set_gdbarch_print_insn.
11853 2017-05-24 Yao Qi <yao.qi@linaro.org>
11855 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11856 set_gdbarch_print_insn.
11857 * arc-tdep.c (arc_gdbarch_init): Likewise.
11858 * arch-utils.c: include dis-asm.h.
11859 (default_print_insn): New function.
11860 * arch-utils.h (default_print_insn): Declare.
11861 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
11862 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11863 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
11864 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
11865 * frv-tdep.c (frv_gdbarch_init): Likewise.
11866 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11867 * gdbarch.sh (print_insn): Use default_print_insn.
11868 * gdbarch.c: Regenerated.
11869 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11870 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
11871 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11872 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
11873 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11874 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
11875 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
11876 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11877 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
11878 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11879 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11880 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11881 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11882 * mt-tdep.c (mt_gdbarch_init): Likewise.
11883 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11884 * nios2-tdep.c (nios2_print_insn): Remove.
11885 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
11886 * rx-tdep.c (rx_gdbarch_init): Likewise.
11887 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11888 * score-tdep.c (score_print_insn): Remove.
11889 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
11890 * sh-tdep.c (sh_gdbarch_init): Likewise.
11891 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11892 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11893 * tic6x-tdep.c (tic6x_print_insn): Remove.
11894 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
11895 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
11896 * v850-tdep.c (v850_gdbarch_init): Likewise.
11897 * vax-tdep.c (vax_gdbarch_init): Likewise.
11898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11899 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
11901 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11903 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
11904 (MIPS_FP0_REGNUM): Remove.
11905 (MIPS_FSR_REGNUM): Remove.
11906 (mips_fbsd_supply_fpregs): Use mips_regnum.
11907 (mips_fbsd_supply_gregs): Likewise.
11908 (mips_fbsd_collect_fpregs): Likewise.
11909 (mips_fbsd_collect_gregs): Likewise.
11911 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11913 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
11914 (getpfpregs_supplies): New function.
11915 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
11916 getfpregs_supplies.
11917 (mips_fbsd_store_inferior_registers): Likewise.
11919 2017-05-22 Pedro Alves <palves@redhat.com>
11921 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
11924 2017-05-22 Alan Hayward <alan.hayward@arm.com>
11926 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
11927 (store_register): Likewise.
11928 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
11929 (get_decimal_float_return_value): Likewise.
11930 (do_ppc_sysv_return_value): Likewise.
11931 (ppc64_sysv_abi_push_integer): Likewise.
11932 (ppc64_sysv_abi_push_freg): Likewise.
11933 (ppc64_sysv_abi_return_value_base): Likewise.
11934 (ppc64_sysv_abi_return_value): Likewise.
11935 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
11936 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
11937 * rs6000-nat.c: Likewise.
11938 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
11939 (rs6000_value_to_register): Likewise.
11940 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
11942 2017-05-21 Tom Tromey <tom@tromey.com>
11945 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
11946 arrays as "[T]", not "[T; ]".
11948 2017-05-19 Tom Tromey <tom@tromey.com>
11951 * rust-lang.c (exp_descriptor_rust): New function.
11952 (rust_language_defn): Use it.
11953 * p-lang.c (pascal_language_defn): Update.
11954 * opencl-lang.c (opencl_language_defn): Update.
11955 * objc-lang.c (objc_language_defn): Update.
11956 * m2-lang.c (m2_language_defn): Update.
11957 * language.h (struct language_defn)
11958 <la_watch_location_expression>: New member.
11959 * language.c (unknown_language_defn, auto_language_defn)
11960 (local_language_defn): Update.
11961 * go-lang.c (go_language_defn): Update.
11962 * f-lang.c (f_language_defn): Update.
11963 * d-lang.c (d_language_defn): Update.
11964 * c-lang.h (c_watch_location_expression): Declare.
11965 * c-lang.c (c_watch_location_expression): New function.
11966 (c_language_defn, cplus_language_defn, asm_language_defn)
11967 (minimal_language_defn): Use it.
11968 * breakpoint.c (watch_command_1): Call
11969 la_watch_location_expression.
11970 * ada-lang.c (ada_language_defn): Update.
11972 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11975 * gdb_curses.h (NOMACROS): Define.
11976 (NCURSES_NOMACROS): Define.
11978 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11981 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
11983 * tui/tui-wingeneral.c (box_win): Likewise.
11984 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
11985 (tui_show_source_line): Likewise.
11986 (tui_show_exec_info_content): Likewise.
11988 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
11990 * sparc-tdep.c (sparc_structure_return_p)
11991 (sparc_arg_on_registers_p): New functions.
11992 (sparc32_store_arguments): Use them.
11993 * sparc64-tdep.c (sparc64_16_byte_align_p)
11994 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
11995 Handle TYPE_CODE_ARRAY.
11997 2017-05-17 Yao Qi <yao.qi@linaro.org>
11999 * cli/cli-decode.c (add_alias_cmd): New function.
12000 * command.h (add_alias_cmd): Declare.
12001 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12002 instead call add_alias_cmd.
12004 2017-05-17 Pedro Alves <palves@redhat.com>
12006 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12007 (nat_makefile_frag): ... this. All references updated.
12008 * configure.ac: Likewise.
12009 * configure.nat: Likewise. Enhance comments.
12010 * configure: Regenerate.
12012 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12014 * procfs.c (procfs_create_inferior): Change prototype to match
12017 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12019 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12020 C++ compiler warning.
12022 2017-05-12 Tom Tromey <tom@tromey.com>
12025 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12026 recurse, just call value_struct_elt directly.
12028 2017-05-12 Tom Tromey <tom@tromey.com>
12030 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12031 OP_RUST_ARRAY>: Fix.
12033 2017-05-12 Tom Tromey <tom@tromey.com>
12035 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12037 2017-05-09 Yao Qi <yao.qi@linaro.org>
12039 * regcache.c: Include <forward_list>.
12040 (struct regcache_list): Remove.
12041 (current_regcache): Update.
12042 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12043 (regcache_thread_ptid_changed): Likewise.
12044 (registers_changed_ptid): Likewise.
12045 (current_regcache_size): Likewise.
12047 2017-05-09 Yao Qi <yao.qi@linaro.org>
12049 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12050 (current_regcache_size): New function.
12051 (current_regcache_test): New function.
12052 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12054 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12056 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12057 (print_gp_register_row): Use get_frame_register_value.
12059 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12061 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12062 (mips_supply_fpregset): Likewise.
12063 (mips64_supply_gregset): Likewise.
12065 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12067 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12068 regcache->raw_supply_zeroed.
12070 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12072 * configure.nat: Rearrange 'case' statements to match
12075 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12077 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12078 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12079 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12080 "@nat_extra_makefile_frag@".
12081 (Makefile): Remove dependency on "@frags@".
12082 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12083 (data-directory/Makefile): Likewise.
12084 * config/aarch64/linux.mh: Deleted; moved contents to
12085 "gdb/configure.nat".
12086 * config/alpha/alpha-linux.mh: Likewise.
12087 * config/alpha/nbsd.mh: Likewise.
12088 * config/arm/linux.mh: Likewise.
12089 * config/arm/nbsdelf.mh: Likewise.
12090 * config/i386/cygwin.mh: Likewise.
12091 * config/i386/cygwin64.mh: Likewise.
12092 * config/i386/darwin.mh: Likewise.
12093 * config/i386/fbsd.mh: Likewise.
12094 * config/i386/fbsd64.mh: Likewise.
12095 * config/i386/go32.mh: Likewise.
12096 * config/i386/i386gnu.mh: Likewise.
12097 * config/i386/i386sol2.mh: Likewise.
12098 * config/i386/linux.mh: Likewise.
12099 * config/i386/linux64.mh: Likewise.
12100 * config/i386/mingw.mh: Likewise.
12101 * config/i386/mingw64.mh: Likewise.
12102 * config/i386/nbsd64.mh: Likewise.
12103 * config/i386/nbsdelf.mh: Likewise.
12104 * config/i386/nto.mh: Likewise.
12105 * config/i386/obsd.mh: Likewise.
12106 * config/i386/obsd64.mh: Likewise.
12107 * config/i386/sol2-64.mh: Likewise.
12108 * config/ia64/linux.mh: Likewise.
12109 * config/m32r/linux.mh: Likewise.
12110 * config/m68k/linux.mh: Likewise.
12111 * config/m68k/nbsdelf.mh: Likewise.
12112 * config/m68k/obsd.mh: Likewise.
12113 * config/m88k/obsd.mh: Likewise.
12114 * config/mips/fbsd.mh: Likewise.
12115 * config/mips/linux.mh: Likewise.
12116 * config/mips/nbsd.mh: Likewise.
12117 * config/mips/obsd64.mh: Likewise.
12118 * config/pa/linux.mh: Likewise.
12119 * config/pa/nbsd.mh: Likewise.
12120 * config/pa/obsd.mh: Likewise.
12121 * config/powerpc/aix.mh: Likewise.
12122 * config/powerpc/fbsd.mh: Likewise.
12123 * config/powerpc/linux.mh: Likewise.
12124 * config/powerpc/nbsd.mh: Likewise.
12125 * config/powerpc/obsd.mh: Likewise.
12126 * config/powerpc/ppc64-linux.mh: Likewise.
12127 * config/powerpc/spu-linux.mh: Likewise.
12128 * config/s390/linux.mh: Likewise.
12129 * config/sh/nbsd.mh: Likewise.
12130 * config/sparc/fbsd.mh: Likewise.
12131 * config/sparc/linux.mh: Likewise.
12132 * config/sparc/linux64.mh: Likewise.
12133 * config/sparc/nbsd64.mh: Likewise.
12134 * config/sparc/nbsdelf.mh: Likewise.
12135 * config/sparc/obsd64.mh: Likewise.
12136 * config/sparc/sol2.mh: Likewise.
12137 * config/tilegx/linux.mh: Likewise.
12138 * config/vax/nbsdelf.mh: Likewise.
12139 * config/vax/obsd.mh: Likewise.
12140 * config/xtensa/linux.mh: Likewise.
12141 * config/i386/i386gnu.mn: New file, with excerpts from
12142 "config/i386/i386gnu.mh".
12143 * configure: Regenerate.
12144 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12145 *.mh files under "gdb/config".
12146 * configure.nat: New file, with contents from the
12147 "gdb/config/*/*.mh" files.
12149 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12151 * btrace.c (btrace_clear): Free insn vector.
12153 2017-05-05 Pedro Alves <palves@redhat.com>
12155 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12156 * configure: Regenerate.
12158 2017-05-04 Pedro Alves <palves@redhat.com>
12160 * Makefile.in (SFILES): Add progspace-and-thread.c.
12161 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12162 (COMMON_OBS): Add progspace-and-thread.o.
12163 * breakpoint.c: Include "progspace-and-thread.h".
12164 (update_inserted_breakpoint_locations)
12165 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12166 Use scoped_restore_current_pspace_and_thread.
12167 (create_std_terminate_master_breakpoint): Use
12168 scoped_restore_current_program_space.
12169 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12170 (print_breakpoint_location): Use
12171 scoped_restore_current_program_space.
12172 (bp_loc_is_permanent): Use
12173 scoped_restore_current_pspace_and_thread.
12174 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12175 (download_tracepoint_locations): Use
12176 scoped_restore_current_pspace_and_thread.
12177 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12178 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12179 (enum step_over_calls_kind): Moved from inferior.h.
12180 (class scoped_restore_current_thread): New class.
12181 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12183 (scoped_restore_current_thread): New class.
12184 * infcmd.c: Include "common/gdb_optional.h".
12185 (continue_1, proceed_after_attach): Use
12186 scoped_restore_current_thread.
12187 (notice_new_inferior): Use scoped_restore_current_thread.
12188 * inferior.c: Include "progspace-and-thread.h".
12189 (restore_inferior, save_current_inferior): Delete.
12190 (add_inferior_command, clone_inferior_command): Use
12191 scoped_restore_current_pspace_and_thread.
12192 * inferior.h (scoped_restore_current_inferior): New class.
12193 * infrun.c: Include "progspace-and-thread.h" and
12194 "common/gdb_optional.h".
12195 (follow_fork_inferior): Use
12196 scoped_restore_current_pspace_and_thread.
12197 (scoped_restore_exited_inferior): New class.
12198 (handle_vfork_child_exec_or_exit): Use
12199 scoped_restore_exited_inferior,
12200 scoped_restore_current_pspace_and_thread,
12201 scoped_restore_current_thread and scoped_restore.
12202 (fetch_inferior_event): Use scoped_restore_current_thread.
12203 * linespec.c (decode_line_full, decode_line_1): Use
12204 scoped_restore_current_program_space.
12205 * mi/mi-main.c: Include "progspace-and-thread.h".
12206 (exec_continue): Use scoped_restore_current_thread.
12207 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12208 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12209 * proc-service.c (ps_pglobal_lookup): Use
12210 scoped_restore_current_program_space.
12211 * progspace-and-thread.c: New file.
12212 * progspace-and-thread.h: New file.
12213 * progspace.c (release_program_space, clone_program_space): Use
12214 scoped_restore_current_program_space.
12215 (restore_program_space, save_current_program_space)
12216 (save_current_space_and_thread): Delete.
12217 (switch_to_program_space_and_thread): Moved to
12218 progspace-and-thread.c.
12219 * progspace.h (save_current_program_space)
12220 (save_current_space_and_thread): Delete declarations.
12221 (scoped_restore_current_program_space): New class.
12222 * remote.c (remote_btrace_maybe_reopen): Use
12223 scoped_restore_current_thread.
12224 * symtab.c: Include "progspace-and-thread.h".
12225 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12226 * thread.c (print_thread_info_1): Use
12227 scoped_restore_current_thread.
12228 (struct current_thread_cleanup): Delete.
12229 (do_restore_current_thread_cleanup)
12230 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12231 (scoped_restore_current_thread::~scoped_restore_current_thread):
12233 (make_cleanup_restore_current_thread): Rename/convert to ...
12234 (scoped_restore_current_thread::scoped_restore_current_thread):
12236 (thread_apply_all_command): Use scoped_restore_current_thread.
12237 (thread_apply_command): Use scoped_restore_current_thread.
12238 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12239 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12241 2017-05-04 Pedro Alves <palves@redhat.com>
12243 * thread.c (make_cleanup_restore_current_thread): Move
12244 find_thread_ptid call before the is_stopped call. Assert that the
12245 thread is found. Replace is_stopped call by checking the thread's
12246 state directly. Remove unnecessary NULL-thread check.
12248 2017-05-04 Pedro Alves <palves@redhat.com>
12250 * corelow.c (thread_section_name): New class.
12251 (get_core_register_section, get_core_siginfo): Use it.
12253 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12255 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12256 (get_core_register_section): Remove xfree of NULL pointer.
12258 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12260 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12261 * regcache.c (regcache::raw_supply_zeroed): New function.
12262 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12264 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12266 * gdbarch.sh: Remove commented out definition of
12268 * gdbarch.h: Re-generate.
12270 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12272 * configure: Regenerate.
12274 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12276 * solib-target.c (solib_target_relocate_section_addresses):
12277 Remove num_section_bases, num_bases, segment_bases variables.
12279 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12281 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12283 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12285 * solib-target.c: Include <vector>
12286 (struct lm_info_target) <~lm_info_target>: Remove.
12287 <segment_bases, section_bases>: Change type to
12288 std::vector<CORE_ADDR>.
12289 (library_list_start_segment, library_list_start_section,
12290 library_list_end_library,
12291 solib_target_relocate_section_addresses): Adjust.
12293 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12295 * gdbarch.sh (software_single_step): Change return type to
12296 std::vector<CORE_ADDR>.
12297 * gdbarch.c, gdbarch.h: Re-generate.
12298 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12300 (arm_deal_with_atomic_sequence_raw): Adjust.
12301 (thumb_get_next_pcs_raw): Adjust.
12302 (arm_get_next_pcs_raw): Adjust.
12303 (arm_get_next_pcs): Adjust.
12304 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12305 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12306 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12307 (alpha_software_single_step): Adjust.
12308 * alpha-tdep.h (alpha_software_single_step): Adjust.
12309 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12310 * arm-tdep.c (arm_software_single_step): Adjust.
12311 (arm_breakpoint_kind_from_current_state): Adjust.
12312 * arm-tdep.h (arm_software_single_step): Adjust.
12313 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12314 * cris-tdep.c (cris_software_single_step): Adjust.
12315 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12316 (micromips_deal_with_atomic_sequence): Adjust.
12317 (deal_with_atomic_sequence): Adjust.
12318 (mips_software_single_step): Adjust.
12319 * mips-tdep.h (mips_software_single_step): Adjust.
12320 * moxie-tdep.c (moxie_software_single_step): Adjust.
12321 * nios2-tdep.c (nios2_software_single_step): Adjust.
12322 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12323 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12324 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12325 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12326 * sparc-tdep.c (sparc_software_single_step): Adjust.
12327 * spu-tdep.c (spu_software_single_step): Adjust.
12328 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12330 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12332 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12333 * gdbarch.h: Re-generate.
12335 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12337 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12338 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12339 * python/py-instruction.c, python/py-instruction.h: New file.
12340 * python/py-record.c: Add py-instruction.h include.
12341 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12342 gdb.RecordInstruction.
12343 * python/python-internal.h: Add gdbpy_initialize_instruction
12345 * python/python.c (do_start_initialization): Add
12346 gdbpy_initialize_instruction.
12348 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12350 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12352 (btrace_func_from_recpy_func): New function.
12353 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12354 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12355 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12356 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12357 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12358 Also, use new helper functions.
12359 (btpy_list_item): Use new helper functions.
12360 (recpy_bt_function_call_history): Use new type name.
12361 (btpy_call_getset): Remove.
12362 (gdbpy_initialize_btrace): Remove code to initialize
12363 gdb.BtraceFunctionCall.
12364 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12365 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12366 recpy_bt_func_prev, recpy_bt_func_next): New export.
12367 * python/py-record.c (recpy_func_type): New static object.
12368 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12369 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12370 recpy_func_next): New function.
12371 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12372 (recpy_func_getset): New static object.
12373 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12374 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12376 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12378 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12379 (btpy_object, btpy_insn_type, btpy_new): Remove.
12380 (btpy_list_object): Use gdb.RecordInstruction type instead of
12381 gdb.BtraceInstruction type.
12382 (btrace_insn_from_recpy_insn): New function.
12383 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12385 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12386 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12387 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12388 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12389 instead of btpy_object.
12390 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12391 btpy_insn_data, btpy_insn_decode): Rename to ...
12392 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12393 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12394 recpy_bt_insn_decode): This. Also, use new helper functions.
12395 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12397 (btpy_insn_getset): Remove.
12398 (gdbpy_initialize_btrace): Remove code to initialize
12399 gdb.BtraceInstruction. Use recpy_element_object.
12400 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12401 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12402 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12403 * python/py-record.c (recpy_insn_type): New static object.
12404 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12405 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12406 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12408 (recpy_insn_getset): New static object.
12409 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12410 * python/py-record.h (recpy_element_object): New typedef.
12411 (recpy_insn_type, recpy_insn_new): New export.
12413 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12415 * py-record-btrace.c (btpy_insn_new): Removed.
12416 (btpy_insn_or_gap_new): New function.
12417 (btpy_insn_error): Removed.
12418 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12419 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12420 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12421 btpy_insn_or_gap_new instead of btpy_insn_new.
12422 (btpy_insn_getset): Remove btpy_insn_error.
12423 * py-record.c (recpy_gap_type): New static object.
12424 (recpy_gap_object): New typedef.
12425 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12426 recpy_gap_reason_string): New function.
12427 (recpy_gap_getset): New static object.
12428 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12429 * py-record.h (recpy_gap_new): New export.
12431 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12433 * python/py-record.c (recpy_ptid): Remove.
12434 (recpy_record_getset): Remove recpy_ptid.
12436 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12438 * btrace.c (btrace_fetch): Set inferior_ptid.
12439 * python/py-record-btrace.c: Add "py-record.h" include.
12440 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12441 recpy_bt_end, recpy_bt_instruction_history,
12442 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12443 in gdb.Record object instead of current ptid.
12444 * python/py-record.c: Include new "py-record.h" file.
12445 (recpy_record_object): Moved to py-record.h.
12446 * python/py-record.h: New file.
12448 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12450 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
12451 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
12454 2017-05-01 Joel Brobecker <brobecker@adacore.com>
12456 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
12457 the past maintainers section.
12459 2017-04-28 Yao Qi <yao.qi@linaro.org>
12461 * infcmd.c (get_return_value): Use regcache ctor, and remove
12464 2017-04-28 Yao Qi <yao.qi@linaro.org>
12465 Pedro Alves <palves@redhat.com>
12467 * regcache.c (regcache::regcache): New tag dispatch ctor.
12468 (do_cooked_read): Moved above.
12469 (regcache_dup): Use the tag dispatch ctor..
12470 * regcache.h (regcache): Declare ctor, delete copy ctor and
12471 assignment operator, remove friend regcache_dup.
12473 2017-04-28 Yao Qi <yao.qi@linaro.org>
12475 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
12476 call method save instead of regcache_cpy.
12477 * regcache.h (struct regcache): Make regcache_dup a friend.
12479 2017-04-28 Yao Qi <yao.qi@linaro.org>
12481 * regcache.c (struct regcache): Move to regcache.h
12482 (regcache::arch): New method.
12483 (regcache_get_ptid): Update.
12484 (get_regcache_arch): Call arch method.
12485 (get_regcache_aspace): Call method aspace.
12486 (register_buffer): Change it to method.
12487 (regcache_save): Change it to regcache::save.
12488 (regcache_restore): Likewise.
12489 (regcache_cpy_no_passthrough): Remove the declaration.
12490 (regcache_cpy): Call methods restore and cpy_no_passthrough.
12491 (regcache_cpy_no_passthrough): Change it to method
12492 cpy_no_passthrough.
12493 (regcache_register_status): Change it to method
12494 get_register_status.
12495 (regcache_invalidate): Change it to method invalidate.
12496 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
12497 (regcache_raw_update): Change it to method raw_update.
12498 (regcache_raw_read): Likewise.
12499 (regcache_raw_read_signed): Likewise.
12500 (regcache_raw_read_unsigned): Likewise.
12501 (regcache_raw_write_signed): Likewise.
12502 (regcache_raw_write_unsigned): Likewise.
12503 (regcache_cooked_read): Likewise.
12504 (regcache_cooked_read_value): Likewise.
12505 (regcache_cooked_read_signed): Likewise.
12506 (regcache_cooked_read_unsigned): Likewise.
12507 (regcache_cooked_write_signed): Likewise.
12508 (regcache_cooked_write_unsigned): Likewise.
12509 (regcache_raw_set_cached_value): Likewise.
12510 (regcache_raw_write): Likewise.
12511 (regcache_cooked_write): Likewise.
12512 (regcache_xfer_part): Likewise.
12513 (regcache_raw_read_part): Likewise.
12514 (regcache_raw_write_part): Likewise.
12515 (regcache_cooked_read_part): Likewise.
12516 (regcache_cooked_write_part): Likewise.
12517 (regcache_raw_supply): Likewise.
12518 (regcache_raw_collect): Likewise.
12519 (regcache_transfer_regset): Likewise.
12520 (regcache_supply_regset): Likewise.
12521 (regcache_collect_regset): Likewise.
12522 (regcache_debug_print_register): Likewise.
12523 (enum regcache_dump_what): Move it to regcache.h.
12524 (regcache_dump): Change it to method dump.
12525 * regcache.h (enum regcache_dump_what): New.
12526 (class regcache): New.
12527 * target.c (target_fetch_registers): Call method
12528 debug_print_register.
12529 (target_store_registers): Likewise.
12531 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12533 * windows-nat.c (struct lm_info_windows): Initialize field.
12534 (windows_make_so): Allocate lm_info_windows with new.
12535 (windows_free_so): Free lm_info_windows with delete.
12537 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12539 * solib-darwin.c (struct lm_info_darwin): Initialize field.
12540 (darwin_current_sos): Allocate lm_info_darwin with new, remove
12542 (darwin_free_so): Free lm_info_darwin with delete.
12544 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12546 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
12547 <l_addr_p>: Change type to bool.
12548 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
12549 (svr4_free_so): Free lm_info_svr4 with delete.
12550 (svr4_copy_library_list): Replace memcpy with call to copy
12552 (library_list_start_library, svr4_default_sos): Allocate
12553 lm_info_svr4 with new.
12555 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12557 * solib-target.c (struct lm_info_target): Add destructor,
12559 <name>: Change type to std::string.
12560 (library_list_start_library): Allocate lm_info_target with new.
12561 (solib_target_free_library_list): Free lm_info_target with
12563 (solib_target_current_sos): Adapt to std::string.
12564 (solib_target_free_so): Free lm_info_target with delete.
12566 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12568 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12570 (frv_current_sos): Allocate lm_info_frv with new.
12571 (frv_relocate_main_executable): Free lm_info_frv with delete,
12573 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12575 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12577 * solib-frv.c (struct lm_info_frv): Fix indentation.
12579 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12581 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12583 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12584 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12585 and allocate with new.
12586 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12588 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12590 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12591 <filename, member_name>: Change type to std::string.
12592 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12593 (library_list_start_library): Allocate lm_info_aix with new.
12594 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12595 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12596 with copy constructor.
12598 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12600 * solist.h (struct lm_info): Remove.
12601 (struct lm_info_base): New class.
12602 (struct so_list) <lm_info>: Change type to lm_info_base *.
12603 * nto-tdep.c (struct lm_info): Remove.
12605 * solib-aix.c (struct lm_info): Rename to ...
12606 (struct lm_info_aix): ... this. Extend lm_info_base.
12607 (lm_info_p): Rename to ...
12608 (lm_info_aix_p): ... this, and adjust.
12609 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
12610 solib_aix_parse_libraries, library_list_start_library,
12611 solib_aix_free_library_list, solib_aix_parse_libraries,
12612 solib_aix_get_library_list,
12613 solib_aix_relocate_section_addresses, solib_aix_free_so,
12614 solib_aix_get_section_offsets,
12615 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
12617 (struct solib_aix_inferior_data) <library_list>: Adjust.
12618 * solib-darwin.c (struct lm_info): Rename to ...
12619 (struct lm_info_darwin): ... this. Extend lm_info_base.
12620 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
12621 * solib-dsbt.c (struct lm_info): Rename to ...
12622 (struct lm_info_dsbt): ... this. Extend lm_info_base.
12623 (struct dsbt_info) <main_executable_lm_info): Adjust.
12624 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
12625 dsbt_relocate_section_addresses): Adjust.
12626 * solib-frv.c (struct lm_info): Rename to ...
12627 (struct lm_info_frv): ... this. Extend lm_info_base.
12628 (main_executable_lm_info): Adjust.
12629 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
12630 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
12631 find_canonical_descriptor_in_load_object,
12632 frv_fdpic_find_canonical_descriptor): Adjust.
12633 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12635 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12636 svr4_clear_so, svr4_copy_library_list,
12637 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12638 svr4_current_sos, svr4_fetch_objfile_link_map,
12639 solist_update_incremental): Adjust.
12640 * solib-svr4.h (struct lm_info_svr4): Move here from
12642 * solib-target.c (struct lm_info): Rename to ...
12643 (struct lm_info_target): ... this. Extend lm_info_base.
12644 (lm_info_p): Rename to ...
12645 (lm_info_target_p): ... this.
12646 (solib_target_parse_libraries, library_list_start_segment,
12647 library_list_start_section, library_list_start_library,
12648 library_list_end_library, solib_target_free_library_list,
12649 solib_target_current_sos, solib_target_free_so,
12650 solib_target_relocate_section_addresses): Adjust.
12651 * windows-nat.c (struct lm_info): Rename to ...
12652 (struct lm_info_windows): ... this. Extend lm_info_base.
12653 (windows_make_so, handle_load_dll, handle_unload_dll,
12654 windows_xfer_shared_libraries): Adjust.
12656 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12658 * solib-darwin.c (struct darwin_so_list): Remove.
12659 (darwin_current_sos): Allocate an so_list object instead of a
12660 darwin_so_list, separately allocate an lm_info object.
12661 (darwin_free_so): Free lm_info.
12663 2017-04-28 John Baldwin <jhb@FreeBSD.org>
12665 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
12666 with fprintf_filtered.
12668 2017-04-28 Yao Qi <yao.qi@linaro.org>
12670 * regcache.c (regcache::regcache): New function.
12671 (regcache::~regcache): New function.
12672 (regcache_xmalloc_1): Remove.
12673 (regcache_xmalloc): Call new regcache.
12674 (regcache_xfree): Call delete regcache.
12675 (get_thread_arch_aspace_regcache): Call new regcache.
12677 2017-04-28 Yao Qi <yao.qi@linaro.org>
12679 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
12680 lwp instead of ptid_get_lwp.
12682 2017-04-28 Yao Qi <yao.qi@linaro.org>
12684 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
12685 lwp_info instead of getting from inferior_ptid.
12687 2017-04-27 Keith Seitz <keiths@redhat.com>
12689 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
12690 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
12691 (CV_CONVERSION_BADNESS): Define.
12692 (rank_one_type): Remove overly restrictive rvalue reference
12694 Add cv-qualifier checks and subranks for type equality.
12695 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
12696 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
12697 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
12699 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
12701 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
12702 count when creating the object.
12704 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
12705 Ulrich Weigand <uweigand@de.ibm.com>
12707 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
12708 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
12710 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
12711 (process_xcoff_symbol): Likewise.
12712 (scan_xcoff_symtab): Likewise.
12714 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12716 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
12717 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
12718 (ia64_access_reg): Use get_frame_register_unsigned.
12719 (ia64_access_rse_reg): Likewise.
12720 (ia64_libunwind_frame_prev_register): Likewise.
12722 2017-04-26 Jiong Wang <jiong.wang@arm.com>
12724 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
12725 * gdbarch.c: Regenerated.
12726 * gdbarch.h: Regenerated.
12727 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
12728 visibility external.
12729 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
12730 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
12731 (enum cfa_how_kind): Move to ...
12732 (struct dwarf2_frame_state_reg_info): Likewise.
12733 (struct dwarf2_frame_state): Likewise.
12734 * dwarf2-frame.h: ... here.
12735 (dwarf2_frame_state_alloc_regs): New declaration.
12736 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
12737 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
12739 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12741 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
12742 regcache_raw_read_unsigned.
12743 (xtensa_pseudo_register_write): Likewise.
12745 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12747 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
12748 (nds32_pseudo_register_write): Likewise.
12750 2017-04-25 Yao Qi <yao.qi@linaro.org>
12752 * regcache.c (struct regcache) <readonly_p>: Change its type
12754 (regcache_xmalloc_1): Update parameter type and callers update.
12756 2017-04-25 Yao Qi <yao.qi@linaro.org>
12758 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
12759 set_gdbarch_wchar_bit.
12760 * arm-tdep.c (arm_gdbarch_init): Likewise.
12762 2017-04-25 Pedro Alves <palves@redhat.com>
12764 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
12765 (BothAreRelocatable, memcopy, memmove): Don't define.
12766 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
12769 2017-04-25 Pedro Alves <palves@redhat.com>
12771 * common/common-defs.h: Include "common/poison.h".
12772 * common/function-view.h: (Not, Or, Requires): Move to traits.h
12774 * common/poison.h: New file.
12775 * common/traits.h: Include <type_traits>.
12776 (Not, Or, Requires): New, moved from common/function-view.h.
12778 2017-04-25 Pedro Alves <palves@redhat.com>
12780 * breakpoint.h (struct breakpoint): In-class initialize all
12781 fields. Make boolean fields "bool".
12782 * breakpoint.c (init_raw_breakpoint_without_location): Remove
12783 memset call and initializations no longer necessary.
12785 2017-04-25 Pedro Alves <palves@redhat.com>
12787 * btrace.c (pt_btrace_insn_flags): Change parameter type to
12789 (pt_btrace_insn): New function.
12790 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
12792 2017-04-25 Pedro Alves <palves@redhat.com>
12794 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
12795 "base" field and inherit from "bp_location" instead. Add
12797 (allocate_location_exception): Use new non-default ctor.
12798 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
12799 (init_bp_location): Convert to ...
12800 (bp_location::bp_location): ... this new ctor, and remove memset
12802 (base_breakpoint_allocate_location): Use the new non-default ctor.
12803 * breakpoint.h (bp_location): Now a class. Declare default and
12804 non-default ctors. In-class initialize all members.
12805 (init_bp_location): Remove declaration.
12807 2017-04-25 Pedro Alves <palves@redhat.com>
12809 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
12810 assignment operator.
12812 2017-04-24 Yao Qi <yao.qi@linaro.org>
12814 * doublest.c (convert_doublest_to_floatformat): Call
12815 floatformat_totalsize_bytes.
12817 2017-04-22 Tom Tromey <tom@tromey.com>
12819 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
12821 * stack.c (print_frame): Use ui_out_emit_list.
12822 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12824 * mi/mi-main.c (print_one_inferior)
12825 (mi_cmd_data_list_register_names)
12826 (mi_cmd_data_list_register_values, mi_cmd_list_features)
12827 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
12829 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
12830 (mi_output_solib_attribs): Use ui_out_emit_list,
12832 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
12833 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
12834 (mi_cmd_stack_list_args, list_args_or_locals): Use
12836 * disasm.c (do_assembly_only): Use ui_out_emit_list.
12837 * breakpoint.c (print_solib_event, output_thread_groups): Use
12840 2017-04-22 Tom Tromey <tom@tromey.com>
12842 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
12843 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
12844 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
12846 2017-04-22 Tom Tromey <tom@tromey.com>
12848 * tracepoint.c (tvariables_info_1)
12849 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
12851 2017-04-22 Tom Tromey <tom@tromey.com>
12853 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
12854 annotate_arg_emitter.
12855 * breakpoint.c (print_mention_watchpoint)
12856 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
12857 * annotate.h (struct annotate_arg_emitter): New.
12859 2017-04-22 Tom Tromey <tom@tromey.com>
12861 * record-btrace.c (record_btrace_insn_history)
12862 (record_btrace_insn_history_range, record_btrace_call_history)
12863 (record_btrace_call_history_range): Use ui_out_emit_tuple.
12864 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
12866 * stack.c (print_frame_info): Use ui_out_emit_tuple.
12867 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
12868 * skip.c (skip_info): Use ui_out_emit_tuple.
12869 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
12870 * progspace.c (print_program_space): Use ui_out_emit_tuple.
12871 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
12872 * osdata.c (info_osdata): Use ui_out_emit_tuple.
12873 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12875 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
12876 (output_register, mi_cmd_data_read_memory)
12877 (mi_cmd_data_read_memory_bytes, mi_load_progress)
12878 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
12879 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
12880 Use ui_out_emit_tuple.
12881 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
12883 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12884 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
12885 * linux-thread-db.c (info_auto_load_libthread_db): Use
12887 * inferior.c (print_inferior): Use ui_out_emit_tuple.
12888 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
12889 * disasm.c (do_mixed_source_and_assembly_deprecated)
12890 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
12891 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
12892 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
12893 * breakpoint.c (print_one_breakpoint_location)
12894 (print_one_breakpoint): Use ui_out_emit_tuple.
12895 * auto-load.c (print_script, info_auto_load_cmd): Use
12897 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
12899 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
12901 * thread.c (print_thread_info_1): Remove dead code.
12903 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12905 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
12907 * arm-tdep.c (selftests::arm_record_test): Likewise.
12909 2017-04-21 Yao Qi <yao.qi@linaro.org>
12911 * regcache.c (regcache_restore): Remove argument 2. Replace
12912 argument 3 with regcache. Get register status from
12913 src->register_status and get register contents from
12914 register_buffer (src, regnum).
12915 (regcache_cpy): Update.
12917 2017-04-19 Pedro Alves <palves@redhat.com>
12919 * gdbthread.h (thread): Add missing closing parenthesis in
12922 2017-04-19 Pedro Alves <palves@redhat.com>
12924 * common/refcounted-object.h: New file.
12925 * gdbthread.h: Include "common/refcounted-object.h".
12926 (thread_info): Inherit from refcounted_object and add comments.
12927 (thread_info::incref, thread_info::decref)
12928 (thread_info::m_refcount): Delete.
12929 (thread_info::deletable): Use the refcounted_object::refcount()
12931 * inferior.c (current_inferior_): Add comment.
12932 (set_current_inferior): Increment/decrement refcounts.
12933 (prune_inferiors, remove_inferior_command): Skip inferiors marked
12934 not-deletable instead of comparing with the current inferior.
12935 (initialize_inferiors): Increment the initial inferior's refcount.
12936 * inferior.h (struct inferior): Forward declare.
12937 Include "common/refcounted-object.h".
12938 (current_inferior, set_current_inferior): Move declaration to
12939 before struct inferior's definition, and fix comment.
12940 (inferior): Inherit from refcounted_object. Add comments.
12941 * thread.c (switch_to_thread_no_regs): Reference the thread's
12942 inferior pointer directly instead of doing a ptid lookup.
12943 (switch_to_no_thread): New function.
12944 (switch_to_thread(thread_info *)): New function, factored out
12946 (switch_to_thread(ptid_t)): ... this.
12947 (restore_current_thread): Delete.
12948 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
12949 fields, and add 'inf' field.
12950 (do_restore_current_thread_cleanup): Check whether old->inf is
12951 alive instead of looking up an inferior by ptid. Use
12952 switch_to_thread and switch_to_no_thread.
12953 (restore_current_thread_cleanup_dtor): Use old->inf directly
12954 instead of lookup up an inferior by id. Decref the inferior.
12955 Don't restore 'removable'.
12956 (make_cleanup_restore_current_thread): Same the inferior pointer
12957 in old, instead of the inferior number. Incref the inferior.
12958 Don't save/clear 'removable'.
12960 2017-04-19 Pedro Alves <palves@redhat.com>
12962 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12963 unittests/scoped_restore-selftests.c.
12964 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
12965 * common/scoped_restore.h (scoped_restore_base): Make "class".
12966 (scoped_restore_base::release): New public method.
12967 (scoped_restore_base::scoped_restore_base): New protected ctor.
12968 (scoped_restore_base::m_saved_var): New protected field.
12969 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
12970 scoped_restore_base base class instead of m_saved_var directly.
12971 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
12972 (scoped_restore_tmpl::scoped_restore_tmpl(const
12973 scoped_restore_tmpl<T>&)): Likewise.
12974 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
12976 (scoped_restore_tmpl::saved_var): New method.
12977 (scoped_restore_tmpl::m_saved_var): Delete.
12978 * inferior.h (inferior::detaching): Now a bool.
12979 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
12981 * unittests/scoped_restore-selftests.c: New file.
12983 2017-04-19 Pedro Alves <palves@redhat.com>
12985 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
12986 Re-sort in alphabetic order.
12988 2017-04-18 Pedro Alves <palves@redhat.com>
12990 * xml-support.c (obstack_xml_printf): Delete.
12991 * xml-support.h (obstack_xml_printf): Delete.
12993 2017-04-18 Pedro Alves <palves@redhat.com>
12995 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
12996 vdebug, verror, body_text, start_element, end_element, name,
12997 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
12998 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
12999 is_xinclude>: Make private and add m_ prefix.
13000 (gdb_xml_parser::body_text): New method, based on ...
13001 (gdb_xml_body_text): ... this. Adjust.
13002 (gdb_xml_parser::vdebug): New method, based on ...
13003 (gdb_xml_debug): ... this. Adjust.
13004 (gdb_xml_parser::verror): New method, based on ...
13005 (gdb_xml_error): ... this. Adjust.
13006 (gdb_xml_parser::start_element): New method, based on ...
13007 (gdb_xml_start_element): ... this. Adjust.
13008 (gdb_xml_start_element_wrapper): Defer to
13009 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13010 (gdb_xml_parser::end_element): New method, based on ...
13011 (gdb_xml_end_element_wrapper): ... this. Adjust.
13012 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13013 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13014 (gdb_xml_parser::use_dtd): New method, based on ...
13015 (gdb_xml_use_dtd): ... this. Adjust.
13016 (gdb_xml_parser::parse): New method, based on ...
13017 (gdb_xml_parse): ... this. Adjust.
13018 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13019 (xinclude_start_include): Adjust to call the parser's name method.
13020 (xml_xinclude_default, xml_xinclude_start_doctype)
13021 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13023 (xml_process_xincludes): Adjust to call parser methods.
13024 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13027 2017-04-18 Pedro Alves <palves@redhat.com>
13029 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13030 gdb::optional<std::string>.
13031 * xml-support.c: Include <string>.
13032 (scope_level::scope_level(scope_level &&))
13033 (scope_level::~scope_level): Delete.
13034 (scope_level::body): Now a std::string.
13035 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13036 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13038 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13039 (xinclude_parsing_data::output): Now a std::string reference.
13040 (xinclude_start_include): Adjust.
13041 (xml_xinclude_default): Adjust.
13042 (xml_process_xincludes): Add 'output' parameter, and return bool.
13043 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13045 * xml-tdesc.c: Include <unordered_map> and <string>.
13046 (tdesc_xml_cache): Delete.
13047 (tdesc_xml_cache_s): Delete.
13048 (xml_cache): Now an std::unordered_map.
13049 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13050 (target_fetch_description_xml): Change return type to
13051 gdb::optional<std::string>, and adjust.
13052 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13053 (target_fetch_description_xml): Change return type to
13054 gdb::optional<std::string>.
13056 2017-04-18 Pedro Alves <palves@redhat.com>
13058 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13059 unittests/optional-selftests.c.
13060 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13061 * unittests/optional-selftests.c: New file.
13062 * unittests/optional/assignment/1.cc: New file.
13063 * unittests/optional/assignment/2.cc: New file.
13064 * unittests/optional/assignment/3.cc: New file.
13065 * unittests/optional/assignment/4.cc: New file.
13066 * unittests/optional/assignment/5.cc: New file.
13067 * unittests/optional/assignment/6.cc: New file.
13068 * unittests/optional/assignment/7.cc: New file.
13069 * unittests/optional/cons/copy.cc: New file.
13070 * unittests/optional/cons/default.cc: New file.
13071 * unittests/optional/cons/move.cc: New file.
13072 * unittests/optional/cons/value.cc: New file.
13073 * unittests/optional/in_place.cc: New file.
13074 * unittests/optional/observers/1.cc: New file.
13075 * unittests/optional/observers/2.cc: New file.
13077 2017-04-18 Pedro Alves <palves@redhat.com>
13079 * common/gdb_optional.h: Include common/traits.h.
13080 (in_place_t): New type.
13081 (in_place): New constexpr variable.
13082 (optional::optional): Remove member initialization of
13084 (optional::optional(in_place_t...)): New constructor.
13085 (optional::~optional): Use reset.
13086 (optional::optional(const optional&)): New.
13087 (optional::optional(const optional&&)): New.
13088 (optional::optional(T &)): New.
13089 (optional::optional(T &&)): New.
13090 (operator::operator=(const optional &)): New.
13091 (operator::operator=(optional &&)): New.
13092 (operator::operator= (const T &))
13093 (operator::operator= (T &&))
13094 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13095 (operator::reset): New.
13096 (operator::m_instantiated):: Add in-class initializer.
13097 * common/traits.h: Include <type_traits>.
13098 (struct And): New types.
13100 2017-04-18 Pedro Alves <palves@redhat.com>
13102 * xml-support.c: Include <vector>.
13103 (scope_level::scope_level(const gdb_xml_element *))
13104 (scope_level::scope_level(scope_level&&)): New.
13105 (scope_level::~scope_level): New.
13106 (scope_level_s): Delete.
13107 (gdb_xml_parser::scopes): Now a std::vector.
13108 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13110 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13111 scope cleanup code.
13112 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13113 of the scopes member. Use std::vector::emplace_back.
13115 2017-04-18 Pedro Alves <palves@redhat.com>
13117 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13119 (gdb_xml_end_element): Change type of first parameter.
13120 (gdb_xml_cleanup): Rename to ...
13121 (gdb_xml_parser::~gdb_xml_parser): ... this.
13122 (gdb_xml_create_parser_and_cleanup): Delete with ...
13123 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13125 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13126 using gdb_xml_create_parser_and_cleanup.
13127 (xinclude_parsing_data): Add ctor/dtor.
13128 (xml_xinclude_cleanup): Delete.
13129 (xml_process_xincludes): Create a local xinclude_parsing_data
13130 instead of heap-allocating one. Create a local gdb_xml_parser
13131 instead of heap-allocating one with
13132 gdb_xml_create_parser_and_cleanup.
13134 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13137 * fbsd-nat.c (resume_one_thread_cb): Remove.
13138 (resume_all_threads_cb): Remove.
13139 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13140 iterate_over_threads.
13142 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13144 * NEWS: Create a new section for the next release branch.
13145 Rename the section of the current branch, now that it has
13148 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13150 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13151 * version.in: Bump version to 8.0.50.DATE-git.
13153 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13156 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13157 independently of the host, and fix build breakage on Cygwin.
13159 2017-04-13 Pedro Alves <palves@redhat.com>
13161 * inferior.c (free_inferior): Convert to ...
13162 (inferior::~inferior): ... this dtor.
13163 (inferior::inferior): New ctor, factored out from ...
13164 (add_inferior_silent): ... here. Allocate the inferior with a new
13166 (delete_inferior): Call delete instead of free_inferior.
13167 * inferior.h (gdb_environ, continuation): Forward declare.
13168 (inferior): Now a class. Add in-class initialization to all
13169 members. Make boolean fields bool, except 'detaching'.
13170 (inferior::inferior): New explicit ctor.
13171 (inferior::~inferior): New.
13173 2017-04-13 Pedro Alves <palves@redhat.com>
13175 * inferior.c (init_inferior_list): Delete.
13176 * inferior.h (init_inferior_list): Delete.
13178 2017-04-13 Pedro Alves <palves@redhat.com>
13181 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13182 (top level): Call it twice, with different thread sets.
13184 2017-04-13 Pedro Alves <palves@redhat.com>
13186 * thread.c: Include <algorithm>.
13187 (thread_array_cleanup): Delete.
13188 (scoped_inc_dec_ref): New class.
13189 (live_threads_count): New function.
13190 (set_thread_refcount): Delete.
13191 (tp_array_compar_ascending): Now a bool.
13192 (tp_array_compar): Convert to a std::sort comparison function.
13193 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13194 and live_threads_count.
13196 2017-04-13 Pedro Alves <palves@redhat.com>
13198 * infrun.c (follow_fork_inferior): Also switch the current
13201 2017-04-13 Pedro Alves <palves@redhat.com>
13203 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13204 before calling create_internal_breakpoint.
13206 2017-04-13 Pedro Alves <palves@redhat.com>
13208 * fork-child.c (execv_argv): New class.
13209 (breakup_args): Refactored as ...
13210 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13211 Copy arguments to storage and replace separators with NULL
13212 terminators in place.
13213 (escape_bang_in_quoted_argument): Adjust to return bool.
13214 (execv_argv::execv_argv): New ctor.
13215 (execv_argv::init_for_shell): New method, factored out from
13216 fork_inferior. Don't strdup strings into the vector.
13217 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13218 Remove free_vector_argv call.
13220 2017-04-13 Yao Qi <yao.qi@linaro.org>
13222 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13225 2017-04-13 Yao Qi <yao.qi@linaro.org>
13227 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13228 * rx-tdep.c (rx_gdbarch_init): Likewise.
13230 2017-04-13 Pedro Alves <palves@redhat.com>
13232 * breakpoint.h (struct breakpoint): Reindent.
13234 2017-04-13 Pedro Alves <palves@redhat.com>
13236 * breakpoint.c (bp_location): Rename to ...
13237 (bp_locations): ... this. All references updated.
13238 (bp_location_count): Rename to ...
13239 (bp_locations_count): ... this. All references updated.
13240 (bp_location_placed_address_before_address_max): Rename to ...
13241 (bp_locations_placed_address_before_address_max): ... this. All
13242 references updated.
13243 (bp_location_shadow_len_after_address_max): Rename to ...
13244 (bp_locations_shadow_len_after_address_max): ... this. All
13245 references updated.
13246 (bp_location_compare_addrs): Rename to ...
13247 (bp_locations_compare_addrs): ... this. All references updated.
13248 (bp_location_compare):Rename to ...
13249 (bp_locations_compare): ... this. All references updated.
13250 (bp_location_target_extensions_update): Rename to ...
13251 (bp_locations_target_extensions_update): ... this. All references
13254 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13256 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13257 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13259 * common/gdb_termios.h: New file, with parts of "terminal.h".
13260 * inflow.c: Include "gdb_termios.h".
13261 * ser-unix.c: Include "gdb_termios.h".
13262 * terminal.h: Move terminal-related defines to
13263 "common/gdb_termios.h".
13265 2017-04-12 Tom Tromey <tom@tromey.com>
13267 * probe.c (parse_probes): Update.
13268 * location.h (delete_event_location): Don't declare.
13269 (event_location_deleter::operator()): Update.
13270 * location.c (event_location_deleter::operator()): Rename from
13271 delete_event_location.
13272 * linespec.h (linespec_result) <location>: Change type to
13274 * linespec.c (canonicalize_linespec, event_location_to_sals)
13275 (decode_objc): Update.
13276 (linespec_result): Don't call delete_event_location.
13277 * breakpoint.c (create_breakpoints_sal)
13278 (bkpt_probe_create_sals_from_location)
13279 (strace_marker_create_sals_from_location): Update.
13281 2017-04-12 Tom Tromey <tom@tromey.com>
13283 * linespec.h (struct linespec_result): Add constructor and
13285 (init_linespec_result, destroy_linespec_result)
13286 (make_cleanup_destroy_linespec_result): Don't declare.
13287 * linespec.c (init_linespec_result): Remove.
13288 (linespec_result::~linespec_result): Rename from
13289 destroy_linespec_result. Update.
13290 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13292 * breakpoint.c (create_breakpoint, break_range_command)
13293 (decode_location_default): Update.
13294 * ax-gdb.c (agent_command_1): Update.
13296 2017-04-12 Tom Tromey <tom@tromey.com>
13298 * remote.c (remote_download_tracepoint): Update.
13299 * python/py-breakpoint.c (bppy_get_location): Update.
13300 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13301 (gdbscm_breakpoint_location): Update.
13302 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13303 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13304 Change type to event_location_up.
13305 * breakpoint.c (create_overlay_event_breakpoint)
13306 (create_longjmp_master_breakpoint)
13307 (create_std_terminate_master_breakpoint)
13308 (create_exception_master_breakpoint)
13309 (breakpoint_event_location_empty_p, print_breakpoint_location)
13310 (print_one_breakpoint_location, create_thread_event_breakpoint)
13311 (init_breakpoint_sal, create_breakpoint)
13312 (print_recreate_ranged_breakpoint, break_range_command)
13313 (init_ada_exception_breakpoint, say_where): Update.
13314 (base_breakpoint_dtor): Don't call delete_event_location.
13315 (bkpt_print_recreate, tracepoint_print_recreate)
13316 (dprintf_print_recreate, update_static_tracepoint)
13317 (breakpoint_re_set_default): Update.
13319 2017-04-12 Tom Tromey <tom@tromey.com>
13321 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13322 type of "to_do". Update.
13323 (compute_stack_depth): Use std::vector.
13325 2017-04-12 Tom Tromey <tom@tromey.com>
13327 * printcmd.c (find_instruction_backward): Use std::vector.
13329 2017-04-12 Tom Tromey <tom@tromey.com>
13331 * symfile.c (objfilep): Remove typedef.
13332 (reread_symbols): Use a std::vector.
13334 2017-04-12 Tom Tromey <tom@tromey.com>
13336 * mi/mi-main.c (exec_direction_forward): Remove.
13337 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13338 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13340 * guile/guile.c (guile_repl_command, guile_command)
13341 (gdbscm_execute_gdb_command): Use scoped_restore.
13342 * go-exp.y (go_parse): Use scoped_restore.
13343 * d-exp.y (d_parse): Use scoped_restore.
13344 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13345 * c-exp.y (c_parse): Use scoped_restore.
13347 2017-04-12 Tom Tromey <tom@tromey.com>
13349 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13350 (mi_parse): Update return type.
13351 (mi_parse_free): Remove.
13352 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13353 (mi_parse::~mi_parse): Rename from mi_parse_free.
13354 (mi_parse_cleanup): Remove.
13355 (mi_parse): Return a unique_ptr. Use new.
13356 * mi/mi-main.c (mi_execute_command): Update.
13358 2017-04-12 Tom Tromey <tom@tromey.com>
13360 * location.c (explicit_location_lex_one): Return a
13361 unique_xmalloc_ptr.
13362 (string_to_explicit_location): Update. Remove cleanups.
13364 2017-04-12 Tom Tromey <tom@tromey.com>
13366 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13367 (compare_value_and_voffset): Change type. Update.
13368 (compute_vtable_size): Change type of "offset_vec".
13369 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13370 (gnuv3_get_typeid): Remove extraneous declaration.
13372 2017-04-12 Tom Tromey <tom@tromey.com>
13374 * charset.h (wchar_iterator): Fix comment.
13376 2017-04-12 Tom Tromey <tom@tromey.com>
13378 * charset.c (iconv_wrapper): New class.
13379 (cleanup_iconv): Remove.
13380 (convert_between_encodings): Use it.
13382 2017-04-12 Tom Tromey <tom@tromey.com>
13384 * symfile.h (increment_reading_symtab): Update type.
13385 * symfile.c (decrement_reading_symtab): Remove.
13386 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13387 * psymtab.c (psymtab_to_symtab): Update.
13388 * dwarf2read.c (dw2_instantiate_symtab): Update.
13390 2017-04-12 Tom Tromey <tom@tromey.com>
13392 * jit.c (struct jit_reader): Declare separately. Add constructor
13393 and destructor. Change type of "handle".
13394 (loaded_jit_reader): Define separately.
13395 (jit_reader_load): Update. New "new".
13396 (jit_reader_unload_command): Use "delete".
13397 * gdb-dlfcn.h (struct dlclose_deleter): New.
13398 (gdb_dlhandle_up): New typedef.
13399 (gdb_dlopen, gdb_dlsym): Update types.
13400 (gdb_dlclose): Remove.
13401 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13402 (gdb_dlsym): Change type of "handle".
13403 (make_cleanup_dlclose): Remove.
13404 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13405 * compile/compile-c-support.c (load_libcc): Update.
13407 2017-04-12 Tom Tromey <tom@tromey.com>
13409 * symtab.h (find_pcs_for_symtab_line): Change return type.
13410 * symtab.c (find_pcs_for_symtab_line): Change return type.
13411 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13412 type of "vec". Update.
13413 (ltpy_get_pcs_for_line): Update.
13414 * linespec.c (decode_digits_ordinary): Update.
13416 2017-04-12 Tom Tromey <tom@tromey.com>
13418 * tracepoint.c (actions_command): Update.
13419 * python/python.c (python_command, python_interactive_command):
13421 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13422 * guile/guile.c (guile_command): Update.
13423 * defs.h (read_command_lines, read_command_lines_1): Return
13425 (command_lines_deleter): New struct.
13426 (command_line_up): New typedef.
13427 * compile/compile.c (compile_code_command)
13428 (compile_print_command): Update.
13429 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13431 (make_cleanup_free_command_lines): Remove.
13432 * cli/cli-script.c (get_command_line, read_command_lines_1)
13433 (copy_command_lines): Return command_line_up.
13434 (while_command, if_command, read_command_lines, define_command)
13435 (document_command): Update.
13436 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13438 * breakpoint.h (breakpoint_set_commands): Change type of
13440 * breakpoint.c (breakpoint_set_commands): Change type of
13441 "commands". Update.
13442 (do_map_commands_command, update_dprintf_command_list)
13443 (create_tracepoint_from_upload): Update.
13445 2017-04-12 Tom Tromey <tom@tromey.com>
13447 * tracepoint.c (scope_info): Update.
13448 * spu-tdep.c (spu_catch_start): Update.
13449 * python/python.c (gdbpy_decode_line): Update.
13450 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
13451 * python/py-breakpoint.c (bppy_init): Update.
13452 * probe.c (parse_probes): Update.
13453 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
13454 * location.h (event_location_deleter): New struct.
13455 (event_location_up): New typedef.
13456 (new_linespec_location, new_address_location, new_probe_location)
13457 (new_explicit_location, copy_event_location)
13458 (string_to_event_location, string_to_event_location_basic)
13459 (string_to_explicit_location): Update return type.
13460 (make_cleanup_delete_event_location): Remove.
13461 * location.c (new_linespec_location, new_address_location)
13462 (new_probe_location, new_explicit_location, copy_event_location):
13463 Return event_location_up.
13464 (delete_event_location_cleanup)
13465 (make_cleanup_delete_event_location): Remove.
13466 (string_to_explicit_location, string_to_event_location_basic)
13467 (string_to_event_location): Return event_location_up.
13468 * linespec.c (canonicalize_linespec, event_location_to_sals)
13469 (decode_line_with_current_source)
13470 (decode_line_with_last_displayed, decode_objc): Update.
13471 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
13472 * completer.c (location_completer): Update.
13473 * cli/cli-cmds.c (edit_command, list_command): Update.
13474 * breakpoint.c (create_overlay_event_breakpoint)
13475 (create_longjmp_master_breakpoint)
13476 (create_std_terminate_master_breakpoint)
13477 (create_exception_master_breakpoint)
13478 (create_thread_event_breakpoint): Update.
13479 (init_breakpoint_sal): Update. Remove some dead code.
13480 (create_breakpoint_sal): Change type of "location". Update.
13481 (create_breakpoints_sal, create_breakpoint, break_command_1)
13482 (dprintf_command, break_range_command, until_break_command)
13483 (init_ada_exception_breakpoint)
13484 (strace_marker_create_sals_from_location)
13485 (update_static_tracepoint, trace_command, ftrace_command)
13486 (strace_command, create_tracepoint_from_upload): Update.
13487 * break-catch-throw.c (re_set_exception_catchpoint): Update.
13488 * ax-gdb.c (agent_command_1): Update.
13490 2017-04-12 Pedro Alves <palves@redhat.com>
13492 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
13493 * configure.tgt: Handle i[34567]86-*-go32* and
13494 i[34567]86-*-msdosdjgpp*.
13495 * i386-tdep.c (i386_svr4_reg_to_regnum):
13497 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
13499 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
13500 * i386-go32-tdep.c: New file.
13501 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
13504 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
13506 * aix-thread.c (pd_status2str): Change return type to const char *.
13508 2017-04-12 Pedro Alves <palves@redhat.com>
13510 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
13511 calls to set_gdbarch_gnu_triplet_regexp.
13513 2017-04-12 Pedro Alves <palves@redhat.com>
13516 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
13518 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
13519 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
13520 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
13521 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
13522 * gdbarch.h, gdbarch.c: Regenerate.
13523 * aarch64-tdep.c (aarch64_gdbarch_init): Override
13524 gdbarch_wchar_bit and gdbarch_wchar_signed.
13525 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
13526 * arm-tdep.c (arm_gdbarch_init): Likewise.
13527 * avr-tdep.c (avr_gdbarch_init): Likewise.
13528 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13529 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
13530 * i386-tdep.c (i386_go32_init_abi): Likewise.
13531 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13532 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13533 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
13534 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
13535 * sh-tdep.c (sh_gdbarch_init): Likewise.
13536 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13537 * sparc64-tdep.c (sparc64_init_abi): Likewise.
13538 * windows-tdep.c (windows_init_abi): Likewise.
13539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13541 2017-04-12 Pedro Alves <palves@redhat.com>
13544 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
13545 cplus_primitive_type_char32_t>: New enum values.
13546 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
13547 and cplus_primitive_type_char32_t.
13548 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
13549 32, use the archtecture's built-in type for char16_t and char32_t,
13550 respectively. Otherwise, fallback to init_integer_type as before,
13551 but make the type unsigned, and issue a complaint.
13552 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
13554 2017-04-12 Alan Hayward <alan.hayward@arm.com>
13556 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
13557 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13559 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13561 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13564 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13566 * common/common-utils.c (free_vector_argv): New function.
13567 * common/common-utils.h: Include <vector>.
13568 (free_vector_argv): New prototype.
13569 * darwin-nat.c (darwin_create_inferior): Rewrite function
13570 prototype in order to constify "exec_file" and accept a
13571 "std::string" for "allargs".
13572 * fork-child.c: Include <vector>.
13573 (breakup_args): Rewrite function, using C++.
13574 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13575 and accept "std::string" for "allargs". Update the code to
13576 calculate "argv" based on "allargs". Update calls to "exec_fun"
13578 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13579 order to constify "exec_file" and accept a "std::string" for
13581 * go32-nat.c (go32_create_inferior): Likewise.
13582 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13583 * infcmd.c (run_command_1): Constify "exec_file". Use
13584 "std::string" for inferior arguments.
13585 * inferior.h (fork_inferior): Update prototype.
13586 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13587 prototype in order to constify "exec_file" and accept a
13588 "std::string" for "allargs".
13589 * nto-procfs.c (procfs_create_inferior): Likewise.
13590 * procfs.c (procfs_create_inferior): Likewise.
13591 * remote-sim.c (gdbsim_create_inferior): Likewise.
13592 * remote.c (extended_remote_run): Update code to accept
13593 "std::string" as argument.
13594 (extended_remote_create_inferior): Rewrite function prototype in
13595 order to constify "exec_file" and accept a "std::string" for
13597 * rs6000-nat.c (super_create_inferior): Likewise.
13598 (rs6000_create_inferior): Likewise.
13599 * target.h (struct target_ops) <to_create_inferior>: Likewise.
13600 * windows-nat.c (windows_create_inferior): Likewise.
13602 2017-04-11 Pedro Alves <palves@redhat.com>
13604 * thread.c: Fix whitespace throughout.
13606 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
13608 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
13610 2017-04-11 Alan Hayward <alan.hayward@arm.com>
13612 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
13614 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
13617 * osdata.c (info_osdata): Check if 'type' is an empty string
13620 2017-04-10 Pedro Alves <palves@redhat.com>
13622 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
13623 (ptid_to_global_thread_id, in_thread_list)
13624 (do_captured_list_thread_ids, set_resumed, set_running)
13625 (set_executing, set_stop_requested, finish_thread_state)
13626 (validate_registers_access, can_access_registers_ptid)
13627 (print_thread_info_1, switch_to_thread)
13628 (do_restore_current_thread_cleanup)
13629 (make_cleanup_restore_current_thread, thread_command)
13630 (thread_name_command): Use operator== instead of ptid_equal.
13632 2017-04-10 Pedro Alves <palves@redhat.com>
13634 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13635 (current_thread_cleanup_chain): Delete.
13636 (restore_current_thread_cleanup_dtor)
13637 (make_cleanup_restore_current_thread): Remove references to
13638 current_thread_cleanup_chain.
13640 2017-04-10 Alan Hayward <alan.hayward@arm.com>
13642 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13645 2017-04-10 Yao Qi <yao.qi@linaro.org>
13648 * gdbthread.h (thread_info::deletable): New method.
13649 (thread_info::incref): New method.
13650 (thread_info::decref): New method.
13651 (thread_info::refcount): Move it to private.
13652 * infrun.c (save_stop_context): Call inc_refcount.
13653 (release_stop_context_cleanup): Likewise.
13654 * thread.c (set_thread_exited): New function.
13655 (init_thread_list): Delete "tp" only it is deletable, otherwise
13656 call set_thread_exited.
13657 (delete_thread_1): Call set_thread_exited.
13658 (current_thread_cleanup) <inferior_pid>: Remove.
13659 <thread>: New field.
13660 (restore_current_thread_ptid_changed): Removed.
13661 (do_restore_current_thread_cleanup): Adjust.
13662 (restore_current_thread_cleanup_dtor): Don't call
13664 (set_thread_refcount): Use dec_refcount.
13665 (make_cleanup_restore_current_thread): Adjust.
13666 (thread_apply_all_command): Call inc_refcount.
13667 (_initialize_thread): Don't call
13668 observer_attach_thread_ptid_changed.
13670 2017-04-10 Yao Qi <yao.qi@linaro.org>
13672 * thread.c (delete_thread_1): Hoist code on marking thread as
13675 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13677 * windows-nat.c (windows_detach): Initialize ptid with
13680 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
13682 * unittests/ptid-selftests.c: Fix erroneous assert messages.
13684 2017-04-07 Alan Hayward <alan.hayward@arm.com>
13686 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
13687 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
13688 (bfin_pseudo_register_write): Likewise
13690 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
13692 * common/ptid.h (struct ptid): Change to...
13693 (class ptid_t): ... this.
13694 <ptid_t>: New constructors.
13695 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
13696 matches>: New methods.
13697 <make_null, make_minus_one>: New static methods.
13698 <pid>: Rename to...
13700 <lwp>: Rename to...
13702 <tid>: Rename to...
13704 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
13705 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
13706 as references, move comment to class ptid_t.
13707 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
13708 ptid_t static methods.
13709 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
13710 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
13711 Take ptid arguments as references, implement using ptid_t methods.
13712 * unittests/ptid-selftests.c: New file.
13713 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13714 unittests/ptid-selftests.c.
13715 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
13717 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13719 * python/python.c (python_run_simple_file): Cast mode literal to
13720 non-const char pointer as expected by PyFile_FromString.
13722 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
13724 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
13725 minus_one_ptid and null_ptid.
13727 2017-04-05 Pedro Alves <palves@redhat.com>
13729 * warning.m4 (build_warnings): Remove -Wno-write-strings.
13730 * configure: Regenerate.
13732 2017-04-05 Pedro Alves <palves@redhat.com>
13734 * ada-exp.y (yyerror): Constify.
13735 * ada-lang.c (bound_name, get_selections)
13736 (ada_variant_discrim_type)
13737 (ada_variant_discrim_name, ada_value_struct_elt)
13738 (ada_lookup_struct_elt_type, is_unchecked_variant)
13739 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
13740 (catch_ada_exception_command_split)
13741 (catch_ada_assert_command_split, catch_assert_command)
13742 (ada_op_name): Constify.
13743 * ada-lang.h (ada_yyerror, get_selections)
13744 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
13745 * arc-tdep.c (arc_print_frame_cache): Constify.
13746 * arm-tdep.c (arm_skip_stub): Constify.
13747 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
13748 (gen_aggregate_elt_ref): Constify.
13749 * bcache.c (print_bcache_statistics): Constify.
13750 * bcache.h (print_bcache_statistics): Constify.
13751 * break-catch-throw.c (catch_exception_command_1):
13752 * breakpoint.c (struct ep_type_description::description):
13754 (add_solib_catchpoint): Constify.
13755 (catch_fork_command_1): Add cast.
13756 (add_catch_command): Constify.
13757 * breakpoint.h (add_catch_command, add_solib_catchpoint):
13759 * bsd-uthread.c (bsd_uthread_state): Constify.
13760 * buildsym.c (patch_subfile_names): Constify.
13761 * buildsym.h (next_symbol_text_func, patch_subfile_names):
13763 * c-exp.y (yyerror): Constify.
13764 (token::oper): Constify.
13765 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
13766 * c-varobj.c (cplus_describe_child): Constify.
13767 * charset.c (find_charset_names): Add cast.
13768 (find_charset_names): Constify array and add const_cast.
13769 * cli/cli-cmds.c (complete_command, cd_command): Constify.
13770 (edit_command): Constify.
13771 * cli/cli-decode.c (lookup_cmd): Constify.
13772 * cli/cli-dump.c (dump_memory_command, dump_value_command):
13774 (struct dump_context): Constify.
13775 (add_dump_command, restore_command): Constify.
13776 * cli/cli-script.c (get_command_line): Constify.
13777 * cli/cli-script.h (get_command_line): Constify.
13778 * cli/cli-utils.c (check_for_argument): Constify.
13779 * cli/cli-utils.h (check_for_argument): Constify.
13780 * coff-pe-read.c (struct read_pe_section_data): Constify.
13781 * command.h (lookup_cmd): Constify.
13782 * common/print-utils.c (decimal2str): Constify.
13783 * completer.c (gdb_print_filename): Constify.
13784 * corefile.c (set_gnutarget): Constify.
13785 * cp-name-parser.y (yyerror): Constify.
13786 * cp-valprint.c (cp_print_class_member): Constify.
13787 * cris-tdep.c (cris_register_name, crisv32_register_name):
13789 * d-exp.y (yyerror): Constify.
13790 (struct token::oper): Constify.
13791 * d-lang.h (d_yyerror): Constify.
13792 * dbxread.c (struct header_file_location::name): Constify.
13793 (add_old_header_file, add_new_header_file, last_function_name)
13794 (dbx_next_symbol_text, add_bincl_to_list)
13795 (find_corresponding_bincl_psymtab, set_namestring)
13796 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
13797 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
13798 * defs.h (command_line_input, print_address_symbolic)
13799 (deprecated_readline_begin_hook): Constify.
13800 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
13802 * event-top.c (handle_line_of_input): Constify and add cast.
13803 * exceptions.c (catch_errors): Constify.
13804 * exceptions.h (catch_errors): Constify.
13805 * expprint.c (print_subexp_standard, op_string, op_name)
13806 (op_name_standard, dump_raw_expression, dump_raw_expression):
13807 * expression.h (op_name, op_string, dump_raw_expression):
13809 * f-exp.y (yyerror): Constify.
13810 (struct token::oper): Constify.
13811 (struct f77_boolean_val::name): Constify.
13812 * f-lang.c (f_word_break_characters): Constify.
13813 * f-lang.h (f_yyerror): Constify.
13814 * fork-child.c (fork_inferior): Add cast.
13815 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
13816 (new_variant): Constify.
13817 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
13818 * gdbarch.c: Regenerate.
13819 * gdbcore.h (set_gnutarget): Constify.
13820 * go-exp.y (yyerror): Constify.
13821 (token::oper): Constify.
13822 * go-lang.h (go_yyerror): Constify.
13823 * go32-nat.c (go32_sysinfo): Constify.
13824 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
13825 * guile/scm-cmd.c (cmdscm_function): Constify.
13826 * guile/scm-param.c (pascm_param_value): Constify.
13827 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
13828 (h8300sx_register_name): Constify.
13829 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
13831 * ia64-tdep.c (ia64_register_names): Constify.
13832 * infcmd.c (construct_inferior_arguments): Constify.
13833 (path_command, attach_post_wait): Constify.
13834 * language.c (show_range_command, show_case_command)
13835 (unk_lang_error): Constify.
13836 * language.h (language_defn::la_error)
13837 (language_defn::la_name_of_this): Constify.
13838 * linespec.c (decode_line_2): Constify.
13839 * linux-thread-db.c (thread_db_err_str): Constify.
13840 * lm32-tdep.c (lm32_register_name): Constify.
13841 * m2-exp.y (yyerror): Constify.
13842 * m2-lang.h (m2_yyerror): Constify.
13843 * m32r-tdep.c (m32r_register_names): Constify and make static.
13844 * m68hc11-tdep.c (m68hc11_register_names): Constify.
13845 * m88k-tdep.c (m88k_register_name): Constify.
13846 * macroexp.c (appendmem): Constify.
13847 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
13848 (upgrade_type, parse_external, parse_partial_symbols)
13849 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
13850 (new_symbol): Constify.
13851 * memattr.c (mem_info_command): Constify.
13852 * mep-tdep.c (register_name_from_keyword): Constify.
13853 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
13855 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
13856 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
13857 * mi/mi-main.c (captured_mi_execute_command): Constify and add
13859 (mi_execute_async_cli_command): Constify.
13860 * mips-tdep.c (mips_register_name): Constify.
13861 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
13862 (am33_register_name, am33_2_register_name)
13863 * moxie-tdep.c (moxie_register_names): Constify.
13864 * nat/linux-osdata.c (osdata_type): Constify fields.
13865 * nto-tdep.c (nto_parse_redirection): Constify.
13866 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
13867 (lookup_child_selector): Constify.
13868 (objc_methcall::name): Constify.
13869 * objc-lang.h (lookup_objc_class, lookup_child_selector)
13870 (lookup_struct_typedef): Constify.
13871 * objfiles.c (pc_in_section): Constify.
13872 * objfiles.h (pc_in_section): Constify.
13873 * p-exp.y (struct token::oper): Constify.
13874 (yyerror): Constify.
13875 * p-lang.h (pascal_yyerror): Constify.
13876 * parser-defs.h (op_name_standard): Constify.
13877 (op_print::string): Constify.
13878 (exp_descriptor::op_name): Constify.
13879 * printcmd.c (print_address_symbolic): Constify.
13880 * psymtab.c (print_partial_symbols): Constify.
13881 * python/py-breakpoint.c (stop_func): Constify.
13882 (bppy_get_expression): Constify.
13883 * python/py-cmd.c (cmdpy_completer::name): Constify.
13884 (cmdpy_function): Constify.
13885 * python/py-event.c (evpy_add_attribute)
13886 (gdbpy_initialize_event_generic): Constify.
13887 * python/py-event.h (evpy_add_attribute)
13888 (gdbpy_initialize_event_generic): Constify.
13889 * python/py-evts.c (add_new_registry): Constify.
13890 * python/py-finishbreakpoint.c (outofscope_func): Constify.
13891 * python/py-framefilter.c (get_py_iter_from_func): Constify.
13892 * python/py-inferior.c (get_buffer): Add cast.
13893 * python/py-param.c (parm_constant::name): Constify.
13894 * python/py-unwind.c (fprint_frame_id): Constify.
13895 * python/python.c (gdbpy_parameter_value): Constify.
13896 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
13897 * remote.c (memory_packet_config::name): Constify.
13898 (show_packet_config_cmd, remote_write_bytes)
13899 (remote_buffer_add_string):
13900 * reverse.c (exec_reverse_once): Constify.
13901 * rs6000-tdep.c (variant::name, variant::description): Constify.
13902 * rust-exp.y (rustyyerror): Constify.
13903 * rust-lang.c (rust_op_name): Constify.
13904 * rust-lang.h (rustyyerror): Constify.
13905 * serial.h (serial_ops::name): Constify.
13906 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
13907 (sh_sh3e_register_name, sh_sh2e_register_name)
13908 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
13909 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
13910 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
13911 (sh_sh4al_dsp_register_name): Constify.
13912 * sh64-tdep.c (sh64_register_name): Constify.
13913 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
13914 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
13915 * stabsread.c (patch_block_stabs, read_type_number)
13916 (ref_map::stabs, ref_add, process_reference)
13917 (symbol_reference_defined, define_symbol, define_symbol)
13918 (error_type, read_type, read_member_functions, read_cpp_abbrev)
13919 (read_one_struct_field, read_struct_fields, read_baseclasses)
13920 (read_tilde_fields, read_struct_type, read_array_type)
13921 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
13922 (read_huge_number, read_range_type, read_args, common_block_start)
13923 (find_name_end): Constify.
13924 * stabsread.h (common_block_start, define_symbol)
13925 (process_one_symbol, symbol_reference_defined, ref_add):
13926 * symfile.c (get_section_index, add_symbol_file_command):
13927 * symfile.h (get_section_index): Constify.
13928 * target-descriptions.c (tdesc_type::name): Constify.
13929 (tdesc_free_type): Add cast.
13930 * target.c (find_default_run_target):
13931 (add_deprecated_target_alias, find_default_run_target)
13932 (target_announce_detach): Constify.
13933 (do_option): Constify.
13934 * target.h (add_deprecated_target_alias): Constify.
13935 * thread.c (print_thread_info_1): Constify.
13936 * top.c (deprecated_readline_begin_hook, command_line_input):
13938 (init_main): Add casts.
13939 * top.h (handle_line_of_input): Constify.
13940 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
13941 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
13942 (tfind_command): Rename to ...
13943 (tfind_command_1): ... this and constify.
13944 (tfind_command): New function.
13945 (tfind_end_command, tfind_start_command): Adjust.
13946 (encode_source_string): Constify.
13947 * tracepoint.h (encode_source_string): Constify.
13948 * tui/tui-data.c (tui_partial_win_by_name): Constify.
13949 * tui/tui-data.h (tui_partial_win_by_name): Constify.
13950 * tui/tui-source.c (tui_set_source_content_nil): Constify.
13951 * tui/tui-source.h (tui_set_source_content_nil): Constify.
13952 * tui/tui-win.c (parse_scrolling_args): Constify.
13953 * tui/tui-windata.c (tui_erase_data_content): Constify.
13954 * tui/tui-windata.h (tui_erase_data_content): Constify.
13955 * tui/tui-winsource.c (tui_erase_source_content): Constify.
13956 * tui/tui.c (tui_enable): Add cast.
13957 * utils.c (defaulted_query): Constify.
13958 (init_page_info): Add cast.
13959 (puts_debug, subset_compare): Constify.
13960 * utils.h (subset_compare): Constify.
13961 * varobj.c (varobj_format_string): Constify.
13962 * varobj.h (varobj_format_string): Constify.
13963 * vax-tdep.c (vax_register_name): Constify.
13964 * windows-nat.c (windows_detach): Constify.
13965 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
13966 * xml-support.c (gdb_xml_end_element): Constify.
13967 * xml-tdesc.c (tdesc_start_reg): Constify.
13968 * xstormy16-tdep.c (xstormy16_register_name): Constify.
13969 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
13970 * xtensa-tdep.h (xtensa_register_t::name): Constify.
13972 2017-04-05 Pedro Alves <palves@redhat.com>
13974 * proc-api.c (struct trans): Constify.
13975 (procfs_note): Constify.
13976 * proc-events.c (struct trans, syscall_table):
13977 * proc-flags.c (struct trans): Constify.
13978 * proc-utils.h (procfs_note): Constify.
13979 * proc-why.c (struct trans): Constify.
13980 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
13981 (procfs_detach): Constify.
13982 * sol-thread.c (struct string_map): Constify.
13983 (td_err_string, td_state_string): Constify.
13985 2017-04-05 Pedro Alves <palves@redhat.com>
13987 * proc-api.c (procfs_filename): Don't initialize
13989 (prepare_to_trace): Assume procfs_filename is non-NULL.
13990 (_initialize_proc_api): Give procfs_filename a default value here.
13992 2017-04-05 Pedro Alves <palves@redhat.com>
13994 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
13995 'cond_string' parameter.
13996 (extract_exception_regexp): Constify 'string' parameter.
13997 (catch_exception_command_1): Constify.
13998 * breakpoint.c (init_catchpoint)
13999 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14001 (ep_parse_optional_if_clause, catch_fork_command_1)
14002 (catch_exec_command_1): Constify.
14003 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14005 (ep_parse_optional_if_clause): Constify.
14006 * cli/cli-utils.c (remove_trailing_whitespace)
14007 (check_for_argument): Constify.
14008 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14009 non-const overload.
14010 (check_for_argument): Likewise.
14012 2017-04-05 Pedro Alves <palves@redhat.com>
14014 * event-top.c (command_line_handler): Add cast to execute_command
14016 * record-btrace.c (cmd_record_btrace_bts_start)
14017 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14018 (cmd_record_btrace_start): Add cast to execute_command call.
14019 * record-full.c (record_full_goto_insn):
14020 * record.c (record_start, record_stop): Add cast to
14021 execute_command_to_string calls.
14022 (cmd_record_start): Add cast to execute_command calls.
14024 2017-04-05 Pedro Alves <palves@redhat.com>
14026 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14027 static inline function.
14028 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14029 array and use gdb_PyArg_ParseTupleAndKeywords.
14030 * python/py-cmd.c (cmdpy_init): Likewise.
14031 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14032 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14033 (infpy_search_memory): Likewise.
14034 * python/py-objfile.c (objfpy_add_separate_debug_file)
14035 (gdbpy_lookup_objfile): Likewise.
14036 * python/py-symbol.c (gdbpy_lookup_symbol)
14037 (gdbpy_lookup_global_symbol): Likewise.
14038 * python/py-type.c (gdbpy_lookup_type): Likewise.
14039 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14040 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14043 2017-04-05 Pedro Alves <palves@redhat.com>
14045 * python/python-internal.h (gdb_PyGetSetDef): New type.
14046 * python/py-block.c (block_object_getset)
14047 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14048 * python/py-event.c (event_object_getset)
14049 (finish_breakpoint_object_getset): Likewise.
14050 * python/py-inferior.c (inferior_object_getset): Likewise.
14051 * python/py-infthread.c (thread_object_getset): Likewise.
14052 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14053 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14054 * python/py-objfile.c (objfile_getset): Likewise.
14055 * python/py-progspace.c (pspace_getset): Likewise.
14056 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14058 * python/py-record.c (recpy_record_getset): Likewise.
14059 * python/py-symbol.c (symbol_object_getset): Likewise.
14060 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14062 * python/py-type.c (type_object_getset, field_object_getset):
14064 * python/py-value.c (value_object_getset): Likewise.
14066 2017-04-05 Pedro Alves <palves@redhat.com>
14068 * python/python-internal.h (gdb_PyObject_CallMethod)
14069 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14071 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14072 (PySys_GetObject, PySys_SetPath): New macros.
14074 2017-04-05 Pedro Alves <palves@redhat.com>
14076 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14077 info_osdata_command.
14078 * osdata.c (info_osdata_command): Rename to ...
14079 (info_osdata): ... this. Constify 'type' parameter, and remove
14080 the 'from_tty' parameter. Accept NULL TYPE.
14081 (info_osdata_command): New function.
14082 * osdata.h (info_osdata_command): Remove declaration.
14083 (info_osdata): New declaration.
14085 2017-04-05 Pedro Alves <palves@redhat.com>
14087 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14088 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14089 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14091 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14092 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14093 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14095 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14096 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14097 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14098 (mi_cmd_file_list_exec_source_files)
14099 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14100 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14101 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14103 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14104 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14105 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14106 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14107 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14108 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14109 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14110 'command' parameter.
14111 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14112 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14113 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14114 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14115 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14116 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14117 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14118 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14119 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14120 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14121 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14123 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14124 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14125 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14126 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14127 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14128 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14129 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14130 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14131 (mi_cmd_data_list_changed_registers)
14132 (mi_cmd_data_write_register_values)
14133 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14134 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14135 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14136 (mi_cmd_list_features, mi_cmd_list_target_features)
14137 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14138 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14139 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14140 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14141 (mi_cmd_trace_frame_collected): Constify 'command'
14143 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14144 'command' parameter.
14146 2017-04-05 Pedro Alves <palves@redhat.com>
14148 * ada-lang.c (ada_completer_word_break_characters): Now a const
14150 (ada_get_gdb_completer_word_break_characters): Constify.
14151 * completer.c (gdb_completer_command_word_break_characters)
14152 (gdb_completer_file_name_break_characters)
14153 (gdb_completer_quote_characters): Now const arrays.
14154 (get_gdb_completer_quote_characters): Constify.
14155 (set_rl_completer_word_break_characters): New function.
14156 (set_gdb_completion_word_break_characters)
14157 (complete_line_internal): Use it.
14158 * completer.h (get_gdb_completer_quote_characters): Constify.
14159 (set_rl_completer_word_break_characters): Declare.
14160 * f-lang.c (f_word_break_characters): Constify.
14161 * language.c (default_word_break_characters): Constify.
14162 * language.h (language_defn::la_word_break_characters): Constify.
14163 (default_word_break_characters): Constify.
14164 * top.c (init_main): Use set_rl_completer_word_break_characters.
14166 2017-04-05 Pedro Alves <palves@redhat.com>
14168 * aix-thread.c (aix_thread_pid_to_str)
14169 (aix_thread_extra_thread_info): Constify.
14170 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14171 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14172 (bsd_uthread_pid_to_str): Constify.
14173 * corelow.c (core_pid_to_str): Constify.
14174 * darwin-nat.c (darwin_pid_to_str): Constify.
14175 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14176 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14178 * gnu-nat.c (gnu_pid_to_str): Constify.
14179 * go32-nat.c (go32_pid_to_str): Constify.
14180 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14181 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14182 * inferior.c (inferior_pid_to_str): Constify.
14183 * linux-nat.c (linux_nat_pid_to_str): Constify.
14184 * linux-tdep.c (linux_core_pid_to_str): Constify.
14185 * linux-thread-db.c (thread_db_pid_to_str)
14186 (thread_db_extra_thread_info): Constify.
14187 * nto-tdep.c (nto_extra_thread_info): Constify.
14188 * nto-tdep.h (nto_extra_thread_info): Constify.
14189 * obsd-nat.c (obsd_pid_to_str): Constify.
14190 * procfs.c (procfs_pid_to_str): Constify.
14191 * ravenscar-thread.c (ravenscar_extra_thread_info)
14192 (ravenscar_pid_to_str): Constify.
14193 * remote-sim.c (gdbsim_pid_to_str): Constify.
14194 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14196 * sol-thread.c (solaris_pid_to_str): Constify.
14197 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14198 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14199 * target.c (default_pid_to_str, target_pid_to_str)
14200 (normal_pid_to_str, default_pid_to_str): Constify.
14201 * target.h (target_ops::to_pid_to_str)
14202 (target_ops::to_extra_thread_info): Constify.
14203 (target_pid_to_str, normal_pid_to_str): Constify.
14204 * windows-nat.c (windows_pid_to_str): Constify.
14205 * gdbarch.sh (core_pid_to_str): Constify.
14206 * target-delegates.c: Regenerate.
14207 * gdbarch.h, gdbarch.c: Regenerate.
14209 2017-04-05 Pedro Alves <palves@redhat.com>
14211 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14212 the memory of the temporary warning_pre_print override.
14213 * utils.c (warning_pre_print): Constify.
14214 * utils.h (warning_pre_print): Constify.
14216 2017-04-05 Pedro Alves <palves@redhat.com>
14218 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14219 (shell_command): New function.
14220 (make_command): Use std::string.
14221 (init_cli_cmds): Register shell_command instead of shell_escape.
14223 2017-04-05 Pedro Alves <palves@redhat.com>
14225 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14226 * tracepoint.c (default_collect): Don't initialize.
14228 2017-04-05 Pedro Alves <palves@redhat.com>
14230 * macroexp.c (macro_buffer::shared): Now a bool.
14231 (init_buffer): Update.
14232 (init_shared_buffer): Constify 'addr' parameter.
14233 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14236 2017-04-05 Pedro Alves <palves@redhat.com>
14238 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14239 * disasm.c (set_disassembler_options): Constify local.
14240 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14242 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14245 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14248 2017-04-05 Yao Qi <yao.qi@linaro.org>
14250 * frame.c (frame_unwind_register_unsigned): Call
14251 frame_unwind_register_value.
14253 2017-04-05 Yao Qi <yao.qi@linaro.org>
14255 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14256 Use gdb_test_multiple, and don't match anchor.
14258 2017-04-05 Pedro Alves <palves@redhat.com>
14260 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14261 (Write After Approval): Remove Simon Marchi.
14263 2017-04-05 Pedro Alves <palves@redhat.com>
14265 * common/gdb_optional.h (optional::optional): Make constexpr and
14266 initialize m_dummy.
14268 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14270 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14271 (amd64fbsd_jmp_buf_reg_offset): Remove.
14272 (amd64fbsd_supply_uthread): Remove function.
14273 (amd64fbsd_collect_uthread): Remove function.
14274 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14275 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14276 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14277 (fbsd-nat.c): Update comment.
14278 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14279 (i386fbsd_jmp_buf_reg_offset): Remove.
14280 (i386fbsd_supply_uthread): Remove function.
14281 (i386fbsd_collect_uthread): Remove function.
14282 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14284 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14286 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14287 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14288 * NEWS: Mention that support for FreeBSD/alpha was removed.
14289 * alpha-fbsd-tdep.c: Delete file.
14290 * config/alpha/fbsd.mh: Delete file.
14291 * configure.host: Delete alpha*-*-freebsd* and
14292 alpha*-*-kfreebsd*-gnu.
14293 * configure.tgt: Delete alpha*-*-freebsd* and
14294 alpha*-*-kfreebsd*-gnu.
14296 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14298 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14299 amd64bsd_store_inferior_registers): Use ptid from regcache.
14301 2017-04-04 Pedro Alves <palves@redhat.com>
14303 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14304 data fields, make them private and add "m_" prefixes.
14305 (lnp_state_machine::lnp_state_machine): New ctor.
14306 (record_line, check_line_address, handle_set_discriminator)
14307 (handle_set_address, handle_advance_pc, handle_special_opcode)
14308 (handle_advance_line, handle_set_file, handle_negate_stmt)
14309 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14310 (end_sequence, advance_line): New methods.
14311 (m_gdbarch, m_record_lines_p): New fields.
14312 (lnp_reader_state): Delete.
14313 (dwarf_record_line): Rename to ...
14314 (lnp_state_machine::record_line): ... adjust.
14315 (init_lnp_state_machine): Delete.
14316 (lnp_state_machine::lnp_state_machine): New.
14317 (check_line_address): Rename to ...
14318 (lnp_state_machine::check_line_address): This.
14319 (dwarf_decode_lines_1): Remove reference to "reader_state".
14320 Adjust lnp_state_machine having a non-default ctor. Use bool.
14321 State machine internal state manipulation moved to
14322 lnp_state_machine methods.
14324 2017-04-04 Pedro Alves <palves@redhat.com>
14326 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14327 unittests/offset-type-selftests.c.
14328 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14329 * common/offset-type.h: New file.
14330 * common/preprocessor.h: New file.
14331 * common/traits.h: New file.
14332 * common/valid-expr.h: New file.
14333 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14334 sect_offset and cu_offset strong typedefs throughout.
14335 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14336 typedefs throughout.
14337 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14338 sect_offset and cu_offset strong typedefs throughout.
14339 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14340 typedefs throughout.
14341 * gdbtypes.h: Include "common/offset-type.h".
14342 (cu_offset): Now an offset type (strong typedef) instead of a
14344 (sect_offset): Likewise.
14345 (union call_site_parameter_u): Rename "param_offset" field to
14347 * unittests/offset-type-selftests.c: New file.
14349 2017-04-04 Pedro Alves <palves@redhat.com>
14351 * common/underlying.h: New file.
14352 * dwarf2read.c: Include "common/gdb_optional.h" and
14353 "common/underlying.h".
14354 (dir_index, file_name_index): New types.
14355 (file_entry): Use them.
14356 (file_entry::include): Use to_underlying.
14357 (line_header::add_file_name): Use dir_index.
14358 (read_formatted_entries): Use gdb::optional. Read form before
14359 writting to file_entry.
14360 (dwarf_decode_line_header): Use dir_index.
14361 (lnp_state_machine::current_file): Use to_underlying.
14362 (lnp_state_machine::file): Change type to file_name_index.
14363 (dwarf_record_line): Use to_underlying.
14364 (init_lnp_state_machine): Use file_name_index.
14365 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14367 2017-04-04 Pedro Alves <palves@redhat.com>
14369 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14370 operator bool, has_value and get methods.
14372 2017-04-04 Pedro Alves <palves@redhat.com>
14374 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14376 (line_header): Initialize all data fields. Change type of
14377 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14378 Change type of include_dirs to std::vector<const char *>. Remove
14379 num_include_dirs, include_dirs_size. Change type of file_names to
14380 std::vector<file_entry>. Remove num_file_names, file_names_size.
14381 (line_header::line_header): New.
14382 (line_header::add_include_dir, line_header::add_file_name): New
14384 (line_header::include_dir_at): Remove NULL check.
14385 (line_header::file_name_at): Add const overload.
14386 (line_header_up): New unique_ptr typedef.
14387 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14388 std::vector. Remove free_line_header call.
14389 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14390 free_line_header call.
14391 (free_cu_line_header): Delete.
14392 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14393 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14394 Adjust to use std::vector.
14395 (free_line_header): Delete.
14396 (free_line_header_voidp): Use delete.
14397 (add_include_dir): Replace with ...
14398 (line_header::add_include_dir): ... this method. Use std::vector.
14399 (add_file_name): Replace with ...
14400 (line_header::add_file_name): ... this method. Use std::vector.
14401 (add_include_dir_stub): Delete.
14402 (read_formatted_entries): Remove memset.
14403 (dwarf_decode_line_header): Return a line_header_up instead of a
14404 raw pointer. Remove cleanup handling. Pass lambdas to
14405 read_formatted_entries. Adjust to use line_header methods.
14406 (dwarf_decode_lines_1): Adjust to use line_header methods.
14407 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14410 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14412 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14413 instead of struct ptid.
14415 2017-05-04 Alan Hayward <alan.hayward@arm.com>
14417 * frame.c (get_frame_register_bytes): Unwind using value.
14418 (put_frame_register_bytes): Likewise.
14420 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14422 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14425 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14427 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14429 2017-03-29 Yao Qi <yao.qi@linaro.org>
14431 * gdbthread.h (struct thread_info): Declare constructor and
14432 destructor. Add some in-class member initializers.
14433 * thread.c (free_thread): Remove.
14434 (init_thread_list): Call delete instead of free_thread.
14435 (new_thread): Call thread_info constructor.
14436 (thread_info::thread_info): New function.
14437 (thread_info::~thread_info): New function.
14438 (delete_thread_1): Call delete instead of free_thread.
14439 (make_cleanup_restore_current_thread): Move tp and frame to
14442 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14444 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14445 (arc_skip_prologue): Likewise.
14446 (arc_make_frame_cache): Likewise.
14447 (arc_pv_get_operand): New function.
14448 (arc_is_in_prologue): Likewise.
14449 (arc_analyze_prologue): Likewise.
14450 (arc_print_frame_cache): Likewise.
14451 (MAX_PROLOGUE_LENGTH): New constant.
14453 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14455 * configure.tgt: Add arc-insn.o.
14456 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
14457 (dump_arc_instruction_command): New function.
14458 (arc_fprintf_disasm): Likewise.
14459 (arc_disassemble_info): Likewise.
14460 (arc_insn_get_operand_value): Likewise.
14461 (arc_insn_get_operand_value_signed): Likewise.
14462 (arc_insn_get_memory_base_reg): Likewise.
14463 (arc_insn_get_memory_offset): Likewise.
14464 (arc_insn_get_branch_target): Likewise.
14465 (arc_insn_dump): Likewise.
14466 (arc_insn_get_linear_next_pc): Likewise.
14467 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
14468 (arc_disassemble_info): Likewise.
14469 (arc_insn_get_branch_target): Likewise.
14470 (arc_insn_get_linear_next_pc): Likewise.
14471 * NEWS: Mention new "maint print arc arc-instruction".
14473 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14475 * arc-tdep (maintenance_print_arc_list): New variable.
14476 (maintenance_print_arc_command): New function.
14478 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14480 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
14481 Add "limm" and "reserved".
14482 (arc_cannot_fetch_register, arc_cannot_store_register): Add
14483 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
14484 * arc-tdep.h (arc_regnum): Likewise.
14486 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14488 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14489 for THREADPTR register.
14490 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
14492 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
14493 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
14494 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
14496 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14498 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
14499 registers above gdbarch_num_regs (gdbarch) as privileged in
14502 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14504 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14505 for a single specified register or for all registers in
14506 a0_base..a0_base + C0_NREGS range.
14507 (supply_gregset_reg): Call regcache_raw_supply for a single
14508 specified register or for all registers in a0_base..a0_base +
14511 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14513 * arch/xtensa.h (C0_NREGS): Add definition.
14514 * xtensa-tdep.c (C0_NREGS): Remove definition.
14516 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14518 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
14519 Drop xtensa_default_isa initialization.
14520 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
14522 2017-03-27 Pedro Alves <palves@redhat.com>
14524 * dwarf2read.c (file_entry) <dir_index>: Add comment.
14525 (file_entry::include_dir): New method.
14526 (line_header::include_dir_at, line_header::file_name_at): New
14528 (setup_type_unit_groups, setup_type_unit_groups)
14529 (psymtab_include_file_name): Simplify using the new methods.
14530 (lnp_state_machine) <the_line_header>: New field.
14531 <file>: Add comment.
14532 (lnp_state_machine::current_file): New method.
14533 (dwarf_record_line): Simplify using the new methods.
14534 (init_lnp_state_machine): Initialize the "the_line_header" field.
14535 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
14536 Simplify using the new methods.
14538 2017-03-27 Pedro Alves <palves@redhat.com>
14540 * cp-name-parser.y (make_empty): Delete.
14541 (demangler_special, nested_name, ptr_operator, array_indicator)
14542 (direct_declarator, declarator_1): Use fill_comp instead of
14545 2017-03-27 Pedro Alves <palves@redhat.com>
14547 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
14548 to ATTRIBUTE_PRINTF.
14549 * solib-target.c (library_list_start_list): Print "string" not
14551 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
14552 gdb_xml_error call.
14554 2017-03-27 Pedro Alves <palves@redhat.com>
14556 * dwarf2read.c (struct file_and_directory): New.
14557 (dwarf2_get_dwz_file): Adjust to use std::string.
14558 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14559 (find_file_and_directory): Adjust to return a file_and_directory
14561 (read_file_scope): Adjust to use file_and_directory. Remove
14562 make_cleanup/do_cleanups calls.
14563 (open_and_init_dwp_file): Adjust to use std::string. Remove
14564 make_cleanup/do_cleanups calls.
14565 * python/python.c (do_start_initialization): Adjust to ldirname
14566 returning a std::string.
14567 * utils.c (ldirname): Now returns a std::string.
14568 * utils.h (ldirname): Change return type to std::string.
14569 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14570 returning a std::string.
14571 * xml-tdesc.c (file_read_description_xml): Likewise.
14573 2017-03-24 Alan Hayward <alan.hayward@arm.com>
14575 * regcache.c (regcache_debug_print_register): New function.
14576 * regcache.h (regcache_debug_print_register): New declaration.
14577 * target.c (debug_print_register): Remove.
14578 (target_fetch_registers): Call regcache_debug_print_register.
14579 (target_store_registers): Likewise.
14581 2017-03-24 Pádraig Brady <pbrady@fb.com>
14583 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14584 reference beyond the 'lh->include_dirs' array before accessing to
14586 (psymtab_include_file_name): Likewise.
14587 (dwarf_decode_lines_1): Likewise.
14588 (dwarf_decode_lines): Likewise.
14589 (file_file_name): Likewise.
14591 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14593 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14595 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14596 ps_lsetfpregs): Likewise.
14597 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
14598 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14599 ps_lsetfpregs): Likewise.
14600 * target.c (target_fetch_registers, target_store_registers):
14603 2017-03-23 Alan Hayward <alan.hayward@arm.com>
14605 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
14607 2017-03-23 Yao Qi <yao.qi@linaro.org>
14609 * aarch64-tdep.c (aarch64_process_record_test): Declare.
14610 (_initialize_aarch64_tdep): Register it.
14611 (aarch64_record_load_store): Handle PRFM instruction.
14612 (aarch64_process_record_test): New function.
14614 2017-03-23 Yao Qi <yao.qi@linaro.org>
14616 * aarch64-tdep.c (aarch64_record_load_store): Fix code
14619 2017-03-23 Yao Qi <yao.qi@linaro.org>
14621 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
14623 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14625 python/python.c (do_start_initialization): Fix memory leak.
14627 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14629 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
14630 using get_ptrace_pid.
14631 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
14633 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14634 inferior_ptid instead of pid.
14636 2017-03-22 Yao Qi <yao.qi@linaro.org>
14638 * aarch64-tdep.c: Wrap locally used classes in anonymous
14640 * arm-tdep.c: Likewise.
14641 * linespec.c: Likewise.
14642 * ui-out.c: Likewise.
14644 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
14647 * python/lib/gdb/printer/bound_registers.py: Import sys.
14649 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14651 * windows-nat.c (do_windows_fetch_inferior_registers): Add
14652 windows_thread_info parameter and use it instead of
14654 (windows_fetch_inferior_registers): Don't set current_thread,
14655 pass the thread to do_windows_fetch_inferior_registers. Use
14656 ptid from regcache instead of inferior_ptid.
14657 (do_windows_store_inferior_registers): Add windows_thread_info
14658 parameter and use it instead of current_thread.
14659 (windows_store_inferior_registers): Don't set current_thread,
14660 pass the thread to do_windows_store_inferior_registers. Use
14661 ptid from regcache instead of inferior_ptid.
14663 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14665 * ser-mingw.c (ser_windows_raw): Remove reference to
14666 struct serial::current_timeout.
14668 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
14671 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
14672 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
14673 (sparc64_fsr_type): Fix %fsr decoding.
14675 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
14677 * python/py-record-btrace.c (btpy_insn_data): Change return type
14680 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14682 * spu-linux-nat.c (spu_fetch_inferior_registers,
14683 spu_store_inferior_registers): Use ptid from regcache, set and
14684 restore inferior_ptid.
14685 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
14688 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14690 * i386-linux-nat.c (fetch_register, store_register,
14691 i386_linux_fetch_inferior_registers,
14692 i386_linux_store_inferior_registers): Use ptid from regcache.
14693 * ia64-linux-nat.c (ia64_linux_fetch_register,
14694 ia64_linux_store_register): Likewise.
14695 * inf-ptrace.c (inf_ptrace_fetch_register,
14696 inf_ptrace_store_register): Likewise.
14697 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
14698 m32r_linux_store_inferior_registers): Likewise.
14699 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
14700 m68kbsd_store_inferior_registers): Likewise.
14701 * m68k-linux-nat.c (fetch_register, store_register,
14702 m68k_linux_fetch_inferior_registers,
14703 m68k_linux_store_inferior_registers): Likewise.
14704 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
14705 m88kbsd_store_inferior_registers): Likewise.
14706 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
14707 mips_fbsd_store_inferior_registers): Likewise.
14708 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
14709 mips64_linux_regsets_store_registers): Likewise.
14710 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
14711 mipsnbsd_store_inferior_registers): Likewise.
14712 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
14713 mips64obsd_store_inferior_registers): Likewise.
14714 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
14716 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
14717 ppcfbsd_store_inferior_registers): Likewise.
14718 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
14719 ppc_linux_store_inferior_registers): Likewise.
14720 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
14721 ppcnbsd_store_inferior_registers): Likewise.
14722 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
14723 ppcobsd_store_registers): Likewise.
14724 * procfs.c (procfs_fetch_registers, procfs_store_registers):
14726 * ravenscar-thread.c (ravenscar_fetch_registers,
14727 ravenscar_store_registers, ravenscar_prepare_to_store):
14729 * record-btrace.c (record_btrace_fetch_registers,
14730 record_btrace_store_registers, record_btrace_prepare_to_store):
14732 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
14733 Lookup inferior using ptid from regcache, instead of
14735 * remote.c (remote_fetch_registers, remote_store_registers): Use
14736 ptid from regcache.
14737 * rs6000-nat.c (fetch_register, store_register): Likewise.
14738 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
14739 s390_linux_store_inferior_registers): Likewise.
14740 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
14741 shnbsd_store_inferior_registers): Likewise.
14742 * sol-thread.c (sol_thread_fetch_registers,
14743 sol_thread_store_registers): Likewise.
14744 * sparc-nat.c (sparc_fetch_inferior_registers,
14745 sparc_store_inferior_registers): Likewise.
14746 * tilegx-linux-nat.c (fetch_inferior_registers,
14747 store_inferior_registers): Likewise.
14748 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
14749 vaxbsd_store_inferior_registers): Likewise.
14750 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
14751 store_xtregs): Likewise.
14753 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14756 * NEWS: Mention support for rvalue references in GDB and python.
14757 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
14758 supports both lvalue and rvalue references.
14760 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14763 * gdbtypes.c (rank_one_type): Implement overloading
14764 resolution rules regarding rvalue references.
14766 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14769 * aarch64-tdep.c (aarch64_type_align)
14770 (aarch64_extract_return_value, aarch64_store_return_value): Change
14771 lvalue reference type checks to general reference type checks.
14772 * amd64-tdep.c (amd64_classify): Likewise.
14773 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
14775 * arm-tdep.c (arm_type_align, arm_extract_return_value)
14776 (arm_store_return_value): Likewise.
14777 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
14778 * c-typeprint.c (c_print_type): Likewise.
14779 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
14780 (cplus_number_of_children, cplus_describe_child): Likewise.
14781 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
14782 * completer.c (expression_completer): Likewise.
14783 * cp-support.c (make_symbol_overload_list_adl_namespace):
14785 * darwin-nat-info.c (info_mach_region_command): Likewise.
14786 * dwarf2loc.c (entry_data_value_coerce_ref)
14787 (value_of_dwarf_reg_entry): Likewise.
14788 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
14789 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
14791 * findvar.c (extract_typed_address, store_typed_address):
14793 * gdbtypes.c (rank_one_type): Likewise.
14794 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
14795 * infcall.c (value_arg_coerce): Likewise.
14796 * language.c (pointer_type): Likewise.
14797 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
14799 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
14800 * mn10300-tdep.c (mn10300_type_align): Likewise.
14801 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
14802 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
14803 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
14805 * printcmd.c (print_formatted, x_command): Likewise.
14806 * python/py-type.c (typy_get_composite, typy_template_argument):
14808 * python/py-value.c (valpy_referenced_value)
14809 (valpy_get_dynamic_type, value_has_field): Likewise.
14810 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
14811 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
14812 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
14813 * spu-tdep.c (spu_scalar_value_p): Likewise.
14814 * symtab.c (lookup_symbol_aux): Likewise.
14815 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
14816 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
14818 * valops.c (value_cast_pointers, value_cast)
14819 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
14820 (value_struct_elt, value_struct_elt_bitpos)
14821 (value_find_oload_method_list, find_overload_match)
14822 (value_rtti_indirect_type): Likewise.
14823 * valprint.c (val_print_scalar_type_p, generic_val_print):
14825 * value.c (value_actual_type, value_as_address, unpack_long)
14826 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
14827 (coerce_ref): Likewise.
14828 * varobj.c (varobj_get_value_type): Likewise.
14830 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14833 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
14834 table of constants.
14835 * python/lib/gdb/command/explore.py: Support exploring values
14836 of rvalue reference types.
14837 * python/lib/gdb/types.py: Implement get_basic_type() for
14838 rvalue reference types.
14839 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
14841 * python/py-value.c (valpy_getitem): Add an rvalue reference
14843 (valpy_reference_value): Add new parameter "refcode".
14844 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
14845 New wrappers for valpy_reference_value().
14846 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14847 (gdbpy_invoke_xmethod): Likewise.
14849 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14852 * dwarf2read.c (process_die, read_type_die_1): Handle the
14853 DW_TAG_rvalue_reference_type DIE.
14854 (read_tag_reference_type): Add new parameter "refcode".
14856 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14859 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
14860 (c_type_print_modifier, c_type_print_varspec_suffix)
14861 (c_type_print_base): Support printing rvalue reference types.
14862 * c-valprint.c (c_val_print, c_value_print): Support printing
14863 rvalue reference values.
14865 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14868 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
14870 * cp-support.c (replace_typedefs): Handle
14871 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
14872 * python/py-type.c (typy_lookup_type): Likewise.
14874 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14877 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
14878 * parse.c (insert_type): Change assert statement.
14879 (follow_types): Handle rvalue reference types.
14880 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
14883 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14886 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
14887 value_ref() interface.
14888 * c-valprint.c (c_value_print): Likewise.
14889 * infcall.c (value_arg_coerce): Likewise.
14890 * python/py-value.c (valpy_reference_value): Likewise.
14891 * valops.c (value_cast, value_reinterpret_cast)
14892 (value_dynamic_cast, typecmp): Likewise.
14893 (value_ref): Parameterize by kind of return value reference type.
14894 * value.h (value_ref): Add new parameter "refcode".
14896 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14899 * dwarf2read.c (read_tag_reference_type): Use
14900 lookup_lvalue_reference_type() instead of lookup_reference_type().
14901 * eval.c (evaluate_subexp_standard): Likewise.
14902 * f-exp.y: Likewise.
14903 * gdbtypes.c (make_reference_type, lookup_reference_type):
14904 Generalize with rvalue reference types.
14905 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
14906 convenience wrappers for lookup_reference_type().
14907 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
14908 reference kind parameter.
14909 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
14910 wrappers for lookup_reference_type().
14911 * guile/scm-type.c (gdbscm_type_reference): Use
14912 lookup_lvalue_reference_type() instead of lookup_reference_type().
14913 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
14914 * parse.c (follow_types): Likewise.
14915 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
14916 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
14918 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14919 (gdbpy_invoke_xmethod): Likewise.
14920 * stabsread.c: Provide extra argument to make_reference_type()
14922 * valops.c (value_ref, value_rtti_indirect_type): Use
14923 lookup_lvalue_reference_type() instead of lookup_reference_type().
14925 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14928 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
14929 (TYPE_IS_REFERENCE): New macro.
14930 (struct type): Add rvalue_reference_type field.
14931 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
14933 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14935 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
14936 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
14937 New function definition.
14938 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
14939 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
14940 New function declaration.
14941 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
14942 * mi/mi-interp.h: New file.
14943 * solib.c (info_sharedlibrary_command): Replace for loop with
14945 * solib.h (update_solib_list): New function declaration.
14946 (so_list_head): Move macro.
14947 * solist.h (ALL_SO_LIBS): New macro.
14949 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14951 * infcmd.c (post_create_inferior): Remove unused argument in
14953 * remote.c (remote_start_remote): Likewise.
14954 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
14955 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
14956 (enable_break): Likewise.
14957 * solib.c (update_solib_list): Remove unused target argument
14958 and its documentation.
14959 (solib_add): Remove unused target argument. Remove unused
14960 argument in call to update_solib_list.
14961 (info_sharedlibrary_command): Remove unused argument in call
14962 to update_solib_list.
14963 (sharedlibrary_command): Remove unused argument in call to
14965 (handle_solib_event): Likewise.
14966 (reload_shared_libraries): Likewise.
14967 * solib.h (solib_add): Remove unused target argument.
14969 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
14971 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
14972 (s390_displaced_step_fixup): Cover relative branches with the
14973 default fixup handling. This fixes lack of support for some
14974 relative branch instructions.
14976 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14978 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
14979 ptid from regcache.
14981 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14983 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
14984 i386_darwin_store_inferior_registers): Use ptid from regcache.
14986 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14988 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
14989 i386bsd_store_inferior_registers): Use ptid from regcache.
14991 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14993 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
14994 hppaobsd_store_registers): Use ptid from regcache.
14996 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14998 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
14999 hppanbsd_store_registers): Use ptid from regcache.
15001 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15003 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15004 from regcache. Use get_ptrace_pid.
15006 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15008 * corelow.c (get_core_register_section): Use ptid from regcache,
15011 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15013 * bsd-uthread.c (bsd_uthread_fetch_registers,
15014 bsd_uthread_store_registers): Use ptid from regcache, set and
15015 restore inferior_ptid.
15017 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15019 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15020 fetch_fp_regs, store_register, store_regs, store_fp_register,
15021 store_fp_regs): Use ptid from regcache.
15023 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15025 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15026 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15027 store_vfp_regs): Use ptid from regcache.
15029 2017-03-17 Pedro Alves <palves@redhat.com>
15032 * ser-base.c (ser_base_wait_for): Add comment.
15033 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15035 * ser-unix.c (hardwire_raw): Remove reference to
15036 scb->current_timeout.
15037 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15038 (hardwire_ops): Install ser_base_readchar instead of
15040 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15043 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15046 * python/lib/gdb/printer/bound_registers.py: Add support for
15049 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15051 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15052 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15053 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15054 byte_offset to subobj_byte_offset. Fix the handling of
15055 DWARF_VALUE_STACK on big-endian targets when coming via an
15057 (dwarf2_evaluate_loc_desc): Adjust call to
15058 dwarf2_evaluate_loc_desc_full.
15059 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15060 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15062 2017-03-16 Yao Qi <yao.qi@linaro.org>
15064 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15065 and REVSH instructions.
15067 2017-03-16 Yao Qi <yao.qi@linaro.org>
15069 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15070 (arm_record_test): Declare.
15071 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15072 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15073 align with the manual.
15074 (thumb_record_misc): Adjust the code order to align with the
15076 (thumb2_record_decode_insn_handler): Fix instruction matching.
15077 (instruction_reader_thumb): New class.
15078 (arm_record_test): New function.
15080 2017-03-16 Yao Qi <yao.qi@linaro.org>
15082 * arm-tdep.c (abstract_memory_reader): New class.
15083 (instruction_reader): New class.
15084 (extract_arm_insn): Add argument 'reader'. Callers updated.
15085 (decode_insn): Likewise.
15087 2017-03-16 Doug Evans <dje@google.com>
15089 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15090 member. Change type of TYPE member to SCM. All uses updated.
15091 (lsscm_make_lazy_string_smob): Add assert.
15092 (lsscm_make_lazy_string): Flag bad length values.
15093 (lsscm_elt_type): New function.
15094 (gdbscm_lazy_string_to_value): Rewrite to use
15095 lsscm_safe_lazy_string_to_value.
15096 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15097 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15098 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15100 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15101 * guile/scm-type.c (tyscm_scm_to_type): New function.
15103 2017-03-15 Doug Evans <dje@google.com>
15105 PR python/17728, python/18439, python/18779
15106 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15107 member. Change type of TYPE member to PyObject *. All uses updated.
15108 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15109 (gdbpy_create_lazy_string_object): Flag bad length values.
15110 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15111 Handle typedefs in incoming type.
15112 (stpy_lazy_string_elt_type): New function.
15113 (gdbpy_extract_lazy_string): Call it.
15114 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15115 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15116 typedefs in incoming type.
15118 2017-03-16 Doug Evans <dje@google.com>
15120 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15121 * guile/scm-type.c (tyscm_scm_to_type): New function.
15123 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15125 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15126 "ULONGEST" for "skip".
15128 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15131 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15132 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15133 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15134 over ptrace peek/poke until end of buffer or error.
15136 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15138 * parse.c (length_of_subexp): Make static.
15139 * parser-defs.h (length_of_subexp): Remove.
15141 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15143 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15146 2017-03-14 Pedro Alves <palves@redhat.com>
15148 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15149 (main): Use std::unique_ptr. Remove calls to
15150 cp_demangled_name_parse_free.
15152 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15154 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15155 alphabsd_store_inferior_registers): Use regcache->ptid instead
15158 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15160 * aix-thread.c (aix_thread_fetch_registers,
15161 aix_thread_store_registers): Use regcache->ptid instead of
15164 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15166 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15167 store_gregs_to_thread, fetch_fpregs_from_thread,
15168 store_fpregs_to_thread): Use regcache->ptid instead of
15171 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15173 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15174 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15175 instead of inferior_ptid.
15177 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15179 * target.c (target_fetch_registers, target_store_registers): Add
15182 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15184 * regcache.h (regcache_get_ptid): New function.
15185 * regcache.c (regcache_get_ptid): New function.
15187 2017-03-13 Mark Wielaard <mark@klomp.org>
15189 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15191 2017-03-10 Keith Seitz <keiths@redhat.com>
15194 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15196 2017-03-08 Pedro Alves <palves@redhat.com>
15199 * infrun.c (start_step_over, do_target_resume, resume)
15200 (restart_threads): Assert we're not resuming a thread that is
15201 meant to be stopped.
15202 (infrun_thread_stop_requested_callback): Delete.
15203 (infrun_thread_stop_requested): If the thread is internally
15204 stopped, queue a pending stop event and clear the thread's
15205 inline-frame state.
15206 (handle_stop_requested): New function.
15207 (handle_syscall_event, handle_inferior_event_1): Use
15208 handle_stop_requested.
15209 (handle_stop_requested): New function.
15210 (handle_signal_stop): Set the thread's stop_signal here instead of
15212 (finish_step_over): Clear step over info unconditionally.
15213 (handle_signal_stop): If the user had interrupted the event
15214 thread, consider the stop a random signal.
15215 (handle_signal_stop) <signal arrived while stepping over
15216 breakpoint>: Don't restart threads here.
15217 (stop_waiting): Don't clear step-over info here.
15219 2017-03-08 Pedro Alves <palves@redhat.com>
15222 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15223 goes to argument 2, not 1.
15225 2017-03-08 Pedro Alves <palves@redhat.com>
15228 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15229 display_gdb_prompt.
15230 (command_line_input): Add comment.
15232 2017-03-08 Pedro Alves <palves@redhat.com>
15235 * tui/tui-file.c (tui_file::write): New.
15236 * tui/tui-file.h (tui_file): Override "write".
15237 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15238 factored out from ...
15239 (tui_puts): ... here.
15240 (tui_putc): Use them.
15241 (tui_write): New function.
15242 * tui/tui-io.h (tui_write): Declare.
15244 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15246 * Makefile.in (SFILES): Replace "environ.c" with
15247 "common/environ.c".
15248 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15249 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15251 * common/environ.c: ... here.
15252 * environ.h: Moved to...
15253 * common/environ.h: ... here.
15255 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15257 * gdbarch.sh (pstring_ptr): New static function.
15258 (gdbarch_disassembler_options): Use it.
15259 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15260 not valid_disassembler_option->name.
15261 * gdbarch.c: Regenerate.
15263 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15265 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15267 2017-03-07 Pedro Alves <palves@redhat.com>
15269 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15271 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15273 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15274 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15275 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15276 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15278 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15280 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15282 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15284 * remote.c (remote_add_target_side_commands): Use range-based
15287 2017-03-03 Yao Qi <yao.qi@linaro.org>
15290 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15292 * valprint.c (common_val_print): Likewise.
15294 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15296 * NEWS: Mention new set/show disassembler-options commands.
15297 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15298 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15299 (prospective_options): New static variable.
15300 (gdb_disassembler::gdb_disassembler): Initialize
15301 m_di.disassembler_options.
15302 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15303 (get_disassembler_options): New function.
15304 (set_disassembler_options): Likewise.
15305 (set_disassembler_options_sfunc): Likewise.
15306 (show_disassembler_options_sfunc): Likewise.
15307 (disassembler_options_completer): Likewise.
15308 (_initialize_disasm): Likewise.
15309 * disasm.h (get_disassembler_options): New prototype.
15310 (set_disassembler_options): Likewise.
15311 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15312 (gdbarch_verify_disassembler_options): Likewise.
15313 * gdbarch.c: Regenerate.
15314 * gdbarch.h: Likewise.
15315 * arm-tdep.c (num_disassembly_options): Delete.
15316 (set_disassembly_style): Likewise.
15317 (arm_disassembler_options): New static variable.
15318 (set_disassembly_style_sfunc): Convert short style name into long
15319 option name. Call set_disassembler_options.
15320 (show_disassembly_style_sfunc): New function.
15321 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15322 set_gdbarch_verify_disassembler_options.
15323 (_initialize_arm_tdep): Delete regnames variable and update callers.
15324 (arm_disassembler_options): Initialize.
15325 (disasm_options): New variable.
15326 (num_disassembly_options): Rename from this...
15327 (num_disassembly_styles): ...to this. Compute by scanning through
15329 (valid_disassembly_styles): Initialize using disasm_options.
15330 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15331 set_arm_regname_option.
15332 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15333 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15334 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15335 set_gdbarch_verify_disassembler_options.
15336 * s390-tdep.c (s390_disassembler_options): New static variable.
15337 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15338 set_gdbarch_verify_disassembler_options.
15340 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15342 * remote.c (remote_add_target_side_condition): Remove "struct"
15343 keyword from range-based for loop.
15345 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15347 * remote.c (remote_add_target_side_condition): Use range-based
15348 for loop. Update comment.
15350 2017-02-27 Yao Qi <yao.qi@linaro.org>
15352 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15354 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15356 * regcache.c (regcache_raw_update): New function.
15357 (regcache_raw_read): Move code to regcache_raw_update.
15358 * regcache.h (regcache_raw_update): New declaration.
15359 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15361 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15363 * dwarf2read.c (create_debug_type_hash_table): Initialize
15364 header.signature and header.type_offset_in_tu.
15366 2017-02-24 Pedro Alves <palves@redhat.com>
15368 * symtab.c (make_file_symbol_completion_list_1): Use
15369 add_symtab_completions.
15371 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15373 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15375 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15377 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15378 I386_MAX_REGISTER_SIZE.
15379 (i386_pseudo_register_write): Likewise.
15380 (i386_process_record): Likewise.
15381 * i387-tdep.c (i387_supply_xsave): Likewise.
15382 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15383 (store_register): Likewise.
15385 2017-02-23 Pedro Alves <palves@redhat.com>
15387 * ada-lang.c: Include "common/function-view.h".
15388 (ada_iterate_over_symbols): Adjust to use function_view as
15390 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15391 (ada_make_symbol_completion_list): Use a lambda.
15392 (ada_exc_search_name_matches): Delete.
15393 (name_matches_regex): New.
15394 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15395 * compile/compile-c-support.c: Include "common/function-view.h".
15396 (print_one_macro): Change prototype to accept a ui_file pointer.
15397 (write_macro_definitions): Use a lambda.
15398 * dwarf2read.c: Include "common/function-view.h".
15399 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15400 (dw2_expand_symtabs_matching): Adjust to use function_view as
15402 * language.h: Include "common/function-view.h".
15403 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15404 function_view as callback type.
15405 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15406 * linespec.c: Include "common/function-view.h".
15407 (collect_info::add_symbol): New method.
15408 (struct symbol_and_data_callback, iterate_inline_only, struct
15409 symbol_matcher_data, iterate_name_matcher): Delete.
15410 (iterate_over_all_matching_symtabs): Adjust to use function_view
15411 as callback type and lambdas.
15412 (iterate_over_file_blocks): Adjust to use function_view as
15414 (decode_compound_collector): Now a class with private fields.
15415 (decode_compound_collector::release_symbols): New method.
15416 (collect_one_symbol): Rename to...
15417 (decode_compound_collector::operator()): ... this and adjust.
15418 (lookup_prefix_sym): decode_compound_collector construction bits
15419 move to decode_compound_collector ctor. Pass the
15420 decode_compound_collector object directly as callback. Remove
15421 cleanups and use decode_compound_collector::release_symbols
15423 (symtab_collector): Now a class with private fields.
15424 (symtab_collector::release_symtabs): New method.
15425 (add_symtabs_to_list): Rename to...
15426 (symtab_collector::operator()): ... this and adjust.
15427 (collect_symtabs_from_filename): symtab_collector construction
15428 bits move to symtab_collector ctor. Pass the symtab_collector
15429 object directly as callback. Remove cleanups and use
15430 symtab_collector::release_symtabs instead.
15431 (collect_symbols): Delete.
15432 (add_matching_symbols_to_info): Use lambdas.
15433 * macrocmd.c (print_macro_callback): Delete.
15434 (info_macro_command): Use a lambda.
15435 (info_macros_command): Pass print_macro_definition as callable
15437 (print_one_macro): Remove 'ignore' parameter.
15438 (macro_list_command): Adjust.
15439 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15440 (macro_for_each_data::user_data): Delete field.
15441 (foreach_macro): Adjust to call the function_view.
15442 (macro_for_each): Adjust to use function_view as callback type.
15443 (foreach_macro_in_scope): Adjust to call the function_view.
15444 (macro_for_each_in_scope): Adjust to use function_view as callback
15446 * macrotab.h: Include "common/function-view.h".
15447 (macro_callback_fn): Declare a prototype instead of a pointer.
15448 Remove "user_data" parameter.
15449 (macro_for_each, macro_for_each_in_scope): Adjust to use
15450 function_view as callback type.
15451 * psymtab.c (partial_map_expand_apply)
15452 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
15453 Adjust to use function_view as callback type and to return bool.
15454 (psym_expand_symtabs_matching): Adjust to use function_view as
15456 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
15457 to use function_view as callback type and to return bool.
15458 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
15460 * symfile.c (expand_symtabs_matching): Adjust to use function_view
15462 * symfile.h: Include "common/function-view.h".
15463 (expand_symtabs_file_matcher_ftype)
15464 (expand_symtabs_symbol_matcher_ftype)
15465 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
15467 (quick_symbol_functions::map_symtabs_matching_filename)
15468 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
15469 function_view as callback type and return bool.
15470 (expand_symtabs_matching): Adjust to use function_view as callback
15472 (maintenance_expand_name_matcher)
15473 (maintenance_expand_file_matcher): Delete.
15474 (maintenance_expand_symtabs): Use lambdas.
15475 * symtab.c (iterate_over_some_symtabs): Adjust to use
15476 function_view as callback types and return bool.
15477 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
15479 (lookup_symtab_callback): Delete.
15480 (lookup_symtab): Use a lambda.
15481 (iterate_over_symbols): Adjust to use function_view as callback
15483 (struct search_symbols_data, search_symbols_file_matches)
15484 (search_symbols_name_matches): Delete.
15485 (search_symbols): Use a pair of lambdas.
15486 (struct add_name_data, add_macro_name, symbol_completion_matcher)
15487 (symtab_expansion_callback): Delete.
15488 (default_make_symbol_completion_list_break_on_1): Use lambdas.
15489 * symtab.h: Include "common/function-view.h".
15490 (iterate_over_some_symtabs): Adjust to use function_view as
15491 callback type and return bool.
15492 (iterate_over_symtabs): Adjust to use function_view as callback
15494 (symbol_found_callback_ftype): Remove 'data' parameter and return
15496 (iterate_over_symbols): Adjust to use function_view as callback
15499 2017-02-23 Pedro Alves <palves@redhat.com>
15501 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
15502 (%.o) <unittests/%.c>: New pattern.
15503 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
15504 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
15505 * common/function-view.h: New file.
15506 * unittests/function-view-selftests.c: New file.
15507 * configure: Regenerate.
15509 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
15511 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
15513 * go32-nat.c (go32_thread_alive): Likewise.
15515 2017-02-23 Yao Qi <yao.qi@linaro.org>
15517 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
15520 2017-02-23 Yao Qi <yao.qi@linaro.org>
15522 * varobj.c (varobj_clear_saved_item): Use delete instead of
15524 (update_dynamic_varobj_children): Likewise.
15526 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15528 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
15530 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
15532 * common/enum-flags.h (enum_flags::enum_flags): Initialize
15533 m_enum_value to 0 in default constructor.
15535 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15537 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
15538 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
15539 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
15540 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
15541 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
15542 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
15543 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
15544 IS_STORE_CONDITIONAL_INSN.
15546 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15548 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
15550 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15552 * NEWS (Changes since GDB 7.12): Add DWARF-5.
15554 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15556 * dwarf2read.c (skip_one_die, read_attribute_value)
15557 (dwarf2_const_value_attr, dump_die_shallow)
15558 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15559 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15561 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15563 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15564 (dwarf_parse_macro_header): Accept DWARF version 5.
15565 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15567 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15569 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15571 * common/common-exceptions.h (enum errors): Likewise.
15572 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15573 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15574 (dwarf_expr_context::execute_stack_op): Likewise.
15575 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15577 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15578 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15579 (show_entry_values_debug, call_site_to_target_addr)
15580 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15581 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15582 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15583 (value_of_dwarf_block_entry, indirect_pieced_value)
15584 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15585 (disassemble_dwarf_expression): Likewise.
15586 * dwarf2read.c (process_die, inherit_abstract_dies)
15587 (read_call_site_scope): Likewise.
15588 * gdbtypes.h (struct func_type, struct call_site_parameter)
15589 (struct call_site): Likewise.
15590 * stack.c (read_frame_arg): Likewise.
15591 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15593 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15595 * defs.h (read_unsigned_leb128): New declaration.
15596 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
15597 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
15598 (dwarf2_find_location_expression): Call also
15599 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
15600 * dwarf2loc.h (dwarf2_version): New declaration.
15601 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
15603 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
15605 (struct dwop_section_names): Add loclists_dwo.
15606 (dwop_section_names): Add .debug_loclists.dwo.
15607 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
15608 (struct dwarf2_per_cu_data): Add dwarf_version.
15609 (struct dwo_sections): Add loclists.
15610 (struct attr_abbrev): Add implicit_const.
15611 (read_indirect_line_string): New declaration.
15612 (read_unsigned_leb128): Delete declaration.
15613 (rcuh_kind): New definition.
15614 (read_and_check_comp_unit_head): Change parameter
15615 is_debug_types_section to section_kind.
15616 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
15617 (read_comp_unit_head): Change parameter abfd to section, add parameter
15618 section_kind. Handle DWARF-5.
15619 (error_check_comp_unit_head): Accept also DWARF version 5.
15620 (read_and_check_comp_unit_head): Change parameter
15621 is_debug_types_section to section_kind.
15622 (read_and_check_type_unit_head): Delete function.
15623 (read_abbrev_offset): Handle DWARF-5.
15624 (create_debug_type_hash_table): Add parameter section_kind. Process
15625 only DW_UT_type. Use signature and type_offset_in_tu from struct
15627 (create_debug_types_hash_table): Update create_debug_type_hash_table
15629 (create_all_type_units): Call create_debug_type_hash_table.
15630 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
15631 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
15633 (skip_one_die): Handle DW_FORM_implicit_const.
15634 (dwarf2_rnglists_process): New function.
15635 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15636 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15637 (read_attribute_value): Handle DW_FORM_implicit_const,
15639 (read_attribute): Handle DW_FORM_implicit_const.
15640 (read_indirect_string_at_offset_from): New function from
15641 read_indirect_string_at_offset.
15642 (read_indirect_string_at_offset): Call
15643 read_indirect_string_at_offset_from.
15644 (read_indirect_line_string_at_offset): New function.
15645 (read_indirect_string): New function comment.
15646 (read_indirect_line_string): New function.
15647 (read_unsigned_leb128): Make it global.
15648 (dwarf2_string_attr): Handle DWARF-5.
15649 (add_include_dir_stub, read_formatted_entries): New functions.
15650 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
15652 (per_cu_header_read_in): Update read_comp_unit_head caller.
15653 (dwarf2_version): New function.
15654 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
15656 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
15659 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15661 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
15663 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15665 * dwarf2read.c (dwarf2_ranges_process): New function from
15666 dwarf2_ranges_read.
15667 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
15668 dwarf2_ranges_process.
15670 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15672 * dwarf2read.c (create_debug_type_hash_table): New function from
15673 create_debug_types_hash_table.
15674 (create_debug_types_hash_table): Call create_debug_type_hash_table.
15675 (create_all_type_units, open_and_init_dwo_file): Update
15676 create_debug_types_hash_table callers.
15678 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15681 * fork-child.c (trace_start_error): Fix thinko. va_end should
15682 refer to 'ap', not 'args'.
15684 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15685 Pedro Alves <palves@redhat.com>
15688 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
15690 * fork-child.c (trace_start_error): New function.
15691 (trace_start_error_with_name): Likewise.
15692 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
15693 * inf-ptrace.c (inf_ptrace_me): Likewise.
15694 * inferior.h (trace_start_error): New prototype.
15695 (trace_start_error_with_name): Likewise.
15697 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
15700 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
15701 NULL before using it.
15702 * symmisc.c (maintenance_print_symbols): Likewise.
15703 (maintenance_print_msymbols): Likewise.
15705 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15707 * NEWS: Add record Python bindings entry.
15709 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15711 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
15713 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
15714 * python/py-record-btrace.c, python/py-record-btrace.h,
15715 python/py-record-full.c, python/py-record-full.h: New file.
15716 * python/py-record.c: Add include for py-record-btrace.h and
15718 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
15719 recpy_instruction_history, recpy_function_call_history, recpy_begin,
15720 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
15721 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
15723 (gdbpy_initialize_btrace): New export.
15724 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
15726 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15728 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
15729 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
15730 * python/py-record.c: New file.
15731 * python/python-internal.h (gdbpy_start_recording,
15732 gdbpy_current_recording, gdpy_stop_recording,
15733 gdbpy_initialize_record): New export.
15734 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
15735 (python_GdbMethods): Add gdbpy_start_recording,
15736 gdbpy_current_recording and gdbpy_stop_recording.
15738 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15740 * record-btrace.c (record_btrace_record_method): New function.
15741 (init_record_btrace_ops): Initialize to_record_method.
15742 * record-full.c (record_full_record_method): New function.
15743 (init_record_full_ops, init_record_full_core_ops): Add
15744 record_full_record_method.
15745 * record.h (enum record_method): New enum.
15746 * target-debug.h (target_debug_print_enum_record_method: New define.
15747 * target-delegates.c: Regenerate.
15748 * target.c (target_record_method): New function.
15749 * target.h: Include record.h.
15750 (struct target_ops) <to_record_method>: New field.
15751 (target_record_method): New export.
15753 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15755 * record.h (record_start, record_stop): New export.
15756 * record.c (record_start, record_stop): New function.
15758 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15760 * btrace.c (btrace_fetch): Copy function call segments pointer
15762 (btrace_clear): Clear the vector.
15763 (btrace_find_insn_by_number): Use binary search to find the correct
15764 function call segment.
15765 * btrace.h (brace_fun_p): New typedef.
15766 (struct btrace_thread_info) <functions>: New field.
15768 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15770 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
15771 * btrace.c (btrace_decode_error): ... here. New function.
15772 * btrace.h (btrace_decode_error): New export.
15774 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15776 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
15777 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
15778 btrace_find_insn_by_number): Remove special case for gaps.
15779 * btrace.h (btrace_insn_get_error): New export.
15780 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
15781 * record-btrace.c (btrace_insn_history): Print number for gaps.
15782 (record_btrace_info, record_btrace_goto): Handle gaps.
15784 2017-02-14 Tom Tromey <tom@tromey.com>
15787 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
15789 * python/py-evts.c (gdbpy_initialize_py_events): Add
15790 before_prompt registry.
15791 * python/py-events.h (events_object) <before_prompt>: New field.
15793 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
15795 * btrace.c (ftrace_new_switch): Preserve up link and flags.
15797 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
15799 * symfile (_initialize_symfile): Add usage text to the load command's
15802 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
15804 * utils.c (defaulted_query): Don't query on secondary UIs.
15806 2017-02-10 Tom Tromey <tom@tromey.com>
15808 * rust-lang.c (rust_get_disr_info): Remove unused variable.
15810 2017-02-10 Tom Tromey <tom@tromey.com>
15812 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
15814 * python/py-type.c (typy_legacy_template_argument): Remove
15815 unnecessary "cleanup" local.
15817 2017-02-10 Tom Tromey <tom@tromey.com>
15819 * python/python.c (do_start_initialization): New function, from
15820 _initialize_python.
15821 (_initialize_python): Call do_start_initialization.
15822 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
15825 2017-02-10 Tom Tromey <tom@tromey.com>
15827 * python/py-prettyprint.c (pretty_print_one_value): Use
15830 2017-02-10 Tom Tromey <tom@tromey.com>
15832 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
15833 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
15835 * python/py-type.c (field_new): Use gdbpy_ref.
15836 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
15838 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
15839 (py_free_pspace): Likewise.
15840 (pspace_to_pspace_object): Likewise.
15841 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
15842 (py_free_objfile): Likewise.
15843 (objfile_to_objfile_object): Likewise.
15844 * python/py-inferior.c (delete_thread_object): Use
15846 (infpy_read_memory): Likewise.
15847 (py_free_inferior): Likewise.
15848 * python/py-evtregistry.c (create_eventregistry_object): Use
15850 * python/py-event.c (create_event_object): Use gdbpy_ref.
15852 2017-02-10 Tom Tromey <tom@tromey.com>
15854 * python/py-ref.h (gdbpy_ref_policy): Now a template.
15855 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
15857 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
15858 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
15859 python/py-exitedevent.c, python/py-finishbreakpoint.c,
15860 python/py-framefilter.c, python/py-function.c,
15861 python/py-inferior.c, python/py-infevents.c,
15862 python/py-linetable.c, python/py-newobjfileevent.c,
15863 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
15864 python/py-signalevent.c, python/py-stopevent.c,
15865 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
15866 python/py-unwind.c, python/py-utils.c, python/py-value.c,
15867 python/py-varobj.c, python/py-xmethods.c, python/python.c,
15868 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
15870 2017-02-10 Tom Tromey <tom@tromey.com>
15872 * ui-out.h (ui_out_emit_type): New class.
15873 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
15874 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
15875 and ui_out_emit_tuple.
15876 (enumerate_locals): Likewise.
15877 (py_mi_print_variables, py_print_locals, py_print_args): Use
15879 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
15881 * common/gdb_optional.h: New file.
15883 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
15885 * MAINTAINERS (Write After Approval): Update my e-mail address.
15887 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
15890 * breakpoint.c (_initialize_breakpoint): Update the help description
15891 of the 'commands' command to indicate that it takes a list argument.
15893 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
15895 * interps.c (current_interp_set_logging): Remove "return".
15897 2017-02-09 Gary Benson <gbenson@redhat.com>
15899 * symtab.c (add_symtab_completions): Prevent NULL pointer
15902 2017-02-08 Pedro Alves <palves@redhat.com>
15904 * interps.c (interp::interp): Remove reference to quiet_p.
15905 (interp_set): Make static. Remove dead "Switching to" output
15907 (interp_quiet_p, interp_set_quiet): Delete.
15908 (interpreter_exec_cmd): Don't set the interpreter quiet.
15909 * interps.h (interp_quiet_p): Make static.
15910 (class interp) <quiet_p>: Remove field
15912 2017-02-08 Jerome Guitton <guitton@adacore.com>
15914 * cli/cli-decode.c (find_command_name_length): Make it extern.
15915 * cli/cli-decode.h (find_command_name_length): Declare.
15916 * cli/cli-script.c (command_name_equals, line_first_arg):
15918 (process_next_line): Use cli-decode to parse command names.
15919 (build_command_line): Make args a constant pointer.
15921 2017-02-08 Jerome Guitton <guitton@adacore.com>
15923 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
15924 Remove case-insensitive search.
15926 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
15928 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
15929 at the end of the line. Avoids an ARI warning.
15931 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
15933 * NEWS: Mention support for record/replay of Intel 64 rdrand and
15934 rdseed instructions.
15935 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
15937 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
15940 Provide and use sparc32 and sparc64 target description XML files.
15941 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
15942 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
15943 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
15944 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
15945 * features/sparc/sparc32-solaris.xml: New file.
15946 * features/sparc/sparc64-solaris.xml: New file.
15947 * features/sparc/sparc32-solaris.c: Generated.
15948 * features/sparc/sparc64-solaris.c: Generated.
15949 * sparc-tdep.h: Account for differences in target descriptions.
15950 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
15951 (sparc32_register_type): Use target provided registers.
15952 (validate_tdesc_registers): New function.
15953 (sparc32_gdbarch_init): Use tdesc_has_registers.
15954 Set pseudoregister functions.
15955 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
15956 (sparc64_register_type): Use target provided registers.
15957 (sparc64_init_abi): Set pseudoregister functions.
15959 2017-02-03 Tom Tromey <tom@tromey.com>
15962 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
15963 with a single member.
15965 2017-02-03 Pedro Alves <palves@redhat.com>
15967 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
15968 (cli_interp_base::~cli_interp_base): New.
15969 (cli_interp): New struct.
15970 (as_cli_interp): Cast the interp itself to cli_interp.
15971 (cli_interpreter_pre_command_loop): Rename to ...
15972 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
15974 (cli_interpreter_init): Rename to ...
15975 (cli_interp::init): ... this. Remove 'self' parameter. Use
15976 boolean. Make extern.
15977 (cli_interpreter_resume): Rename to ...
15978 (cli_interp::resume): ... this. Remove 'data' parameter. Make
15980 (cli_interpreter_suspend): Rename to ...
15981 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
15983 (cli_interpreter_exec): Rename to ...
15984 (cli_interp::exec): ... this. Remove 'data' parameter. Make
15986 (cli_interpreter_supports_command_editing): Rename to ...
15987 (cli_interp_base::supports_command_editing): ... this. Remove
15988 'interp' parameter. Make extern.
15989 (cli_ui_out): Rename to ...
15990 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
15992 (cli_set_logging): Rename to ...
15993 (cli_interp_base::set_logging): ... this. Remove 'interp'
15994 parameter. Make extern.
15995 (cli_interp_procs): Delete.
15996 (cli_interp_factory): Adjust to use "new".
15997 * cli/cli-interp.h: Include "interps.h".
15998 (struct cli_interp_base): New struct.
15999 * interps.c (struct interp): Delete. Fields moved to interps.h.
16000 (interp_new): Delete.
16001 (interp::interp, interp::~interp): New.
16002 (interp_set): Use bool, and return void. Assume the interpreter
16003 has suspend, init and resume methods, and that the all return
16005 (set_top_level_interpreter): interp_set returns void.
16006 (interp_ui_out): Adapt.
16007 (current_interp_set_logging): Adapt.
16008 (interp_data): Delete.
16009 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16010 (interp_exec): Adapt.
16011 (top_level_interpreter_data): Delete.
16012 * interps.h (interp_init_ftype, interp_resume_ftype)
16013 (interp_suspend_ftype, interp_exec_ftype)
16014 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16015 (class interp): New.
16016 (interp_new): Delete.
16017 (interp_set): Now returns void. Use bool.
16018 (interp_data, top_level_interpreter_data): Delete.
16019 * mi/mi-common.h: Include interps.h.
16020 (class mi_interp): Inherit from interp. Define a ctor. Declare
16021 init, resume, suspect, exec, interp_ui_out, set_logging and
16022 pre_command_loop methods.
16023 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16024 (mi_interpreter_init): Rename to ...
16025 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16026 bool, return void and make extern. Adjust.
16027 (mi_interpreter_resume): ... Rename to ...
16028 (mi_interp::resume): ... this. Remove the 'data' parameter,
16029 return void and make extern. Adjust.
16030 (mi_interpreter_suspend): ... Rename to ...
16031 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16032 return void and make extern. Adjust.
16033 (mi_interpreter_exec): ... Rename to ...
16034 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16036 (mi_interpreter_pre_command_loop): ... Rename to ...
16037 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16038 parameter and make extern.
16039 (mi_on_normal_stop_1): Adjust.
16040 (mi_ui_out): Rename to ...
16041 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16042 parameter and make extern. Adjust.
16043 (mi_set_logging): Rename to ...
16044 (mi_interp::set_logging): ... this. Remove the 'interp'
16045 parameter and make extern. Adjust.
16046 (mi_interp_procs): Delete.
16047 (mi_interp_factory): Adjust to use 'new'.
16048 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16049 (mi_print_exception, mi_execute_command, mi_load_progress):
16051 * tui/tui-interp.c (tui_interp): New class.
16052 (as_tui_interp): Return a tui_interp pointer.
16053 (tui_on_normal_stop, tui_on_signal_received)
16054 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16055 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16056 to use interp::interp_ui_out.
16057 (tui_init): Rename to ...
16058 (tui_interp::init): ... this. Remove the 'self' parameter, use
16059 bool, return void and make extern. Adjust.
16060 (tui_resume): Rename to ...
16061 (tui_interp::resume): ... this. Remove the 'data' parameter,
16062 return void and make extern. Adjust.
16063 (tui_suspend): Rename to ...
16064 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16065 return void and make extern. Adjust.
16066 (tui_ui_out): Rename to ...
16067 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16068 parameter, and make extern. Adjust.
16069 (tui_exec): Rename to ...
16070 (tui_interp::exec): ... this. Remove the 'data' parameter and
16072 (tui_interp_procs): Delete.
16073 (tui_interp_factory): Use "new".
16075 2017-02-02 Tom Tromey <tom@tromey.com>
16077 * rust-exp.y (ends_raw_string, space_then_number)
16078 (rust_identifier_start_p): Return bool.
16079 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16080 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16081 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16082 (rust_chartype_p): Return bool.
16083 (val_print_struct, rust_print_struct_def, rust_print_type):
16085 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16088 2017-02-02 Tom Tromey <tom@tromey.com>
16090 * rust-lang.c: Reindent.
16092 2017-02-02 Tom Tromey <tom@tromey.com>
16094 * rust-lang.h (rust_crate_for_block): Update.
16095 * rust-lang.c (rust_crate_for_block): Return std::string.
16096 (rust_get_disr_info): Use std:;string, not
16097 gdb::unique_xmalloc_ptr.
16098 * rust-exp.y (crate_name): Update.
16100 2017-02-02 Pedro Alves <palves@redhat.com>
16102 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16103 field out of gdb_disassembler_test and make it static.
16105 2017-02-02 Pedro Alves <palves@redhat.com>
16107 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16108 mi1_interp and mi_interp fields.
16110 2017-02-02 Pedro Alves <palves@redhat.com>
16112 * cli/cli-interp.c (struct saved_output_files, saved_output):
16113 Moved from cli/cli-logging.c.
16114 (cli_set_logging): New function.
16115 (cli_interp_procs): Install cli_set_logging.
16116 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16118 * cli/cli-logging.c (struct saved_output_files, saved_output):
16119 Moved to cli/cli-interp.c.
16120 (pop_output_files): Don't save outputs here.
16121 (make_logging_output): New function.
16122 (handle_redirections): Don't build tee nor save previous outputs
16124 * interps.c (current_interp_set_logging): Change prototype.
16125 Assume there's always a set_logging_proc method installed.
16126 * interps.h (interp_set_logging_ftype): Change prototype.
16127 (current_interp_set_logging): Change prototype and adjust comment.
16128 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16129 use make_logging_output.
16130 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16131 2017-02-02 Pedro Alves <palves@redhat.com>
16133 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16135 (set_logging_overwrite): ... here.
16136 (logging_no_redirect_file): Delete.
16137 (set_logging_redirect): Don't handle redirection on the fly.
16138 Instead warn that "logging off" / "logging on" is necessary.
16139 (pop_output_files): Delete references to logging_no_redirect_file.
16140 (show_logging_command): Always speak in terms of what will happen
16141 once logging is reenabled.
16143 2017-02-02 Pedro Alves <palves@redhat.com>
16145 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16147 2017-02-02 Pedro Alves <palves@redhat.com>
16149 * disasm.c (gdb_pretty_print_insn): Rename to ...
16150 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16151 Remove gdbarch parameter. Adapt to clear the object's buffers
16152 instead of allocating new buffers, and to print using the object's
16153 gdb_disassembler instead of calling gdb_print_insn.
16154 (dump_insns): Use gdb_pretty_print_disassembler.
16155 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16156 (gdb_pretty_print_disassembler): New class.
16157 * record-btrace.c (btrace_insn_history): Use
16158 gdb_pretty_print_disassembler.
16160 2017-02-02 Pedro Alves <palves@redhat.com>
16162 * ada-lang.c (type_as_string): Use string_file.
16163 * ada-valprint.c (ada_print_floating): Use string_file.
16164 * ada-varobj.c (ada_varobj_scalar_image)
16165 (ada_varobj_get_value_image): Use string_file.
16166 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16167 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16168 * breakpoint.c (update_inserted_breakpoint_locations)
16169 (insert_breakpoint_locations, reattach_breakpoints)
16170 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16171 (print_it_watchpoint): Use string_file.
16172 (save_breakpoints): Use stdio_file.
16173 * c-exp.y (oper): Use string_file.
16174 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16176 (pop_output_files): Use delete.
16177 (handle_redirections): Use stdio_file and tee_file.
16178 * cli/cli-setshow.c (do_show_command): Use string_file.
16179 * compile/compile-c-support.c (c_compute_program): Use
16181 * compile/compile-c-symbols.c (generate_vla_size): Take a
16182 'string_file &' instead of a 'ui_file *'.
16183 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16184 of a 'ui_file *'. Use string_file.
16185 (generate_c_for_variable_locations): Take a 'string_file &'
16186 instead of a 'ui_file *'.
16187 * compile/compile-internal.h (generate_c_for_for_one_variable):
16188 Take a 'string_file &' instead of a 'ui_file *'.
16189 * compile/compile-loc2c.c (push, pushf, unary, binary)
16190 (print_label, pushf_register_address, pushf_register)
16191 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16192 'ui_file *'. Adjust.
16193 * compile/compile.c (compile_to_object): Use string_file.
16194 * compile/compile.h (compile_dwarf_expr_to_c)
16195 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16197 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16198 (replace_typedefs_qualified_name): Use string_file and
16200 * disasm.c (gdb_pretty_print_insn): Use string_file.
16201 (gdb_disassembly): Adjust reference the null_stream global.
16202 (do_ui_file_delete): Delete.
16203 (gdb_insn_length): Use null_stream.
16204 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16205 * dwarf2loc.c (dwarf2_compile_property_to_c)
16206 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16207 'string_file &' instead of a 'ui_file *'.
16208 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16209 * dwarf2read.c (do_ui_file_peek_last): Delete.
16210 (dwarf2_compute_name): Use string_file.
16211 * event-top.c (gdb_setup_readline): Use stdio_file.
16212 * gdbarch.sh (verify_gdbarch): Use string_file.
16213 * gdbtypes.c (safe_parse_type): Use null_stream.
16214 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16216 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16217 'string_file *' instead of a 'ui_file *'.
16218 (gdbscm_arch_disassemble): Use string_file.
16219 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16220 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16221 inherits from ui_file.
16222 (ioscm_file_port_delete, ioscm_file_port_rewind)
16223 (ioscm_file_port_put): Delete.
16224 (ioscm_file_port_write): Rename to ...
16225 (ioscm_file_port::write): ... this. Remove file_port_magic
16227 (ioscm_file_port_new): Delete.
16228 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16230 * guile/scm-type.c (tyscm_type_name): Use string_file.
16231 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16233 * infcmd.c (print_return_value_1): Use string_file.
16234 * infrun.c (print_target_wait_results): Use string_file.
16235 * language.c (add_language): Use string_file.
16236 * location.c (explicit_to_string_internal): Use string_file.
16237 * main.c (captured_main_1): Use null_file.
16238 * maint.c (maintenance_print_architecture): Use stdio_file.
16239 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16240 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16241 event_channel>: Change type to mi_console_file pointer.
16242 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16243 (mi_console_file_delete): Delete.
16244 (struct mi_console_file): Delete.
16245 (mi_console_file_magic): Delete.
16246 (mi_console_file_new): Delete.
16247 (mi_console_file::mi_console_file): New.
16248 (mi_console_file_delete): Delete.
16249 (mi_console_file_fputs): Delete.
16250 (mi_console_file::write): New.
16251 (mi_console_raw_packet): Delete.
16252 (mi_console_file::flush): New.
16253 (mi_console_file_flush): Delete.
16254 (mi_console_set_raw): Rename to ...
16255 (mi_console_file::set_raw): ... this.
16256 * mi/mi-console.h (class mi_console_file): New class.
16257 (mi_console_file_new, mi_console_set_raw): Delete.
16258 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16259 (mi_set_logging): Use delete and tee_file. Adjust.
16260 * mi/mi-main.c (output_register): Use string_file.
16261 (mi_cmd_data_evaluate_expression): Use string_file.
16262 (mi_cmd_data_read_memory): Use string_file.
16263 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16264 * mi/mi-out.c (mi_ui_out::main_stream): New.
16265 (mi_ui_out::rewind): Use main_stream and
16267 (mi_ui_out::put): Use main_stream and string_file.
16268 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16269 Allocate a 'string_file' instead.
16270 (mi_out_new): Don't allocate a mem_fileopen stream here.
16271 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16272 (mi_ui_out::main_stream): Declare method.
16273 * printcmd.c (eval_command): Use string_file.
16274 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16275 * python/py-arch.c (archpy_disassemble): Use string_file.
16276 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16277 * python/py-frame.c (frapy_str): Use string_file.
16278 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16280 * python/py-type.c (typy_str): Use string_file.
16281 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16282 * python/py-value.c (valpy_str): Use string_file.
16283 * record-btrace.c (btrace_insn_history): Use string_file.
16284 * regcache.c (regcache_print): Use stdio_file.
16285 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16286 * remote.c (escape_buffer): Use string_file.
16287 * rust-lang.c (rust_get_disr_info): Use string_file.
16288 * serial.c (serial_open_ops_1): Use stdio_file.
16289 (do_serial_close): Use delete.
16290 * stack.c (print_frame_arg): Use string_file.
16291 (print_frame_args): Remove local mem_fileopen stream, not used.
16292 (print_frame): Use string_file.
16293 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16294 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16295 Take a 'string_file *' instead of a 'ui_file *'.
16296 * top.c (new_ui): Use stdio_file and stderr_file.
16297 (free_ui): Use delete.
16298 (execute_command_to_string): Use string_file.
16299 (quit_confirm): Use string_file.
16300 * tracepoint.c (collection_list::append_exp): Use string_file.
16301 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16302 * tui/tui-file.c: Don't include "ui-file.h".
16303 (enum streamtype, struct tui_stream): Delete.
16304 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16305 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16306 (tui_file::tui_file): New method.
16307 (tui_file_fputs): Delete.
16308 (tui_file_get_strbuf): Delete.
16309 (tui_file::puts): New method.
16310 (tui_file_adjust_strbuf): Delete.
16311 (tui_file_flush): Delete.
16312 (tui_file::flush): New method.
16313 * tui/tui-file.h: Tweak intro comment.
16315 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16316 (tui_file_adjust_strbuf): Delete declarations.
16317 (class tui_file): New class.
16318 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16319 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16320 (tui_register_format): Use string_stream.
16321 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16322 (tui_get_function_from_frame): Use string_file.
16323 * typeprint.c (type_to_string): Use string_file.
16324 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16325 (null_stream): New global.
16326 (ui_file_delete): Delete.
16327 (ui_file::ui_file): New.
16328 (null_file_isatty): Delete.
16329 (ui_file::~ui_file): New.
16330 (null_file_rewind): Delete.
16331 (ui_file::printf): New.
16332 (null_file_put): Delete.
16333 (null_file_flush): Delete.
16334 (ui_file::putstr): New.
16335 (null_file_write): Delete.
16336 (ui_file::putstrn): New.
16337 (null_file_read): Delete.
16338 (ui_file::putc): New.
16339 (null_file_fputs): Delete.
16340 (null_file_write_async_safe): Delete.
16341 (ui_file::vprintf): New.
16342 (null_file_delete): Delete.
16343 (null_file::write): New.
16344 (null_file_fseek): Delete.
16345 (null_file::puts): New.
16346 (ui_file_data): Delete.
16347 (null_file::write_async_safe): New.
16348 (gdb_flush, ui_file_isatty): Adjust.
16349 (ui_file_put, ui_file_rewind): Delete.
16350 (ui_file_write): Adjust.
16351 (ui_file_write_for_put): Delete.
16352 (ui_file_write_async_safe, ui_file_read): Adjust.
16353 (ui_file_fseek): Delete.
16354 (fputs_unfiltered): Adjust.
16355 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16356 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16357 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16358 (set_ui_file_data): Delete.
16359 (string_file::~string_file, string_file::write)
16360 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16361 (do_ui_file_as_string, ui_file_as_string): Delete.
16362 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16363 (struct mem_file): Delete.
16364 (mem_file_new): Delete.
16365 (stdio_file::stdio_file): New.
16366 (mem_file_delete): Delete.
16367 (stdio_file::stdio_file): New.
16368 (mem_fileopen): Delete.
16369 (stdio_file::~stdio_file): New.
16370 (mem_file_rewind): Delete.
16371 (stdio_file::set_stream): New.
16372 (mem_file_put): Delete.
16373 (stdio_file::open): New.
16374 (mem_file_write): Delete.
16375 (stdio_file_magic, struct stdio_file): Delete.
16376 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16377 (stdio_file::flush): New.
16378 (stdio_file_read): Rename to ...
16379 (stdio_file::read): ... this. Adjust.
16380 (stdio_file_write): Rename to ...
16381 (stdio_file::write): ... this. Adjust.
16382 (stdio_file_write_async_safe): Rename to ...
16383 (stdio_file::write_async_safe) ... this. Adjust.
16384 (stdio_file_fputs): Rename to ...
16385 (stdio_file::puts) ... this. Adjust.
16386 (stdio_file_isatty): Delete.
16387 (stdio_file_fseek): Delete.
16388 (stdio_file::isatty): New.
16389 (stderr_file_write): Rename to ...
16390 (stderr_file::write) ... this. Adjust.
16391 (stderr_file_fputs): Rename to ...
16392 (stderr_file::puts) ... this. Adjust.
16393 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16394 (stderr_file::stderr_file): New.
16395 (tee_file_magic): Delete.
16396 (struct tee_file): Delete.
16397 (tee_file::tee_file): New.
16398 (tee_file_new): Delete.
16399 (tee_file::~tee_file): New.
16400 (tee_file_delete): Delete.
16401 (tee_file_flush): Rename to ...
16402 (tee_file::flush): ... this. Adjust.
16403 (tee_file_write): Rename to ...
16404 (tee_file::write): ... this. Adjust.
16405 (tee_file::write_async_safe): New.
16406 (tee_file_fputs): Rename to ...
16407 (tee_file::puts): ... this. Adjust.
16408 (tee_file_isatty): Rename to ...
16409 (tee_file::isatty): ... this. Adjust.
16410 * ui-file.h (struct obstack, struct ui_file): Don't
16412 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16413 (ui_file_write_ftype)
16414 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16415 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16416 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16417 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16418 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16419 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16420 (set_ui_file_fseek): Delete.
16421 (ui_file_data, ui_file_delete, ui_file_rewind)
16422 (struct ui_file): New.
16424 (class null_file): New.
16425 (null_stream): Declare.
16426 (ui_file_write_for_put, ui_file_put): Delete.
16427 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16429 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16430 (gdb_fopen, tee_file_new): Delete.
16431 (struct string_file): New.
16432 (struct stdio_file): New.
16433 (stdio_file_up): New.
16434 (struct stderr_file): New.
16435 (class tee_file): New.
16436 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16437 of a 'ui_file *'. Adjust.
16438 * ui-out.h (class ui_out) <field_stream>: Likewise.
16439 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16440 (null_stream): Delete.
16441 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16443 * utils.h (struct ui_file): Delete forward declaration..
16444 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16445 (error_stream): Take a 'string_file &' instead of a
16447 * varobj.c (varobj_value_get_print_value): Use string_file.
16448 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
16449 * gdbarch.c: Regenerate.
16451 2017-02-02 Pedro Alves <palves@redhat.com>
16453 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
16454 (gdb_pretty_print_insn): ... this. Now a free function. Add back
16455 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
16456 Adjust to call gdb_print_insn instead of
16457 gdb_disassembler::print_insn.
16458 (dump_insns, do_mixed_source_and_assembly_deprecated)
16459 (do_mixed_source_and_assembly, do_assembly_only): Add back a
16460 'gdbarch' parameter. Remove gdb_disassembler parameter.
16461 (gdb_disassembly): Don't allocate a gdb_disassembler here.
16462 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
16464 (gdb_pretty_print_insn): Re-add declaration.
16465 * record-btrace.c (btrace_insn_history): Don't allocate a
16466 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
16468 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
16470 * disasm.h (gdb_disassembly): Remove file_string parameter.
16471 * disasm.c (gdb_disassembly): Likewise.
16472 * cli/cli-cmds.c (print_disassembly): Adapt.
16473 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
16474 * stack.c (do_gdb_disassembly): Likewise.
16476 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
16478 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
16479 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
16480 targets. And if the implicit value is longer than needed, extract
16481 the first bytes instead of the "least significant" ones.
16483 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16485 * btrace.c (btrace_enable): Do not call btrace_add_pc for
16486 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
16487 (btrace_fetch): Assert can_access_registers_ptid.
16488 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
16489 validate_registers_access.
16491 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16493 * gdbthread.h (can_access_registers_ptid): New.
16494 * thread.c (can_access_registers_ptid): New.
16496 2017-02-01 Pedro Alves <palves@redhat.com>
16498 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
16500 2017-01-31 Pedro Alves <palves@redhat.com>
16502 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
16505 2017-01-31 Pedro Alves <palves@redhat.com>
16507 * stack.c (print_frame_args): Remove local mem_fileopen stream,
16510 2017-01-31 Pedro Alves <palves@redhat.com>
16512 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
16514 2017-01-31 Pedro Alves <palves@redhat.com>
16516 * common/scoped_restore.h
16517 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
16518 change the value's parameter type to T2.
16519 (make_scoped_restore): Likewise.
16521 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16522 Richard Henderson <rth@redhat.com>
16524 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
16525 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
16526 GS_BASE for older kernels.
16527 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
16528 GS_BASE for older kernels.
16529 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
16530 and GS_BASE to the offset table.
16531 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
16532 system register group.
16533 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
16535 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
16537 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
16538 AMD64_GSBASE_REGNUM.
16539 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
16540 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
16541 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
16542 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
16543 i386/64bit-segments.xml in those rules.
16544 * features/i386/64bit-segments.xml: New file.
16545 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
16546 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
16547 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
16548 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
16549 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
16550 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
16551 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
16552 * features/i386/amd64-avx-linux.c: Regenerated.
16553 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
16554 * features/i386/amd64-avx-mpx.c: Regenerated.
16555 * features/i386/amd64-avx512-linux.c: Regenerated.
16556 * features/i386/amd64-linux.c: Regenerated.
16557 * features/i386/amd64-mpx-linux.c: Regenerated.
16558 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16559 * features/i386/i386-avx-mpx.c: Regenerated.
16560 * features/i386/x32-avx-linux.c: Regenerated.
16561 * features/i386/x32-avx512-linux.c: Regenerated.
16562 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16563 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16564 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16565 * regformats/i386/amd64-linux.dat: Regenerated.
16566 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16567 * regformats/i386/x32-avx-linux.dat: Regenerated.
16568 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16569 * regformats/i386/x32-linux.dat: Regenerated.
16571 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16573 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16574 Set to AMD64_NUM_REGS.
16576 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16578 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16579 that checks validity of a register number.
16581 2017-01-27 Kees Cook <keescook@google.com>
16583 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16584 fetch_fpregs if target has fpa registers.
16585 (arm_linux_store_inferior_registers): Call store_fpregs if target
16588 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16590 * cris-tdep.c (cris_gdbarch_init): Remove check for
16591 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16593 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16595 * corelow.c (get_core_register_section): Check for regset
16596 existence before checking for REGSET_VARIABLE_SIZE.
16598 2017-01-26 Yao Qi <yao.qi@linaro.org>
16599 Pedro Alves <palves@redhat.com>
16602 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
16603 call memory_error, save memaddr instead.
16604 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
16605 negative, cal memory_error.
16606 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
16608 2017-01-26 Yao Qi <yao.qi@linaro.org>
16610 * disasm-selftests.c (memory_error_test): New function.
16611 (_initialize_disasm_selftests): Register memory_error_test.
16613 2017-01-26 Yao Qi <yao.qi@linaro.org>
16615 * Makefile.in (SFILES): Add disasm-selftests.c and
16617 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
16618 * disasm-selftests.c: New file.
16619 * selftest-arch.c: New file.
16620 * selftest-arch.h: New file.
16622 2017-01-26 Yao Qi <yao.qi@linaro.org>
16624 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
16625 to bfd_arch_mep. Don't return 0 if section is not
16626 found. Call print_insn_mep.
16628 2017-01-26 Pedro Alves <palves@redhat.com>
16629 Yao Qi <yao.qi@linaro.org>
16631 * arm-tdep.c: Include "disasm.h".
16632 (gdb_print_insn_arm): Update code to get gdbarch.
16633 * disasm.c (dis_asm_read_memory): Change it to
16634 gdb_disassembler::dis_asm_read_memory.
16635 (dis_asm_memory_error): Likewise.
16636 (dis_asm_print_address): Likewise.
16637 (gdb_pretty_print_insn): Change it to
16638 gdb_disassembler::pretty_print_insn.
16639 (dump_insns): Add one argument gdb_disassemlber. All
16641 (do_mixed_source_and_assembly_deprecated): Likewise.
16642 (do_mixed_source_and_assembly): Likewise.
16643 (do_assembly_only): Likewise.
16644 (gdb_disassembler::gdb_disassembler): New.
16645 (gdb_disassembler::print_insn): New.
16646 * disasm.h (class gdb_disassembler): New.
16647 (gdb_pretty_print_insn): Remove declaration.
16648 (gdb_disassemble_info): Likewise.
16649 * guile/scm-disasm.c (class gdbscm_disassembler): New.
16650 (gdbscm_disasm_read_memory_worker): Update.
16651 (gdbscm_disasm_read_memory): Update.
16652 (gdbscm_disasm_memory_error): Remove.
16653 (gdbscm_disasm_print_address): Remove.
16654 (gdbscm_disassembler::gdbscm_disassembler): New.
16655 (gdbscm_print_insn_from_port): Update.
16656 * mips-tdep.c: Include disasm.h.
16657 (gdb_print_insn_mips): Update code to get gdbarch.
16658 * record-btrace.c (btrace_insn_history): Update.
16659 * spu-tdep.c: Include disasm.h.
16660 (struct spu_dis_asm_data): Remove.
16661 (struct spu_dis_asm_info): New.
16662 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
16664 (gdb_print_insn_spu): Cast disassemble_info to
16667 2017-01-26 Yao Qi <yao.qi@linaro.org>
16669 * disasm.c (do_ui_file_delete): Delete.
16670 (gdb_insn_length): Move code creating stream to ...
16671 * utils.c (null_stream): ... here. New function.
16672 * utils.h (null_stream): Declare.
16674 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16676 * python/py-inferior.c (find_thread_object): Return directly
16677 from the loop. Remove "found" variable.
16679 2017-01-21 Joel Brobecker <brobecker@adacore.com>
16681 GDB 7.12.1 released.
16683 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16685 * python/py-function.c (fnpy_call): Reorder declarations to have
16686 the gdbpy_enter object declared first.
16687 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
16689 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16692 * python/python-internal.h (PyMem_RawMalloc): Define for
16694 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
16695 PyMem_RawMalloc instead of PyMem_Malloc.
16697 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
16698 Luis Machado <lgustavo@codesourcery.com>
16700 * NEWS (New commands): Mention flash-erase.
16701 (New MI commands): Mention target-flash-erase.
16702 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
16704 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
16705 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
16706 * target.c (flash_erase_command): New function.
16707 (initialize_targets): Add new flash-erase command.
16708 * target.h (flash_erase_command): New declaration.
16710 2017-01-20 Joel Brobecker <brobecker@adacore.com>
16712 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
16713 HAVE_SYS_PROCFS_H is defined.
16715 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16717 * remote.c (struct cached_reg): Change data into a pointer.
16718 * (stop_reply_dtr): Free data pointers before deleting vector.
16719 (process_stop_reply): Likewise.
16720 (remote_parse_stop_reply): Allocate space for data
16722 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16724 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
16726 (amd64_pseudo_register_read_value): Likewise.
16727 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
16728 (store_register_using_P): Likewise.
16729 * regcache.c (regcache_xfer_part): Likewise.
16731 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
16733 Split real and pseudo registers.
16734 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
16735 (sparc32_pseudo_regnum): New enum.
16736 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
16737 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
16738 (SPARC32_CP0_REGISTERS): New macro.
16739 (sparc32_pseudo_register_name): New function.
16740 (sparc32_register_name): Use sparc32_pseudo_register_name.
16741 (sparc32_pseudo_register_type): New function.
16742 (sparc32_register_type): Use sparc32_pseudo_register_type.
16743 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
16744 pseudo register numbers.
16745 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
16746 (SPARC64_CP0_REGISTERS): New macro.
16747 (sparc64_pseudo_register_name): New function.
16748 (sparc64_register_name): Use sparc64_pseudo_register_name.
16749 (sparc64_pseudo_register_type): New function.
16750 (sparc64_register_type): Use sparc64_pseudo_register_type.
16751 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
16752 pseudo register numbers.
16753 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
16754 sparc64_store_arguments): Handle pseudo register numbers.
16756 2017-01-13 Yao Qi <yao.qi@linaro.org>
16758 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
16759 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
16761 (getpkt_or_notif_sane_1): Likewise.
16763 2017-01-13 Yao Qi <yao.qi@linaro.org>
16765 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
16766 of CC. Pass "-x c++-header" instead of "-x c".
16768 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16770 * remote.c (remote_can_async_p): Update comment.
16772 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16774 * linux-nat.c (linux_nat_can_async_p): Update comment.
16776 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16778 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
16780 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
16782 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
16784 2017-01-10 Tom Tromey <tom@tromey.com>
16786 * python/py-type.c (typy_legacy_template_argument): Update.
16787 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
16788 ~demangle_parse_info): Declare new members.
16789 (cp_demangled_name_to_comp): Return unique_ptr.
16790 (cp_demangled_name_parse_free)
16791 (make_cleanup_cp_demangled_name_parse_free)
16792 (cp_new_demangle_parse_info): Remove.
16793 * cp-support.c (do_demangled_name_parse_free_cleanup)
16794 (make_cleanup_cp_demangled_name_parse_free): Remove.
16795 (inspect_type, cp_canonicalize_string_full)
16796 (cp_canonicalize_string): Update.
16797 (mangled_name_to_comp): Change return type.
16798 (cp_class_name_from_physname, method_name_from_physname)
16799 (cp_func_name, cp_remove_params): Update.
16800 * cp-name-parser.y (demangle_parse_info): New constructor, from
16801 cp_new_demangle_parse_info.
16802 (~demangle_parse_info): New destructor, from
16803 cp_demangled_name_parse_free.
16804 (cp_merge_demangle_parse_infos): Update.
16805 (cp_demangled_name_to_comp): Change return type.
16807 2017-01-10 Tom Tromey <tom@tromey.com>
16809 * top.c (prevent_dont_repeat): Change return type.
16810 * python/python.c (execute_gdb_command): Use std::string.
16812 * guile/guile.c (gdbscm_execute_gdb_command): Update.
16813 * command.h (prevent_dont_repeat): Change return type.
16814 * breakpoint.c (bpstat_do_actions_1): Update.
16816 2017-01-10 Tom Tromey <tom@tromey.com>
16818 * value.h (scoped_value_mark::~scoped_value_mark): Call
16820 (scoped_value_mark::free_to_mark): New method.
16821 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
16824 2017-01-10 Tom Tromey <tom@tromey.com>
16826 * python/py-value.c (valpy_dereference, valpy_referenced_value)
16827 (valpy_reference_value, valpy_const_value, valpy_get_address)
16828 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
16829 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
16830 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
16831 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
16833 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
16834 * value.h (scoped_value_mark): New class.
16836 2017-01-10 Tom Tromey <tom@tromey.com>
16838 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
16839 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
16840 * psymtab.c (discard_psymtabs_upto): Remove.
16841 (make_cleanup_discard_psymtabs): Remove.
16842 (struct psymtab_state): Remove.
16844 2017-01-10 Tom Tromey <tom@tromey.com>
16846 * record-full.c (record_full_save_cleanups): Remove.
16847 (record_full_save): Use gdb::unlinker.
16848 * gcore.c (do_bfd_delete_cleanup): Remove.
16849 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
16851 * dwarf2read.c (unlink_if_set): Remove.
16852 (write_psymtabs_to_index): Use gdb::unlinker.
16853 * common/gdb_unlinker.h: New file.
16855 2017-01-10 Tom Tromey <tom@tromey.com>
16857 * windows-tdep.c (windows_xfer_shared_library): Update.
16858 * windows-nat.c (windows_make_so): Update.
16859 * utils.h (make_cleanup_bfd_unref): Remove.
16860 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
16861 * symfile.h (symfile_bfd_open)
16862 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
16863 * symfile.c (read_symbols, symbol_file_add)
16864 (separate_debug_file_exists): Update.
16865 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
16866 (generic_load, reread_symbols): Update.
16867 * symfile-mem.c (symbol_file_add_from_memory): Update.
16868 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
16869 (spu_symbol_file_add_from_memory): Update.
16870 * solist.h (struct target_so_ops) <bfd_open>: Return
16872 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
16873 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
16875 (solib_map_sections, reload_shared_libraries_1): Update.
16876 * solib-svr4.c (enable_break): Update.
16877 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
16878 * solib-frv.c (enable_break2): Update.
16879 * solib-dsbt.c (enable_break): Update.
16880 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
16882 (darwin_solib_get_all_image_info_addr_at_init): Update.
16883 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
16884 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
16885 * record-full.c (record_full_save): Update.
16886 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
16887 * procfs.c (insert_dbx_link_bpt_in_file): Update.
16888 * minidebug.c (find_separate_debug_file_in_section): Return
16890 * machoread.c (macho_add_oso_symfile): Change abfd to
16892 (macho_symfile_read_all_oso): Update.
16893 (macho_check_dsym): Return gdb_bfd_ref_ptr.
16894 (macho_symfile_read): Update.
16895 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
16896 (jit_bfd_try_read_symtab): Update.
16897 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16898 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16899 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16901 (gdb_bfd_ref_policy): New struct.
16902 (gdb_bfd_ref_ptr): New typedef.
16903 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16904 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16905 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16907 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16908 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16909 (gcore_command): Update.
16910 * exec.c (exec_file_attach): Update.
16911 * elfread.c (elf_symfile_read): Update.
16912 * dwarf2read.c (dwarf2_get_dwz_file): Update.
16913 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
16914 (open_and_init_dwo_file): Update.
16915 (open_dwp_file): Return gdb_bfd_ref_ptr.
16916 (open_and_init_dwp_file): Update.
16917 * corelow.c (core_open): Update.
16918 * compile/compile-object-load.c (compile_object_load): Update.
16919 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
16920 * coffread.c (coff_symfile_read): Update.
16921 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
16922 gdb_bfd_ref_ptr. Rename.
16923 (dump_bfd_file, restore_command): Update.
16924 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16925 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16926 (find_separate_debug_file_by_buildid): Update.
16928 2017-01-10 Tom Tromey <tom@tromey.com>
16930 * common/gdb_ref_ptr.h: New file.
16931 * python/py-ref.h (struct gdbpy_ref_policy): New.
16932 (gdbpy_ref): Now a typedef.
16934 2017-01-10 Tom Tromey <tom@tromey.com>
16936 * utils.h (make_cleanup_htab_delete): Don't declare.
16937 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
16939 * linespec.c (decode_compound_collector): Add constructor,
16941 (lookup_prefix_sym): Remove cleanup.
16942 (symtab_collector): Add constructor, destructor.
16943 (collect_symtabs_from_filename): Remove cleanup.
16944 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
16945 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
16947 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
16948 * dwarf2read.c (dw2_expand_symtabs_matching)
16949 (dw2_map_symbol_filenames, dwarf_decode_macros)
16950 (write_psymtabs_to_index): Use htab_up.
16951 * dwarf2loc.c (func_verify_no_selftailcall)
16952 (call_site_find_chain_1, func_verify_no_selftailcall)
16953 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
16954 std::vector, gdb::unique_xmalloc_ptr.
16955 (call_sitep): Remove typedef.
16956 (dwarf2_locexpr_baton_eval): Remove unused variable.
16958 2017-01-10 Tom Tromey <tom@tromey.com>
16960 * python/python-internal.h (make_cleanup_py_decref)
16961 (make_cleanup_py_xdecref): Don't declare.
16962 * python/py-utils.c (py_decref, make_cleanup_py_decref)
16963 (py_xdecref, make_cleanup_py_xdecref): Remove.
16965 2017-01-10 Tom Tromey <tom@tromey.com>
16967 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
16968 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
16970 2017-01-10 Tom Tromey <tom@tromey.com>
16972 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
16974 2017-01-10 Tom Tromey <tom@tromey.com>
16976 * python/py-utils.c (unicode_to_encoded_string)
16977 (python_string_to_target_string)
16978 (python_string_to_target_python_string)
16979 (python_string_to_host_string, gdbpy_obj_to_string)
16980 (get_addr_from_python): Use gdbpy_ref.
16982 2017-01-10 Tom Tromey <tom@tromey.com>
16984 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
16987 2017-01-10 Tom Tromey <tom@tromey.com>
16989 * python/python.c (eval_python_command, gdbpy_decode_line)
16990 (gdbpy_run_events, gdbpy_start_type_printers)
16991 (gdbpy_apply_type_printers): Use gdbpy_ref.
16993 2017-01-10 Tom Tromey <tom@tromey.com>
16995 * python/py-param.c (get_doc_string, compute_enum_values): Use
16998 2017-01-10 Tom Tromey <tom@tromey.com>
17000 * python/py-inferior.c (find_thread_object, build_inferior_list):
17003 2017-01-10 Tom Tromey <tom@tromey.com>
17005 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17007 2017-01-10 Tom Tromey <tom@tromey.com>
17009 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17012 2017-01-10 Tom Tromey <tom@tromey.com>
17014 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17016 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17019 2017-01-10 Tom Tromey <tom@tromey.com>
17021 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17024 2017-01-10 Tom Tromey <tom@tromey.com>
17026 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17027 decref results of PyArg_ParseTupleAndKeywords.
17029 2017-01-10 Tom Tromey <tom@tromey.com>
17031 * python/python.c (python_run_simple_file): Use
17032 unique_xmalloc_ptr, gdbpy_ref.
17034 2017-01-10 Tom Tromey <tom@tromey.com>
17036 * python/py-prettyprint.c (print_stack_unless_memory_error)
17037 (print_string_repr, print_children): Use gdbpy_ref.
17038 (dummy_python_frame): New class.
17039 (dummy_python_frame::dummy_python_frame): Rename from
17040 push_dummy_python_frame.
17041 (py_restore_tstate): Remove.
17043 2017-01-10 Tom Tromey <tom@tromey.com>
17045 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17047 2017-01-10 Tom Tromey <tom@tromey.com>
17049 * python/python.c (ensure_python_env, restore_python_env):
17051 * python/python-internal.h (ensure_python_env): Don't declare.
17052 * varobj.h (varobj_ensure_python_env): Don't declare.
17053 * varobj.c (varobj_ensure_python_env): Remove.
17055 2017-01-10 Tom Tromey <tom@tromey.com>
17057 * varobj.c (varobj_value_get_print_value): Use
17058 gdbpy_enter_varobj.
17060 2017-01-10 Tom Tromey <tom@tromey.com>
17062 * python/py-prettyprint.c (print_string_repr, print_children):
17064 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17066 * varobj.c (varobj_value_get_print_value): Update.
17067 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17069 2017-01-10 Tom Tromey <tom@tromey.com>
17071 * varobj.c (varobj_get_display_hint)
17072 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17073 (varobj_set_visualizer, free_variable): Use
17074 gdbpy_enter_varobj.
17076 2017-01-10 Tom Tromey <tom@tromey.com>
17078 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17079 (do_finish_initialization): New function. Use gdbpy_ref.
17080 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17081 do_finish_initialization.
17083 2017-01-10 Tom Tromey <tom@tromey.com>
17085 * python/py-param.c (get_set_value, get_show_value): Use
17086 gdbpy_enter, gdbpy_ref.
17088 2017-01-10 Tom Tromey <tom@tromey.com>
17090 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17092 2017-01-10 Tom Tromey <tom@tromey.com>
17094 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17096 2017-01-10 Tom Tromey <tom@tromey.com>
17098 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17099 Use gdbpy_enter_varobj.
17101 2017-01-10 Tom Tromey <tom@tromey.com>
17103 * varobj.c (gdbpy_enter_varobj): New constructor.
17104 * python/python-internal.h (gdbpy_enter_varobj): New class.
17105 * python/py-varobj.c (py_varobj_get_iterator): Use
17106 gdbpy_enter_varobj.
17108 2017-01-10 Tom Tromey <tom@tromey.com>
17110 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17111 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17112 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17113 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17114 unique_xmalloc_ptr.
17115 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17117 2017-01-10 Tom Tromey <tom@tromey.com>
17119 * python/py-xmethods.c (invoke_match_method): Use
17122 2017-01-10 Tom Tromey <tom@tromey.com>
17124 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17125 gdbpy_enter, gdbpy_ref.
17127 2017-01-10 Tom Tromey <tom@tromey.com>
17129 * python/python.c (python_interactive_command): Use gdbpy_enter.
17131 2017-01-10 Tom Tromey <tom@tromey.com>
17133 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17136 2017-01-10 Tom Tromey <tom@tromey.com>
17138 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17139 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17141 2017-01-10 Tom Tromey <tom@tromey.com>
17143 * utils.h (htab_deleter): New struct.
17144 (htab_up): New typedef.
17145 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17146 gdbpy_enter, gdbpy_ref, htab_up.
17148 2017-01-10 Tom Tromey <tom@tromey.com>
17150 * python/py-unwind.c (pending_frame_invalidate): Remove.
17151 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17153 2017-01-10 Tom Tromey <tom@tromey.com>
17155 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17156 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17158 2017-01-10 Tom Tromey <tom@tromey.com>
17160 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17162 2017-01-10 Tom Tromey <tom@tromey.com>
17164 * python/python.c (gdbpy_eval_from_control_command)
17165 (gdbpy_source_script, gdbpy_run_events)
17166 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17167 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17170 2017-01-10 Tom Tromey <tom@tromey.com>
17172 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17174 2017-01-10 Tom Tromey <tom@tromey.com>
17176 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17178 2017-01-10 Tom Tromey <tom@tromey.com>
17180 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17181 (python_on_inferior_call_pre, python_on_inferior_call_post)
17182 (python_on_memory_change, python_on_register_change)
17183 (python_inferior_exit, python_new_objfile, add_thread_object)
17184 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17186 2017-01-10 Tom Tromey <tom@tromey.com>
17188 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17189 (bpfinishpy_handle_exit): Use gdbpy_enter.
17191 2017-01-10 Tom Tromey <tom@tromey.com>
17193 * python/py-cmd.c (cmdpy_destroyer)
17194 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17197 2017-01-10 Tom Tromey <tom@tromey.com>
17199 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17201 (gdbpy_breakpoint_has_cond): Likewise.
17203 2017-01-10 Tom Tromey <tom@tromey.com>
17205 * python/python.c (gdbpy_enter): New constructor.
17206 (~gdbpy_enter): New destructor.
17207 (restore_python_env, ensure_python_env): Rewrite.
17208 * python/python-internal.h (gdbpy_enter): New class.
17210 2017-01-10 Tom Tromey <tom@tromey.com>
17212 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17214 2017-01-10 Tom Tromey <tom@tromey.com>
17216 * python/py-value.c (value_has_field, get_field_flag)
17217 (get_field_type, valpy_getitem, convert_value_from_python): Use
17220 2017-01-10 Tom Tromey <tom@tromey.com>
17222 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17225 2017-01-10 Tom Tromey <tom@tromey.com>
17227 * python/py-prettyprint.c (search_pp_list)
17228 (find_pretty_printer_from_objfiles)
17229 (find_pretty_printer_from_progspace)
17230 (find_pretty_printer_from_gdb, find_pretty_printer)
17231 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17234 2017-01-10 Tom Tromey <tom@tromey.com>
17236 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17238 2017-01-10 Tom Tromey <tom@tromey.com>
17240 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17241 (ltpy_get_all_source_lines): Use gdbpy_ref.
17243 2017-01-10 Tom Tromey <tom@tromey.com>
17245 * python/py-framefilter.c (extract_sym, extract_value)
17246 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17249 2017-01-10 Tom Tromey <tom@tromey.com>
17251 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17253 2017-01-10 Tom Tromey <tom@tromey.com>
17255 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17257 2017-01-10 Tom Tromey <tom@tromey.com>
17259 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17262 2017-01-10 Tom Tromey <tom@tromey.com>
17264 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17266 2017-01-10 Tom Tromey <tom@tromey.com>
17268 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17269 (typy_range): Use gdbpy_ref.
17271 2017-01-10 Tom Tromey <tom@tromey.com>
17273 * python/py-threadevent.c (create_thread_event_object): Use
17275 * python/py-stopevent.c (create_stop_event_object): Simplify.
17276 (emit_stop_event): Use gdbpy_ref.
17277 * python/py-signalevent.c (create_signal_event_object): Use
17279 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17280 (emit_new_objfile_event, create_clear_objfiles_event_object)
17281 (emit_clear_objfiles_event): Use gdbpy_ref.
17282 * python/py-infevents.c (create_inferior_call_event_object)
17283 (create_register_changed_event_object)
17284 (create_memory_changed_event_object, emit_inferior_call_event)
17285 (emit_memory_changed_event, emit_register_changed_event): Use
17287 * python/py-exitedevent.c (create_exited_event_object)
17288 (emit_exited_event): Use gdbpy_ref.
17289 * python/py-event.h (evpy_emit_event): Remove
17290 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17291 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17292 * python/py-continueevent.c (emit_continue_event): Use
17294 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17295 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17297 * python/py-bpevent.c (create_breakpoint_event_object): Use
17300 2017-01-10 Tom Tromey <tom@tromey.com>
17302 * python/py-ref.h: New file.
17304 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17306 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17308 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17309 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17310 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17311 * ui-out.c (ui_out::redirect): Likewise.
17312 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17313 * cli/cli-logging.c (set_logging_redirect): Update call site of
17315 (handle_redirections): Likewise.
17316 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17317 * top.c (execute_command_to_string): Likewise.
17318 * utils.c (do_ui_out_redirect_pop): Likewise.
17320 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17322 * stack.c (_initialize_stack): Update "frame" command help message.
17324 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17326 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17328 2017-01-06 Yao Qi <yao.qi@linaro.org>
17330 * x86-linux-nat.h: Include gdb_proc_service.h.
17332 2017-01-06 Yao Qi <yao.qi@linaro.org>
17334 * ser-base.h: Include serial.h.
17336 2017-01-06 Yao Qi <yao.qi@linaro.org>
17338 * ppc-linux-tdep.h: Include ppc-tdep.h.
17340 2017-01-06 Yao Qi <yao.qi@linaro.org>
17342 * nat/amd64-linux-siginfo.h: Include signal.h.
17344 2017-01-06 Yao Qi <yao.qi@linaro.org>
17346 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17348 2017-01-06 Yao Qi <yao.qi@linaro.org>
17350 * mi/mi-parse.h: Include mi-cmds.h.
17352 2017-01-06 Yao Qi <yao.qi@linaro.org>
17354 * inf-loop.c: Don't include "target.h".
17355 * inf-loop.h: Include it here.
17357 2017-01-06 Yao Qi <yao.qi@linaro.org>
17359 * dfp.h: Include "dboulest.h" and "expression.h".
17361 2017-01-06 Yao Qi <yao.qi@linaro.org>
17363 * ax-gdb.h: Include "ax.h".
17365 2017-01-06 Yao Qi <yao.qi@linaro.org>
17367 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17368 with nat/gdb_ptrace.h.
17370 2017-01-05 Yao Qi <yao.qi@linaro.org>
17372 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17374 (mips64_fbsd_sigframe_init): Likewise.
17376 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17378 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17379 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17381 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17383 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17384 * NEWS: Mention new FreeBSD/mips native configuration.
17385 * config/mips/fbsd.mh: New file.
17386 * configure.host: Add mips*-*-freebsd*.
17387 * mips-fbsd-nat.c: New file.
17389 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17391 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17392 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17393 * NEWS: Mention new FreeBSD/mips target.
17394 * configure.tgt: Add mips*-*-freebsd*.
17395 * mips-fbsd-tdep.c: New file.
17396 * mips-fbsd-tdep.h: New file.
17398 2017-01-04 Yao Qi <yao.qi@linaro.org>
17400 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17401 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17403 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17405 Update copyright year range in all GDB files.
17407 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17409 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
17411 For older changes see ChangeLog-2016.
17417 version-control: never