Fix displaced-stepping RIP-relative VEX-encoded instructions (AVX) (PR gdb/22499)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-12-04 Pedro Alves <palves@redhat.com>
2
3 PR gdb/22499
4 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
5 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
6 (vex2_prefix_p, vex3_prefix_p): New functions.
7 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
8 VEX3 prefixes.
9 (fixup_riprel): Set VEX3.!B.
10
11 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
12
13 * target.h (mem_region_vector): Remove.
14 (struct target_ops) <to_memory_map>: Change return type to
15 std::vector<mem_region>.
16 * target-debug.h (target_debug_print_mem_region_vector): Rename
17 to ...
18 (target_debug_print_std_vector_mem_region): ... this.
19 * target-delegates.c: Re-generate.
20
21 2017-12-03 Pedro Alves <palves@redhat.com>
22
23 * make-target-delegates (munge_type): Also munge '<', '>', and
24 ':'. Avoid double underscores in identifiers, and trailing
25 underscores.
26 * target-debug.h
27 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
28 ...
29 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
30 * target-delegates.c: Regenerate.
31
32 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * common/poison.h (XDELETE): Fix typo.
35
36 2017-12-01 Andrew Cagney <cagney@redhat.com>
37 Joel Brobecker <brobecker@adacore.com>
38 Sergio Durigan Junior <sergiodj@redhat.com>
39
40 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
41 feature.
42 * coffread.c (coff_symfile_read): Do not map over sections with
43 'coff_locate_sections' if readnever is on.
44 * dwarf2read.c (dwarf2_has_info): Return 0 if
45 readnever is on.
46 * elfread.c (elf_symfile_read): Do not map over sections with
47 'elf_locate_sections' if readnever is on.
48 * main.c (validate_readnow_readnever): New function.
49 (captured_main_1): Add support for --readnever.
50 (print_gdb_help): Document --readnever.
51 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
52 flag.
53 * symfile.c (readnever_symbol_files): New global.
54 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
55 'READNEVER_SYMBOL_FILES' is set.
56 (validate_readnow_readnever): New function.
57 (symbol_file_command): Handle '-readnever' option.
58 Call 'validate_readnow_readnever'.
59 (add_symbol_file_command): Handle '-readnever' option.
60 Call 'validate_readnow_readnever'.
61 (_initialize_symfile): Document new '-readnever' option for
62 both 'symbol-file' and 'add-symbol-file' commands.
63 * top.h (readnever_symbol_files): New extern global.
64 * xcoffread.c (xcoff_initial_scan): Do not read debug
65 information if readnever is on.
66
67 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
68
69 * symfile.c (symbol_file_command): Call
70 'symbol_file_add_main_1' only after processing all command
71 line options.
72 (add_symbol_file_command): Modify logic to make arguments
73 position-independent.
74
75 2017-12-01 Joel Brobecker <brobecker@adacore.com>
76
77 * ada-lang.c (symbol_list_obstack): Delete.
78 (resolve_subexp): Make sure "candidates" gets xfree'ed.
79 (ada_lookup_symbol_list_worker): Remove the limitation that
80 the result is only good until the next call, now making it
81 the responsibility of the caller to free the result when no
82 longer needed. Adjust the function's intro comment accordingly.
83 (ada_lookup_symbol_list): Adjust the function's intro comment.
84 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
85 (ada_lookup_encoded_symbol, get_var_value): Likewise.
86 (_initialize_ada_language): Remove symbol_list_obstack
87 initialization.
88 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
89 (write_var_or_type, write_name_assoc): Likewise.
90
91 2017-12-01 Tom Tromey <tom@tromey.com>
92
93 * Makefile.in (all_deps_files): New variable.
94 Include .Po files using all_deps_files.
95
96 2017-12-01 Joel Brobecker <brobecker@adacore.com>
97
98 * MAINTAINERS: Update list of maintainers, moving those who
99 stepped down or became inactive to the "Past Maintainers"
100 section.
101
102 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
103
104 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
105 sys/proc.h.
106 (NEW_PROC_API): Remove.
107 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
108 Likewise.
109 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
110 * configure: Regenerate.
111 * config.in: Regenerate.
112 * gdbserver/configure: Regenerate.
113 * gdbserver/config.in: Regenerate.
114
115 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
116 NEW_PROC_API test.
117 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
118
119 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
120
121 * proc-api.c: Remove !NEW_PROC_API support.
122 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
123 Remove tests for macros always defined on Solaris.
124 * proc-events.c: Remove !NEW_PROC_API support.
125 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
126 HAVE_SYS_USER_H tests.
127 (init_syscall_table): Remove non-Solaris syscalls.
128 Remove tests for syscalls present on all Solaris versions.
129 Add missing Solaris 10+ syscalls.
130 (signal_table): Remove non-Solaris signals.
131 Remove tests for signals present on all Solaris versions.
132 (fault_table): Remove non-Solaris faults.
133 Remove tests for faults present on all Solaris versions.
134 * proc-flags.c: Remove !NEW_PROC_API support.
135 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
136 Remove non-Solaris flags.
137 * proc-why.c: Remove !NEW_PROC_API support.
138 (pr_why_table): Remove meaningless comments.
139 Remove tests for reasons present on all Solaris versions.
140 Remove OSF/1 cases.
141 (proc_prettyfprint_why): Likewise.
142
143 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
144 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
145 Remove WA_READ test, IRIX watchpoint support.
146 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
147 types. Change users.
148 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
149 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
150 Change callers.
151 Remove CTL_PROC_NAME_FMT tests.
152 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
153 users.
154 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
155 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
156 (proc_modify_flag): Replace GDBRESET by PCUNSET.
157 Remove PR_ASYNC, PR_KLC tests.
158 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
159 (proc_parent_pid): Remove PCWATCH etc. tests.
160 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
161 Remove PCAGENT test.
162 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
163 Remove SYS_lwpcreate || SYS_lwp_create test.
164 (proc_get_current_thread): Likewise.
165 [PIOCNTHR && PIOCTLIST]: Remove.
166 [PIOCLSTATUS]: Remove.
167 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
168 [PRFS_STOPEXEC]: Remove.
169 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
170 (syscall_is_exit): Likewise.
171 (syscall_is_exec): Likewise.
172 (syscall_is_lwp_create): Likewise.
173 Remove SYS_syssgi support.
174 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
175 [SYS_syssgi]: Remove.
176 Remove non-Solaris cases, conditionals.
177 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
178 Remove.
179 (procfs_init_inferior) [SYS_syssgi]: Remove.
180 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
181 (procfs_inferior_created) [SYS_syssgi]: Remove.
182 (procfs_set_watchpoint): Remove !AIX5 test.
183 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
184 case.
185 (mappingflags) [MA_PHYS]: Remove.
186 (info_mappings_callback): Remove PCAGENT test.
187 Remove PIOCOPENLWP || PCAGENT test.
188
189 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
190
191 * sol-thread.c (info_solthreads): Constify args.
192 Cast args to void *.
193
194 2017-11-29 John Baldwin <jhb@FreeBSD.org>
195
196 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
197
198 2017-11-29 Joel Brobecker <brobecker@adacore.com>
199
200 * ada-lang.c (to_fixed_range_type): Make sure that the size
201 of the range type being returned is the same as the size
202 of the range type being fixed.
203
204 2017-11-29 Pedro Alves <palves@redhat.com>
205
206 PR c++/19436
207 * NEWS: Mention setting breakpoints on functions with C++ ABI
208 tags.
209 * completer.h (completion_match_for_lcd) <match,
210 mark_ignored_range>: New methods.
211 <finish>: Consider ignored ranges.
212 <clear>: Clear ignored ranges.
213 <m_ignored_ranges, m_finished_storage>: New fields.
214 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
215 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
216 completion_match_for_lcd pointer to strncmp_iw_with_mode.
217 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
218 * language.c (default_symbol_name_matcher): Pass the
219 completion_match_for_lcd pointer to strncmp_iw_with_mode.
220 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
221 * utils.c (skip_abi_tag): New function.
222 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
223 Handle ABI tags.
224 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
225 parameter.
226
227 2017-11-29 Pedro Alves <palves@redhat.com>
228
229 PR c++/19436
230 * NEWS: Mention setting breakpoints on functions with C++ ABI
231 tags.
232 * completer.h (completion_match_for_lcd) <match,
233 mark_ignored_range>: New methods.
234 <finish>: Consider ignored ranges.
235 <clear>: Clear ignored ranges.
236 <m_ignored_ranges, m_finished_storage>: New fields.
237 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
238 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
239 completion_match_for_lcd pointer to strncmp_iw_with_mode.
240 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
241 * language.c (default_symbol_name_matcher): Pass the
242 completion_match_for_lcd pointer to strncmp_iw_with_mode.
243 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
244 * utils.c (skip_abi_tag): New function.
245 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
246 Handle ABI tags.
247 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
248 parameter.
249
250 2017-11-29 Pedro Alves <palves@redhat.com>
251
252 * NEWS: Mention that breakpoints on C++ functions are now set on
253 on all namespaces/classes by default, and mention "break
254 -qualified".
255 * ax-gdb.c (agent_command_1): Adjust to pass a
256 symbol_name_match_type to new_linespec_location.
257 * breakpoint.c (parse_breakpoint_sals): Adjust to
258 get_linespec_location's return type change.
259 (strace_marker_create_sals_from_location): Adjust to pass a
260 symbol_name_match_type to new_linespec_location.
261 (strace_marker_decode_location): Adjust to get_linespec_location's
262 return type change.
263 (strace_command): Adjust to pass a symbol_name_match_type to
264 new_linespec_location.
265 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
266 mention "-qualified".
267 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
268 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
269 enumerator.
270 (complete_address_and_linespec_locations): New parameter
271 'match_type'. Pass it down.
272 (explicit_options): Add "-qualified".
273 (collect_explicit_location_matches): Pass the requested match type
274 to the linespec completers. Handle MATCH_QUALIFIED.
275 (location_completer): Handle "-qualified" combined with linespecs.
276 * cp-support.c (cp_search_name_hash): New.
277 (cp_symbol_name_matches_1): Implement wild matching for C++.
278 (cp_fq_symbol_name_matches): Reimplement.
279 (cp_get_symbol_name_matcher): Return different matchers depending
280 on the lookup name's match type.
281 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
282 * cp-support.h (cp_search_name_hash): New declaration.
283 * dwarf2read.c
284 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
285 symbols.
286 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
287 tests.
288 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
289 pass a symbol_name_match_type to new_linespec_location.
290 * linespec.c (linespec_parse_basic): Lookup function symbols using
291 the parser's symbol name match type.
292 (convert_explicit_location_to_linespec): New
293 symbol_name_match_type parameter. Pass it down to
294 find_linespec_symbols.
295 (convert_explicit_location_to_sals): Pass the location's name
296 match type to convert_explicit_location_to_linespec.
297 (parse_linespec): New match_type parameter. Save it in the
298 parser.
299 (linespec_parser_new): Default to symbol_name_match_type::WILD.
300 (linespec_complete_function): New symbol_name_match_type
301 parameter. Use it.
302 (complete_linespec_component): Pass down the parser's recorded
303 name match type.
304 (linespec_complete_label): New symbol_name_match_type parameter.
305 Use it.
306 (linespec_complete): New symbol_name_match_type parameter. Save
307 it in the parser and pass it down. Adjust to
308 get_linespec_location's prototype change.
309 (find_function_symbols, find_linespec_symbols): New
310 symbol_name_match_type parameter. Pass it down instead of
311 assuming symbol_name_match_type::WILD.
312 * linespec.h (linespec_complete, linespec_complete_function)
313 (linespec_complete_label): New symbol_name_match_type parameter.
314 * location.c (event_location::linespec_location): Now a struct
315 linespec_location.
316 (EL_LINESPEC): Adjust.
317 (initialize_explicit_location): Default to
318 symbol_name_match_type::WILD.
319 (new_linespec_location): New symbol_name_match_type parameter.
320 Record it in the location.
321 (get_linespec_location): Now returns a struct linespec_location.
322 (new_explicit_location): Also copy func_name_match_type.
323 (explicit_to_string_internal)
324 (string_to_explicit_location): Handle "-qualified".
325 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
326 Copy symbol_name_match_type fields.
327 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
328 type change.
329 (event_location_to_string): Adjust to LINESPEC_LOCATION type
330 change. Handle "-qualfied".
331 (string_to_explicit_location): Handle "-qualified".
332 (string_to_event_location_basic): New symbol_name_match_type
333 parameter. Pass it down.
334 (string_to_event_location): Handle "-qualified".
335 * location.h (struct linespec_location): New.
336 (explicit_location::func_name_match_type): New field.
337 (new_linespec_location): Now returns a const linespec_location *.
338 (string_to_event_location_basic): New symbol_name_match_type
339 parameter.
340 (explicit_completion_info::saw_explicit_location_option): New
341 field.
342 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
343 symbol_name_match_type to new_linespec_location.
344 * python/py-breakpoint.c (bppy_init): Likewise.
345 * python/python.c (gdbpy_decode_line): Likewise.
346
347 2017-11-29 Pedro Alves <palves@redhat.com>
348
349 * ada-lang.c (ada_lookup_name_info::matches): Change type of
350 parameter from completion_match to completion_match_result.
351 Adjust.
352 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
353 * completer.c (completion_tracker::maybe_add_completion): Add
354 match_for_lcd parameter and use it.
355 (completion_tracker::add_completion): Likewise.
356 * completer.h (class completion_match_for_lcd): New class.
357 (completion_match_result::match_for_lcd): New field.
358 (completion_match_result::set_match): New method.
359 (completion_tracker): Add comments.
360 (completion_tracker::add_completion): Add match_for_lcd parameter.
361 (completion_tracker::reset_completion_match_result): Reset
362 match_for_lcd too.
363 (completion_tracker::maybe_add_completion): Add match_for_lcd
364 parameter.
365 (completion_tracker::m_lowest_common_denominator_unique): Extend
366 comments.
367 * cp-support.c (cp_symbol_name_matches_1)
368 (cp_fq_symbol_name_matches): Change type of parameter from
369 completion_match to completion_match_result. Adjust.
370 * language.c (default_symbol_name_matcher): Change type of
371 parameter from completion_match to completion_match_result.
372 Adjust.
373 * language.h (completion_match_for_lcd): Forward declare.
374 (default_symbol_name_matcher): Change type of parameter from
375 completion_match to completion_match_result.
376 * symtab.c (compare_symbol_name): Adjust.
377 (completion_list_add_name): Pass the match_for_lcd to the tracker.
378 * symtab.h (ada_lookup_name_info::matches): Change type of
379 parameter from completion_match to completion_match_result.
380 (symbol_name_matcher_ftype): Likewise, and update comments.
381
382 2017-11-29 Pedro Alves <palves@redhat.com>
383
384 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
385 * minsyms.c (msymbol_is_text): Delete.
386 (msymbol_is_function): New function.
387 * minsyms.h (msymbol_is_text): Delete.
388 (msymbol_is_function): New declaration.
389 * symtab.c (find_function_alias_target): Use msymbol_is_function.
390
391 2017-11-29 Tom Tromey <tom@tromey.com>
392
393 * Makefile.in (distclean): Handle the case where rmdir fails.
394
395 2017-11-29 Tom Tromey <tom@tromey.com>
396
397 * symfile.c (_initialize_symfile): Update usage text for
398 add-symbol-file, symbol-file, load.
399
400 2017-11-29 Tom Tromey <tom@tromey.com>
401
402 * symfile.c (add_symbol_file_command): Error if some arguments to
403 -s are missing. Change unrecognized-argument error message.
404 (_initialize_symfile): Fix usage text for add-symbol-file.
405
406 2017-11-27 Tom Tromey <tom@tromey.com>
407
408 * Makefile.in (REMOTE_OBS): Remove.
409 (SFILES): Remove remote sources.
410 (COMMON_SFILES): Add remote sources.
411 (ALLDEPFILES): Remove dcache.c.
412
413 2017-11-27 Tom Tromey <tom@tromey.com>
414
415 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
416 variables.
417 (SFILES): Use SUBDIR_TARGET_SRCS.
418 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
419 (CONFIG_SRC_SUBDIR): Add target.
420 (%.o): Remove target rule.
421
422 2017-11-27 Tom Tromey <tom@tromey.com>
423
424 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
425 registry.o, thread-fsm.o, debug.o.
426 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
427 thread-fsm.c, debug.c.
428
429 2017-11-27 Tom Tromey <tom@tromey.com>
430
431 * Makefile.in (COMMON_SFILES): New.
432 (SFILES): Move some entries to COMMON_SFILES.
433 (COMMON_OBS): Use COMMON_SFILES.
434
435 2017-11-27 Tom Tromey <tom@tromey.com>
436
437 * Makefile.in (YYFILES): Update comment.
438 (YYOBJ): Redefine.
439
440 2017-11-27 Tom Tromey <tom@tromey.com>
441
442 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
443 (CONFIG_SRC_SUBDIR): Add python.
444 (%.o): Remove python rule.
445 (python/%.o): New rule.
446 * configure: Rebuild.
447 * configure.ac (CONFIG_OBS): Refer to python/python.o
448
449 2017-11-27 Tom Tromey <tom@tromey.com>
450
451 * configure: Rebuild.
452 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
453 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
454 (CONFIG_SRC_SUBDIR): Add guile.
455 (%.o): Remove guile rule.
456
457 2017-11-27 Tom Tromey <tom@tromey.com>
458
459 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
460 (%.o): Remove unittests rule.
461 (CONFIG_SRC_SUBDIR): Add unittests.
462
463 2017-11-27 Tom Tromey <tom@tromey.com>
464
465 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
466 (CONFIG_SRC_SUBDIR): Add tui.
467 (%.o): Remove tui rule.
468
469 2017-11-27 Tom Tromey <tom@tromey.com>
470
471 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
472 (%.o): Remove compile rule.
473 (CONFIG_SRC_SUBDIR): Add compile.
474
475 2017-11-27 Tom Tromey <tom@tromey.com>
476
477 * Makefile.in (SUBDIR_MI_OBS): Redefine.
478 (%.o): Remove mi rule.
479 (CONFIG_SRC_SUBDIR): Add mi.
480 (COMMON_OBS): Use mi/mi-common.o
481
482 2017-11-27 Tom Tromey <tom@tromey.com>
483
484 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
485 (%.o): Remove cli rule.
486 (CONFIG_SRC_SUBDIR): Add cli.
487
488 2017-11-27 Tom Tromey <tom@tromey.com>
489
490 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
491 * configure: Rebuild.
492 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
493 (CONFIG_DEP_SUBDIR): New variable.
494 (%.o): Add order-only dependency.
495 ($(CONFIG_DEP_SUBDIR)): New target.
496
497 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
498
499 PR gdb/21945
500 * findcmd.c (_initialize_mem_search): Update find command help
501 text.
502
503 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
504
505 * python/python.c (do_start_initialization): Change progname
506 type to gdb::unique_xmalloc_ptr. Release the pointer when using
507 Python 2.
508
509 2017-11-26 Tom Tromey <tom@tromey.com>
510
511 * common/format.h: Add include guards.
512
513 2017-11-26 Tom Tromey <tom@tromey.com>
514
515 * nat/linux-personality.h (class
516 maybe_disable_address_space_randomization): New class.
517 (maybe_disable_address_space_randomization): Don't declare
518 function.
519 * nat/linux-personality.c (restore_personality)
520 (make_disable_asr_cleanup): Remove.
521 (maybe_disable_address_space_randomization): Now a constructor.
522 (~maybe_disable_address_space_randomization): New destructor.
523 * linux-nat.c (linux_nat_create_inferior): Update.
524
525 2017-11-26 Tom Tromey <tom@tromey.com>
526
527 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
528
529 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
530
531 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
532 "cooked" register. Access only first four bytes of branch target
533 registers.
534
535 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
536
537 PR gdb/22491
538 * stap-probe.c (relocate_address): New function.
539 (stap_probe::get_relocated_address): Use 'relocate_address'.
540 (stap_probe::set_semaphore): Use 'relocate_address' and pass
541 'm_sem_addr'.
542 (stap_probe::clear_semaphore): Likewise.
543
544 2017-11-25 Pedro Alves <palves@redhat.com>
545
546 * dictionary.c: Include "safe-ctype.h".
547 * minsyms.c: Include "safe-ctype.h".
548 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
549
550 2017-11-25 Pedro Alves <palves@redhat.com>
551
552 * completer.c (complete_line_internal_1): Skip spaces until the
553 start of the command.
554
555 2017-11-24 Pedro Alves <palves@redhat.com>
556
557 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
558 cp_fq_symbol_name_matches. Pass language_cplus to
559 strncmp_with_mode.
560 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
561 (selftests::test_cp_symbol_name_cmp): New.
562 (_initialize_cp_support): Register "cp_symbol_name_matches"
563 selftests.
564 * language.c (default_symbol_name_matcher): Pass language_minimal
565 to strncmp_iw_with_mode.
566 * utils.c: Include "cp-support.h" and <algorithm>.
567 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
568 (cp_is_operator): New functions.
569 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
570 skip whitespace in the symbol name when the lookup name doesn't
571 have spaces, and vice versa.
572 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
573 * utils.h (strncmp_iw_with_mode): Add language parameter.
574
575 2017-11-24 Joel Brobecker <brobecker@adacore.com>
576
577 * ada-lang.c (ada_exception_message_1, ada_exception_message):
578 New functions.
579 (print_it_exception): If available, display the exception
580 message as well.
581 * NEWS: Document new feature.
582
583 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
584
585 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
586
587 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
588
589 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
590 (dtrace_probe::is_enabled, dtrace_probe::enable)
591 (dtrace_probe::disable): Remove keyword 'struct' at for-range
592 variable
593 * probe.c (gen_ui_out_table_header_info)
594 (print_ui_out_not_applicables): Remove keyword 'struct' at
595 for-range variable
596
597 2017-11-24 Alan Hayward <alan.hayward@arm.com>
598
599 * configure.tgt: Add arch/aarch64.o
600
601 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
602
603 * common/common-utils.h: Include poison.h.
604 (xfree): Remove declaration, add definition with static_assert.
605 * common/common-utils.c (xfree): Remove.
606 * common/poison.h (IsMallocatable): Define.
607 (IsFreeable): Define.
608 (free): Delete for non-freeable types.
609 (xnew): New.
610 (XNEW): Undef and redefine.
611 (xcnew): New.
612 (XCNEW): Undef and redefine.
613 (xdelete): New.
614 (XDELETE): Undef and redefine.
615 (xnewvec): New.
616 (XNEWVEC): Undef and redefine.
617 (xcnewvec): New.
618 (XCNEWVEC): Undef and redefine.
619 (xresizevec): New.
620 (XRESIZEVEC): Undef and redefine.
621 (xdeletevec): New.
622 (XDELETEVEC): Undef and redefine.
623 (xnewvar): New.
624 (XNEWVAR): Undef and redefine.
625 (xcnewvar): New.
626 (XCNEWVAR): Undef and redefine.
627 (xresizevar): New.
628 (XRESIZEVAR): Undef and redefine.
629
630 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
631
632 * gdbthread.h (private_thread_info): Define structure type, add
633 virtual pure destructor.
634 (thread_info) <priv>: Change type to unique_ptr.
635 <private_dtor>: Remove.
636 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
637 (private_thread_info::~private_thread_info): Provide default
638 implementation.
639 (thread_info::~thread_info): Don't call private_dtor nor
640 manually free priv.
641 * aix-thread.c (private_thread_info): Rename to ...
642 (aix_thread_info): ... this.
643 (get_aix_thread_info): New.
644 (sync_threadlists): Adjust.
645 (iter_tid): Adjust.
646 (aix_thread_resume): Adjust.
647 (aix_thread_fetch_registers): Adjust.
648 (aix_thread_store_registers): Adjust.
649 (aix_thread_extra_thread_info): Adjust.
650 * darwin-nat.h (private_thread_info): Rename to ...
651 (darwin_thread_info): ... this.
652 (get_darwin_thread_info): New.
653 * darwin-nat.c (darwin_init_thread_list): Adjust.
654 (darwin_check_new_threads): Adjust.
655 (thread_info_from_private_thread_info): Adjust.
656 * linux-thread-db.c (private_thread_info): Rename to ...
657 (thread_db_thread_info): ... this, initialize fields.
658 (get_thread_db_thread_info): New.
659 <dying>: Change type to bool.
660 (update_thread_state): Adjust to type rename.
661 (record_thread): Adjust to type rename an use of unique_ptr.
662 (thread_db_pid_to_str): Likewise.
663 (thread_db_extra_thread_info): Likewise.
664 (thread_db_thread_handle_to_thread_info): Likewise.
665 (thread_db_get_thread_local_address): Likewise.
666 * nto-tdep.h (private_thread_info): Rename to ...
667 (nto_thread_info): ... this, initialize fields.
668 (get_nto_thread_info): New.
669 <name>: Change type to std::string.
670 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
671 use of unique_ptr.
672 * nto-procfs.c (update_thread_private_data_name): Adjust to
673 std::string change, allocate nto_private_thread_info with new.
674 (update_thread_private_data): Adjust to unique_ptr.
675 * remote.c (private_thread_info): Rename to ...
676 (remote_thread_info): ... this, initialize data members with
677 default values.
678 <extra, name>: Change type to std::string.
679 <thread_handle>: Change type to non-pointer.
680 (free_private_thread_info): Remove.
681 (get_private_info_thread): Rename to...
682 (get_remote_thread_info): ... this, change return type, adjust to
683 use of unique_ptr, use remote_thread_info constructor.
684 (remote_add_thread): Adjust.
685 (get_private_info_ptid): Rename to...
686 (get_remote_thread_info): ...this, change return type.
687 (remote_thread_name): Use get_remote_thread_info, adjust to
688 change to std::string.
689 (struct thread_item) <~thread_item>: Remove.
690 <thread_handle>: Make non pointer.
691 (start_thread): Adjust to thread_item::thread_handle type
692 change.
693 (remote_update_thread_list): Adjust to type name change, move
694 strings from temporary to long-lived object instead of
695 duplicating.
696 (remote_threads_extra_info): Use get_remote_thread_info.
697 (process_initial_stop_replies): Likewise.
698 (resume_clear_thread_private_info): Likewise.
699 (remote_resume): Adjust to type name change.
700 (remote_commit_resume): Use get_remote_thread_info.
701 (process_stop_reply): Adjust to type name change.
702 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
703 (remote_stopped_by_hw_breakpoint): Likewise.
704 (remote_stopped_by_watchpoint): Likewise.
705 (remote_stopped_data_address): Likewise.
706 (remote_core_of_thread): Likewise.
707 (remote_thread_handle_to_thread_info): Use
708 get_private_info_thread, adjust to thread_handle field type
709 change.
710
711 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
712
713 * remote.c (struct thread_item): Add constructor, disable copy
714 construction and copy assignment, define default move
715 construction and move assignment.
716 <extra, name>: Change type to std::string.
717 <core>: Initialize.
718 <thread_handle>: Make non-pointer.
719 (thread_item_t): Remove typedef.
720 (DEF_VEC_O(thread_item_t)): Remove.
721 (threads_listing_context) <contains_thread>: New method.
722 <remove_thread>: New method.
723 <items>: Change type to std::vector.
724 (clear_threads_listing_context): Remove.
725 (threads_listing_context_remove): Remove.
726 (remote_newthread_step): Use thread_item constructor, adjust to
727 change to std::vector.
728 (start_thread): Use thread_item constructor, adjust to change to
729 std::vector.
730 (end_thread): Adjust to change to std::vector and std::string.
731 (remote_get_threads_with_qthreadinfo): Use thread_item
732 constructor, adjust to std::vector.
733 (remote_update_thread_list): Adjust to change to std::vector and
734 std::string, use threads_listing_context methods.
735 (remove_child_of_pending_fork): Adjust.
736 (remove_new_fork_children): Adjust.
737 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
738 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
739 * unittests/rsp-low-selftests.c: New file.
740 * common/rsp-low.h: Include common/byte-vector.h.
741 (hex2bin): New overload.
742 * common/rsp-low.c (hex2bin): New overload.
743
744 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
745
746 * inferior.h (private_inferior): Define structure type, add
747 virtual pure destructor.
748 (inferior) <priv>: Change type to unique_ptr.
749 * inferior.c (private_inferior::~private_inferior): Provide
750 default implementation.
751 (inferior::~inferior): Don't free priv field.
752 (exit_inferior_1): Likewise.
753 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
754 (darwin_exception_info): Remove typedef.
755 (DEF_VEC_O (darwin_thread_t)); Remove.
756 (private_inferior): Rename to ...
757 (darwin_private_inferior): ... this, extend private_inferior.
758 (get_darwin_inferior): New.
759 <threads>: Change type to std::vector of darwin_thread_t pointers.
760 * darwin-nat.c (darwin_check_new_threads): Adjust.
761 (find_inferior_task_it): Adjust.
762 (darwin_find_thread); Adjust.
763 (darwin_suspend_inferior): Adjust.
764 (darwin_resume_inferior): Adjust.
765 (darwin_find_new_inferior): Adjust.
766 (darwin_decode_notify_message): Adjust.
767 (darwin_send_reply): Adjust.
768 (darwin_resume_inferior_threads): Adjust.
769 (darwin_suspend_inferior_threads): Adjust.
770 (darwin_decode_message): Adjust.
771 (darwin_wait): Adjust.
772 (darwin_interrupt): Adjust.
773 (darwin_deallocate_threads): Adjust.
774 (darwin_mourn_inferior): Adjust, don't free private data.
775 (darwin_reply_to_all_pending_messages): Adjust.
776 (darwin_stop_inferior): Adjust.
777 (darwin_setup_exceptions): Adjust.
778 (darwin_kill_inferior): Adjust.
779 (darwin_setup_request_notification): Adjust.
780 (darwin_attach_pid): Adjust.
781 (darwin_init_thread_list): Adjust.
782 (darwin_setup_fake_stop_event): Adjust.
783 (darwin_attach): Adjust.
784 (darwin_detach): Adjust.
785 (darwin_xfer_partial): Adjust.
786 (set_enable_mach_exceptions): Adjust.
787 (darwin_pid_to_exec_file): Adjust.
788 (darwin_get_ada_task_ptid): Adjust.
789 * darwin-nat-info.c (get_task_from_args): Adjust.
790 (info_mach_ports_command): Adjust.
791 (info_mach_region_command): Adjust.
792 (info_mach_exceptions_command): Adjust.
793 * remote.c (private_inferior): Rename to ...
794 (remote_private_inferior): ... this, initialize fields.
795 (get_remote_inferior); New.
796 (remote_commit_resume): Use get_remote_inferior.
797 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
798
799 2017-11-24 Pedro Alves <palves@redhat.com>
800
801 * NEWS: Mention linespecs and explicit locations, and completion
802 improvements.
803
804 2017-11-24 Yao Qi <yao.qi@linaro.org>
805
806 * regcache.c (regcache::dump): Remove footnote_register_size.
807
808 2017-11-24 Yao Qi <yao.qi@linaro.org>
809
810 * regcache.c (cooked_read_test): Add more test for readonly
811 regcache.
812
813 2017-11-24 Yao Qi <yao.qi@linaro.org>
814
815 * gdbarch-selftests.c (test_target_has_registers): Move it to
816 target.c.
817 (test_target_has_stack): Likewise.
818 (test_target_has_memory): Likewise.
819 (test_target_prepare_to_store): Likewise.
820 (test_target_store_registers): Likewise.
821 (test_target_ops): Likewise.
822 * regcache.c: Include selftest-arch.h and gdbthread.h.
823 (target_ops_no_register): New class.
824 (test_target_fetch_registers): New.
825 (test_target_store_registers): New.
826 (test_target_xfer_partial): New.
827 (readwrite_regcache): New.
828 (cooked_read_test): New.
829 (_initialize_regcache): Register the test.
830 * target.c: (test_target_has_registers): Moved from
831 gdbarch-selftests.c.
832 (test_target_has_stack): Likewise.
833 (test_target_has_memory): Likewise.
834 (test_target_prepare_to_store): Likewise.
835 (test_target_store_registers): Likewise.
836 * target.h (test_target_ops): New class.
837
838 2017-11-24 Alan Hayward <alan.hayward@arm.com>
839
840 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
841 selftest.
842
843 2017-11-24 Alan Hayward <alan.hayward@arm.com>
844
845 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
846 * arch/aarch64.c (aarch64_create_target_description): Create
847 new target description.
848 * features/Makefile: Add new files.
849 * features/aarch64.c: Remove file.
850 * features/aarch64-core.c: New autogenerated file.
851 * features/aarch64-fpu.c: New autogenerated file.
852 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
853
854 2017-11-24 Alan Hayward <alan.hayward@arm.com>
855
856 * Makefile.in: Add new files.
857 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
858 aarch64_read_description.
859 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
860 Call aarch64_read_description.
861 * aarch64-tdep.c (aarch64_read_description): New function.
862 (aarch64_gdbarch_init): Call aarch64_read_description.
863 * aarch64-tdep.h (aarch64_read_description): New function.
864 * arch/aarch64.c: New file.
865 * configure.tgt: Add new files.
866
867 2017-11-24 Yao Qi <yao.qi@linaro.org>
868
869 * mi/mi-main.c (register_changed_p): Update.
870 * value.c (value_contents_bits_eq): Change return type.
871 (value_contents_eq): Likewise.
872 * value.h: Update comments.
873
874 2017-11-24 Yao Qi <yao.qi@linaro.org>
875
876 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
877 local 'changed'. Remove error.
878 (register_changed_p): Change return type to bool.
879
880 2017-11-24 Yao Qi <yao.qi@linaro.org>
881
882 * arch/tic6x.c: New file.
883 * arch/tic6x.h: New file.
884 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
885 tic6x-core.xml and tic6x-gp.xml.
886 * features/tic6x-c6xp.c: Generated.
887 * features/tic6x-core.c: Generated.
888 * features/tic6x-gp.c: Generated.
889 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
890 "tic6x-".
891
892 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
893
894 * mi/mi-main.c (list_available_thread_groups): Change map value
895 type to std::vector.
896
897 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
898
899 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
900
901 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
902
903 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
904 back to...
905 <children_requested>: ... this.
906 (varobj_get_num_children, varobj_update): Adjust.
907
908 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
909
910 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
911 (ada_value_has_mutated): Likewise.
912 * c-varobj.c (varobj_is_anonymous_child): Likewise.
913 (c_is_path_expr_parent): Likewise.
914 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
915 (mi_cmd_var_set_frozen): Likewise.
916 (mi_cmd_var_update_iter): Likewise.
917 (mi_cmd_var_update): Likewise.
918 * varobj.c (pretty_printing): Likewise.
919 (varobj_enable_pretty_printing): Likewise.
920 (struct varobj_root) <floating, is_valid>: Likewise.
921 (struct varobj_dynamic) <children_requested>: Likewise.
922 (delete_variable): Likewise.
923 (delete_variable_1): Likewise.
924 (install_variable): Likewise.
925 (update_type_if_necessary): Likewise.
926 (install_new_value): Likewise.
927 (value_of_root): Likewise.
928 (is_root_p): Likewise.
929 (varobj_create): Likewise.
930 (varobj_delete): Likewise.
931 (varobj_has_more): Likewise.
932 (varobj_set_frozen): Likewise.
933 (varobj_get_frozen): Likewise.
934 (install_dynamic_child): Likewise.
935 (dynamic_varobj_has_child_method): Likewise.
936 (update_dynamic_varobj_children): Likewise.
937 (varobj_get_num_children): Likewise.
938 (varobj_list_children): Likewise.
939 (is_path_expr_parent): Likewise.
940 (varobj_default_is_path_expr_parent): Likewise.
941 (varobj_is_dynamic_p): Likewise.
942 (varobj_set_value): Likewise.
943 (varobj_value_has_mutated): Likewise.
944 (varobj_update): Likewise.
945 (check_scope): Likewise.
946 (value_of_root_1): Likewise.
947 (varobj_value_get_print_value): Likewise.
948 (varobj_editable_p): Likewise.
949 (varobj_value_is_changeable_p): Likewise.
950 (varobj_floating_p): Likewise.
951 (varobj_default_value_is_changeable_p): Likewise.
952 (varobj_invalidate_iter): Likewise.
953 * varobj.h (struct varobj_update_result) <type_changed,
954 children_changed, changed, value_installed>: Likewise.
955 (struct varobj) <updated, frozen, not_fetched>: Likewise.
956 (struct lang_varobj_ops) <value_is_changeable_p,
957 value_has_mutated, is_path_expr_parent>: Likewise.
958 (varobj_delete): Likewise.
959 (varobj_set_frozen): Likewise.
960 (varobj_get_frozen): Likewise.
961 (varobj_set_value): Likewise.
962 (varobj_update): Likewise.
963 (varobj_editable_p): Likewise.
964 (varobj_floating_p): Likewise.
965 (varobj_has_more): Likewise.
966 (varobj_is_dynamic_p): Likewise.
967 (varobj_default_value_is_changeable_p): Likewise.
968 (varobj_value_is_changeable_p): Likewise.
969 (varobj_is_anonymous_child): Likewise.
970 (varobj_default_is_path_expr_parent): Likewise.
971
972 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
973
974 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
975 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
976 <type_str>: Convert to 'std::string'.
977 <expr>: Convert to 'expression_up'.
978 (dtrace_probe_arg_s): Delete type and VEC.
979 (dtrace_probe_enabler_s): Likewise.
980 (struct dtrace_probe): Replace by...
981 (class dtrace_static_probe_ops): ...this and...
982 (class dtrace_probe): ...this.
983 (dtrace_probe_is_linespec): Rename to...
984 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
985 to reflect change.
986 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
987 Adjust code. Create new instance of 'dtrace_probe'.
988 (dtrace_build_arg_exprs): Rename to...
989 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
990 reflect change.
991 (dtrace_get_probes): Rename to...
992 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
993 to reflect change.
994 (dtrace_get_arg): Rename to...
995 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
996 reflect change.
997 (dtrace_probe_is_enabled): Rename to...
998 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
999 change.
1000 (dtrace_get_probe_address): Rename to...
1001 (dtrace_probe::get_relocated_address): ...this. Adjust code
1002 to reflect change.
1003 (dtrace_get_probe_argument_count): Rename to...
1004 (dtrace_probe::get_argument_count): ...this. Adjust code to
1005 reflect change.
1006 (dtrace_can_evaluate_probe_arguments): Rename to...
1007 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1008 to reflect change.
1009 (dtrace_evaluate_probe_argument): Rename to...
1010 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1011 reflect change.
1012 (dtrace_compile_to_ax): Rename to...
1013 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1014 reflect change.
1015 (dtrace_probe_destroy): Delete.
1016 (dtrace_type_name): Rename to...
1017 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1018 reflect change.
1019 (dtrace_probe::get_static_ops): New method.
1020 (dtrace_gen_info_probes_table_header): Rename to...
1021 (dtrace_static_probe_ops::gen_info_probes_table_header):
1022 ...this. Adjust code to reflect change.
1023 (dtrace_gen_info_probes_table_values): Rename to...
1024 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1025 code to reflect change.
1026 (dtrace_enable_probe): Rename to...
1027 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1028 change.
1029 (dtrace_disable_probe): Rename to...
1030 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1031 change.
1032 (struct probe_ops dtrace_probe_ops): Delete.
1033 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1034 instead of 'info_probes_for_ops'.
1035 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1036 of 'all_probe_ops'.
1037
1038 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1039 Simon Marchi <simark@simark.ca>
1040
1041 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1042 variable.
1043 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1044 <aexpr>: Change type to 'expression_up'.
1045 (stap_probe_arg_s): Delete type and VEC.
1046 (struct stap_probe): Delete. Replace by...
1047 (class stap_static_probe_ops): ...this and...
1048 (class stap_probe): ...this. Rename variables to add 'm_'
1049 prefix. Do not use 'union' for arguments anymore.
1050 (stap_get_expected_argument_type): Receive probe name instead
1051 of 'struct stap_probe'. Adjust code.
1052 (stap_parse_probe_arguments): Rename to...
1053 (stap_probe::parse_arguments): ...this. Adjust code to
1054 reflect change.
1055 (stap_get_probe_address): Rename to...
1056 (stap_probe::get_relocated_address): ...this. Adjust code
1057 to reflect change.
1058 (stap_get_probe_argument_count): Rename to...
1059 (stap_probe::get_argument_count): ...this. Adjust code
1060 to reflect change.
1061 (stap_get_arg): Rename to...
1062 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1063 reflect change.
1064 (can_evaluate_probe_arguments): Rename to...
1065 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1066 to reflect change.
1067 (stap_evaluate_probe_argument): Rename to...
1068 (stap_probe::evaluate_argument): ...this. Adjust code
1069 to reflect change.
1070 (stap_compile_to_ax): Rename to...
1071 (stap_probe::compile_to_ax): ...this. Adjust code to
1072 reflect change.
1073 (stap_probe_destroy): Delete.
1074 (stap_modify_semaphore): Adjust comment.
1075 (stap_set_semaphore): Rename to...
1076 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1077 change.
1078 (stap_clear_semaphore): Rename to...
1079 (stap_probe::clear_semaphore): ...this. Adjust code to
1080 reflect change.
1081 (stap_probe::get_static_ops): New method.
1082 (handle_stap_probe): Adjust code to create instance of
1083 'stap_probe'.
1084 (stap_get_probes): Rename to...
1085 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1086 reflect change.
1087 (stap_probe_is_linespec): Rename to...
1088 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1089 reflect change.
1090 (stap_type_name): Rename to...
1091 (stap_static_probe_ops::type_name): ...this. Adjust code to
1092 reflect change.
1093 (stap_gen_info_probes_table_header): Rename to...
1094 (stap_static_probe_ops::gen_info_probes_table_header):
1095 ...this. Adjust code to reflect change.
1096 (stap_gen_info_probes_table_values): Rename to...
1097 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1098 code to reflect change.
1099 (struct probe_ops stap_probe_ops): Delete.
1100 (info_probes_stap_command): Use 'info_probes_for_spops'
1101 instead of 'info_probes_for_ops'.
1102 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1103 of 'all_probe_ops'.
1104
1105 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1106
1107 * break-catch-throw.c (fetch_probe_arguments): Use
1108 'probe.prob' instead of 'probe.probe'.
1109 * breakpoint.c (create_longjmp_master_breakpoint): Call
1110 'can_evaluate_arguments' and 'get_relocated_address' methods
1111 from probe.
1112 (create_exception_master_breakpoint): Likewise.
1113 (add_location_to_breakpoint): Use 'sal->prob' instead of
1114 'sal->probe'.
1115 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1116 probe.
1117 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1118 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1119 of 'probe_ops'.
1120 (probe_key_free): Call 'delete' on probe.
1121 (check_exception_resume): Use 'probe.prob' instead of
1122 'probe.probe'.
1123 * location.c (string_to_event_location_basic): Call
1124 'probe_linespec_to_static_ops'.
1125 * probe.c (class any_static_probe_ops): New class.
1126 (any_static_probe_ops any_static_probe_ops): New variable.
1127 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1128 argument. Adjust code to reflect change.
1129 (parse_probes): Use 'static_probe_ops' instead of
1130 'probe_ops'. Adjust code to reflect change.
1131 (find_probes_in_objfile): Call methods to get name and
1132 provider from probe.
1133 (find_probe_by_pc): Use 'result.prob' instead of
1134 'result.probe'. Call 'get_relocated_address' method from
1135 probe.
1136 (collect_probes): Adjust comment and argument list to receive
1137 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1138 reflect change. Call necessary methods from probe.
1139 (compare_probes): Call methods to get name and provider from
1140 probes.
1141 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1142 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1143 adjust code accordingly.
1144 (print_ui_out_not_applicables): Likewise.
1145 (info_probes_for_ops): Rename to...
1146 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1147 as argument instead of 'probe_ops'. Adjust code. Call
1148 necessary methods from probe.
1149 (info_probes_command): Use 'info_probes_for_spops'.
1150 (enable_probes_command): Pass correct argument to
1151 'collect_probes'. Call methods from probe.
1152 (disable_probes_command): Likewise.
1153 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1154 (get_probe_argument_count): Move to
1155 'any_static_probe_ops::get_argument_count'.
1156 (can_evaluate_probe_arguments): Move to
1157 'any_static_probe_ops::can_evaluate_arguments'.
1158 (evaluate_probe_argument): Move to
1159 'any_static_probe_ops::evaluate_argument'.
1160 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1161 'probe.probe'.
1162 (probe_linespec_to_ops): Rename to...
1163 (probe_linespec_to_static_ops): ...this. Adjust code.
1164 (probe_any_is_linespec): Rename to...
1165 (any_static_probe_ops::is_linespec): ...this.
1166 (probe_any_get_probes): Rename to...
1167 (any_static_probe_ops::get_probes): ...this.
1168 (any_static_probe_ops::type_name): New method.
1169 (any_static_probe_ops::gen_info_probes_table_header): New
1170 method.
1171 (compute_probe_arg): Use 'pc_probe.prob' instead of
1172 'pc_probe.probe'. Call methods from probe.
1173 (compile_probe_arg): Likewise.
1174 (std::vector<const probe_ops *> all_probe_ops): Delete.
1175 (std::vector<const static_probe_ops *> all_static_probe_ops):
1176 New variable.
1177 (_initialize_probe): Use 'all_static_probe_ops' instead of
1178 'all_probe_ops'.
1179 * probe.h (struct info_probe_column) <field_name>: Delete
1180 extraneous newline
1181 (info_probe_column_s): Delete type and VEC.
1182 (struct probe_ops): Delete. Replace with...
1183 (class static_probe_ops): ...this and...
1184 (clas probe): ...this.
1185 (struct bound_probe) <bound_probe>: Delete extraneous
1186 newline. Adjust constructor to receive 'probe' instead of
1187 'struct probe'.
1188 <probe>: Rename to...
1189 <prob>: ...this. Delete extraneous newline.
1190 <objfile>: Delete extraneous newline.
1191 (register_probe_ops): Delete unused prototype.
1192 (info_probes_for_ops): Rename to...
1193 (info_probes_for_spops): ...this. Adjust comment.
1194 (get_probe_address): Move to 'probe::get_address'.
1195 (get_probe_argument_count): Move to
1196 'probe::get_argument_count'.
1197 (can_evaluate_probe_arguments): Move to
1198 'probe::can_evaluate_arguments'.
1199 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1200 * solib-svr4.c (struct svr4_info): Adjust comment.
1201 (struct probe_and_action) <probe>: Rename to...
1202 <prob>: ...this.
1203 (register_solib_event_probe): Receive 'probe' instead of
1204 'struct probe' as argument. Use 'prob' instead of 'probe'
1205 when applicable.
1206 (solib_event_probe_action): Call 'get_argument_count' method
1207 from probe. Adjust comment.
1208 (svr4_handle_solib_event): Adjust comment. Call
1209 'evaluate_argument' method from probe.
1210 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1211 from probe.
1212 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1213 'struct probe'. Call 'can_evaluate_arguments' from probe.
1214 * symfile.h: Forward declare 'class probe' instead of 'struct
1215 probe'.
1216 * symtab.h: Likewise.
1217 (struct symtab_and_line) <probe>: Rename to...
1218 <prob>: ...this.
1219 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1220 Call probe methods.
1221 (stop_tracing): Likewise.
1222
1223 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1224
1225 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1226 trailing newline at end of string in call to warning.
1227
1228 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1229
1230 * osdata.h: Include vector isntead of vec.h.
1231 (osdata_column_s): Remove typedef.
1232 (struct osdata_column): Add constructor.
1233 <name, value>: Change type to std::string.
1234 (DEF_VEC_O (osdata_column_s)): Remove.
1235 (osdata_item_s): Remove typedef.
1236 (struct osdata_item) <columns>: Change type to std::vector.
1237 (DEF_VEC_O (osdata_item_s)): Remove.
1238 (struct osdata): Add constructor.
1239 <type>: Change type to std::string.
1240 <items>: Change type to std::vector.
1241 (osdata_p): Remove typedef.
1242 (DEF_VEC_P (osdata_p)): Remove.
1243 (osdata_parse): Return a unique_ptr.
1244 (osdata_free): Remove.
1245 (make_cleanup_osdata_free): Remove.
1246 (get_osdata): Return a unique_ptr.
1247 (get_osdata_column): Return pointer to std::string, take a
1248 reference to osdata_item as parameter.
1249 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1250 unique_ptr.
1251 <property_name>: Change type to std::string.
1252 (osdata_start_osdata): Allocate osdata with new and adjust.
1253 (osdata_start_item): Adjust.
1254 (osdata_start_column): Adjust.
1255 (osdata_end_column): Adjust.
1256 (clear_parsing_data): Remove.
1257 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1258 (osdata_item_clear): Remove.
1259 (get_osdata): return a unique_ptr and adjust.
1260 (get_osdata_column): Return a pointer to std::string and adjust.
1261 (info_osdata): Adjust.
1262 * mi/mi-main.c: Include <map>.
1263 (free_vector_of_osdata_items): Remove.
1264 (list_available_thread_groups): Adjust, use std::map instead of
1265 splay tree.
1266
1267 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1268
1269 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1270 case in switch.
1271
1272 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1273
1274 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1275
1276 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1277
1278 * varobj.h (struct varobj_update_result): Add constructor, add
1279 move constructor, disable copy and assign, initialize fields.
1280 <newobj>: Change type to std::vector.
1281 (varobj_update): Return std::vector.
1282 * varobj.c (install_dynamic_child): Change VEC parameters to
1283 std::vector and adjust.
1284 (update_dynamic_varobj_children): Likewise.
1285 (varobj_update): Return std::vector and adjust.
1286 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1287
1288 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1289
1290 * varobj.h (struct varobj) <parent>: Remove const.
1291 <children>: Change type to std::vector.
1292 (varobj_list_children): Return std::vector const reference.
1293 (varobj_restrict_range): Change parameter type to std::vector
1294 const reference.
1295 * varobj.c (varobj_has_more): Adjust.
1296 (varobj_restrict_range): Change parameter type to std::vector
1297 const reference and adjust.
1298 (install_dynamic_child): Adjust.
1299 (update_dynamic_varobj_children): Adjust.
1300 (varobj_list_children): Return std::vector const reference and
1301 adjust.
1302 (varobj_add_child): Adjust.
1303 (update_type_if_necessary): Adjust.
1304 (varobj_update): Adjust.
1305 (delete_variable_1): Adjust.
1306 * ada-varobj.c (ada_value_has_mutated): Adjust.
1307 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1308
1309 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1310
1311 * varobj.h (struct varobj): Add constructor and destructor,
1312 initialize fields.
1313 * varobj.c (struct varobj_root): Initialize fields.
1314 (struct varobj_dynamic): Initialize fields.
1315 (varobj_create): Use unique_ptr instead of cleanup. Create
1316 varobj with new instead of new_root_variable.
1317 (delete_variable_1): Free variable with delete instead of
1318 free_variable.
1319 (create_child_with_value): Create variable with new instead of
1320 new_variable.
1321 (varobj::varobj): New.
1322 (varobj::~varobj): New (body mostly coming from free_variable).
1323 (new_variable): Remove.
1324 (free_variable): Remove.
1325 (do_free_variable_cleanup): Remove.
1326 (make_cleanup_free_variable): Remove.
1327
1328 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1329
1330 * core-regset.c: Remove file.
1331 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1332
1333 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1334
1335 * NEWS: Document use of GNU MPFR.
1336 * README: Likewise.
1337
1338 * Makefile.in (LIBMPFR): Add define.
1339 (CLIBS): Add $(LIBMPFR).
1340 * configure.ac: Add --with-mpfr configure option.
1341 * configure: Regenerate.
1342 * config.in: Regenerate.
1343
1344 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1345 (class mpfr_float_ops): New type.
1346 (mpfr_float_ops::from_target): Two new overloaded functions.
1347 (mpfr_float_ops::to_target): Likewise.
1348 (mpfr_float_ops::to_string): New function.
1349 (mpfr_float_ops::from_string): Likewise.
1350 (mpfr_float_ops::to_longest): Likewise.
1351 (mpfr_float_ops::from_longest): Likewise.
1352 (mpfr_float_ops::from_ulongest): Likewise.
1353 (mpfr_float_ops::to_host_double): Likewise.
1354 (mpfr_float_ops::from_host_double): Likewise.
1355 (mpfr_float_ops::convert): Likewise.
1356 (mpfr_float_ops::binop): Likewise.
1357 (mpfr_float_ops::compare): Likewise.
1358 (get_target_float_ops): Use mpfr_float_ops if available.
1359
1360 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1361
1362 * target-float.c: Do not include <math.h>.
1363 Include <cmath> and <limits>.
1364 (DOUBLEST): Do not define.
1365 (class target_float_ops): New type.
1366 (class host_float_ops): New templated type.
1367 (class decimal_float_ops): New type.
1368
1369 (floatformat_to_doublest): Rename to ...
1370 (host_float_ops<T>::from_target): ... this. Use template type T
1371 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1372 (host_float_ops<T>::from_target): New overload using a type argument.
1373 (floatformat_from_doublest): Rename to ...
1374 (host_float_ops<T>::to_target): ... this. Use template type T
1375 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1376 (host_float_ops<T>::to_target): New overload using a type argument.
1377 (floatformat_printf_format): New function.
1378 (struct printf_length_modifier): New templated type.
1379 (floatformat_to_string): Rename to ...
1380 (host_float_ops<T>::to_string): ... this. Use type instead of
1381 floatformat argument. Use floatformat_printf_format and
1382 printf_length_modifier. Remove special handling of invalid numbers,
1383 infinities and NaN (moved to target_float_to_string).
1384 (struct scanf_length_modifier): New templated type.
1385 (floatformat_from_string): Rename to ...
1386 (host_float_ops<T>::from_string): ... this. Use type instead of
1387 floatformat argument. Use scanf_length_modifier.
1388 (floatformat_to_longest): Rename to ...
1389 (host_float_ops<T>::to_longest): ... this. Use type instead of
1390 floatformat argument. Handle out-of-range values deterministically.
1391 (floatformat_from_longest): Rename to ...
1392 (host_float_ops<T>::from_longest): ... this. Use type instead of
1393 floatformat argument.
1394 (floatformat_from_ulongest): Rename to ...
1395 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1396 floatformat argument.
1397 (floatformat_to_host_double): Rename to ...
1398 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1399 floatformat argument.
1400 (floatformat_from_host_double): Rename to ...
1401 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1402 floatformat argument.
1403 (floatformat_convert): Rename to ...
1404 (host_float_ops<T>::convert): ... this. Use type instead of
1405 floatformat arguments. Remove handling of no-op conversions.
1406 (floatformat_binop): Rename to ...
1407 (host_float_ops<T>::binop): ... this. Use type instead of
1408 floatformat arguments.
1409 (floatformat_compare): Rename to ...
1410 (host_float_ops<T>::compare): ... this. Use type instead of
1411 floatformat arguments.
1412
1413 (match_endianness): Use type instead of length/byte_order arguments.
1414 (set_decnumber_context): Likewise.
1415 (decimal_from_number): Likewise. Update calls.
1416 (decimal_to_number): Likewise.
1417 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1418 (decimal_float_ops::to_host_double): New dummy function.
1419 (decimal_float_ops::from_host_double): Likewise.
1420 (decimal_to_string): Rename to ...
1421 (decimal_float_ops::to_string): ... this. Use type instead of
1422 length/byte_order arguments. Update calls.
1423 (decimal_from_string): Rename to ...
1424 (decimal_float_ops::from_string): ... this. Use type instead of
1425 length/byte_order arguments. Update calls.
1426 (decimal_from_longest): Rename to ...
1427 (decimal_float_ops::from_longest): ... this. Use type instead of
1428 length/byte_order arguments. Update calls.
1429 (decimal_from_ulongest): Rename to ...
1430 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1431 length/byte_order arguments. Update calls.
1432 (decimal_to_longest): Rename to ...
1433 (decimal_float_ops::to_longest): ... this. Use type instead of
1434 length/byte_order arguments. Update calls.
1435 (decimal_binop): Rename to ...
1436 (decimal_float_ops::binop): ... this. Use type instead of
1437 length/byte_order arguments. Update calls.
1438 (decimal_compare): Rename to ...
1439 (decimal_float_ops::compare): ... this. Use type instead of
1440 length/byte_order arguments. Update calls.
1441 (decimal_convert): Rename to ...
1442 (decimal_float_ops::convert): ... this. Use type instead of
1443 length/byte_order arguments. Update calls.
1444
1445 (target_float_same_category_p): New function.
1446 (target_float_same_format_p): Likewise.
1447 (target_float_format_length): Likewise.
1448 (enum target_float_ops_kind): New type.
1449 (get_target_float_ops_kind): New function.
1450 (get_target_float_ops): Three new overloaded functions.
1451
1452 (target_float_is_zero): Update call.
1453 (target_float_to_string): Add special handling of invalid numbers,
1454 infinities and NaN (moved from floatformat_to_string). Use
1455 target_float_ops callback.
1456 (target_float_from_string): Use target_float_ops callback.
1457 (target_float_to_longest): Likewise.
1458 (target_float_from_longest): Likewise.
1459 (target_float_from_ulongest): Likewise.
1460 (target_float_to_host_double): Likewise.
1461 (target_float_from_host_double): Likewise.
1462 (target_float_convert): Add special case for no-op conversions.
1463 Use target_float_ops callback.
1464 (target_float_binop): Use target_float_ops callback.
1465 (target_float_compare): Likewise.
1466
1467 2017-11-22 Yao Qi <yao.qi@linaro.org>
1468
1469 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
1470
1471 2017-11-22 Yao Qi <yao.qi@linaro.org>
1472
1473 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
1474 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
1475
1476 2017-11-21 Jerome Guitton <guitton@adacore.com>
1477
1478 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
1479 with event ptid from the lower layer before doing the
1480 ravenscar-specific update.
1481
1482 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1483
1484 * ravenscar-thread.c (is_ravenscar_task): Also verify that
1485 the ptid's TID is nonzero.
1486
1487 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1488
1489 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
1490 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
1491 Make non-static. Change return type to char *. Adjust code
1492 accordingly. Rewrite the function's documentation.
1493 (read_atcb): Adjust call to get_tcb_types_info accordingly.
1494 * ravenscar-thread.c (ravenscar_inferior_created): Check that
1495 we have enough debugging information in the runtime to support
1496 Ada task debugging before we enable the ravenscar-thread layer.
1497
1498 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1499
1500 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
1501 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
1502 * ravenscar-thread.c: Add into comment.
1503 (base_magic_null_ptid): Delete.
1504 (base_ptid): Change documentation.
1505 (ravenscar_active_task): Renames ravenscar_running_thread.
1506 All callers updated throughout.
1507 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
1508 (ravenscar_task_is_currently_active): Likewise.
1509 (get_base_thread_from_ravenscar_task): Ditto.
1510 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
1511 (ravenscar_runtime_initialized): Likewise.
1512 (get_running_thread_id): Add new parameter "cpu". Adjust
1513 implementation to handle this new parameter.
1514 (ravenscar_fetch_registers): Small adjustment to use
1515 is_ravenscar_task and ravenscar_task_is_currently_active in
1516 order to decide whether to use the target beneath or this
1517 module's arch_ops.
1518 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
1519 (ravenscar_stopped_by_sw_breakpoint): Use
1520 get_base_thread_from_ravenscar_task to get the underlying
1521 thread, rather than using base_ptid.
1522 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1523 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1524 Likewise.
1525 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
1526
1527 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1528
1529 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
1530 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
1531 (get_tcb_types_info): Set fieldnos.base_cpu.
1532 (read_atcb): Set task_info->base_cpu.
1533 (info_task): Print "Base CPU" info if set by runtime.
1534
1535 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1536
1537 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
1538 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1539 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1540 New functions.
1541 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
1542 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
1543 to_stopped_data_address and to_core_of_thread fields of
1544 ravenscar_ops.
1545
1546 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
1547
1548 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
1549 (struct gdbarch_tdep): New member long_double_abi.
1550 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
1551 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
1552 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
1553 format depending on long_double_abi tdep member.
1554 (ppc_floatformat_for_type): Handle __ibm128 type.
1555
1556 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1557
1558 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1559
1560 2017-11-21 Pedro Alves <palves@redhat.com>
1561
1562 * dwarf2read.c (mapped_index::find_name_components_bounds)
1563 <completion mode, upper bound>: Use std::lower_bound instead of
1564 std::upper_bound.
1565 (test_mapped_index_find_name_component_bounds): Remove incorrect
1566 "t1_fund" from expected symbols.
1567
1568 2017-11-21 Pedro Alves <palves@redhat.com>
1569
1570 * dwarf2read.c (mapped_index::name_components_casing): New field.
1571 (mapped_index) <build_name_components,
1572 find_name_components_bounds): Declare new methods.
1573 (mapped_index::find_name_components_bounds)
1574 (mapped_index::build_name_components): New methods, factored out
1575 from dw2_expand_symtabs_matching_symbol.
1576 (check_find_bounds_finds)
1577 (test_mapped_index_find_name_component_bounds): New.
1578 (run_test): Rename to ...
1579 (test_dw2_expand_symtabs_matching_symbol): ... this.
1580 (run_test): Reimplement.
1581
1582 2017-11-21 Pedro Alves <palves@redhat.com>
1583
1584 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1585 (symbol_end): Use cp_ident_is_alnum.
1586 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1587 * dwarf2read.c (make_sort_after_prefix_name): New function.
1588 (dw2_expand_symtabs_matching_symbol): Use it.
1589 (test_symbols): Add more symbols.
1590 (run_test): Add tests.
1591
1592 2017-11-17 Tom Tromey <tom@tromey.com>
1593
1594 * symtab.h (enum symbol_subclass_kind): New.
1595 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
1596 Remove.
1597 <subclass>: New member.
1598 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
1599 * rust-lang.c (rust_get_trait_object_pointer): Update.
1600 * dwarf2read.c (read_func_scope): Update.
1601 (read_variable): Update.
1602
1603 2017-11-17 Tom Tromey <tom@tromey.com>
1604
1605 * dwarf2read.c (read_func_scope): Update.
1606 * symtab.h (struct template_symbol): Derive from symbol.
1607 <base>: Remove.
1608
1609 2017-11-17 Tom Tromey <tom@tromey.com>
1610
1611 * symtab.h (struct symbol) <is_rust_vtable>: New member.
1612 (struct rust_vtable_symbol): New.
1613 (find_symbol_at_address): Declare.
1614 * symtab.c (find_symbol_at_address): New function.
1615 * symfile.h (struct quick_symbol_functions)
1616 <find_compunit_symtab_by_address>: New member.
1617 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
1618 function.
1619 (debug_sym_quick_functions): Link to
1620 debug_qf_find_compunit_symtab_by_address.
1621 * rust-lang.c (rust_get_trait_object_pointer): New function.
1622 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
1623 rust_get_trait_object_pointer.
1624 * psymtab.c (psym_relocate): Clear psymbol_map.
1625 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
1626 functions.
1627 (psym_functions): Link to psym_find_compunit_symtab_by_address.
1628 * objfiles.h (struct objfile) <psymbol_map>: New member.
1629 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1630 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1631 (rust_containing_type, read_variable): New functions.
1632
1633 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1634
1635 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1636
1637 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1638
1639 * common/filestuff.c: Include <algorithm>.
1640 (open_fds): Change type to std::vector<int>.
1641 (do_mark_open_fd): Adjust.
1642 (unmark_fd_no_cloexec): Adjust.
1643 (do_close): Adjust.
1644
1645 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1646
1647 * breakpoint.c (output_thread_groups): Take an std::vector.
1648 (print_one_breakpoint_location): Adjust.
1649
1650 2017-11-17 Joel Brobecker <brobecker@adacore.com>
1651
1652 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
1653 (ada_evaluate_subexp_for_cast): New function.
1654 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
1655 ada_evaluate_subexp_for_cast.
1656 (ada_evaluate_subexp) <nosideret>: Replace code by call to
1657 eval_skip_value.
1658 * eval.c (evaluate_var_value): Make non-static.
1659 (evaluate_var_msym_value, eval_skip_value): Likewise.
1660 * value.h (evaluate_var_value, evaluate_var_msym_value)
1661 (eval_skip_value): Declare.
1662
1663 2017-11-16 Joel Brobecker <brobecker@adacore.com>
1664
1665 * ada-lang.c (ada_value_cast): Remove parameter "noside".
1666 Update all callers.
1667
1668 2017-11-16 Pedro Alves <palves@redhat.com>
1669
1670 * python/py-unwind.c (pyuw_sniffer): Translate
1671 PyExc_KeyboardInterrupt to a GDB Quit exception.
1672
1673 2017-11-16 Pedro Alves <palves@redhat.com>
1674
1675 * infrun.c (resume_cleanups): Delete.
1676 (resume): No longer install a resume_cleanups cleanup nor call
1677 QUIT.
1678 (proceed): Pass the terminal to the inferior.
1679 (keep_going_pass_signal): No longer install a resume_cleanups
1680 cleanup.
1681
1682 2017-11-16 Pedro Alves <palves@redhat.com>
1683
1684 * inf-loop.c (inferior_event_handler): Don't swallow the exception
1685 if the prompt is blocked.
1686
1687 2017-11-16 Pedro Alves <palves@redhat.com>
1688
1689 * breakpoint.c (insert_bp_location): Replace bp_err and
1690 bp_err_message locals by a gdb_exception local.
1691
1692 2017-11-16 Pedro Alves <palves@redhat.com>
1693
1694 * inflow.c (scoped_ignore_sigttou): New class.
1695 (child_terminal_ours_1, new_tty): Use it.
1696
1697 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1698
1699 * target-float.c (decimal_from_number): Add byte_order argument and
1700 call match_endianness. Error if unknown floating-point type.
1701 (decimal_to_number): Add byte_order argument and call match_endianness.
1702 (decimal_from_longest): Update call. Do not call match_endianness.
1703 (decimal_from_ulongest): Likewise.
1704 (decimal_binop): Likewise.
1705 (decimal_is_zero): Likewise.
1706 (decimal_compare): Likewise.
1707 (decimal_convert): Likewise.
1708
1709 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
1710
1711 * python/python.c (gdbpy_rbreak): New function.
1712 * NEWS: Document Python rbreak feature.
1713
1714 2017-11-16 Yao Qi <yao.qi@linaro.org>
1715
1716 * features/tic6x-c62x.xml: Remove.
1717 * features/tic6x-c64x.xml: Remove.
1718 * features/tic6x-c64xp.xml: Remove.
1719
1720 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1721
1722 * symtab.h: Include <array>.
1723
1724 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1725
1726 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
1727 (bsd_kvm_proc_cmd): Likewise.
1728
1729 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
1730
1731 * tui/tui-win.c (window_name_completer): Replace VEC with
1732 std::vector.
1733
1734 2017-11-15 Andrew Cagney <cagney@gnu.org>
1735
1736 * MAINTAINERS: Remove no-longer applicable entries.
1737
1738 2017-11-15 Andrew Cagney <cagney@gnu.org>
1739
1740 * MAINTAINERS: Move self to Past Maintainers.
1741
1742 2017-11-15 Yao Qi <yao.qi@linaro.org>
1743
1744 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
1745 * features/nios2-linux.c: Remove.
1746 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
1747 initialize_tdesc_nios2_linux.
1748
1749 2017-11-15 Yao Qi <yao.qi@linaro.org>
1750
1751 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
1752 M68HC11_LAST_HARD_REG + 1.
1753
1754 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
1755
1756 PR gdb/22388
1757 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
1758 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
1759 Return TARGET_XFER_EOF if size of returned data is 0.
1760
1761 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
1762
1763 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1764 memory-map-selftests.c.
1765 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
1766 * memory-map.c (memory_map_start_memory): Fix computation of hi
1767 address.
1768 * unittests/memory-map-selftests.c: New file.
1769
1770 2017-11-09 Joel Brobecker <brobecker@adacore.com>
1771
1772 * ada-lang.c: Fix some typos in the general command documenting
1773 how Ada expressions are being evaluated and how their result
1774 is printed.
1775
1776 2017-11-09 Tom Tromey <tom@tromey.com>
1777
1778 * psymtab.c (psymbol_hash): Do not hash string contents.
1779 (psymbol_compare): Add comment.
1780
1781 2017-11-09 Tom Tromey <tom@tromey.com>
1782
1783 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
1784
1785 2017-11-08 Joel Brobecker <brobecker@adacore.com>
1786
1787 * ada-exp.y (write_var_from_sym): Remove parameter
1788 "orig_left_context". Update all callers.
1789
1790 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
1791
1792 * tracepoint.h (class collection_list) <stringify>: Return
1793 std::vector<std::string>.
1794 (encode_actions_rsp): Change parameters to
1795 std::vector<std::string> *.
1796 * tracepoint.c (collection_list::stringify): Return
1797 std::vector<std::string> and adjust accordingly.
1798 (encode_actions_rsp): Changee parameters to
1799 std::vector<std::string> and adjust accordingly.
1800 * remote.c (free_actions_list),
1801 free_actions_list_cleanup_wrapper): Remove.
1802 (remote_download_tracepoint): Adjust to std::vector.
1803
1804 2017-11-08 Tom Tromey <tom@tromey.com>
1805
1806 * dwarf2read.c (symbolp): Remove typedef.
1807 (read_func_scope): Use std::vector.
1808 (process_structure_scope): Use std::vector.
1809
1810 2017-11-08 Pedro Alves <palves@redhat.com>
1811
1812 * ada-lang.c (ada_make_symbol_completion_list): Use
1813 completion_skip_symbol.
1814 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
1815 (symbol_is_function_or_method(symbol*)): New.
1816 (add_symtab_completions): Add complete_symbol_mode parameter. Use
1817 completion_skip_symbol.
1818 (default_collect_symbol_completion_matches_break_on): Use
1819 completion_skip_symbol. Pass down mode.
1820 (collect_file_symbol_completion_matches): Pass down mode.
1821 * symtab.h (symbol_is_function_or_method): New declarations.
1822 (completion_skip_symbol): New template function.
1823
1824 2017-11-08 Pedro Alves <palves@redhat.com>
1825
1826 * linespec.c (iterate_over_all_matching_symtabs): Add
1827 search_domain parameter. Pass it down to expand_symtabs_matching.
1828 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
1829 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
1830 search_domain.
1831 (add_all_symbol_names_from_pspace): Add search_domain parameter.
1832 Pass it down.
1833 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
1834 symbols.
1835 (add_matching_symbols_to_info): Add search_domain parameter. Pass
1836 it down.
1837
1838 2017-11-08 Pedro Alves <palves@redhat.com>
1839
1840 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
1841 text_len locals and don't pass them down.
1842 * symtab.c (completion_list_add_name): Remove
1843 sym_text/sym_text_len parameters and adjust.
1844 (completion_list_add_symbol, completion_list_add_msymbol)
1845 (completion_list_objc_symbol, completion_list_add_fields)
1846 (add_symtab_completions): Likewise.
1847 (default_collect_symbol_completion_matches_break_on)
1848 (collect_file_symbol_completion_matches): Remove sym_text_len
1849 local and don't pass it down.
1850 * symtab.h (completion_list_add_name): Remove
1851 sym_text/sym_text_len parameters.
1852
1853 2017-11-08 Pedro Alves <palves@redhat.com>
1854
1855 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1856 unittests/lookup_name_info-selftests.c.
1857 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
1858 * cp-support.c: Include "selftest.h".
1859 (cp_remove_params_1): Rename from cp_remove_params. Add
1860 'require_param' parameter, and handle it.
1861 (cp_remove_params): Reimplement.
1862 (cp_remove_params_if_any): New.
1863 (selftests::quote): New.
1864 (selftests::check_remove_params): New.
1865 (selftests::test_cp_remove_params): New.
1866 (_initialize_cp_support): Install
1867 selftests::test_cp_remove_params.
1868 * cp-support.h (cp_remove_params_if_any): Declare.
1869 * dwarf2read.c :Include "selftest.h".
1870 (dw2_expand_symtabs_matching_symbol): Use
1871 lookup_name_info::make_ignore_params.
1872 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
1873 (selftests::dw2_expand_symtabs_matching::string_or_null)
1874 (selftests::dw2_expand_symtabs_matching::check_match)
1875 (selftests::dw2_expand_symtabs_matching::test_symbols)
1876 (selftests::dw2_expand_symtabs_matching::run_test): New.
1877 (_initialize_dwarf2_read): Register
1878 selftests::dw2_expand_symtabs_matching::run_test.
1879 * psymtab.c (psym_expand_symtabs_matching): Use
1880 lookup_name_info::make_ignore_params.
1881 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
1882 If the lookup name wants to ignore parameters, strip them.
1883 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
1884 code handling '('.
1885 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
1886 (default_collect_symbol_completion_matches_break_on): Don't try to
1887 strip parameters.
1888 * symtab.h (lookup_name_info::lookup_name_info): Add
1889 'ignore_parameters' parameter.
1890 (lookup_name_info::ignore_parameters)
1891 (lookup_name_info::make_ignore_params): New methods.
1892 (lookup_name_info::m_ignore_parameters): New field.
1893 * unittests/lookup_name_info-selftests.c: New file.
1894
1895 2017-11-08 Pedro Alves <palves@redhat.com>
1896
1897 * dwarf2read.c (dw2_expand_marked_cus)
1898 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
1899 (dw2_expand_symtabs_matching): Move further below.
1900 (dw2_expand_marked_cus): Reindent.
1901
1902 2017-11-08 Pedro Alves <palves@redhat.com>
1903
1904 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
1905 (struct name_component): New.
1906 (mapped_index::name_components): New field.
1907 (mapped_index::symbol_name_at): New method.
1908 (dwarf2_read_index): Call mapped_index ctor.
1909 (dw2_map_matching_symbols): Add comment about name_components
1910 table.
1911 (dw2_expand_symtabs_matching): Factor part to...
1912 (dw2_expand_symtabs_matching_symbol): ... this new function.
1913 Build name components table, and lookup symbols in it before
1914 calling the name matcher.
1915 (dw2_expand_marked_cus): New, factored out from
1916 dw2_expand_symtabs_matching.
1917 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
1918
1919 2017-11-08 Pedro Alves <palves@redhat.com>
1920
1921 * ada-lang.c (ada_encode): Rename to ..
1922 (ada_encode_1): ... this. Add throw_errors parameter and handle
1923 it.
1924 (ada_encode): Reimplement.
1925 (match_name): Delete, folded into full_name.
1926 (resolve_subexp): No longer pass the encoded name to
1927 ada_lookup_symbol_list.
1928 (should_use_wild_match): Delete.
1929 (name_match_type_from_name): New.
1930 (ada_lookup_simple_minsym): Use lookup_name_info and the
1931 language's symbol_name_matcher_ftype.
1932 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
1933 (ada_add_block_renamings): Adjust to use lookup_name_info.
1934 (ada_lookup_name): New.
1935 (add_nonlocal_symbols, ada_add_all_symbols)
1936 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
1937 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
1938 (ada_name_for_lookup): Delete.
1939 (ada_lookup_encoded_symbol): Construct a verbatim name.
1940 (wild_match): Reverse sense of return type. Use bool.
1941 (full_match): Reverse sense of return type. Inline bits of old
1942 match_name here.
1943 (ada_add_block_symbols): Adjust to use lookup_name_info.
1944 (symbol_completion_match): Delete, folded into...
1945 (ada_lookup_name_info::matches): ... .this new method.
1946 (symbol_completion_add): Delete.
1947 (ada_collect_symbol_completion_matches): Add name_match_type
1948 parameter. Adjust to use lookup_name_info and
1949 completion_list_add_name.
1950 (get_var_value, ada_add_global_exceptions): Adjust to use
1951 lookup_name_info.
1952 (ada_get_symbol_name_cmp): Delete.
1953 (do_wild_match, do_full_match): New functions.
1954 (ada_lookup_name_info::ada_lookup_name_info): New method.
1955 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
1956 functions.
1957 (ada_language_defn): Install ada_get_symbol_name_matcher.
1958 * ada-lex.l (processId): If name starts with '<', copy it
1959 verbatim.
1960 * block.c (block_iter_match_step, block_iter_match_first)
1961 (block_iter_match_next, block_lookup_symbol)
1962 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
1963 lookup_name_info.
1964 * block.h (block_iter_match_first, block_iter_match_next)
1965 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
1966 * c-lang.c (c_language_defn, cplus_language_defn)
1967 (asm_language_defn, minimal_language_defn): Adjust comments to
1968 refer to la_get_symbol_name_matcher.
1969 * completer.c (complete_files_symbols)
1970 (collect_explicit_location_matches, symbol_completer): Pass a
1971 symbol_name_match_type down.
1972 * completer.h (class completion_match, completion_match_result):
1973 New classes.
1974 (completion_tracker::reset_completion_match_result): New method.
1975 (completion_tracker::m_completion_match_result): New field.
1976 * cp-support.c (make_symbol_overload_list_block): Adjust to use
1977 lookup_name_info.
1978 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
1979 functions.
1980 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
1981 * d-lang.c: Adjust comments to refer to
1982 la_get_symbol_name_matcher.
1983 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
1984 Adjust to use lookup_name_info.
1985 (dict_iter_match_first, dict_iter_match_next)
1986 (iter_match_first_hashed, iter_match_next_hashed)
1987 (iter_match_first_linear, iter_match_next_linear): Adjust to work
1988 with a lookup_name_info.
1989 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
1990 Likewise.
1991 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
1992 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
1993 (gdb_index_symbol_name_matcher): New class.
1994 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
1995 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
1996 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
1997 with a symbol_name_match_type.
1998 (f_language_defn): Adjust comments to refer to
1999 la_get_symbol_name_matcher.
2000 * go-lang.c (go_language_defn): Adjust comments to refer to
2001 la_get_symbol_name_matcher.
2002 * language.c (default_symbol_name_matcher)
2003 (language_get_symbol_name_matcher): New functions.
2004 (unknown_language_defn, auto_language_defn): Adjust comments to
2005 refer to la_get_symbol_name_matcher.
2006 * language.h (symbol_name_cmp_ftype): Delete.
2007 (language_defn) <la_collect_symbol_completion_matches>: Add match
2008 type parameter.
2009 <la_get_symbol_name_cmp>: Delete field.
2010 <la_get_symbol_name_matcher>: New field.
2011 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2012 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2013 Declare.
2014 * linespec.c (iterate_over_all_matching_symtabs)
2015 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2016 (find_methods): Add language parameter, and use lookup_name_info
2017 and the language's symbol_name_matcher_ftype.
2018 (linespec_complete_function): Adjust.
2019 (lookup_prefix_sym): Use lookup_name_info.
2020 (add_all_symbol_names_from_pspace): Adjust.
2021 (find_superclass_methods): Add language parameter and pass it
2022 down.
2023 (find_method): Pass symbol language down.
2024 (find_linespec_symbols): Don't demangle or Ada encode here.
2025 (search_minsyms_for_name): Add lookup_name_info parameter.
2026 (add_matching_symbols_to_info): Add name_match_type parameter.
2027 Use lookup_name_info.
2028 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2029 la_get_symbol_name_matcher.
2030 * minsyms.c: Include <algorithm>.
2031 (add_minsym_to_demangled_hash_table): Remove table parameter and
2032 add objfile parameter. Use search_name_hash, and add language to
2033 demangled languages vector.
2034 (struct found_minimal_symbols): New struct.
2035 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2036 New functions.
2037 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2038 input names here. Use lookup_name_info instead. Lookup up
2039 demangled names once for each language in the demangled names
2040 vector.
2041 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2042 demangled names once for each language in the demangled names
2043 vector.
2044 (build_minimal_symbol_hash_tables): Adjust.
2045 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2046 lookup_name_info.
2047 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2048 la_get_symbol_name_matcher.
2049 * objfiles.h: Include <vector>.
2050 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2051 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2052 la_get_symbol_name_matcher.
2053 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2054 la_get_symbol_name_matcher.
2055 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2056 (match_partial_symbol): Use symbol_name_match_type,
2057 lookup_name_info and psymbol_name_matches.
2058 (lookup_partial_symbol): Use lookup_name_info.
2059 (map_block): Use symbol_name_match_type and lookup_name_info.
2060 (psym_map_matching_symbols): Use symbol_name_match_type.
2061 (psymbol_name_matches): New.
2062 (recursively_search_psymtabs): Use lookup_name_info and
2063 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2064 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2065 'kind' parameter to 'domain'.
2066 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2067 la_get_symbol_name_matcher.
2068 * symfile-debug.c (debug_qf_map_matching_symbols)
2069 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2070 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2071 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2072 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2073 Adjust to use symbol_name_match_type.
2074 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2075 (expand_symtabs_matching): Adjust to use lookup_name_info.
2076 * symmisc.c (maintenance_expand_symtabs): Use
2077 lookup_name_info::match_any ().
2078 * symtab.c (symbol_matches_search_name): New.
2079 (eq_symbol_entry): Adjust to use lookup_name_info and the
2080 language's matcher.
2081 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2082 (lookup_name_info::match_any): New.
2083 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2084 (compare_symbol_name): Add language, lookup_name_info and
2085 completion_match_result parameters, and use them.
2086 (completion_list_add_name): Make extern. Add language and
2087 lookup_name_info parameters. Use them.
2088 (completion_list_add_symbol, completion_list_add_msymbol)
2089 (completion_list_objc_symbol): Add lookup_name_info parameters and
2090 adjust. Pass down language.
2091 (completion_list_add_fields): Add lookup_name_info parameters and
2092 adjust. Pass down language.
2093 (add_symtab_completions): Add lookup_name_info parameters and
2094 adjust.
2095 (default_collect_symbol_completion_matches_break_on): Add
2096 name_match_type parameter, and use it. Use lookup_name_info.
2097 (default_collect_symbol_completion_matches)
2098 (collect_symbol_completion_matches): Add name_match_type
2099 parameter, and pass it down.
2100 (collect_symbol_completion_matches_type): Adjust.
2101 (collect_file_symbol_completion_matches): Add name_match_type
2102 parameter, and use lookup_name_info.
2103 * symtab.h: Include <string> and "common/gdb_optional.h".
2104 (enum class symbol_name_match_type): New.
2105 (class ada_lookup_name_info): New.
2106 (struct demangle_for_lookup_info): New.
2107 (class lookup_name_info): New.
2108 (symbol_name_matcher_ftype): New.
2109 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2110 (symbol_matches_search_name): Declare.
2111 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2112 (default_collect_symbol_completion_matches)
2113 (collect_symbol_completion_matches)
2114 (collect_file_symbol_completion_matches): Add name_match_type
2115 parameter.
2116 (iterate_over_symbols): Use lookup_name_info.
2117 (completion_list_add_name): Declare.
2118 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2119 (strncmp_iw_with_mode): Now extern.
2120 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2121 (strncmp_iw_with_mode): Declare.
2122
2123 2017-11-08 Keith Seitz <keiths@redhat.com>
2124 Pedro Alves <palves@redhat.com>
2125
2126 * ada-lang.c (ada_language_defn): Install
2127 default_search_name_hash.
2128 * buildsym.c (struct buildsym_compunit): <language>: New field.
2129 (finish_block_internal): Pass language when creating dictionaries.
2130 (start_buildsym_compunit, start_symtab): New language parameters.
2131 Use them.
2132 (restart_symtab): Pass down compilation unit's language.
2133 * buildsym.h (enum language): Forward declare.
2134 (start_symtab): New 'language' parameter.
2135 * c-lang.c (c_language_defn, cplus_language_defn)
2136 (asm_language_defn, minimal_language_defn): Install
2137 default_search_name_hash.
2138 * coffread.c (coff_start_symtab): Adjust.
2139 * d-lang.c (d_language_defn): Install default_search_name_hash.
2140 * dbxread.c (struct symloc): Add 'pst_language' field.
2141 (PST_LANGUAGE): Define.
2142 (start_psymtab, read_ofile_symtab): Use it.
2143 (process_one_symbol): New 'language' parameter. Pass it down.
2144 * dictionary.c (struct dictionary) <language>: New field.
2145 (DICT_LANGUAGE): Define.
2146 (dict_create_hashed, dict_create_hashed_expandable)
2147 (dict_create_linear, dict_create_linear_expandable): New parameter
2148 'language'. Set the dictionary's language.
2149 (iter_match_first_hashed): Adjust to rename.
2150 (insert_symbol_hashed): Assert we don't see mismatching
2151 languages. Adjust to rename.
2152 (dict_hash): Rename to ...
2153 (default_search_name_hash): ... this and make extern.
2154 * dictionary.h (struct language_defn): Forward declare.
2155 (dict_create_hashed): New parameter 'language'.
2156 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2157 * f-lang.c (f_language_defn): Install default_search_name_hash.
2158 * go-lang.c (go_language_defn): Install default_search_name_hash.
2159 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2160 creation.
2161 * language.c (unknown_language_defn, auto_language_defn):
2162 * language.h (language_defn::la_search_name_hash): New field.
2163 (default_search_name_hash): Declare.
2164 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2165 * mdebugread.c (new_block): New parameter 'language'.
2166 * mdebugread.c (parse_symbol): Pass symbol language to block
2167 allocation.
2168 (psymtab_to_symtab_1): Pass down language.
2169 (new_symtab): Pass compunit's language to block allocation.
2170 * objc-lang.c (objc_language_defn): Install
2171 default_search_name_hash.
2172 * opencl-lang.c (opencl_language_defn):
2173 * p-lang.c (pascal_language_defn): Install
2174 default_search_name_hash.
2175 * rust-lang.c (rust_language_defn): Install
2176 default_search_name_hash.
2177 * stabsread.h (enum language): Forward declare.
2178 (process_one_symbol): Add 'language' parameter.
2179 * symtab.c (search_name_hash): New function.
2180 * symtab.h (search_name_hash): Declare.
2181 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2182
2183 2017-11-08 Pedro Alves <palves@redhat.com>
2184
2185 * cp-name-parser.y (main): Don't initialize extra_chars.
2186
2187 2017-11-07 Tom Tromey <tom@tromey.com>
2188
2189 * event-top.h (command_handler): Constify.
2190 * record-full.c (cmd_record_full_start): Update.
2191 * thread.c (thread_apply_all_command): Update.
2192 * printcmd.c (eval_command): Update.
2193 * mi/mi-main.c (mi_execute_cli_command): Update.
2194 (mi_execute_async_cli_command): Update.
2195 * tui/tui-stack.c (tui_update_command): Update.
2196 * cli/cli-interp.c (safe_execute_command): Constify.
2197 * record.c (record_start): Update.
2198 (record_start, record_stop, cmd_record_start): Update.
2199 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2200 (cmd_record_btrace_pt_start): Update.
2201 (cmd_record_btrace_start): Update.
2202 (cmd_record_btrace_start): Update.
2203 * reverse.c (exec_reverse_once): Update.
2204 * python/python.c (execute_gdb_command): Don't copy the command.
2205 * event-top.c (command_line_handler): Update.
2206 (command_handler): Constify.
2207 * defs.h (deprecated_call_command_hook): Constify.
2208 * cli/cli-script.h (execute_user_command): Constify.
2209 * cli/cli-script.c (execute_user_command): Constify.
2210 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2211 (enum command_control_type): Update.
2212 * main.c (catch_command_errors): Remove non-const overload.
2213 (catch_command_errors_ftype): Remove.
2214 * python/py-cmd.c (cmdpy_function): Constify.
2215 * guile/scm-cmd.c (cmdscm_function): Constify.
2216 * cli/cli-dump.c (call_dump_func): Constify.
2217 * cli/cli-decode.c (do_const_cfunc): Constify.
2218 (do_sfunc): Constify.
2219 (cmd_func): Constify.
2220 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2221 * top.h (execute_command): Constify.
2222 * top.c (execute_command): Constify.
2223 (execute_command_to_string): Constify.
2224 (deprecated_call_command_hook): Constify.
2225 * command.h (cmd_func): Constify.
2226 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2227
2228 2017-11-07 Tom Tromey <tom@tromey.com>
2229
2230 * ada-lang.c (catch_ada_exception_command): Constify.
2231 (catch_assert_command): Constify.
2232 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2233 (catch_rethrow_command): Constify.
2234 (catch_exception_command_1): Constify.
2235 * breakpoint.h (add_catch_command): Constify.
2236 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2237 (catch_syscall_split_args): Constify.
2238 * break-catch-sig.c (catch_signal_command): Constify.
2239 (catch_signal_split_args): Constify.
2240 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2241 cmd_const_sfunc_ftype.
2242 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2243 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2244 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2245 (add_setshow_string_cmd, struct cmd_list_element)
2246 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2247 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2248 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2249 Constify.
2250 (set_cmd_sfunc): Constify.
2251 (empty_sfunc): Constify.
2252 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2253 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2254 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2255 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2256 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2257 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2258 Constify.
2259 (set_cmd_sfunc): Constify.
2260 (cmd_sfunc_ftype): Remove.
2261 * compile/compile.c (set_compile_args): Constify.
2262 * infrun.c (set_disable_randomization): Constify.
2263 * infcmd.c (set_args_command, set_cwd_command): Constify.
2264 * breakpoint.c (set_condition_evaluation_mode): Constify.
2265 (add_catch_command): Constify.
2266 (catch_fork_command_1, catch_exec_command_1)
2267 (catch_load_command_1, catch_unload_command_1): Constify.
2268 (catch_load_or_unload): Constify.
2269 * guile/scm-param.c (pascm_set_func): Constify.
2270 (add_setshow_generic): Constify.
2271 * python/py-param.c (get_set_value): Constify.
2272 * top.h (set_verbose): Constify.
2273 * tui/tui-win.c (tui_set_var_cmd): Constify.
2274 * mi/mi-main.c (set_mi_async_command): Constify.
2275 * cli/cli-logging.c (set_logging_overwrite)
2276 (set_logging_redirect): Constify.
2277 * value.c (set_max_value_size): Constify.
2278 * valprint.c (set_input_radix, set_output_radix): Constify.
2279 * utils.c (set_width_command, set_height_command): Constify.
2280 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2281 * tracepoint.c (set_disconnected_tracing)
2282 (set_circular_trace_buffer, set_trace_buffer_size)
2283 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2284 * top.c (set_history_size_command, set_verbose, set_editing)
2285 (set_gdb_datadir, set_history_filename): Constify.
2286 * target.c (set_targetdebug, maint_set_target_async_command)
2287 (maint_set_target_non_stop_command, set_target_permissions)
2288 (set_write_memory_permission): Constify.
2289 (open_target): Constify.
2290 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2291 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2292 * symtab.c (set_symbol_cache_size_handler): Constify.
2293 * symfile.c (set_ext_lang_command): Constify.
2294 * symfile-debug.c (set_debug_symfile): Constify.
2295 * source.c (set_directories_command): Constify.
2296 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2297 * serial.c (set_parity): Constify.
2298 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2299 * remote.c (set_remote_exec_file, set_remotebreak)
2300 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2301 * record.c (set_record_insn_history_size)
2302 (set_record_call_history_size): Constify.
2303 * record-full.c (set_record_full_insn_max_num): Constify.
2304 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2305 * osabi.c (set_osabi): Constify.
2306 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2307 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2308 * maint.c (maintenance_set_profile_cmd): Constify.
2309 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2310 * language.c (set_language_command, set_range_command)
2311 (set_case_command): Constify.
2312 * infrun.c (set_non_stop, set_observer_mode)
2313 (set_stop_on_solib_events, set_schedlock_func)
2314 (set_exec_direction_func): Constify.
2315 * infcmd.c (set_inferior_tty_command): Constify.
2316 * disasm.c (set_disassembler_options_sfunc): Constify.
2317 * demangle.c (set_demangling_command): Constify.
2318 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2319 * cris-tdep.c (set_cris_version, set_cris_mode)
2320 (set_cris_dwarf2_cfi): Constify.
2321 * corefile.c (set_gnutarget_command): Constify.
2322 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2323 (set_target_wide_charset_sfunc): Constify.
2324 * breakpoint.c (update_dprintf_commands): Constify.
2325 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2326 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2327 (set_disassembly_style_sfunc): Constify.
2328 * arch-utils.c (set_endian, set_architecture): Constify.
2329 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2330 * agent.c (set_can_use_agent): Constify.
2331
2332 2017-11-07 Tom Tromey <tom@tromey.com>
2333
2334 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2335 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2336 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2337 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2338 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2339 (parse_int_arg, show_thread_default_detach_sc_cmd)
2340 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2341 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2342 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2343 (show_task_pause_cmd, set_task_detach_sc_cmd)
2344 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2345 (set_noninvasive_cmd, set_thread_pause_cmd)
2346 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2347 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2348 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2349 * windows-nat.c (display_selectors): Constify.
2350 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2351 non-const "cfunc".
2352 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2353 (cmd_cfunc_eq): Likewise.
2354 (struct cmd_list_element): Likewise.
2355 (do_cfunc): Remove.
2356 (cli_user_command_p): Update.
2357 * command.h (add_cmd): Remove non-const overload.
2358 (cmd_cfunc_ftype): Remove typedef.
2359 (cmd_cfunc_eq): Remove non-const overload.
2360 * value.c (show_values): Constify.
2361 * thread.c (thread_apply_all_command): Constify.
2362 * symfile.c (load_command): Constify.
2363 * source.c (directory_command): Constify.
2364 * maint.c (maintenance_internal_error)
2365 (maintenance_demangler_warning, maintenance_space_display)
2366 (maintenance_print_architecture, maintenance_translate_address)
2367 (maintenance_info_selftests, maintenance_internal_warning):
2368 Constify.
2369 * breakpoint.c (disable_trace_command, enable_trace_command):
2370 Constify.
2371 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2372 Constify.
2373 (add_auto_load_safe_path): Constify.
2374 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2375 * top.h (show_commands): Constify.
2376 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2377 * sparc64-tdep.c (adi_examine_command): Constify.
2378 (adi_assign_command): Constify.
2379
2380 2017-11-07 Tom Tromey <tom@tromey.com>
2381
2382 * frame.h (info_locals_command, info_args_command): Constify.
2383 * auto-load.h (auto_load_info_scripts): Constify.
2384 * inferior.h (registers_info): Constify.
2385 * copying.c: Rebuild.
2386 * copying.awk: Constify generated commands.
2387 * auto-load.c (auto_load_info_scripts)
2388 (info_auto_load_gdb_scripts): Constify.
2389 * cli/cli-decode.c (struct cmd_list_element): Take a
2390 cmd_const_cfunc_ftype.
2391 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2392 * tui/tui-win.c (tui_all_windows_info): Constify.
2393 * python/py-auto-load.c (info_auto_load_python_scripts):
2394 Constify.
2395 * cli/cli-cmds.c (show_command): Remove non-const overload.
2396 * tracepoint.c (info_tvariables_command, info_scope_command):
2397 Constify.
2398 (info_static_tracepoint_markers_command): Constify.
2399 * thread.c (info_threads_command): Constify.
2400 (print_thread_info_1): Constify.
2401 * target.c (info_target_command): Constify.
2402 * symtab.c (info_sources_command, info_functions_command)
2403 (info_types_command): Constify.
2404 (info_variables_command): Remove non-const overload.
2405 * symfile.c (info_ext_lang_command): Constify.
2406 * stack.c (info_frame_command, info_locals_command)
2407 (info_args_command): Constify.
2408 (backtrace_command): Remove non-const overload.
2409 * source.c (info_source_command, info_line_command): Constify.
2410 * solib.c (info_sharedlibrary_command): Constify.
2411 * skip.c (info_skip_command): Constify.
2412 * ser-go32.c (info_serial_command): Constify.
2413 * reverse.c (info_bookmarks_command): Constify.
2414 * printcmd.c (info_symbol_command, info_address_command)
2415 (info_display_command): Constify.
2416 * osdata.c (info_osdata_command): Constify.
2417 * objc-lang.c (info_selectors_command, info_classes_command):
2418 Constify.
2419 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2420 * memattr.c (info_mem_command): Constify.
2421 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2422 * linux-fork.c (info_checkpoints_command): Constify.
2423 * infrun.c (info_signals_command): Constify.
2424 * inflow.c (info_terminal_command): Constify.
2425 * inferior.c (info_inferiors_command): Constify.
2426 (print_inferior): Constify.
2427 * infcmd.c (info_program_command, info_all_registers_command)
2428 (info_registers_command, info_vector_command)
2429 (info_float_command): Constify.
2430 (registers_info): Constify.
2431 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2432 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2433 Constify.
2434 * f-valprint.c (info_common_command): Constify.
2435 * dcache.c (info_dcache_command): Constify.
2436 (dcache_info_1): Constify.
2437 * darwin-nat-info.c (info_mach_tasks_command)
2438 (info_mach_task_command, info_mach_ports_command)
2439 (info_mach_port_command, info_mach_threads_command)
2440 (info_mach_thread_command, info_mach_regions_command)
2441 (info_mach_regions_recurse_command, info_mach_region_command)
2442 (info_mach_exceptions_command): Constify.
2443 (get_task_from_args): Constify.
2444 * cp-support.c (info_vtbl_command): Constify.
2445 * breakpoint.c (info_watchpoints_command)
2446 (info_tracepoints_command): Constify.
2447 (info_breakpoints_command): Remove non-const overload.
2448 * avr-tdep.c (avr_io_reg_read_command): Constify.
2449 * auxv.c (info_auxv_command): Constify.
2450 * ada-tasks.c (info_tasks_command): Constify.
2451 (info_task): Constify.
2452 * ada-lang.c (info_exceptions_command): Constify.
2453
2454 2017-11-07 Tom Tromey <tom@tromey.com>
2455
2456 * solib.h (no_shared_libraries): Constify.
2457 * frame.h (return_command): Constify.
2458 * cli/cli-cmds.h (quit_command): Constify.
2459 * top.h (quit_command, execute_command): Constify.
2460 * target.h (flash_erase_command): Constify.
2461 * inferior.h (set_inferior_args, attach_command): Constify.
2462 * tracepoint.h (start_tracing, stop_tracing): Constify.
2463 * breakpoint.h (break_command, tbreak_command)
2464 (hbreak_command_wrapper, thbreak_command_wrapper)
2465 (rbreak_command_wrapper, watch_command_wrapper)
2466 (awatch_command_wrapper, rwatch_command_wrapper)
2467 (get_tracepoint_by_number): Constify.
2468 * symtab.c (info_variables_command, rbreak_command)
2469 (symtab_symbol_info): Constify.
2470 (info_variables_command): Add non-const overload.
2471 * top.c (dont_repeat_command): Constify.
2472 * breakpoint.c (ignore_command, commands_command)
2473 (condition_command, tbreak_command, hbreak_command)
2474 (thbreak_command, clear_command, break_command)
2475 (info_breakpoints_command, watch_command, rwatch_command)
2476 (awatch_command, trace_command, ftrace_command, strace_command)
2477 (trace_pass_command, break_range_command, dprintf_command)
2478 (agent_printf_command, get_tracepoint_by_number)
2479 (watch_maybe_just_location, trace_pass_command): Constify.
2480 (info_breakpoints_command): Add non-const overload.
2481 * tracefile.c (tsave_command): Constify.
2482 * infcmd.c (attach_command, disconnect_command, signal_command)
2483 (queue_signal_command, stepi_command, nexti_command)
2484 (finish_command, next_command, step_command, until_command)
2485 (advance_command, jump_command, continue_command, run_command)
2486 (start_command, starti_command, interrupt_command)
2487 (run_command_1, set_inferior_args, step_1): Constify.
2488 * inferior.c (add_inferior_command, remove_inferior_command)
2489 (clone_inferior_command): Constify.
2490 * linux-fork.c (checkpoint_command, restart_command): Constify.
2491 * windows-nat.c (signal_event_command): Constify.
2492 * guile/guile.c (guile_repl_command, guile_command): Constify.
2493 * printcmd.c (x_command, display_command, printf_command)
2494 (output_command, set_command, call_command, print_command)
2495 (eval_command): Constify.
2496 (non_const_set_command): Remove.
2497 (_initialize_printcmd): Update.
2498 * source.c (forward_search_command, reverse_search_command):
2499 Constify.
2500 * jit.c (jit_reader_load_command, jit_reader_unload_command):
2501 Constify.
2502 * infrun.c (handle_command): Constify.
2503 * memattr.c (mem_command): Constify.
2504 * stack.c (return_command, up_command, up_silently_command)
2505 (down_command, down_silently_command, frame_command)
2506 (backtrace_command, func_command, backtrace_command_1): Constify.
2507 (backtrace_command): Add non-const overload.
2508 * remote-sim.c (simulator_command): Constify.
2509 * exec.c (set_section_command): Constify.
2510 * tracepoint.c (tdump_command, trace_variable_command)
2511 (tstatus_command, tstop_command, tstart_command)
2512 (end_actions_pseudocommand, while_stepping_pseudocommand)
2513 (collect_pseudocommand, teval_pseudocommand, actions_command)
2514 (start_tracing, stop_tracing): Constify.
2515 * value.c (init_if_undefined_command): Constify.
2516 * tui/tui-stack.c (tui_update_command): Constify.
2517 * tui/tui-win.c (tui_refresh_all_command)
2518 (tui_set_tab_width_command, tui_set_win_height_command)
2519 (tui_set_focus_command, tui_scroll_forward_command)
2520 (tui_scroll_backward_command, tui_scroll_left_command)
2521 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
2522 (tui_set_win_height): Constify.
2523 * tui/tui-layout.c (tui_layout_command): Constify.
2524 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
2525 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
2526 (proc_untrace_sysexit_cmd): Constify.
2527 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
2528 (threadset_test_cmd, threadlist_update_test_cmd)
2529 (threadalive_test): Constify.
2530 * objc-lang.c (print_object_command): Constify.
2531 * command.h (add_com): Constify.
2532 * cli/cli-dump.c (restore_command): Constify.
2533 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
2534 (help_command, complete_command, shell_command, edit_command)
2535 (list_command, disassemble_command, make_command)
2536 (apropos_command, alias_command): Constify.
2537 * cli/cli-script.c (document_command, define_command)
2538 (while_command, if_command, validate_comname): Constify.
2539 * cli/cli-decode.c (struct cmd_list_element): Change type of
2540 "fun".
2541 * target.c (do_monitor_command, flash_erase_command): Constify.
2542 * regcache.c (reg_flush_command): Constify.
2543 * reverse.c (reverse_step, reverse_next, reverse_stepi)
2544 (reverse_nexti, reverse_continue, reverse_finish)
2545 (save_bookmark_command, goto_bookmark_command)
2546 (exec_reverse_once): Constify.
2547 * python/python.c (python_interactive_command, python_command):
2548 Constify.
2549 * typeprint.c (ptype_command, whatis_command, whatis_exp):
2550 Constify.
2551 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
2552 * gcore.c (gcore_command): Constify.
2553
2554 2017-11-07 Tom Tromey <tom@tromey.com>
2555
2556 * printcmd.c (x_command): Call set_repeat_arguments.
2557 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2558 * top.c (repeat_arguments): New global.
2559 (set_repeat_arguments): New function.
2560 (execute_command): Handle repeat_arguments.
2561 (show_commands): Calls set_repeat_arguments.
2562 * command.h (set_repeat_arguments): Declare.
2563
2564 2017-11-07 Tom Tromey <tom@tromey.com>
2565
2566 * stack.c (backtrace_command): Use std::string.
2567 (backtrace_command_1): Make "count_exp" const.
2568
2569 2017-11-07 Tom Tromey <tom@tromey.com>
2570
2571 * source.c (directory_switch, mod_path, add_path): Constify.
2572 * defs.h (add_path, mod_path, directory_switch): Constify.
2573 * mi/mi-cmd-env.c (env_mod_path): Constify.
2574
2575 2017-11-07 Tom Tromey <tom@tromey.com>
2576
2577 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2578 (run_command_1, continue_command, step_1, jump_command)
2579 (signal_command, until_command, advance_command, finish_command)
2580 (attach_command): Update.
2581
2582 2017-11-07 Tom Tromey <tom@tromey.com>
2583
2584 * command.h (set_cmd_cfunc): Don't declare.
2585 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2586
2587 2017-11-07 Tom Tromey <tom@tromey.com>
2588
2589 * stack.c (select_frame_command): Constify.
2590 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2591 * command.h (add_com_suppress_notification): Constify.
2592
2593 2017-11-07 Tom Tromey <tom@tromey.com>
2594
2595 * breakpoint.c (stop_command): Constify.
2596 * cli/cli-decode.c (struct cmd_list_element): Constify.
2597 * command.h (add_abbrev_prefix_cmd): Constify.
2598
2599 2017-11-07 Pedro Alves <palves@redhat.com>
2600
2601 * breakpoint.c (extract_bp_kind): New enum.
2602 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
2603 factored out from ...
2604 (extract_bp_number_and_location): ... here.
2605 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
2606
2607 2017-11-07 Pedro Alves <palves@redhat.com>
2608
2609 * breakpoint.c (extract_bp_number_and_location): Change return
2610 type to void. Throw error instead of warning.
2611 (enable_disable_command): Adjust.
2612
2613 2017-11-07 Xavier Roirand <roirand@adacore.com>
2614 Pedro Alves <palves@redhat.com>
2615
2616 * breakpoint.c (map_breakpoint_number_range): New, factored out
2617 from ...
2618 (map_breakpoint_numbers): ... here.
2619 (find_location_by_number): Change parameters from string to
2620 breakpoint number and location.
2621 (extract_bp_number_and_location): New function.
2622 (enable_disable_bp_num_loc)
2623 (enable_disable_breakpoint_location_range)
2624 (enable_disable_command): New functions, factored out ...
2625 (enable_command, disable_command): ... these functions, and
2626 adjusted to support ranges.
2627 * NEWS: Document enable/disable breakpoint location range feature.
2628
2629 2017-11-06 Luis Machado <luis.machado@linaro.org>
2630
2631 * MAINTAINERS (Write After Approval): Update my e-mail address.
2632
2633 2017-11-06 Pedro Alves <palves@redhat.com>
2634
2635 * gnu-nat.c (gnu_terminal_init): Delete.
2636 (gnu_target): Don't install gnu_terminal_init.
2637 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2638 (child_terminal_init): ... this function.
2639
2640 2017-11-06 Pedro Alves <palves@redhat.com>
2641
2642 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2643 sgtty.h.
2644 * config.in, configure: Regenerate.
2645
2646 2017-11-06 Pedro Alves <palves@redhat.com>
2647
2648 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
2649 (async_init_signals): Adjust.
2650 (handle_stop_sig): Rename to ...
2651 (handle_sigtstp): ... this.
2652 (async_stop_sig): Rename to ...
2653 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
2654 SIGTSTP path.
2655 * event-top.h: Move signal.h include to the top. Check SIGTSTP
2656 instead of STOP_SIGNAL thoughout.
2657 (handle_stop_sig): Rename to ...
2658 (handle_sigtstp): ... this.
2659 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
2660
2661 2017-11-06 Pedro Alves <palves@redhat.com>
2662
2663 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
2664 longer set flags twice in row.
2665
2666 2017-11-06 Pedro Alves <palves@redhat.com>
2667
2668 * Makefile.in (SER_HARDWIRE): Update comment.
2669 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
2670 * common/gdb_termios.h: Delete file.
2671 * common/job-control.c: Include termios.h and unistd.h instead of
2672 gdb_termios.h.
2673 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
2674 check.
2675 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
2676 Remove sgtty code.
2677 * configure.ac: No longer check for termio.h and sgtty.h.
2678 * configure: Regenerate.
2679 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
2680 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
2681 Replace PROCESS_GROUP_TYPE references with pid_t references
2682 throughout.
2683 (gdb_getpgrp): Delete.
2684 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
2685 (child_terminal_inferior): Remove comment. Remove sgtty code.
2686 (child_terminal_ours_1): Use tcgetpgrp directly instead of
2687 gdb_getpgrp. Use serial_set_tty_state instead aof
2688 serial_noflush_set_tty_state. Remove sgtty code.
2689 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
2690 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
2691 (inferior_process_group): Now returns pid_t.
2692 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
2693 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
2694 * ser-event.c (serial_event_ops): Update.
2695 * ser-go32.c (dos_noflush_set_tty_state): Delete.
2696 (dos_ops): Update.
2697 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
2698 * ser-pipe.c (pipe_ops): Update.
2699 * ser-tcp.c (tcp_ops): Update.
2700 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
2701 HAVE_TERMIOS checks.
2702 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
2703 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
2704 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
2705 assume termios.
2706 (hardwire_noflush_set_tty_state): Delete.
2707 (hardwire_print_tty_state, hardwire_drain_output)
2708 (hardwire_flush_output, hardwire_flush_input)
2709 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
2710 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
2711 code, and assume termios.
2712 (hardwire_ops): Update.
2713 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
2714 * serial.c (serial_noflush_set_tty_state): Delete.
2715 * serial.h (serial_noflush_set_tty_state): Delete.
2716 (serial_ops::noflush_set_tty_state): Delete.
2717
2718 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2719
2720 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
2721 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
2722 (COMMON_OBS): Remove doublest.o and dfp.o.
2723 Do not build target-float.c (instead of doublest.c)
2724 with -Wformat-nonliteral.
2725
2726 * doublest.c: Remove file.
2727 * doublest.h: Remove file.
2728 * dfp.c: Remove file.
2729 * dfp.h: Remove file.
2730
2731 * target-float.c: Do not include "doublest.h" and "dfp.h".
2732 (DOUBLEST): Move here from doublest.h.
2733 (enum float_kind): Likewise.
2734 (FLOATFORMAT_CHAR_BIT): Likewise.
2735 (FLOATFORMAT_LARGEST_BYTES): Likewise.
2736 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
2737 (floatformat_precision): Likewise.
2738 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
2739 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
2740 Likewise.
2741 (host_float_format, host_double_format, host_long_double_format):
2742 Likewise.
2743 (floatformat_to_string, floatformat_from_string): Likewise.
2744 (floatformat_to_doublest): Likewise. Also, inline the original
2745 convert_floatformat_to_doublest.
2746 (floatformat_from_doublest): Likewise. Also, inline the original
2747 convert_floatformat_from_doublest.
2748
2749 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
2750 (MAX_DECIMAL_STRING): Move here from dfp.c.
2751 (match_endianness): Likewise.
2752 (set_decnumber_context, decimal_check_errors): Likewise.
2753 (decimal_from_number, decimal_to_number): Likewise.
2754 (decimal_to_string, decimal_from_string): Likewise. Make static.
2755 (decimal_from_longest, decimal_from_ulongest): Likewise.
2756 (decimal_to_longest): Likewise.
2757 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
2758 (decimal_convert): Likewise.
2759
2760 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2761
2762 * doublest.c: Do not include "gdbtypes.h".
2763 (extract_typed_floating): Remove.
2764 (store_typed_floating): Remove.
2765 (convert_typed_floating): Remove.
2766 * doublest.h (struct type): Remove.
2767 (DOUBLEST_PRINT_FORMAT): Remove.
2768 (DOUBLEST_SCAN_FORMAT): Remove.
2769 (extract_typed_floating): Remove.
2770 (store_typed_floating): Remove.
2771 (convert_typed_floating): Remove.
2772
2773 * dfp.c (decimal_from_doublest): Remove.
2774 (decimal_to_doublest): Remove.
2775 * dfp.h: Do not include "doublest.h".
2776 (decimal_from_doublest): Remove.
2777 (decimal_to_doublest): Remove.
2778
2779 * value.c: Do not include "doublest.h" and "dfp.h".
2780 (value_as_double): Remove.
2781 (unpack_double): Remove.
2782 (value_from_double): Remove.
2783 (value_from_decfloat): Remove.
2784 * value.h: Do not include "doublest.h".
2785 (value_as_double): Remove.
2786 (unpack_double): Remove.
2787 (value_from_double): Remove.
2788 (value_from_decfloat): Remove.
2789
2790 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2791
2792 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
2793 (i386_extract_return_value): Use target_float_convert.
2794 (i386_store_return_value): Likewise.
2795 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
2796 (i387_value_to_register): Likewise.
2797 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
2798 (ia64_register_to_value): Use target_float_convert.
2799 (ia64_value_to_register): Likewise.
2800 (ia64_extract_return_value): Likewise.
2801 (ia64_store_return_value): Likewise.
2802 (ia64_push_dummy_call): Likewise.
2803 * m68k-tdep.c: Include "target-float.h".
2804 (m68k_register_to_value): Use target_float_convert.
2805 (m68k_value_to_register): Likewise.
2806 (m68k_svr4_extract_return_value): Likewise.
2807 (m68k_svr4_store_return_value): Likewise.
2808 * ppc-sysv-tdep.c: Include "target-float.h".
2809 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
2810 (do_ppc_sysv_return_value): Likewise.
2811 (ppc64_sysv_abi_push_freg): Likewise.
2812 (ppc64_sysv_abi_return_value_base): Likewise.
2813 * rs6000-aix-tdep.c: Include "target-float.h".
2814 (rs6000_push_dummy_call): Use target_float_convert.
2815 (rs6000_return_value): Likewise.
2816 * rs6000-lynx178-tdep.c: Include "target-float.h".
2817 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
2818 (rs6000_lynx178_return_value): Likewise.
2819 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
2820 (rs6000_register_to_value): Use target_float_convert.
2821 (rs6000_value_to_register): Likewise.
2822 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
2823 (arm_extract_return_value): Use target_float_convert.
2824 (arm_store_return_value): Likewise.
2825 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
2826 (sh_register_convert_to_virtual): Use target_float_convert.
2827 (sh_register_convert_to_raw): Likewise.
2828 * sh64-tdep.c: Include "target-float.h".
2829 (sh64_extract_return_value): Use target_float_convert.
2830 (sh64_register_convert_to_virtual): Likewise.
2831 (sh64_register_convert_to_raw): Likewise. Fix argument types.
2832
2833 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2834
2835 * target-float.c (floatformat_to_host_double): New function.
2836 (floatformat_from_host_double): Likewise.
2837 (target_float_to_host_double): Likewise.
2838 (target_float_from_host_double): Likewise.
2839 * target-float.h (target_float_to_host_double): Add prototype.
2840 (target_float_from_host_double): Likewise.
2841
2842 * guile/scm-value.c: Include "target-float.h".
2843 (gdbscm_value_to_real): Use target_float_to_host_double.
2844 Handle integer source values via value_as_long.
2845 * guile/scm-math.c: Include "target-float.h". Do not include
2846 "doublest.h", "dfp.h", and "expression.h".
2847 (vlscm_convert_typed_number): Use target_float_from_host_double.
2848 (vlscm_convert_number): Likewise.
2849
2850 * python/py-value.c (valpy_float): Use target_float_to_host_double.
2851 (convert_value_from_python): Use target_float_from_host_double.
2852
2853 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2854
2855 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
2856 (cast_from_fixed): Likewise.
2857 (ada_scaling_type): New function.
2858 (ada_delta): Return value instead of DOUBLEST. Perform target
2859 arithmetic instead of host arithmetic.
2860 (scaling_factor): Rename to ...
2861 (ada_scaling_factor) ... this. Make non-static. Return value instead
2862 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
2863 (ada_fixed_to_float): Remove.
2864 (ada_float_to_fixed): Remove.
2865 * ada-lang.h (ada_fixed_to_float): Remove.
2866 (ada_float_to_fixed): Remove.
2867 (ada_delta): Return value instead of DOUBLEST.
2868 (ada_scaling_factor): Add prototype.
2869
2870 * ada-typeprint.c: Include "target-float.h".
2871 (print_fixed_point_type): Perform target arithmetic instead of
2872 host arithmetic.
2873 * ada-valprint.c: Include "target-float.h".
2874 (ada_val_print_num): Perform target arithmetic instead of
2875 host arithmetic for fixed-point types.
2876
2877 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2878
2879 * target-float.c: Include <math.h>.
2880 (floatformat_binop): New function.
2881 (floatformat_compare): Likewise.
2882 (target_float_binop): Likewise.
2883 (target_float_compare): Likewise.
2884 * target-float.h: Include "expression.h".
2885 (target_float_binop): Add prototype.
2886 (target_float_compare): Likewise.
2887
2888 * valarith.c: Do not include "doublest.h" and "dfp.h".
2889 Include "common/byte-vector.h".
2890 (value_args_as_decimal): Remove, replace by ...
2891 (value_args_as_target_float): ... this function. Handle both
2892 binary and decimal target floating-point formats.
2893 (scalar_binop): Handle both binary and decimal FP using
2894 value_args_as_target_float and target_float_binop.
2895 (value_equal): Handle both binary and decimal FP using
2896 value_args_as_target_float and target_float_compare.
2897 (value_less): Likewise.
2898 (value_pos): Handle all scalar types as simple copy.
2899 (value_neg): Handle all scalar types via BINOP_SUB from 0.
2900 * dfp.c (decimal_binop): Throw error instead of internal_error
2901 when called with an unsupported operation code.
2902
2903 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2904
2905 * target-float.c (target_float_to_string): New function.
2906 (target_float_from_string): New function.
2907 * target-float.h (target_float_to_string): Add prototype.
2908 (target_float_from_string): Add prototype.
2909
2910 * valprint.c: Include "target-float.h". Do not include
2911 "doublest.h" and "dfp.h".
2912 (print_floating): Use target_float_to_string.
2913 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
2914 (printf_floating): Use target_float_to_string.
2915 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
2916 (print_i387_value): Use target_float_to_string.
2917 * mips-tdep.c: Include "target-float.h".
2918 (mips_print_fp_register): Use target_float_to_string.
2919 * sh64-tdep.c: Include "target-float.h".
2920 (sh64_do_fp_register): Use target_float_to_string.
2921
2922 * parse.c: Include "target-float.h". Do not include
2923 "doublest.h" and "dfp.h".
2924 (parse_float): Use target_float_from_string.
2925 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
2926 (define_symbol): Use target_float_from_string.
2927 * gdbarch-selftests.c: Include "target-float.h".
2928 (register_to_value_test): Use target_float_from_string.
2929
2930 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2931
2932 * Makefile.c (SFILES): Add target-float.c.
2933 (HFILES_NO_SRCDIR): Add target-float.h.
2934 (COMMON_OBS): Add target-float.o.
2935 * target-float.h: New file.
2936 * target-float.c: New file.
2937
2938 * doublest.c (floatformat_classify): Fix detection of float_zero.
2939
2940 * gdbtypes.c (is_floating_type): New function.
2941 * gdbtypes.h (is_floating_type): Add prototype.
2942
2943 * value.c: Do not include "floatformat.h".
2944 (unpack_double): Use target_float_is_valid.
2945 (is_floating_value): New function.
2946 * value.h (is_floating_value): Add prototype-
2947
2948 * valarith.c: Include "target-float.h".
2949 (value_logical_not): Use target_float_is_zero.
2950
2951 * python/py-value.c: Include "target-float.h".
2952 (valpy_nonzero): Use target_float_is_zero.
2953
2954 2017-11-04 Tom Tromey <tom@tromey.com>
2955
2956 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
2957
2958 2017-11-04 Tom Tromey <tom@tromey.com>
2959
2960 * breakpoint.c (set_momentary_breakpoint): Return
2961 breakpoint_up.
2962 (until_break_command): Update.
2963 (new_until_break_fsm): Change argument types to
2964 breakpoint_up.
2965 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2966 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
2967 Remove.
2968 * infcmd.c (finish_forward): Update.
2969 * breakpoint.h (set_momentary_breakpoint)
2970 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2971 (make_cleanup_delete_breakpoint): Remove.
2972 (struct breakpoint_deleter): New.
2973 (breakpoint_up): New typedef.
2974 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
2975 (insert_exception_resume_breakpoint): Update.
2976 (insert_exception_resume_from_probe): Update.
2977 (insert_longjmp_resume_breakpoint): Update.
2978 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
2979 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
2980 * infcall.c (call_function_by_hand_dummy): Update
2981
2982 2017-11-04 Tom Tromey <tom@tromey.com>
2983
2984 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
2985
2986 2017-11-04 Tom Tromey <tom@tromey.com>
2987
2988 * linux-tdep.c (linux_core_info_proc_mappings): Use
2989 gdb::def_vector.
2990 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
2991 "size" argument.
2992 (linux_corefile_thread): Update.
2993 (linux_make_corefile_notes): Remove unused variable.
2994
2995 2017-11-04 Tom Tromey <tom@tromey.com>
2996
2997 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
2998 gdb::byte_vector.
2999
3000 2017-11-04 Tom Tromey <tom@tromey.com>
3001
3002 * objfiles.c (do_free_objfile_cleanup): Remove.
3003 * compile/compile-object-load.c (compile_object_load): Update.
3004 * objfiles.h (make_cleanup_free_objfile): Remove.
3005
3006 2017-11-04 Tom Tromey <tom@tromey.com>
3007
3008 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3009 (adi_read_versions): Change "tags" to "gdb_byte *".
3010 (adi_print_versions): Likewise.
3011
3012 2017-11-04 Tom Tromey <tom@tromey.com>
3013
3014 * breakpoint.c
3015 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3016 from start_rbreak_breakpoints.
3017 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3018 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3019 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3020 * symtab.c (do_end_rbreak_breakpoints): Remove.
3021 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3022
3023 2017-11-04 Tom Tromey <tom@tromey.com>
3024
3025 * cp-namespace.c (reset_directive_searched): Remove.
3026 (cp_lookup_symbol_via_imports): Use scoped_restore.
3027 * cp-support.c (reset_directive_searched): Remove.
3028 (make_symbol_overload_list_using): Use scoped_restore.
3029 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3030 (reset_directive_searched): Remove.
3031
3032 2017-11-04 Tom Tromey <tom@tromey.com>
3033
3034 * symfile.c (find_separate_debug_file_by_debuglink): Use
3035 unique_xmalloc_ptr.
3036
3037 2017-11-04 Tom Tromey <tom@tromey.com>
3038
3039 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3040 type of "info".
3041 (compute_stack_depth): Likewise.
3042 (do_compile_dwarf_expr_to_c): Use std::vector.
3043
3044 2017-11-04 Tom Tromey <tom@tromey.com>
3045
3046 * compile/compile-object-load.c (link_callbacks_einfo): Use
3047 std::string.
3048
3049 2017-11-04 Tom Tromey <tom@tromey.com>
3050
3051 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3052 Use scoped_free_pendings.
3053 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3054 scoped_free_pendings.
3055 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3056 (xcoff_initial_scan): Likewise.
3057 * buildsym.c (reset_symtab_globals): Update comment.
3058 (scoped_free_pendings): Rename from really_free_pendings.
3059 (prepare_for_building): Update comment.
3060 (buildsym_init): Likewise.
3061 * buildsym.h (class scoped_free_pendings): New class.
3062 (really_free_pendings): Don't declare.
3063
3064 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3065
3066 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3067 output when converting a zero value to a special byteorder format.
3068
3069 2017-11-02 Yao Qi <yao.qi@linaro.org>
3070
3071 * frame.c (do_frame_register_read): Remove aspace.
3072 * jit.c (jit_frame_sniffer): Likwise.
3073 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3074 * regcache.c (regcache::regcache): Pass nullptr.
3075 (regcache_print): Caller updated.
3076 * regcache.h (regcache::regcache): Remove one constructor
3077 parameter aspace.
3078
3079 2017-11-02 Yao Qi <yao.qi@linaro.org>
3080
3081 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3082
3083 2017-11-02 Yao Qi <yao.qi@linaro.org>
3084
3085 * breakpoint.c (insert_single_step_breakpoints): Update.
3086 * frame.c (struct frame_info) <aspace>: Add const.
3087 (frame_save_as_regcache): Add const.
3088 (get_frame_address_space): Return const address_space *.
3089 * frame.h (get_frame_address_space): Update declaration.
3090 * infrun.c (struct step_over_info) <aspace>: Add const.
3091 (set_step_over_info): Make aspace const.
3092 (displaced_step_prepare_throw): Change variable const.
3093 (resume): Likewise.
3094 (proceed): Likewise.
3095 (adjust_pc_after_break): Likewise.
3096 (save_waitstatus): Likewise.
3097 (handle_signal_stop): Likewise.
3098 (keep_going_pass_signal): Likewise.
3099 * jit.c (jit_frame_sniffer): Add const.
3100 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3101 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3102 * record-full.c (record_full_wait_1): Likewise.
3103 * regcache.c (regcache::regcache): Change parameter to const.
3104 * regcache.h (regcache::regcache): Likewise.
3105 (regcache::aspace): Return const address_space *.
3106 (regcache) <m_aspace>: Add const.
3107
3108 2017-11-02 Yao Qi <yao.qi@linaro.org>
3109
3110 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3111 * frame.c (create_sentinel_frame): Likewise.
3112 * infrun.c (displaced_step_prepare_throw): Likewise.
3113 (resume): Likewise.
3114 (thread_still_needs_step_over_bp): Likewise.
3115 (proceed): Likewise.
3116 (do_target_wait): Likewise.
3117 (adjust_pc_after_break): Likewise.
3118 (handle_syscall_event): Likewise.
3119 (save_waitstatus): Likewise.
3120 (handle_inferior_event_1): Likewise.
3121 (handle_signal_stop): Likewise.
3122 (keep_going_pass_signal): Likewise.
3123 * linux-nat.c (status_callback): Likewise.
3124 (save_stop_reason): Likewise.
3125 (resume_stopped_resumed_lwps): Likewise.
3126 * record-full.c (record_full_exec_insn): Likewise.
3127 (record_full_wait_1): Likewise.
3128 * regcache.c (get_regcache_aspace): Remove.
3129 * regcache.h (get_regcache_aspace): Remove.
3130
3131 2017-11-02 Yao Qi <yao.qi@linaro.org>
3132
3133 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3134 (init_regcache_descr): Use gdbarch_num_regs.
3135 (regcache::regcache): Likewise.
3136 (regcache::get_register_status): Likewise.
3137 (regcache::assert_raw_regnum): Likewise.
3138 (regcache::cooked_read): Likewise.
3139 (regcache::cooked_read_value): Likewise.
3140 (regcache::cooked_write): Likewise.
3141 (regcache::dump): Likewise.
3142 (regcache::num_raw_registers): New method.
3143 * regcache.h (class regcache) <num_raw_registers>: New.
3144
3145 2017-11-02 Yao Qi <yao.qi@linaro.org>
3146
3147 * regcache.c (regcache::assert_regnum): New method.
3148 (regcache::invalidate): Call assert_regnum.
3149 (regcache::raw_update): Likewise.
3150 (regcache::raw_write): Likewise.
3151 (regcache::raw_read_part): Likewise.
3152 (regcache::raw_write_part): Likewise.
3153 (regcache::raw_supply): Likewise.
3154 (regcache::raw_supply_integer): Likewise.
3155 (regcache::raw_supply_zeroed): Likewise.
3156 (regcache::raw_collect): Likewise.
3157 (regcache::raw_collect_integer): Likewise.
3158 * regcache.h (regcache::assert_regnum): Declare.
3159
3160 2017-11-02 Yao Qi <yao.qi@linaro.org>
3161
3162 * regcache.c (regcache::dump): Remove code.
3163
3164 2017-11-02 Yao Qi <yao.qi@linaro.org>
3165
3166 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3167 Remove.
3168 <sizeof_cooked_register_status>: Remove.
3169 (init_regcache_descr): Update.
3170 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3171 (regcache::save): Likewise.
3172 (regcache::dump): Likewise.
3173
3174 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3175
3176 * ft32-tdep.c (ft32_fetch_instruction): New function.
3177 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3178
3179 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3180
3181 * cli/cli-script.c (execute_control_command): Rename to ...
3182 (execute_control_command_1): ... this.
3183 (execute_control_command): New function.
3184
3185 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3186
3187 * tracepoint.c (tfind_command): Remove const_cast.
3188
3189 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3190
3191 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3192
3193 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3194
3195 * common/common-utils.h (in_inclusive_range): New function.
3196 * arm-tdep.c (arm_record_extension_space): Use
3197 in_inclusive_range.
3198 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3199 * cris-tdep.c (cris_spec_reg_applicable): Use
3200 in_inclusive_range.
3201
3202 2017-10-30 Pedro Alves <palves@redhat.com>
3203 Simon Marchi <simon.marchi@ericsson.com>
3204
3205 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3206 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3207
3208 2017-10-30 Pedro Alves <palves@redhat.com>
3209
3210 * common/common-utils.c (string_appendf, string_vappendf): New
3211 functions.
3212 * common/common-utils.h (string_appendf, string_vappendf): New
3213 declarations.
3214 * unittests/common-utils-selftests.c (string_appendf_func)
3215 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3216 (string_vappendf_tests): New functions.
3217 (_initialize_common_utils_selftests): Register "string_appendf" and
3218 "string_vappendf tests".
3219
3220 2017-10-30 Pedro Alves <palves@redhat.com>
3221
3222 * unittests/common-utils-selftests.c (format_func): New typedef.
3223 (string_printf_tests, string_vprintf_tests): Tests factored out
3224 and merged to ...
3225 (test_format_func): ... this new function.
3226 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3227 test_format_func.
3228
3229 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3230
3231 * darwin-nat.c: Remove include of gdb.h.
3232
3233 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3234
3235 * xtensa-xtregs.c: Fix formatting issues.
3236
3237 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3238
3239 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3240
3241 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3242
3243 PR python/21213
3244 * python/py-infthread.c (thpy_get_inferior): Increment reference
3245 of inferior before returning it.
3246
3247 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3248
3249 * unittests/common-utils-selftests.c (format): Add
3250 ATTRIBUTE_PRINTF.
3251
3252 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3253
3254 * xml-syscall.c (struct syscall_desc): Add constructor.
3255 <name>: Change type to std::string.
3256 (syscall_desc_up): New typedef.
3257 (syscall_desc_p): Remove typeder.
3258 (DEF_VEC_P(syscall_desc_p)): Remove.
3259 (struct syscall_group_desc): Add constructor.
3260 <name>: Change type to std::string.
3261 <syscalls>: Change type to std::vector.
3262 (syscall_group_desc_up): New typedef.
3263 (syscall_group_desc_p): Remove typedef.
3264 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3265 (struct syscalls_info) <syscalls>: Change type to std::vector of
3266 unique_ptr.
3267 <groups>: Likewise.
3268 <my_gdb_datadir>: Change type to std::string.
3269 (syscalls_info_up): New typedef.
3270 (allocate_syscalls_info): Remove.
3271 (syscalls_info_free_syscalls_desc): Remove.
3272 (syscalls_info_free_syscall_group_desc): Remove.
3273 (free_syscalls_info): Remove.
3274 (make_cleanup_free_syscalls_info): Remove.
3275 (syscall_group_create_syscall_group_desc): Adjust.
3276 (syscall_group_add_syscall): Adjust.
3277 (syscall_create_syscall_desc): Adjust.
3278 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3279 (init_syscalls_info): Adjust.
3280 (syscall_group_get_group_by_name): Adjust.
3281 (xml_get_syscall_number): Adjust.
3282 (xml_get_syscall_name): Adjust.
3283 (xml_list_of_syscalls): Adjust.
3284 (xml_list_syscalls_by_group): Adjust.
3285 (xml_list_of_groups): Adjust.
3286
3287 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3288
3289 * probe.h: Don't include gdb_vecs.h.
3290 (DEF_VEC_P (probe_p)): Remove.
3291 (find_probes_in_objfile): Return an std::vector.
3292 * probe.c (find_probes_in_objfile): Likewise.
3293 * breakpoint.c (breakpoint_objfile_data)
3294 <longjmp_probes>: Change type to std::vector.
3295 <exception_probes>: Likewise.
3296 (free_breakpoint_probes): Don't manually free vectors.
3297 (create_longjmp_master_breakpoint): Adjust.
3298 (create_exception_master_breakpoint): Adjust.
3299 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3300 parameter type, adjust.
3301 (svr4_create_solib_event_breakpoints): Adjust.
3302
3303 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3304
3305 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3306 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3307 with new.
3308 (free_breakpoint_probes): Rename to ...
3309 (free_breakpoint_objfile_data): ... this, and call delete on
3310 bp_objfile_data..
3311
3312 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3313
3314 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3315 (loaded_script_ptr): Remove typedef.
3316 (DEF_VEC_P (loaded_script_ptr)): Remove.
3317 (struct collect_matching_scripts_data): Add constructor.
3318 <scripts_p>: Change type to (pointer to) std::vector.
3319 (collect_matching_scripts_data): Adjust.
3320 (sort_scripts_by_name): Make suitable for std::sort.
3321 (print_scripts): Don't sort vector, adjust to std::vector.
3322 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3323
3324 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3325
3326 * symfile.c (filename_language): Make struct, not typedef. Add
3327 constructor.
3328 <ext>: Change type to std::string.
3329 (DEF_VEC_O (filename_language)): Remove.
3330 (filename_language_table): Change type to std::vector.
3331 (add_filename_language): Adjust.
3332 (set_ext_lang_command): Adjust.
3333 (info_ext_lang_command): Adjust.
3334 (deduce_language_from_filename): Adjust.
3335 (class scoped_restore_filename_language_table): Remove.
3336 (test_filename_language): Use scoped_restore.
3337 (test_set_ext_lang_command): Use scoped_restore, adjust to
3338 std::vector change.
3339
3340 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3341
3342 * symfile.c: Include selftest.h.
3343 (class scoped_restore_filename_language_table): New.
3344 (test_filename_language): New test.
3345 (test_set_ext_lang_command): New test.
3346 (_initialize_symfile): Register tests.
3347
3348 2017-10-27 Keith Seitz <keiths@redhat.com>
3349
3350 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3351 in the bp_location, falling back to find_pc_sect_function when
3352 needed.
3353 (add_location_to_breakpoint): Save sal->symbol.
3354 * breakpoint.h (struct bp_location) <symbol>: New field.
3355 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3356 * symtab.h (struct symtab_and_line) <symbol>: New field.
3357
3358 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3359
3360 PR gdb/13669
3361 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3362 to rewind obstack.
3363
3364 2017-10-26 Pedro Alves <palves@redhat.com>
3365
3366 * remote.c (remote_async_terminal_ours_p): Delete.
3367 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3368 Remove references to 'remote_async_terminal_ours_p'.
3369
3370 2017-10-26 Yao Qi <yao.qi@linaro.org>
3371
3372 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3373
3374 2017-10-26 Yao Qi <yao.qi@linaro.org>
3375
3376 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3377 aspace const.
3378 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3379 Likewise.
3380 * breakpoint.c (bpstat_check_location): Remove cast.
3381 (breakpoint_hit_catch_fork): Make aspce const.
3382 (breakpoint_hit_catch_solib): Likewise.
3383 (breakpoint_hit_catch_exec): Likewise.
3384 (breakpoint_hit_ranged_breakpoint): Likewise.
3385 (breakpoint_hit_watchpoint): Likewise.
3386 (base_breakpoint_breakpoint_hit): Likewise.
3387 (bkpt_breakpoint_hit): Likewise.
3388 (dprintf_breakpoint_hit): Likewise.
3389 (tracepoint_breakpoint_hit): Likewise.
3390 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3391
3392 2017-10-26 Yao Qi <yao.qi@linaro.org>
3393
3394 * breakpoint.c (breakpoint_location_address_match): Change
3395 "struct address_space *" to "const address_space".
3396 (breakpoint_location_address_range_overlap): Likewise.
3397 (breakpoint_here_p): Likewise.
3398 (breakpoint_in_range_p): Likewise.
3399 (moribund_breakpoint_here_p): Likewise.
3400 (bp_location_inserted_here_p): Likewise.
3401 (software_breakpoint_inserted_here_p): Likewise.
3402 (hardware_breakpoint_inserted_here_p): Likewise.
3403 (hardware_watchpoint_inserted_in_range): Likewise.
3404 (bpstat_check_location): Likewise.
3405 (bpstat_stop_status): Likewise.
3406 (breakpoint_address_match): Likewise.
3407 (breakpoint_address_match_range): Likewise.
3408 (breakpoint_location_address_match): Likewise.
3409 (breakpoint_location_address_range_overlap): Likewise.
3410 (insert_single_step_breakpoint): Likewise.
3411 (breakpoint_has_location_inserted_here): Likewise.
3412 (single_step_breakpoint_inserted_here_p): Likewise.
3413 (pc_at_non_inline_function): Likewise.
3414 * breakpoint.h (bpstat_stop_status): Update declaration.
3415 (breakpoint_here_p): Likewise.
3416 (breakpoint_in_range_p): Likewise.
3417 (moribund_breakpoint_here_p): Likewise.
3418 (breakpoint_inserted_here_p): Likewise.
3419 (software_breakpoint_inserted_here_p): Likewise.
3420 (hardware_breakpoint_inserted_here_p): Likewise.
3421 (breakpoint_has_location_inserted_here): Likewise.
3422 (single_step_breakpoint_inserted_here_p): Likewise.
3423 (hardware_watchpoint_inserted_in_range): Likewise.
3424 (breakpoint_address_match): Likewise.
3425 (insert_single_step_breakpoint): Likewise.
3426 (pc_at_non_inline_function): Likewise.
3427 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3428 * record.c (record_check_stopped_by_breakpoint): Likewise.
3429 * record.h (record_check_stopped_by_breakpoint): Likewise.
3430 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3431
3432 2017-10-25 Yao Qi <yao.qi@linaro.org>
3433
3434 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3435 regcache->arch () instead get_regcache_arch.
3436 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3437 Likewise.
3438 (aarch64_fbsd_store_inferior_registers): Likewise.
3439 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3440 (store_gregs_to_thread): Likewise.
3441 (fetch_fpregs_from_thread): Likewise.
3442 (store_fpregs_to_thread): Likewise.
3443 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
3444 (aarch64_store_return_value): Likewise.
3445 (aarch64_software_single_step): Likewise.
3446 * aix-thread.c (aix_thread_wait): Likewise.
3447 (supply_reg32): Likewise.
3448 (supply_sprs64): Likewise.
3449 (supply_sprs32): Likewise.
3450 (fill_gprs64): Likewise.
3451 (fill_gprs32): Likewise.
3452 (fill_sprs64): Likewise.
3453 (fill_sprs32): Likewise.
3454 (store_regs_user_thread): Likewise.
3455 (store_regs_kernel_thread): Likewise.
3456 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3457 (alphabsd_store_inferior_registers): Likewise.
3458 * alpha-tdep.c (alpha_extract_return_value): Likewise.
3459 (alpha_store_return_value): Likewise.
3460 (alpha_deal_with_atomic_sequence): Likewise.
3461 (alpha_next_pc): Likewise.
3462 (alpha_software_single_step): Likewise.
3463 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3464 (amd64bsd_store_inferior_registers): Likewise.
3465 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3466 Likewise.
3467 (amd64_linux_store_inferior_registers): Likewise.
3468 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
3469 (amd64_collect_native_gregset): Likewise.
3470 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
3471 (amd64obsd_collect_uthread): Likewise.
3472 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
3473 (amd64_collect_fpregset): Likewise.
3474 (amd64_supply_fxsave): Likewise.
3475 (amd64_supply_xsave): Likewise.
3476 (amd64_collect_fxsave): Likewise.
3477 (amd64_collect_xsave): Likewise.
3478 * arc-tdep.c (arc_write_pc): Likewise.
3479 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
3480 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
3481 (arm_fbsd_store_inferior_registers): Likewise.
3482 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
3483 (store_vfp_regs): Likewise.
3484 (arm_linux_fetch_inferior_registers): Likewise.
3485 (arm_linux_store_inferior_registers): Likewise.
3486 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3487 (arm_linux_sigreturn_next_pc): Likewise.
3488 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3489 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
3490 (fetch_register): Likewise.
3491 (store_register): Likewise.
3492 * arm-tdep.c (arm_is_thumb): Likewise.
3493 (displaced_in_arm_mode): Likewise.
3494 (bx_write_pc): Likewise.
3495 (arm_get_next_pcs_addr_bits_remove): Likewise.
3496 (arm_software_single_step): Likewise.
3497 (arm_extract_return_value): Likewise.
3498 (arm_store_return_value): Likewise.
3499 (arm_write_pc): Likewise.
3500 * bfin-tdep.c (bfin_extract_return_value): Likewise.
3501 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3502 (bsd_uthread_store_registers): Likewise.
3503 * core-regset.c (fetch_core_registers): Likewise.
3504 * corelow.c (get_core_registers): Likewise.
3505 * cris-tdep.c (cris_store_return_value): Likewise.
3506 (cris_extract_return_value): Likewise.
3507 (find_step_target): Likewise.
3508 (find_step_target): Likewise.
3509 (cris_software_single_step): Likewise.
3510 * ctf.c (ctf_fetch_registers): Likewise.
3511 * darwin-nat.c (cancel_breakpoint): Likewise.
3512 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
3513 * frv-tdep.c (frv_extract_return_value): Likewise.
3514 * ft32-tdep.c (ft32_store_return_value): Likewise.
3515 (ft32_extract_return_value): Likewise.
3516 * go32-nat.c (fetch_register): Likewise.
3517 (go32_fetch_registers): Likewise.
3518 (go32_store_registers): Likewise.
3519 (store_register): Likewise.
3520 * h8300-tdep.c (h8300_extract_return_value): Likewise.
3521 (h8300_store_return_value): Likewise.
3522 * hppa-linux-nat.c (fetch_register): Likewise.
3523 (store_register): Likewise.
3524 (hppa_linux_fetch_inferior_registers): Likewise.
3525 (hppa_linux_store_inferior_registers): Likewise.
3526 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
3527 (i386_darwin_store_inferior_registers): Likewise.
3528 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
3529 (gnu_store_registers): Likewise.
3530 * i386-linux-nat.c (fetch_register): Likewise.
3531 (store_register): Likewise.
3532 (supply_gregset): Likewise.
3533 (fill_gregset): Likewise.
3534 (i386_linux_fetch_inferior_registers): Likewise.
3535 (i386_linux_store_inferior_registers): Likewise.
3536 (i386_linux_resume): Likewise.
3537 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
3538 Likewise.
3539 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
3540 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
3541 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
3542 (i386obsd_collect_uthread): Likewise.
3543 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3544 (i386_supply_gregset): Likewise.
3545 (i386_collect_gregset): Likewise.
3546 (i386_supply_fpregset): Likewise.
3547 (i386_collect_fpregset): Likewise.
3548 (i386_mpx_bd_base): Likewise.
3549 * i386-v4-nat.c (supply_fpregset): Likewise.
3550 (fill_fpregset): Likewise.
3551 * i387-tdep.c (i387_supply_fsave): Likewise.
3552 (i387_collect_fsave): Likewise.
3553 (i387_supply_fxsave): Likewise.
3554 (i387_collect_fxsave): Likewise.
3555 (i387_supply_xsave): Likewise.
3556 (i387_collect_xsave): Likewise.
3557 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3558 (ia64_linux_store_registers): Likewise.
3559 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3560 (ia64_extract_return_value): Likewise.
3561 (ia64_store_return_value): Likewise.
3562 (find_func_descr): Likewise.
3563 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3564 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3565 (inf_ptrace_store_registers): Likewise.
3566 * infrun.c (use_displaced_stepping): Likewise.
3567 (displaced_step_prepare_throw): Likewise.
3568 (resume): Likewise.
3569 (proceed): Likewise.
3570 (do_target_wait): Likewise.
3571 (adjust_pc_after_break): Likewise.
3572 (handle_inferior_event_1): Likewise.
3573 (handle_signal_stop): Likewise.
3574 (save_infcall_suspend_state): Likewise.
3575 (restore_infcall_suspend_state): Likewise.
3576 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3577 * jit.c (jit_frame_prev_register): Likewise.
3578 * linux-nat.c (save_stop_reason): Likewise.
3579 (linux_nat_wait_1): Likewise.
3580 (resume_stopped_resumed_lwps): Likewise.
3581 * linux-record.c (record_linux_sockaddr): Likewise.
3582 (record_linux_msghdr): Likewise.
3583 (record_linux_system_call): Likewise.
3584 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3585 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3586 (lm32_store_return_value): Likewise.
3587 * m32c-tdep.c (m32c_read_flg): Likewise.
3588 (m32c_pseudo_register_read): Likewise.
3589 (m32c_pseudo_register_write): Likewise.
3590 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3591 (m32r_linux_collect_gregset): Likewise.
3592 * m32r-tdep.c (m32r_store_return_value): Likewise.
3593 (m32r_extract_return_value): Likewise.
3594 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3595 (m68kbsd_collect_fpregset): Likewise.
3596 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3597 * m68k-linux-nat.c (fetch_register): Likewise.
3598 (old_fetch_inferior_registers): Likewise.
3599 (old_store_inferior_registers): Likewise.
3600 (store_regs): Likewise.
3601 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
3602 (m68k_svr4_store_return_value): Likewise.
3603 * m88k-tdep.c (m88k_store_arguments): Likewise.
3604 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
3605 (mi_cmd_data_write_register_values): Likewise.
3606 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
3607 (mips_fbsd_store_inferior_registers): Likewise.
3608 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
3609 (mips_fbsd_supply_gregs): Likewise.
3610 (mips_fbsd_collect_fpregs): Likewise.
3611 (mips_fbsd_collect_gregs): Likewise.
3612 (mips_fbsd_supply_fpregset): Likewise.
3613 (mips_fbsd_collect_fpregset): Likewise.
3614 (mips_fbsd_supply_gregset): Likewise.
3615 (mips_fbsd_collect_gregset): Likewise.
3616 * mips-linux-nat.c (supply_gregset): Likewise.
3617 (fill_gregset): Likewise.
3618 (supply_fpregset): Likewise.
3619 (fill_fpregset): Likewise.
3620 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
3621 (mips_fill_gregset): Likewise.
3622 (mips_supply_fpregset): Likewise.
3623 (mips_fill_fpregset): Likewise.
3624 (mips64_supply_gregset): Likewise.
3625 (micromips_linux_sigframe_validate): Likewise.
3626 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3627 (mipsnbsd_fetch_inferior_registers): Likewise.
3628 (mipsnbsd_store_inferior_registers): Likewise.
3629 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3630 (mipsnbsd_supply_gregset): Likewise.
3631 (mipsnbsd_iterate_over_regset_sections): Likewise.
3632 (mipsnbsd_supply_reg): Likewise.
3633 (mipsnbsd_supply_fpreg): Likewise.
3634 * mips-tdep.c (mips_in_frame_stub): Likewise.
3635 (mips_dummy_id): Likewise.
3636 (is_octeon_bbit_op): Likewise.
3637 (micromips_bc1_pc): Likewise.
3638 (extended_mips16_next_pc): Likewise.
3639 (mips16_next_pc): Likewise.
3640 (deal_with_atomic_sequence): Likewise.
3641 * moxie-tdep.c (moxie_process_readu): Likewise.
3642 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3643 * nto-procfs.c (procfs_store_registers): Likewise.
3644 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
3645 (ppcfbsd_store_inferior_registers): Likewise.
3646 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
3647 (fetch_altivec_register): Likewise.
3648 (get_spe_registers): Likewise.
3649 (fetch_spe_register): Likewise.
3650 (fetch_altivec_registers): Likewise.
3651 (fetch_all_gp_regs): Likewise.
3652 (fetch_all_fp_regs): Likewise.
3653 (store_vsx_register): Likewise.
3654 (store_altivec_register): Likewise.
3655 (set_spe_registers): Likewise.
3656 (store_spe_register): Likewise.
3657 (store_altivec_registers): Likewise.
3658 (store_all_gp_regs): Likewise.
3659 (store_all_fp_regs): Likewise.
3660 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
3661 (ppc_linux_collect_gregset): Likewise.
3662 (ppc_canonicalize_syscall): Likewise.
3663 (ppc_linux_record_signal): Likewise.
3664 (ppu2spu_prev_register): Likewise.
3665 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
3666 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
3667 (ppcobsd_store_registers): Likewise.
3668 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
3669 Likewise.
3670 (ppc_ravenscar_generic_store_registers): Likewise.
3671 * procfs.c (procfs_fetch_registers): Likewise.
3672 (procfs_store_registers): Likewise.
3673 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
3674 (ravenscar_store_registers): Likewise.
3675 (ravenscar_prepare_to_store): Likewise.
3676 * record-btrace.c (record_btrace_fetch_registers): Likewise.
3677 * record-full.c (record_full_wait_1): Likewise.
3678 (record_full_registers_change): Likewise.
3679 (record_full_store_registers): Likewise.
3680 (record_full_core_fetch_registers): Likewise.
3681 (record_full_save): Likewise.
3682 (record_full_goto_insn): Likewise.
3683 * regcache.c (regcache_register_size): Likewise.
3684 (get_regcache_arch): Remove.
3685 (regcache_read_pc): Likewise.
3686 * regcache.h (get_regcache_arch): Remove.
3687 * remote-sim.c (gdbsim_fetch_register): Likewise.
3688 (gdbsim_store_register): Likewise.
3689 * remote.c (fetch_register_using_p): Likewise.
3690 (send_g_packet): Likewise.
3691 (remote_prepare_to_store): Likewise.
3692 (store_registers_using_G): Likewise.
3693 * reverse.c (save_bookmark_command): Likewise.
3694 (goto_bookmark_command): Likewise.
3695 * rs6000-aix-tdep.c (branch_dest): Likewise.
3696 * rs6000-nat.c (rs6000_ptrace64): Likewise.
3697 (fetch_register): Likewise.
3698 * rs6000-tdep.c (ppc_supply_reg): Likewise.
3699 (ppc_collect_reg): Likewise.
3700 (ppc_collect_gregset): Likewise.
3701 (ppc_collect_fpregset): Likewise.
3702 (ppc_collect_vsxregset): Likewise.
3703 (ppc_collect_vrregset): Likewise.
3704 (ppc_displaced_step_hw_singlestep): Likewise.
3705 (rs6000_pseudo_register_read): Likewise.
3706 (rs6000_pseudo_register_write): Likewise.
3707 * s390-linux-nat.c (supply_gregset): Likewise.
3708 (fill_gregset): Likewise.
3709 (s390_linux_fetch_inferior_registers): Likewise.
3710 * s390-linux-tdep.c (s390_write_pc): Likewise.
3711 (s390_software_single_step): Likewise.
3712 (s390_all_but_pc_registers_record): Likewise.
3713 (s390_linux_syscall_record): Likewise.
3714 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
3715 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3716 (shnbsd_store_inferior_registers): Likewise.
3717 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3718 (sh_extract_return_value_fpu): Likewise.
3719 (sh_store_return_value_nofpu): Likewise.
3720 (sh_corefile_supply_regset): Likewise.
3721 (sh_corefile_collect_regset): Likewise.
3722 * sh64-tdep.c (sh64_extract_return_value): Likewise.
3723 (sh64_store_return_value): Likewise.
3724 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
3725 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
3726 (sparc_store_inferior_registers): Likewise.
3727 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
3728 (sparc_ravenscar_prepare_to_store): Likewise.
3729 * sparc-tdep.c (sparc32_store_arguments): Likewise.
3730 (sparc_analyze_control_transfer): Likewise.
3731 (sparc_step_trap): Likewise.
3732 (sparc_software_single_step): Likewise.
3733 (sparc32_gdbarch_init): Likewise.
3734 (sparc_supply_rwindow): Likewise.
3735 (sparc_collect_rwindow): Likewise.
3736 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
3737 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
3738 (sparc64nbsd_collect_gregset): Likewise.
3739 (sparc64nbsd_supply_fpregset): Likewise.
3740 (sparc64nbsd_collect_fpregset): Likewise.
3741 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
3742 (sparc64_supply_gregset): Likewise.
3743 (sparc64_collect_gregset): Likewise.
3744 (sparc64_supply_fpregset): Likewise.
3745 (sparc64_collect_fpregset): Likewise.
3746 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3747 * spu-tdep.c (spu_unwind_sp): Likewise.
3748 (spu2ppu_prev_register): Likewise.
3749 (spu_memory_remove_breakpoint): Likewise.
3750 * stack.c (return_command): Likewise.
3751 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
3752 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3753 * tracefile.c (trace_save_ctf): Likewise.
3754 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
3755 (do_windows_store_inferior_registers): Likewise.
3756 (windows_resume): Likewise.
3757 * xtensa-linux-nat.c (fill_gregset): Likewise.
3758 (supply_gregset_reg): Likewise.
3759 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
3760 (xtensa_register_read_masked): Likewise.
3761 (xtensa_supply_gregset): Likewise.
3762 (xtensa_extract_return_value): Likewise.
3763 (xtensa_store_return_value): Likewise.
3764
3765 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
3766
3767 * doublest.c (floatformat_from_string): New function.
3768 * doublest.h (floatformat_from_string): Add prototype.
3769
3770 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
3771 (OP_FLOAT): ... this.
3772 * expression.h: Do not include "doublest.h".
3773 (union exp_element): Replace doubleconst and decfloatconst by
3774 new element floatconst.
3775 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
3776 (ada_evaluate_subexp): Likewise.
3777 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
3778 OP_DOUBLE and OP_DECFLOAT.
3779 * expprint.c (print_subexp_standard): Likewise.
3780 (dump_subexp_body_standard): Likewise.
3781 * breakpoint.c (watchpoint_exp_is_const): Likewise.
3782
3783 * parse.c: Include "dfp.h".
3784 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3785 (write_exp_elt_floatcst): New function.
3786 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
3787 and OP_DECFLOAT.
3788 (operator_check_standard): Likewise.
3789 (parse_float): Do not accept suffix. Take type as input. Return bool.
3790 Return target format buffer instead of host DOUBLEST.
3791 Use floatformat_from_string and decimal_from_string to parse
3792 either binary or decimal floating-point types.
3793 (parse_c_float): Remove.
3794 * parser-defs.h: Do not include "doublest.h".
3795 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3796 (write_exp_elt_floatcst): Add prototype.
3797 (parse_float): Update prototype.
3798 (parse_c_float): Remove.
3799
3800 * c-exp.y: Do not include "dfp.h".
3801 (typed_val_float): Use byte buffer instead of DOUBLEST.
3802 (typed_val_decfloat): Remove.
3803 (DECFLOAT): Remove.
3804 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3805 (parse_number): Update to new parse_float interface.
3806 Parse suffixes and determine type before calling parse_float.
3807 Handle decimal and binary FP types the same way.
3808
3809 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3810 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
3811 (parse_number): Update to new parse_float interface.
3812 Parse suffixes and determine type before calling parse_float.
3813
3814 * f-exp.y: Replace dval by typed_val_float.
3815 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3816 (parse_number): Use parse_float instead of atof.
3817
3818 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3819 (parse_go_float): Remove.
3820 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3821 (parse_number): Call parse_float instead of parse_go_float.
3822 Parse suffixes and determine type before calling parse_float.
3823
3824 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3825 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3826 (parse_number): Update to new parse_float interface.
3827 Parse suffixes and determine type before calling parse_float.
3828
3829 * m2-exp.y: Replace dval by byte buffer val.
3830 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3831 (parse_number): Call parse_float instead of atof.
3832
3833 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3834 (lex_number): Call parse_float instead of strtod.
3835 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
3836 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
3837 Use write_exp_elt_floatcst.
3838 (unit_testing): Remove static variable.
3839 (rust_type): Do not check unit_testing.
3840 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
3841
3842 * ada-exp.y (type_float, type_double): Remove.
3843 (typed_val_float): Use byte buffer instead of DOUBLEST.
3844 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3845 * ada-lex.l (processReal): Use parse_float instead of sscanf.
3846
3847 2017-10-25 Alan Hayward <alan.hayward@arm.com>
3848
3849 * aarch64-tdep.h (enum aarch64_regnum): Remove.
3850 * arch/aarch64.h: New file.
3851
3852 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3853
3854 * dfp.h (decimal_from_string): Use const reference for argument.
3855 * dfp.c (decimal_from_string): Likewise.
3856
3857 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3858
3859 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
3860 * sh64-tdep.c (sh64_do_fp_register): Likewise.
3861 * mips-tdep.c (mips_print_fp_register): Likewise.
3862
3863 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3864
3865 * common/format.h (enum argclass): Replace decfloat_arg by
3866 dec32float_arg, dec64float_arg, and dec128float_arg.
3867 * common/format.c (parse_format_string): Update to return
3868 new decimal float argument classes.
3869
3870 * printcmd.c (printf_decfloat): Rename to ...
3871 (printf_floating): ... this. Add argclass argument, and use it
3872 instead of parsing the format string again. Add support for
3873 binary floating-point values, using floatformat_to_string.
3874 Convert value to the target format if it doesn't already match.
3875 (ui_printf): Call printf_floating instead of printf_decfloat,
3876 also for double_arg / long_double_arg. Pass argclass.
3877
3878 * dfp.c (decimal_to_string): Add format string argument.
3879 * dfp.h (decimal_to_string): Likewise.
3880
3881 * doublest.c (floatformat_to_string): Add format string argument.
3882 * doublest.h (floatformat_to_string): Likewise.
3883
3884 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3885
3886 * doublest.c (floatformat_precision): New routine.
3887 (floatformat_to_string): Likewise.
3888 * doublest.c (floatformat_to_string): Add prototype.
3889
3890 * printcmd.c (print_scalar_formatted): Only call print_floating
3891 on floating-point types.
3892 * valprint.c: Do not include "floatformat.h".
3893 (generic_val_print_decfloat): Remove.
3894 (generic_val_print): Call generic_val_print_float for both
3895 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
3896 (print_floating): Use floatformat_to_string. Handle decimal float.
3897 (print_decimal_floating): Remove, merge into floatformat_to_string.
3898 * value.h (print_decimal_floating): Remove.
3899
3900 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
3901
3902 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3903
3904 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
3905
3906 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3907
3908 * memattr.h: Don't include vec.h.
3909 (struct mem_attrib): Initialize fields.
3910 <unknown>: New static method.
3911 (struct mem_region): Add constructors, operator<, initialize
3912 fields.
3913 * memattr.c: Include algorithm.
3914 (default_mem_attrib, unknown_mem_attrib): Remove.
3915 (user_mem_region_list): New global.
3916 (target_mem_region_list, mem_region_list): Change type to
3917 std::vector<mem_region>.
3918 (mem_use_target): Now a function.
3919 (target_mem_regions_valid): Change type to bool.
3920 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
3921 (require_user_regions): Adjust.
3922 (require_target_regions): Adjust.
3923 (create_mem_region): Adjust.
3924 (lookup_mem_region): Adjust.
3925 (invalidate_target_mem_regions): Adjust.
3926 (mem_clear): Rename to...
3927 (user_mem_clear): ... this, and adjust.
3928 (mem_command): Adjust.
3929 (info_mem_command): Adjust.
3930 (mem_enable, enable_mem_command, mem_disable,
3931 disable_mem_command): Adjust.
3932 (mem_delete): Adjust.
3933 (delete_mem_command): Adjust.
3934 * memory-map.h (parse_memory_map): Return an std::vector.
3935 * memory-map.c (parse_memory_map): Likewise.
3936 (struct memory_map_parsing_data): Add constructor.
3937 <memory_map>: Point to std::vector.
3938 (memory_map_start_memory): Adjust.
3939 (memory_map_end_memory): Adjust.
3940 (memory_map_end_property): Adjust.
3941 (clear_result): Remove.
3942 * remote.c (remote_memory_map): Return an std::vector.
3943 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
3944 Remove.
3945 (target_debug_print_mem_region_vector): New.
3946 * target-delegates.c: Regenerate.
3947 * target.h (mem_region_vector): New typedef.
3948 (to_memory_map): Return mem_region_vector.
3949 (target_memory_map): Return an std::vector.
3950 * target.c (target_memory_map): Return an std::vector.
3951 (flash_erase_command): Adjust.
3952
3953 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3954
3955 * memory-map.c (struct memory_map_parsing_data) <property_name>:
3956 Change type to std::string.
3957 (memory_map_start_property): Adjust.
3958 (memory_map_end_property): Adjust.
3959
3960 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3961
3962 * infrun.h: Include common/byte-vector.h.
3963 (struct displaced_step_closure): New struct.
3964 (struct buf_displaced_step_closure): New struct.
3965 * infrun.c (displaced_step_closure::~displaced_step_closure):
3966 Provide default implementation.
3967 (displaced_step_clear): Deallocate step closure with delete.
3968 * aarch64-tdep.c (displaced_step_closure): Rename to ...
3969 (aarch64_displaced_step_closure): ... this, extend
3970 displaced_step_closure.
3971 (aarch64_displaced_step_data) <dsc>: Change type to
3972 aarch64_displaced_step_closure.
3973 (aarch64_displaced_step_copy_insn): Adjust to type change, use
3974 unique_ptr.
3975 (aarch64_displaced_step_fixup): Add cast for displaced step
3976 closure.
3977 * amd64-tdep.c (displaced_step_closure): Rename to ...
3978 (amd64_displaced_step_closure): ... this, extend
3979 displaced_step_closure.
3980 <insn_buf>: Change type to std::vector<gdb_byte>.
3981 <max_len>: Remove.
3982 (fixup_riprel): Change type of DSC parameter, adjust to type
3983 change of insn_buf.
3984 (fixup_displaced_copy): Change type of DSC parameter.
3985 (amd64_displaced_step_copy_insn): Instantiate
3986 amd64_displaced_step_closure.
3987 (amd64_displaced_step_fixup): Add cast for closure type, adjust
3988 to type change of insn_buf.
3989 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
3990 parameter DSC.
3991 (arm_linux_copy_svc): Likewise.
3992 (cleanup_kernel_helper_return): Likewise.
3993 (arm_catch_kernel_helper_return): Likewise.
3994 (arm_linux_displaced_step_copy_insn): Instantiate
3995 arm_displaced_step_closure.
3996 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
3997 (displaced_read_reg): Change type of parameter DSC.
3998 (branch_write_pc): Likewise.
3999 (load_write_pc): Likewise.
4000 (alu_write_pc): Likewise.
4001 (displaced_write_reg): Likewise.
4002 (arm_copy_unmodified): Likewise.
4003 (thumb_copy_unmodified_32bit): Likewise.
4004 (thumb_copy_unmodified_16bit): Likewise.
4005 (cleanup_preload): Likewise.
4006 (install_preload): Likewise.
4007 (arm_copy_preload): Likewise.
4008 (thumb2_copy_preload): Likewise.
4009 (install_preload_reg): Likewise.
4010 (arm_copy_preload_reg): Likewise.
4011 (cleanup_copro_load_store): Likewise.
4012 (install_copro_load_store): Likewise.
4013 (arm_copy_copro_load_store) Likewise.
4014 (thumb2_copy_copro_load_store): Likewise.
4015 (cleanup_branch): Likewise.
4016 (install_b_bl_blx): Likewise.
4017 (arm_copy_b_bl_blx): Likewise.
4018 (thumb2_copy_b_bl_blx): Likewise.
4019 (thumb_copy_b): Likewise.
4020 (install_bx_blx_reg): Likewise.
4021 (arm_copy_bx_blx_reg): Likewise.
4022 (thumb_copy_bx_blx_reg): Likewise.
4023 (cleanup_alu_imm): Likewise.
4024 (arm_copy_alu_imm): Likewise.
4025 (thumb2_copy_alu_imm): Likewise.
4026 (cleanup_alu_reg): Likewise.
4027 (install_alu_reg): Likewise.
4028 (arm_copy_alu_reg): Likewise.
4029 (thumb_copy_alu_reg): Likewise.
4030 (cleanup_alu_shifted_reg): Likewise.
4031 (install_alu_shifted_reg): Likewise.
4032 (arm_copy_alu_shifted_reg): Likewise.
4033 (cleanup_load): Likewise.
4034 (cleanup_store): Likewise.
4035 (arm_copy_extra_ld_st): Likewise.
4036 (install_load_store): Likewise.
4037 (thumb2_copy_load_literal): Likewise.
4038 (thumb2_copy_load_reg_imm): Likewise.
4039 (arm_copy_ldr_str_ldrb_strb): Likewise.
4040 (cleanup_block_load_all): Likewise.
4041 (cleanup_block_store_pc): Likewise.
4042 (cleanup_block_load_pc): Likewise.
4043 (arm_copy_block_xfer): Likewise.
4044 (thumb2_copy_block_xfer): Likewise.
4045 (cleanup_svc): Likewise.
4046 (install_svc): Likewise.
4047 (arm_copy_svc): Likewise.
4048 (thumb_copy_svc): Likewise.
4049 (arm_copy_undef): Likewise.
4050 (thumb_32bit_copy_undef): Likewise.
4051 (arm_copy_unpred): Likewise.
4052 (arm_decode_misc_memhint_neon): Likewise.
4053 (arm_decode_unconditional): Likewise.
4054 (arm_decode_miscellaneous): Likewise.
4055 (arm_decode_dp_misc): Likewise.
4056 (arm_decode_ld_st_word_ubyte): Likewise.
4057 (arm_decode_media): Likewise.
4058 (arm_decode_b_bl_ldmstm): Likewise.
4059 (arm_decode_ext_reg_ld_st): Likewise.
4060 (thumb2_decode_dp_shift_reg): Likewise.
4061 (thumb2_decode_ext_reg_ld_st): Likewise.
4062 (arm_decode_svc_copro): Likewise.
4063 (thumb2_decode_svc_copro): Likewise.
4064 (install_pc_relative): Likewise.
4065 (thumb_copy_pc_relative_16bit): Likewise.
4066 (thumb_decode_pc_relative_16bit): Likewise.
4067 (thumb_copy_pc_relative_32bit): Likewise.
4068 (thumb_copy_16bit_ldr_literal): Likewise.
4069 (thumb_copy_cbnz_cbz): Likewise.
4070 (thumb2_copy_table_branch): Likewise.
4071 (cleanup_pop_pc_16bit_all): Likewise.
4072 (thumb_copy_pop_pc_16bit): Likewise.
4073 (thumb_process_displaced_16bit_insn): Likewise.
4074 (decode_thumb_32bit_ld_mem_hints): Likewise.
4075 (thumb_process_displaced_32bit_insn): Likewise.
4076 (thumb_process_displaced_insn): Likewise.
4077 (arm_process_displaced_insn): Likewise.
4078 (arm_displaced_init_closure): Likewise.
4079 (arm_displaced_step_fixup): Add cast for closure.
4080 * arm-tdep.h: Include infrun.h.
4081 (displaced_step_closure): Rename to ...
4082 (arm_displaced_step_closure): ... this, extend
4083 displaced_step_closure.
4084 <u::svc::copy_svc_os>: Change type of parameter DSC.
4085 <cleanup>: Likewise.
4086 (arm_process_displaced_insn): Likewise.
4087 (arm_displaced_init_closure): Likewise.
4088 (displaced_read_reg): Likewise.
4089 (displaced_write_reg): Likewise.
4090 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4091 Adjust.
4092 * i386-tdep.h: Include infrun.h.
4093 (i386_displaced_step_closure): New typedef.
4094 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4095 i386_displaced_step_closure.
4096 (i386_displaced_step_fixup): Adjust.
4097 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4098 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4099 and unique_ptr.
4100 (ppc_displaced_step_fixup): Adjust.
4101 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4102 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4103 and unique_ptr.
4104 (s390_displaced_step_fixup): Adjust.
4105
4106 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4107
4108 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4109 Remove declarations.
4110
4111 2017-10-20 Tom Tromey <tom@tromey.com>
4112
4113 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4114 std::vector.
4115 (gdb_bfd_record_inclusion): Update.
4116 (bfdp): Remove typedef.
4117
4118 2017-10-20 Tom Tromey <tom@tromey.com>
4119
4120 * gdb_bfd.c (gdb_bfd_ref): Use new.
4121 (struct gdb_bfd_data): Add constructor, destructor, and member
4122 initializers.
4123 (gdb_bfd_unref): Use delete.
4124
4125 2017-10-20 Tom Tromey <tom@tromey.com>
4126
4127 * exec.c (exec_file_attach): Use new_bfd_ref.
4128 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4129 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4130 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4131 new_bfd_ref.
4132 * gdb_bfd.h (new_bfd_ref): New function.
4133
4134 2017-10-20 Pedro Alves <palves@redhat.com>
4135
4136 * main.c (captured_command_loop): Add attribute noinline.
4137
4138 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4139
4140 * interps.c (struct interp_factory): Add constructor.
4141 (interp_factory_p): Remove typedef.
4142 (DEF_VEC_P(interp_factory_p)): Remove.
4143 (interpreter_factories): Change type to std::vector.
4144 (interp_factory_register): Adjust.
4145 (interp_lookup): Adjust.
4146 (interpreter_completer): Adjust.
4147
4148 2017-10-19 Tom Tromey <tom@tromey.com>
4149
4150 * break-catch-syscall.c (catch_syscall_completer): Use
4151 std::string, gdb::unique_xmalloc_ptr.
4152
4153 2017-10-19 Tom Tromey <tom@tromey.com>
4154
4155 * infcall.c (call_function_by_hand_dummy): Use std::string.
4156
4157 2017-10-19 Tom Tromey <tom@tromey.com>
4158
4159 * mi/mi-main.c (mi_cmd_execute): Update.
4160 * top.h (prepare_execute_command): Return scoped_value_mark.
4161 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4162 Add move constructor.
4163 * top.c (prepare_execute_command): Return scoped_value_mark.
4164 (execute_command): Update.
4165
4166 2017-10-19 Pedro Alves <palves@redhat.com>
4167
4168 * xml-support.c (xml_fetch_content_from_file): Check fread's
4169 return.
4170
4171 2017-10-19 Pedro Alves <palves@redhat.com>
4172
4173 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4174 async.
4175 (handle_error_fd): New function.
4176 (ser_base_async): Add/delete an event loop file handler for
4177 error_fd.
4178
4179 2017-10-19 Pedro Alves <palves@redhat.com>
4180
4181 * xml-support.c (xml_fetch_content_from_file): Don't read in
4182 chunks. Instead use fseek to determine the file's size, and read
4183 it in one go.
4184
4185 2017-11-18 Keith Seitz <keiths@redhat.com>
4186
4187 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4188 types.
4189 Add whitespace to front of type name.
4190
4191 2017-10-18 Keith Seitz <keiths@redhat.com>
4192
4193 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4194 DW_AT_accessibility.
4195
4196 2017-10-18 Yao Qi <yao.qi@linaro.org>
4197
4198 * features/tic6x-c62x-linux.c: Remove.
4199
4200 2017-10-17 Tom Tromey <tom@tromey.com>
4201
4202 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4203 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4204 (do_mixed_source_and_assembly): Likewise.
4205
4206 2017-10-17 Tom Tromey <tom@tromey.com>
4207
4208 * regcache.c (regcache::xfer_part): Remove assertion.
4209
4210 2017-10-17 Pedro Alves <palves@redhat.com>
4211
4212 * xml-support.c (xml_fetch_content_from_file): Call
4213 unique_ptr::release() instead unique_ptr::get() when passing
4214 through xrealloc.
4215
4216 2017-10-17 Yao Qi <yao.qi@linaro.org>
4217
4218 * regcache.c (regcache::xfer_part): Remove parameters read and
4219 write, add parameter is_raw. All callers are updated.
4220
4221 2017-10-16 Keith Seitz <keiths@redhat.com>
4222
4223 * c-typeprint.c (enum access_specifier): Moved here from
4224 c_type_print_base.
4225 (output_access_specifier): New function.
4226 (c_type_print_base): Consider typedefs when assessing
4227 whether access labels are needed.
4228 Use output_access_specifier as needed.
4229 Output access specifier for typedefs, if needed.
4230 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4231 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4232 fields.
4233 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4234 accessor macros.
4235
4236 2017-10-16 Tom Tromey <tom@tromey.com>
4237
4238 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4239 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4240 * target.c (target_fileio_read_stralloc): Update.
4241 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4242 * target.h (target_fileio_read_stralloc): Return
4243 unique_xmalloc_ptr.
4244
4245 2017-10-16 Tom Tromey <tom@tromey.com>
4246
4247 * xml-syscall.c (xml_init_syscalls_info): Update.
4248 * xml-support.c (xinclude_start_include): Update.
4249 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4250 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4251 (xml_fetch_content_from_file): Likewise.
4252 * osdata.c (get_osdata): Update.
4253 * target.h (target_read_stralloc, target_get_osdata): Return
4254 unique_xmalloc_ptr.
4255 * solib-aix.c (solib_aix_get_library_list): Update.
4256 * solib-target.c (solib_target_current_sos): Update.
4257 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4258 * xml-tdesc.c (fetch_available_features_from_target): Update.
4259 (target_fetch_description_xml): Update.
4260 (file_read_description_xml): Update.
4261 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4262 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4263 (remote_pid_to_exec_file): Update.
4264 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4265 (target_get_osdata): Likewise.
4266
4267 2017-10-16 Tom Tromey <tom@tromey.com>
4268
4269 * remote.c (remote_register_number_and_offset): Use std::vector.
4270 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4271 (putpkt_binary): Use gdb::def_vector.
4272 (compare_sections_command): Use gdb::byte_vector.
4273
4274 2017-10-16 Tom Tromey <tom@tromey.com>
4275
4276 * ppc-linux-nat.c (hwdebug_insert_point): Use
4277 gdb::unique_xmalloc_ptr, XDUP.
4278
4279 2017-10-16 Tom Tromey <tom@tromey.com>
4280
4281 * probe.c (parse_probes): Use std::string.
4282 (info_probes_for_ops, enable_probes_command)
4283 (disable_probes_command): Remove cleanups.
4284
4285 2017-10-16 Tom Tromey <tom@tromey.com>
4286
4287 * buildsym.c (block_compar): Remove.
4288 (end_symtab_get_static_block): Use std::vector.
4289
4290 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4291
4292 * memrange.h (struct mem_range): Define operator< and operator==.
4293 (mem_range_s): Remove.
4294 (DEF_VEC_O (mem_range_s)): Remove.
4295 (normalize_mem_ranges): Change parameter type to std::vector.
4296 * memrange.c (compare_mem_ranges): Remove.
4297 (normalize_mem_ranges): Change parameter type to std::vector,
4298 adjust to vector change.
4299 * exec.c (section_table_available_memory): Return vector, remove
4300 parameter.
4301 (section_table_read_available_memory): Adjust to std::vector
4302 change.
4303 * remote.c (remote_read_bytes): Adjust to std::vector
4304 change.
4305 * tracepoint.h (traceframe_available_memory): Change parameter
4306 type to std::vector.
4307 * tracepoint.c (traceframe_available_memory): Change parameter
4308 type to std::vector, adjust.
4309 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4310 std::vector change.
4311 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4312 unittests/memrange-selftests.c.
4313 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4314 * gdb/unittests/memrange-selftests.c: New file.
4315
4316 2017-10-16 Pedro Alves <palves@redhat.com>
4317
4318 * elfread.c (probe_key_free): Rename range-for variable.
4319 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4320 (find_probe_by_pc, collect_probes): Rename range-for variable.
4321
4322 2017-10-16 Yao Qi <yao.qi@linaro.org>
4323
4324 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4325 * features/tic6x-c62x.c: Remove.
4326 * features/tic6x-c64x-linux.c: Remove.
4327 * features/tic6x-c64x.c: Remove.
4328 * features/tic6x-c64xp-linux.c: Remove.
4329 * features/tic6x-c64xp.c: Remove.
4330 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4331 initialize_tdesc_tic6x_*_linux functions.
4332 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4333 initialize_tdesc_tic6x_* functions.
4334
4335 2017-10-16 Yao Qi <yao.qi@linaro.org>
4336
4337 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4338 tic6x-c62x.
4339 * regformats/tic6x-c62x.dat: Remove.
4340 * regformats/tic6x-c64x.dat: Remove.
4341 * regformats/tic6x-c64xp.dat: Remove.
4342
4343 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4344
4345 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4346 (the !HAVE_LIBEXPAT version).
4347
4348 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4349
4350 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4351 const.
4352
4353 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4354
4355 * target.h: Include tracepoint.h.
4356 (enum trace_find_type): Move to tracepoint.h.
4357 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4358 * tracepoint.h: Don't include target.h
4359 (enum trace_find_type): Move from target.h.
4360 (parse_traceframe_info): Return a unique ptr.
4361 * tracepoint.c (current_traceframe_info): Change type to unique
4362 ptr.
4363 (free_traceframe_info): Remove.
4364 (clear_traceframe_info): Don't manually free
4365 current_traceframe_info.
4366 (free_result): Remove.
4367 (parse_traceframe_info): Return a unique ptr.
4368 (get_traceframe_info): Adjust to unique ptr.
4369 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4370 * remote.c (remote_traceframe_info): Return a unique ptr.
4371 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4372 ptr.
4373 * target-debug.h (target_debug_print_traceframe_info_up): New
4374 macro.
4375 * target-delegates.c: Regenerate.
4376
4377 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4378
4379 * memrange.h (struct mem_range): Add constructors.
4380 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4381 std::vector<mem_range>.
4382 * tracepoint.c (free_traceframe_info): Don't manually free
4383 vector.
4384 (traceframe_info_start_memory): Adjust to vector change.
4385 (traceframe_available_memory): Likewise.
4386 * tracefile-tfile.c (build_traceframe_info): Likewise.
4387 * ctf.c (ctf_traceframe_info): Likewise.
4388
4389 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4390
4391 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4392 std::vector<int>.
4393 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4394 (traceframe_info_start_tvar): Adjust to vector change.
4395 (parse_traceframe_info): Allocate with new.
4396 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4397 vector change.
4398 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4399 change.
4400 tfile_traceframe_info): Allocate with new.
4401 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4402 change.
4403
4404 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4405
4406 * tracepoint.c (traceframe_info): Rename to...
4407 (current_traceframe_info): ...this.
4408 (clear_traceframe_info): Adjust.
4409 (get_traceframe_info): Adjust.
4410
4411 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4412
4413 * nat/linux-osdata.c: Include algorithm.
4414 (compare_processes): Remove.
4415 (struct pid_pgid_entry): New struct.
4416 (linux_xfer_osdata_processgroups): Use std::vector instead of
4417 XNEWVEC.
4418
4419 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4420
4421 * objfiles.h: Don't include symfile.h.
4422 (struct partial_symbol): Remove forward-declaration.
4423 (struct objfile) <global_psymbols, static_psymbols>: Change type
4424 to std::vector<partial_symbol *>.
4425 * objfiles.c (objfile::objfile): Don't memset those fields.
4426 (objfile::~objfile): Don't free those fields.
4427 * psympriv.h (struct psymbol_allocation_list): Remove
4428 forward-declaration.
4429 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4430 to std::vector.
4431 (start_psymtab_common): Change parameters to std::vector.
4432 * psymtab.c: Include algorithm.
4433 (require_partial_symbols): Call shrink_to_fit.
4434 (find_pc_sect_psymbol): Adjust to vector change.
4435 (match_partial_symbol): Likewise.
4436 (lookup_partial_symbol): Likewise.
4437 (psym_relocate): Likewise.
4438 (dump_psymtab): Likewise.
4439 (recursively_search_psymtabs): Likewise.
4440 (compare_psymbols): Remove.
4441 (sort_pst_symbols): Adjust to vector change.
4442 (start_psymtab_common): Likewise.
4443 (end_psymtab_common): Likewise.
4444 (psymbol_bcache_full): De-constify return value.
4445 (add_psymbol_to_bcache): Likewise.
4446 (extend_psymbol_list): Remove.
4447 (append_psymbol_to_list): Adjust to vector change.
4448 (add_psymbol_to_list): Likewise.
4449 (init_psymbol_list): Likewise.
4450 (maintenance_info_psymtabs): Likewise.
4451 (maintenance_check_psymtabs): Likewise.
4452 * symfile.h (struct psymbol_allocation_list): Remove.
4453 * symfile.c (reread_symbols): Adjust to vector change.
4454 * dbxread.c (start_psymtab): Change type of parameters.
4455 (dbx_symfile_read): Adjust to vector change.
4456 (read_dbx_symtab): Likewise.
4457 (start_psymtab): Change type of parameters.
4458 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
4459 (create_partial_symtab): Likewise.
4460 (add_partial_symbol): Likewise.
4461 (write_one_signatured_type): Likewise.
4462 (recursively_write_psymbols): Likewise.
4463 * mdebugread.c (parse_partial_symbols): Likewise.
4464 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
4465 (scan_xcoff_symtab): Adjust to vector change.
4466 (xcoff_initial_scan): Likewise.
4467
4468 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
4469
4470 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
4471
4472 2017-10-13 Yao Qi <yao.qi@linaro.org>
4473
4474 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
4475 Remove s390x-*-expedite, add s390x-expedite.
4476
4477 2017-10-13 Yao Qi <yao.qi@linaro.org>
4478
4479 * features/s390-gs-linux64.c: Regenerated.
4480 * features/s390x-gs-linux64.c: Regenerated.
4481
4482 2017-10-13 Tom Tromey <tom@tromey.com>
4483
4484 * compile/compile-object-run.c (do_module_cleanup): Use delete.
4485 * solib.c (update_solib_list, reload_shared_libraries_1): Use
4486 delete.
4487 * symfile.c (symbol_file_add_with_addrs): Use new.
4488 (symbol_file_add_separate): Update comment.
4489 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
4490 * jit.c (jit_object_close_impl): Use new.
4491 (jit_unregister_code): Use delete.
4492 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
4493 (~objfile): Rename from free_objfile.
4494 (free_objfile_separate_debug, do_free_objfile_cleanup)
4495 (free_all_objfiles, objfile_purge_solibs): Use delete.
4496 * objfiles.h (struct objfile): Add constructor and destructor.
4497 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
4498 (allocate_objfile, free_objfile): Don't declare.
4499 (struct objstats): Add initializers.
4500
4501 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4502
4503 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
4504 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
4505 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
4506 * gdbarch.h: Regenerate.
4507 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4508 Adjust comment.
4509 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
4510 (i386_displaced_step_fixup): Adjust comment.
4511 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
4512
4513 2017-10-12 Tom Tromey <tom@tromey.com>
4514
4515 * prologue-value.h (pv_area::store_would_trash): Return bool.
4516 (pv_area::find_reg): Likewise.
4517 * prologue-value.c (pv_area::store_would_trash): Return bool.
4518 (pv_area::find_reg): Likewise.
4519
4520 2017-10-12 Tom Tromey <tom@tromey.com>
4521
4522 * s390-linux-tdep.c (s390_store, s390_load)
4523 (s390_check_for_saved, s390_analyze_prologue): Update.
4524 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
4525 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
4526 * prologue-value.h (class pv_area): Move from prologue-value.c.
4527 Change names of members. Add constructor, destructor, member
4528 functions.
4529 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
4530 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
4531 (pv_area_fetch, pv_area_scan): Don't declare.
4532 * prologue-value.c (struct pv_area::area_entry): Now member of
4533 pv_area.
4534 (struct pv_area): Move to prologue-value.h.
4535 (pv_area::pv_area): Rename from make_pv_area.
4536 (pv_area::~pv_area): Rename from free_pv_area.
4537 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
4538 (clear_entries, find_entry, overlaps, store_would_trash, store)
4539 (fetch, find_reg, scan): Now member of pv_area.
4540 Remove "area" argument. Update.
4541 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
4542 Update.
4543 * mn10300-tdep.c (push_reg, check_for_saved)
4544 (mn10300_analyze_prologue): Update.
4545 * mep-tdep.c (is_arg_spill, check_for_saved)
4546 (mep_analyze_prologue): Update.
4547 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
4548 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
4549 (m32c_is_struct_return, m32c_analyze_prologue): Update.
4550 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
4551 Update.
4552 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
4553 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4554
4555 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4556
4557 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4558 * linux-nat.c (linux_nat_delete_thread): New variable.
4559 (lwp_free): Invoke linux_nat_delete_thread if set.
4560 (linux_nat_set_delete_thread): New function.
4561 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4562 thread delete callback.
4563 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4564 (_initialize_arm_linux_nat): Assign thread delete callback.
4565 * s390-linux-nat.c (s390_delete_thread): New function.
4566 (_initialize_s390_nat): Assign thread delete callback.
4567 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4568 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4569 function.
4570 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4571 declaration.
4572 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4573 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4574
4575 2017-10-09 Tom Tromey <tom@tromey.com>
4576
4577 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4578 std::string.
4579 * tui/tui-layout.c (enum tui_status): Use std::string.
4580
4581 2017-10-11 Tom Tromey <tom@tromey.com>
4582
4583 * gdbthread.h (thread_command): Constify.
4584 * inferior.h (detach_command): Constify.
4585 * top.h (set_history, show_history): Constify.
4586 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4587 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4588 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4589 * printcmd.c (set_command): Constify.
4590 (non_const_set_command): New function.
4591 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4592 * breakpoint.c (enable_command, disable_command, delete_command)
4593 (catch_command, tcatch_command, set_breakpoint_cmd)
4594 (show_breakpoint_cmd): Constify.
4595 * macrocmd.c (macro_command): Constify.
4596 * infcmd.c (unset_command, kill_command, detach_command)
4597 (info_proc_cmd): Constify.
4598 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
4599 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
4600 (info_auto_load_cmd): Constify.
4601 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4602 (unset_tdesc_cmd): Constify.
4603 * ada-lang.c (set_ada_command, show_ada_command)
4604 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
4605 * guile/guile.c (set_guile_command, show_guile_command)
4606 (info_guile_command): Constify.
4607 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
4608 Constify.
4609 * skip.c (skip_command): Constify.
4610 * compile/compile.c (_initialize_compile): Constify.
4611 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
4612 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4613 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4614 (maint_btrace_pt_show_cmd): Constify.
4615 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
4616 Constify.
4617 * python/python.c (user_show_python, user_set_python): Constify.
4618 * mips-tdep.c (set_mips_command, show_mips_command)
4619 (set_mipsfpu_command): Constify.
4620 * record-btrace.c (cmd_record_btrace_start)
4621 (cmd_set_record_btrace, cmd_show_record_btrace)
4622 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
4623 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
4624 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
4625 Constify.
4626 * symfile.c (overlay_command): Constify.
4627 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
4628 * cli/cli-logging.c (set_logging_command, show_logging_command):
4629 Constify.
4630 * cli/cli-dump.c (dump_command, append_command)
4631 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4632 (tekhex_dump_command, binary_dump_command)
4633 (binary_append_command): Constify.
4634 * cli/cli-decode.c (struct cmd_list_element): Change type of
4635 "fun".
4636 * cli/cli-cmds.c (info_command, show_command, set_debug)
4637 (show_debug): Constify.
4638 (show_command): Add non-const overload.
4639 * top.c (set_history, show_history): Constify.
4640 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4641 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4642 * target.c (target_command): Constify.
4643 * sparc64-tdep.c (info_adi_command): Constify.
4644 * record-full.c (cmd_record_full_start): Constify.
4645 (set_record_full_command): Constify. Fix typo.
4646 (show_record_full_command): Constify.
4647 * thread.c (thread_command, thread_apply_command): Constify.
4648 * memattr.c (dummy_cmd): Constify.
4649 * value.c (function_command): Constify.
4650 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
4651 * probe.c (info_probes_command): Constify.
4652 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
4653 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
4654 (show_thread_cmd, set_thread_default_cmd)
4655 (show_thread_default_cmd): Constify.
4656 (check_empty): Constify.
4657 * tracepoint.c (tfind_command): Constify.
4658 * cp-support.c (maint_cplus_command): Constify.
4659 * windows-tdep.c (info_w32_command): Constify.
4660 * record.c (cmd_record_start, set_record_command)
4661 (show_record_command, info_record_command, cmd_record_goto):
4662 Constify.
4663 * ravenscar-thread.c (set_ravenscar_command)
4664 (show_ravenscar_command): Constify.
4665 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4666 Constify.
4667 (add_internal_problem_command): Remove casts.
4668 * arc-tdep.c (maintenance_print_arc_command): Constify.
4669 * valprint.c (set_print, show_print, set_print_raw)
4670 (show_print_raw): Constify.
4671 * maint.c (maintenance_command, maintenance_info_command)
4672 (maintenance_print_command, maintenance_set_cmd)
4673 (maintenance_show_cmd, set_per_command_cmd)
4674 (show_per_command_cmd, maintenance_check_command): Constify.
4675 * language.c (set_check, show_check): Constify.
4676 * typeprint.c (show_print_type, set_print_type): Constify.
4677 * go32-nat.c (go32_info_dos_command): Constify.
4678
4679 2017-10-11 Tom Tromey <tom@tromey.com>
4680
4681 * breakpoint.c (prepare_re_set_context): Remove.
4682 (breakpoint_re_set_one): Update. Don't use cleanups.
4683 (breakpoint_re_set): Use scoped_restore, std::string, and
4684 scoped_restore_current_language.
4685
4686 2017-10-11 Tom Tromey <tom@tromey.com>
4687
4688 * breakpoint.c (commands_command_1): Use std::string.
4689 (cleanup_executing_breakpoints): Remove.
4690 (bpstat_do_actions_1): Use scoped_restore.
4691 (bpstat_check_watchpoint): Use std::string.
4692 (decode_static_tracepoint_spec): Likewise.
4693 (break_range_command): Likewise.
4694 (watch_command_1): Likewise.
4695 (compare_breakpoints): Change argument types.
4696 (clear_command): Use std::vector.
4697 (cleanup_executing_breakpoints): Remove.
4698 (update_global_location_list): Use unique_xmalloc_ptr.
4699 (strace_command): Remove unused declaration.
4700
4701 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4702
4703 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
4704 * NEWS: Mention new FreeBSD/arm native configuration.
4705 * configure.host: Add arm*-*-freebsd*.
4706 * configure.nat: Likewise.
4707 * arm-fbsd-nat.c: New file.
4708
4709 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4710
4711 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
4712 (ALLDEPFILES): Add arm-fbsd-tdep.c.
4713 * NEWS: Mention new FreeBSD/arm target.
4714 * configure.tgt: Add arm*-*-freebsd*.
4715 * arm-fbsd-tdep.c: New file.
4716 * arm-fbsd-tdep.h: New file.
4717
4718 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4719
4720 * linux-tdep.c (linux_make_corefile_notes): Remove call to
4721 `gdbarch_elfcore_write_linux_prpsinfo'.
4722 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
4723 method.
4724 (elf_internal_linux_prpsinfo): Remove declaration.
4725 * gdbarch.h: Regenerate.
4726 * gdbarch.c: Regenerate.
4727
4728 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4729
4730 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
4731 `set_gdbarch_elfcore_write_linux_prpsinfo'.
4732
4733 2017-10-11 Pedro Alves <palves@redhat.com>
4734
4735 * breakpoint.c (reattach_breakpoints): Delete.
4736 * breakpoint.h (reattach_breakpoints): Delete.
4737
4738 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
4739
4740 * symfile.c (registered_sym_fns): Make struct, not typedef.
4741 (DEF_VEC_O (registered_sym_fns)): Remove.
4742 (symtab_fns): Change type to std::vector.
4743 (add_symtab_fns): Adjust.
4744 (find_sym_fns): Adjust.
4745
4746 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
4747
4748 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
4749 * arc-tdep.h (arc_arch_is_em): New function.
4750 (arc_arch_is_hs): Likewise.
4751
4752 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
4753
4754 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
4755 parentheses in the declaration.
4756 (macro_lookup_inclusion): Likewise.
4757 (macro_lookup_definition): Likewise.
4758 * p-lang.h (pascal_builtin_types): Likewise.
4759 * tui/tui-data.c (tui_win_list): Likewise.
4760 * tui/tui-data.h (tui_win_list): Likewise.
4761 * utils.h (make_cleanup_free_section_addr_info): Likewise.
4762
4763 2017-10-11 Mark Rages <markrages@gmail.com>
4764
4765 * target-memory.c (block_boundaries): Fix for block address not
4766 aligned on block size.
4767
4768 2017-10-10 Pedro Alves <palves@redhat.com>
4769 Tom Tromey <tom@tromey.com>
4770
4771 * breakpoint.c (struct captured_breakpoint_query_args)
4772 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
4773 (print_breakpoint): New.
4774 * breakpoint.h (print_breakpoint): Declare.
4775 * common/common-exceptions.h (enum return_reason): Remove
4776 references to catch_exceptions.
4777 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
4778 Delete.
4779 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
4780 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
4781 * gdb.h: Delete.
4782 * gdbthread.h (thread_select): Declare.
4783 * mi/mi-cmd-break.c: Don't include gdb.h.
4784 (breakpoint_notify): Use print_breakpoint.
4785 * mi/mi-cmd-catch.c: Don't include gdb.h.
4786 * mi/mi-interp.c: Don't include gdb.h.
4787 (mi_print_breakpoint_for_event): New.
4788 (mi_breakpoint_created, mi_breakpoint_modified): Use
4789 mi_print_breakpoint_for_event.
4790 * mi/mi-main.c: Don't include gdb.h.
4791 (mi_cmd_thread_select): Parse the global thread ID here. Use
4792 thread_select instead of gdb_thread_select.
4793 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
4794 of using gdb_list_thread_ids.
4795 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
4796 FILEIO_ENOSYS here.
4797 (remote_fileio_request): Use TRY/CATCH instead of
4798 catch_exceptions.
4799 * symfile-mem.c (struct symbol_file_add_from_memory_args)
4800 (symbol_file_add_from_memory_wrapper): Delete.
4801 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
4802 * thread.c: Don't include gdb.h.
4803 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
4804 (thread_alive): Use thread_select.
4805 (do_captured_thread_select): Delete, parts salvaged as ...
4806 (thread_select): ... this new function.
4807 (gdb_thread_select): Delete.
4808
4809 2017-10-10 Pedro Alves <palves@redhat.com>
4810 Tom Tromey <tom@tromey.com>
4811
4812 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
4813 and reverse logic.
4814 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
4815 No longer macros. Instead ...
4816 (enum wp_check_result): They're now values of this new
4817 enumeration.
4818 (watchpoint_check): Change return type to wp_check_result and
4819 parameter type to bpstat.
4820 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
4821 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
4822 catch_errors. Reverse logic of watchpoint_check call.
4823 (breakpoint_re_set_one): Now returns void and takes a breakpoint
4824 pointer as parameter.
4825 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
4826 * common/common-exceptions.c (throw_exception_sjlj): Update
4827 comments to avoid mentioning catch_errors.
4828 * exceptions.c (catch_errors): Delete.
4829 * exceptions.h: Update comments to avoid mentioning catch_errors.
4830 (catch_errors_ftype, catch_errors): Delete.
4831 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
4832 (hook_stop_stub): Delete.
4833 (restore_selected_frame): Change return type to void, and
4834 parameter type to const frame_id &.
4835 (restore_infcall_control_state): Use TRY/CATCH instead of
4836 catch_errors.
4837 * main.c (captured_command_loop): Return void and remove
4838 parameter. Remove references to catch_errors.
4839 (captured_main): Use TRY/CATCH instead of catch_errors.
4840 * objc-lang.c (objc_submethod_helper_data)
4841 (find_objc_msgcall_submethod_helper): Delete.
4842 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
4843 catch_errors.
4844 * record-full.c (record_full_message): Return void.
4845 (record_full_message_args, record_full_message_wrapper): Delete.
4846 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
4847 instead of catch_errors.
4848 * solib-aix.c (solib_aix_open_symbol_file_object): Change
4849 parameter type to int.
4850 * solib-darwin.c (open_symbol_file_object): Ditto.
4851 * solib-dsbt.c (open_symbol_file_object): Ditto.
4852 * solib-frv.c (open_symbol_file_object): Ditto.
4853 * solib-svr4.c (open_symbol_file_object): Ditto.
4854 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
4855 * solib.c (update_solib_list): Use TRY/CATCH instead of
4856 catch_errors.
4857 * solist.h (struct target_so_ops) <open_symbol_file_object>:
4858 Change type.
4859 * symmisc.c (struct print_symbol_args): Remove.
4860 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
4861 (print_symbol): Change type.
4862 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
4863 and remove parameters.
4864 (catch_errors): New.
4865 (get_windows_debug_event): Adjust.
4866
4867 2017-10-09 Tom Tromey <tom@tromey.com>
4868
4869 * mi/mi-main.c (free_splay_tree): Remove.
4870 (list_available_thread_groups): Use splay_tree_up.
4871 * common/gdb_splay_tree.h: New file.
4872
4873 2017-10-09 Tom Tromey <tom@tromey.com>
4874
4875 * mi/mi-main.c (do_nothing): Remove.
4876 (list_available_thread_groups): Update.
4877
4878 2017-10-09 Pedro Alves <palves@redhat.com>
4879
4880 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
4881 reading registers when switching context.
4882
4883 2017-10-09 John Baldwin <jhb@FreeBSD.org>
4884
4885 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
4886 (fbsd_convert_siginfo): Likewise.
4887 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
4888
4889 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
4890
4891 * configure.ac (try_guile_versions): Remove guile-2.2.
4892 * configure: Regenerate.
4893
4894 2017-10-09 Tom Tromey <tom@tromey.com>
4895
4896 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
4897 (COMPILE.pre): Use $(CXX).
4898
4899 2017-10-09 Pedro Alves <palves@redhat.com>
4900
4901 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4902 Use bool.
4903 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4904 * cp-support.h (cp_remove_params): Now returns a
4905 gdb::unique_xmalloc_ptr.
4906 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
4907 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
4908 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
4909 returning a gdb::unique_xmalloc_ptr.
4910 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4911 * stack.c (find_frame_funname): Adjust to cp_remove_params
4912 returning a gdb::unique_xmalloc_ptr.
4913
4914 2017-10-08 Tom Tromey <tom@tromey.com>
4915
4916 * dwarf2read.c (dwarf2_get_dwz_file): Use
4917 gdb::unique_xmalloc_ptr.
4918 (find_slot_in_mapped_hash): Likewise.
4919 (dwarf2_physname): Likewise.
4920 (create_dwo_unit_in_dwp_v1): Use std::string.
4921 (create_dwo_unit_in_dwp_v2): Likewise.
4922 (lookup_dwo_cutu): Likewise.
4923 (inherit_abstract_dies): Use std::vector.
4924 (read_array_type): Likewise.
4925 (dwarf_decode_macros): Remove unused declaration.
4926 (unsigned_int_compar): Remove.
4927 (dwarf2_build_psymtabs_hard): Use scoped_restore.
4928 (psymtabs_addrmap_cleanup): Remove.
4929
4930 2017-10-08 Tom Tromey <tom@tromey.com>
4931
4932 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4933 * frame.h (frame_cleanup_after_sniffer): Declare.
4934 (frame_prepare_for_sniffer): Return void.
4935 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
4936 type of argument.
4937 (frame_prepare_for_sniffer): Return void.
4938
4939 2017-10-08 Tom Tromey <tom@tromey.com>
4940
4941 * utils.h (make_cleanup_value_free): Remove.
4942 * utils.c (do_value_free, struct cleanup): Remove.
4943 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
4944 Use gdb_value_up.
4945 * value.h (struct value_deleter): New.
4946 (gdb_value_up): New typedef.
4947
4948 2017-10-08 Tom Tromey <tom@tromey.com>
4949
4950 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
4951 (make_cleanup_free_search_symbols): Remove.
4952 (search_symbols): Return std::vector.
4953 (symbol_search::compare_search_syms): Now member of
4954 symbol_search. Change arguments.
4955 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
4956 (symtab_symbol_info, rbreak_command): Update.
4957 * symtab.h (struct symbol_search) <next>: Remove.
4958 Add constructors.
4959 (symbol_search::operator<): New function.
4960 (symbol_search::operator==): New function.
4961 (search_symbols): Remove std::vector.
4962 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
4963 (symbol_search::compare_search_syms): Declare.
4964
4965 2017-10-06 Yao Qi <yao.qi@linaro.org>
4966
4967 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
4968 arch/aarch64-insn.o.
4969 Remove one rule.
4970 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
4971
4972 2017-10-06 Yao Qi <yao.qi@linaro.org>
4973
4974 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4975 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
4976 arch/arm-linux.o respectively.
4977 * configure.tgt: Likewise.
4978
4979 2017-10-06 Yao Qi <yao.qi@linaro.org>
4980
4981 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
4982 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
4983
4984 2017-10-06 Pedro Alves <palves@redhat.com>
4985
4986 * windows-nat.c: Include <algorithm>.
4987
4988 2017-10-06 Yao Qi <yao.qi@linaro.org>
4989
4990 * configure.tgt (i386_tobjs): New variable.
4991 (amd64_tobjs): New variable.
4992 Set $cpu_obs and $os_obs.
4993
4994 2017-10-06 Yao Qi <yao.qi@linaro.org>
4995
4996 * Makefile.in (CONFIG_SRC_SUBDIR): New.
4997 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
4998 (clean): Remove object files and dependency files.
4999 (distclean): Remove the directory.
5000 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5001 * configure: Re-generated.
5002 * configure.tgt: Replace amd64.o with arch/amd64.o.
5003
5004 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5005
5006 PR build/22188
5007 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5008 and SETEND.
5009
5010 2017-10-05 Pedro Alves <palves@redhat.com>
5011
5012 * linux-nat.c (linux_child_follow_fork): When following the parent
5013 and detaching the child, consult the parent thread's architecture
5014 instead of the child's.
5015
5016 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5017
5018 * ax.h: Do not include "doublest.h".
5019 (union agent_val): Remove.
5020
5021 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5022
5023 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5024 (decimal_to_string): Return std::string object.
5025 (decimal_from_string): Accept std::string object. Return bool.
5026 (decimal_from_integral, decimal_from_doublest): Remove.
5027 (decimal_from_longest): Add prototype.
5028 (decimal_from_ulongest): Likewise.
5029 (decimal_to_longest): Likewise.
5030 (decimal_from_doublest): Likewise.
5031 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5032 (MAX_DECIMAL_STRING): Move here.
5033 (decimal_to_string): Return std::string object.
5034 (decimal_from_string): Accept std::string object. Return bool.
5035 (decimal_from_integral): Remove, replace by ...
5036 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5037 (decimal_to_longest): New function.
5038 (decimal_from_floating): Remove, replace by ...
5039 (decimal_from_doublest): ... this new function.
5040 (decimal_to_doublest): Update to new decimal_to_string interface.
5041
5042 * value.c (unpack_long): Use decimal_to_longest.
5043 * valops.c (value_cast): Use decimal_from_doublest instead of
5044 decimal_from_floating. Use decimal_from_[u]longest isntead of
5045 decimal_from_integral.
5046 * valarith.c (value_args_as_decimal): Likewise.
5047 * valprint.c (print_decimal_floating): Update to new
5048 decimal_to_string interface.
5049 * printcmd.c (printf_decfloat): Likewise.
5050 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5051
5052 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5053
5054 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5055 * gdbtypes.c: Include "floatformat.h".
5056 * value.c: Likewise.
5057 * m68k-tdep.c: Likewise.
5058
5059 * findvar.c: Do not include "floatformat.h".
5060 * amd64-darwin-tdep.c: Likewise.
5061 * arm-linux-tdep.c: Likewise.
5062 * i386-darwin-tdep.c: Likewise.
5063 * i387-tdep.c: Likewise.
5064 * m68k-linux-tdep.c: Likewise.
5065 * mep-tdep.c: Likewise.
5066 * mips-tdep.c: Likewise.
5067 * nios2-tdep.c: Likewise.
5068 * s390-linux-tdep.c: Likewise.
5069 * sparc-obsd-tdep.c: Likewise.
5070 * sparc-tdep.c: Likewise.
5071 * sparc64-tdep.c: Likewise.
5072 * spu-tdep.c: Likewise.
5073 * tic6x-tdep.c: Likewise.
5074 * tilegx-tdep.c: Likewise.
5075 * vax-tdep.c: Likewise.
5076 * xstormy16-tdep.c: Likewise.
5077 * xtensa-tdep.c: Likewise.
5078
5079 * top.c: Do not include "doublest.h".
5080 * aarch64-tdep.c: Likewise.
5081 * alpha-tdep.c: Likewise.
5082 * arm-linux-tdep.c: Likewise.
5083 * m68k-linux-tdep.c: Likewise.
5084 * tilegx-tdep.c: Likewise.
5085 * xstormy16-tdep.c: Likewise.
5086
5087 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5088
5089 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5090 (mipsn32_fbsd_sigframe): Define.
5091 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5092 for FreeBSD/mipsn32.
5093
5094 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5095
5096 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5097 AT_HWCAP.
5098
5099 2017-10-05 Tristan Gingold <tgingold@free.fr>
5100
5101 * MAINTAINERS (Misc): Update my email address.
5102
5103 2017-10-04 Pedro Alves <palves@redhat.com>
5104
5105 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5106 it instead of target_gdbarch.
5107 (get_remote_state, get_remote_packet_size): Adjust
5108 get_remote_arch_state calls, passing down target_gdbarch
5109 explicitly.
5110 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5111 'gdbarch' and use it instead of target_gdbarch.
5112 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5113 passing down target_gdbarch explicitly.
5114 (struct stop_reply) <arch>: New field.
5115 (remote_parse_stop_reply): Use the stopped thread's architecture,
5116 not the current inferior's. Save the architecture in the
5117 stop_reply.
5118 (process_stop_reply): Use the stop reply's architecture.
5119 (process_g_packet, remote_fetch_registers)
5120 (remote_prepare_to_store, store_registers_using_G)
5121 (remote_store_registers): Adjust get_remote_arch_state calls,
5122 using the regcache's architecture.
5123 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5124 passing down target_gdbarch explicitly.
5125 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5126 beneath instead of calling target_gdbarch.
5127 * target.c (default_thread_architecture): Use the specified
5128 inferior's architecture, instead of the current inferior's
5129 architecture (via target_gdbarch).
5130
5131 2017-10-04 Pedro Alves <palves@redhat.com>
5132
5133 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5134 case.
5135 (regcache_print): Handle !target_has_registers here instead.
5136
5137 2017-10-04 Pedro Alves <palves@redhat.com>
5138
5139 * frame.c (create_test_frame): Delete.
5140 * frame.h (create_test_frame): Delete.
5141 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5142 (class regcache_test): Delete.
5143 (test_target_has_registers, test_target_has_stack)
5144 (test_target_has_memory, test_target_prepare_to_store)
5145 (test_target_store_registers): New functions.
5146 (test_target_ops): New class.
5147 (register_to_value_test): Error out if there's already a
5148 process_stratum (or higher) target pushed. Create a fuller mock
5149 environment, with mock target_ops, inferior, address space, thread
5150 and inferior_ptid.
5151 * progspace.c (struct address_space): Move to ...
5152 * progspace.h (struct address_space): ... here.
5153 * regcache.h (regcache::~regcache, regcache::raw_write)
5154 [GDB_SELF_TEST]: No longer virtual.
5155
5156 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5157
5158 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5159
5160 2017-10-04 Pedro Alves <palves@redhat.com>
5161
5162 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5163 out of 'between TRY and CATCH'.
5164
5165 2017-10-04 Pedro Alves <palves@redhat.com>
5166
5167 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5168 * common/common-exceptions.h (TRY): Open an outermost scope.
5169 Expand intro comment.
5170 (CATCH): Reindent.
5171 (END_CATCH): Close the outermost scope.
5172 * completer.c (complete_line_internal): Add missing END_CATCH.
5173
5174 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5175
5176 * NEWS (Changes since GDB 8.0): Add entry about new
5177 'set-cwd-on-gdbserver' feature.
5178 (New remote packets): Add entry for QSetWorkingDir.
5179 * common/common-inferior.h (set_inferior_cwd): New prototype.
5180 * infcmd.c (set_inferior_cwd): Remove "static".
5181 (show_cwd_command): Expand text to include remote debugging.
5182 * remote.c: Add PACKET_QSetWorkingDir.
5183 (remote_protocol_features) <QSetWorkingDir>: New entry for
5184 PACKET_QSetWorkingDir.
5185 (extended_remote_set_inferior_cwd): New function.
5186 (extended_remote_create_inferior): Call
5187 "extended_remote_set_inferior_cwd".
5188 (_initialize_remote): Call "add_packet_config_cmd" for
5189 QSetWorkingDir.
5190
5191 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5192
5193 * NEWS (New commands): Mention "set/show cwd".
5194 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5195 "cd" command's help text.
5196 * common/common-inferior.h (get_inferior_cwd): New prototype.
5197 * infcmd.c (inferior_cwd_scratch): New global variable.
5198 (set_inferior_cwd): New function.
5199 (get_inferior_cwd): Likewise.
5200 (set_cwd_command): Likewise.
5201 (show_cwd_command): Likewise.
5202 (_initialize_infcmd): Add "set/show cwd" commands.
5203 * inferior.h (class inferior) <cwd>: New field.
5204 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5205 (fork_inferior): Change inferior's cwd before its execution.
5206 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5207 to CreateProcess.
5208
5209 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5210
5211 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5212 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5213 (COMMON_OBS): Add gdb_tilde_expand.o.
5214 * common/gdb_tilde_expand.c: New file.
5215 * common/gdb_tilde_expand.h: Likewise.
5216
5217 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5218
5219 * gdbarch.sh (objfile): Remove duplicate declaration.
5220 * gdbarch.h: Regenerate.
5221
5222 2017-10-03 Tom Tromey <tom@tromey.com>
5223
5224 * utils.c (internal_vproblem): Use string_vprintf.
5225
5226 2017-10-03 Tom Tromey <tom@tromey.com>
5227
5228 * printcmd.c (info_symbol_command): Use std::string.
5229
5230 2017-10-03 Tom Tromey <tom@tromey.com>
5231
5232 * top.c (gdb_safe_append_history): Use std::string.
5233
5234 2017-10-03 Tom Tromey <tom@tromey.com>
5235
5236 * event-top.c (stdin_event_handler): Update.
5237 * main.c (captured_main_1): Update.
5238 * top.h (make_delete_ui_cleanup): Remove.
5239 (struct ui): Add constructor and destructor.
5240 (new_ui, delete_ui): Remove.
5241 * top.c (make_delete_ui_cleanup): Remove.
5242 (new_ui_command): Use std::unique_ptr.
5243 (delete_ui_cleanup): Remove.
5244 (ui::ui): Rename from new_ui. Update.
5245 (free_ui): Remove.
5246 (ui::~ui): Rename from delete_ui. Update.
5247
5248 2017-10-03 Tom Tromey <tom@tromey.com>
5249
5250 * symfile.c (load_progress): Use gdb::byte_vector.
5251
5252 2017-10-03 Tom Tromey <tom@tromey.com>
5253
5254 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5255 declaration.
5256 * printcmd.c (x_command): Remove unused declaration.
5257 * symfile.c (symbol_file_command): Remove unused declaration.
5258
5259 2017-10-03 Tom Tromey <tom@tromey.com>
5260
5261 * utils.c (internal_vproblem): Use std::string.
5262 (defaulted_query): Likewise.
5263
5264 2017-10-03 Tom Tromey <tom@tromey.com>
5265
5266 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5267 * top.c (execute_command_to_string): Update.
5268 * utils.c (make_cleanup_restore_page_info): Remove.
5269 (do_restore_page_info_cleanup): Remove.
5270 (set_batch_flag_and_restore_page_info):
5271 New.
5272 (make_cleanup_restore_page_info): Remove.
5273 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5274 (~set_batch_flag_and_restore_page_info): New
5275 (make_cleanup_restore_uinteger): Remove.
5276 (make_cleanup_restore_integer): Remove.
5277 (struct restore_integer_closure): Remove.
5278 (restore_integer): Remove.
5279 * utils.h (struct set_batch_flag_and_restore_page_info): New
5280 class.
5281 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5282 (make_cleanup_restore_page_info): Remove.
5283 (make_cleanup_restore_uinteger) Remove.
5284 (make_cleanup_restore_integer) Remove.
5285
5286 2017-10-03 Tom Tromey <tom@tromey.com>
5287
5288 * record-full.h (record_full_gdb_operation_disable_set): Return
5289 scoped_restore_tmpl<int>.
5290 * infrun.c (adjust_pc_after_break): Update.
5291 (handle_signal_stop): Update.
5292 * record-full.c (record_full_gdb_operation_disable_set): Return
5293 scoped_restore_tmpl<int>.
5294 (record_full_wait_1, record_full_insert_breakpoint)
5295 (record_full_remove_breakpoint, record_full_save)
5296 (record_full_goto_insn): Update.
5297
5298 2017-10-02 Tom Tromey <tom@tromey.com>
5299
5300 PR rust/22236:
5301 * rust-lang.c (rust_val_print_str): New function.
5302 (val_print_struct): Call it.
5303 (rust_subscript): Preserve name of slice type.
5304
5305 2017-10-02 Tom Tromey <tom@tromey.com>
5306
5307 * rust-lang.c (rust_subscript): Handle slices in
5308 EVAL_AVOID_SIDE_EFFECTS case.
5309
5310 2017-10-02 Tom Tromey <tom@tromey.com>
5311
5312 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5313
5314 2017-10-02 Tom Tromey <tom@tromey.com>
5315
5316 * rust-lang.h (rust_slice_type): Add "extern".
5317
5318 2017-10-02 Tom Tromey <tom@tromey.com>
5319 Pedro Alves <palves@redhat.com>
5320
5321 * ada-lang.h (ada_exc_info::operator<): Make const.
5322 (ada_exc_info::operator==): Make const.
5323 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5324 Make const.
5325
5326 2017-09-29 Tom Tromey <tom@tromey.com>
5327
5328 * target.c (read_whatever_is_readable): Change type of "result".
5329 Update.
5330 (free_memory_read_result_vector): Remove.
5331 (read_memory_robust): Change return type. Update.
5332 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5333 bin2hex, std::string.
5334 * target.h (memory_read_result_s): Remove typedef.
5335 (free_memory_read_result_vector): Remove.
5336 (read_memory_robust): Return std::vector.
5337
5338 2017-09-29 Tom Tromey <tom@tromey.com>
5339
5340 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5341
5342 2017-09-29 Tom Tromey <tom@tromey.com>
5343
5344 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5345 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5346 operator< and operator==.
5347 (ada_exceptions_list): Return a std::vector.
5348 * ada-lang.c (ada_exc_info::operator<): Rename from
5349 compare_ada_exception_info.
5350 (ada_exc_info::operator==): New.
5351 (sort_remove_dups_ada_exceptions_list): Change type of
5352 "exceptions".
5353 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5354 (ada_add_global_exceptions): Likewise.
5355 (ada_exceptions_list_1): Return a std::vector.
5356 (ada_exceptions_list): Likewise.
5357
5358 2017-09-29 Tom Tromey <tom@tromey.com>
5359
5360 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5361 'std::set *'.
5362 (print_one_inferior): Update.
5363 (free_vector_of_ints): Remove.
5364 (list_available_thread_groups): Change "ids" to std::set.
5365 (mi_cmd_list_thread_groups): Update.
5366 (struct collect_cores_data) <core>: Now a std::set.
5367 (collect_cores): Update.
5368 (unique): Remove.
5369 (print_one_inferior): Update.
5370
5371 2017-09-29 Tom Tromey <tom@tromey.com>
5372
5373 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5374 (mi_execute_async_cli_command): Likewise.
5375 (mi_cmd_trace_frame_collected): Use field_fmt.
5376
5377 2017-09-29 Tom Tromey <tom@tromey.com>
5378
5379 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5380 gdb::byte_vector.
5381
5382 2017-09-29 Tom Tromey <tom@tromey.com>
5383
5384 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5385
5386 2017-09-29 Tom Tromey <tom@tromey.com>
5387
5388 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5389
5390 2017-09-29 Tom Tromey <tom@tromey.com>
5391
5392 * varobj.h (varobj_gen_name): Return std::string.
5393 * varobj.c (varobj_gen_name): Return std::string.
5394 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5395 (mi_cmd_var_delete): Don't copy "name".
5396
5397 2017-09-29 Tom Tromey <tom@tromey.com>
5398
5399 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5400 (mi_cmd_break_insert_1): Update.
5401
5402 2017-09-29 Tom Tromey <tom@tromey.com>
5403
5404 * target.h (make_scoped_defer_target_commit_resume): Update.
5405 * target.c (make_scoped_defer_target_commit_resume): Rename from
5406 make_cleanup_defer_target_commit_resume. Return a
5407 scoped_restore.
5408 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5409
5410 2017-09-29 Tom Tromey <tom@tromey.com>
5411
5412 * main.c (captured_main_1): Remove unused declaration.
5413 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5414
5415 2017-09-29 Tom Tromey <tom@tromey.com>
5416
5417 * symtab.c (search_symbols): Remove unused outer cleanup.
5418 (make_source_files_completion_list): Remove unused declaration.
5419
5420 2017-09-29 Tom Tromey <tom@tromey.com>
5421
5422 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5423
5424 2017-09-29 Tom Tromey <tom@tromey.com>
5425
5426 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5427 gdb::byte_vector.
5428
5429 2017-09-29 Tom Tromey <tom@tromey.com>
5430
5431 * complaints.c (vcomplaint): Use std::string.
5432
5433 2017-09-29 Tom Tromey <tom@tromey.com>
5434
5435 * tracepoint.c (trace_variable_command): Use std::string.
5436 (encode_actions_1): Remove unused declarations.
5437 (create_tsv_from_upload): Use std::string.
5438
5439 2017-09-29 Tom Tromey <tom@tromey.com>
5440
5441 * cp-support.c (gdb_demangle): Use std::string.
5442
5443 2017-09-29 Tom Tromey <tom@tromey.com>
5444
5445 * stack.c (parse_frame_specification): Use std::string
5446 (info_frame_command): Use gdb::unique_xmalloc_ptr.
5447
5448 2017-09-29 Tom Tromey <tom@tromey.com>
5449
5450 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
5451
5452 2017-09-29 Tom Tromey <tom@tromey.com>
5453
5454 * utils.c (vfprintf_maybe_filtered): Use std::string.
5455 (vfprintf_unfiltered): Likewise.
5456
5457 2017-09-29 Tom Tromey <tom@tromey.com>
5458
5459 * event-top.c (top_level_prompt): Return std::string.
5460 (display_gdb_prompt): Update.
5461
5462 2017-09-29 Tom Tromey <tom@tromey.com>
5463
5464 * unittests/common-utils-selftests.c (format): New function.
5465 (string_vprintf_tests): New function.
5466 (_initialize_common_utils_selftests): Register new tests.
5467 * common/common-utils.c (string_vprintf): New function.
5468 * common/common-utils.h (string_vprintf): Declare.
5469
5470 2017-09-29 Pedro Alves <palves@redhat.com>
5471
5472 * common/rsp-low.c (unpack_varlen_hex): Constify.
5473 * common/rsp-low.h (unpack_varlen_hex): Constify.
5474 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5475 Constify.
5476 * remote.c (remote_set_permissions, read_ptid)
5477 (remote_current_thread, remote_get_threads_with_qthreadinfo)
5478 (remote_static_tracepoint_marker_at)
5479 (remote_static_tracepoint_markers_by_strid)
5480 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
5481 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
5482 (parse_tracepoint_definition, parse_tsv_definition)
5483 (parse_static_tracepoint_marker_definition): Constify.
5484 * tracepoint.h (parse_static_tracepoint_marker_definition)
5485 (parse_trace_status, parse_tracepoint_status)
5486 (parse_tracepoint_definition, parse_tsv_definition): Constify.
5487
5488 2017-09-29 Pedro Alves <palves@redhat.com>
5489
5490 * remote.c (target_buf, target_buf_size): Delete.
5491 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
5492 Use the connection's packet buffer instead.
5493 All callers adjusted.
5494 (_initialize_remote): Remove references to target_buf and
5495 target_buf_size.
5496
5497 2017-09-28 Pedro Alves <palves@redhat.com>
5498
5499 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5500 unittests/common-utils-selftests.c.
5501 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
5502 (COMMON_OBS): Remove utils-selftests.o.
5503 * utils-selftests.c: Move to ...
5504 * unittests/common-utils-selftests.c: ... here and rename self
5505 test to "string_printf".
5506
5507 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
5508
5509 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
5510 having NULL cus or tus.
5511
5512 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5513
5514 * arm-tdep.c: (convert_from_extended): Remove.
5515 (convert_to_extended): Likewise.
5516 (arm_extract_return_value): Use convert_typed_floating.
5517 (arm_store_return_value): Likewise.
5518
5519 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5520 * sh-tdep.c: Do not include "floatformat.h".
5521 (sh_littlebyte_bigword_type): New function.
5522 (sh_register_convert_to_virtual): Use convert_typed_floating.
5523 (sh_register_convert_to_raw): Likewise.
5524 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5525 (sh64_littlebyte_bigword_type): New function.
5526 (sh64_extract_return_value): Use convert_typed_floating.
5527 (sh64_register_convert_to_virtual): Likewise.
5528 (sh64_register_convert_to_raw): Likewise.
5529
5530 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5531
5532 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
5533 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5534
5535 * gdbtypes.h (union type_specific): Make field floatformat hold
5536 just a single struct floatformat, not an array.
5537 (floatformat_from_type): Move here.
5538 * gdbtypes.c (floatformat_from_type): Move here. Update to
5539 changed TYPE_FLOATFORMAT definition.
5540 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
5541 (recursive_dump_type): Likewise.
5542 (init_float_type): Install correct floatformat for byte order.
5543 (arch_float_type): Likewise.
5544
5545 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5546
5547 * gdbtypes.c (init_type): Change incoming argument from
5548 length-in-bytes to length-in-bits. Assert length is a
5549 multiple of TARGET_CHAR_BITS.
5550 (arch_type, arch_flags_type): Likewise.
5551 (init_integer_type): Update call to init_type.
5552 (init_character_type): Likewise.
5553 (init_boolean_type): Likewise.
5554 (init_float_type): Likewise.
5555 (init_decfloat_type): Likewise.
5556 (init_complex_type): Likewise.
5557 (init_pointer_type): Likewise.
5558 (objfile_type): Likewise.
5559 (arch_integer_type): Update call to arch_type.
5560 (arch_character_type): Likewise.
5561 (arch_boolean_type): Likewise.
5562 (arch_float_type): Likewise.
5563 (arch_decfloat_type): Likewise.
5564 (arch_complex_type): Likewise.
5565 (arch_pointer_type): Likewise.
5566 (gdbtypes_post_init): Likewise.
5567
5568 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5569 (read_base_type): Likewise.
5570 * mdebugread.c (basic_type): Likewise.
5571 * stabsread.c (dbx_init_float_type): Likewise.
5572 (rs6000_builtin_type): Likewise.
5573 (read_range_type): Likewise. Also, fix call to init_integer_type
5574 with erroneous length argument.
5575
5576 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5577 * d-lang.c (build_d_types): Likewise.
5578 * f-lang.c (build_fortran_types): Likewise.
5579 * go-lang.c (build_go_types): Likewise.
5580 * opencl-lang.c (build_opencl_types): Likewise.
5581 * jit.c (finalize_symtab): Likewise.
5582 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5583 (build_std_type_info_type): Likewise.
5584 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5585 update call to arch_flags_type.
5586
5587 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5588 arch_type.
5589 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5590 * windows-tdep.c (windows_get_tlb_type): Likewise.
5591
5592 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
5593 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5594 * m32c-tdep.c (make_types): Likewise.
5595 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5596 (rl78_psw_type): Update call to arch_flags_type.
5597 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
5598 * rx-tdep.c (rx_psw_type): Likewise.
5599 (rx_fpsw_type): Likewise.
5600 * sparc-tdep.c (sparc_psr_type): Likewise.
5601 (sparc_fsr_type): Likewise.
5602 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
5603 (sparc64_ccr_type): Likewise.
5604 (sparc64_fsr_type): Likewise.
5605 (sparc64_fprs_type): Likewise.
5606
5607 2017-09-27 Tom Tromey <tom@tromey.com>
5608
5609 * findcmd.c (find_command): Constify.
5610
5611 2017-09-27 Tom Tromey <tom@tromey.com>
5612
5613 * ada-tasks.c (task_command_1, task_command): Constify.
5614
5615 2017-09-27 Tom Tromey <tom@tromey.com>
5616
5617 * symtab.c (maintenance_print_symbol_cache)
5618 (maintenance_flush_symbol_cache)
5619 (maintenance_print_symbol_cache_statistics): Constify.
5620
5621 2017-09-27 Tom Tromey <tom@tromey.com>
5622
5623 * inferior.c (detach_inferior_command, kill_inferior_command)
5624 (inferior_command): Constify.
5625
5626 2017-09-27 Tom Tromey <tom@tromey.com>
5627
5628 * regcache.c (regcache_print, maintenance_print_registers)
5629 (maintenance_print_raw_registers)
5630 (maintenance_print_cooked_registers)
5631 (maintenance_print_register_groups)
5632 (maintenance_print_remote_registers): Constify.
5633
5634 2017-09-27 Tom Tromey <tom@tromey.com>
5635
5636 * printcmd.c (map_display_numbers, undisplay_command)
5637 (enable_disable_display_command, enable_display_command)
5638 (disable_display_command): Constify.
5639
5640 2017-09-27 Tom Tromey <tom@tromey.com>
5641
5642 * breakpoint.h (delete_command): Don't declare.
5643 * breakpoint.c (delete_command, enable_once_command)
5644 (enable_count_command, enable_delete_command, breakpoint_1)
5645 (maintenance_info_breakpoints, stopin_command, stopat_command)
5646 (delete_command, delete_trace_command, save_breakpoints)
5647 (save_breakpoints_command, save_tracepoints_command): Constify.
5648
5649 2017-09-27 Tom Tromey <tom@tromey.com>
5650
5651 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5652 (skip_ws, extract_identifier, macro_define_command)
5653 (macro_undef_command, macro_list_command): Constify.
5654
5655 2017-09-27 Tom Tromey <tom@tromey.com>
5656
5657 * infcmd.c (environment_info, set_environment_command)
5658 (unset_environment_command, path_info, info_proc_cmd_1)
5659 (info_proc_cmd_mappings, info_proc_cmd_stat)
5660 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
5661 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
5662
5663 2017-09-27 Tom Tromey <tom@tromey.com>
5664
5665 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
5666 Constify.
5667
5668 2017-09-27 Tom Tromey <tom@tromey.com>
5669
5670 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
5671
5672 2017-09-27 Tom Tromey <tom@tromey.com>
5673
5674 * demangle.c (demangle_command): Constify.
5675
5676 2017-09-27 Tom Tromey <tom@tromey.com>
5677
5678 * progspace.c (maintenance_info_program_spaces_command):
5679 Constify.
5680
5681 2017-09-27 Tom Tromey <tom@tromey.com>
5682
5683 * compile/compile.c (check_raw_argument, compile_file_command)
5684 (compile_code_command, compile_print_command): Constify.
5685
5686 2017-09-27 Tom Tromey <tom@tromey.com>
5687
5688 * reggroups.c (maintenance_print_reggroups): Constify.
5689
5690 2017-09-27 Tom Tromey <tom@tromey.com>
5691
5692 * dwarf2read.c (save_gdb_index_command): Constify.
5693
5694 2017-09-27 Tom Tromey <tom@tromey.com>
5695
5696 * stap-probe.c (info_probes_stap_command): Constify.
5697
5698 2017-09-27 Tom Tromey <tom@tromey.com>
5699
5700 * fork-child.c (unset_exec_wrapper_command): Constify.
5701
5702 2017-09-27 Tom Tromey <tom@tromey.com>
5703
5704 * btrace.c (get_uint, get_context_size, no_chunk)
5705 (maint_btrace_packet_history_cmd)
5706 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5707 (maint_info_btrace_cmd): Constify.
5708
5709 2017-09-27 Tom Tromey <tom@tromey.com>
5710
5711 * reverse.c (delete_bookmark_command): Constify.
5712
5713 2017-09-27 Tom Tromey <tom@tromey.com>
5714
5715 * remote.c (set_memory_packet_size)
5716 (set_memory_write_packet_size, show_memory_write_packet_size)
5717 (set_memory_read_packet_size, show_memory_read_packet_size)
5718 (compare_sections_command, packet_command, remote_put_command)
5719 (remote_get_command, remote_delete_command): Constify.
5720
5721 2017-09-27 Tom Tromey <tom@tromey.com>
5722
5723 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
5724 (set_mipsfpu_double_command, set_mipsfpu_none_command)
5725 (set_mipsfpu_auto_command): Constify.
5726
5727 2017-09-27 Tom Tromey <tom@tromey.com>
5728
5729 * cli/cli-cmds.h (cd_command): Constify.
5730 * cli/cli-cmds.c (cd_command): Constify.
5731
5732 2017-09-27 Tom Tromey <tom@tromey.com>
5733
5734 * thread.c (thread_name_command, thread_find_command): Constify.
5735
5736 2017-09-27 Tom Tromey <tom@tromey.com>
5737
5738 * probe.c (enable_probes_command, disable_probes_command):
5739 Constify.
5740
5741 2017-09-27 Tom Tromey <tom@tromey.com>
5742
5743 * symfile.c (symbol_file_command): Constify.
5744 * gdbcore.h (deprecated_file_changed_hook): Constify.
5745 * exec.c (deprecated_file_changed_hook, exec_file_command)
5746 (file_command): Constify.
5747 * defs.h (symbol_file_command): Constify.
5748
5749 2017-09-27 Tom Tromey <tom@tromey.com>
5750
5751 * remote-fileio.c (set_system_call_allowed)
5752 (show_system_call_allowed): Constify.
5753
5754 2017-09-27 Tom Tromey <tom@tromey.com>
5755
5756 * tracepoint.c (delete_trace_variable_command)
5757 (tfind_end_command, tfind_start_command, tfind_pc_command)
5758 (tfind_tracepoint_command, tfind_line_command)
5759 (tfind_range_command, tfind_outside_command): Constify.
5760
5761 2017-09-27 Tom Tromey <tom@tromey.com>
5762
5763 * ax-gdb.c (maint_agent_printf_command, agent_command)
5764 (agent_eval_command): Constify.
5765
5766 2017-09-27 Tom Tromey <tom@tromey.com>
5767
5768 * tracepoint.c (info_scope_command): Constify.
5769 * python/python.c (gdbpy_decode_line): Constify.
5770 * python/py-breakpoint.c (bppy_init): Constify.
5771 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
5772 * location.h: (new_linespec_location)
5773 (string_to_event_location_basic, string_to_event_location):
5774 Constify.
5775 * location.c (new_linespec_location)
5776 (string_to_event_location_basic, string_to_event_location):
5777 Constify.
5778 * linespec.h (decode_line_with_current_source)
5779 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
5780 * linespec.c (linespec_lex_to_end)
5781 (decode_line_with_current_source)
5782 (decode_line_with_last_displayed): Constify.
5783 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
5784 Constify.
5785 * cli/cli-cmds.c (edit_command, list_command): Constify.
5786 * breakpoint.h (until_break_command, watch_command_wrapper)
5787 (awatch_command_wrapper, rwatch_command_wrapper)
5788 (init_ada_exception_breakpoint): Constify.
5789 * breakpoint.c (break_command_1, dprintf_command)
5790 (break_range_command, watch_command_wrapper)
5791 (rwatch_command_wrapper, awatch_command_wrapper)
5792 (until_break_command, init_ada_exception_breakpoint)
5793 (strace_marker_create_sals_from_location, trace_command)
5794 (ftrace_command, strace_command, struct tracepoint): Constify.
5795 * ax-gdb.c (agent_command_1): Constify.
5796 * ada-lang.c (ada_exception_sal): Constify.
5797
5798 2017-09-27 Tom Tromey <tom@tromey.com>
5799
5800 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
5801 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
5802 (get_context_size, no_chunk, get_insn_history_modifiers)
5803 (cmd_record_insn_history, get_call_history_modifiers)
5804 (cmd_record_call_history): Constify.
5805
5806 2017-09-27 Tom Tromey <tom@tromey.com>
5807
5808 * source.c (show_substitute_path_command)
5809 (unset_substitute_path_command, set_substitute_path_command):
5810 Constify.
5811
5812 2017-09-27 Tom Tromey <tom@tromey.com>
5813
5814 * typeprint.c (maintenance_print_type): Constify.
5815 * maint.c (maintenance_dump_me, maintenance_demangle)
5816 (maintenance_time_display, maintenance_info_sections)
5817 (maintenance_print_statistics, maintenance_deprecate)
5818 (maintenance_undeprecate): Constify.
5819 (maintenance_do_deprecate): Constify. Use std::string.
5820 (maintenance_selftest): Constify.
5821 * gdbtypes.h (maintenance_print_type): Constify.
5822
5823 2017-09-27 Tom Tromey <tom@tromey.com>
5824
5825 * hppa-tdep.c (unwind_command): Constify.
5826
5827 2017-09-27 Tom Tromey <tom@tromey.com>
5828
5829 * target-descriptions.c (unset_tdesc_filename_cmd)
5830 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
5831 Constify.
5832
5833 2017-09-27 Tom Tromey <tom@tromey.com>
5834
5835 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
5836
5837 2017-09-27 Tom Tromey <tom@tromey.com>
5838
5839 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
5840
5841 2017-09-27 Tom Tromey <tom@tromey.com>
5842
5843 * tui/tui-regs.c (tui_reg_command): Constify.
5844
5845 2017-09-27 Tom Tromey <tom@tromey.com>
5846
5847 * skip.c (skip_file_command, skip_function_command)
5848 (skip_enable_command, skip_disable_command, skip_delete_command):
5849 Constify.
5850
5851 2017-09-27 Tom Tromey <tom@tromey.com>
5852
5853 * record-btrace.c (cmd_record_btrace_bts_start)
5854 (cmd_record_btrace_pt_start): Constify.
5855
5856 2017-09-27 Tom Tromey <tom@tromey.com>
5857
5858 * symmisc.c (maintenance_print_symbols)
5859 (maintenance_print_msymbols, maintenance_print_objfiles)
5860 (maintenance_info_symtabs, maintenance_check_symtabs)
5861 (maintenance_expand_symtabs, maintenance_info_line_tables):
5862 Constify.
5863
5864 2017-09-27 Tom Tromey <tom@tromey.com>
5865
5866 * top.c (new_ui_command): Constify.
5867
5868 2017-09-27 Tom Tromey <tom@tromey.com>
5869
5870 * symfile.c (add_symbol_file_command)
5871 (remove_symbol_file_command, list_overlays_command)
5872 (map_overlay_command, unmap_overlay_command)
5873 (overlay_auto_command, overlay_manual_command)
5874 (overlay_off_command, overlay_load_command): Constify.
5875
5876 2017-09-27 Tom Tromey <tom@tromey.com>
5877
5878 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
5879 (info_spu_mailbox_command, info_spu_dma_command)
5880 (info_spu_proxydma_command): Constify.
5881
5882 2017-09-27 Tom Tromey <tom@tromey.com>
5883
5884 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
5885
5886 2017-09-27 Tom Tromey <tom@tromey.com>
5887
5888 * cli/cli-script.c (user_defined_command): Constify.
5889
5890 2017-09-27 Tom Tromey <tom@tromey.com>
5891
5892 * cli/cli-dump.c (dump_memory_command, dump_value_command)
5893 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
5894 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
5895 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
5896 (dump_binary_value, append_binary_memory, append_binary_value):
5897 Constify.
5898 (struct dump_context) <func>: Constify.
5899 (add_dump_command): Update.
5900
5901 2017-09-27 Tom Tromey <tom@tromey.com>
5902
5903 * cli/cli-cmds.c (show_version, show_configuration)
5904 (source_command, show_user): Constify.
5905
5906 2017-09-27 Tom Tromey <tom@tromey.com>
5907
5908 * target.c (maintenance_print_target_stack): Constify.
5909
5910 2017-09-27 Tom Tromey <tom@tromey.com>
5911
5912 * interps.c (interpreter_exec_cmd): Constify.
5913
5914 2017-09-27 Tom Tromey <tom@tromey.com>
5915
5916 * record-full.c (cmd_record_full_restore): Constify.
5917
5918 2017-09-27 Tom Tromey <tom@tromey.com>
5919
5920 * memattr.c (enable_mem_command, disable_mem_command)
5921 (delete_mem_command): Constify.
5922
5923 2017-09-27 Tom Tromey <tom@tromey.com>
5924
5925 * value.c (show_convenience): Constify.
5926
5927 2017-09-27 Tom Tromey <tom@tromey.com>
5928
5929 * gdbcore.h (core_file_command): Update.
5930 * corefile.c (core_file_command): Constify.
5931
5932 2017-09-27 Tom Tromey <tom@tromey.com>
5933
5934 * user-regs.c (maintenance_print_user_registers): Constify.
5935
5936 2017-09-27 Tom Tromey <tom@tromey.com>
5937
5938 * cp-namespace.c (maintenance_cplus_namespace): Constify.
5939
5940 2017-09-27 Tom Tromey <tom@tromey.com>
5941
5942 * cp-support.c (first_component_command): Constify.
5943
5944 2017-09-27 Tom Tromey <tom@tromey.com>
5945
5946 * psymtab.c (maintenance_print_psymbols)
5947 (maintenance_info_psymtabs, maintenance_check_psymtabs):
5948 Constify.
5949
5950 2017-09-27 Tom Tromey <tom@tromey.com>
5951
5952 * windows-tdep.c (display_tib): Constify.
5953
5954 2017-09-27 Tom Tromey <tom@tromey.com>
5955
5956 * linux-fork.c (delete_checkpoint_command)
5957 (detach_checkpoint_command): Constify.
5958
5959 2017-09-27 Tom Tromey <tom@tromey.com>
5960
5961 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
5962
5963 2017-09-27 Tom Tromey <tom@tromey.com>
5964
5965 * arc-tdep.c (dump_arc_instruction_command): Constify.
5966
5967 2017-09-27 Tom Tromey <tom@tromey.com>
5968
5969 * valprint.c (set_radix, show_radix): Constify.
5970
5971 2017-09-27 Tom Tromey <tom@tromey.com>
5972
5973 * dtrace-probe.c (info_probes_dtrace_command): Constify.
5974
5975 2017-09-27 Tom Tromey <tom@tromey.com>
5976
5977 * command.h (not_just_help_class_command): Update.
5978 * cli/cli-decode.h (not_just_help_class_command): Update.
5979 * cli/cli-decode.c (not_just_help_class_command): Constify.
5980
5981 2017-09-27 Tom Tromey <tom@tromey.com>
5982
5983 * gdb_bfd.c (maintenance_info_bfds): Constify.
5984
5985 2017-09-27 Tom Tromey <tom@tromey.com>
5986
5987 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
5988 overloads.
5989 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
5990 (do_const_cfunc): New function.
5991 (cmd_cfunc_eq): New overload.
5992 (cli_user_command_p): Check do_const_cfunc.
5993 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
5994 const_cfunc.
5995 * command.h (add_cmd): Add const overload and no-function
5996 overload.
5997 (set_cmd_cfunc): Add const overload.
5998 (cmd_const_cfunc_ftype): Declare.
5999 (cmd_cfunc_eq): Add const overload.
6000 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6001 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6002 overload.
6003
6004 2017-09-27 Tom Tromey <tom@tromey.com>
6005
6006 * macroexp.c (get_next_token_for_substitution): New function.
6007 (substitute_args): Call it. Check for __VA_OPT__.
6008
6009 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6010 Pedro Alves <palves@redhat.com>
6011
6012 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6013 producer_is_icc_lt_14.
6014 (producer_is_icc_lt_14): New function.
6015 (check_producer): Add code for checking version of ICC.
6016 (producer_is_icc): Move to producer.c.
6017 (read_structure_type): Restrict ICC workaround to ICC<14.
6018 * producer.c: Include selftest.h.
6019 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6020 New functions.
6021 * producer.h (producer_is_icc): New declaration.
6022
6023 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6024
6025 * Makefile.in (SFILES): Add producer.c.
6026 (COMMON_OBS): Add producer.o
6027 * amd64-tdep.c (producer.h): Add new include.
6028 * dwarf2read.c (producer.h): Add new include.
6029 * producer.c: New file.
6030 * producer.h: New file.
6031 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6032 producer.c.
6033 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6034 producer.h.
6035
6036 2017-09-26 Matthias Klose <doko@ubuntu.com>
6037
6038 * configure.ac: Search ncursesw before ncurses.
6039 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6040 * gdb_curses.h: Include <ncursesw/ncurses.h>
6041 * config.in, configure: Regenerate.
6042
6043 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6044
6045 PR gdb/22185
6046 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6047 obsolete.
6048 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6049 Remove i386sol2 support.
6050 * configure.nat <i386sol2>: Remove.
6051 <sol2-64>: Fold into ...
6052 <sol2>: ... this.
6053 Move common settings to default section.
6054 Add sol-thread.o.
6055 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6056 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6057 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6058 <i[34567]86-*-solaris*>: Remove.
6059 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6060
6061 * configure.ac: Remove wctype in libw check.
6062 (_MSE_INT_H): Don't define on Solaris 7-9.
6063 <solaris*>: Remove libthread_db.so.1 check.
6064 * configure: Regenerate.
6065 * config.in: Regenerate.
6066
6067 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6068 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6069 (gdb_ps_size_t): Remove.
6070 Use base types in users.
6071 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6072
6073 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6074
6075 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6076
6077 PR build/22206
6078 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6079 (adi_is_addr_mapped): Likewise.
6080 (PSR_ICC): Don't redefine.
6081 (PSR_IMPL): Likewise.
6082
6083 2017-09-25 Tom Tromey <tom@tromey.com>
6084
6085 * regcache.c (regcache::dump): Use string_printf.
6086
6087 2017-09-25 Tom Tromey <tom@tromey.com>
6088
6089 * regcache.c (class regcache_invalidator): New.
6090 (struct register_to_invalidate): Remove.
6091 (make_cleanup_regcache_invalidate): Remove.
6092 (regcache::raw_write): Use regcache_invalidator.
6093
6094 2017-09-25 Tom Tromey <tom@tromey.com>
6095
6096 * spu-tdep.c (spu2ppu_sniffer): Update.
6097 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6098 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6099 Remove.
6100 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6101 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6102 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6103 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6104 (frame_pop): Update.
6105
6106 2017-09-25 Tom Tromey <tom@tromey.com>
6107
6108 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6109 * regcache.h (regcache_xfree): Don't declare.
6110 * regcache.c (regcache_xfree): Remove.
6111 (do_regcache_xfree): Use delete.
6112 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6113 * linux-fork.c (free_fork): Use delete.
6114 (fork_save_infrun_state): Likewise.
6115 * jit.c (jit_dealloc_cache): Use delete.
6116 * infrun.c (discard_infcall_suspend_state): Use delete.
6117
6118 2017-09-25 Tom Tromey <tom@tromey.com>
6119
6120 * regcache.h (regcache_xmalloc): Don't declare.
6121 (regcache_raw_set_cached_value): Update comment.
6122 * regcache.c (regcache_xmalloc): Remove.
6123 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6124 * jit.c (jit_frame_sniffer): Use new.
6125 * frame.c (frame_save_as_regcache): Use new.
6126
6127 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6128
6129 * NEWS: Advertise support for guarded-storage registers on IBM z.
6130
6131 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6132
6133 * s390-linux-nat.c (have_regset_gs): New static variable.
6134 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6135 control block and guarded-storage broadcast control regsets.
6136 (s390_read_description): Detect whether the target has
6137 guarded-storage support, return appropriate tdesc.
6138 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6139 (features/s390x-gs-linux64.c): Likewise.
6140 (struct gdbarch_tdep) <have_gs>: New field.
6141 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6142 (s390_gsbc_regset): New variables.
6143 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6144 and s390_gsbc_regset, if applicable.
6145 (s390_core_read_description): Check whether core file was from a
6146 target with guarded-storage support; include appropriate regsets.
6147 (s390_gdbarch_init): Add registers for guarded-storage support.
6148 (_initialize_s390_tdep): Initialize new target descriptions that
6149 include registers for guarded-storage support.
6150 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6151 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6152 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6153 (S390_NUM_REGS): Adjust macro definition.
6154 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6155 (tdesc_s390x_gs_linux64): New declarations.
6156
6157 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6158
6159 * features/s390-gs-linux64.xml: New file.
6160 * features/s390-gs.xml: New file.
6161 * features/s390-gsbc.xml: New file.
6162 * features/s390x-gs-linux64.xml: New file.
6163 * features/Makefile (WHICH): Add s390-gs-linux64 and
6164 s390x-gs-linux64.
6165 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6166 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6167 * features/s390-gs-linux64.c: New generated file.
6168 * features/s390x-gs-linux64.c: New file.
6169 * regformats/s390-gs-linux64.dat: New file.
6170 * regformats/s390x-gs-linux64.dat: New file.
6171
6172 2017-09-23 Tom Tromey <tom@tromey.com>
6173
6174 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6175
6176 2017-09-22 Tom Tromey <tom@tromey.com>
6177
6178 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6179 type to scoped_restore_tmpl.
6180 <scoped_input_handler>: Initialize m_quit_handler directly.
6181
6182 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6183
6184 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6185 (cd_command): Likewise. Free "current_directory" before
6186 assigning to it.
6187 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6188 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6189 * top.c (gdb_dirbuf): Remove global declaration.
6190 * top.h (gdb_dirbuf): Likewise.
6191
6192 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6193
6194 * gnulib/aclocal.m4: Regenerate.
6195 * gnulib/config.in: Regenerate.
6196 * gnulib/configure: Regenerate.
6197 * gnulib/import/Makefile.am: Regenerate.
6198 * gnulib/import/Makefile.in: Regenerate.
6199 * gnulib/import/assure.h: New file.
6200 * gnulib/import/at-func.c: Likewise
6201 * gnulib/import/chdir-long.c: New file.
6202 * gnulib/import/chdir-long.h: New file.
6203 * gnulib/import/cloexec.c: New file.
6204 * gnulib/import/cloexec.h: New file.
6205 * gnulib/import/close.c: New file.
6206 * gnulib/import/closedir.c: New file.
6207 * gnulib/import/dirent-private.h: New file.
6208 * gnulib/import/dup-safer.c: New file.
6209 * gnulib/import/dup.c: New file.
6210 * gnulib/import/dup2.c: New file.
6211 * gnulib/import/error.c: New file.
6212 * gnulib/import/error.h: New file.
6213 * gnulib/import/exitfail.c: New file.
6214 * gnulib/import/exitfail.h: New file.
6215 * gnulib/import/fchdir.c: New file.
6216 * gnulib/import/fcntl.c: New file.
6217 * gnulib/import/fcntl.in.h: New file.
6218 * gnulib/import/fd-hook.c: New file.
6219 * gnulib/import/fd-hook.h: New file.
6220 * gnulib/import/fd-safer.c: New file.
6221 * gnulib/import/fdopendir.c: New file.
6222 * gnulib/import/filename.h: New file.
6223 * gnulib/import/filenamecat-lgpl.c: New file.
6224 * gnulib/import/filenamecat.h: New file.
6225 * gnulib/import/fstat.c: New file.
6226 * gnulib/import/fstatat.c: New file.
6227 * gnulib/import/getcwd-lgpl.c: New file.
6228 * gnulib/import/getcwd.c: New file.
6229 * gnulib/import/getdtablesize.c: New file.
6230 * gnulib/import/getlogin_r.c: New file.
6231 * gnulib/import/getprogname.c: New file.
6232 * gnulib/import/getprogname.h: New file.
6233 * gnulib/import/gettext.h: New file.
6234 * gnulib/import/glob-libc.h: New file.
6235 * gnulib/import/glob.c: New file.
6236 * gnulib/import/glob.in.h: New file.
6237 * gnulib/import/intprops.h: New file.
6238 * gnulib/import/m4/chdir-long.m4: New file.
6239 * gnulib/import/m4/close.m4: New file.
6240 * gnulib/import/m4/closedir.m4: New file.
6241 * gnulib/import/m4/d-ino.m4: New file.
6242 * gnulib/import/m4/d-type.m4: New file.
6243 * gnulib/import/m4/dup.m4: New file.
6244 * gnulib/import/m4/dup2.m4: New file.
6245 * gnulib/import/m4/error.m4: New file.
6246 * gnulib/import/m4/fchdir.m4: New file.
6247 * gnulib/import/m4/fcntl.m4: New file.
6248 * gnulib/import/m4/fcntl_h.m4: New file.
6249 * gnulib/import/m4/fdopendir.m4: New file.
6250 * gnulib/import/m4/filenamecat.m4: New file.
6251 * gnulib/import/m4/fstat.m4: New file.
6252 * gnulib/import/m4/fstatat.m4: New file.
6253 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6254 * gnulib/import/m4/getcwd-path-max.m4: New file.
6255 * gnulib/import/m4/getcwd.m4: New file.
6256 * gnulib/import/m4/getdtablesize.m4: New file.
6257 * gnulib/import/m4/getlogin_r.m4: New file.
6258 * gnulib/import/m4/getprogname.m4: New file.
6259 * gnulib/import/m4/glob.m4: New file.
6260 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6261 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6262 * gnulib/import/m4/mempcpy.m4: New file.
6263 * gnulib/import/m4/memrchr.m4: New file.
6264 * gnulib/import/m4/mode_t.m4: New file.
6265 * gnulib/import/m4/msvc-inval.m4: New file.
6266 * gnulib/import/m4/msvc-nothrow.m4: New file.
6267 * gnulib/import/m4/open.m4: New file.
6268 * gnulib/import/m4/openat.m4: New file.
6269 * gnulib/import/m4/opendir.m4: New file.
6270 * gnulib/import/m4/readdir.m4: New file.
6271 * gnulib/import/m4/realloc.m4: New file.
6272 * gnulib/import/m4/rewinddir.m4: New file.
6273 * gnulib/import/m4/save-cwd.m4: New file.
6274 * gnulib/import/m4/strdup.m4: New file.
6275 * gnulib/import/m4/strerror.m4: New file.
6276 * gnulib/import/m4/unistd-safer.m4: New file.
6277 * gnulib/import/mempcpy.c: New file.
6278 * gnulib/import/memrchr.c: New file.
6279 * gnulib/import/msvc-inval.c: New file.
6280 * gnulib/import/msvc-inval.h: New file.
6281 * gnulib/import/msvc-nothrow.c: New file.
6282 * gnulib/import/msvc-nothrow.h: New file.
6283 * gnulib/import/open.c: New file.
6284 * gnulib/import/openat-die.c: New file.
6285 * gnulib/import/openat-priv.h: New file.
6286 * gnulib/import/openat-proc.c: New file.
6287 * gnulib/import/openat.c: New file.
6288 * gnulib/import/openat.h: New file.
6289 * gnulib/import/opendir.c: New file.
6290 * gnulib/import/pipe-safer.c: New file.
6291 * gnulib/import/readdir.c: New file.
6292 * gnulib/import/realloc.c: New file.
6293 * gnulib/import/rewinddir.c: New file.
6294 * gnulib/import/save-cwd.c: New file.
6295 * gnulib/import/save-cwd.h: New file.
6296 * gnulib/import/strdup.c: New file.
6297 * gnulib/import/strerror-override.c: New file.
6298 * gnulib/import/strerror-override.h: New file.
6299 * gnulib/import/strerror.c: New file.
6300 * gnulib/import/unistd--.h: New file.
6301 * gnulib/import/unistd-safer.h: New file.
6302 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6303 "getcwd" and "glob".
6304 * ser-tcp.c: Undefine "close" before redefining it.
6305
6306 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6307
6308 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6309 get rid of res_val.
6310
6311 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6312
6313 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6314 <sol2,sparc>: Likewise.
6315 <sol2-64,i386>: Likewise.
6316
6317 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6318 -Wdeprecated-declarations on *-*-solaris*.
6319 * configure: Regenerate.
6320
6321 * procfs.c: Include "nat/inferior.h".
6322 (procfs_info_proc): Fix typo.
6323
6324 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6325
6326 * remote.c (vector): Include.
6327 (struct private_thread_info): Add field, thread_handle.
6328 (free_private_thread_info): Deallocate storage associated with
6329 thread handle.
6330 (get_private_info_thread): Initialize `thread_handle' field.
6331 (struct thread_item): Add field, thread_handle.
6332 (clear_threads_listing_context): Deallocate storage associated
6333 with thread handle.
6334 (start_thread): Add support for "handle" attribute.
6335 (thread_attributes): Add "handle".
6336 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6337 field.
6338 (remote_update_thread_list): Update thread_handle.
6339 (remote_thread_handle_to_thread_info): New function.
6340 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6341
6342 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6343
6344 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6345 function.
6346 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6347 * python/python-internal.h (thread_object_type): Declare.
6348
6349 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6350
6351 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6352 (target_thread_handle_to_thread_info): Declare.
6353 * target.c (target_thread_handle_to_thread_info): New function.
6354 * target-delegates.c: Regenerate.
6355 * gdbthread.h (find_thread_by_handle): Declare.
6356 * thread.c (find_thread_by_handle): New function.
6357 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6358 function.
6359 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6360
6361 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6362
6363 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6364
6365 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6366
6367 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6368
6369 2017-09-21 Yao Qi <yao.qi@linaro.org>
6370
6371 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6372 to gdb_target_obs.
6373
6374 2017-09-20 Tom Tromey <tom@tromey.com>
6375
6376 * breakpoint.c (struct counted_command_line): Remove.
6377 (breakpoint_commands): Update.
6378 (alloc_counted_command_line, incref_counted_command_line)
6379 (decref_counted_command_line, do_cleanup_counted_command_line)
6380 (make_cleanup_decref_counted_command_line): Remove.
6381 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6382 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6383 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6384 (save_breakpoints): Update.
6385 * breakpoint.h (counted_command_line): Now a typedef to
6386 shared_ptr.
6387 (struct breakpoint) <commands>: Now a counted_command_line.
6388 (struct bpstats) <command>: Likewise.
6389
6390 2017-09-20 Tom Tromey <tom@tromey.com>
6391
6392 * breakpoint.c (struct commands_info, do_map_commands_command):
6393 Remove.
6394 (commands_command_1): Update.
6395 (iterate_over_related_breakpoints): Take a function_view.
6396 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6397 (delete_command): Update.
6398 (map_breakpoint_numbers): Take a function_view.
6399 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6400 (disable_command): Update.
6401 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6402 (enable_command): Update.
6403 (struct disp_data, do_enable_breakpoint_disp)
6404 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6405 (do_map_enable_delete_breakpoint): Remove.
6406 (enable_once_command, enable_count_command, enable_delete_command)
6407 (delete_trace_variable_command): Update.
6408
6409 2017-09-20 Tom Tromey <tom@tromey.com>
6410
6411 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6412 (bpstat_clear): Use delete.
6413 (bpstats): New constructors.
6414 (bpstat_copy, bpstat_stop_status): Use new.
6415 (dprintf_after_condition_true): Update.
6416 * breakpoint.h (bpstats::bpstats): Add constructors.
6417 (bpstats::~bpstats): Add destructor.
6418
6419 2017-09-20 Pedro Alves <palves@redhat.com>
6420
6421 * eval.c (make_params): Delete, refactored as ...
6422 (class fake_method): ... this new type's ctor.
6423 (fake_method::~fake_method): New.
6424 (evaluate_subexp_standard): Use 'fake_method'.
6425
6426 2017-09-20 Tom Tromey <tom@tromey.com>
6427
6428 * windows-nat.c (get_windows_debug_event, windows_wait)
6429 (do_initial_windows_stuff, windows_attach): Update.
6430 * utils.c (vwarning, internal_vproblem): Update.
6431 (ui_unregister_input_event_handler_cleanup)
6432 (prepare_to_handle_input): Remove.
6433 (class scoped_input_handler): New.
6434 (defaulted_query, prompt_for_continue): Update.
6435 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6436 Update.
6437 * top.c (undo_terminal_modifications_before_exit): Update.
6438 * target/target.h (target_terminal_init, target_terminal_inferior)
6439 (target_terminal_ours): Don't declare.
6440 (class target_terminal): New.
6441 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
6442 (target_terminal_ours_for_output)
6443 (make_cleanup_restore_target_terminal): Don't declare.
6444 (target_terminal_info): Remove.
6445 * target.c (enum terminal_state, terminal_state): Remove.
6446 (target_terminal::terminal_state): Define.
6447 (target_terminal::init): Rename from target_terminal_init.
6448 (target_terminal::inferior): Rename from
6449 target_terminal_inferior.
6450 (target_terminal::ours): Rename from target_terminal_ours.
6451 (target_terminal::ours_for_output): Rename from
6452 target_terminal_ours_for_output.
6453 (target_terminal::info): New method.
6454 (cleanup_restore_target_terminal)
6455 (make_cleanup_restore_target_terminal): Remove.
6456 * solib.c (handle_solib_event): Update.
6457 * remote.c (remote_serial_quit_handler): Update.
6458 (remote_terminal_inferior, remote_wait_as): Update.
6459 * record-full.c (record_full_wait_1): Update.
6460 * nto-procfs.c (procfs_create_inferior): Update.
6461 * nat/fork-inferior.c (startup_inferior): Update.
6462 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6463 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6464 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6465 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6466 (mi_breakpoint_created, mi_breakpoint_deleted)
6467 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
6468 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6469 (mi_user_selected_context_changed, report_initial_inferior):
6470 Update.
6471 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
6472 (linux_nat_terminal_inferior): Update.
6473 * infrun.c (follow_fork_inferior)
6474 (handle_vfork_child_exec_or_exit, do_target_resume)
6475 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
6476 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
6477 Update.
6478 * inflow.c (child_terminal_init, info_terminal_command): Update.
6479 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
6480 (attach_command): Update.
6481 * infcall.c (call_thread_fsm_should_stop): Update.
6482 * gnu-nat.c (gnu_attach): Update.
6483 * extension.c (struct active_ext_lang_state)
6484 (restore_active_ext_lang): Update.
6485 * exceptions.c (print_flush): Update.
6486 * event-top.c (async_enable_stdin, default_quit_handler): Update.
6487 (struct quit_handler_cleanup_data, restore_quit_handler)
6488 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
6489 Remove.
6490 * cp-support.c (gdb_demangle): Update.
6491 * breakpoint.c (update_inserted_breakpoint_locations)
6492 (insert_breakpoint_locations, handle_jit_event)
6493 (disable_breakpoints_in_unloaded_shlib): Update.
6494 * annotate.c (annotate_breakpoints_invalid)
6495 (annotate_frames_invalid): Update.
6496
6497 2017-09-20 Tom Tromey <tom@tromey.com>
6498
6499 * main.c (catch_command_errors): Rename from
6500 catch_command_errors_const.
6501 (captured_main_1): Update.
6502
6503 2017-09-20 Pedro Alves <palves@redhat.com>
6504
6505 * cli/cli-cmds.c (list_command): Use print_sal_location.
6506 (print_sal_location): New function.
6507 (ambiguous_line_spec): Use print_sal_location.
6508 * linespec.c (symbol_to_sal): Record the symbol in the sal.
6509 * symtab.c (find_function_start_sal): Likewise.
6510 * symtab.h (symtab_and_line::symbol): New field.
6511
6512 2017-09-20 Pedro Alves <palves@redhat.com>
6513
6514 * linespec.c (minsym_found): Handle non-text minsyms.
6515 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
6516
6517 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6518
6519 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
6520 backslash.
6521
6522 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6523
6524 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
6525 vmovups instead vmovaps.
6526 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
6527
6528 2017-09-19 John Baldwin <jhb@FreeBSD.org>
6529
6530 * NEWS (Changes since GDB 8.0): Add starti.
6531 * infcmd.c (enum run_break): New.
6532 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
6533 case.
6534 (run_command): Use enum run_how.
6535 (start_command): Likewise.
6536 (starti_command): New function.
6537 (RUN_ARGS_HELP): New macro.
6538 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
6539 commands. Add starti command.
6540
6541 2017-09-19 Yao Qi <yao.qi@linaro.org>
6542
6543 * Makefile.in (monitor.o): Remove the rule.
6544
6545 2017-09-19 Yao Qi <yao.qi@linaro.org>
6546
6547 * annotate.h (struct annotate_arg_emitter): Use
6548 DISABLE_COPY_AND_ASSIGN.
6549 * common/refcounted-object.h (refcounted_object): Likewise.
6550 * completer.h (struct completion_result): Likewise.
6551 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
6552 * filename-seen-cache.h (filename_seen_cache): Likewise.
6553 * gdbcore.h (thread_section_name): Likewise.
6554 * gdb_regex.h (compiled_regex): Likewise.
6555 * gdbthread.h (scoped_restore_current_thread): Likewise.
6556 * inferior.h (scoped_restore_current_inferior): Likewise.
6557 * jit.c (jit_reader): Likewise.
6558 * linespec.h (struct linespec_result): Likewise.
6559 * mi/mi-parse.h (struct mi_parse): Likewise.
6560 * nat/fork-inferior.c (execv_argv): Likewise.
6561 * progspace.h (scoped_restore_current_program_space): Likewise.
6562 * python/python-internal.h (class gdbpy_enter): Likewise.
6563 * regcache.h (regcache): Likewise.
6564 * target-descriptions.c (struct tdesc_reg): Likewise.
6565 (struct tdesc_type): Likewise.
6566 (struct tdesc_feature): Likewise.
6567 * ui-out.h (ui_out_emit_type): Likewise.
6568
6569 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6570
6571 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6572 label abort_expression.
6573
6574 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6575
6576 * common/buffer.c (buffer_xml_printf): Adjust.
6577 * common/xml-utils.c (xml_escape_text): Change return type to
6578 std::string, update code accordingly.
6579 * common/xml-utils.h (xml_escape_text): Change return type to
6580 std::string.
6581 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6582 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6583 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6584 Adjust.
6585
6586 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6587
6588 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6589 (SUBDIR_UNITTESTS_OBS): Add new object file.
6590 * unittests/xml-utils-selftests.c: New file.
6591
6592 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6593
6594 * common/selftest.h (selftest): New struct/interface.
6595 (register_test): Add name parameter, add new overload.
6596 (run_tests): Add filter parameter.
6597 (for_each_selftest_ftype): New typedef.
6598 (for_each_selftest): New declaration.
6599 * common/selftest.c (tests): Change type to
6600 map<string, unique_ptr<selftest>>.
6601 (simple_selftest): New struct.
6602 (register_test): New function.
6603 (register_test): Add name parameter and use it.
6604 (run_tests): Add filter parameter and use it. Add prints.
6605 Adjust to vector -> map change.
6606 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
6607 registering selftests.
6608 * arm-tdep.c (_initialize_arm_tdep): Likewise.
6609 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
6610 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
6611 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
6612 * findvar.c (_initialize_findvar): Likewise.
6613 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
6614 * maint.c (maintenance_selftest): Update call to run_tests.
6615 (maintenance_info_selftests): New function.
6616 (_initialize_maint_cmds): Register "maintenance info selftests"
6617 command. Update "maintenance selftest" doc.
6618 * regcache.c (_initialize_regcache): Add names when registering
6619 selftests.
6620 * rust-exp.y (_initialize_rust_exp): Likewise.
6621 * selftest-arch.c (gdbarch_selftest): New struct.
6622 (gdbarch_tests): Remove.
6623 (register_test_foreach_arch): Add name parameter. Call
6624 register_test.
6625 (tests_with_arch): Remove, move most content to
6626 gdbarch_selftest::operator().
6627 (_initialize_selftests_foreach_arch): Remove.
6628 * selftest-arch.h (register_test_foreach_arch): Add name
6629 parameter.
6630 (run_tests_with_arch): New declaration.
6631 * utils-selftests.c (_initialize_utils_selftests): Add names
6632 when registering selftests.
6633 * utils.c (_initialize_utils): Likewise.
6634 * unittests/array-view-selftests.c
6635 (_initialize_array_view_selftests): Likewise.
6636 * unittests/environ-selftests.c (_initialize_environ_selftests):
6637 Likewise.
6638 * unittests/function-view-selftests.c
6639 (_initialize_function_view_selftests): Likewise.
6640 * unittests/offset-type-selftests.c
6641 (_initialize_offset_type_selftests): Likewise.
6642 * unittests/optional-selftests.c
6643 (_initialize_optional_selftests): Likewise.
6644 * unittests/scoped_restore-selftests.c
6645 (_initialize_scoped_restore_selftests): Likewise.
6646 * NEWS: Document "maintenance selftest" and "maint info
6647 selftests".
6648
6649 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6650
6651 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
6652 scoped_restore.
6653
6654 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6655
6656 * mi/mi-main.c (mi_load_progress): Make uiout variable
6657 a unique_ptr.
6658
6659 2017-09-15 Pedro Alves <palves@redhat.com>
6660
6661 * compile/compile-c-types.c (convert_enum, convert_int)
6662 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
6663
6664 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6665
6666 * dwarf2read.c (copy_string): Remove.
6667 (parse_macro_definition): Replace copy_string with savestring.
6668
6669 2017-09-15 Yao Qi <yao.qi@linaro.org>
6670
6671 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
6672 gdb_target_obs.
6673 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6674 Likewise.
6675 (i[34567]86-*-linux*): Likewise.
6676
6677 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6678
6679 * dwarf2expr.h (dwarf_stack_value): Add constructor.
6680 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
6681 <stack>: Change type to std::vector.
6682 <stack_len, stack_allocated>: Remove.
6683 <grow_stack>: Remove.
6684 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6685 (dwarf_expr_context::~dwarf_expr_context): Remove.
6686 (dwarf_expr_context::grow_stack): Remove.
6687 (dwarf_expr_context::push): Adjust.
6688 (dwarf_expr_context::pop): Adjust.
6689 (dwarf_expr_context::fetch): Adjust.
6690 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
6691 (dwarf_expr_context::stack_empty_p): Adjust.
6692 (dwarf_expr_context::execute_stack_op): Adjust.
6693
6694 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6695
6696 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
6697 return type to bool.
6698 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
6699
6700 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6701
6702 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
6703 Change type to bool.
6704 (dwarf_stack_value) <in_stack_memory>: Likewise.
6705 (dwarf_expr_context) <push_address>: Change parameter type to
6706 bool.
6707 <fetch_in_stack_memory>: Change return type to bool.
6708 <push>: Change parameter type to bool.
6709 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
6710 to bool.
6711 (dwarf_expr_context::push_address): Likewise.
6712 (dwarf_expr_context::fetch_in_stack_memory): Change return type
6713 to bool.
6714 (dwarf_expr_context::execute_stack_op): Adjust.
6715 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
6716
6717 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6718
6719 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
6720 (struct dwarf_expr_context) <n_pieces>: Remove.
6721 <pieces>: Change type to std::vector.
6722 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6723 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
6724 pieces.
6725 (dwarf_expr_context::add_piece): Adjust.
6726 * dwarf2loc.c (struct piece_closure): Initialize fields.
6727 <n_pieces>: Remove.
6728 <pieces>: Change type to std::vector.
6729 (allocate_piece_closure): Adjust, change parameter to
6730 std::vector rvalue and std::move it to piece_closure.
6731 (rw_pieced_value): Adjust.
6732 (check_pieced_synthetic_pointer): Adjust.
6733 (indirect_synthetic_pointer): Adjust.
6734 (coerce_pieced_ref): Adjust.
6735 (free_pieced_value_closure): Adjust. Use delete to free
6736 piece_closure.
6737 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
6738 to allocate_piece_closure.
6739 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
6740
6741 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6742
6743 * probe.h (probe_ops_cp): Remove typedef.
6744 (DEF_VEC_P (probe_ops_cp)): Remove.
6745 (all_probe_ops): Change type to std::vector.
6746 * probe.c (info_probes_for_ops): Adjust to vector change.
6747 (probe_linespec_to_ops): Likewise.
6748 (all_probe_ops): Change type to std::vector.
6749 (_initialize_probe): Adjust to vector change.
6750 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
6751 * elfread.c (elf_get_probes): Likewise.
6752 * stap-probe.c (_initialize_stap_probe): Likewise.
6753
6754 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6755
6756 * probe.h (struct bound_probe): Define constructors.
6757 * probe.c (bound_probe_s): Remove typedef.
6758 (DEF_VEC_O (bound_probe_s)): Remove VEC.
6759 (collect_probes): Change return type to std::vector, remove
6760 cleanup.
6761 (compare_probes): Return bool, change parameter type. Change
6762 semantic to "less than".
6763 (gen_ui_out_table_header_info): Change parameter to std::vector
6764 and update.
6765 (exists_probe_with_pops): Likewise.
6766 (info_probes_for_ops): Update to std::vector change.
6767 (enable_probes_command): Likewise.
6768 (disable_probes_command): Likewise.
6769
6770 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6771
6772 * probe.h (struct probe_ops) <get_probes>: Change parameter from
6773 vec to std::vector.
6774 * probe.c (parse_probes_in_pspace): Update.
6775 (find_probes_in_objfile): Update.
6776 (find_probe_by_pc): Update.
6777 (collect_probes): Update.
6778 (probe_any_get_probes): Update.
6779 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
6780 return type to reference to std::vector.
6781 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
6782 std::vector and update.
6783 (dtrace_process_dof): Likewise.
6784 (dtrace_get_probes): Likewise.
6785 * elfread.c (elf_get_probes): Change return type to std::vector,
6786 store an std::vector in bfd_data.
6787 (probe_key_free): Update to std::vector.
6788 * stap-probe.c (handle_stap_probe): Change parameter to
6789 std::vector and update.
6790 (stap_get_probes): Likewise.
6791 * symfile-debug.c (debug_sym_get_probes): Change return type to
6792 std::vector and update.
6793
6794 2017-09-11 Tom Tromey <tom@tromey.com>
6795
6796 * breakpoint.c (program_breakpoint_here_p): Update.
6797 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
6798 from make_show_memory_breakpoints_cleanup. Return a
6799 scoped_restore_tmpl<int>.
6800 (restore_show_memory_breakpoints): Remove.
6801 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
6802 * mem-break.c (memory_validate_breakpoint): Update.
6803 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
6804 (ia64_memory_remove_breakpoint): Update.
6805 (ia64_breakpoint_from_pc): Update.
6806 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
6807 from make_show_memory_breakpoints_cleanup.
6808
6809 2017-09-11 Tom Tromey <tom@tromey.com>
6810
6811 * d-namespace.c (d_lookup_symbol): Use std::string.
6812 (find_symbol_in_baseclass): Likewise.
6813
6814 2017-09-11 Tom Tromey <tom@tromey.com>
6815
6816 * ctf.c (ctf_start): Use std::string.
6817
6818 2017-09-11 Tom Tromey <tom@tromey.com>
6819
6820 * ada-lang.c (is_known_support_routine): Update.
6821 (ada_unhandled_exception_name_addr_from_raise): Update.
6822 * guile/scm-frame.c (gdbscm_frame_name): Update.
6823 * python/py-frame.c (frapy_name): Update.
6824 (frapy_function): Update.
6825 * stack.h (find_frame_funname): Update.
6826 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
6827 (print_frame): Update.
6828
6829 2017-09-11 Tom Tromey <tom@tromey.com>
6830
6831 * findcmd.c (put_bits): Take a gdb::byte_vector.
6832 (parse_find_args): Return gdb::byte_vector. "args" now const.
6833 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
6834 cleanups.
6835 (find_command): Update.
6836
6837 2017-09-11 Tom Tromey <tom@tromey.com>
6838
6839 * cli/cli-script.c (class scoped_restore_hook_in): New.
6840 (clear_hook_in_cleanup): Remove.
6841 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
6842 scoped_restore_hook_in.
6843
6844 2017-09-11 Tom Tromey <tom@tromey.com>
6845
6846 * cli/cli-script.c (restore_interp): Remove.
6847 (read_command_lines): Use scoped_restore_interp.
6848 * interps.c (scoped_restore_interp::set_temp): Rename from
6849 interp_set_temp.
6850 * interps.h (class scoped_restore_interp): New.
6851 (interp_set_temp): Remove.
6852
6853 2017-09-11 Tom Tromey <tom@tromey.com>
6854
6855 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6856 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
6857 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
6858 scoped_restore.
6859 (mi_cmd_break_insert_1): Update.
6860 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
6861 scoped_restore.
6862
6863 2017-09-11 Tom Tromey <tom@tromey.com>
6864
6865 * demangle.c (demangle_command): Update.
6866 * breakpoint.c (disable_command): Update.
6867 (enable_command): Update.
6868 (find_location_by_number): Make "number" const. Use
6869 get_number_trailer.
6870 * cli/cli-utils.c (extract_arg): Return std::string.
6871 * probe.c (parse_probe_linespec): Update. Change types.
6872 (collect_probes): Take string arguments.
6873 (parse_probe_linespec): Likewise.
6874 (info_probes_for_ops): Update.
6875 (enable_probes_command): Update.
6876 (disable_probes_command): Update.
6877 * break-catch-sig.c (catch_signal_split_args): Update.
6878 * mi/mi-parse.c (mi_parse): Update.
6879
6880 2017-09-11 Tom Tromey <tom@tromey.com>
6881
6882 * language.h (language_enum): Make argument const.
6883 * language.c (language_enum): Make argument const.
6884
6885 2017-09-11 Tom Tromey <tom@tromey.com>
6886
6887 * common/common-utils.h (skip_to_space): Remove macro, redeclare
6888 as function.
6889 (skip_to_space): Rename from skip_to_space_const.
6890 * common/common-utils.c (skip_to_space): New function.
6891 (skip_to_space): Rename from skip_to_space_const.
6892 * cli/cli-utils.h (get_number): Rename from get_number_const.
6893 (extract_arg): Rename from extract_arg_const.
6894 * cli/cli-utils.c (get_number): Rename from get_number_const.
6895 (extract_arg): Rename from extract_arg_const.
6896 (number_or_range_parser::get_number): Use ::get_number.
6897 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
6898 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
6899 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
6900 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
6901 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
6902 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
6903 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
6904 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
6905
6906 2017-09-11 Tom Tromey <tom@tromey.com>
6907
6908 * python/python.c (do_start_initialization): Use
6909 py-event-types.def to initialize types.
6910 Define all object type structures.
6911 * python/python-internal.h: Don't declare event initialization
6912 functions.
6913 * python/py-threadevent.c (thread_event_object_type): Don't
6914 define.
6915 * python/py-stopevent.c (stop_event_object_type): Don't define.
6916 * python/py-signalevent.c (signal_event_object_type): Don't
6917 declare or define.
6918 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6919 (clear_objfiles_event_object_type): Don't declare or define.
6920 * python/py-infevents.c (inferior_call_pre_event_object_type)
6921 (inferior_call_post_event_object_type)
6922 (register_changed_event_object_type)
6923 (memory_changed_event_object_type): Don't declare or define.
6924 * python/py-inferior.c (new_thread_event_object_type)
6925 (new_inferior_event_object_type)
6926 (inferior_deleted_event_object_type): Don't declare or define.
6927 * python/py-exitedevent.c (exited_event_object_type): Don't
6928 declare or define.
6929 * python/py-evts.c (gdbpy_initialize_py_events): Use
6930 py-all-events.def.
6931 * python/py-events.h (thread_event_object_type): Don't declare.
6932 (events_object): Use py-all-events.def.
6933 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
6934 py-event-types.def.
6935 * python/py-event-types.def: New file.
6936 * python/py-continueevent.c (create_continue_event_object): Don't
6937 declare or define.
6938 * python/py-bpevent.c (breakpoint_event_object_type): Don't
6939 declare or define.
6940 * python/py-all-events.def: New file.
6941
6942 2017-09-11 Tom Tromey <tom@tromey.com>
6943
6944 * python/py-threadevent.c (create_thread_event_object): Return
6945 gdbpy_ref.
6946 * python/py-stopevent.h (create_stop_event_object)
6947 (create_breakpoint_event_object, create_signal_event_object):
6948 Update.
6949 * python/py-stopevent.c (create_stop_event_object): Return
6950 gdbpy_ref.
6951 (emit_stop_event): Update.
6952 * python/py-signalevent.c (create_signal_event_object): Return
6953 gdbpy_ref.
6954 * python/py-infevents.c (create_inferior_call_event_object):
6955 Update.
6956 * python/py-event.h (create_event_object)
6957 (create_thread_event_object): Update.
6958 * python/py-event.c (create_event_object): Return gdbpy_ref.
6959 * python/py-continueevent.c: Return gdbpy_ref.
6960 * python/py-bpevent.c (create_breakpoint_event_object): Return
6961 gdbpy_ref.
6962
6963 2017-09-11 Tom Tromey <tom@tromey.com>
6964
6965 PR python/15622:
6966 * NEWS: Add entry.
6967 * python/python.c (do_start_initialization): Initialize new event
6968 types.
6969 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
6970 (gdbpy_initialize_inferior_deleted_event)
6971 (gdbpy_initialize_new_thread_event): Declare.
6972 * python/py-threadevent.c (create_thread_event_object): Add option
6973 "thread" parameter.
6974 * python/py-inferior.c (new_thread_event_object_type)
6975 (new_inferior_event_object_type)
6976 (inferior_deleted_event_object_type): Declare.
6977 (python_new_inferior, python_inferior_deleted): New functions.
6978 (add_thread_object): Emit new_thread event.
6979 (gdbpy_initialize_inferior): Attach new functions to corresponding
6980 observers.
6981 (new_thread, new_inferior, inferior_deleted): Define new event
6982 types.
6983 * python/py-evts.c (gdbpy_initialize_py_events): Add new
6984 registries.
6985 * python/py-events.h (events_object) <new_inferior,
6986 inferior_deleted, new_thread>: New fields.
6987 * python/py-event.h (create_thread_event_breakpoint): Add optional
6988 "thread" parameter.
6989
6990 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
6991
6992 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
6993 check current_ui instead.
6994 (internal_vproblem): Likewise.
6995
6996 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
6997
6998 * thread.c (print_thread_info_1): Remove unnecessary calls to
6999 uiout->is_mi_like_p.
7000
7001 2017-09-09 Tom Tromey <tom@tromey.com>
7002
7003 * namespace.h (add_using_directive): Update.
7004 * namespace.c (add_using_directive): Change type of excludes to
7005 std::vector.
7006 * dwarf2read.c (read_import_statement): Use std::vector.
7007 (read_namespace): Update.
7008 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7009
7010 2017-09-09 Tom Tromey <tom@tromey.com>
7011
7012 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7013
7014 2017-09-09 Tom Tromey <tom@tromey.com>
7015
7016 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7017
7018 2017-09-09 Tom Tromey <tom@tromey.com>
7019
7020 * stack.c (func_command): Use gdb::def_vector.
7021
7022 2017-09-09 Tom Tromey <tom@tromey.com>
7023
7024 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7025 ui_out_emit_list, ui_out_emit_tuple.
7026 (mi_cmd_var_update): Likewise.
7027
7028 2017-09-09 Tom Tromey <tom@tromey.com>
7029
7030 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7031 ui_out_redirect_pop.
7032 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7033 ui_out_redirect_pop.
7034 * utils.c (do_ui_out_redirect_pop)
7035 (make_cleanup_ui_out_redirect_pop): Remove.
7036 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7037 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7038 * ui-out.h (ui_out_redirect_pop): New class.
7039
7040 2017-09-09 Tom Tromey <tom@tromey.com>
7041
7042 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7043 (list_available_thread_groups, mi_cmd_list_thread_groups)
7044 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7045 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7046 Likewise.
7047
7048 2017-09-09 Tom Tromey <tom@tromey.com>
7049
7050 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7051 ui_out_emit_tuple.
7052
7053 2017-09-09 Tom Tromey <tom@tromey.com>
7054
7055 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7056 * stack.c (print_frame): Use ui_out_emit_tuple.
7057 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7058 (info_spu_mailbox_command, info_spu_dma_command)
7059 (info_spu_proxydma_command): Likewise.
7060 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7061 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7062 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7063 ui_out_emit_tuple.
7064 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7065
7066 2017-09-09 Tom Tromey <tom@tromey.com>
7067
7068 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7069 (class ui_out_emit_table): Update comment.
7070 * ui-out.c (do_cleanup_table_end)
7071 (make_cleanup_ui_out_table_begin_end): Remove.
7072 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7073 (info_spu_dma_cmdlist): Likewise.
7074 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7075 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7076 ui_out_emit_table.
7077
7078 2017-09-09 Tom Tromey <tom@tromey.com>
7079
7080 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7081 ui_out_emit_list, gdb::optional.
7082
7083 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7084
7085 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7086 prototype.
7087 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7088 prototype.
7089 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7090 prototype.
7091 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7092 * ada-exp.y: Remove _initialize_ada_exp prototype.
7093 * ada-lang.c: Remove _initialize_ada_language prototype.
7094 * ada-tasks.c: Remove _initialize_tasks prototype.
7095 * addrmap.c: Remove _initialize_addrmap prototype.
7096 * agent.c: Remove _initialize_agent prototype.
7097 * aix-thread.c: Remove _initialize_aix_thread prototype.
7098 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7099 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7100 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7101 prototype.
7102 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7103 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7104 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7105 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7106 prototype.
7107 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7108 prototype.
7109 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7110 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7111 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7112 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7113 prototype.
7114 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7115 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7116 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7117 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7118 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7119 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7120 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7121 prototype.
7122 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7123 prototype.
7124 * annotate.c: Remove _initialize_annotate prototype.
7125 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7126 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7127 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7128 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7129 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7130 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7131 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7132 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7133 prototype.
7134 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7135 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7136 * auto-load.c: Remove _initialize_auto_load prototype.
7137 * auxv.c: Remove _initialize_auxv prototype.
7138 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7139 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7140 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7141 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7142 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7143 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7144 prototype.
7145 * break-catch-throw.c: Remove _initialize_break_catch_throw
7146 prototype.
7147 * breakpoint.c: Remove _initialize_breakpoint prototype.
7148 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7149 * btrace.c: Remove _initialize_btrace prototype.
7150 * charset.c: Remove _initialize_charset prototype.
7151 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7152 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7153 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7154 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7155 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7156 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7157 * coffread.c: Remove _initialize_coffread prototype.
7158 * compile/compile.c: Remove _initialize_compile prototype.
7159 * complaints.c: Remove _initialize_complaints prototype.
7160 * completer.c: Remove _initialize_completer prototype.
7161 * copying.awk: Remove _initialize_copying prototype.
7162 * copying.c: Regenerate.
7163 * core-regset.c: Remove _initialize_core_regset prototype.
7164 * corefile.c: Remove _initialize_core prototype.
7165 * corelow.c: Remove _initialize_corelow prototype.
7166 * cp-abi.c: Remove _initialize_cp_abi prototype.
7167 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7168 * cp-support.c: Remove _initialize_cp_support prototype.
7169 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7170 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7171 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7172 * ctf.c: Remove _initialize_ctf prototype.
7173 * d-lang.c: Remove _initialize_d_language prototype.
7174 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7175 prototype.
7176 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7177 * dbxread.c: Remove _initialize_dbxread prototype.
7178 * dcache.c: Remove _initialize_dcache prototype.
7179 * demangle.c: Remove _initialize_demangler prototype.
7180 * disasm-selftests.c: Remove _initialize_disasm_selftests
7181 prototype.
7182 * disasm.c: Remove _initialize_disasm prototype.
7183 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7184 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7185 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7186 prototype.
7187 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7188 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7189 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7190 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7191 * elfread.c: Remove _initialize_elfread prototype.
7192 * exec.c: Remove _initialize_exec prototype.
7193 * extension.c: Remove _initialize_extension prototype.
7194 * f-lang.c: Remove _initialize_f_language prototype.
7195 * f-valprint.c: Remove _initialize_f_valprint prototype.
7196 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7197 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7198 * filesystem.c: Remove _initialize_filesystem prototype.
7199 * findcmd.c: Remove _initialize_mem_search prototype.
7200 * fork-child.c: Remove _initialize_fork_child prototype.
7201 * frame-base.c: Remove _initialize_frame_base prototype.
7202 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7203 * frame.c: Remove _initialize_frame prototype.
7204 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7205 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7206 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7207 * gcore.c: Remove _initialize_gcore prototype.
7208 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7209 * gdbarch.c: Regenerate.
7210 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7211 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7212 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7213 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7214 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7215 * go-lang.c: Remove _initialize_go_language prototype.
7216 * go32-nat.c: Remove _initialize_go32_nat prototype.
7217 * guile/guile.c: Remove _initialize_guile prototype.
7218 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7219 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7220 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7221 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7222 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7223 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7224 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7225 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7226 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7227 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7228 prototype.
7229 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7230 prototype.
7231 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7232 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7233 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7234 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7235 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7236 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7237 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7238 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7239 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7240 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7241 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7242 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7243 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7244 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7245 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7246 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7247 prototype.
7248 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7249 prototype.
7250 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7251 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7252 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7253 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7254 * infcall.c: Remove _initialize_infcall prototype.
7255 * infcmd.c: Remove _initialize_infcmd prototype.
7256 * inferior.c: Remove _initialize_inferiors prototype.
7257 * inflow.c: Remove _initialize_inflow prototype.
7258 * infrun.c: Remove _initialize_infrun prototype.
7259 * interps.c: Remove _initialize_interpreter prototype.
7260 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7261 * jit.c: Remove _initialize_jit prototype.
7262 * language.c: Remove _initialize_language prototype.
7263 * linux-fork.c: Remove _initialize_linux_fork prototype.
7264 * linux-nat.c: Remove _initialize_linux_nat prototype.
7265 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7266 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7267 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7268 * m2-lang.c: Remove _initialize_m2_language prototype.
7269 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7270 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7271 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7272 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7273 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7274 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7275 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7276 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7277 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7278 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7279 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7280 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7281 * machoread.c: Remove _initialize_machoread prototype.
7282 * macrocmd.c: Remove _initialize_macrocmd prototype.
7283 * macroscope.c: Remove _initialize_macroscope prototype.
7284 * maint.c: Remove _initialize_maint_cmds prototype.
7285 * mdebugread.c: Remove _initialize_mdebugread prototype.
7286 * memattr.c: Remove _initialize_mem prototype.
7287 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7288 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7289 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7290 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7291 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7292 * microblaze-linux-tdep.c: Remove
7293 _initialize_microblaze_linux_tdep prototype.
7294 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7295 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7296 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7297 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7298 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7299 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7300 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7301 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7302 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7303 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7304 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7305 prototype.
7306 * mipsread.c: Remove _initialize_mipsread prototype.
7307 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7308 prototype.
7309 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7310 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7311 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7312 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7313 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7314 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7315 prototype.
7316 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7317 * nto-procfs.c: Remove _initialize_procfs prototype.
7318 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7319 * objc-lang.c: Remove _initialize_objc_language prototype.
7320 * objfiles.c: Remove _initialize_objfiles prototype.
7321 * observer.c: Remove observer_test_first_notification_function,
7322 observer_test_second_notification_function,
7323 observer_test_third_notification_function, and
7324 _initialize_observer prototypes.
7325 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7326 * osabi.c: Remove _initialize_gdb_osabi prototype.
7327 * osdata.c: Remove _initialize_osdata prototype.
7328 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7329 * parse.c: Remove _initialize_parse prototype.
7330 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7331 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7332 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7333 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7334 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7335 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7336 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7337 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7338 * printcmd.c: Remove _initialize_printcmd prototype.
7339 * probe.c: Remove _initialize_probe prototype.
7340 * proc-api.c: Remove _initialize_proc_api prototype.
7341 * proc-events.c: Remove _initialize_proc_events prototype.
7342 * proc-service.c: Remove _initialize_proc_service prototype.
7343 * procfs.c: Remove _initialize_procfs prototype.
7344 * psymtab.c: Remove _initialize_psymtab prototype.
7345 * python/python.c: Remove _initialize_python prototype.
7346 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7347 * record-btrace.c: Remove _initialize_record_btrace prototype.
7348 * record-full.c: Remove _initialize_record_full prototype.
7349 * record.c: Remove _initialize_record prototype.
7350 * regcache.c: Remove _initialize_regcache prototype.
7351 * reggroups.c: Remove _initialize_reggroup prototype.
7352 * remote-notif.c: Remove _initialize_notif prototype.
7353 * remote-sim.c: Remove _initialize_remote_sim prototype.
7354 * remote.c: Remove _initialize_remote prototype.
7355 * reverse.c: Remove _initialize_reverse prototype.
7356 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7357 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7358 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7359 prototype.
7360 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7361 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7362 * rust-exp.y: Remove _initialize_rust_exp prototype.
7363 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7364 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7365 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7366 * score-tdep.c: Remove _initialize_score_tdep prototype.
7367 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7368 prototype.
7369 * ser-go32.c: Remove _initialize_ser_dos prototype.
7370 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7371 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7372 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7373 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7374 * serial.c: Remove _initialize_serial prototype.
7375 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7376 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7377 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7378 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7379 * skip.c: Remove _initialize_step_skip prototype.
7380 * sol-thread.c: Remove _initialize_sol_thread prototype.
7381 * solib-aix.c: Remove _initialize_solib_aix prototype.
7382 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7383 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7384 * solib-frv.c: Remove _initialize_frv_solib prototype.
7385 * solib-spu.c: Remove _initialize_spu_solib prototype.
7386 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7387 * solib-target.c: Remove _initialize_solib_target prototype.
7388 * solib.c: Remove _initialize_solib prototype.
7389 * source.c: Remove _initialize_source prototype.
7390 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7391 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7392 prototype.
7393 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7394 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7395 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7396 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7397 prototype.
7398 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7399 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7400 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7401 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7402 prototype.
7403 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7404 prototype.
7405 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7406 prototype.
7407 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7408 prototype.
7409 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7410 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7411 prototype.
7412 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7413 prototype.
7414 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7415 prototype.
7416 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7417 prototype.
7418 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7419 prototype.
7420 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7421 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7422 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7423 * stabsread.c: Remove _initialize_stabsread prototype.
7424 * stack.c: Remove _initialize_stack prototype.
7425 * stap-probe.c: Remove _initialize_stap_probe prototype.
7426 * std-regs.c: Remove _initialize_frame_reg prototype.
7427 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7428 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7429 * symfile.c: Remove _initialize_symfile prototype.
7430 * symmisc.c: Remove _initialize_symmisc prototype.
7431 * symtab.c: Remove _initialize_symtab prototype.
7432 * target-dcache.c: Remove _initialize_target_dcache prototype.
7433 * target-descriptions.c: Remove _initialize_target_descriptions
7434 prototype.
7435 * thread.c: Remove _initialize_thread prototype.
7436 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7437 prototype.
7438 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7439 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7440 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7441 prototype.
7442 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
7443 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
7444 * tracefile.c: Remove _initialize_tracefile prototype.
7445 * tracepoint.c: Remove _initialize_tracepoint prototype.
7446 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
7447 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
7448 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
7449 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
7450 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
7451 * tui/tui-win.c: Remove _initialize_tui_win prototype.
7452 * tui/tui.c: Remove _initialize_tui prototype.
7453 * typeprint.c: Remove _initialize_typeprint prototype.
7454 * user-regs.c: Remove _initialize_user_regs prototype.
7455 * utils.c: Remove _initialize_utils prototype.
7456 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
7457 * valarith.c: Remove _initialize_valarith prototype.
7458 * valops.c: Remove _initialize_valops prototype.
7459 * valprint.c: Remove _initialize_valprint prototype.
7460 * value.c: Remove _initialize_values prototype.
7461 * varobj.c: Remove _initialize_varobj prototype.
7462 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
7463 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
7464 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
7465 * windows-nat.c: Remove _initialize_windows_nat,
7466 _initialize_check_for_gdb_ini, and _initialize_loadable
7467 prototypes.
7468 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
7469 * xcoffread.c: Remove _initialize_xcoffread prototype.
7470 * xml-support.c: Remove _initialize_xml_support prototype.
7471 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
7472 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
7473 prototype.
7474 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
7475 prototype.
7476 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
7477
7478 2017-09-08 Keith Seitz <keiths@redhat.com>
7479
7480 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
7481 field.
7482
7483 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
7484
7485 * f-valprint.c (f_val_print): Remove check for one byte
7486 sized integers. Remove printing of character type.
7487
7488 2017-09-08 Frank Penczek <frank.penczek@intel.com>
7489 Christoph Weinmann <christoph.t.weinmann@intel.com>
7490 Bernhard Heckel <bernhard.heckel@intel.com>
7491
7492 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
7493 to maintain proper indentation when printing pointers/refs.
7494
7495 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7496
7497 GDB 8.0.1 released.
7498
7499 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7500
7501 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
7502
7503 2017-09-05 Tom Tromey <tom@tromey.com>
7504
7505 * parse.c (funcall_chain): Now a std::vector.
7506 (start_arglist, end_arglist): Simplify.
7507 (free_funcalls): Remove.
7508 (parse_exp_in_context_1): Remove cleanup.
7509
7510 2017-09-05 Tom Tromey <tom@tromey.com>
7511
7512 * go-exp.y (go_parse): Don't create a cleanup.
7513
7514 2017-09-05 Tom Tromey <tom@tromey.com>
7515
7516 * d-exp.y (PrimaryExpression): Use std::string.
7517 (d_parse): Don't create a cleanup.
7518
7519 2017-09-05 Tom Tromey <tom@tromey.com>
7520
7521 * utils.c (do_clear_parser_state): Remove.
7522 (make_cleanup_clear_parser_state): Remove.
7523 * p-exp.y (pascal_parse): Use scoped_restore.
7524 * m2-exp.y (m2_parse): Use scoped_restore.
7525 * f-exp.y (f_parse): Use scoped_restore.
7526 * d-exp.y (d_parse): Use scoped_restore.
7527 * c-exp.y (c_parse): Use scoped_restore.
7528 * ada-exp.y (ada_parse): Use scoped_restore.
7529 * utils.h (make_cleanup_clear_parser_state): Remove.
7530
7531 2017-09-06 Keith Seitz <keiths@redhat.com>
7532
7533 * dwarf2read.c (dw2_linkage_name_attr): New function.
7534 (dw2_linkage_name): New function.
7535 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
7536 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
7537 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
7538
7539 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7540
7541 * config/djgpp/djconfig.sh: Correct shell portability issue.
7542
7543 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7544
7545 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
7546
7547 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7548
7549 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
7550 * NEWS: Mention new FreeBSD/mips native configuration.
7551 * configure.host: Add aarch64*-*-freebsd*.
7552 * configure.nat: Likewise.
7553 * aarch64-fbsd-nat.c: New file.
7554
7555 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7556
7557 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7558 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7559 * NEWS: Mention new FreeBSD/aarch64 target.
7560 * configure.tgt: Add aarch64*-*-freebsd*.
7561 * aarch64-fbsd-tdep.c: New file.
7562 * aarch64-fbsd-tdep.h: New file.
7563
7564 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7565
7566 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7567
7568 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7569
7570 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7571 of TLS symbols.
7572
7573 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7574
7575 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7576 call.
7577
7578 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7579
7580 * infrun.c (follow_exec): Call add_thread after
7581 target_find_description.
7582
7583 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7584
7585 * infrun.c (handle_inferior_event_1): When exec'ing, read
7586 stop_pc after follow_exec.
7587
7588 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7589
7590 * remote.c (process_g_packet): Update error message.
7591
7592 2017-09-05 Yao Qi <yao.qi@linaro.org>
7593
7594 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
7595 targets.
7596
7597 2017-09-05 Pedro Alves <palves@redhat.com>
7598
7599 * eval.c (eval_call, evaluate_funcall): New functions, factored
7600 out from ...
7601 (evaluate_subexp_standard): ... this.
7602
7603 2017-09-05 Yao Qi <yao.qi@linaro.org>
7604
7605 * amd64-tdep.c (amd64_target_description): Create target
7606 descriptions.
7607 (_initialize_amd64_tdep): Don't call functions
7608 initialize_tdesc_amd64_*. Add self tests.
7609 * arch/amd64.c (amd64_create_target_description): Add parameter
7610 is_linux. Call set_tdesc_osabi if is_linux is true.
7611 * arch/amd64.h (amd64_create_target_description): Update the
7612 declaration.
7613 * arch/i386.c (i386_create_target_description): Add parameter
7614 is_linux. Call set_tdesc_osabi if is_linux is true.
7615 * arch/i386.h (i386_create_target_description): Update
7616 declaration.
7617 * configure.tgt: Add i386.o to gdb_target_obs.
7618 * features/Makefile (XMLTOC): Remove i386/*.xml.
7619 * features/i386/amd64-avx-avx512.c: Remove.
7620 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
7621 * features/i386/amd64-avx-mpx.c: Remove.
7622 * features/i386/amd64-avx.c: Remove.
7623 * features/i386/amd64-mpx.c: Remove.
7624 * features/i386/amd64.c: Remove.
7625 * features/i386/i386-avx-avx512.c: Remove.
7626 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
7627 * features/i386/i386-avx-mpx.c: Remove.
7628 * features/i386/i386-avx.c: Remove.
7629 * features/i386/i386-mmx.c: Remove.
7630 * features/i386/i386-mpx.c: Remove.
7631 * features/i386/i386.c: Remove.
7632 * i386-tdep.c: Don't include features/i386/i386*.c., include
7633 target-descriptions.h and arch/i386.h.
7634 (i386_target_description): Create target descriptions.
7635 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7636 functions. Do self tests.
7637
7638 2017-09-05 Yao Qi <yao.qi@linaro.org>
7639
7640 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7641 * features/i386/amd64-avx-avx512-linux.c: Removed.
7642 * features/i386/amd64-avx-linux.c: Removed.
7643 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
7644 * features/i386/amd64-avx-mpx-linux.c: Removed.
7645 * features/i386/amd64-linux.c: Removed.
7646 * features/i386/amd64-mpx-linux.c: Removed.
7647 * features/i386/x32-avx-avx512-linux.c: Removed.
7648 * features/i386/x32-avx-linux.c: Removed.
7649 * features/i386/x32-linux.c: Removed.
7650
7651 2017-09-05 Yao Qi <yao.qi@linaro.org>
7652
7653 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
7654 features/i386/*.c.
7655 (amd64_linux_read_description): Call
7656 amd64_create_target_description.
7657 * arch/amd64.c: New file.
7658 * arch/amd64.h: New file.
7659 * configure.tgt (x86_64-*-linux*): Append amd64.o.
7660 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
7661
7662 2017-09-05 Yao Qi <yao.qi@linaro.org>
7663
7664 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
7665 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
7666 (amd64_linux_read_description): Create target descriptions.
7667 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
7668 functions. Add unit tests.
7669 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
7670 x32-core.xml.
7671 * features/i386/64bit-avx.c: Generated.
7672 * features/i386/64bit-avx512.c: Generated.
7673 * features/i386/64bit-core.c: Generated.
7674 * features/i386/64bit-linux.c: Generated.
7675 * features/i386/64bit-mpx.c: Generated.
7676 * features/i386/64bit-pkeys.c: Generated.
7677 * features/i386/64bit-segments.c: Generated.
7678 * features/i386/64bit-sse.c: Generated.
7679 * features/i386/x32-core.c: Generated.
7680 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
7681 c files for amd64-linux and x32-linux.
7682
7683 2017-09-05 Yao Qi <yao.qi@linaro.org>
7684
7685 * amd64-linux-tdep.c (amd64_linux_read_description): New
7686 function.
7687 (amd64_linux_core_read_description): Call
7688 amd64_linux_read_description.
7689 (amd64_linux_init_abi): Likewise.
7690 (amd64_x32_linux_init_abi): Likewise.
7691 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
7692 * x86-linux-nat.c (x86_linux_read_description): Call
7693 amd64_linux_read_description.
7694
7695 2017-09-05 Yao Qi <yao.qi@linaro.org>
7696
7697 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
7698 comments.
7699
7700 2017-09-05 Yao Qi <yao.qi@linaro.org>
7701
7702 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
7703 * features/i386/i386-avx-avx512-linux.c: Remove.
7704 * features/i386/i386-avx-linux.c: Remove.
7705 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
7706 * features/i386/i386-avx-mpx-linux.c: Remove.
7707 * features/i386/i386-linux.c: Remove.
7708 * features/i386/i386-mmx-linux.c: Remove.
7709 * features/i386/i386-mpx-linux.c: Remove.
7710
7711 2017-09-05 Yao Qi <yao.qi@linaro.org>
7712
7713 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
7714 (SFILES): Add arch/i386.c.
7715 (HFILES_NO_SRCDIR): Add arch/i386.h.
7716 * arch/i386.c: New file.
7717 * arch/i386.h: New file.
7718 * arch/tdesc.h (allocate_target_description): Declare.
7719 (set_tdesc_architecture): Declare.
7720 (set_tdesc_osabi): Declare.
7721 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
7722 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
7723 include arch/i386.h.
7724 (i386_linux_read_description): Remove code and call
7725 i386_create_target_description.
7726 (set_tdesc_architecture): New function.
7727 (set_tdesc_osabi): New function.
7728 * target-descriptions.h (allocate_target_description): Remove.
7729
7730 2017-09-05 Yao Qi <yao.qi@linaro.org>
7731
7732 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
7733 * target-descriptions.c (tdesc_create_feature): Likewise, and
7734 adjust code.
7735 * features/i386/32bit-avx.c: Re-generated.
7736 * features/i386/32bit-avx512.c: Re-generated.
7737 * features/i386/32bit-core.c: Re-generated.
7738 * features/i386/32bit-linux.c: Re-generated.
7739 * features/i386/32bit-mpx.c: Re-generated.
7740 * features/i386/32bit-pkeys.c: Re-generated.
7741 * features/i386/32bit-sse.c: Re-generated.
7742
7743 2017-09-05 Yao Qi <yao.qi@linaro.org>
7744
7745 * regformats/regdef.h (struct reg): Override operator == and !=.
7746
7747 2017-09-05 Yao Qi <yao.qi@linaro.org>
7748
7749 * arch/tdesc.h: New file.
7750 * regformats/regdat.sh: Generate code using tdesc_create_reg.
7751 * target-descriptions.c: Update comments.
7752 * target-descriptions.h: Include "arch/tdesc.h". Remove the
7753 declarations.
7754 * features/i386/32bit-avx.c: Re-generated.
7755 * features/i386/32bit-avx512.c: Re-generated.
7756 * features/i386/32bit-core.c: Re-generated.
7757 * features/i386/32bit-linux.c: Re-generated.
7758 * features/i386/32bit-mpx.c: Re-generated.
7759 * features/i386/32bit-pkeys.c: Re-generated.
7760 * features/i386/32bit-sse.c: Re-generated.
7761
7762 2017-09-05 Yao Qi <yao.qi@linaro.org>
7763
7764 * regformats/regdat.sh: Update generated code.
7765
7766 2017-09-05 Yao Qi <yao.qi@linaro.org>
7767
7768 * regformats/regdat.sh: Adjust code order.
7769
7770 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7771
7772 * expprint.c (dump_subexp_body_standard): Use constant format
7773 string in fprintf_filtered call.
7774
7775 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7776
7777 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
7778 NetBSD/i386.
7779 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
7780
7781 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7782
7783 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
7784
7785 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7786
7787 * bsd-kvm.o: Define _KMEMUSER.
7788 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
7789 * configure: Regenerate.
7790
7791 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7792
7793 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
7794 * i386-fbsd-nat.c: Likewise.
7795
7796 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7797
7798 * unittests/array-view-selftests.c: Add include of <array>.
7799
7800 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7801
7802 * spu-tdep.c (flush_ea_cache): Add missing argument to
7803 call_function_by_hand.
7804
7805 2017-09-04 Pedro Alves <palves@redhat.com>
7806
7807 * NEWS (Safer support for debugging with no debug info): New.
7808
7809 2017-09-04 Pedro Alves <palves@redhat.com>
7810
7811 * c-exp.y (function_method, function_method_void): Add current
7812 instance flags to TYPE_INSTANCE.
7813 * dwarf2read.c (check_modifier): New.
7814 (compute_delayed_physnames): Assert that only C++ adds delayed
7815 physnames. Mark fn_fields as const/volatile depending on
7816 physname.
7817 * eval.c (make_params): New type_instance_flags parameter. Use
7818 it as the new type's instance flags.
7819 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
7820 flags element and pass it to make_params.
7821 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
7822 instance flags element.
7823 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
7824 * gdbtypes.h: Include "enum-flags.h".
7825 (type_instance_flags): New enum-flags type.
7826 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
7827 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
7828 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
7829 (follow_type_instance_flags): New function.
7830 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
7831 * parser-defs.h (follow_type_instance_flags): Declare.
7832 * valops.c (value_struct_elt_for_reference): const/volatile must
7833 match too.
7834
7835 2017-09-04 Pedro Alves <palves@redhat.com>
7836
7837 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
7838 function/method scopes; lookup the nested name as a function local
7839 static variable.
7840
7841 2017-09-04 Pedro Alves <palves@redhat.com>
7842
7843 (%type <voidval>): Add function_method.
7844 * c-exp.y (exp): New production for calls with no arguments.
7845 (function_method, function_method_void_or_typelist): New
7846 productions.
7847 (exp): New production for "method()::static_var".
7848 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
7849 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7850 Handle OP_FUNC_STATIC_VAR.
7851 * parse.c (operator_length_standard):
7852 Handle OP_FUNC_STATIC_VAR.
7853
7854 2017-09-04 Pedro Alves <palves@redhat.com>
7855
7856 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
7857 handling.
7858 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7859 Ditto.
7860 * parse.c (operator_length_standard, operator_check_standard):
7861 Ditto.
7862 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
7863
7864 2017-09-04 Pedro Alves <palves@redhat.com>
7865
7866 * ax-gdb.c: Include "typeprint.h".
7867 (gen_expr_for_cast): New function.
7868 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
7869 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
7870 type is unknown.
7871 * dwarf2read.c (new_symbol_full): Fallback to int instead of
7872 nodebug_data_symbol.
7873 * eval.c: Include "typeprint.h".
7874 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
7875 Error out if symbol has unknown type.
7876 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
7877 evaluate_subexp_for_cast.
7878 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
7879 OP_VAR_MSYM_VALUE.
7880 (evaluate_subexp_for_cast): New function.
7881 * gdbtypes.c (init_nodebug_var_type): New function.
7882 (objfile_type): Use it to initialize types of variables with no
7883 debug info.
7884 * typeprint.c (error_unknown_type): New.
7885 * typeprint.h (error_unknown_type): New declaration.
7886 * compile/compile-c-types.c (convert_type_basic): Handle
7887 TYPE_CODE_ERROR; warn and fallback to int for variables with
7888 unknown type.
7889
7890 2017-09-04 Pedro Alves <palves@redhat.com>
7891
7892 * eval.c (evaluate_var_value): New function, factored out from ...
7893 (evaluate_subexp_standard): ... here.
7894
7895 2017-09-04 Pedro Alves <palves@redhat.com>
7896
7897 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
7898 Remove useless assignments to 'op'.
7899
7900 2017-09-04 Pedro Alves <palves@redhat.com>
7901
7902 * eval.c (eval_skip_value): New function.
7903 (evaluate_subexp_standard): Use it.
7904
7905 2017-09-04 Pedro Alves <palves@redhat.com>
7906
7907 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
7908 function name from symbol/minsym and pass it to
7909 error_call_unknown_return_type.
7910
7911 2017-09-04 Pedro Alves <palves@redhat.com>
7912
7913 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
7914 * ax-gdb.c (gen_msym_var_ref): New function.
7915 (gen_expr): Handle OP_VAR_MSYM_VALUE.
7916 * eval.c (evaluate_var_msym_value): New function.
7917 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
7918 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
7919 to call_function_by_hand.
7920 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7921 Handle OP_VAR_MSYM_VALUE.
7922 (union exp_element) <msymbol>: New field.
7923 * minsyms.h (struct type): Forward declare.
7924 (find_minsym_type_and_address): Declare.
7925 * parse.c (write_exp_elt_msym): New function.
7926 (write_exp_msymbol): Delete, refactored as ...
7927 (find_minsym_type_and_address): ... this new function.
7928 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
7929 (operator_length_standard, operator_check_standard): Handle
7930 OP_VAR_MSYM_VALUE.
7931 * std-operator.def (OP_VAR_MSYM_VALUE): New.
7932
7933 2017-09-04 Pedro Alves <palves@redhat.com>
7934
7935 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
7936 TYPE_GNU_IFUNC specially here. Throw error if return type is
7937 unknown.
7938 * ada-typeprint.c (print_func_type): Handle functions with unknown
7939 return type.
7940 * c-typeprint.c (c_type_print_base): Handle functions and methods
7941 with unknown return type.
7942 * compile/compile-c-symbols.c (convert_symbol_bmsym)
7943 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
7944 * compile/compile-c-types.c: Include "objfiles.h".
7945 (convert_func): For functions with unknown return type, warn and
7946 default to int.
7947 * compile/compile-object-run.c (compile_object_run): Adjust call
7948 to call_function_by_hand_dummy.
7949 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
7950 call_function_by_hand.
7951 * eval.c (evaluate_subexp_standard): Adjust calls to
7952 call_function_by_hand. Handle functions and methods with unknown
7953 return type. Pass expect_type to call_function_by_hand.
7954 * f-typeprint.c (f_type_print_base): Handle functions with unknown
7955 return type.
7956 * gcore.c (call_target_sbrk): Adjust call to
7957 call_function_by_hand.
7958 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
7959 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
7960 an integer address type instead of nodebug.
7961 * guile/scm-value.c (gdbscm_value_call): Adjust call to
7962 call_function_by_hand.
7963 * infcall.c (error_call_unknown_return_type): New function.
7964 (call_function_by_hand): New "default_return_type" parameter.
7965 Pass it down.
7966 (call_function_by_hand_dummy): New "default_return_type"
7967 parameter. Use it instead of defaulting to int. If there's no
7968 default and the return type is unknown, throw an error. If
7969 there's a default return type, and the called function has no
7970 debug info, then assume the function is prototyped.
7971 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
7972 New "default_return_type" parameter.
7973 (error_call_unknown_return_type): New declaration.
7974 * linux-fork.c (call_lseek): Cast return type of lseek.
7975 (inferior_call_waitpid, checkpoint_command): Adjust calls to
7976 call_function_by_hand.
7977 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
7978 calls to call_function_by_hand.
7979 * m2-typeprint.c (m2_procedure): Handle functions with unknown
7980 return type.
7981 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7982 (value_nsstring, print_object_command): Adjust calls to
7983 call_function_by_hand.
7984 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
7985 functions with unknown return type.
7986 (pascal_type_print_func_varspec_suffix): New function.
7987 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
7988 TYPE_CODE_METHOD>: Use it.
7989 * python/py-value.c (valpy_call): Adjust call to
7990 call_function_by_hand.
7991 * rust-lang.c (rust_evaluate_funcall): Adjust call to
7992 call_function_by_hand.
7993 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
7994 call_function_by_hand.
7995 * valops.c (value_allocate_space_in_inferior): Adjust call to
7996 call_function_by_hand.
7997 * typeprint.c (type_print_unknown_return_type): New function.
7998 * typeprint.h (type_print_unknown_return_type): New declaration.
7999
8000 2017-09-04 Pedro Alves <palves@redhat.com>
8001
8002 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8003 types with more than one parameter as prototyped.
8004
8005 2017-09-04 Pedro Alves <palves@redhat.com>
8006
8007 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8008 (disassemble_command): Use gdb_disassembly_flags instead of bare
8009 int.
8010 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8011 (dump_insns, do_mixed_source_and_assembly_deprecated)
8012 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8013 Use gdb_disassembly_flags instead of bare int.
8014 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8015 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8016 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8017 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8018 (enum gdb_disassembly_flag): ... values of this new enumeration.
8019 (gdb_disassembly_flags): Define.
8020 (gdb_disassembly)
8021 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8022 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8023 gdb_disassembly_flags instead of bare int.
8024 * record-btrace.c (btrace_insn_history)
8025 (record_btrace_insn_history, record_btrace_insn_history_range)
8026 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8027 instead of bare int.
8028 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8029 Use gdb_disassembly_flags instead of bare int.
8030 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8031 Define.
8032 * target-delegates.c: Regenerate.
8033 * target.c (target_insn_history, target_insn_history_from)
8034 (target_insn_history_range): Use gdb_disassembly_flags instead of
8035 bare int.
8036 * target.h: Include "disasm.h".
8037 (struct target_ops) <to_insn_history, to_insn_history_from,
8038 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8039 int.
8040 (target_insn_history, target_insn_history_from)
8041 (target_insn_history_range): Use gdb_disassembly_flags instead of
8042 bare int.
8043
8044 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8045
8046 * cli/cli-script.c (build_command_line): For if/while commands,
8047 check whether args is empty.
8048
8049 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8050
8051 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8052 (enum command_control_type): Likewise.
8053 (struct command_line): Likewise.
8054 (free_command_lines): Likewise.
8055 (struct command_lines_deleter): Likewise.
8056 (command_line_up): Likewise.
8057 (read_command_lines): Likewise.
8058 (read_command_lines_1): Likewise.
8059 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8060 (enum command_control_type): Likewise.
8061 (struct command_line): Likewise.
8062 (free_command_lines): Likewise.
8063 (struct command_lines_deleter): Likewise.
8064 (command_line_up): Likewise.
8065 (read_command_lines): Likewise.
8066 (read_command_lines_1): Likewise.
8067 * breakpoint.h: Include cli/cli-script.h.
8068 * extension-priv.h: Likewise.
8069 * gdbcmd.h: Likewise.
8070
8071 2017-09-04 Pedro Alves <palves@redhat.com>
8072
8073 * ada-lang.c (is_known_support_routine): Move sal declaration to
8074 where it is initialized.
8075 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8076 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8077 (clear_command, update_static_tracepoint): Remove init_sal
8078 references. Move declarations closer to initializations.
8079 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8080 initializations.
8081 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8082 references. Move sal declarations closer to initializations.
8083 * frame.c (find_frame_sal): Return a symtab_and_line via function
8084 return instead of output parameter. Remove init_sal references.
8085 * frame.h (find_frame_sal): Return a symtab_and_line via function
8086 return instead of output parameter.
8087 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8088 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8089 instead of memset.
8090 (gdbscm_find_pc_line): Remove init_sal reference.
8091 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8092 references. Move declarations closer to initializations.
8093 * infcmd.c (set_step_frame): Update. Move declarations closer to
8094 initializations.
8095 (finish_backward): Remove init_sal references. Move declarations
8096 closer to initializations.
8097 * infrun.c (process_event_stop_test, handle_step_into_function)
8098 (insert_hp_step_resume_breakpoint_at_frame)
8099 (insert_step_resume_breakpoint_at_caller): Likewise.
8100 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8101 (symbol_to_sal): Likewise.
8102 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8103 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8104 to its initialization.
8105 * reverse.c (save_bookmark_command): Use new/delete. Remove
8106 init_sal references. Move declarations closer to initializations.
8107 * source.c (get_current_source_symtab_and_line): Remove brace
8108 initialization.
8109 (set_current_source_symtab_and_line): Now takes the sal by const
8110 reference. Remove brace initialization.
8111 (line_info): Remove init_sal reference.
8112 * source.h (set_current_source_symtab_and_line): Now takes a
8113 symtab_and_line via const reference.
8114 * stack.c (set_current_sal_from_frame): Adjust.
8115 (print_frame_info): Adjust.
8116 (get_last_displayed_sal): Return the sal via function return
8117 instead of via output parameter. Simplify.
8118 (frame_info): Adjust.
8119 * stack.h (get_last_displayed_sal): Return the sal via function
8120 return instead of via output parameter.
8121 * symtab.c (init_sal): Delete.
8122 (find_pc_sect_line): Remove init_sal references. Move
8123 declarations closer to initializations.
8124 (find_function_start_sal): Remove init_sal references. Move
8125 declarations closer to initializations.
8126 * symtab.h (struct symtab_and_line): In-class initialize all
8127 fields.
8128 * tracepoint.c (set_traceframe_context)
8129 (print_one_static_tracepoint_marker): Remove init_sal references.
8130 Move declarations closer to initializations.
8131 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8132 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8133 declarations closer to initializations.
8134 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8135 init_sal references. Adjust.
8136
8137 2017-09-04 Pedro Alves <palves@redhat.com>
8138
8139 * ax-gdb.c (agent_command_1): Use range-for.
8140 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8141 * breakpoint.c: Include "common/array-view.h".
8142 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8143 parameter from struct symtabs_and_lines to
8144 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8145 (breakpoint_sals_to_pc): Change sals parameter from struct
8146 symtabs_and_lines to std::vector reference.
8147 (check_fast_tracepoint_sals): Change sals parameter from struct
8148 symtabs_and_lines to std::array_view. Use range-for.
8149 (decode_static_tracepoint_spec): Return a std::vector instead of
8150 symtabs_and_lines. Update.
8151 (create_breakpoint): Update.
8152 (break_range_command, until_break_command, clear_command): Update.
8153 (base_breakpoint_decode_location, bkpt_decode_location)
8154 (bkpt_probe_create_sals_from_location)
8155 (bkpt_probe_decode_location, tracepoint_decode_location)
8156 (tracepoint_probe_decode_location)
8157 (strace_marker_create_sals_from_location): Return a std::vector
8158 instead of symtabs_and_lines.
8159 (strace_marker_create_breakpoints_sal): Update.
8160 (strace_marker_decode_location): Return a std::vector instead of
8161 symtabs_and_lines. Update.
8162 (update_breakpoint_locations): Change struct symtabs_and_lines
8163 parameters to gdb::array_view. Adjust.
8164 (location_to_sals): Return a std::vector instead of
8165 symtabs_and_lines. Update.
8166 (breakpoint_re_set_default): Use std::vector instead of struct
8167 symtabs_and_lines.
8168 (decode_location_default): Return a std::vector instead of
8169 symtabs_and_lines. Update.
8170 * breakpoint.h: Include "common/array-view.h".
8171 (struct breakpoint_ops) <decode_location>: Now returns a
8172 std::vector instead of returning a symtabs_and_lines via output
8173 parameter.
8174 (update_breakpoint_locations): Change sals parameters to use
8175 gdb::array_view.
8176 * cli/cli-cmds.c (edit_command, list_command): Update to use
8177 std::vector and gdb::array_view.
8178 (ambiguous_line_spec): Adjust to use gdb::array_view and
8179 range-for.
8180 (compare_symtabs): Rename to ...
8181 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8182 const reference and adjust.
8183 (filter_sals): Rewrite using std::vector and standard algorithms.
8184 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8185 (jump_command): Update to use std::vector.
8186 * linespec.c (struct linespec_state) <canonical_names>: Update
8187 comment.
8188 (add_sal_to_sals_basic): Delete.
8189 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8190 (decode_line_2, create_sals_line_offset)
8191 (convert_address_location_to_sals, convert_linespec_to_sals)
8192 (convert_explicit_location_to_sals, parse_linespec)
8193 (event_location_to_sals, decode_line_full, decode_line_1)
8194 (decode_line_with_current_source)
8195 (decode_line_with_last_displayed, decode_objc)
8196 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8197 (linespec_result::~linespec_result): Adjust to use std::vector
8198 instead of symtabs_and_lines.
8199 * linespec.h (linespec_sals::sals): Now a std::vector.
8200 (struct linespec_result): Use std::vector, bool, and in-class
8201 initialization.
8202 (decode_line_1, decode_line_with_current_source)
8203 (decode_line_with_last_displayed): Return std::vector.
8204 * macrocmd.c (info_macros_command): Use std::vector.
8205 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8206 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8207 std::vector.
8208 * probe.h (parse_probes): Return a std::vector.
8209 * python/python.c (gdbpy_decode_line): Use std::vector and
8210 gdb::array_view.
8211 * source.c (select_source_symtab, line_info): Use std::vector.
8212 * stack.c (func_command): Use std::vector.
8213 * symtab.h (struct symtabs_and_lines): Delete.
8214 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8215
8216 2017-09-04 Pedro Alves <palves@redhat.com>
8217
8218 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8219 unittests/array-view-selftests.c.
8220 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8221 * common/array-view.h: New file.
8222 * unittests/array-view-selftests.c: New file.
8223
8224 2017-09-04 Pedro Alves <palves@redhat.com>
8225
8226 * cli/cli-cmds.c (edit_command): Pass message to
8227 ambiguous_line_spec.
8228 (list_command): Pass message to ambiguous_line_spec. Say
8229 "first"/"last" instead of "start" and "end" to be consistent with
8230 the manual.
8231 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8232 them to print formatted message.
8233
8234 2017-09-04 Pedro Alves <palves@redhat.com>
8235
8236 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8237 ftrace_update_insns by reference instead of pointer.
8238
8239 2017-09-04 Yao Qi <yao.qi@linaro.org>
8240
8241 * i386-go32-tdep.c: Include x86-xstate.h.
8242 (i386_go32_init_abi): Call i386_target_description.
8243 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8244 if xcr0 is X86_XSTATE_X87_MASK.
8245 * i386-tdep.h (tdesc_i386): Remove the declaration.
8246 (tdesc_i386_mmx): Likewise.
8247
8248 2017-09-04 Yao Qi <yao.qi@linaro.org>
8249
8250 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8251 X86_XSTATE_SSE_MASK instead of 0.
8252
8253 2017-09-04 Yao Qi <yao.qi@linaro.org>
8254
8255 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8256 i386_target_description.
8257 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8258 i386_target_description.
8259 * i386-tdep.c (i386_gdbarch_init): Likewise.
8260
8261 2017-09-04 Yao Qi <yao.qi@linaro.org>
8262
8263 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8264 (x86_darwin_init_abi_64): Call amd64_target_description.
8265 * amd64-dicos-tdep.c: Likewise.
8266 * amd64-fbsd-nat.c: Likewise.
8267 * amd64-fbsd-tdep.c: Likewise.
8268 * amd64-nbsd-tdep.c: Likewise.
8269 * amd64-obsd-tdep.c: Likewise.
8270 * amd64-sol2-tdep.c: Likewise.
8271 * amd64-windows-tdep.c: Likewise.
8272 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8273
8274 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8275
8276 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8277 (btrace_function) <insn>: Change type to use std::vector.
8278 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8279 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8280 ftrace_update_insns, ftrace_compute_global_level_offset,
8281 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8282 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8283 change to std::vector.
8284 (ftrace_update_insns): Adjust to change to std::vector, change
8285 type of INSN parameter.
8286 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8287 * record-btrace.c (btrace_call_history_insn_range,
8288 btrace_compute_src_line_range,
8289 record_btrace_frame_prev_register): Adjust to change to
8290 std::vector.
8291 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8292 to change to std::vector.
8293
8294 2017-09-03 Tom Tromey <tom@tromey.com>
8295
8296 * corefile.c (reopen_exec_file): Use std::string.
8297
8298 2017-09-03 Tom Tromey <tom@tromey.com>
8299
8300 * compile/compile.c (compile_register_name_mangled): Return
8301 std::string.
8302 * compile/compile-loc2c.c (pushf_register_address): Update.
8303 (pushf_register): Update.
8304 * compile/compile-c-types.c (convert_array): Update.
8305 * compile/compile-c-symbols.c (generate_vla_size): Update.
8306 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8307 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8308 (convert_one_symbol): Update.
8309 (generate_c_for_for_one_variable): Update.
8310 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8311 std::string.
8312 (generate_register_struct): Update.
8313 * compile/compile-internal.h (c_get_range_decl_name): Return a
8314 std::string.
8315 (compile_register_name_mangled): Return std::string.
8316
8317 2017-09-03 Tom Tromey <tom@tromey.com>
8318
8319 * utils.c (perror_string): Return a std::string.
8320 (throw_perror_with_name, perror_warning_with_name): Update.
8321
8322 2017-09-03 Tom Tromey <tom@tromey.com>
8323
8324 * demangle.c (demangle_command): Use std::string,
8325 unique_xmalloc_ptr.
8326
8327 2017-09-03 Tom Tromey <tom@tromey.com>
8328
8329 * cli/cli-setshow.c (do_set_command): Use std::string.
8330
8331 2017-09-03 Tom Tromey <tom@tromey.com>
8332
8333 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8334
8335 2017-09-03 Tom Tromey <tom@tromey.com>
8336
8337 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8338
8339 2017-09-03 Tom Tromey <tom@tromey.com>
8340
8341 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8342 gdb::unique_xmalloc_ptr.
8343
8344 2017-09-03 Tom Tromey <tom@tromey.com>
8345
8346 * thread.c (print_thread_info_1): Use string_printf.
8347 (thread_apply_command, thread_apply_all_command): Use
8348 std::string.
8349
8350 2017-09-03 Tom Tromey <tom@tromey.com>
8351
8352 * valprint.c (val_print_string): Update.
8353 * gdbcore.h (memory_error_message): Return std::string.
8354 * corefile.c (memory_error_message): Return std::string.
8355 (memory_error): Update.
8356 * breakpoint.c (insert_bp_location): Update.
8357
8358 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8359
8360 * target/waitstatus.h (target_waitstatus_to_string): Change
8361 return type to std::string.
8362 * target/waitstatus.c (target_waitstatus_to_string): Return
8363 std::string.
8364 * target.h (target_waitstatus_to_string): Remove declaration.
8365 * infrun.c (resume, clear_proceed_status_thread,
8366 print_target_wait_results, do_target_wait, save_waitstatus,
8367 stop_all_threads): Adjust.
8368 * record-btrace.c (record_btrace_wait): Adjust.
8369 * target-debug.h
8370 (target_debug_print_struct_target_waitstatus_p): Adjust.
8371
8372 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8373
8374 PR gdb/22046
8375 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8376 detection.
8377
8378 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8379
8380 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8381 for setting/unsetting environment variables on the remote target.
8382 (New remote packets): Add entries for QEnvironmentHexEncoded,
8383 QEnvironmentUnset and QEnvironmentReset.
8384 * common/environ.c (gdb_environ::operator=): Extend method to
8385 handle m_user_set_env_list and m_user_unset_env_list.
8386 (gdb_environ::clear): Likewise.
8387 (match_var_in_string): Change type of first parameter from 'char
8388 *' to 'const char *'.
8389 (gdb_environ::set): Extend method to handle
8390 m_user_set_env_list and m_user_unset_env_list.
8391 (gdb_environ::unset): Likewise.
8392 (gdb_environ::clear_user_set_env): New method.
8393 (gdb_environ::user_set_envp): Likewise.
8394 (gdb_environ::user_unset_envp): Likewise.
8395 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8396 m_user_unset_env_list on move constructor/assignment.
8397 (unset): Add new default parameter 'update_unset_list = true'.
8398 (clear_user_set_env): New method.
8399 (user_set_envp): Likewise.
8400 (user_unset_envp): Likewise.
8401 (m_user_set_env_list): New std::set.
8402 (m_user_unset_env_list): Likewise.
8403 * common/rsp-low.c (hex2str): New function.
8404 (bin2hex): New overload for bin2hex function.
8405 * common/rsp-low.c (hex2str): New prototype.
8406 (str2hex): New overload prototype.
8407 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8408 QEnvironmentUnset and QEnvironmentReset.
8409 (remote_protocol_features): Add QEnvironmentHexEncoded,
8410 QEnvironmentUnset and QEnvironmentReset packets.
8411 (send_environment_packet): New function.
8412 (extended_remote_environment_support): Likewise.
8413 (extended_remote_create_inferior): Call
8414 extended_remote_environment_support.
8415 (_initialize_remote): Add QEnvironmentHexEncoded,
8416 QEnvironmentUnset and QEnvironmentReset packet configs.
8417 * unittests/environ-selftests.c (gdb_selftest_env_var):
8418 New variable.
8419 (test_vector_initialization): New function.
8420 (test_init_from_host_environ): Likewise.
8421 (test_reinit_from_host_environ): Likewise.
8422 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8423 Likewise.
8424 (test_unset_set_empty_vector): Likewise.
8425 (test_vector_clear): Likewise.
8426 (test_std_move): Likewise.
8427 (test_move_constructor):
8428 (test_self_move): Likewise.
8429 (test_set_unset_reset): Likewise.
8430 (run_tests): Rewrite in terms of the functions above.
8431
8432 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
8433
8434 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8435 (adi_available): Use a temp variable of type CORE_ADDR as argument
8436 3 when calling target_auxv_search.
8437 (adi_normalize_address): Use masks and xor operators to calculate
8438 normalized address.
8439 (adi_read_versions, adi_write_versions, adi_print_versions)
8440 (do_examine, do_assign): Use paddress.
8441
8442 2017-08-29 John Baldwin <jhb@FreeBSD.org>
8443
8444 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
8445 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
8446 out of loop and add supply of FIR.
8447 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
8448 add collect of FIR.
8449
8450 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
8451
8452 PR gdb/21827
8453 * cli/cli-script.c (define_command): Don't convert command name
8454 to lower case.
8455
8456 2017-08-25 Joel Brobecker <brobecker@adacore.com>
8457
8458 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
8459 Update all callers accordingly. Remove all code blocks handling
8460 the case where DISPP is not NULL.
8461
8462 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8463
8464 PR symtab/22003
8465 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
8466 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8467 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
8468
8469 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8470
8471 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
8472 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
8473 (read_comp_units_from_section): New parameter abbrev_section, use
8474 read_and_check_comp_unit_head, allocate signatured_type if needed.
8475 (create_all_comp_units): Update read_comp_units_from_section caller.
8476
8477 2017-08-23 Pedro Alves <palves@redhat.com>
8478
8479 PR remote/21852
8480 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
8481 to null_ptid and switch to thread without reading the registers
8482 after adding the inferior.
8483
8484 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8485
8486 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
8487 compile-gcc.
8488 * compile/compile.c (compile_gcc, show_compile_gcc): New.
8489 (compile_to_object): Implement compile_gcc.
8490 (_initialize_compile): Install "set compile-gcc". Initialize
8491 compile_gcc.
8492
8493 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8494
8495 * compile/compile.c (compile_to_object): Conditionally call
8496 set_verbose. Conditionally call compile or compile_v0.
8497
8498 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
8499
8500 * sparc64-tdep.h: (adi_normalize_address): New export.
8501 * sparc-nat.h: (open_adi_tag_fd): New export.
8502 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
8503 * sparc64-linux-tdep.c:
8504 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
8505 (sparc64_linux_handle_segmentation_fault): New function.
8506 (sparc64_linux_init_abi): Register
8507 sparc64_linux_handle_segmentation_fault
8508 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
8509 (sparc64_addr_bits_remove): New function.
8510 (sparc64_init_abi): Register sparc64_addr_bits_remove.
8511 (MAX_PROC_NAME_SIZE): New macro.
8512 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
8513 (sparc64adilist): New variable.
8514 (adi_proc_list): New variable.
8515 (find_adi_info): New function.
8516 (add_adi_info): New function.
8517 (get_adi_info_proc): New function.
8518 (get_adi_info): New function.
8519 (info_adi_command): New function.
8520 (read_maps_entry): New function.
8521 (adi_available): New function.
8522 (adi_normalize_address): New function.
8523 (adi_align_address): New function.
8524 (adi_convert_byte_count): New function.
8525 (adi_tag_fd): New function.
8526 (adi_is_addr_mapped): New function.
8527 (adi_read_versions): New function.
8528 (adi_write_versions): New function.
8529 (adi_print_versions): New function.
8530 (do_examine): New function.
8531 (do_assign): New function.
8532 (adi_examine_command): New function.
8533 (adi_assign_command): New function.
8534 (_initialize_sparc64_adi_tdep): New function.
8535
8536 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
8537
8538 * breakpoint.c (breakpoints_info): Rename to ...
8539 (info_breakpoints_command): ... this.
8540 (watchpoints_info): Rename to ...
8541 (info_watchpoints_command): ... this.
8542 (tracepoints_info): Rename to ...
8543 (info_tracepoints_command): ... this.
8544 (_initialize_breakpoint): Adjust.
8545 * dcache.c (dcache_info): Rename to ...
8546 (info_display_command): ... this.
8547 (_initialize_dcache): Adjust.
8548 * frame.h (args_info): Rename to ...
8549 (info_args_command): ... this.
8550 (locals_info): Rename to ...
8551 (info_locals_command): ... this.
8552 * infcmd.c (nofp_registers_info): Rename to ...
8553 (info_registers_command): ... this.
8554 (float_info): Rename to ...
8555 (info_float_command): ... this.
8556 (program_info): Rename to ...
8557 (info_program_command): ... this.
8558 (all_registers_info): Rename to ...
8559 (info_all_registers_command): ... this.
8560 (vector_info): Rename to ...
8561 (info_vector_command): ... this.
8562 (float_info): Rename to ...
8563 (info_float_command): ... this.
8564 (_initialize_infcmd): Adjust.
8565 * inferior.h (term_info): Rename to ...
8566 (info_terminal_command): ... this.
8567 * inflow.c (term_info): Rename to ...
8568 (info_terminal_command): ... this.
8569 (_initialize_inflow): Adjust.
8570 * infrun.c (signals_info): Rename to ...
8571 (info_signals_command): ... this.
8572 (_initialize_infrun): Adjust.
8573 * objc-lang.c (classes_info): Rename to ...
8574 (info_classes_command): ... this.
8575 (selectors_info): Rename to ...
8576 (info_selectors_command): ... this.
8577 (_initialize_objc_language): Adjust.
8578 * printcmd.c (sym_info): Rename to ...
8579 (info_symbol_command): ... this.
8580 (address_info): Rename to ...
8581 (info_address_command): ... this.
8582 (display_info): Rename to ...
8583 (info_display_command): ... this.
8584 (_initialize_printcmd): Adjust.
8585 * reverse.c (bookmarks_info): Rename to ...
8586 (info_breakpoints_command): ... this.
8587 (_initialize_reverse): Adjust.
8588 * ser-go32.c (dos_info): Rename to ...
8589 (info_serial_command): ... this.
8590 (_initialize_ser_dos): Adjust.
8591 * skip.c (skip_info): Rename to ...
8592 (info_skip_command): ... this.
8593 (_initialize_step_skip): Adjust.
8594 * source.c (line_info): Rename to ...
8595 (info_line_command): ... this.
8596 (source_info): Rename to ...
8597 (info_source_command)
8598 * stack.c (frame_info): Rename to ...
8599 (info_frame_command): ... this.
8600 (locals_info): Rename to ...
8601 (info_locals_command): ... this.
8602 (args_info): Rename to ...
8603 (info_args_command): ... this.
8604 (_initialize_stack): Adjust.
8605 * symtab.c (sources_info): Rename to ...
8606 (info_sources_command): ... this.
8607 (variables_info): Rename to ...
8608 (info_variables_command): ... this.
8609 (functions_info): Rename to ...
8610 (info_functions_command): ... this.
8611 (types_info): Rename to ...
8612 (info_types_command): ... this.
8613 (_initialize_symtab): Adjust.
8614 * target.c (target_info): Rename to ...
8615 (info_target_command): ... this.
8616 (initialize_targets): Adjust.
8617 * tracepoint.c (tvariables_info): Rename to ...
8618 (info_tvariables_command): ... this.
8619 (scope_info): Rename to ...
8620 (info_scope_command): ... this.
8621 (trace_dump_actions): Adjust.
8622 (_initialize_tracepoint): Adjust.
8623
8624 2017-08-22 Tom Tromey <tom@tromey.com>
8625
8626 * breakpoint.h (install_breakpoint): Update.
8627 * breakpoint.c (add_solib_catchpoint): Update.
8628 (install_breakpoint): Change argument to a std::unique_ptr.
8629 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8630 (create_breakpoint_sal, create_breakpoint): Update.
8631 (watch_command_1, catch_exec_command_1)
8632 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8633 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8634 Return the breakpoint.
8635 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8636 (new_single_step_breakpoint): Update.
8637 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8638 std::unique_ptr.
8639 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8640 std::unique_ptr.
8641 * break-catch-sig.c (create_signal_catchpoint): Use
8642 std::unique_ptr.
8643 * ada-lang.c (create_ada_exception_catchpoint): Use
8644 std::unique_ptr.
8645
8646 2017-08-22 Tom Tromey <tom@tromey.com>
8647
8648 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
8649
8650 2017-08-22 Tom Tromey <tom@tromey.com>
8651
8652 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
8653 (lookup_partial_symbol): Update.
8654
8655 2017-08-22 Tom Tromey <tom@tromey.com>
8656
8657 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
8658 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
8659 (find_and_open_source, symtab_to_fullname): Update.
8660 * psymtab.c (psymtab_to_fullname): Update.
8661
8662 2017-08-22 Tom Tromey <tom@tromey.com>
8663
8664 * exec.c (exec_file_attach): Update.
8665 * linux-thread-db.c (try_thread_db_load): Update.
8666 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
8667 * utils.c (gdb_realpath): Change return type.
8668 (gdb_realpath_keepfile): Update.
8669 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
8670 (_initialize_utils): Register the new self test.
8671 * source.c (openp): Update.
8672 (find_and_open_source): Update.
8673 * nto-tdep.c (nto_find_and_open_solib): Update.
8674 * main.c (set_gdb_data_directory): Update.
8675 (captured_main_1): Update.
8676 * dwarf2read.c (dwarf2_get_dwz_file): Update
8677 (dw2_map_symbol_filenames): Update.
8678 * auto-load.c (auto_load_safe_path_vec_update): Update.
8679 (filename_is_in_auto_load_safe_path_vec): Change type of
8680 "filename_realp".
8681 (auto_load_objfile_script): Update.
8682 (file_is_auto_load_safe): Update. Use std::string.
8683 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
8684
8685 2017-08-22 Tom Tromey <tom@tromey.com>
8686
8687 * utils.c (gdb_realpath_keepfile): Return a
8688 gdb::unique_xmalloc_ptr.
8689 * exec.c (exec_file_attach): Update.
8690 * utils.h (gdb_realpath_keepfile): Return a
8691 gdb::unique_xmalloc_ptr.
8692
8693 2017-08-22 Tom Tromey <tom@tromey.com>
8694
8695 * compile/compile.c (compile_file_command): Use
8696 gdb::unique_xmalloc_ptr, std::string.
8697 * utils.c (gdb_abspath): Change return type.
8698 * source.c (openp): Update.
8699 * objfiles.c (allocate_objfile): Update.
8700 * main.c (set_gdb_data_directory): Update.
8701 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
8702
8703 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
8704
8705 * cli-cmds.c (list_commands): List actual code around more than
8706 one location.
8707
8708 2017-08-21 John Baldwin <jhb@FreeBSD.org>
8709
8710 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
8711
8712 2017-08-21 Pedro Alves <palves@redhat.com>
8713
8714 PR gdb/19487
8715 * c-exp.y (variable production): Handle function aliases.
8716 * minsyms.c (msymbol_is_text): New function.
8717 * minsyms.h (msymbol_is_text): Declare.
8718 * symtab.c (find_function_alias_target): New function.
8719 * symtab.h (find_function_alias_target): Declare.
8720
8721 2017-08-21 Pedro Alves <palves@redhat.com>
8722
8723 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
8724 typedefs.
8725 * typeprint.c (whatis_exp): If handling "whatis", and expression
8726 is OP_TYPE, strip one typedef level. Otherwise don't strip
8727 typedefs here.
8728 * valops.c (value_cast): Save "to" type before resolving
8729 stubs/typedefs. Use that type as resulting value's type.
8730
8731 2017-08-18 Tom Tromey <tom@tromey.com>
8732 Pedro Alves <palves@redhat.com>
8733
8734 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
8735 * sol-thread.c (sol_thread_resume, sol_thread_wait)
8736 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
8737 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
8738 * proc-service.c (ps_xfer_memory): Use scoped_restore.
8739 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
8740 (linux_get_siginfo_data): Add "thread" argument. Use
8741 scoped_restore.
8742 * linux-nat.c (linux_child_follow_fork)
8743 (check_stopped_by_watchpoint): Use scoped_restore.
8744 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
8745 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
8746 (restore_inferior_ptid, save_inferior_ptid): Remove.
8747 * btrace.c (btrace_fetch): Use scoped_restore.
8748 * bsd-uthread.c (bsd_uthread_fetch_registers)
8749 (bsd_uthread_store_registers): Use scoped_restore.
8750 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
8751 scoped_restore.
8752 * aix-thread.c (aix_thread_resume, aix_thread_wait)
8753 (aix_thread_xfer_partial): Use scoped_restore.
8754 * inferior.h (save_inferior_ptid): Remove.
8755
8756 2017-08-18 Yao Qi <yao.qi@linaro.org>
8757
8758 PR tdep/21818
8759 * arm-tdep.c (gdb_print_insn_arm): Mark
8760 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
8761
8762 2017-08-18 Yao Qi <yao.qi@linaro.org>
8763
8764 * NEWS: Mention GDBserver's new option "--selftest".
8765 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
8766 * selftest.c: Move it to common/selftest.c.
8767 * selftest.h: Move it to common/selftest.h.
8768 * selftest-arch.c (reset): New function.
8769 (tests_with_arch): Call reset.
8770
8771 2017-08-18 Yao Qi <yao.qi@linaro.org>
8772
8773 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
8774 instead of exception_fprintf and printf_filtered.
8775
8776 2017-08-18 Yao Qi <yao.qi@linaro.org>
8777
8778 * selftest.c (register_self_test): Rename it to
8779 selftests::register_test.
8780 (run_self_tests): selftest::run_tests.
8781 * selftest.h: Update declarations.
8782 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
8783 selftests::register_test_foreach_arch.
8784 * selftest-arch.h: Update declaration.
8785 * aarch64-tdep.c: Update.
8786 * arm-tdep.c: Likewise.
8787 * disasm-selftests.c: Likewise.
8788 * dwarf2loc.c: Likewise.
8789 * dwarf2-frame.c: Likewise.
8790 * findvar.c: Likewise.
8791 * gdbarch-selftests.c: Likewise.
8792 * maint.c (maintenance_selftest): Likewise.
8793 * regcache.c: Likewise.
8794 * rust-exp.y: Likewise.
8795 * selftest-arch.c: Likewise.
8796 * unittests/environ-selftests.c: Likewise.
8797 * unittests/function-view-selftests.c: Likewise.
8798 * unittests/offset-type-selftests.c: Likewise.
8799 * unittests/optional-selftests.c: Likewise.
8800 * unittests/scoped_restore-selftests.c: Likewise.
8801 * utils-selftests.c: Likewise.
8802
8803 2017-08-17 Pedro Alves <palves@redhat.com>
8804
8805 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
8806 local.
8807
8808 2017-08-17 Pedro Alves <palves@redhat.com>
8809
8810 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
8811 field.
8812 (reset_die_in_process): Delete, replaced by ...
8813 (process_die_scope): ... this new class. Make it responsible for
8814 freeing cu->line_header too.
8815 (process_die): Use process_die_scope.
8816 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
8817 cu->line_header_die_owner. Don't release the line header if it's
8818 owned by the CU.
8819 (setup_type_unit_groups): Make the CU/DIE own the line header.
8820 Don't release the line header here.
8821
8822 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
8823
8824 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
8825
8826 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
8827
8828 * NEWS: Mention new shortcuts for nexti and stepi in TUI
8829 Single-Key mode
8830
8831 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
8832
8833 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
8834 mode command list.
8835
8836 2017-08-15 Stafford Horne <shorne@gmail.com>
8837
8838 * MAINTAINERS (Write After Approval): Add Stafford Horne.
8839
8840 2017-08-15 Stafford Horne <shorne@gmail.com>
8841
8842 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
8843
8844 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
8845
8846 PR gdb/21954
8847 * infcmd.c (unset_environment_command): Use the 'clear' method on
8848 the environment instead of resetting it.
8849
8850 2017-08-15 John Baldwin <jhb@FreeBSD.org>
8851
8852 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
8853 platforms.
8854
8855 2017-08-14 Tom Tromey <tom@tromey.com>
8856
8857 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
8858 (print_binary_chars): Likewise.
8859 (BITS_IN_BYTES): Remove.
8860
8861 2017-08-14 Tom Tromey <tom@tromey.com>
8862
8863 PR gdb/21675
8864 * valprint.c (LOW_ZERO): Change value to 034.
8865 (print_octal_chars): Add static_asserts for octal constants.
8866 * printcmd.c (print_scalar_formatted): Add 'd' case.
8867
8868 2017-08-11 Tom Tromey <tom@tromey.com>
8869
8870 * symfile.c (add_symbol_file_command): Use std::vector.
8871
8872 2017-08-14 Tom Tromey <tom@tromey.com>
8873
8874 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
8875 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8876 std::move.
8877 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
8878
8879 2017-08-11 Pedro Alves <palves@redhat.com>
8880
8881 * infrun.c (process_event_stop_test): Adjust
8882 function_name_is_marked_for_skip call.
8883 * skip.c: Include <list>.
8884 (skiplist_entry): Make it a class with private fields, and
8885 getters/setters.
8886 (skiplist_entry_chain): Delete.
8887 (skiplist_entries): New.
8888 (skiplist_entry_count): Delete.
8889 (highest_skiplist_entry_num): New.
8890 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
8891 (add_skiplist_entry): Delete.
8892 (skiplist_entry::skiplist_entry): New.
8893 (skiplist_entry::add_entry): New.
8894 (skip_file_command, skip_function): Adjust.
8895 (compile_skip_regexp): Delete.
8896 (skip_command): Don't compile regexp here. Adjust to use
8897 skiplist_entry::add_entry.
8898 (skip_info): Adjust to use range-for and getters.
8899 (skip_enable_command, skip_disable_command): Adjust to use
8900 range-for and setters.
8901 (skip_delete_command): Adjust to use std::list.
8902 (add_skiplist_entry): Delete.
8903 (skip_file_p): Delete, refactored as ...
8904 (skiplist_entry::do_skip_file_p): ... this new method.
8905 (skip_gfile_p): Delete, refactored as ...
8906 (skiplist_entry::do_gskip_file_p): ... this new method.
8907 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
8908 (skiplist_entry::skip_function_p): ... this new method.
8909 (function_name_is_marked_for_skip): Now returns bool, and takes
8910 the function sal by const reference. Adjust to use range-for and
8911 skiplist_entry methods.
8912 (_initialize_step_skip): Remove references to
8913 skiplist_entry_chain, skiplist_entry_count.
8914 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
8915 takes the function sal by const reference.
8916
8917 2017-08-11 Yao Qi <yao.qi@linaro.org>
8918
8919 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
8920 (dwarf2_frame_cache): Remove reset_cache_cleanup.
8921 (dwarf2_frame_cache):
8922 * frame-unwind.c (frame_unwind_try_unwinder): Catch
8923 RETURN_MASK_ALL and set *this_case to NULL.
8924 * frame-unwind.h: Update comments.
8925
8926 2017-08-11 Yao Qi <yao.qi@linaro.org>
8927
8928 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
8929 (dwarf2_frame_state_copy_regs): Remove.
8930 (dwarf2_frame_state_free_regs): Remove.
8931 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
8932 (dwarf2_restore_rule): Call method .alloc_regs instead of
8933 dwarf2_frame_state_alloc_regs.
8934 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
8935 constructor. Call std::move.
8936 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
8937 (dwarf2_frame_cache): Likewise.
8938
8939 [GDB_SELF_TEST]: Include selftest.h and
8940 selftest-arch.h.
8941 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
8942 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
8943 execute_cfa_program_test.
8944
8945 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
8946 copy ctor, assignment operator, move assignment.
8947 <alloc_regs>: New method.
8948 <swap>: New method.
8949 (struct dwarf2_frame_state): Delete dtor.
8950 (dwarf2_frame_state_alloc_regs): Remove declaration.
8951 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
8952 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
8953
8954 2017-08-11 Yao Qi <yao.qi@linaro.org>
8955
8956 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
8957 (dwarf2_frame_state::dwarf2_frame_state): New.
8958 (dwarf2_frame_state::~dwarf2_frame_state): New.
8959 (dwarf2_fetch_cfa_info): Update.
8960 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
8961 rather than a pointer. Update code.
8962 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
8963 dtor.
8964 <data_align, code_align, retaddr_column>: Change them to const.
8965 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
8966 to bool.
8967
8968 2017-08-11 Yao Qi <yao.qi@linaro.org>
8969
8970 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
8971 <loc.exp>: New field.
8972 * dwarf2-frame.c (execute_cfa_program): Update.
8973 (dwarf2_frame_prev_register): Update.
8974
8975 2017-08-10 Pedro Alves <palves@redhat.com>
8976
8977 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
8978
8979 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8980
8981 * fbsd-nat.c (struct fbsd_fork_info): Remove.
8982 (fbsd_pending_children): Use std::list.
8983 (fbsd_remember_child): Likewise.
8984 (fbsd_is_child_pending): Likewise.
8985 (fbsd_pending_vfork_done): Use std::forward_list.
8986 (fbsd_add_vfork_done): Likewise.
8987 (fbsd_is_vfork_done_pending): Likewise.
8988 (fbsd_next_vfork_done): Likewise.
8989
8990 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8991
8992 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
8993 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
8994 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
8995 for `mapfilename'.
8996 (fbsd_xfer_partial): Use gdb::byte_vector.
8997 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
8998
8999 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9000
9001 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9002 "filestuff.h".
9003 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9004
9005 2017-08-09 Tom Tromey <tom@tromey.com>
9006
9007 * skip.c (skiplist_entry): New constructor.
9008 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9009 (skiplist_entry::file_is_glob): Now bool.
9010 (skiplist_entry::file, skiplist_entry::function): Now
9011 std::string.
9012 (make_skip_entry): Return a unique_ptr. Use new.
9013 (free_skiplist_entry, free_skiplist_entry_cleanup)
9014 (make_free_skiplist_entry_cleanup): Remove.
9015 (skip_command, skip_disable_command, add_skiplist_entry)
9016 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9017 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9018 (function_name_is_marked_for_skip): Update.
9019 (skip_delete_command): Update. Use delete.
9020
9021 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9022
9023 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9024 (aarch64_linux_core_read_description): New function.
9025 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9026
9027 2017-08-09 Pedro Alves <palves@redhat.com>
9028
9029 * cp-name-parser.y (cp_comp_to_string): Return a
9030 gdb::unique_xmalloc_ptr<char>.
9031 * cp-support.c (replace_typedefs_qualified_name)
9032 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9033 (cp_canonicalize_string_full): Use op= instead of explicit
9034 convertion.
9035 (cp_class_name_from_physname, method_name_from_physname)
9036 (cp_func_name, cp_remove_params): Adjust to use
9037 gdb::unique_xmalloc_ptr<char>.
9038 * cp-support.h (cp_comp_to_string): Return a
9039 gdb::unique_xmalloc_ptr<char>.
9040 * python/py-type.c (typy_lookup_type): Adjust to use
9041 gdb::unique_xmalloc_ptr<char>.
9042
9043 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9044
9045 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9046
9047 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9048 Yao Qi <yao.qi@linaro.org>
9049
9050 * cp-support.c (cp_canonicalize_string_full): Use
9051 gdb::unique_xmalloc_ptr<char>.
9052 (cp_canonicalize_string): Likewise.
9053
9054 2017-08-09 Yao Qi <yao.qi@linaro.org>
9055
9056 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9057 * regformats/i386/amd64-avx-avx512.dat: Remove.
9058 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9059 * regformats/i386/amd64-avx-mpx.dat:Remove.
9060 * regformats/i386/amd64-avx.dat: Remove.
9061 * regformats/i386/amd64-mpx.dat: Remove.
9062 * regformats/i386/i386-avx-avx512.dat: Remove.
9063 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9064 * regformats/i386/i386-avx-mpx.dat: Remove.
9065 * regformats/i386/i386-mmx.dat: Remove.
9066 * regformats/i386/i386-mpx.dat: Remove.
9067
9068 2017-08-09 Yao Qi <yao.qi@linaro.org>
9069
9070 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9071 * amd64-tdep.c: Don't include features/i386/x32*.c.
9072 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9073 functions.
9074 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9075 and i386/x32-avx-avx512.
9076 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9077 and i386/x32.xml.
9078 * features/i386/x32-avx-avx512.c: Removed.
9079 * features/i386/x32-avx-avx512.xml: Removed.
9080 * features/i386/x32-avx.c: Removed.
9081 * features/i386/x32-avx.xml: Removed.
9082 * features/i386/x32.c: Removed.
9083 * features/i386/x32.xml: Removed.
9084 * regformats/i386/x32-avx-avx512.dat: Removed.
9085 * regformats/i386/x32-avx.dat: Removed.
9086 * regformats/i386/x32.dat: Removed.
9087
9088 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9089
9090 PR breakpoints/21886
9091 * mem-break.c (default_memory_insert_breakpoint): Use
9092 `->placed_address' rather than `->reqstd_address' for the
9093 breakpoint location.
9094
9095 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9096
9097 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9098 assertions.
9099
9100 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9101
9102 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9103 a union of `tdep_info', `tdesc_data' and `id'.
9104 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9105 rather than `info.tdep_info'.
9106 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9107 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9108 * i386-tdep.c (i386_gdbarch_init): Likewise.
9109 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9110 * mips-tdep.c (mips_gdbarch_init): Likewise.
9111 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9112 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9113 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9114 `info.tdep_info'.
9115 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9116 `info.tdep_info'.
9117 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9118 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9119 `info.tdep_info'.
9120 * spu-tdep.c (spu_gdbarch_init): Likewise.
9121 * gdbarch.h: Regenerate.
9122
9123 2017-08-07 Leszek Swirski <leszeks@google.com>
9124
9125 PR symtab/20899
9126 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9127
9128 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9129
9130 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9131 (gdbsim_open): Rename gdb_argv args object to argv.
9132
9133 2017-08-05 Tom Tromey <tom@tromey.com>
9134
9135 * compile/compile-object-load.c (compile_object_load): Use
9136 gdb::unique_xmalloc_ptr.
9137 * cli/cli-dump.c (scan_filename): Rename from
9138 scan_filename_with_cleanup. Change return type.
9139 (scan_expression): Rename from scan_expression_with_cleanup.
9140 Change return type.
9141 (dump_memory_to_file, dump_value_to_file, restore_command):
9142 Use gdb::unique_xmalloc_ptr. Update.
9143 * cli/cli-cmds.c (find_and_open_script): Use
9144 gdb::unique_xmalloc_ptr.
9145 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9146 * symmisc.c (maintenance_print_symbols)
9147 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9148 * symfile.c (symfile_bfd_open, generic_load)
9149 (add_symbol_file_command, remove_symbol_file_command): Use
9150 gdb::unique_xmalloc_ptr.
9151 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9152 * psymtab.c (maintenance_print_psymbols): Use
9153 gdb::unique_xmalloc_ptr.
9154 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9155 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9156 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9157 (reload_shared_libraries_1): Likewise.
9158
9159 2017-08-05 Tom Tromey <tom@tromey.com>
9160
9161 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9162 (rust_op_vector, rust_set_vector): New typedefs.
9163 (current_parser): New global.
9164 (work_obstack): Change to pointer type. Update all users.
9165 (rust_ast, pstate): Remove globals.
9166 (struct rust_parser): New.
9167 (%union) <params, field_inits>: Change type.
9168 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9169 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9170 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9171 (convert_params_to_types, convert_params_to_expression): Change
9172 type of "params".
9173 (ast_string): Change type of "fields".
9174 (rust_parse): Make a rust_parser. Remove cleanups.
9175 (rust_lex_tests): Make and install an auto_obstack.
9176
9177 2017-08-04 Yao Qi <yao.qi@linaro.org>
9178
9179 * configure.srv (ipa_x32_linux_regobj): New.
9180 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9181 instead of X86_TDESC_AVX512.
9182 (initialize_low_tracepoint): Call
9183 init_registers_x32_avx_avx512_linux.
9184
9185 2017-08-04 Yao Qi <yao.qi@linaro.org>
9186
9187 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9188
9189 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9190
9191 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9192
9193 2017-08-03 Tom Tromey <tom@tromey.com>
9194
9195 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9196 Remove.
9197 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9198
9199 2017-08-03 Tom Tromey <tom@tromey.com>
9200
9201 * python/py-param.c (compute_enum_values): Use gdb_argv.
9202
9203 2017-08-03 Tom Tromey <tom@tromey.com>
9204
9205 * utils.h (struct gdb_argv_deleter): New.
9206 (gdb_argv): New class.
9207 * utils.c (gdb_argv::reset): New method.
9208 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9209 * tracefile.c (tsave_command): Use gdb_argv.
9210 * top.c (new_ui_command): Use gdb_argv.
9211 * symmisc.c (maintenance_print_symbols)
9212 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9213 * symfile.c (symbol_file_command, generic_load)
9214 (remove_symbol_file_command): Use gdb_argv.
9215 * stack.c (backtrace_command): Use gdb_argv.
9216 * source.c (add_path, show_substitute_path_command)
9217 (unset_substitute_path_command, set_substitute_path_command):
9218 Use gdb_argv.
9219 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9220 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9221 * remote.c (extended_remote_run, remote_put_command)
9222 (remote_get_command, remote_delete_command): Use gdb_argv.
9223 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9224 (gdbsim_open): Use gdb_argv.
9225 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9226 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9227 * procfs.c (procfs_info_proc): Use gdb_argv.
9228 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9229 * infrun.c (handle_command): Use gdb_argv.
9230 * inferior.c (add_inferior_command, clone_inferior_command):
9231 Use gdb_argv.
9232 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9233 * exec.c (exec_file_command): Use gdb_argv.
9234 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9235 * compile/compile.c (build_argc_argv): Use gdb_argv.
9236
9237 2017-08-03 Tom Tromey <tom@tromey.com>
9238
9239 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9240
9241 2017-08-03 Tom Tromey <tom@tromey.com>
9242
9243 * python/python.c (compute_python_string): Return std::string.
9244 (gdbpy_eval_from_control_command): Update.
9245 (do_start_initialization): Use std::string.
9246 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9247 xstrprintf.
9248 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9249 xstrprintf.
9250
9251 2017-08-03 Tom Tromey <tom@tromey.com>
9252
9253 * top.h (do_restore_instream_cleanup): Remove.
9254 * top.c (do_restore_instream_cleanup): Remove.
9255 (read_command_file): Use scoped_restore.
9256 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9257
9258 2017-08-03 Tom Tromey <tom@tromey.com>
9259
9260 * cli/cli-script.c (execute_user_command)
9261 (execute_control_command): Use scoped_restore.
9262
9263 2017-08-03 Tom Tromey <tom@tromey.com>
9264
9265 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9266 (execute_user_command): Remove user_call_depth; use
9267 user_args_stack's size instead.
9268
9269 2017-08-03 Tom Tromey <tom@tromey.com>
9270
9271 * top.h (in_user_command): Remove.
9272 * top.c (in_user_command): Remove.
9273 * cli/cli-script.c (do_restore_user_call_depth)
9274 (execute_user_command): Update.
9275
9276 2017-08-03 Tom Tromey <tom@tromey.com>
9277
9278 * valops.c (search_struct_method): Use gdb::byte_vector.
9279 * valarith.c (value_concat): Use std::vector.
9280 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9281 (simple_search_memory): Likewise.
9282 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9283 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9284 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9285 * elfread.c (elf_rel_plt_read): Use std::string.
9286 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9287 * cli/cli-dump.c (restore_section_callback): Use
9288 gdb::byte_vector.
9289
9290 2017-08-03 Tom Tromey <tom@tromey.com>
9291
9292 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9293
9294 2017-08-03 Tom Tromey <tom@tromey.com>
9295
9296 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9297 (tui_register_format): Use scoped_restore.
9298
9299 2017-08-03 Tom Tromey <tom@tromey.com>
9300
9301 * reverse.c (exec_direction_default): Remove.
9302 (exec_reverse_once): Use scoped_restore.
9303 * remote.c (restore_remote_timeout): Remove.
9304 (remote_flash_erase, remote_flash_write, remote_flash_done)
9305 (readchar, remote_serial_write): Use scoped_restore.
9306 * cli/cli-script.c (struct source_cleanup_lines_args)
9307 (source_cleanup_lines): Remove.
9308 (script_from_file): Use scoped_restore.
9309 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9310 (source_command): Use scoped_restore.
9311
9312 2017-08-03 Tom Tromey <tom@tromey.com>
9313
9314 * utils.h (make_cleanup_free_so): Remove.
9315 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9316 * solist.h (struct so_deleter): New.
9317 (so_list_up): New typedef.
9318 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9319
9320 2017-08-03 Tom Tromey <tom@tromey.com>
9321
9322 * utils.h (make_cleanup_restore_current_language): Remove.
9323 * utils.c (do_restore_current_language)
9324 (make_cleanup_restore_current_language): Remove.
9325 * parse.c (parse_exp_in_context_1)
9326 (parse_expression_with_language): Use
9327 scoped_restore_current_language.
9328 * mi/mi-main.c (mi_cmd_execute): Use
9329 scoped_restore_current_language.
9330 * language.h (scoped_restore_current_language): New class.
9331
9332 2017-08-03 Tom Tromey <tom@tromey.com>
9333
9334 * compile/compile.c (cleanup_unlink_file): Remove.
9335 (compile_to_object): Use gdb::unlinker.
9336 (eval_compile_command): Likewise.
9337
9338 2017-08-03 Tom Tromey <tom@tromey.com>
9339
9340 * utils.h (make_cleanup_fclose): Remove.
9341 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9342
9343 2017-08-03 Tom Tromey <tom@tromey.com>
9344
9345 * top.c (open_terminal_stream): Return gdb_file_up.
9346 (new_ui_command): Update.
9347
9348 2017-08-03 Tom Tromey <tom@tromey.com>
9349
9350 * source.c (print_source_lines_base, forward_search_command)
9351 (reverse_search_command): Use gdb_file_up.
9352
9353 2017-08-03 Tom Tromey <tom@tromey.com>
9354
9355 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9356
9357 2017-08-03 Tom Tromey <tom@tromey.com>
9358
9359 * cli/cli-cmds.c (find_and_open_script): Change return type.
9360 Remove "streamp" and "full_path" parameters.
9361 (source_script_with_search): Update.
9362 * auto-load.c (source_script_file): Update.
9363 * cli/cli-cmds.h (find_and_open_script): Change type.
9364 (open_script): New struct.
9365
9366 2017-08-03 Tom Tromey <tom@tromey.com>
9367
9368 * xml-support.c (xml_fetch_content_from_file): Update.
9369 * ui-file.c (stdio_file::open): Update.
9370 * tracefile-tfile.c (tfile_start): Update.
9371 * remote.c (remote_file_put, remote_file_get): Update.
9372 * nat/linux-procfs.c (linux_proc_get_int)
9373 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9374 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9375 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9376 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9377 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9378 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9379 * linux-nat.c (linux_proc_pending_signals): Update.
9380 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9381 (file_closer): Remove.
9382 * compile/compile.c (compile_to_object): Update.
9383 * common/filestuff.h (struct gdb_file_deleter): New.
9384 (gdb_file_up): New typedef.
9385 (gdb_fopen_cloexec): Change return type.
9386 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9387 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9388 (dump_binary_file, restore_binary_file): Update.
9389 * auto-load.c (auto_load_objfile_script_1): Update.
9390
9391 2017-08-03 Tom Tromey <tom@tromey.com>
9392
9393 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9394 (info_static_tracepoint_markers_command): Likewise.
9395 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9396 * skip.c (skip_info): Use ui_out_emit_table.
9397 * progspace.c (print_program_space): Use ui_out_emit_table.
9398 * osdata.c (info_osdata): Use ui_out_emit_table.
9399 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9400 ui_out_emit_table.
9401 * linux-thread-db.c (info_auto_load_libthread_db): Use
9402 ui_out_emit_table.
9403 * inferior.c (print_inferior): Use ui_out_emit_table.
9404 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9405 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9406 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9407 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9408 * ui-out.h (class ui_out_emit_table): New.
9409
9410 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9411
9412 * mips-tdep.c (mips_fpu_type_str): New function.
9413 (mips_dump_tdep): Call it.
9414
9415 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9416
9417 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9418 `->mips_fpu_type'.
9419
9420 2017-07-31 Xavier Roirand <roirand@adacore.com>
9421
9422 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9423
9424 2017-07-27 Xavier Roirand <roirand@adacore.com>
9425
9426 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9427
9428 2017-07-26 Yao Qi <yao.qi@linaro.org>
9429
9430 * cli/cli-cmds.c (maintenancechecklist): New variable.
9431 * gdbcmd.h (maintenancechecklist): Declare it.
9432 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9433 Call i386_linux_read_description with different masks.
9434 * maint.c (maintenance_check_command): New function.
9435 (_initialize_maint_cmds): Call add_prefix_cmd.
9436 * target-descriptions.c (tdesc_reg): override operator != and ==.
9437 (tdesc_type): Likewise.
9438 (tdesc_feature): Likewise.
9439 (target_desc): Likewise.
9440 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9441 (maintenance_check_xml_descriptions): New function.
9442 (_initialize_target_descriptions) Add command "xml-descriptions".
9443 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
9444
9445 2017-07-26 Yao Qi <yao.qi@linaro.org>
9446
9447 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
9448 Include features/i386/32bit-*.c.
9449 (i386_linux_read_description): Generate target description if it
9450 doesn't exist.
9451 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
9452 functions.
9453 * features/i386/32bit-linux.c: Re-generated.
9454 * features/i386/32bit-sse.c: Likewise.
9455 * target-descriptions.c (print_c_feature::visit): Print code to
9456 set register number if needed.
9457 (print_c_feature) <m_next_regnum>: New field.
9458
9459 2017-07-26 Yao Qi <yao.qi@linaro.org>
9460
9461 * features/Makefile (CFILES): Rename with TDESC_CFILES.
9462 (FEATURE_XMLFILES): New.
9463 (FEATURE_CFILES): New.
9464 New rules.
9465 (clean-cfiles): Remove generated c files.
9466 * features/i386/32bit-avx.c: Generated.
9467 * features/i386/32bit-avx512.c: Generated.
9468 * features/i386/32bit-core.c: Generated.
9469 * features/i386/32bit-linux.c: Generated.
9470 * features/i386/32bit-mpx.c: Generated.
9471 * features/i386/32bit-pkeys.c: Generated.
9472 * features/i386/32bit-sse.c: Generated.
9473 * target-descriptions.c: Include algorithm.
9474 (tdesc_element_visitor): Add method visit_end.
9475 (print_c_tdesc): Implement visit_end.
9476 (print_c_tdesc:: m_filename_after_features): Move it to
9477 protected.
9478 (print_c_feature): New class.
9479 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
9480 name starts with "i386/32bit-".
9481
9482 2017-07-26 Yao Qi <yao.qi@linaro.org>
9483
9484 * target-descriptions.c (tdesc_element_visitor): New class.
9485 (tdesc_element): New class.
9486 (tdesc_reg): Inherit from tdesc_element.
9487 (tdesc_reg::accept): New function.
9488 (tdesc_type): Inherit from tdesc_element.
9489 (tdesc_type::accept): New function.
9490 (tdesc_feature): Inherit from tdesc_element.
9491 (tdesc_feature::accept): New function.
9492 (target_desc): Inherit from tdesc_element.
9493 (target_desc::target_desc): New.
9494 (target_desc::~target_desc): New.
9495 (target_desc::accept): New.
9496 (allocate_target_description): Use new.
9497 (free_target_description): Use delete.
9498 (print_c_tdesc): New class.
9499 (maint_print_c_tdesc_cmd): Adjust.
9500
9501 * features/aarch64.c: Re-generated.
9502 * features/arc-arcompact.c: Re-generated.
9503 * features/arc-v2.c: Re-generated.
9504 * features/arm/arm-with-iwmmxt.c: Re-generated.
9505 * features/arm/arm-with-m.c: Re-generated.
9506 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
9507 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
9508 * features/arm/arm-with-neon.c: Re-generated.
9509 * features/arm/arm-with-vfpv2.c: Re-generated.
9510 * features/arm/arm-with-vfpv3.c: Re-generated.
9511 * features/i386/amd64-avx-avx512.c: Re-generated.
9512 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9513 * features/i386/amd64-avx.c: Re-generated.
9514 * features/i386/amd64-avx-linux.c: Re-generated.
9515 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
9516 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9517 * features/i386/amd64-avx-mpx.c: Re-generated.
9518 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
9519 * features/i386/amd64.c: Re-generated.
9520 * features/i386/amd64-linux.c: Re-generated.
9521 * features/i386/amd64-mpx.c: Re-generated.
9522 * features/i386/amd64-mpx-linux.c: Re-generated.
9523 * features/i386/i386-avx-avx512.c: Re-generated.
9524 * features/i386/i386-avx-avx512-linux.c: Re-generated.
9525 * features/i386/i386-avx.c: Re-generated.
9526 * features/i386/i386-avx-linux.c: Re-generated.
9527 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
9528 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
9529 * features/i386/i386-avx-mpx.c: Re-generated.
9530 * features/i386/i386-avx-mpx-linux.c: Re-generated.
9531 * features/i386/i386.c: Re-generated.
9532 * features/i386/i386-linux.c: Re-generated.
9533 * features/i386/i386-mmx.c: Re-generated.
9534 * features/i386/i386-mmx-linux.c: Re-generated.
9535 * features/i386/i386-mpx.c: Re-generated.
9536 * features/i386/i386-mpx-linux.c: Re-generated.
9537 * features/i386/x32-avx-avx512.c: Re-generated.
9538 * features/i386/x32-avx-avx512-linux.c: Re-generated.
9539 * features/i386/x32-avx.c: Re-generated.
9540 * features/i386/x32-avx-linux.c: Re-generated.
9541 * features/i386/x32.c: Re-generated.
9542 * features/i386/x32-linux.c: Re-generated.
9543 * features/microblaze.c: Re-generated.
9544 * features/microblaze-with-stack-protect.c: Re-generated.
9545 * features/mips64-dsp-linux.c: Re-generated.
9546 * features/mips64-linux.c: Re-generated.
9547 * features/mips-dsp-linux.c: Re-generated.
9548 * features/mips-linux.c: Re-generated.
9549 * features/nds32.c: Re-generated.
9550 * features/nios2.c: Re-generated.
9551 * features/nios2-linux.c: Re-generated.
9552 * features/rs6000/powerpc-32.c: Re-generated.
9553 * features/rs6000/powerpc-32l.c: Re-generated.
9554 * features/rs6000/powerpc-403.c: Re-generated.
9555 * features/rs6000/powerpc-403gc.c : Re-generated.
9556 * features/rs6000/powerpc-405.c: Re-generated.
9557 * features/rs6000/powerpc-505.c: Re-generated.
9558 * features/rs6000/powerpc-601.c: Re-generated.
9559 * features/rs6000/powerpc-602.c: Re-generated.
9560 * features/rs6000/powerpc-603.c: Re-generated.
9561 * features/rs6000/powerpc-604.c: Re-generated.
9562 * features/rs6000/powerpc-64.c: Re-generated.
9563 * features/rs6000/powerpc-64l.c: Re-generated.
9564 * features/rs6000/powerpc-7400.c: Re-generated.
9565 * features/rs6000/powerpc-750.c: Re-generated.
9566 * features/rs6000/powerpc-860.c: Re-generated.
9567 * features/rs6000/powerpc-altivec32.c: Re-generated.
9568 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9569 * features/rs6000/powerpc-altivec64.c: Re-generated.
9570 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9571 * features/rs6000/powerpc-cell32l.c: Re-generated.
9572 * features/rs6000/powerpc-cell64l.c: Re-generated.
9573 * features/rs6000/powerpc-e500.c: Re-generated.
9574 * features/rs6000/powerpc-e500l.c: Re-generated.
9575 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9576 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9577 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9578 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9579 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9580 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9581 * features/rs6000/powerpc-vsx32.c: Re-generated.
9582 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9583 * features/rs6000/powerpc-vsx64.c: Re-generated.
9584 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9585 * features/rs6000/rs6000.c: Re-generated.
9586 * features/s390-linux32.c: Re-generated.
9587 * features/s390-linux32v1.c: Re-generated.
9588 * features/s390-linux32v2.c: Re-generated.
9589 * features/s390-linux64.c: Re-generated.
9590 * features/s390-linux64v1.c: Re-generated.
9591 * features/s390-linux64v2.c: Re-generated.
9592 * features/s390-te-linux64.c: Re-generated.
9593 * features/s390-tevx-linux64.c: Re-generated.
9594 * features/s390-vx-linux64.c: Re-generated.
9595 * features/s390x-linux64.c: Re-generated.
9596 * features/s390x-linux64v1.c: Re-generated.
9597 * features/s390x-linux64v2.c: Re-generated.
9598 * features/s390x-te-linux64.c: Re-generated.
9599 * features/s390x-tevx-linux64.c: Re-generated.
9600 * features/s390x-vx-linux64.c: Re-generated.
9601 * features/sparc/sparc32-solaris.c: Re-generated.
9602 * features/sparc/sparc64-solaris.c: Re-generated.
9603 * features/tic6x-c62x.c: Re-generated.
9604 * features/tic6x-c62x-linux.c: Re-generated.
9605 * features/tic6x-c64x.c: Re-generated.
9606 * features/tic6x-c64x-linux.c: Re-generated.
9607 * features/tic6x-c64xp.c: Re-generated.
9608 * features/tic6x-c64xp-linux.c: Re-generated.
9609
9610 2017-07-26 Yao Qi <yao.qi@linaro.org>
9611
9612 * i386-linux-tdep.c (i386_linux_read_description): New function.
9613 (i386_linux_core_read_description): Call
9614 i386_linux_read_description.
9615 * i386-linux-tdep.h (i386_linux_read_description): Declare.
9616 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
9617 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
9618 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
9619 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
9620 * x86-linux-nat.c (x86_linux_read_description): Call
9621 i386_linux_read_description.
9622
9623 2017-07-26 Yao Qi <yao.qi@linaro.org>
9624
9625 * NEWS: Mention it.
9626 * features/Makefile (%.c: %.xml): Pass the xml file name to
9627 command "maint print c-tdesc".
9628 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9629 name from 'arg'.
9630
9631 2017-07-26 Yao Qi <yao.qi@linaro.org>
9632
9633 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9634 in-class initialization.
9635 (tdesc_create_feature): Call new instead of XCNEW.
9636 (free_target_description): Ue delete.
9637
9638 2017-07-25 John Baldwin <jhb@FreeBSD.org>
9639
9640 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9641
9642 2017-07-25 Yao Qi <yao.qi@linaro.org>
9643
9644 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
9645 constant.
9646 (amd64_x32_init_abi): Likewise.
9647 * amd64-tdep.h (amd64_init_abi): Update declaration.
9648 (amd64_x32_init_abi): Likewise.
9649
9650 2017-07-25 Yao Qi <yao.qi@linaro.org>
9651
9652 PR tdep/21717
9653 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
9654 condition for FPSCR.
9655 (arm_linux_store_inferior_registers): Likewise.
9656
9657 2017-07-22 Tom Tromey <tom@tromey.com>
9658
9659 * break-catch-syscall.c (struct catch_syscall_inferior_data)
9660 <syscalls_counts>: Now a std::vector.
9661 (get_catch_syscall_inferior_data): Use "new".
9662 (catch_syscall_inferior_data_cleanup): Use "delete".
9663 (insert_catch_syscall, remove_catch_syscall)
9664 (clear_syscall_counts): Update.
9665
9666 2017-07-22 Tom Tromey <tom@tromey.com>
9667
9668 * break-catch-syscall.c (syscall_catchpoint)
9669 <syscalls_to_be_caught>: Now a std::vector<int>
9670 (~syscall_catchpoint): Remove.
9671 (insert_catch_syscall, remove_catch_syscall)
9672 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
9673 (print_mention_catch_syscall, print_recreate_catch_syscall):
9674 Update.
9675 (create_syscall_event_catchpoint): Change type of "filter"
9676 parameter.
9677 (catch_syscall_split_args): Return a std::vector.
9678 (catch_syscall_command_1, catching_syscall_number_1): Update.
9679
9680 2017-07-22 Tom Tromey <tom@tromey.com>
9681
9682 * break-catch-throw.c (struct exception_catchpoint)
9683 <exception_rx>: Now a std::string.
9684 (~exception_catchpoint): Remove.
9685 (print_one_detail_exception_catchpoint): Update.
9686 (handle_gnu_v3_exceptions): Change type of except_rx.
9687 (extract_exception_regexp): Return a std::string.
9688 (catch_exception_command_1): Update.
9689
9690 2017-07-22 Tom Tromey <tom@tromey.com>
9691
9692 * break-catch-sig.c (gdb_signal_type): Remove typedef.
9693 (struct signal_catchpoint) <signals_to_be_caught>: Now a
9694 std::vector.
9695 <catch_all>: Now a bool.
9696 (~signal_catchpoint): Remove.
9697 (signal_catchpoint_insert_location)
9698 (signal_catchpoint_remove_location)
9699 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
9700 (signal_catchpoint_print_mention)
9701 (signal_catchpoint_print_recreate)
9702 (signal_catchpoint_explains_signal): Update.
9703 (create_signal_catchpoint): Change type of "filter" and
9704 "catch_all".
9705 (catch_signal_split_args): Return a std::vector. Change type of
9706 "catch_all".
9707 (catch_signal_command): Update.
9708
9709 2017-07-20 Pedro Alves <palves@redhat.com>
9710
9711 * ada-lang.c (ada_language_defn): Make extern.
9712 (_initialize_ada_language): Remove add_language call.
9713 * c-lang.c (c_language_defn, cplus_language_defn)
9714 (asm_language_defn, minimal_language_defn): Make extern.
9715 (_initialize_c_language): Delete.
9716 * completer.c (compare_cstrings): Delete, moved to utils.h.
9717 * d-lang.c (d_language_defn): Make extern.
9718 (_initialize_d_language): Remove add_language calls.
9719 * defs.h (enum language): Add comment.
9720 * f-lang.c (f_language_defn): Make extern.
9721 (_initialize_f_language): Remove add_language call.
9722 * go-lang.c (go_language_defn): Make extern.
9723 (_initialize_go_language): Remove add_language call.
9724 * language.c: Include <algorithm>.
9725 (languages): Redefine as const array.
9726 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
9727 (set_language_command): Handle "local". Use for-range loop.
9728 (set_language): Remove loop.
9729 (language_enum): Rewrite.
9730 (language_def, language_str): Remove loops.
9731 (add_language): Delete.
9732 (add_set_language_command): New, based on add_languages.
9733 (skip_language_trampoline): Adjust.
9734 (local_language_defn): Delete.
9735 (language_gdbarch_post_init): Adjust.
9736 (_initialize_language): Remove add_language calls. Call
9737 add_set_language_command.
9738 * language.h (add_language): Delete.
9739 (auto_language_defn)
9740 (unknown_language_defn, minimal_language_defn, ada_language_defn)
9741 (asm_language_defn, c_language_defn, cplus_language_defn)
9742 (d_language_defn, f_language_defn, go_language_defn)
9743 (m2_language_defn, objc_language_defn, opencl_language_defn)
9744 (pascal_language_defn, rust_language_defn): Declare.
9745 * m2-lang.c (m2_language_defn): Make extern.
9746 (_initialize_m2_language): Remove add_language call.
9747 * objc-lang.c (objc_language_defn): Make extern.
9748 (_initialize_objc_language): Remove add_language call.
9749 * opencl-lang.c (opencl_language_defn): Make extern.
9750 (_initialize_opencl_language): Remove add_language call.
9751 * p-lang.c (pascal_language_defn): Make extern.
9752 (_initialize_pascal_language): Delete.
9753 * rust-lang.c (rust_language_defn): Make extern.
9754 (_initialize_rust_language): Delete.
9755 * utils.h (compare_cstrings): New static inline function.
9756
9757 2017-07-20 Pedro Alves <palves@redhat.com>
9758
9759 * ada-lang.c (ada_to_fixed_type_1): Adjust.
9760 (get_var_value): Constify parameters.
9761 (get_int_var_value): Change prototype.
9762 (to_fixed_range_type): Adjust.
9763 * ada-lang.h (get_int_var_value): Change prototype.
9764
9765 2017-07-20 Pedro Alves <palves@redhat.com>
9766
9767 * dwarf2read.c (dw2_lookup_symbol): Use
9768 SYMBOL_MATCHES_SEARCH_NAME.
9769 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
9770
9771 2017-07-20 Pedro Alves <palves@redhat.com>
9772
9773 * block.c (block_iter_name_step, block_iter_name_first)
9774 (block_iter_name_next): Delete.
9775 (block_lookup_symbol_primary): Adjust to use
9776 dict_iter_match_first/dict_iter_match_next.
9777 * block.h (block_iter_name_first, block_iter_name_next): Delete
9778 declarations.
9779 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
9780 dict_iter_match_first/dict_iter_match_next.
9781
9782 2017-07-20 Pedro Alves <palves@redhat.com>
9783
9784 * cp-support.c (cp_find_first_component_aux): Add missing case for
9785 end of string.
9786
9787 2017-07-18 David Blaikie <dblaikie@gmail.com>
9788
9789 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
9790 of dwo_cu's dwo_file.
9791
9792 2017-07-18 Yao Qi <yao.qi@linaro.org>
9793
9794 * remote.c (store_registers_using_G): Remove one line comment.
9795
9796 2017-07-18 Yao Qi <yao.qi@linaro.org>
9797
9798 * regcache.c (regcache_cpy): Simplify it.
9799 (regcache::cpy_no_passthrough): Remove it.
9800 * regcache.h (cpy_no_passthrough): Remove it.
9801 (regcache_dup, regcache_cpy): Update comments.
9802
9803 2017-07-18 Pedro Alves <palves@redhat.com>
9804
9805 * remote-sim.c (sim_command_completer): Adjust to work with a
9806 completion_tracker instead of a VEC.
9807
9808 2017-07-17 Pedro Alves <palves@redhat.com>
9809
9810 * completer.c (complete_source_filenames): New function.
9811 (complete_address_and_linespec_locations): New function.
9812 (location_completer): Use complete_address_and_linespec_locations.
9813 (completion_tracker::build_completion_result): Honor the tracker's
9814 request to suppress append.
9815 * completer.h (completion_tracker::suppress_append_ws)
9816 (completion_tracker::set_suppress_append_ws): New methods.
9817 (completion_tracker::m_suppress_append_ws): New field.
9818 (complete_source_filenames): New declaration.
9819 * linespec.c (linespec_complete_what): New.
9820 (struct ls_parser) <complete_what, completion_word,
9821 completion_quote_char, completion_quote_end, completion_tracker>:
9822 New fields.
9823 (string_find_incomplete_keyword_at_end): New.
9824 (linespec_lexer_lex_string): Record quote char. If in completion
9825 mode, don't throw.
9826 (linespec_lexer_consume_token): Advance the completion word point.
9827 (linespec_lexer_peek_token): Save/restore completion info.
9828 (save_stream_and_consume_token): New.
9829 (set_completion_after_number): New.
9830 (linespec_parse_basic): Set what to complete next depending on
9831 token. Handle function and label completions specially.
9832 (parse_linespec): Disable objc shortcut in completion mode. Set
9833 what to complete next depending on token type. Skip keyword if in
9834 completion mode.
9835 (complete_linespec_component, linespec_complete): New.
9836 * linespec.h (linespec_complete): Declare.
9837
9838 2017-07-17 Pedro Alves <palves@redhat.com>
9839
9840 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
9841 Handle 'operator<' / 'operator<<'.
9842
9843 2017-07-17 Pedro Alves <palves@redhat.com>
9844
9845 * completer.c (collect_explicit_location_matches): Handle
9846 MATCH_LABEL.
9847 (convert_explicit_location_to_linespec): New, factored out from
9848 ...
9849 (convert_explicit_location_to_sals): ... this.
9850 (complete_label): New.
9851 (linespec_complete_label, find_label_symbols_in_block): New.
9852 (find_label_symbols): Add completion_mode parameter and adjust to
9853 call find_label_symbols_in_block.
9854 * linespec.h (linespec_complete_label): Declare.
9855
9856 2017-07-17 Pedro Alves <palves@redhat.com>
9857
9858 * ada-lang.c (ada_collect_symbol_completion_matches): Add
9859 complete_symbol_mode parameter.
9860 * cli/cli-cmds.c (complete_command): Get the completion result out
9861 of the handle_brkchars tracker if used a custom word point.
9862 * completer.c: Include "linespec.h".
9863 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
9864 (advance_to_expression_complete_word_point): New.
9865 (completion_tracker::completes_to_completion_word): New.
9866 (complete_files_symbols): Pass down
9867 complete_symbol_mode::EXPRESSION.
9868 (explicit_options, probe_options): New.
9869 (collect_explicit_location_matches): Complete on the
9870 explictit_loc->foo instead of word. Use
9871 linespec_complete_function. Handle MATCH_LINE. Handle offering
9872 keyword and options completions.
9873 (backup_text_ptr): Delete.
9874 (skip_keyword): New.
9875 (complete_explicit_location): Remove 'word' parameter. Add
9876 language, quoted_arg_start and quoted_arg_end parameters.
9877 Rewrite, parsing left to right.
9878 (location_completer): Rewrite.
9879 (location_completer_handle_brkchars): New function.
9880 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
9881 (enum complete_line_internal_reason): Adjust comments.
9882 (completion_tracker::discard_completions): New.
9883 (completer_handle_brkchars_func_for_completer): Handle
9884 location_completer.
9885 (gdb_custom_word_point_brkchars)
9886 (gdb_org_rl_basic_quote_characters): New.
9887 (gdb_completion_word_break_characters_throw)
9888 (completion_find_completion_word): Handle trackers that use a
9889 custom word point.
9890 (completion_tracker::advance_custom_word_point_by): New.
9891 (completion_tracker::build_completion_result): Don't rely on
9892 readline appending the quote char.
9893 (gdb_rl_attempted_completion_function_throw): Handle trackers that
9894 use a custom word point.
9895 (gdb_rl_attempted_completion_function): Restore
9896 rl_basic_quote_characters.
9897 * completer.h (class completion_tracker): Extend intro comment.
9898 (completion_tracker::set_quote_char)
9899 (completion_tracker::quote_char)
9900 (completion_tracker::set_use_custom_word_point)
9901 (completion_tracker::use_custom_word_point)
9902 (completion_tracker::custom_word_point)
9903 (completion_tracker::set_custom_word_point)
9904 (completion_tracker::advance_custom_word_point_by)
9905 (completion_tracker::completes_to_completion_word)
9906 (completion_tracker::discard_completions): New methods.
9907 (completion_tracker::m_quote_char)
9908 (completion_tracker::m_use_custom_word_point)
9909 (completion_tracker::m_custom_word_point): New fields.
9910 (advance_to_expression_complete_word_point): Declare.
9911 * f-lang.c (f_collect_symbol_completion_matches): Add
9912 complete_symbol_mode parameter.
9913 * language.h (struct language_defn)
9914 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
9915 parameter.
9916 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
9917 (linespec_complete_function): New function.
9918 (linespec_lexer_lex_keyword): Adjust.
9919 * linespec.h (linespec_keywords, linespec_complete_function): New
9920 declarations.
9921 * location.c (find_end_quote): New function.
9922 (explicit_location_lex_one): Add explicit_completion_info
9923 parameter. Save quoting info. Don't throw if being called for
9924 completion. Don't handle Ada operators here.
9925 (is_cp_operator, skip_op_false_positives, first_of)
9926 (explicit_location_lex_one_function): New function.
9927 (string_to_explicit_location): Replace 'dont_throw' parameter with
9928 an explicit_completion_info pointer parameter. Handle it. Don't
9929 use explicit_location_lex_one to lex function names. Use
9930 explicit_location_lex_one_function instead.
9931 * location.h (struct explicit_completion_info): New.
9932 (string_to_explicit_location): Replace 'dont_throw' parameter with
9933 an explicit_completion_info pointer parameter.
9934 * symtab.c (default_collect_symbol_completion_matches_break_on):
9935 Add complete_symbol_mode parameter. Handle LINESPEC mode.
9936 (default_collect_symbol_completion_matches)
9937 (collect_symbol_completion_matches): Add complete_symbol_mode
9938 parameter.
9939 (collect_symbol_completion_matches_type): Pass down
9940 complete_symbol_mode::EXPRESSION.
9941 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9942 parameter. Handle LINESPEC mode.
9943 * symtab.h (complete_symbol_mode): New.
9944 (default_collect_symbol_completion_matches_break_on)
9945 (default_collect_symbol_completion_matches)
9946 (collect_symbol_completion_matches)
9947 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9948 parameter.
9949
9950 2017-07-17 Pedro Alves <palves@redhat.com>
9951
9952 * utils.c (enum class strncmp_iw_mode): New.
9953 (strcmp_iw): Rename to ...
9954 (strncmp_iw_with_mode): ... this. Add string2_len and mode
9955 parameters. Handle them.
9956 (strncmp_iw): New.
9957 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
9958 * utils.h (strncmp_iw): Declare.
9959 (strcmp_iw): Move describing comments here.
9960
9961 2017-07-17 Pedro Alves <palves@redhat.com>
9962
9963 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
9964 CP_OPERATOR_STR.
9965 * c-typeprint.c (is_type_conversion_operator): Use
9966 CP_OPERATOR_STR.
9967 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
9968 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
9969 CP_OPERATOR_LEN.
9970 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
9971 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
9972 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
9973 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
9974 CP_OPERATOR_STR.
9975 * location.c: Include "cp-support.h".
9976 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
9977 CP_OPERATOR_STR.
9978 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
9979 CP_OPERATOR_LEN.
9980
9981 2017-07-17 Pedro Alves <palves@redhat.com>
9982
9983 * cli/cli-cmds.c (complete_command): Use a completion tracker
9984 along with completion_find_completion_word for handle_brkchars
9985 phase.
9986 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
9987 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
9988 (struct gdb_rl_completion_word_info): New.
9989 (gdb_rl_find_completion_word): New.
9990 (completion_find_completion_word): New.
9991 * completer.h (completion_find_completion_word): Declare.
9992
9993 2017-07-17 Pedro Alves <palves@redhat.com>
9994
9995 * ada-lang.c (symbol_completion_match): Adjust comments.
9996 (symbol_completion_add): Replace vector parameter with
9997 completion_tracker parameter. Use it.
9998 (ada_make_symbol_completion_list): Rename to...
9999 (ada_collect_symbol_completion_matches): ... this. Add
10000 completion_tracker parameter and use it.
10001 (ada_language_defn): Adjust.
10002 * break-catch-syscall.c (catch_syscall_completer): Adjust
10003 prototype and work with completion_tracker instead of VEC.
10004 * breakpoint.c (condition_completer): Adjust prototype and work
10005 with completion_tracker instead of VEC.
10006 * c-lang.c (c_language_defn, cplus_language_defn)
10007 (asm_language_defn, minimal_language_defn): Adjust to renames.
10008 * cli/cli-cmds.c (complete_command): Rework using
10009 completion_tracker. Catch exceptions when completing.
10010 * cli/cli-decode.c (integer_unlimited_completer)
10011 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10012 with completion_tracker instead of VEC.
10013 * command.h (struct completion_tracker): Forward declare.
10014 (completer_ftype, completer_handle_brkchars_ftype): Change
10015 types.
10016 (complete_on_cmdlist, complete_on_enum): Adjust.
10017 * completer.c: Include <algorithm>.
10018 (struct gdb_completer_state): New.
10019 (current_completion): New global.
10020 (readline_line_completion_function): Delete.
10021 (noop_completer, filename_completer)
10022 (filename_completer_handle_brkchars, complete_files_symbols)
10023 (linespec_location_completer): Adjust to work with a
10024 completion_tracker instead of a VEC.
10025 (string_or_empty): New.
10026 (collect_explicit_location_matches): Adjust to work with a
10027 completion_tracker instead of a VEC.
10028 (explicit_location_completer): Rename to ...
10029 (complete_explicit_location): ... this and adjust to work with a
10030 completion_tracker instead of a VEC.
10031 (location_completer): Adjust to work with a completion_tracker
10032 instead of a VEC.
10033 (add_struct_fields): Adjust to work with a completion_list instead
10034 of VEC.
10035 (expression_completer): Rename to ...
10036 (complete_expression): ... this and adjust to work with a
10037 completion_tracker instead of a VEC. Use complete_files_symbols.
10038 (expression_completer): Reimplement on top of complete_expression.
10039 (symbol_completer): Adjust to work with a completion_tracker
10040 instead of a VEC.
10041 (enum complete_line_internal_reason): Add describing comments.
10042 (complete_line_internal_normal_command): Adjust to work with a
10043 completion_tracker instead of a VEC.
10044 (complete_line_internal): Rename to ...
10045 (complete_line_internal_1): ... this and adjust to work with a
10046 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10047 handle_brkchars phase.
10048 (new_completion_tracker): Delete.
10049 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10050 complete_line_internal_1.
10051 (free_completion_tracker): Delete.
10052 (INITIAL_COMPLETION_HTAB_SIZE): New.
10053 (completion_tracker::completion_tracker)
10054 (completion_tracker::~completion_tracker): New.
10055 (maybe_add_completion): Delete.
10056 (completion_tracker::maybe_add_completion)
10057 (completion_tracker::add_completion)
10058 (completion_tracker::add_completions): New.
10059 (throw_max_completions_reached_error): Delete.
10060 (complete_line): Adjust to work with a completion_tracker instead
10061 of a VEC. Don't create a completion_tracker_t or check for max
10062 completions here.
10063 (command_completer, command_completer_handle_brkchars)
10064 (signal_completer, reg_or_group_completer_1)
10065 (reg_or_group_completer, default_completer_handle_brkchars):
10066 Adjust to work with a completion_tracker.
10067 (gdb_completion_word_break_characters_throw): New.
10068 (gdb_completion_word_break_characters): Reimplement.
10069 (line_completion_function): Delete.
10070 (completion_tracker::recompute_lowest_common_denominator)
10071 (expand_preserving_ws)
10072 (completion_tracker::build_completion_result)
10073 (completion_result::completion_result)
10074 (completion_result::completion_result)
10075 (completion_result::~completion_result)
10076 (completion_result::completion_result)
10077 (completion_result::release_match_list, compare_cstrings)
10078 (completion_result::sort_match_list)
10079 (completion_result::reset_match_list)
10080 (gdb_rl_attempted_completion_function_throw)
10081 (gdb_rl_attempted_completion_function): New.
10082 * completer.h (completion_list, struct completion_result)
10083 (class completion_tracker): New.
10084 (complete_line): Add completion_tracker parameter.
10085 (readline_line_completion_function): Delete.
10086 (gdb_rl_attempted_completion_function): New.
10087 (noop_completer, filename_completer, expression_completer)
10088 (location_completer, symbol_completer, command_completer)
10089 (signal_completer, reg_or_group_completer): Update prototypes.
10090 (completion_tracker_t, new_completion_tracker)
10091 (make_cleanup_free_completion_tracker): Delete.
10092 (enum maybe_add_completion_enum): Delete.
10093 (maybe_add_completion): Delete.
10094 (throw_max_completions_reached_error): Delete.
10095 * corefile.c (complete_set_gnutarget): Adjust to work with a
10096 completion_tracker instead of a VEC.
10097 * cp-abi.c (cp_abi_completer): Adjust to work with a
10098 completion_tracker instead of a VEC.
10099 * d-lang.c (d_language_defn): Adjust.
10100 * disasm.c (disassembler_options_completer): Adjust to work with a
10101 completion_tracker instead of a VEC.
10102 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10103 (f_collect_symbol_completion_matches): ... this. Adjust to work
10104 with a completion_tracker instead of a VEC.
10105 (f_language_defn): Adjust.
10106 * go-lang.c (go_language_defn): Adjust.
10107 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10108 Adjust to work with a completion_tracker instead of a VEC.
10109 * infrun.c (handle_completer): Likewise.
10110 * interps.c (interpreter_completer): Likewise.
10111 * interps.h (interpreter_completer): Likewise.
10112 * language.c (unknown_language_defn, auto_language_defn)
10113 (local_language_defn): Adjust.
10114 * language.h (language_defn::la_make_symbol_completion_list):
10115 Rename to ...
10116 (language_defn::la_collect_symbol_completion_matches): ... this
10117 and adjust to work with a completion_tracker instead of a VEC.
10118 * m2-lang.c (m2_language_defn): Adjust.
10119 * objc-lang.c (objc_language_defn): Adjust.
10120 * opencl-lang.c (opencl_language_defn): Adjust.
10121 * p-lang.c (pascal_language_defn): Adjust.
10122 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10123 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10124 with a completion_tracker.
10125 * rust-lang.c (rust_language_defn): Adjust.
10126 * symtab.c (free_completion_list, do_free_completion_list)
10127 (return_val, completion_tracker): Delete.
10128 (completion_list_add_name, completion_list_add_symbol)
10129 (completion_list_add_msymbol, completion_list_objc_symbol)
10130 (completion_list_add_fields, add_symtab_completions): Add
10131 completion_tracker parameter and use it.
10132 (default_make_symbol_completion_list_break_on_1): Rename to...
10133 (default_collect_symbol_completion_matches_break_on): ... this.
10134 Add completion_tracker parameter and use it instead of allocating
10135 a completion tracker here.
10136 (default_make_symbol_completion_list_break_on): Delete old
10137 implementation.
10138 (default_make_symbol_completion_list): Delete.
10139 (default_collect_symbol_completion_matches): New.
10140 (make_symbol_completion_list): Delete.
10141 (collect_symbol_completion_matches): New.
10142 (make_symbol_completion_type): Rename to ...
10143 (collect_symbol_completion_matches_type): ... this. Add
10144 completion_tracker parameter and use it instead of VEC.
10145 (make_file_symbol_completion_list_1): Rename to...
10146 (collect_file_symbol_completion_matches): ... this. Add
10147 completion_tracker parameter and use it instead of VEC.
10148 (make_file_symbol_completion_list): Delete.
10149 (add_filename_to_list): Use completion_list instead of a VEC.
10150 (add_partial_filename_data::list): Now a completion_list.
10151 (make_source_files_completion_list): Work with a completion_list
10152 instead of a VEC.
10153 * symtab.h: Include "completer.h".
10154 (default_make_symbol_completion_list_break_on)
10155 (default_make_symbol_completion_list, make_symbol_completion_list)
10156 (make_symbol_completion_type, make_file_symbol_completion_list)
10157 (make_source_files_completion_list): Delete.
10158 (default_collect_symbol_completion_matches_break_on)
10159 (default_collect_symbol_completion_matches)
10160 (collect_symbol_completion_matches)
10161 (collect_symbol_completion_matches_type)
10162 (collect_file_symbol_completion_matches)
10163 (make_source_files_completion_list): New.
10164 * top.c (init_main): Don't install a rl_completion_entry_function
10165 hook. Install a rl_attempted_completion_function hook instead.
10166 * tui/tui-layout.c (layout_completer): Adjust to work with a
10167 completion_tracker.
10168 * tui/tui-regs.c (tui_reggroup_completer):
10169 * tui/tui-win.c (window_name_completer, focus_completer)
10170 (winheight_completer): Adjust to work with a completion_tracker.
10171 * value.c: Include "completer.h".
10172 (complete_internalvar): Adjust to work with a completion_tracker.
10173 * value.h (complete_internalvar): Likewise.
10174
10175 2017-07-17 Pedro Alves <palves@redhat.com>
10176
10177 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10178 renames.
10179 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10180 comments to completer_ftype's declaration.
10181 <completer_handle_brkchars>: Change type to
10182 completer_handle_brkchars_ftype.
10183 * command.h (completer_ftype): Add describing comment and give
10184 names to parameters.
10185 (completer_ftype_void): Rename to ...
10186 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10187 (set_cmd_completer_handle_brkchars): Adjust.
10188 * completer.c (filename_completer_handle_brkchars): New function.
10189 (complete_line_internal_normal_command): New function, factored
10190 out from ...
10191 (complete_line_internal): ... here.
10192 (command_completer_handle_brkchars)
10193 (default_completer_handle_brkchars)
10194 (completer_handle_brkchars_func_for_completer): New functions.
10195 * completer.h (set_gdb_completion_word_break_characters): Delete
10196 declaration.
10197 (completer_handle_brkchars_func_for_completer): New declaration.
10198 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10199 completer_handle_brkchars_func_for_completer.
10200
10201 2017-07-17 Pedro Alves <palves@redhat.com>
10202
10203 * completer.c (symbol_completer): New function, based on
10204 make_symbol_completion_list_fn.
10205 * completer.h (symbol_completer): New declaration.
10206 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10207 * python/py-cmd.c (completers): Adjust.
10208 * symtab.c (make_symbol_completion_list_fn): Delete.
10209 * symtab.h (make_symbol_completion_list_fn): Delete.
10210 * cli/cli-decode.c (add_cmd): Adjust.
10211
10212 2017-07-17 Pedro Alves <palves@redhat.com>
10213
10214 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10215 * dwarf2read.c: Include "filename-seen-cache.h".
10216 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10217 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10218 * filename-seen-cache.c: New file.
10219 * filename-seen-cache.h: New file.
10220 * symtab.c: Include "filename-seen-cache.h".
10221 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10222 (create_filename_seen_cache, clear_filename_seen_cache)
10223 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10224 to filename-seen-cache.h/filename-seen-cache.c.
10225 (output_source_filename, sources_info)
10226 (maybe_add_partial_symtab_filename)
10227 (make_source_files_completion_list): Adjust to use
10228 filename_seen_cache.
10229
10230 2017-07-17 Pedro Alves <palves@redhat.com>
10231
10232 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10233 fields.
10234 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10235 dwarf2_debug_sections*)): New.
10236 (dwarf2_per_objfile::dwarf2_per_objfile(const
10237 dwarf2_per_objfile&)): Declare as deleted.
10238 (dwarf2_per_objfile::operator=): Declare as deleted.
10239 (dwarf2_per_objfile::dwarf2_per_objfile)
10240 (dwarf2_per_objfile::~dwarf2_per_objfile)
10241 (dwarf2_per_objfile::free_cached_comp_units): New.
10242 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10243 ctor. Call dwarf2_per_objfile's ctor manually.
10244 (dwarf2_locate_sections): Deleted/refactored as ...
10245 (dwarf2_per_objfile::locate_sections): ... this new method.
10246 (free_cached_comp_units): Defer to
10247 dwarf2_per_objfile::free_cached_comp_units.
10248 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10249
10250 2017-07-14 Tom Tromey <tom@tromey.com>
10251
10252 PR rust/21764:
10253 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10254 parameter.
10255 <UNOP_SIZEOF>: Split into separate case.
10256 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10257
10258 2017-07-14 Tom Tromey <tom@tromey.com>
10259
10260 PR rust/21763:
10261 * symtab.c (symbol_matches_domain): Add language_rust to special
10262 case.
10263 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10264 treat LOC_TYPEDEF symbols as variables.
10265
10266 2017-07-14 Pedro Alves <palves@redhat.com>
10267
10268 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10269 symtabs matching all symtabs with SRCFILE as file name instead of
10270 only considering the first hit, with lookup_symtab.
10271
10272 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10273
10274 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10275 operator_name parameters.
10276 (gen_expr): Update function call.
10277
10278 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10279
10280 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10281 parameter.
10282 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10283 Likewise.
10284 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10285 parameter, use agent_expr::gdbarch instead, update function
10286 calls.
10287 (locexpr_tracepoint_var_ref): Likewise.
10288 (loclist_tracepoint_var_ref): Likewise.
10289 * ax-gdb.c (gen_trace_static_fields): Likewise.
10290 (gen_traced_pop): Likewise.
10291 (gen_frame_args_address): Likewise.
10292 (gen_frame_locals_address): Likewise.
10293 (gen_var_ref): Likewise.
10294 (gen_struct_ref_recursive): Likewise.
10295 (gen_static_field): Likewise.
10296 (gen_maybe_namespace_elt): Likewise.
10297 (gen_expr): Likewise.
10298 (gen_trace_for_var): Likewise.
10299 (gen_trace_for_expr): Likewise.
10300 (gen_trace_for_return_address): Likewise.
10301
10302 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10303
10304 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10305 parameter.
10306 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10307
10308 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10309
10310 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10311 from ax, update calls.
10312 (gen_usual_arithmetic): Likewise.
10313 (gen_integral_promotions): Likewise.
10314 (gen_bitfield_ref): Likewise.
10315 (gen_primitive_field): Likewise.
10316 (gen_struct_ref_recursive): Likewise.
10317 (gen_struct_ref): Likewise.
10318 (gen_maybe_namespace_elt): Likewise.
10319 (gen_struct_elt_for_reference): Likewise.
10320 (gen_namespace_elt): Likewise.
10321 (gen_aggregate_elt_ref): Likewise.
10322 (gen_expr): Get gdbarch from ax, update calls.
10323 (gen_expr_binop_rest): Likewise.
10324
10325 2017-07-13 Pedro Alves <palves@redhat.com>
10326
10327 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10328 as default tdesc.
10329 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10330 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10331 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10332 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10333 tdep.
10334 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10335 Get final tdesc from the tdep.
10336 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10337 default tdesc.
10338 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10339 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10340 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10341 Use it as default tdesc.
10342 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10343 down to amd_init_abi. No longer handle fallback tdesc here.
10344 * amd64-tdep.h (tdesc_x32): Declare.
10345 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10346 parameter.
10347 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10348 as default tdesc.
10349
10350 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10351
10352 * s390-linux-tdep.c (s390_process_record): Add support for
10353 instructions new in arch12.
10354
10355 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10356
10357 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10358 PT_GETFSBASE and PT_GETGSBASE.
10359 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10360 PT_SETGSBASE.
10361
10362 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10363
10364 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10365 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10366 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10367 those rules.
10368 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10369 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10370 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10371 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10372 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10373 * features/i386/amd64.xml: Add 64bit-segments.xml.
10374 * features/i386/amd64-avx-avx512.c: Regenerated.
10375 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10376 * features/i386/amd64-avx-mpx.c: Regenerated.
10377 * features/i386/amd64-avx.c: Regenerated.
10378 * features/i386/amd64-mpx.c: Regenerated.
10379 * features/i386/amd64.c: Regenerated.
10380 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10381 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10382 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10383 * regformats/i386/amd64-avx.dat: Regenerated.
10384 * regformats/i386/amd64-mpx.dat: Regenerated.
10385 * regformats/i386/amd64.dat: Regenerated.
10386
10387 2017-07-10 Yao Qi <yao.qi@linaro.org>
10388
10389 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10390 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10391
10392 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10393
10394 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10395 unsetenv.
10396 * gnulib/aclocal.m4: Regenerate.
10397 * gnulib/config.in: Regenerate.
10398 * gnulib/configure: Regenerate.
10399 * gnulib/import/Makefile.am: Regenerate.
10400 * gnulib/import/Makefile.in: Regenerate.
10401 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10402 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10403 * gnulib/import/m4/environ.m4: New file.
10404 * gnulib/import/m4/setenv.m4: New file.
10405 * gnulib/import/setenv.c: New file.
10406 * gnulib/import/unsetenv.c: New file.
10407
10408 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10409
10410 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10411 address when op is DW_OP_addr.
10412
10413 2017-07-09 Tom Tromey <tom@tromey.com>
10414
10415 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10416 check and apply to outer type.
10417
10418 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10419
10420 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10421 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10422 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10423 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10424
10425 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10426
10427 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10428
10429 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10430
10431 * corelow.c (get_core_siginfo): Remove.
10432 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10433 instead of get_core_siginfo.
10434 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10435 * gdbarch.h: Re-generate.
10436 * gdbarch.c: Re-generate.
10437 * linux-tdep.c (linux_core_xfer_siginfo): New.
10438 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10439
10440 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10441
10442 * corelow.c (thread_section_name): Move to ...
10443 * gdbcore.h (thread_section_name): ... here.
10444
10445 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10446
10447 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
10448 (struct siginfo32): New.
10449 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
10450 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
10451 via ptrace(PT_LWPINFO).
10452
10453 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10454
10455 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
10456 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
10457 (fbsd_get_siginfo_type): New.
10458 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
10459 (_initialize_fbsd_tdep): New.
10460
10461 2017-07-06 David Blaikie <dblaikie@gmail.com>
10462
10463 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
10464 a singular dwo_unit*) to support multiple CUs in the same way that
10465 multiple TUs are supported.
10466 (create_cus_hash_table): Replace create_dwo_cu with a function for
10467 parsing multiple CUs from a DWO file.
10468 (open_and_init_dwo_file): Use create_cus_hash_table rather than
10469 create_dwo_cu.
10470 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
10471 htab_find, rather than comparing the signature to a singleton CU in
10472 the dwo_file.
10473
10474 2017-07-06 Pedro Alves <palves@redhat.com>
10475
10476 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
10477
10478 2017-07-04 Pedro Alves <palves@redhat.com>
10479
10480 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
10481 * gdbtypes.h (TYPE_STATIC): Delete.
10482 (struct fn_field) <is_public, is_abstract, is_static, is_final,
10483 is_synchronized, is_native>: Delete.
10484 <dummy>: Bump.
10485 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
10486 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
10487 (TYPE_FN_FIELD_ABSTRACT): Delete.
10488
10489 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
10490
10491 * buffer.h (buffer_finish): Fix spelling mistakes.
10492
10493 2017-07-01 Eli Zaretskii <eliz@gnu.org>
10494
10495 * .dir-locals.el: Automatically switch to C-style comments in
10496 versions of Emacs that support the feature.
10497
10498 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10499 Pedro Alves <palves@redhat.com>
10500
10501 PR cli/21688
10502 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
10503 (process_next_line): New variable 'inline_cmd'.
10504 Adjust 'if' clauses for "python", "compile" and "guile" to use
10505 'command_name_equals' and check for '!inline_cmd'.
10506
10507 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10508
10509 PR cli/21688
10510 * cli/cli-script.c (command_name_equals_not_inline): New function.
10511 (process_next_line): Adjust 'if' clauses for "python", "compile"
10512 and "guile" to use command_name_equals_not_inline.
10513
10514 2017-06-29 Pedro Alves <palves@redhat.com>
10515
10516 * completer.c (expression_completer): Call
10517 linespec_location_completer instead of location_completer.
10518
10519 2017-06-29 Pedro Alves <palves@redhat.com>
10520
10521 * completer.c (expression_completer): Remove code that recomputes
10522 'text' from 'word'.
10523
10524 2017-06-29 Yao Qi <yao.qi@linaro.org>
10525
10526 * regformats/regdat.sh: Generate code with
10527 "ifndef IN_PROCESS_AGENT".
10528
10529 2017-06-28 Pedro Alves <palves@redhat.com>
10530
10531 * command.h: Include "common/scoped_restore.h".
10532
10533 2017-06-28 Yao Qi <yao.qi@linaro.org>
10534
10535 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
10536 instead of obstack_grow.
10537
10538 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
10539
10540 PR gdb/21337
10541 * symfile.c (reread_symbols): Call objfiles_changed just before
10542 read_symbols.
10543
10544 2017-06-27 Pedro Alves <palves@redhat.com>
10545
10546 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
10547 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
10548 (completion_list_add_symbol, completion_list_add_msymbol):
10549 ... these new functions.
10550 (add_symtab_completions)
10551 (default_make_symbol_completion_list_break_on_1): Adjust.
10552
10553 2017-06-27 Pedro Alves <palves@redhat.com>
10554
10555 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10556 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10557 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10558 dtor.
10559 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10560 'storage_obstack' field an auto_obstack. In-class initialize all
10561 non-bitfield fields. Make minsyms_read bool.
10562 * symfile.c (read_symbols): Adjust.
10563
10564 2017-06-27 Alan Hayward <alan.hayward@arm.com>
10565
10566 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10567 (gdbsim_store_register): Likewise.
10568
10569 2017-06-27 Pedro Alves <palves@redhat.com>
10570
10571 * c-exp.y (name_obstack): Now an auto_obstack.
10572 (yylex): Use auto_obstack::clear.
10573 (c_parse): Use auto_obstack::clear instead of reinitializing and
10574 freeing the obstack.
10575 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10576 * d-exp.y (name_obstack): Now an auto_obstack.
10577 (yylex): Use auto_obstack::clear.
10578 (d_parse): Use auto_obstack::clear instead of reinitializing and
10579 freeing the obstack.
10580 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10581 auto_obstack.
10582 * dwarf2read.c (create_addrmap_from_index)
10583 (dwarf2_build_psymtabs_hard)
10584 (update_enumeration_type_from_children): Likewise.
10585 * gdb_obstack.h (auto_obstack): New type.
10586 * go-exp.y (name_obstack): Now an auto_obstack.
10587 (build_packaged_name): Use auto_obstack::clear.
10588 (go_parse): Use auto_obstack::clear instead of reinitializing and
10589 freeing the obstack.
10590 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10591 auto_obstack.
10592 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
10593 * rust-exp.y (work_obstack): Now an auto_obstack.
10594 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
10595 reinitializing and freeing the obstack.
10596 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
10597 (host_char_to_target): Use auto_obstack.
10598 * utils.h (make_cleanup_obstack_free): Delete declaration.
10599 * valprint.c (generic_emit_char, generic_printstr): Use
10600 auto_obstack.
10601
10602 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
10603
10604 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
10605 thread.
10606 (darwin_init_thread_list): Don't update dummy thread.
10607 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
10608
10609 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10610
10611 * record-full.c (netorder16): Remove.
10612
10613 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10614
10615 * common/diagnostics.h: Define macros for GCC.
10616 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
10617 * common/vec.h: Include diagnostics.h.
10618 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
10619 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
10620 warning.
10621
10622 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10623
10624 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
10625 New macro.
10626 * ada-lex.l: Ignore deprecated register warnings.
10627
10628 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10629
10630 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10631 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10632
10633 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10634
10635 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10636 its own line.
10637
10638 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10639
10640 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10641
10642 2017-06-23 Alan Hayward <alan.hayward@arm.com>
10643
10644 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
10645 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
10646 (xtensa_register_read_masked): Likewise.
10647
10648 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
10649
10650 * common/environ.c (gdb_environ::unset): Update comment.
10651
10652 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10653
10654 * python/py-unwind.c (pyuw_sniffer): Allocate space for
10655 registers.
10656
10657 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10658
10659 * record-full.c (record_full_exec_insn): Use byte_vector.
10660
10661 2017-06-22 Yao Qi <yao.qi@linaro.org>
10662
10663 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
10664 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10665
10666 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10667
10668 * remote.c (cached_reg): Move from here...
10669 * regcache.h (cached_reg): ...to here.
10670 * python/py-unwind.c (struct reg_info): Remove.
10671 (cached_frame_info): Use cached_reg_t.
10672 (pyuw_prev_register): Likewise.
10673 (pyuw_sniffer): Use cached_reg_t and allocate registers.
10674 (pyuw_dealloc_cache): Free all registers.
10675
10676 2017-06-22 Pedro Alves <palves@redhat.com>
10677 Simon Marchi <simon.marchi@ericsson.com>
10678
10679 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
10680 warning.
10681 * common/diagnostics.h: New file.
10682
10683 2017-06-22 Pedro Alves <palves@redhat.com>
10684
10685 * common/agent.h: Add include guards.
10686
10687 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
10688
10689 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
10690 talk about addressable units instead of bytes.
10691
10692 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10693
10694 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
10695 of '::const_iterator'.
10696
10697 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10698
10699 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10700 'unittests/environ-selftests.c'.
10701 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
10702 * charset.c (find_charset_names): Declare object 'iconv_env'.
10703 Update code to use 'iconv_env' object. Remove call to
10704 'free_environ'.
10705 * common/environ.c: Include <utility>.
10706 (make_environ): Delete function.
10707 (free_environ): Delete function.
10708 (gdb_environ::clear): New function.
10709 (gdb_environ::operator=): New function.
10710 (gdb_environ::get): Likewise.
10711 (environ_vector): Delete function.
10712 (set_in_environ): Delete function.
10713 (gdb_environ::set): New function.
10714 (unset_in_environ): Delete function.
10715 (gdb_environ::unset): New function.
10716 (gdb_environ::envp): Likewise.
10717 * common/environ.h: Include <vector>.
10718 (struct gdb_environ): Delete; transform into...
10719 (class gdb_environ): ... this class.
10720 (free_environ): Delete prototype.
10721 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
10722 environ_vector): Likewise.
10723 * infcmd.c (run_command_1): Update code to call
10724 'envp' from 'gdb_environ' class.
10725 (environment_info): Update code to call methods from 'gdb_environ'
10726 class.
10727 (unset_environment_command): Likewise.
10728 (path_info): Likewise.
10729 (path_command): Likewise.
10730 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
10731 (inferior::inferior): Initialize 'environment' using the host's
10732 information.
10733 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
10734 Include "environ.h".
10735 (class inferior) <environment>: Change type from 'struct
10736 gdb_environ' to 'gdb_environ'.
10737 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
10738 methods from 'gdb_environ' class.
10739 * solib.c (solib_find_1): Likewise
10740 * unittests/environ-selftests.c: New file.
10741
10742 2017-06-20 Yao Qi <yao.qi@linaro.org>
10743
10744 * features/i386/i386-linux.xml: Exchange the order of including
10745 32bit-linux.xml and 32bit-sse.xml.
10746 * features/i386/i386-linux.c: Regenerated.
10747
10748 2017-06-20 Yao Qi <yao.qi@linaro.org>
10749
10750 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
10751 Delete copy ctor and assignment operator.
10752 (tdesc_type): Likewise.
10753 (tdesc_feature): Likewise.
10754 (tdesc_free_reg): Remove.
10755 (tdesc_create_reg): Use new.
10756 (tdesc_free_type): Remove.
10757 (tdesc_create_vector): Use new.
10758 (tdesc_create_union): Likewise.
10759 (tdesc_create_flags): Likewise.
10760 (tdesc_create_enum): Likewise.
10761 (tdesc_free_feature): Delete.
10762 (free_target_description): Use delete.
10763
10764 2017-06-19 John Baldwin <jhb@FreeBSD.org>
10765
10766 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
10767 registers.
10768
10769 2017-06-19 Pedro Alves <palves@redhat.com>
10770
10771 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
10772 after gdb::unlinker.
10773
10774 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
10775
10776 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
10777 gdb_environ to access an environment variable.
10778
10779 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10780
10781 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
10782 gdb_byte*.
10783
10784 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10785
10786 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
10787
10788 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10789
10790 * configure: Re-generate.
10791 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
10792
10793 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10794
10795 * configure: Re-generate.
10796 * warning.m4: Pass -Werror to compiler when checking for
10797 supported warning flags.
10798
10799 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10800
10801 * Makefile.in (COMPILE.pre): Add "-x c++".
10802
10803 2017-06-16 Alan Hayward <alan.hayward@arm.com>
10804 Pedro Alves <palves@redhat.com>
10805 Yao Qi <yao.qi@linaro.org>
10806
10807 * defs.h (RequireLongest): New.
10808 (extract_integer): Declare function template.
10809 (extract_signed_integer): Remove the declaration, but define it
10810 static inline.
10811 (extract_unsigned_integer): Likewise.
10812 (store_integer): Declare function template.
10813 (store_signed_integer): Remove the declaration, but define it
10814 static inline.
10815 (store_unsigned_integer): Likewise.
10816 * findvar.c (extract_integer): New function template.
10817 (extract_signed_integer): Remove.
10818 (extract_unsigned_integer): Remove.
10819 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
10820 instantiations.
10821 (store_integer): New function template.
10822 (store_signed_integer): Remove.
10823 (store_unsigned_integer): Remove.
10824 (store_integer): Explicit instantiations.
10825 * regcache.c (regcache_raw_read_signed): Update.
10826 (regcache::raw_read): New function.
10827 (regcache::raw_read_signed): Remove.
10828 (regcache::raw_read_unsigned): Remove.
10829 (regcache_raw_read_unsigned): Update.
10830 (regcache_raw_write_unsigned): Update.
10831 (regcache::raw_write_signed): Remove.
10832 (regcache::raw_write): New function.
10833 (regcache_cooked_read_signed): Update.
10834 (regcache::raw_write_unsigned): Remove.
10835 (regcache::cooked_read_signed): Remove.
10836 (regcache_cooked_read_unsigned): Update.
10837 (regcache::cooked_read_unsigned): Remove.
10838 (regcache_cooked_write_signed): Update.
10839 (regcache_cooked_write_unsigned): Update.
10840 * regcache.h (regcache) <raw_read_signed>: Remove.
10841 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
10842 <raw_read, raw_write>: New.
10843 <cooked_read_signed, cooked_write_signed>: Remove.
10844 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
10845 <cooked_read, cooked_write>: New.
10846 * sh64-tdep.c (sh64_pseudo_register_read): Update.
10847 (sh64_pseudo_register_write): Update.
10848
10849 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
10850
10851 * arc-tdep.c (arc_disassembler_options): New variable.
10852 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
10853 of default_print_insn.
10854 (arc_delayed_print_insn): Set info->section when needed,
10855 use default_print_insn to retrieve a disassembler.
10856
10857 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
10858
10859 PR gdb/21574
10860 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
10861 to mention $SHELL and startup-with-shell.
10862
10863 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
10864
10865 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
10866
10867 2017-06-14 Yao Qi <yao.qi@linaro.org>
10868
10869 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
10870 default_print_insn instead of print_insn_aarch64.
10871 * arm-tdep.c (gdb_print_insn_arm): Call
10872 default_print_insn instead of print_insn_big_arm
10873 and print_insn_little_arm.
10874 * i386-tdep.c (i386_print_insn): Call default_print_insn
10875 instead of print_insn_i386.
10876 * ia64-tdep.c (ia64_print_insn): Call
10877 default_print_insn instead of print_insn_ia64.
10878 * mips-tdep.c (gdb_print_insn_mips): Call
10879 default_print_insn instead of print_insn_big_mips
10880 and print_insn_little_mips.
10881 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
10882 instead of print_insn_spu.
10883
10884 2017-06-14 Pedro Alves <palves@redhat.com>
10885
10886 * ada-lang.c: Include "common/byte-vector.h".
10887 (ada_value_primitive_packed_val): Use gdb::byte_vector.
10888 * charset.c (wchar_iterator::iterate): Resize the vector instead
10889 of reserving it.
10890 * common/byte-vector.h: Include "common/def-vector.h".
10891 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
10892 * cli/cli-dump.c: Include "common/byte-vector.h".
10893 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
10894 * common/byte-vector.h: New file.
10895 * common/def-vector.h: New file.
10896 * common/default-init-alloc.h: New file.
10897 * dwarf2loc.c: Include "common/byte-vector.h".
10898 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
10899 instead of reserving it.
10900 * dwarf2read.c: Include "common/byte-vector.h".
10901 (data_buf::m_vec): Now a gdb::byte_vector.
10902 * gdb_regex.c: Include "common/def-vector.h".
10903 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
10904 * mi/mi-main.c: Include "common/byte-vector.h".
10905 (mi_cmd_data_read_memory): Use gdb::byte_vector.
10906 * printcmd.c: Include "common/byte-vector.h".
10907 (print_scalar_formatted): Use gdb::byte_vector.
10908 * valprint.c: Include "common/byte-vector.h".
10909 (maybe_negate_by_bytes, print_decimal_chars): Use
10910 gdb::byte_vector.
10911
10912 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10913
10914 * darwin-nat.c: Include "nat/fork-inferior.h".
10915
10916 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10917
10918 * configure.nat: Factor out Darwin bits that are not
10919 architecture-specific. Add fork-inferior.o.
10920
10921 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10922
10923 * configure.nat: Factor out AIX bits that are not
10924 architecture-specific. Add fork-inferior.o.
10925
10926 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10927
10928 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
10929 (read_pieced_value, write_pieced_value): ...here. Reduce to
10930 wrappers that just call rw_pieced_value.
10931
10932 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10933
10934 * dwarf2loc.c (write_pieced_value): When writing the data for a
10935 memory piece, use write_memory_with_notification instead of
10936 write_memory.
10937
10938 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10939
10940 * valops.c (read_value_memory): Change embedded_offset to
10941 represent a bit offset instead of a byte offset.
10942 * value.h (read_value_memory): Adjust comment.
10943
10944 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10945
10946 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
10947 dest_offset_bits and source_offset_bits.
10948 (write_pieced_value): Likewise.
10949
10950 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10951
10952 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
10953 given by DW_OP_bit_piece.
10954 (write_pieced_value): Likewise.
10955
10956 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10957
10958 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
10959 some other preparations to the places where sufficient information
10960 is available.
10961 (write_pieced_value): Likewise.
10962
10963 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10964
10965 * dwarf2loc.c (bits_to_bytes): New function.
10966 (read_pieced_value): Fix offset calculations for register pieces
10967 on big-endian targets.
10968 (write_pieced_value): Likewise.
10969
10970 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10971
10972 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
10973 (write_pieced_value): Likewise.
10974
10975 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10976
10977 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
10978 transfer the source value's least significant bits, instead of its
10979 lowest-addressed ones. Rename type_len to max_offset.
10980 (read_pieced_value): Mirror above changes to write_pieced_value as
10981 applicable.
10982
10983 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10984
10985 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
10986 truncate full bytes from dest_offset_bits before using it as an
10987 offset into the buffer.
10988
10989 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10990
10991 * dwarf2loc.c (write_pieced_value): Include transfer size in
10992 byte-wise check.
10993
10994 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10995
10996 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
10997 calculation of this_size.
10998
10999 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11000
11001 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11002 when targeting a bit-field.
11003 (write_pieced_value): Likewise.
11004
11005 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11006
11007 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11008 (allocate_piece_closure): Drop addr_size parameter.
11009 (dwarf2_evaluate_loc_desc_full): Adjust call to
11010 allocate_piece_closure.
11011
11012 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11013
11014 PR gdb/21226
11015 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11016 the LSB end, independent of endianness.
11017
11018 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11019
11020 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11021 size capping.
11022
11023 2017-06-13 Yao Qi <yao.qi@linaro.org>
11024
11025 * mips-linux-nat.c: Move include features/mips*-linux.c to
11026 mips-linux-tdep.c.
11027 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11028 to mips-linux-tdep.c.
11029 * mips-linux-tdep.c: Include features/mips*-linux.c
11030 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11031 functions.
11032 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11033 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11034 (tdesc_mips64_dsp_linux): Declare.
11035
11036 2017-06-12 Tom Tromey <tom@tromey.com>
11037
11038 * valprint.h (val_print_type_code_int): Remove.
11039 * valprint.c (generic_val_print_int): Always call
11040 val_print_scalar_formatted.
11041 (val_print_type_code_int): Remove.
11042 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11043 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11044 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11045 * ada-valprint.c (ada_val_print_num): Use
11046 val_print_scalar_formatted.
11047
11048 2017-06-12 Tom Tromey <tom@tromey.com>
11049
11050 * printcmd.c (print_scalar_formatted): Unify the two switches.
11051 Don't convert scalars to LONGEST.
11052
11053 2017-06-12 Tom Tromey <tom@tromey.com>
11054
11055 PR exp/16225:
11056 * valprint.h (print_decimal_chars): Update.
11057 * valprint.c (maybe_negate_by_bytes): New function.
11058 (print_decimal_chars): Add "is_signed" argument.
11059 * printcmd.c (print_scalar_formatted): Update.
11060
11061 2017-06-12 Tom Tromey <tom@tromey.com>
11062
11063 PR exp/16225:
11064 * valprint.h (print_binary_chars, print_hex_chars): Update.
11065 * valprint.c (val_print_type_code_int): Update.
11066 (print_binary_chars): Add "zero_pad" argument.
11067 (emit_octal_digit): New function.
11068 (print_octal_chars): Don't zero-pad.
11069 (print_decimal_chars): Likewise.
11070 (print_hex_chars): Add "zero_pad" argument.
11071 * sh64-tdep.c (sh64_do_fp_register): Update.
11072 * regcache.c (regcache::dump): Update.
11073 * printcmd.c (print_scalar_formatted): Update.
11074 * infcmd.c (default_print_one_register_info): Update.
11075
11076 2017-06-12 Pedro Alves <palves@redhat.com>
11077 Alan Hayward <alan.hayward@arm.com>
11078
11079 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11080 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11081 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11082 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11083 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11084
11085 2017-06-12 Pedro Alves <palves@redhat.com>
11086
11087 * dwarf2read.c (mapped_symtab::data): Now a vector of
11088 symtab_index_entry instead of vector of
11089 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11090 whether an element's name is NULL instead of checking whether the
11091 element itself is NULL.
11092 (find_slot): Change return type. Adjust.
11093 (hash_expand, , add_index_entry, uniquify_cu_indices)
11094 (write_hash_table): Adjust.
11095
11096 2017-06-12 Pedro Alves <palves@redhat.com>
11097
11098 * dwarf2read.c (recursively_count_psymbols): New function.
11099 (write_psymtabs_to_index): Call it to compute number of psyms and
11100 pass estimate size of psyms_seen to unordered_set's ctor.
11101
11102 2017-06-12 Pedro Alves <palves@redhat.com>
11103
11104 * dwarf2read.c (write_hash_table): Check if key already exists
11105 before emplacing.
11106
11107 2017-06-12 Pedro Alves <palves@redhat.com>
11108
11109 * dwarf2read.c (data_buf::append_space): Rename to...
11110 (data_buf::grow): ... this, and make private. Adjust all callers.
11111 (data_buf::append_uint): New method.
11112 (add_address_entry, write_one_signatured_type)
11113 (write_psymtabs_to_index): Use it.
11114
11115 2017-06-12 Pedro Alves <palves@redhat.com>
11116
11117 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11118 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11119 (data_buf::file_write): Call ::fwrite directly.
11120
11121 2017-06-12 Pedro Alves <palves@redhat.com>
11122
11123 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11124 std::vector::erase.
11125
11126 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11127
11128 Code cleanup: C++ify .gdb_index producer.
11129 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11130 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11131 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11132 (create_strtab, add_string): Remove.
11133 (file_write, data_buf): New.
11134 (struct symtab_index_entry): Use std::vector for cu_indices.
11135 (struct mapped_symtab): Use std::vector for data.
11136 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11137 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11138 Remove.
11139 (find_slot): Change return type. Update it to the new data structures.
11140 (hash_expand, add_index_entry): Update it to the new data structures.
11141 (offset_type_compare): Remove.
11142 (uniquify_cu_indices): Update it to the new data structures.
11143 (c_str_view, c_str_view_hasher, vector_hasher): New.
11144 (add_indices_to_cpool): Remove.
11145 (write_hash_table): Update it to the new data structures.
11146 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11147 (eq_psymtab_cu_index): Remove.
11148 (psym_index_map): New typedef.
11149 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11150 reference and std::unordered_map for cu_index_htab.
11151 (add_address_entry, add_address_entry_worker, write_address_map)
11152 (write_psymbols): Update it to the new data structures.
11153 (write_obstack): Remove.
11154 (struct signatured_type_index_data): Change types_list to a data_buf
11155 reference and psyms_seen to a std::unordered_set reference.
11156 (write_one_signatured_type, recursively_write_psymbols)
11157 (write_psymtabs_to_index): Update it to the new data structures.
11158
11159 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11160
11161 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11162 separate-debug-file commands.
11163 * symfile.h (separate_debug_file_debug): New global.
11164 * symfile.c (separate_debug_file_debug): New global.
11165 (separate_debug_file_exists, find_separate_debug_file): Add
11166 debug output.
11167 (_initialize_symfile): Add "set debug separate-debug-file"
11168 command.
11169 * build-id.c (build_id_to_debug_bfd,
11170 find_separate_debug_file_by_buildid): Add debug output.
11171
11172 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11173
11174 * gdbarch.sh (displaced_step_free_closure): Remove.
11175 * gdbarch.h, gdbarch.c: Re-generate.
11176 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11177 displaced_step_free_closure.
11178 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11179 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11180 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11181 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11182 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11183 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11184 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11185 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11186 * infrun.c (displaced_step_clear): Call xfree instead of
11187 gdbarch_displaced_step_free_closure.
11188
11189 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11190
11191 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11192 NULL".
11193
11194 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11195
11196 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11197 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11198 (mn10300_push_dummy_call): Likewise.
11199
11200 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11201
11202 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11203
11204 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11205
11206 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11207
11208 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11209
11210 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11211 able to start inferiors using a shell.
11212 (New remote packets): Announce new packet "QStartupWithShell".
11213 * remote.c: Add PACKET_QStartupWithShell.
11214 (extended_remote_create_inferior): Handle new
11215 PACKET_QStartupWithShell.
11216 (remote_protocol_features) <QStartupWithShell>: New entry for
11217 PACKET_QStartupWithShell.
11218 (_initialize_remote): Call "add_packet_config_cmd" for
11219 QStartupShell.
11220
11221 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11222 Pedro Alves <palves@redhat.com>
11223
11224 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11225 and "nat/fork-inferior.h".
11226 * common/common-inferior.h: New file, with contents from
11227 "gdb/inferior.h".
11228 * commom/common-utils.c: Include "common-utils.h".
11229 (stringify_argv): New function.
11230 * common/common-utils.h (stringify_argv): New prototype.
11231 * configure.nat: Add "fork-inferior.o" as a dependency for
11232 "*linux*", "fbsd*" and "nbsd*" hosts.
11233 * corefile.c (get_exec_file): Update comment.
11234 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11235 instead of "startup_inferior".
11236 (darwin_create_inferior): Call "add_thread_silent" after
11237 "fork_inferior".
11238 * fork-child.c: Cleanup unnecessary includes.
11239 (SHELL_FILE): Move to "common/common-fork-child.c".
11240 (environ): Likewise.
11241 (exec_wrapper): Initialize.
11242 (get_exec_wrapper): New function.
11243 (breakup_args): Move to "common/common-fork-child.c"; rename to
11244 "breakup_args_for_exec".
11245 (escape_bang_in_quoted_argument): Move to
11246 "common/common-fork-child.c".
11247 (saved_ui): New variable.
11248 (prefork_hook): New function.
11249 (postfork_hook): Likewise.
11250 (postfork_child_hook): Likewise.
11251 (gdb_startup_inferior): Likewise.
11252 (fork_inferior): Move to "common/common-fork-child.c". Update
11253 function to support gdbserver.
11254 (startup_inferior): Likewise.
11255 * gdbcore.h (get_exec_file): Remove declaration.
11256 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11257 instead of "startup_inferior". Call "add_thread_silent" after
11258 "fork_inferior".
11259 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11260 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11261 instead of "startup_inferior". Call "add_thread_silent" after
11262 "fork_inferior".
11263 * inferior.h: Include "common-inferior.h".
11264 (trace_start_error): Move to "common/common-utils.h".
11265 (trace_start_error_with_name): Likewise.
11266 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11267 (startup_inferior): Likewise.
11268 (gdb_startup_inferior): New prototype.
11269 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11270 * nat/fork-inferior.h: New file.
11271 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11272 instead of "startup_inferior". Call "add_thread_silent" after
11273 "fork_inferior".
11274 * target.h (target_terminal_init): Move prototype to
11275 "target/target.h".
11276 (target_terminal_inferior): Likewise.
11277 (target_terminal_ours): Likewise.
11278 * target/target.h (target_terminal_init): New prototype, moved
11279 from "target.h".
11280 (target_terminal_inferior): Likewise.
11281 (target_terminal_ours): Likewise.
11282 * utils.c (gdb_flush_out_err): New function.
11283
11284 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11285
11286 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11287 * common/common-gdbthread.h: New file, with parts from
11288 "gdb/gdbthread.h".
11289 * gdbthread.h: Include "common-gdbthread.h".
11290 (switch_to_thread): Moved to "common/common-gdbthread.h".
11291
11292 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11293
11294 * Makefile.in (SFILES): Add "common/job-control.c".
11295 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11296 (COMMON_OBS): Add "job-control.o".
11297 * common/job-control.c: New file, with contents from
11298 "gdb/inflow.c".
11299 * common/job-control.h: New file, with contents from "terminal.h".
11300 * fork-child.c: Include "job-control.h".
11301 * inflow.c: Include "job-control.h".
11302 (gdb_setpgid): Move to "common/common-inflow.c".
11303 (_initialize_inflow): Move setting of "job_control" to
11304 "handle_job_control".
11305 * terminal.h (job_control): Moved to "common/common-terminal.h".
11306 (gdb_setpgid): Likewise.
11307 * top.c: Include "job_control.h".
11308 * utils.c: Likewise.
11309 (job_control): Moved to "job-control.c".
11310
11311 2017-06-07 Pedro Alves <palves@redhat.com>
11312
11313 * Makefile.in (SFILES): Add gdb_regex.c.
11314 (COMMON_OBS): Add gdb_regex.o.
11315 * ada-lang.c (ada_add_standard_exceptions)
11316 (ada_add_exceptions_from_frame, name_matches_regex)
11317 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11318 parameter type to compiled_regex. Adjust.
11319 (ada_exceptions_list): Use compiled_regex.
11320 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11321 std::unique_ptr<compiled_regex>.
11322 (exception_catchpoint::~exception_catchpoint): Remove regfree
11323 call.
11324 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11325 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11326 * breakpoint.c (solib_catchpoint::compiled): Now a
11327 std::unique_ptr<compiled_regex>.
11328 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11329 (check_status_catch_solib): Adjust to use compiled_regex.
11330 (add_solib_catchpoint): Adjust to use compiled_regex.
11331 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11332 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11333 compiled_regex reference. Adjust to use it.
11334 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11335 declaration. Include "gdb_regex.h".
11336 (apropos_cmd): Change regex parameter to compiled_regex reference.
11337 * gdb_regex.c: New file.
11338 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11339 declarations.
11340 (class compiled_regex): New.
11341 * linux-tdep.c: Include "common/gdb_optional.h".
11342 (struct mapping_regexes): New, factored out from
11343 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11344 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11345 gdb::optional and remove cleanups. Adjust to compiled_regex.
11346 * probe.c: Include "common/gdb_optional.h".
11347 (collect_probes): Use compiled_regex and gdb::optional and remove
11348 cleanups.
11349 * skip.c: Include "common/gdb_optional.h".
11350 (skiplist_entry::compiled_function_regexp): Now a
11351 gdb::optional<compiled_regex>.
11352 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11353 (free_skiplist_entry): Remove regfree call.
11354 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11355 compiled_regex and gdb::optional.
11356 * symtab.c: Include "common/gdb_optional.h".
11357 (search_symbols): Use compiled_regex and gdb::optional.
11358 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11359 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11360 to gdb_regex.c.
11361
11362 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11363
11364 * regcache.c (regcache::save): Avoid buffer use.
11365 (regcache::dump): Likewise.
11366
11367 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11368
11369 * sh-tdep.c (sh_pseudo_register_read): Remove
11370 MAX_REGISTER_SIZE.
11371 (sh_pseudo_register_write): Likewise.
11372 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11373 (sh64_pseudo_register_write): Likewise
11374
11375 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11376
11377 * aarch64-tdep.c (aarch64_store_return_value): Use
11378 V_REGISTER_SIZE.
11379 (aarch64_pseudo_read_value): Likewise.
11380 (aarch64_pseudo_write): Likewise.
11381
11382 2017-06-06 Yao Qi <yao.qi@linaro.org>
11383
11384 * regformats/regdef.h (set_register_cache): Remove the
11385 declaration.
11386
11387 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11388
11389 * frame.c (frame_unwind_register_signed): Use
11390 frame_unwind_register_value.
11391
11392 2017-06-06 Pedro Alves <palves@redhat.com>
11393
11394 PR breakpoints/21553
11395 * breakpoint.c (create_breakpoints_sal_default)
11396 (init_breakpoint_sal, create_breakpoint_sal): Use
11397 gdb::unique_xmalloc_ptr for string parameters.
11398 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11399 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11400 (base_breakpoint_create_breakpoints_sal)
11401 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11402 (strace_marker_create_breakpoints_sal)
11403 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11404 string parameters.
11405 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11406 gdb::unique_xmalloc_ptr for string parameters.
11407 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11408 parameters.
11409
11410 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11411
11412 * alpha-tdep.c (alpha_register_to_value): Use
11413 get_frame_register_value.
11414 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11415
11416 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11417
11418 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11419 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11420 (ia64_value_to_register): Likewise.
11421 (ia64_extract_return_value): Likewise.
11422 (ia64_store_return_value): Likewise.
11423 (ia64_push_dummy_call): Likewise.
11424
11425 2017-06-04 Joel Brobecker <brobecker@adacore.com>
11426
11427 GDB 8.0 released.
11428
11429 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11430
11431 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11432
11433 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11434
11435 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11436 parameter.
11437 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11438
11439 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11440
11441 * event-loop.c (poll_timers): Unallocate timer using delete
11442 instead of xfree.
11443
11444 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11445
11446 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
11447 (struct breakpoint) <~breakpoint>: New.
11448 (struct watchpoint): Inherit from breakpoint.
11449 <~watchpoint>: New.
11450 <base>: Remove.
11451 (struct tracepoint): Inherit from breakpoint.
11452 <base>: Remove.
11453 * breakpoint.c (longjmp_breakpoint_ops): Remove.
11454 (struct longjmp_breakpoint): Inherit from breakpoint.
11455 <~longjmp_breakpoint>: New.
11456 <base>: Remove.
11457 (new_breakpoint_from_type): Remove casts.
11458 (watchpoint_in_thread_scope): Remove reference to base field.
11459 (watchpoint_del_at_next_stop): Likewise.
11460 (update_watchpoint): Likewise.
11461 (watchpoint_check): Likewise.
11462 (bpstat_check_watchpoint): Likewise.
11463 (set_longjmp_breakpoint): Likewise.
11464 (struct fork_catchpoint): Inherit from breakpoint.
11465 <base>: Remove.
11466 (struct solib_catchpoint): Inherit from breakpoint.
11467 <~solib_catchpoint>: New.
11468 <base>: Remove.
11469 (dtor_catch_solib): Change to ...
11470 (solib_catchpoint::~solib_catchpoint): ... this.
11471 (breakpoint_hit_catch_solib): Remove reference to base field.
11472 (add_solib_catchpoint): Likewise.
11473 (create_fork_vfork_event_catchpoint): Likewise.
11474 (struct exec_catchpoint): Inherit from breakpoint.
11475 <~exec_catchpoint>: New.
11476 <base>: Remove.
11477 (dtor_catch_exec): Change to ...
11478 (exec_catchpoint::~exec_catchpoint): ... this.
11479 (dtor_watchpoint): Change to ...
11480 (watchpoint::~watchpoint): ... this.
11481 (watch_command_1): Remove reference to base field.
11482 (catch_exec_command_1): Likewise.
11483 (base_breakpoint_dtor): Change to ...
11484 (breakpoint::~breakpoint): ... this.
11485 (base_breakpoint_ops): Remove dtor field value.
11486 (longjmp_bkpt_dtor): Change to ...
11487 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
11488 (strace_marker_create_breakpoints_sal): Remove reference to base
11489 field.
11490 (delete_breakpoint): Don't manually call breakpoint destructor.
11491 (create_tracepoint_from_upload): Remove reference to base field.
11492 (trace_pass_set_count): Likewise.
11493 (initialize_breakpoint_ops): Don't initialize
11494 momentary_breakpoint_ops, don't set dtors.
11495 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
11496 <~ada_catchpoint>: New.
11497 <base>: Remove.
11498 (create_excep_cond_exprs): Remove reference to base field.
11499 (dtor_exception): Change to ...
11500 (ada_catchpoint::~ada_catchpoint): ... this.
11501 (dtor_catch_exception): Remove.
11502 (dtor_catch_exception_unhandled): Remove.
11503 (dtor_catch_assert): Remove.
11504 (create_ada_exception_catchpoint): Remove reference to base
11505 field.
11506 (initialize_ada_catchpoint_ops): Don't set dtors.
11507 * break-catch-sig.c (struct signal_catchpoint): Inherit from
11508 breakpoint.
11509 <~signal_catchpoint>: New.
11510 <base>: Remove.
11511 (signal_catchpoint_dtor): Change to ...
11512 (signal_catchpoint::~signal_catchpoint): ... this.
11513 (create_signal_catchpoint): Remove reference to base field.
11514 (initialize_signal_catchpoint_ops): Don't set dtor.
11515 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
11516 from breakpoint.
11517 <~syscall_catchpoint>: New.
11518 <base>: Remove.
11519 (dtor_catch_syscall): Change to ...
11520 (syscall_catchpoint::~syscall_catchpoint): ... this.
11521 (create_syscall_event_catchpoint): Remove reference to base
11522 field.
11523 (initialize_syscall_catchpoint_ops): Don't set dtor.
11524 * break-catch-throw.c (struct exception_catchpoint): Inherit
11525 from breakpoint.
11526 <~exception_catchpoint>: New.
11527 <base>: Remove.
11528 (dtor_exception_catchpoint): Change to ...
11529 (exception_catchpoint::~exception_catchpoint): ... this.
11530 (handle_gnu_v3_exceptions): Remove reference to base field.
11531 (initialize_throw_catchpoint_ops): Don't set dtor.
11532 * ctf.c (ctf_get_traceframe_address): Remove reference to base
11533 field.
11534 * remote.c (remote_get_tracepoint_status): Likewise.
11535 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
11536 * tracefile.c (tracefile_fetch_registers): Likewise.
11537 * tracepoint.c (actions_command): Likewise.
11538 (validate_actionline): Likewise.
11539 (tfind_1): Likewise.
11540 (get_traceframe_location): Likewise.
11541 (find_matching_tracepoint_location): Likewise.
11542 (parse_tracepoint_status): Likewise.
11543 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
11544
11545 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11546
11547 * breakpoint.c (struct longjmp_breakpoint): New struct.
11548 (is_tracepoint_type): Change return type to bool.
11549 (is_longjmp_type): New function.
11550 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
11551 (set_raw_breakpoint_without_location): Use
11552 new_breakpoint_from_type.
11553 (set_raw_breakpoint): Likewise.
11554
11555 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11556
11557 * breakpoint.c (new_breakpoint_from_type): New function.
11558 (create_breakpoint_sal): Use new_breakpoint_from_type and
11559 unique_ptr.
11560 (create_breakpoint): Likewise.
11561
11562 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11563
11564 * memattr.c (mem_info_command): Rename to ...
11565 (info_mem_command): ... this.
11566 (mem_enable_command): Rename to ...
11567 (enable_mem_command): ... this.
11568 (mem_disable_command): Rename to ...
11569 (disable_mem_command): ... this.
11570 (mem_delete_command): Rename to ...
11571 (delete_mem_command): ... this.
11572 (_initialize_mem): Adjust function names.
11573
11574 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11575
11576 * btrace.c (handle_pt_insn_events): New.
11577 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11578 STATUS. Split into this and ...
11579 (handle_pt_insn_event_flags): ... this.
11580
11581 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11582
11583 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11584 and struct pt_insn.resynced.
11585 * configure: Regenerated.
11586 * config.in: Regenerated.
11587
11588 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11589
11590 * btrace.c (ftrace_find_call_by_number): New function.
11591 (ftrace_new_function): Store objects, not pointers.
11592 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
11593 ftrace_new_gap, ftrace_update_function,
11594 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
11595 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
11596 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
11597 btrace_ends_with_single_insn, btrace_call_get): Account for
11598 btrace_thread_info::functions now storing objects.
11599 * btrace.h (struct btrace_thread_info): Add constructor.
11600 (struct btrace_thread_info) <functions>: Make std::vector.
11601 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
11602 Initialize with default values.
11603 * record-btrace.c (record_btrace_frame_sniffer): Account for
11604 btrace_thread_info::functions now storing objects.
11605
11606 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11607
11608 * btrace.c: Remove typedef bfun_s.
11609 (ftrace_new_gap): Directly add gaps to the list of gaps.
11610 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
11611 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
11612 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
11613 instead of gdb VEC.
11614
11615 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11616
11617 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
11618 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
11619 with btrace_thread_info::next_segment and
11620 btrace_thread_info::prev_segment.
11621 * btrace.h: Remove struct btrace_func_link.
11622 (struct btrace_function): Replace pair of function segment pointers
11623 with pair of indices.
11624 * python/py-record-btrace.c (btpy_call_prev_sibling,
11625 btpy_call_next_sibling): Replace references to
11626 btrace_thread_info::segment with btrace_thread_info::next_segment and
11627 btrace_thread_info::prev_segment.
11628 * record-btrace.c (record_btrace_frame_this_id): Use
11629 btrace_find_call_by_number.
11630
11631 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11632
11633 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11634 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11635 btrace_insn_next, btrace_insn_prev): Remove references to
11636 btrace_thread_info::flow.
11637 * btrace.h (struct btrace_function): Remove FLOW.
11638
11639 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11640
11641 * btrace.c (ftrace_find_call_by_number): New function.
11642 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11643 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
11644 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
11645 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
11646 index.
11647 * btrace.h (struct btrace_function): Turn UP into an index.
11648 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
11649 as an index.
11650 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
11651 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
11652 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
11653
11654 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11655
11656 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11657 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11658 ftrace_update_function, ftrace_compute_global_level_offset,
11659 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
11660 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
11661 btrace_insn_end, btrace_is_empty): Remove references to
11662 btrace_thread_info::begin and btrace_thread_info::end.
11663 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
11664 (struct btrace_thread_info) <functions>: Adjust comment.
11665 * record-btrace.c (record_btrace_start_replaying): Remove reference to
11666 btrace_thread_info::begin.
11667
11668 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11669
11670 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11671 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11672 ftrace_update_function): Remove arguments that implicitly were always
11673 BTINFO->END.
11674 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
11675 Don't pass BTINFO->END.
11676
11677 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11678
11679 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
11680 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
11681 btrace_find_insn_by_number): Replace function segment pointer with
11682 index.
11683 (btrace_insn_cmp): Simplify.
11684 * btrace.h: (struct btrace_insn_iterator) Rename index to
11685 insn_index. Replace function segment pointer with index into function
11686 segment vector.
11687 * record-btrace.c (record_btrace_call_history): Replace function
11688 segment pointer use with index.
11689 (record_btrace_frame_sniffer): Retrieve function call segment through
11690 vector.
11691 (record_btrace_set_replay): Remove defunc't safety check.
11692
11693 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11694
11695 * btrace.c (btrace_ends_with_single_insn): New function.
11696 (btrace_call_get, btrace_call_number, btrace_call_begin,
11697 btrace_call_end, btrace_call_next, btrace_call_prev,
11698 btrace_find_call_by_number): Use index into call segment vector
11699 instead of pointer.
11700 (btrace_call_cmp): Simplify.
11701 * btrace.h (struct btrace_call_iterator): Replace function call segment
11702 pointer with index into vector.
11703 * record-btrace.c (record_btrace_call_history): Use index instead of
11704 pointer.
11705
11706 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11707
11708 * btrace.c (btrace_insn_begin, btrace_insn_end,
11709 btrace_find_insn_by_number): Add btinfo to iterator.
11710 * btrace.h (struct btrace_insn_iterator): Add btinfo.
11711
11712 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11713
11714 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
11715 and save pointers directly.
11716 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
11717 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
11718 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
11719 changed signature of functions.
11720 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
11721 (btrace_fetch): Remove code that adds btrace_function pointers to
11722 vector of btrace_functions.
11723 (btrace_clear): Simplify freeing vector of btrace_functions.
11724
11725 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11726
11727 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
11728 Replace VEC_* with std::vector functions.
11729 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
11730 (struct btrace_thread_info)<functions>: Change type to std::vector.
11731
11732 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
11733
11734 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
11735 "Removed targets and native configurations" up. Merge duplicate
11736 "New commands" sub-sections. Add "New options" sub-sections.
11737
11738 2017-05-26 Alan Hayward <alan.hayward@arm.com>
11739
11740 * defs.h (copy_integer_to_size): New declaration.
11741 * findvar.c (copy_integer_to_size): New function.
11742 (do_cint_test): New selftest function.
11743 (copy_integer_to_size_test): Likewise.
11744 (_initialize_findvar): Likewise.
11745 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
11746 (mips_fbsd_collect_reg): Use raw_collect_integer.
11747 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
11748 (mips64_fill_gregset): Use raw_collect_integer
11749 (mips64_fill_fpregset): Use raw_supply_integer.
11750 * regcache.c (regcache::raw_supply_integer): New function.
11751 (regcache::raw_collect_integer): Likewise.
11752 * regcache.h: (regcache::raw_supply_integer): New declaration.
11753 (regcache::raw_collect_integer): Likewise.
11754
11755 2017-05-24 Yao Qi <yao.qi@linaro.org>
11756
11757 * Makefile.in (SFILES): Add gdbarch-selftests.c.
11758 (COMMON_OBS): Add gdbarch-selftests.o.
11759 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
11760 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
11761 * gdbarch-selftests.c: New file.
11762 * regcache.h (regcache) <~regcache>: Mark it virtual if
11763 GDB_SELF_TEST.
11764 <raw_write>: Likewise.
11765
11766 2017-05-24 Yao Qi <yao.qi@linaro.org>
11767
11768 * regcache.c (current_regcache): Change it to
11769 regcache::current_regcache.
11770 (regcache_observer_target_changed): Update.
11771 (regcache_thread_ptid_changed): Make it a regcache static
11772 method.
11773 (regcache_thread_ptid_changed): Update.
11774 (class regcache_access): New.
11775 (current_regcache_test): Update.
11776 (_initialize_regcache): Update.
11777 * regcache.h: Include forward_list.
11778 (regcache): Declare regcache_thread_ptid_changed and declare
11779 registers_changed_ptid as friend.
11780
11781 2017-05-24 Yao Qi <yao.qi@linaro.org>
11782
11783 * i387-tdep.c (i387_register_to_value): Use register_size
11784 instead of TYPE_LENGTH.
11785 * m68k-tdep.c (m68k_register_to_value): Likewise.
11786
11787 2017-05-24 Yao Qi <yao.qi@linaro.org>
11788
11789 * i387-tdep.c (i387_convert_register_p): Return false if type
11790 code isn't TYPE_CODE_FLT.
11791
11792 2017-05-24 Yao Qi <yao.qi@linaro.org>
11793
11794 * alpha-tdep.c (alpha_convert_register_p): Return true if type
11795 length is 4.
11796 (alpha_register_to_value): Remove type length check.
11797 (alpha_value_to_register): Likewise.
11798
11799 2017-05-24 Yao Qi <yao.qi@linaro.org>
11800
11801 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
11802 TYPE_CODE_FLT.
11803
11804 2017-05-24 Yao Qi <yao.qi@linaro.org>
11805
11806 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
11807 TYPE_CODE_FLT or not.
11808
11809 2017-05-24 Yao Qi <yao.qi@linaro.org>
11810
11811 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
11812 * avr-tdep.c (avr_gdbarch_init): Likewise.
11813 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11814 * cris-tdep.c (cris_gdbarch_init): Likewise.
11815 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11816 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11817 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11818 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11819 * mep-tdep.c (mep_gdbarch_init): Likewise.
11820 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11821 * mips-tdep.c (mips_gdbarch_init): Likewise.
11822 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11823 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11824 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11825 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11826 * v850-tdep.c (v850_gdbarch_init): Likewise.
11827
11828 2017-05-24 Yao Qi <yao.qi@linaro.org>
11829
11830 * selftest-arch.c (tests_with_arch): Call registers_changed
11831 and reinit_frame_cache.
11832 * selftest.c (run_self_tests): Likewise.
11833
11834 2017-05-24 Yao Qi <yao.qi@linaro.org>
11835
11836 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
11837 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
11838
11839 2017-05-24 Yao Qi <yao.qi@linaro.org>
11840
11841 * rl78-tdep.c (rl78_gdbarch_init): Don't call
11842 set_gdbarch_print_insn.
11843
11844 2017-05-24 Yao Qi <yao.qi@linaro.org>
11845
11846 * h8300-tdep.c (h8300_gdbarch_init): Don't call
11847 set_gdbarch_print_insn.
11848
11849 2017-05-24 Yao Qi <yao.qi@linaro.org>
11850
11851 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11852 set_gdbarch_print_insn.
11853 * arc-tdep.c (arc_gdbarch_init): Likewise.
11854 * arch-utils.c: include dis-asm.h.
11855 (default_print_insn): New function.
11856 * arch-utils.h (default_print_insn): Declare.
11857 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
11858 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11859 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
11860 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
11861 * frv-tdep.c (frv_gdbarch_init): Likewise.
11862 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11863 * gdbarch.sh (print_insn): Use default_print_insn.
11864 * gdbarch.c: Regenerated.
11865 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11866 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
11867 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11868 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
11869 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11870 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
11871 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
11872 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11873 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
11874 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11875 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11876 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11877 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11878 * mt-tdep.c (mt_gdbarch_init): Likewise.
11879 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11880 * nios2-tdep.c (nios2_print_insn): Remove.
11881 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
11882 * rx-tdep.c (rx_gdbarch_init): Likewise.
11883 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11884 * score-tdep.c (score_print_insn): Remove.
11885 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
11886 * sh-tdep.c (sh_gdbarch_init): Likewise.
11887 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11888 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11889 * tic6x-tdep.c (tic6x_print_insn): Remove.
11890 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
11891 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
11892 * v850-tdep.c (v850_gdbarch_init): Likewise.
11893 * vax-tdep.c (vax_gdbarch_init): Likewise.
11894 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11895 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
11896
11897 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11898
11899 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
11900 (MIPS_FP0_REGNUM): Remove.
11901 (MIPS_FSR_REGNUM): Remove.
11902 (mips_fbsd_supply_fpregs): Use mips_regnum.
11903 (mips_fbsd_supply_gregs): Likewise.
11904 (mips_fbsd_collect_fpregs): Likewise.
11905 (mips_fbsd_collect_gregs): Likewise.
11906
11907 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11908
11909 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
11910 (getpfpregs_supplies): New function.
11911 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
11912 getfpregs_supplies.
11913 (mips_fbsd_store_inferior_registers): Likewise.
11914
11915 2017-05-22 Pedro Alves <palves@redhat.com>
11916
11917 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
11918 maintainer.
11919
11920 2017-05-22 Alan Hayward <alan.hayward@arm.com>
11921
11922 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
11923 (store_register): Likewise.
11924 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
11925 (get_decimal_float_return_value): Likewise.
11926 (do_ppc_sysv_return_value): Likewise.
11927 (ppc64_sysv_abi_push_integer): Likewise.
11928 (ppc64_sysv_abi_push_freg): Likewise.
11929 (ppc64_sysv_abi_return_value_base): Likewise.
11930 (ppc64_sysv_abi_return_value): Likewise.
11931 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
11932 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
11933 * rs6000-nat.c: Likewise.
11934 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
11935 (rs6000_value_to_register): Likewise.
11936 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
11937
11938 2017-05-21 Tom Tromey <tom@tromey.com>
11939
11940 PR rust/21466:
11941 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
11942 arrays as "[T]", not "[T; ]".
11943
11944 2017-05-19 Tom Tromey <tom@tromey.com>
11945
11946 PR rust/21484:
11947 * rust-lang.c (exp_descriptor_rust): New function.
11948 (rust_language_defn): Use it.
11949 * p-lang.c (pascal_language_defn): Update.
11950 * opencl-lang.c (opencl_language_defn): Update.
11951 * objc-lang.c (objc_language_defn): Update.
11952 * m2-lang.c (m2_language_defn): Update.
11953 * language.h (struct language_defn)
11954 <la_watch_location_expression>: New member.
11955 * language.c (unknown_language_defn, auto_language_defn)
11956 (local_language_defn): Update.
11957 * go-lang.c (go_language_defn): Update.
11958 * f-lang.c (f_language_defn): Update.
11959 * d-lang.c (d_language_defn): Update.
11960 * c-lang.h (c_watch_location_expression): Declare.
11961 * c-lang.c (c_watch_location_expression): New function.
11962 (c_language_defn, cplus_language_defn, asm_language_defn)
11963 (minimal_language_defn): Use it.
11964 * breakpoint.c (watch_command_1): Call
11965 la_watch_location_expression.
11966 * ada-lang.c (ada_language_defn): Update.
11967
11968 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11969
11970 PR tui/21482
11971 * gdb_curses.h (NOMACROS): Define.
11972 (NCURSES_NOMACROS): Define.
11973
11974 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11975
11976 PR tui/21482
11977 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
11978 arg to char *.
11979 * tui/tui-wingeneral.c (box_win): Likewise.
11980 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
11981 (tui_show_source_line): Likewise.
11982 (tui_show_exec_info_content): Likewise.
11983
11984 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
11985
11986 * sparc-tdep.c (sparc_structure_return_p)
11987 (sparc_arg_on_registers_p): New functions.
11988 (sparc32_store_arguments): Use them.
11989 * sparc64-tdep.c (sparc64_16_byte_align_p)
11990 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
11991 Handle TYPE_CODE_ARRAY.
11992
11993 2017-05-17 Yao Qi <yao.qi@linaro.org>
11994
11995 * cli/cli-decode.c (add_alias_cmd): New function.
11996 * command.h (add_alias_cmd): Declare.
11997 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
11998 instead call add_alias_cmd.
11999
12000 2017-05-17 Pedro Alves <palves@redhat.com>
12001
12002 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12003 (nat_makefile_frag): ... this. All references updated.
12004 * configure.ac: Likewise.
12005 * configure.nat: Likewise. Enhance comments.
12006 * configure: Regenerate.
12007
12008 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12009
12010 * procfs.c (procfs_create_inferior): Change prototype to match
12011 definition.
12012
12013 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12014
12015 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12016 C++ compiler warning.
12017
12018 2017-05-12 Tom Tromey <tom@tromey.com>
12019
12020 PR rust/21483:
12021 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12022 recurse, just call value_struct_elt directly.
12023
12024 2017-05-12 Tom Tromey <tom@tromey.com>
12025
12026 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12027 OP_RUST_ARRAY>: Fix.
12028
12029 2017-05-12 Tom Tromey <tom@tromey.com>
12030
12031 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12032
12033 2017-05-09 Yao Qi <yao.qi@linaro.org>
12034
12035 * regcache.c: Include <forward_list>.
12036 (struct regcache_list): Remove.
12037 (current_regcache): Update.
12038 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12039 (regcache_thread_ptid_changed): Likewise.
12040 (registers_changed_ptid): Likewise.
12041 (current_regcache_size): Likewise.
12042
12043 2017-05-09 Yao Qi <yao.qi@linaro.org>
12044
12045 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12046 (current_regcache_size): New function.
12047 (current_regcache_test): New function.
12048 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12049
12050 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12051
12052 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12053 (print_gp_register_row): Use get_frame_register_value.
12054
12055 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12056
12057 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12058 (mips_supply_fpregset): Likewise.
12059 (mips64_supply_gregset): Likewise.
12060
12061 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12062
12063 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12064 regcache->raw_supply_zeroed.
12065
12066 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12067
12068 * configure.nat: Rearrange 'case' statements to match
12069 host before cpu.
12070
12071 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12072
12073 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12074 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12075 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12076 "@nat_extra_makefile_frag@".
12077 (Makefile): Remove dependency on "@frags@".
12078 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12079 (data-directory/Makefile): Likewise.
12080 * config/aarch64/linux.mh: Deleted; moved contents to
12081 "gdb/configure.nat".
12082 * config/alpha/alpha-linux.mh: Likewise.
12083 * config/alpha/nbsd.mh: Likewise.
12084 * config/arm/linux.mh: Likewise.
12085 * config/arm/nbsdelf.mh: Likewise.
12086 * config/i386/cygwin.mh: Likewise.
12087 * config/i386/cygwin64.mh: Likewise.
12088 * config/i386/darwin.mh: Likewise.
12089 * config/i386/fbsd.mh: Likewise.
12090 * config/i386/fbsd64.mh: Likewise.
12091 * config/i386/go32.mh: Likewise.
12092 * config/i386/i386gnu.mh: Likewise.
12093 * config/i386/i386sol2.mh: Likewise.
12094 * config/i386/linux.mh: Likewise.
12095 * config/i386/linux64.mh: Likewise.
12096 * config/i386/mingw.mh: Likewise.
12097 * config/i386/mingw64.mh: Likewise.
12098 * config/i386/nbsd64.mh: Likewise.
12099 * config/i386/nbsdelf.mh: Likewise.
12100 * config/i386/nto.mh: Likewise.
12101 * config/i386/obsd.mh: Likewise.
12102 * config/i386/obsd64.mh: Likewise.
12103 * config/i386/sol2-64.mh: Likewise.
12104 * config/ia64/linux.mh: Likewise.
12105 * config/m32r/linux.mh: Likewise.
12106 * config/m68k/linux.mh: Likewise.
12107 * config/m68k/nbsdelf.mh: Likewise.
12108 * config/m68k/obsd.mh: Likewise.
12109 * config/m88k/obsd.mh: Likewise.
12110 * config/mips/fbsd.mh: Likewise.
12111 * config/mips/linux.mh: Likewise.
12112 * config/mips/nbsd.mh: Likewise.
12113 * config/mips/obsd64.mh: Likewise.
12114 * config/pa/linux.mh: Likewise.
12115 * config/pa/nbsd.mh: Likewise.
12116 * config/pa/obsd.mh: Likewise.
12117 * config/powerpc/aix.mh: Likewise.
12118 * config/powerpc/fbsd.mh: Likewise.
12119 * config/powerpc/linux.mh: Likewise.
12120 * config/powerpc/nbsd.mh: Likewise.
12121 * config/powerpc/obsd.mh: Likewise.
12122 * config/powerpc/ppc64-linux.mh: Likewise.
12123 * config/powerpc/spu-linux.mh: Likewise.
12124 * config/s390/linux.mh: Likewise.
12125 * config/sh/nbsd.mh: Likewise.
12126 * config/sparc/fbsd.mh: Likewise.
12127 * config/sparc/linux.mh: Likewise.
12128 * config/sparc/linux64.mh: Likewise.
12129 * config/sparc/nbsd64.mh: Likewise.
12130 * config/sparc/nbsdelf.mh: Likewise.
12131 * config/sparc/obsd64.mh: Likewise.
12132 * config/sparc/sol2.mh: Likewise.
12133 * config/tilegx/linux.mh: Likewise.
12134 * config/vax/nbsdelf.mh: Likewise.
12135 * config/vax/obsd.mh: Likewise.
12136 * config/xtensa/linux.mh: Likewise.
12137 * config/i386/i386gnu.mn: New file, with excerpts from
12138 "config/i386/i386gnu.mh".
12139 * configure: Regenerate.
12140 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12141 *.mh files under "gdb/config".
12142 * configure.nat: New file, with contents from the
12143 "gdb/config/*/*.mh" files.
12144
12145 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12146
12147 * btrace.c (btrace_clear): Free insn vector.
12148
12149 2017-05-05 Pedro Alves <palves@redhat.com>
12150
12151 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12152 * configure: Regenerate.
12153
12154 2017-05-04 Pedro Alves <palves@redhat.com>
12155
12156 * Makefile.in (SFILES): Add progspace-and-thread.c.
12157 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12158 (COMMON_OBS): Add progspace-and-thread.o.
12159 * breakpoint.c: Include "progspace-and-thread.h".
12160 (update_inserted_breakpoint_locations)
12161 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12162 Use scoped_restore_current_pspace_and_thread.
12163 (create_std_terminate_master_breakpoint): Use
12164 scoped_restore_current_program_space.
12165 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12166 (print_breakpoint_location): Use
12167 scoped_restore_current_program_space.
12168 (bp_loc_is_permanent): Use
12169 scoped_restore_current_pspace_and_thread.
12170 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12171 (download_tracepoint_locations): Use
12172 scoped_restore_current_pspace_and_thread.
12173 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12174 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12175 (enum step_over_calls_kind): Moved from inferior.h.
12176 (class scoped_restore_current_thread): New class.
12177 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12178 declaration.
12179 (scoped_restore_current_thread): New class.
12180 * infcmd.c: Include "common/gdb_optional.h".
12181 (continue_1, proceed_after_attach): Use
12182 scoped_restore_current_thread.
12183 (notice_new_inferior): Use scoped_restore_current_thread.
12184 * inferior.c: Include "progspace-and-thread.h".
12185 (restore_inferior, save_current_inferior): Delete.
12186 (add_inferior_command, clone_inferior_command): Use
12187 scoped_restore_current_pspace_and_thread.
12188 * inferior.h (scoped_restore_current_inferior): New class.
12189 * infrun.c: Include "progspace-and-thread.h" and
12190 "common/gdb_optional.h".
12191 (follow_fork_inferior): Use
12192 scoped_restore_current_pspace_and_thread.
12193 (scoped_restore_exited_inferior): New class.
12194 (handle_vfork_child_exec_or_exit): Use
12195 scoped_restore_exited_inferior,
12196 scoped_restore_current_pspace_and_thread,
12197 scoped_restore_current_thread and scoped_restore.
12198 (fetch_inferior_event): Use scoped_restore_current_thread.
12199 * linespec.c (decode_line_full, decode_line_1): Use
12200 scoped_restore_current_program_space.
12201 * mi/mi-main.c: Include "progspace-and-thread.h".
12202 (exec_continue): Use scoped_restore_current_thread.
12203 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12204 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12205 * proc-service.c (ps_pglobal_lookup): Use
12206 scoped_restore_current_program_space.
12207 * progspace-and-thread.c: New file.
12208 * progspace-and-thread.h: New file.
12209 * progspace.c (release_program_space, clone_program_space): Use
12210 scoped_restore_current_program_space.
12211 (restore_program_space, save_current_program_space)
12212 (save_current_space_and_thread): Delete.
12213 (switch_to_program_space_and_thread): Moved to
12214 progspace-and-thread.c.
12215 * progspace.h (save_current_program_space)
12216 (save_current_space_and_thread): Delete declarations.
12217 (scoped_restore_current_program_space): New class.
12218 * remote.c (remote_btrace_maybe_reopen): Use
12219 scoped_restore_current_thread.
12220 * symtab.c: Include "progspace-and-thread.h".
12221 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12222 * thread.c (print_thread_info_1): Use
12223 scoped_restore_current_thread.
12224 (struct current_thread_cleanup): Delete.
12225 (do_restore_current_thread_cleanup)
12226 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12227 (scoped_restore_current_thread::~scoped_restore_current_thread):
12228 ... this new dtor.
12229 (make_cleanup_restore_current_thread): Rename/convert to ...
12230 (scoped_restore_current_thread::scoped_restore_current_thread):
12231 ... this new ctor.
12232 (thread_apply_all_command): Use scoped_restore_current_thread.
12233 (thread_apply_command): Use scoped_restore_current_thread.
12234 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12235 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12236
12237 2017-05-04 Pedro Alves <palves@redhat.com>
12238
12239 * thread.c (make_cleanup_restore_current_thread): Move
12240 find_thread_ptid call before the is_stopped call. Assert that the
12241 thread is found. Replace is_stopped call by checking the thread's
12242 state directly. Remove unnecessary NULL-thread check.
12243
12244 2017-05-04 Pedro Alves <palves@redhat.com>
12245
12246 * corelow.c (thread_section_name): New class.
12247 (get_core_register_section, get_core_siginfo): Use it.
12248
12249 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12250
12251 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12252 (get_core_register_section): Remove xfree of NULL pointer.
12253
12254 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12255
12256 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12257 * regcache.c (regcache::raw_supply_zeroed): New function.
12258 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12259
12260 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12261
12262 * gdbarch.sh: Remove commented out definition of
12263 TARGET_CHAR_BIT.
12264 * gdbarch.h: Re-generate.
12265
12266 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12267
12268 * configure: Regenerate.
12269
12270 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12271
12272 * solib-target.c (solib_target_relocate_section_addresses):
12273 Remove num_section_bases, num_bases, segment_bases variables.
12274
12275 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12276
12277 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12278
12279 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12280
12281 * solib-target.c: Include <vector>
12282 (struct lm_info_target) <~lm_info_target>: Remove.
12283 <segment_bases, section_bases>: Change type to
12284 std::vector<CORE_ADDR>.
12285 (library_list_start_segment, library_list_start_section,
12286 library_list_end_library,
12287 solib_target_relocate_section_addresses): Adjust.
12288
12289 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12290
12291 * gdbarch.sh (software_single_step): Change return type to
12292 std::vector<CORE_ADDR>.
12293 * gdbarch.c, gdbarch.h: Re-generate.
12294 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12295 Adjust.
12296 (arm_deal_with_atomic_sequence_raw): Adjust.
12297 (thumb_get_next_pcs_raw): Adjust.
12298 (arm_get_next_pcs_raw): Adjust.
12299 (arm_get_next_pcs): Adjust.
12300 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12301 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12302 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12303 (alpha_software_single_step): Adjust.
12304 * alpha-tdep.h (alpha_software_single_step): Adjust.
12305 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12306 * arm-tdep.c (arm_software_single_step): Adjust.
12307 (arm_breakpoint_kind_from_current_state): Adjust.
12308 * arm-tdep.h (arm_software_single_step): Adjust.
12309 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12310 * cris-tdep.c (cris_software_single_step): Adjust.
12311 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12312 (micromips_deal_with_atomic_sequence): Adjust.
12313 (deal_with_atomic_sequence): Adjust.
12314 (mips_software_single_step): Adjust.
12315 * mips-tdep.h (mips_software_single_step): Adjust.
12316 * moxie-tdep.c (moxie_software_single_step): Adjust.
12317 * nios2-tdep.c (nios2_software_single_step): Adjust.
12318 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12319 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12320 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12321 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12322 * sparc-tdep.c (sparc_software_single_step): Adjust.
12323 * spu-tdep.c (spu_software_single_step): Adjust.
12324 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12325
12326 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12327
12328 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12329 * gdbarch.h: Re-generate.
12330
12331 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12332
12333 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12334 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12335 * python/py-instruction.c, python/py-instruction.h: New file.
12336 * python/py-record.c: Add py-instruction.h include.
12337 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12338 gdb.RecordInstruction.
12339 * python/python-internal.h: Add gdbpy_initialize_instruction
12340 declaration.
12341 * python/python.c (do_start_initialization): Add
12342 gdbpy_initialize_instruction.
12343
12344 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12345
12346 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12347 Remove.
12348 (btrace_func_from_recpy_func): New function.
12349 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12350 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12351 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12352 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12353 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12354 Also, use new helper functions.
12355 (btpy_list_item): Use new helper functions.
12356 (recpy_bt_function_call_history): Use new type name.
12357 (btpy_call_getset): Remove.
12358 (gdbpy_initialize_btrace): Remove code to initialize
12359 gdb.BtraceFunctionCall.
12360 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12361 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12362 recpy_bt_func_prev, recpy_bt_func_next): New export.
12363 * python/py-record.c (recpy_func_type): New static object.
12364 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12365 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12366 recpy_func_next): New function.
12367 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12368 (recpy_func_getset): New static object.
12369 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12370 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12371
12372 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12373
12374 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12375 (btpy_object, btpy_insn_type, btpy_new): Remove.
12376 (btpy_list_object): Use gdb.RecordInstruction type instead of
12377 gdb.BtraceInstruction type.
12378 (btrace_insn_from_recpy_insn): New function.
12379 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12380 btpy_new.
12381 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12382 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12383 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12384 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12385 instead of btpy_object.
12386 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12387 btpy_insn_data, btpy_insn_decode): Rename to ...
12388 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12389 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12390 recpy_bt_insn_decode): This. Also, use new helper functions.
12391 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12392 recpy_insn_type.
12393 (btpy_insn_getset): Remove.
12394 (gdbpy_initialize_btrace): Remove code to initialize
12395 gdb.BtraceInstruction. Use recpy_element_object.
12396 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12397 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12398 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12399 * python/py-record.c (recpy_insn_type): New static object.
12400 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12401 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12402 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12403 New function.
12404 (recpy_insn_getset): New static object.
12405 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12406 * python/py-record.h (recpy_element_object): New typedef.
12407 (recpy_insn_type, recpy_insn_new): New export.
12408
12409 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12410
12411 * py-record-btrace.c (btpy_insn_new): Removed.
12412 (btpy_insn_or_gap_new): New function.
12413 (btpy_insn_error): Removed.
12414 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12415 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12416 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12417 btpy_insn_or_gap_new instead of btpy_insn_new.
12418 (btpy_insn_getset): Remove btpy_insn_error.
12419 * py-record.c (recpy_gap_type): New static object.
12420 (recpy_gap_object): New typedef.
12421 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12422 recpy_gap_reason_string): New function.
12423 (recpy_gap_getset): New static object.
12424 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12425 * py-record.h (recpy_gap_new): New export.
12426
12427 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12428
12429 * python/py-record.c (recpy_ptid): Remove.
12430 (recpy_record_getset): Remove recpy_ptid.
12431
12432 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12433
12434 * btrace.c (btrace_fetch): Set inferior_ptid.
12435 * python/py-record-btrace.c: Add "py-record.h" include.
12436 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12437 recpy_bt_end, recpy_bt_instruction_history,
12438 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12439 in gdb.Record object instead of current ptid.
12440 * python/py-record.c: Include new "py-record.h" file.
12441 (recpy_record_object): Moved to py-record.h.
12442 * python/py-record.h: New file.
12443
12444 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12445
12446 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
12447 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
12448 indentation.
12449
12450 2017-05-01 Joel Brobecker <brobecker@adacore.com>
12451
12452 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
12453 the past maintainers section.
12454
12455 2017-04-28 Yao Qi <yao.qi@linaro.org>
12456
12457 * infcmd.c (get_return_value): Use regcache ctor, and remove
12458 cleanup.
12459
12460 2017-04-28 Yao Qi <yao.qi@linaro.org>
12461 Pedro Alves <palves@redhat.com>
12462
12463 * regcache.c (regcache::regcache): New tag dispatch ctor.
12464 (do_cooked_read): Moved above.
12465 (regcache_dup): Use the tag dispatch ctor..
12466 * regcache.h (regcache): Declare ctor, delete copy ctor and
12467 assignment operator, remove friend regcache_dup.
12468
12469 2017-04-28 Yao Qi <yao.qi@linaro.org>
12470
12471 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
12472 call method save instead of regcache_cpy.
12473 * regcache.h (struct regcache): Make regcache_dup a friend.
12474
12475 2017-04-28 Yao Qi <yao.qi@linaro.org>
12476
12477 * regcache.c (struct regcache): Move to regcache.h
12478 (regcache::arch): New method.
12479 (regcache_get_ptid): Update.
12480 (get_regcache_arch): Call arch method.
12481 (get_regcache_aspace): Call method aspace.
12482 (register_buffer): Change it to method.
12483 (regcache_save): Change it to regcache::save.
12484 (regcache_restore): Likewise.
12485 (regcache_cpy_no_passthrough): Remove the declaration.
12486 (regcache_cpy): Call methods restore and cpy_no_passthrough.
12487 (regcache_cpy_no_passthrough): Change it to method
12488 cpy_no_passthrough.
12489 (regcache_register_status): Change it to method
12490 get_register_status.
12491 (regcache_invalidate): Change it to method invalidate.
12492 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
12493 (regcache_raw_update): Change it to method raw_update.
12494 (regcache_raw_read): Likewise.
12495 (regcache_raw_read_signed): Likewise.
12496 (regcache_raw_read_unsigned): Likewise.
12497 (regcache_raw_write_signed): Likewise.
12498 (regcache_raw_write_unsigned): Likewise.
12499 (regcache_cooked_read): Likewise.
12500 (regcache_cooked_read_value): Likewise.
12501 (regcache_cooked_read_signed): Likewise.
12502 (regcache_cooked_read_unsigned): Likewise.
12503 (regcache_cooked_write_signed): Likewise.
12504 (regcache_cooked_write_unsigned): Likewise.
12505 (regcache_raw_set_cached_value): Likewise.
12506 (regcache_raw_write): Likewise.
12507 (regcache_cooked_write): Likewise.
12508 (regcache_xfer_part): Likewise.
12509 (regcache_raw_read_part): Likewise.
12510 (regcache_raw_write_part): Likewise.
12511 (regcache_cooked_read_part): Likewise.
12512 (regcache_cooked_write_part): Likewise.
12513 (regcache_raw_supply): Likewise.
12514 (regcache_raw_collect): Likewise.
12515 (regcache_transfer_regset): Likewise.
12516 (regcache_supply_regset): Likewise.
12517 (regcache_collect_regset): Likewise.
12518 (regcache_debug_print_register): Likewise.
12519 (enum regcache_dump_what): Move it to regcache.h.
12520 (regcache_dump): Change it to method dump.
12521 * regcache.h (enum regcache_dump_what): New.
12522 (class regcache): New.
12523 * target.c (target_fetch_registers): Call method
12524 debug_print_register.
12525 (target_store_registers): Likewise.
12526
12527 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12528
12529 * windows-nat.c (struct lm_info_windows): Initialize field.
12530 (windows_make_so): Allocate lm_info_windows with new.
12531 (windows_free_so): Free lm_info_windows with delete.
12532
12533 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12534
12535 * solib-darwin.c (struct lm_info_darwin): Initialize field.
12536 (darwin_current_sos): Allocate lm_info_darwin with new, remove
12537 cleanup.
12538 (darwin_free_so): Free lm_info_darwin with delete.
12539
12540 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12541
12542 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
12543 <l_addr_p>: Change type to bool.
12544 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
12545 (svr4_free_so): Free lm_info_svr4 with delete.
12546 (svr4_copy_library_list): Replace memcpy with call to copy
12547 constructor.
12548 (library_list_start_library, svr4_default_sos): Allocate
12549 lm_info_svr4 with new.
12550
12551 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12552
12553 * solib-target.c (struct lm_info_target): Add destructor,
12554 initialize fields.
12555 <name>: Change type to std::string.
12556 (library_list_start_library): Allocate lm_info_target with new.
12557 (solib_target_free_library_list): Free lm_info_target with
12558 delete.
12559 (solib_target_current_sos): Adapt to std::string.
12560 (solib_target_free_so): Free lm_info_target with delete.
12561
12562 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12563
12564 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12565 fields.
12566 (frv_current_sos): Allocate lm_info_frv with new.
12567 (frv_relocate_main_executable): Free lm_info_frv with delete,
12568 allocate with new.
12569 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12570
12571 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12572
12573 * solib-frv.c (struct lm_info_frv): Fix indentation.
12574
12575 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12576
12577 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12578 map field.
12579 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12580 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12581 and allocate with new.
12582 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12583
12584 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12585
12586 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12587 <filename, member_name>: Change type to std::string.
12588 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12589 (library_list_start_library): Allocate lm_info_aix with new.
12590 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12591 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12592 with copy constructor.
12593
12594 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12595
12596 * solist.h (struct lm_info): Remove.
12597 (struct lm_info_base): New class.
12598 (struct so_list) <lm_info>: Change type to lm_info_base *.
12599 * nto-tdep.c (struct lm_info): Remove.
12600 (lm_addr): Adjust.
12601 * solib-aix.c (struct lm_info): Rename to ...
12602 (struct lm_info_aix): ... this. Extend lm_info_base.
12603 (lm_info_p): Rename to ...
12604 (lm_info_aix_p): ... this, and adjust.
12605 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
12606 solib_aix_parse_libraries, library_list_start_library,
12607 solib_aix_free_library_list, solib_aix_parse_libraries,
12608 solib_aix_get_library_list,
12609 solib_aix_relocate_section_addresses, solib_aix_free_so,
12610 solib_aix_get_section_offsets,
12611 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
12612 Adjust.
12613 (struct solib_aix_inferior_data) <library_list>: Adjust.
12614 * solib-darwin.c (struct lm_info): Rename to ...
12615 (struct lm_info_darwin): ... this. Extend lm_info_base.
12616 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
12617 * solib-dsbt.c (struct lm_info): Rename to ...
12618 (struct lm_info_dsbt): ... this. Extend lm_info_base.
12619 (struct dsbt_info) <main_executable_lm_info): Adjust.
12620 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
12621 dsbt_relocate_section_addresses): Adjust.
12622 * solib-frv.c (struct lm_info): Rename to ...
12623 (struct lm_info_frv): ... this. Extend lm_info_base.
12624 (main_executable_lm_info): Adjust.
12625 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
12626 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
12627 find_canonical_descriptor_in_load_object,
12628 frv_fdpic_find_canonical_descriptor): Adjust.
12629 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12630 to lm_info_svr4.
12631 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12632 svr4_clear_so, svr4_copy_library_list,
12633 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12634 svr4_current_sos, svr4_fetch_objfile_link_map,
12635 solist_update_incremental): Adjust.
12636 * solib-svr4.h (struct lm_info_svr4): Move here from
12637 solib-svr4.c.
12638 * solib-target.c (struct lm_info): Rename to ...
12639 (struct lm_info_target): ... this. Extend lm_info_base.
12640 (lm_info_p): Rename to ...
12641 (lm_info_target_p): ... this.
12642 (solib_target_parse_libraries, library_list_start_segment,
12643 library_list_start_section, library_list_start_library,
12644 library_list_end_library, solib_target_free_library_list,
12645 solib_target_current_sos, solib_target_free_so,
12646 solib_target_relocate_section_addresses): Adjust.
12647 * windows-nat.c (struct lm_info): Rename to ...
12648 (struct lm_info_windows): ... this. Extend lm_info_base.
12649 (windows_make_so, handle_load_dll, handle_unload_dll,
12650 windows_xfer_shared_libraries): Adjust.
12651
12652 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12653
12654 * solib-darwin.c (struct darwin_so_list): Remove.
12655 (darwin_current_sos): Allocate an so_list object instead of a
12656 darwin_so_list, separately allocate an lm_info object.
12657 (darwin_free_so): Free lm_info.
12658
12659 2017-04-28 John Baldwin <jhb@FreeBSD.org>
12660
12661 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
12662 with fprintf_filtered.
12663
12664 2017-04-28 Yao Qi <yao.qi@linaro.org>
12665
12666 * regcache.c (regcache::regcache): New function.
12667 (regcache::~regcache): New function.
12668 (regcache_xmalloc_1): Remove.
12669 (regcache_xmalloc): Call new regcache.
12670 (regcache_xfree): Call delete regcache.
12671 (get_thread_arch_aspace_regcache): Call new regcache.
12672
12673 2017-04-28 Yao Qi <yao.qi@linaro.org>
12674
12675 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
12676 lwp instead of ptid_get_lwp.
12677
12678 2017-04-28 Yao Qi <yao.qi@linaro.org>
12679
12680 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
12681 lwp_info instead of getting from inferior_ptid.
12682
12683 2017-04-27 Keith Seitz <keiths@redhat.com>
12684
12685 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
12686 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
12687 (CV_CONVERSION_BADNESS): Define.
12688 (rank_one_type): Remove overly restrictive rvalue reference
12689 rank checks.
12690 Add cv-qualifier checks and subranks for type equality.
12691 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
12692 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
12693 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
12694
12695 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
12696
12697 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
12698 count when creating the object.
12699
12700 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
12701 Ulrich Weigand <uweigand@de.ibm.com>
12702
12703 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
12704 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
12705 is used in AIX.
12706 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
12707 (process_xcoff_symbol): Likewise.
12708 (scan_xcoff_symtab): Likewise.
12709
12710 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12711
12712 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
12713 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
12714 (ia64_access_reg): Use get_frame_register_unsigned.
12715 (ia64_access_rse_reg): Likewise.
12716 (ia64_libunwind_frame_prev_register): Likewise.
12717
12718 2017-04-26 Jiong Wang <jiong.wang@arm.com>
12719
12720 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
12721 * gdbarch.c: Regenerated.
12722 * gdbarch.h: Regenerated.
12723 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
12724 visibility external.
12725 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
12726 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
12727 (enum cfa_how_kind): Move to ...
12728 (struct dwarf2_frame_state_reg_info): Likewise.
12729 (struct dwarf2_frame_state): Likewise.
12730 * dwarf2-frame.h: ... here.
12731 (dwarf2_frame_state_alloc_regs): New declaration.
12732 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
12733 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
12734
12735 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12736
12737 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
12738 regcache_raw_read_unsigned.
12739 (xtensa_pseudo_register_write): Likewise.
12740
12741 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12742
12743 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
12744 (nds32_pseudo_register_write): Likewise.
12745
12746 2017-04-25 Yao Qi <yao.qi@linaro.org>
12747
12748 * regcache.c (struct regcache) <readonly_p>: Change its type
12749 to bool.
12750 (regcache_xmalloc_1): Update parameter type and callers update.
12751
12752 2017-04-25 Yao Qi <yao.qi@linaro.org>
12753
12754 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
12755 set_gdbarch_wchar_bit.
12756 * arm-tdep.c (arm_gdbarch_init): Likewise.
12757
12758 2017-04-25 Pedro Alves <palves@redhat.com>
12759
12760 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
12761 (BothAreRelocatable, memcopy, memmove): Don't define.
12762 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
12763 macros.
12764
12765 2017-04-25 Pedro Alves <palves@redhat.com>
12766
12767 * common/common-defs.h: Include "common/poison.h".
12768 * common/function-view.h: (Not, Or, Requires): Move to traits.h
12769 and adjust.
12770 * common/poison.h: New file.
12771 * common/traits.h: Include <type_traits>.
12772 (Not, Or, Requires): New, moved from common/function-view.h.
12773
12774 2017-04-25 Pedro Alves <palves@redhat.com>
12775
12776 * breakpoint.h (struct breakpoint): In-class initialize all
12777 fields. Make boolean fields "bool".
12778 * breakpoint.c (init_raw_breakpoint_without_location): Remove
12779 memset call and initializations no longer necessary.
12780
12781 2017-04-25 Pedro Alves <palves@redhat.com>
12782
12783 * btrace.c (pt_btrace_insn_flags): Change parameter type to
12784 reference.
12785 (pt_btrace_insn): New function.
12786 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
12787
12788 2017-04-25 Pedro Alves <palves@redhat.com>
12789
12790 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
12791 "base" field and inherit from "bp_location" instead. Add
12792 non-default ctor.
12793 (allocate_location_exception): Use new non-default ctor.
12794 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
12795 (init_bp_location): Convert to ...
12796 (bp_location::bp_location): ... this new ctor, and remove memset
12797 call.
12798 (base_breakpoint_allocate_location): Use the new non-default ctor.
12799 * breakpoint.h (bp_location): Now a class. Declare default and
12800 non-default ctors. In-class initialize all members.
12801 (init_bp_location): Remove declaration.
12802
12803 2017-04-25 Pedro Alves <palves@redhat.com>
12804
12805 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
12806 assignment operator.
12807
12808 2017-04-24 Yao Qi <yao.qi@linaro.org>
12809
12810 * doublest.c (convert_doublest_to_floatformat): Call
12811 floatformat_totalsize_bytes.
12812
12813 2017-04-22 Tom Tromey <tom@tromey.com>
12814
12815 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
12816 ui_out_emit_list.
12817 * stack.c (print_frame): Use ui_out_emit_list.
12818 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12819 ui_out_emit_list.
12820 * mi/mi-main.c (print_one_inferior)
12821 (mi_cmd_data_list_register_names)
12822 (mi_cmd_data_list_register_values, mi_cmd_list_features)
12823 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
12824 ui_out_emit_list.
12825 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
12826 (mi_output_solib_attribs): Use ui_out_emit_list,
12827 ui_out_emit_tuple.
12828 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
12829 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
12830 (mi_cmd_stack_list_args, list_args_or_locals): Use
12831 ui_out_emit_list.
12832 * disasm.c (do_assembly_only): Use ui_out_emit_list.
12833 * breakpoint.c (print_solib_event, output_thread_groups): Use
12834 ui_out_emit_list.
12835
12836 2017-04-22 Tom Tromey <tom@tromey.com>
12837
12838 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
12839 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
12840 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
12841
12842 2017-04-22 Tom Tromey <tom@tromey.com>
12843
12844 * tracepoint.c (tvariables_info_1)
12845 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
12846
12847 2017-04-22 Tom Tromey <tom@tromey.com>
12848
12849 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
12850 annotate_arg_emitter.
12851 * breakpoint.c (print_mention_watchpoint)
12852 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
12853 * annotate.h (struct annotate_arg_emitter): New.
12854
12855 2017-04-22 Tom Tromey <tom@tromey.com>
12856
12857 * record-btrace.c (record_btrace_insn_history)
12858 (record_btrace_insn_history_range, record_btrace_call_history)
12859 (record_btrace_call_history_range): Use ui_out_emit_tuple.
12860 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
12861 ui_out_emit_tuple.
12862 * stack.c (print_frame_info): Use ui_out_emit_tuple.
12863 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
12864 * skip.c (skip_info): Use ui_out_emit_tuple.
12865 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
12866 * progspace.c (print_program_space): Use ui_out_emit_tuple.
12867 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
12868 * osdata.c (info_osdata): Use ui_out_emit_tuple.
12869 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12870 ui_out_emit_tuple.
12871 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
12872 (output_register, mi_cmd_data_read_memory)
12873 (mi_cmd_data_read_memory_bytes, mi_load_progress)
12874 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
12875 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
12876 Use ui_out_emit_tuple.
12877 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
12878 ui_out_emit_tuple.
12879 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12880 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
12881 * linux-thread-db.c (info_auto_load_libthread_db): Use
12882 ui_out_emit_tuple.
12883 * inferior.c (print_inferior): Use ui_out_emit_tuple.
12884 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
12885 * disasm.c (do_mixed_source_and_assembly_deprecated)
12886 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
12887 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
12888 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
12889 * breakpoint.c (print_one_breakpoint_location)
12890 (print_one_breakpoint): Use ui_out_emit_tuple.
12891 * auto-load.c (print_script, info_auto_load_cmd): Use
12892 ui_out_emit_tuple.
12893 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
12894
12895 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
12896
12897 * thread.c (print_thread_info_1): Remove dead code.
12898
12899 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12900
12901 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
12902 GDB_SELF_TEST.
12903 * arm-tdep.c (selftests::arm_record_test): Likewise.
12904
12905 2017-04-21 Yao Qi <yao.qi@linaro.org>
12906
12907 * regcache.c (regcache_restore): Remove argument 2. Replace
12908 argument 3 with regcache. Get register status from
12909 src->register_status and get register contents from
12910 register_buffer (src, regnum).
12911 (regcache_cpy): Update.
12912
12913 2017-04-19 Pedro Alves <palves@redhat.com>
12914
12915 * gdbthread.h (thread): Add missing closing parenthesis in
12916 comment.
12917
12918 2017-04-19 Pedro Alves <palves@redhat.com>
12919
12920 * common/refcounted-object.h: New file.
12921 * gdbthread.h: Include "common/refcounted-object.h".
12922 (thread_info): Inherit from refcounted_object and add comments.
12923 (thread_info::incref, thread_info::decref)
12924 (thread_info::m_refcount): Delete.
12925 (thread_info::deletable): Use the refcounted_object::refcount()
12926 method.
12927 * inferior.c (current_inferior_): Add comment.
12928 (set_current_inferior): Increment/decrement refcounts.
12929 (prune_inferiors, remove_inferior_command): Skip inferiors marked
12930 not-deletable instead of comparing with the current inferior.
12931 (initialize_inferiors): Increment the initial inferior's refcount.
12932 * inferior.h (struct inferior): Forward declare.
12933 Include "common/refcounted-object.h".
12934 (current_inferior, set_current_inferior): Move declaration to
12935 before struct inferior's definition, and fix comment.
12936 (inferior): Inherit from refcounted_object. Add comments.
12937 * thread.c (switch_to_thread_no_regs): Reference the thread's
12938 inferior pointer directly instead of doing a ptid lookup.
12939 (switch_to_no_thread): New function.
12940 (switch_to_thread(thread_info *)): New function, factored out
12941 from ...
12942 (switch_to_thread(ptid_t)): ... this.
12943 (restore_current_thread): Delete.
12944 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
12945 fields, and add 'inf' field.
12946 (do_restore_current_thread_cleanup): Check whether old->inf is
12947 alive instead of looking up an inferior by ptid. Use
12948 switch_to_thread and switch_to_no_thread.
12949 (restore_current_thread_cleanup_dtor): Use old->inf directly
12950 instead of lookup up an inferior by id. Decref the inferior.
12951 Don't restore 'removable'.
12952 (make_cleanup_restore_current_thread): Same the inferior pointer
12953 in old, instead of the inferior number. Incref the inferior.
12954 Don't save/clear 'removable'.
12955
12956 2017-04-19 Pedro Alves <palves@redhat.com>
12957
12958 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12959 unittests/scoped_restore-selftests.c.
12960 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
12961 * common/scoped_restore.h (scoped_restore_base): Make "class".
12962 (scoped_restore_base::release): New public method.
12963 (scoped_restore_base::scoped_restore_base): New protected ctor.
12964 (scoped_restore_base::m_saved_var): New protected field.
12965 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
12966 scoped_restore_base base class instead of m_saved_var directly.
12967 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
12968 (scoped_restore_tmpl::scoped_restore_tmpl(const
12969 scoped_restore_tmpl<T>&)): Likewise.
12970 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
12971 method.
12972 (scoped_restore_tmpl::saved_var): New method.
12973 (scoped_restore_tmpl::m_saved_var): Delete.
12974 * inferior.h (inferior::detaching): Now a bool.
12975 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
12976 cleanup.
12977 * unittests/scoped_restore-selftests.c: New file.
12978
12979 2017-04-19 Pedro Alves <palves@redhat.com>
12980
12981 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
12982 Re-sort in alphabetic order.
12983
12984 2017-04-18 Pedro Alves <palves@redhat.com>
12985
12986 * xml-support.c (obstack_xml_printf): Delete.
12987 * xml-support.h (obstack_xml_printf): Delete.
12988
12989 2017-04-18 Pedro Alves <palves@redhat.com>
12990
12991 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
12992 vdebug, verror, body_text, start_element, end_element, name,
12993 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
12994 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
12995 is_xinclude>: Make private and add m_ prefix.
12996 (gdb_xml_parser::body_text): New method, based on ...
12997 (gdb_xml_body_text): ... this. Adjust.
12998 (gdb_xml_parser::vdebug): New method, based on ...
12999 (gdb_xml_debug): ... this. Adjust.
13000 (gdb_xml_parser::verror): New method, based on ...
13001 (gdb_xml_error): ... this. Adjust.
13002 (gdb_xml_parser::start_element): New method, based on ...
13003 (gdb_xml_start_element): ... this. Adjust.
13004 (gdb_xml_start_element_wrapper): Defer to
13005 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13006 (gdb_xml_parser::end_element): New method, based on ...
13007 (gdb_xml_end_element_wrapper): ... this. Adjust.
13008 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13009 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13010 (gdb_xml_parser::use_dtd): New method, based on ...
13011 (gdb_xml_use_dtd): ... this. Adjust.
13012 (gdb_xml_parser::parse): New method, based on ...
13013 (gdb_xml_parse): ... this. Adjust.
13014 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13015 (xinclude_start_include): Adjust to call the parser's name method.
13016 (xml_xinclude_default, xml_xinclude_start_doctype)
13017 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13018 method.
13019 (xml_process_xincludes): Adjust to call parser methods.
13020 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13021 declarations.
13022
13023 2017-04-18 Pedro Alves <palves@redhat.com>
13024
13025 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13026 gdb::optional<std::string>.
13027 * xml-support.c: Include <string>.
13028 (scope_level::scope_level(scope_level &&))
13029 (scope_level::~scope_level): Delete.
13030 (scope_level::body): Now a std::string.
13031 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13032 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13033 parameter.
13034 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13035 (xinclude_parsing_data::output): Now a std::string reference.
13036 (xinclude_start_include): Adjust.
13037 (xml_xinclude_default): Adjust.
13038 (xml_process_xincludes): Add 'output' parameter, and return bool.
13039 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13040 and return bool.
13041 * xml-tdesc.c: Include <unordered_map> and <string>.
13042 (tdesc_xml_cache): Delete.
13043 (tdesc_xml_cache_s): Delete.
13044 (xml_cache): Now an std::unordered_map.
13045 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13046 (target_fetch_description_xml): Change return type to
13047 gdb::optional<std::string>, and adjust.
13048 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13049 (target_fetch_description_xml): Change return type to
13050 gdb::optional<std::string>.
13051
13052 2017-04-18 Pedro Alves <palves@redhat.com>
13053
13054 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13055 unittests/optional-selftests.c.
13056 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13057 * unittests/optional-selftests.c: New file.
13058 * unittests/optional/assignment/1.cc: New file.
13059 * unittests/optional/assignment/2.cc: New file.
13060 * unittests/optional/assignment/3.cc: New file.
13061 * unittests/optional/assignment/4.cc: New file.
13062 * unittests/optional/assignment/5.cc: New file.
13063 * unittests/optional/assignment/6.cc: New file.
13064 * unittests/optional/assignment/7.cc: New file.
13065 * unittests/optional/cons/copy.cc: New file.
13066 * unittests/optional/cons/default.cc: New file.
13067 * unittests/optional/cons/move.cc: New file.
13068 * unittests/optional/cons/value.cc: New file.
13069 * unittests/optional/in_place.cc: New file.
13070 * unittests/optional/observers/1.cc: New file.
13071 * unittests/optional/observers/2.cc: New file.
13072
13073 2017-04-18 Pedro Alves <palves@redhat.com>
13074
13075 * common/gdb_optional.h: Include common/traits.h.
13076 (in_place_t): New type.
13077 (in_place): New constexpr variable.
13078 (optional::optional): Remove member initialization of
13079 m_instantiated.
13080 (optional::optional(in_place_t...)): New constructor.
13081 (optional::~optional): Use reset.
13082 (optional::optional(const optional&)): New.
13083 (optional::optional(const optional&&)): New.
13084 (optional::optional(T &)): New.
13085 (optional::optional(T &&)): New.
13086 (operator::operator=(const optional &)): New.
13087 (operator::operator=(optional &&)): New.
13088 (operator::operator= (const T &))
13089 (operator::operator= (T &&))
13090 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13091 (operator::reset): New.
13092 (operator::m_instantiated):: Add in-class initializer.
13093 * common/traits.h: Include <type_traits>.
13094 (struct And): New types.
13095
13096 2017-04-18 Pedro Alves <palves@redhat.com>
13097
13098 * xml-support.c: Include <vector>.
13099 (scope_level::scope_level(const gdb_xml_element *))
13100 (scope_level::scope_level(scope_level&&)): New.
13101 (scope_level::~scope_level): New.
13102 (scope_level_s): Delete.
13103 (gdb_xml_parser::scopes): Now a std::vector.
13104 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13105 Use std::vector.
13106 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13107 scope cleanup code.
13108 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13109 of the scopes member. Use std::vector::emplace_back.
13110
13111 2017-04-18 Pedro Alves <palves@redhat.com>
13112
13113 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13114 a bool.
13115 (gdb_xml_end_element): Change type of first parameter.
13116 (gdb_xml_cleanup): Rename to ...
13117 (gdb_xml_parser::~gdb_xml_parser): ... this.
13118 (gdb_xml_create_parser_and_cleanup): Delete with ...
13119 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13120 to this new ctor.
13121 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13122 using gdb_xml_create_parser_and_cleanup.
13123 (xinclude_parsing_data): Add ctor/dtor.
13124 (xml_xinclude_cleanup): Delete.
13125 (xml_process_xincludes): Create a local xinclude_parsing_data
13126 instead of heap-allocating one. Create a local gdb_xml_parser
13127 instead of heap-allocating one with
13128 gdb_xml_create_parser_and_cleanup.
13129
13130 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13131
13132 PR threads/20743
13133 * fbsd-nat.c (resume_one_thread_cb): Remove.
13134 (resume_all_threads_cb): Remove.
13135 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13136 iterate_over_threads.
13137
13138 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13139
13140 * NEWS: Create a new section for the next release branch.
13141 Rename the section of the current branch, now that it has
13142 been cut.
13143
13144 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13145
13146 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13147 * version.in: Bump version to 8.0.50.DATE-git.
13148
13149 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13150
13151 PR gdb/21385
13152 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13153 independently of the host, and fix build breakage on Cygwin.
13154
13155 2017-04-13 Pedro Alves <palves@redhat.com>
13156
13157 * inferior.c (free_inferior): Convert to ...
13158 (inferior::~inferior): ... this dtor.
13159 (inferior::inferior): New ctor, factored out from ...
13160 (add_inferior_silent): ... here. Allocate the inferior with a new
13161 expression.
13162 (delete_inferior): Call delete instead of free_inferior.
13163 * inferior.h (gdb_environ, continuation): Forward declare.
13164 (inferior): Now a class. Add in-class initialization to all
13165 members. Make boolean fields bool, except 'detaching'.
13166 (inferior::inferior): New explicit ctor.
13167 (inferior::~inferior): New.
13168
13169 2017-04-13 Pedro Alves <palves@redhat.com>
13170
13171 * inferior.c (init_inferior_list): Delete.
13172 * inferior.h (init_inferior_list): Delete.
13173
13174 2017-04-13 Pedro Alves <palves@redhat.com>
13175
13176 PR threads/13217
13177 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13178 (top level): Call it twice, with different thread sets.
13179
13180 2017-04-13 Pedro Alves <palves@redhat.com>
13181
13182 * thread.c: Include <algorithm>.
13183 (thread_array_cleanup): Delete.
13184 (scoped_inc_dec_ref): New class.
13185 (live_threads_count): New function.
13186 (set_thread_refcount): Delete.
13187 (tp_array_compar_ascending): Now a bool.
13188 (tp_array_compar): Convert to a std::sort comparison function.
13189 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13190 and live_threads_count.
13191
13192 2017-04-13 Pedro Alves <palves@redhat.com>
13193
13194 * infrun.c (follow_fork_inferior): Also switch the current
13195 inferior.
13196
13197 2017-04-13 Pedro Alves <palves@redhat.com>
13198
13199 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13200 before calling create_internal_breakpoint.
13201
13202 2017-04-13 Pedro Alves <palves@redhat.com>
13203
13204 * fork-child.c (execv_argv): New class.
13205 (breakup_args): Refactored as ...
13206 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13207 Copy arguments to storage and replace separators with NULL
13208 terminators in place.
13209 (escape_bang_in_quoted_argument): Adjust to return bool.
13210 (execv_argv::execv_argv): New ctor.
13211 (execv_argv::init_for_shell): New method, factored out from
13212 fork_inferior. Don't strdup strings into the vector.
13213 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13214 Remove free_vector_argv call.
13215
13216 2017-04-13 Yao Qi <yao.qi@linaro.org>
13217
13218 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13219 tdep->rx_psw_type.
13220
13221 2017-04-13 Yao Qi <yao.qi@linaro.org>
13222
13223 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13224 * rx-tdep.c (rx_gdbarch_init): Likewise.
13225
13226 2017-04-13 Pedro Alves <palves@redhat.com>
13227
13228 * breakpoint.h (struct breakpoint): Reindent.
13229
13230 2017-04-13 Pedro Alves <palves@redhat.com>
13231
13232 * breakpoint.c (bp_location): Rename to ...
13233 (bp_locations): ... this. All references updated.
13234 (bp_location_count): Rename to ...
13235 (bp_locations_count): ... this. All references updated.
13236 (bp_location_placed_address_before_address_max): Rename to ...
13237 (bp_locations_placed_address_before_address_max): ... this. All
13238 references updated.
13239 (bp_location_shadow_len_after_address_max): Rename to ...
13240 (bp_locations_shadow_len_after_address_max): ... this. All
13241 references updated.
13242 (bp_location_compare_addrs): Rename to ...
13243 (bp_locations_compare_addrs): ... this. All references updated.
13244 (bp_location_compare):Rename to ...
13245 (bp_locations_compare): ... this. All references updated.
13246 (bp_location_target_extensions_update): Rename to ...
13247 (bp_locations_target_extensions_update): ... this. All references
13248 updated.
13249
13250 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13251
13252 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13253 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13254 'sgtty.h'.
13255 * common/gdb_termios.h: New file, with parts of "terminal.h".
13256 * inflow.c: Include "gdb_termios.h".
13257 * ser-unix.c: Include "gdb_termios.h".
13258 * terminal.h: Move terminal-related defines to
13259 "common/gdb_termios.h".
13260
13261 2017-04-12 Tom Tromey <tom@tromey.com>
13262
13263 * probe.c (parse_probes): Update.
13264 * location.h (delete_event_location): Don't declare.
13265 (event_location_deleter::operator()): Update.
13266 * location.c (event_location_deleter::operator()): Rename from
13267 delete_event_location.
13268 * linespec.h (linespec_result) <location>: Change type to
13269 event_location_up.
13270 * linespec.c (canonicalize_linespec, event_location_to_sals)
13271 (decode_objc): Update.
13272 (linespec_result): Don't call delete_event_location.
13273 * breakpoint.c (create_breakpoints_sal)
13274 (bkpt_probe_create_sals_from_location)
13275 (strace_marker_create_sals_from_location): Update.
13276
13277 2017-04-12 Tom Tromey <tom@tromey.com>
13278
13279 * linespec.h (struct linespec_result): Add constructor and
13280 destructor.
13281 (init_linespec_result, destroy_linespec_result)
13282 (make_cleanup_destroy_linespec_result): Don't declare.
13283 * linespec.c (init_linespec_result): Remove.
13284 (linespec_result::~linespec_result): Rename from
13285 destroy_linespec_result. Update.
13286 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13287 Remove.
13288 * breakpoint.c (create_breakpoint, break_range_command)
13289 (decode_location_default): Update.
13290 * ax-gdb.c (agent_command_1): Update.
13291
13292 2017-04-12 Tom Tromey <tom@tromey.com>
13293
13294 * remote.c (remote_download_tracepoint): Update.
13295 * python/py-breakpoint.c (bppy_get_location): Update.
13296 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13297 (gdbscm_breakpoint_location): Update.
13298 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13299 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13300 Change type to event_location_up.
13301 * breakpoint.c (create_overlay_event_breakpoint)
13302 (create_longjmp_master_breakpoint)
13303 (create_std_terminate_master_breakpoint)
13304 (create_exception_master_breakpoint)
13305 (breakpoint_event_location_empty_p, print_breakpoint_location)
13306 (print_one_breakpoint_location, create_thread_event_breakpoint)
13307 (init_breakpoint_sal, create_breakpoint)
13308 (print_recreate_ranged_breakpoint, break_range_command)
13309 (init_ada_exception_breakpoint, say_where): Update.
13310 (base_breakpoint_dtor): Don't call delete_event_location.
13311 (bkpt_print_recreate, tracepoint_print_recreate)
13312 (dprintf_print_recreate, update_static_tracepoint)
13313 (breakpoint_re_set_default): Update.
13314
13315 2017-04-12 Tom Tromey <tom@tromey.com>
13316
13317 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13318 type of "to_do". Update.
13319 (compute_stack_depth): Use std::vector.
13320
13321 2017-04-12 Tom Tromey <tom@tromey.com>
13322
13323 * printcmd.c (find_instruction_backward): Use std::vector.
13324
13325 2017-04-12 Tom Tromey <tom@tromey.com>
13326
13327 * symfile.c (objfilep): Remove typedef.
13328 (reread_symbols): Use a std::vector.
13329
13330 2017-04-12 Tom Tromey <tom@tromey.com>
13331
13332 * mi/mi-main.c (exec_direction_forward): Remove.
13333 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13334 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13335 scoped_restore.
13336 * guile/guile.c (guile_repl_command, guile_command)
13337 (gdbscm_execute_gdb_command): Use scoped_restore.
13338 * go-exp.y (go_parse): Use scoped_restore.
13339 * d-exp.y (d_parse): Use scoped_restore.
13340 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13341 * c-exp.y (c_parse): Use scoped_restore.
13342
13343 2017-04-12 Tom Tromey <tom@tromey.com>
13344
13345 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13346 (mi_parse): Update return type.
13347 (mi_parse_free): Remove.
13348 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13349 (mi_parse::~mi_parse): Rename from mi_parse_free.
13350 (mi_parse_cleanup): Remove.
13351 (mi_parse): Return a unique_ptr. Use new.
13352 * mi/mi-main.c (mi_execute_command): Update.
13353
13354 2017-04-12 Tom Tromey <tom@tromey.com>
13355
13356 * location.c (explicit_location_lex_one): Return a
13357 unique_xmalloc_ptr.
13358 (string_to_explicit_location): Update. Remove cleanups.
13359
13360 2017-04-12 Tom Tromey <tom@tromey.com>
13361
13362 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13363 (compare_value_and_voffset): Change type. Update.
13364 (compute_vtable_size): Change type of "offset_vec".
13365 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13366 (gnuv3_get_typeid): Remove extraneous declaration.
13367
13368 2017-04-12 Tom Tromey <tom@tromey.com>
13369
13370 * charset.h (wchar_iterator): Fix comment.
13371
13372 2017-04-12 Tom Tromey <tom@tromey.com>
13373
13374 * charset.c (iconv_wrapper): New class.
13375 (cleanup_iconv): Remove.
13376 (convert_between_encodings): Use it.
13377
13378 2017-04-12 Tom Tromey <tom@tromey.com>
13379
13380 * symfile.h (increment_reading_symtab): Update type.
13381 * symfile.c (decrement_reading_symtab): Remove.
13382 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13383 * psymtab.c (psymtab_to_symtab): Update.
13384 * dwarf2read.c (dw2_instantiate_symtab): Update.
13385
13386 2017-04-12 Tom Tromey <tom@tromey.com>
13387
13388 * jit.c (struct jit_reader): Declare separately. Add constructor
13389 and destructor. Change type of "handle".
13390 (loaded_jit_reader): Define separately.
13391 (jit_reader_load): Update. New "new".
13392 (jit_reader_unload_command): Use "delete".
13393 * gdb-dlfcn.h (struct dlclose_deleter): New.
13394 (gdb_dlhandle_up): New typedef.
13395 (gdb_dlopen, gdb_dlsym): Update types.
13396 (gdb_dlclose): Remove.
13397 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13398 (gdb_dlsym): Change type of "handle".
13399 (make_cleanup_dlclose): Remove.
13400 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13401 * compile/compile-c-support.c (load_libcc): Update.
13402
13403 2017-04-12 Tom Tromey <tom@tromey.com>
13404
13405 * symtab.h (find_pcs_for_symtab_line): Change return type.
13406 * symtab.c (find_pcs_for_symtab_line): Change return type.
13407 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13408 type of "vec". Update.
13409 (ltpy_get_pcs_for_line): Update.
13410 * linespec.c (decode_digits_ordinary): Update.
13411
13412 2017-04-12 Tom Tromey <tom@tromey.com>
13413
13414 * tracepoint.c (actions_command): Update.
13415 * python/python.c (python_command, python_interactive_command):
13416 Update.
13417 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13418 * guile/guile.c (guile_command): Update.
13419 * defs.h (read_command_lines, read_command_lines_1): Return
13420 command_line_up.
13421 (command_lines_deleter): New struct.
13422 (command_line_up): New typedef.
13423 * compile/compile.c (compile_code_command)
13424 (compile_print_command): Update.
13425 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13426 command_line_up.
13427 (make_cleanup_free_command_lines): Remove.
13428 * cli/cli-script.c (get_command_line, read_command_lines_1)
13429 (copy_command_lines): Return command_line_up.
13430 (while_command, if_command, read_command_lines, define_command)
13431 (document_command): Update.
13432 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13433 Remove.
13434 * breakpoint.h (breakpoint_set_commands): Change type of
13435 "commands".
13436 * breakpoint.c (breakpoint_set_commands): Change type of
13437 "commands". Update.
13438 (do_map_commands_command, update_dprintf_command_list)
13439 (create_tracepoint_from_upload): Update.
13440
13441 2017-04-12 Tom Tromey <tom@tromey.com>
13442
13443 * tracepoint.c (scope_info): Update.
13444 * spu-tdep.c (spu_catch_start): Update.
13445 * python/python.c (gdbpy_decode_line): Update.
13446 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
13447 * python/py-breakpoint.c (bppy_init): Update.
13448 * probe.c (parse_probes): Update.
13449 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
13450 * location.h (event_location_deleter): New struct.
13451 (event_location_up): New typedef.
13452 (new_linespec_location, new_address_location, new_probe_location)
13453 (new_explicit_location, copy_event_location)
13454 (string_to_event_location, string_to_event_location_basic)
13455 (string_to_explicit_location): Update return type.
13456 (make_cleanup_delete_event_location): Remove.
13457 * location.c (new_linespec_location, new_address_location)
13458 (new_probe_location, new_explicit_location, copy_event_location):
13459 Return event_location_up.
13460 (delete_event_location_cleanup)
13461 (make_cleanup_delete_event_location): Remove.
13462 (string_to_explicit_location, string_to_event_location_basic)
13463 (string_to_event_location): Return event_location_up.
13464 * linespec.c (canonicalize_linespec, event_location_to_sals)
13465 (decode_line_with_current_source)
13466 (decode_line_with_last_displayed, decode_objc): Update.
13467 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
13468 * completer.c (location_completer): Update.
13469 * cli/cli-cmds.c (edit_command, list_command): Update.
13470 * breakpoint.c (create_overlay_event_breakpoint)
13471 (create_longjmp_master_breakpoint)
13472 (create_std_terminate_master_breakpoint)
13473 (create_exception_master_breakpoint)
13474 (create_thread_event_breakpoint): Update.
13475 (init_breakpoint_sal): Update. Remove some dead code.
13476 (create_breakpoint_sal): Change type of "location". Update.
13477 (create_breakpoints_sal, create_breakpoint, break_command_1)
13478 (dprintf_command, break_range_command, until_break_command)
13479 (init_ada_exception_breakpoint)
13480 (strace_marker_create_sals_from_location)
13481 (update_static_tracepoint, trace_command, ftrace_command)
13482 (strace_command, create_tracepoint_from_upload): Update.
13483 * break-catch-throw.c (re_set_exception_catchpoint): Update.
13484 * ax-gdb.c (agent_command_1): Update.
13485
13486 2017-04-12 Pedro Alves <palves@redhat.com>
13487
13488 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
13489 * configure.tgt: Handle i[34567]86-*-go32* and
13490 i[34567]86-*-msdosdjgpp*.
13491 * i386-tdep.c (i386_svr4_reg_to_regnum):
13492 Make extern.
13493 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
13494 i386-go32-tdep.c.
13495 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
13496 * i386-go32-tdep.c: New file.
13497 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
13498 declarations.
13499
13500 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
13501
13502 * aix-thread.c (pd_status2str): Change return type to const char *.
13503
13504 2017-04-12 Pedro Alves <palves@redhat.com>
13505
13506 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
13507 calls to set_gdbarch_gnu_triplet_regexp.
13508
13509 2017-04-12 Pedro Alves <palves@redhat.com>
13510
13511 PR gdb/21323
13512 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
13513 New enum value.
13514 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
13515 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
13516 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
13517 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
13518 * gdbarch.h, gdbarch.c: Regenerate.
13519 * aarch64-tdep.c (aarch64_gdbarch_init): Override
13520 gdbarch_wchar_bit and gdbarch_wchar_signed.
13521 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
13522 * arm-tdep.c (arm_gdbarch_init): Likewise.
13523 * avr-tdep.c (avr_gdbarch_init): Likewise.
13524 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13525 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
13526 * i386-tdep.c (i386_go32_init_abi): Likewise.
13527 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13528 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13529 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
13530 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
13531 * sh-tdep.c (sh_gdbarch_init): Likewise.
13532 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13533 * sparc64-tdep.c (sparc64_init_abi): Likewise.
13534 * windows-tdep.c (windows_init_abi): Likewise.
13535 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13536
13537 2017-04-12 Pedro Alves <palves@redhat.com>
13538
13539 PR c++/21323
13540 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
13541 cplus_primitive_type_char32_t>: New enum values.
13542 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
13543 and cplus_primitive_type_char32_t.
13544 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
13545 32, use the archtecture's built-in type for char16_t and char32_t,
13546 respectively. Otherwise, fallback to init_integer_type as before,
13547 but make the type unsigned, and issue a complaint.
13548 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
13549
13550 2017-04-12 Alan Hayward <alan.hayward@arm.com>
13551
13552 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
13553 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13554
13555 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13556
13557 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13558 'const char *'.
13559
13560 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13561
13562 * common/common-utils.c (free_vector_argv): New function.
13563 * common/common-utils.h: Include <vector>.
13564 (free_vector_argv): New prototype.
13565 * darwin-nat.c (darwin_create_inferior): Rewrite function
13566 prototype in order to constify "exec_file" and accept a
13567 "std::string" for "allargs".
13568 * fork-child.c: Include <vector>.
13569 (breakup_args): Rewrite function, using C++.
13570 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13571 and accept "std::string" for "allargs". Update the code to
13572 calculate "argv" based on "allargs". Update calls to "exec_fun"
13573 and "execvp".
13574 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13575 order to constify "exec_file" and accept a "std::string" for
13576 "allargs".
13577 * go32-nat.c (go32_create_inferior): Likewise.
13578 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13579 * infcmd.c (run_command_1): Constify "exec_file". Use
13580 "std::string" for inferior arguments.
13581 * inferior.h (fork_inferior): Update prototype.
13582 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13583 prototype in order to constify "exec_file" and accept a
13584 "std::string" for "allargs".
13585 * nto-procfs.c (procfs_create_inferior): Likewise.
13586 * procfs.c (procfs_create_inferior): Likewise.
13587 * remote-sim.c (gdbsim_create_inferior): Likewise.
13588 * remote.c (extended_remote_run): Update code to accept
13589 "std::string" as argument.
13590 (extended_remote_create_inferior): Rewrite function prototype in
13591 order to constify "exec_file" and accept a "std::string" for
13592 "allargs".
13593 * rs6000-nat.c (super_create_inferior): Likewise.
13594 (rs6000_create_inferior): Likewise.
13595 * target.h (struct target_ops) <to_create_inferior>: Likewise.
13596 * windows-nat.c (windows_create_inferior): Likewise.
13597
13598 2017-04-11 Pedro Alves <palves@redhat.com>
13599
13600 * thread.c: Fix whitespace throughout.
13601
13602 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
13603
13604 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
13605
13606 2017-04-11 Alan Hayward <alan.hayward@arm.com>
13607
13608 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
13609
13610 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
13611
13612 PR gdb/21364
13613 * osdata.c (info_osdata): Check if 'type' is an empty string
13614 instead of NULL.
13615
13616 2017-04-10 Pedro Alves <palves@redhat.com>
13617
13618 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
13619 (ptid_to_global_thread_id, in_thread_list)
13620 (do_captured_list_thread_ids, set_resumed, set_running)
13621 (set_executing, set_stop_requested, finish_thread_state)
13622 (validate_registers_access, can_access_registers_ptid)
13623 (print_thread_info_1, switch_to_thread)
13624 (do_restore_current_thread_cleanup)
13625 (make_cleanup_restore_current_thread, thread_command)
13626 (thread_name_command): Use operator== instead of ptid_equal.
13627
13628 2017-04-10 Pedro Alves <palves@redhat.com>
13629
13630 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13631 (current_thread_cleanup_chain): Delete.
13632 (restore_current_thread_cleanup_dtor)
13633 (make_cleanup_restore_current_thread): Remove references to
13634 current_thread_cleanup_chain.
13635
13636 2017-04-10 Alan Hayward <alan.hayward@arm.com>
13637
13638 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13639 REG_UNKNOWN.
13640
13641 2017-04-10 Yao Qi <yao.qi@linaro.org>
13642
13643 PR gdb/19942
13644 * gdbthread.h (thread_info::deletable): New method.
13645 (thread_info::incref): New method.
13646 (thread_info::decref): New method.
13647 (thread_info::refcount): Move it to private.
13648 * infrun.c (save_stop_context): Call inc_refcount.
13649 (release_stop_context_cleanup): Likewise.
13650 * thread.c (set_thread_exited): New function.
13651 (init_thread_list): Delete "tp" only it is deletable, otherwise
13652 call set_thread_exited.
13653 (delete_thread_1): Call set_thread_exited.
13654 (current_thread_cleanup) <inferior_pid>: Remove.
13655 <thread>: New field.
13656 (restore_current_thread_ptid_changed): Removed.
13657 (do_restore_current_thread_cleanup): Adjust.
13658 (restore_current_thread_cleanup_dtor): Don't call
13659 find_thread_ptid.
13660 (set_thread_refcount): Use dec_refcount.
13661 (make_cleanup_restore_current_thread): Adjust.
13662 (thread_apply_all_command): Call inc_refcount.
13663 (_initialize_thread): Don't call
13664 observer_attach_thread_ptid_changed.
13665
13666 2017-04-10 Yao Qi <yao.qi@linaro.org>
13667
13668 * thread.c (delete_thread_1): Hoist code on marking thread as
13669 exited.
13670
13671 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13672
13673 * windows-nat.c (windows_detach): Initialize ptid with
13674 minus_one_ptid.
13675
13676 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
13677
13678 * unittests/ptid-selftests.c: Fix erroneous assert messages.
13679
13680 2017-04-07 Alan Hayward <alan.hayward@arm.com>
13681
13682 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
13683 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
13684 (bfin_pseudo_register_write): Likewise
13685
13686 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
13687
13688 * common/ptid.h (struct ptid): Change to...
13689 (class ptid_t): ... this.
13690 <ptid_t>: New constructors.
13691 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
13692 matches>: New methods.
13693 <make_null, make_minus_one>: New static methods.
13694 <pid>: Rename to...
13695 <m_pid>: ...this.
13696 <lwp>: Rename to...
13697 <m_lwp>: ...this.
13698 <tid>: Rename to...
13699 <m_tid>: ...this.
13700 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
13701 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
13702 as references, move comment to class ptid_t.
13703 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
13704 ptid_t static methods.
13705 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
13706 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
13707 Take ptid arguments as references, implement using ptid_t methods.
13708 * unittests/ptid-selftests.c: New file.
13709 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13710 unittests/ptid-selftests.c.
13711 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
13712
13713 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13714
13715 * python/python.c (python_run_simple_file): Cast mode literal to
13716 non-const char pointer as expected by PyFile_FromString.
13717
13718 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
13719
13720 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
13721 minus_one_ptid and null_ptid.
13722
13723 2017-04-05 Pedro Alves <palves@redhat.com>
13724
13725 * warning.m4 (build_warnings): Remove -Wno-write-strings.
13726 * configure: Regenerate.
13727
13728 2017-04-05 Pedro Alves <palves@redhat.com>
13729
13730 * ada-exp.y (yyerror): Constify.
13731 * ada-lang.c (bound_name, get_selections)
13732 (ada_variant_discrim_type)
13733 (ada_variant_discrim_name, ada_value_struct_elt)
13734 (ada_lookup_struct_elt_type, is_unchecked_variant)
13735 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
13736 (catch_ada_exception_command_split)
13737 (catch_ada_assert_command_split, catch_assert_command)
13738 (ada_op_name): Constify.
13739 * ada-lang.h (ada_yyerror, get_selections)
13740 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
13741 * arc-tdep.c (arc_print_frame_cache): Constify.
13742 * arm-tdep.c (arm_skip_stub): Constify.
13743 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
13744 (gen_aggregate_elt_ref): Constify.
13745 * bcache.c (print_bcache_statistics): Constify.
13746 * bcache.h (print_bcache_statistics): Constify.
13747 * break-catch-throw.c (catch_exception_command_1):
13748 * breakpoint.c (struct ep_type_description::description):
13749 Constify.
13750 (add_solib_catchpoint): Constify.
13751 (catch_fork_command_1): Add cast.
13752 (add_catch_command): Constify.
13753 * breakpoint.h (add_catch_command, add_solib_catchpoint):
13754 Constify.
13755 * bsd-uthread.c (bsd_uthread_state): Constify.
13756 * buildsym.c (patch_subfile_names): Constify.
13757 * buildsym.h (next_symbol_text_func, patch_subfile_names):
13758 Constify.
13759 * c-exp.y (yyerror): Constify.
13760 (token::oper): Constify.
13761 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
13762 * c-varobj.c (cplus_describe_child): Constify.
13763 * charset.c (find_charset_names): Add cast.
13764 (find_charset_names): Constify array and add const_cast.
13765 * cli/cli-cmds.c (complete_command, cd_command): Constify.
13766 (edit_command): Constify.
13767 * cli/cli-decode.c (lookup_cmd): Constify.
13768 * cli/cli-dump.c (dump_memory_command, dump_value_command):
13769 Constify.
13770 (struct dump_context): Constify.
13771 (add_dump_command, restore_command): Constify.
13772 * cli/cli-script.c (get_command_line): Constify.
13773 * cli/cli-script.h (get_command_line): Constify.
13774 * cli/cli-utils.c (check_for_argument): Constify.
13775 * cli/cli-utils.h (check_for_argument): Constify.
13776 * coff-pe-read.c (struct read_pe_section_data): Constify.
13777 * command.h (lookup_cmd): Constify.
13778 * common/print-utils.c (decimal2str): Constify.
13779 * completer.c (gdb_print_filename): Constify.
13780 * corefile.c (set_gnutarget): Constify.
13781 * cp-name-parser.y (yyerror): Constify.
13782 * cp-valprint.c (cp_print_class_member): Constify.
13783 * cris-tdep.c (cris_register_name, crisv32_register_name):
13784 Constify.
13785 * d-exp.y (yyerror): Constify.
13786 (struct token::oper): Constify.
13787 * d-lang.h (d_yyerror): Constify.
13788 * dbxread.c (struct header_file_location::name): Constify.
13789 (add_old_header_file, add_new_header_file, last_function_name)
13790 (dbx_next_symbol_text, add_bincl_to_list)
13791 (find_corresponding_bincl_psymtab, set_namestring)
13792 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
13793 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
13794 * defs.h (command_line_input, print_address_symbolic)
13795 (deprecated_readline_begin_hook): Constify.
13796 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
13797 Constify.
13798 * event-top.c (handle_line_of_input): Constify and add cast.
13799 * exceptions.c (catch_errors): Constify.
13800 * exceptions.h (catch_errors): Constify.
13801 * expprint.c (print_subexp_standard, op_string, op_name)
13802 (op_name_standard, dump_raw_expression, dump_raw_expression):
13803 * expression.h (op_name, op_string, dump_raw_expression):
13804 Constify.
13805 * f-exp.y (yyerror): Constify.
13806 (struct token::oper): Constify.
13807 (struct f77_boolean_val::name): Constify.
13808 * f-lang.c (f_word_break_characters): Constify.
13809 * f-lang.h (f_yyerror): Constify.
13810 * fork-child.c (fork_inferior): Add cast.
13811 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
13812 (new_variant): Constify.
13813 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
13814 * gdbarch.c: Regenerate.
13815 * gdbcore.h (set_gnutarget): Constify.
13816 * go-exp.y (yyerror): Constify.
13817 (token::oper): Constify.
13818 * go-lang.h (go_yyerror): Constify.
13819 * go32-nat.c (go32_sysinfo): Constify.
13820 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
13821 * guile/scm-cmd.c (cmdscm_function): Constify.
13822 * guile/scm-param.c (pascm_param_value): Constify.
13823 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
13824 (h8300sx_register_name): Constify.
13825 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
13826 Constify.
13827 * ia64-tdep.c (ia64_register_names): Constify.
13828 * infcmd.c (construct_inferior_arguments): Constify.
13829 (path_command, attach_post_wait): Constify.
13830 * language.c (show_range_command, show_case_command)
13831 (unk_lang_error): Constify.
13832 * language.h (language_defn::la_error)
13833 (language_defn::la_name_of_this): Constify.
13834 * linespec.c (decode_line_2): Constify.
13835 * linux-thread-db.c (thread_db_err_str): Constify.
13836 * lm32-tdep.c (lm32_register_name): Constify.
13837 * m2-exp.y (yyerror): Constify.
13838 * m2-lang.h (m2_yyerror): Constify.
13839 * m32r-tdep.c (m32r_register_names): Constify and make static.
13840 * m68hc11-tdep.c (m68hc11_register_names): Constify.
13841 * m88k-tdep.c (m88k_register_name): Constify.
13842 * macroexp.c (appendmem): Constify.
13843 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
13844 (upgrade_type, parse_external, parse_partial_symbols)
13845 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
13846 (new_symbol): Constify.
13847 * memattr.c (mem_info_command): Constify.
13848 * mep-tdep.c (register_name_from_keyword): Constify.
13849 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
13850 Constify.
13851 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
13852 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
13853 * mi/mi-main.c (captured_mi_execute_command): Constify and add
13854 cast.
13855 (mi_execute_async_cli_command): Constify.
13856 * mips-tdep.c (mips_register_name): Constify.
13857 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
13858 (am33_register_name, am33_2_register_name)
13859 * moxie-tdep.c (moxie_register_names): Constify.
13860 * nat/linux-osdata.c (osdata_type): Constify fields.
13861 * nto-tdep.c (nto_parse_redirection): Constify.
13862 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
13863 (lookup_child_selector): Constify.
13864 (objc_methcall::name): Constify.
13865 * objc-lang.h (lookup_objc_class, lookup_child_selector)
13866 (lookup_struct_typedef): Constify.
13867 * objfiles.c (pc_in_section): Constify.
13868 * objfiles.h (pc_in_section): Constify.
13869 * p-exp.y (struct token::oper): Constify.
13870 (yyerror): Constify.
13871 * p-lang.h (pascal_yyerror): Constify.
13872 * parser-defs.h (op_name_standard): Constify.
13873 (op_print::string): Constify.
13874 (exp_descriptor::op_name): Constify.
13875 * printcmd.c (print_address_symbolic): Constify.
13876 * psymtab.c (print_partial_symbols): Constify.
13877 * python/py-breakpoint.c (stop_func): Constify.
13878 (bppy_get_expression): Constify.
13879 * python/py-cmd.c (cmdpy_completer::name): Constify.
13880 (cmdpy_function): Constify.
13881 * python/py-event.c (evpy_add_attribute)
13882 (gdbpy_initialize_event_generic): Constify.
13883 * python/py-event.h (evpy_add_attribute)
13884 (gdbpy_initialize_event_generic): Constify.
13885 * python/py-evts.c (add_new_registry): Constify.
13886 * python/py-finishbreakpoint.c (outofscope_func): Constify.
13887 * python/py-framefilter.c (get_py_iter_from_func): Constify.
13888 * python/py-inferior.c (get_buffer): Add cast.
13889 * python/py-param.c (parm_constant::name): Constify.
13890 * python/py-unwind.c (fprint_frame_id): Constify.
13891 * python/python.c (gdbpy_parameter_value): Constify.
13892 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
13893 * remote.c (memory_packet_config::name): Constify.
13894 (show_packet_config_cmd, remote_write_bytes)
13895 (remote_buffer_add_string):
13896 * reverse.c (exec_reverse_once): Constify.
13897 * rs6000-tdep.c (variant::name, variant::description): Constify.
13898 * rust-exp.y (rustyyerror): Constify.
13899 * rust-lang.c (rust_op_name): Constify.
13900 * rust-lang.h (rustyyerror): Constify.
13901 * serial.h (serial_ops::name): Constify.
13902 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
13903 (sh_sh3e_register_name, sh_sh2e_register_name)
13904 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
13905 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
13906 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
13907 (sh_sh4al_dsp_register_name): Constify.
13908 * sh64-tdep.c (sh64_register_name): Constify.
13909 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
13910 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
13911 * stabsread.c (patch_block_stabs, read_type_number)
13912 (ref_map::stabs, ref_add, process_reference)
13913 (symbol_reference_defined, define_symbol, define_symbol)
13914 (error_type, read_type, read_member_functions, read_cpp_abbrev)
13915 (read_one_struct_field, read_struct_fields, read_baseclasses)
13916 (read_tilde_fields, read_struct_type, read_array_type)
13917 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
13918 (read_huge_number, read_range_type, read_args, common_block_start)
13919 (find_name_end): Constify.
13920 * stabsread.h (common_block_start, define_symbol)
13921 (process_one_symbol, symbol_reference_defined, ref_add):
13922 * symfile.c (get_section_index, add_symbol_file_command):
13923 * symfile.h (get_section_index): Constify.
13924 * target-descriptions.c (tdesc_type::name): Constify.
13925 (tdesc_free_type): Add cast.
13926 * target.c (find_default_run_target):
13927 (add_deprecated_target_alias, find_default_run_target)
13928 (target_announce_detach): Constify.
13929 (do_option): Constify.
13930 * target.h (add_deprecated_target_alias): Constify.
13931 * thread.c (print_thread_info_1): Constify.
13932 * top.c (deprecated_readline_begin_hook, command_line_input):
13933 Constify.
13934 (init_main): Add casts.
13935 * top.h (handle_line_of_input): Constify.
13936 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
13937 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
13938 (tfind_command): Rename to ...
13939 (tfind_command_1): ... this and constify.
13940 (tfind_command): New function.
13941 (tfind_end_command, tfind_start_command): Adjust.
13942 (encode_source_string): Constify.
13943 * tracepoint.h (encode_source_string): Constify.
13944 * tui/tui-data.c (tui_partial_win_by_name): Constify.
13945 * tui/tui-data.h (tui_partial_win_by_name): Constify.
13946 * tui/tui-source.c (tui_set_source_content_nil): Constify.
13947 * tui/tui-source.h (tui_set_source_content_nil): Constify.
13948 * tui/tui-win.c (parse_scrolling_args): Constify.
13949 * tui/tui-windata.c (tui_erase_data_content): Constify.
13950 * tui/tui-windata.h (tui_erase_data_content): Constify.
13951 * tui/tui-winsource.c (tui_erase_source_content): Constify.
13952 * tui/tui.c (tui_enable): Add cast.
13953 * utils.c (defaulted_query): Constify.
13954 (init_page_info): Add cast.
13955 (puts_debug, subset_compare): Constify.
13956 * utils.h (subset_compare): Constify.
13957 * varobj.c (varobj_format_string): Constify.
13958 * varobj.h (varobj_format_string): Constify.
13959 * vax-tdep.c (vax_register_name): Constify.
13960 * windows-nat.c (windows_detach): Constify.
13961 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
13962 * xml-support.c (gdb_xml_end_element): Constify.
13963 * xml-tdesc.c (tdesc_start_reg): Constify.
13964 * xstormy16-tdep.c (xstormy16_register_name): Constify.
13965 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
13966 * xtensa-tdep.h (xtensa_register_t::name): Constify.
13967
13968 2017-04-05 Pedro Alves <palves@redhat.com>
13969
13970 * proc-api.c (struct trans): Constify.
13971 (procfs_note): Constify.
13972 * proc-events.c (struct trans, syscall_table):
13973 * proc-flags.c (struct trans): Constify.
13974 * proc-utils.h (procfs_note): Constify.
13975 * proc-why.c (struct trans): Constify.
13976 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
13977 (procfs_detach): Constify.
13978 * sol-thread.c (struct string_map): Constify.
13979 (td_err_string, td_state_string): Constify.
13980
13981 2017-04-05 Pedro Alves <palves@redhat.com>
13982
13983 * proc-api.c (procfs_filename): Don't initialize
13984 procfs_filename.
13985 (prepare_to_trace): Assume procfs_filename is non-NULL.
13986 (_initialize_proc_api): Give procfs_filename a default value here.
13987
13988 2017-04-05 Pedro Alves <palves@redhat.com>
13989
13990 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
13991 'cond_string' parameter.
13992 (extract_exception_regexp): Constify 'string' parameter.
13993 (catch_exception_command_1): Constify.
13994 * breakpoint.c (init_catchpoint)
13995 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
13996 parameter.
13997 (ep_parse_optional_if_clause, catch_fork_command_1)
13998 (catch_exec_command_1): Constify.
13999 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14000 parameter.
14001 (ep_parse_optional_if_clause): Constify.
14002 * cli/cli-utils.c (remove_trailing_whitespace)
14003 (check_for_argument): Constify.
14004 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14005 non-const overload.
14006 (check_for_argument): Likewise.
14007
14008 2017-04-05 Pedro Alves <palves@redhat.com>
14009
14010 * event-top.c (command_line_handler): Add cast to execute_command
14011 call.
14012 * record-btrace.c (cmd_record_btrace_bts_start)
14013 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14014 (cmd_record_btrace_start): Add cast to execute_command call.
14015 * record-full.c (record_full_goto_insn):
14016 * record.c (record_start, record_stop): Add cast to
14017 execute_command_to_string calls.
14018 (cmd_record_start): Add cast to execute_command calls.
14019
14020 2017-04-05 Pedro Alves <palves@redhat.com>
14021
14022 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14023 static inline function.
14024 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14025 array and use gdb_PyArg_ParseTupleAndKeywords.
14026 * python/py-cmd.c (cmdpy_init): Likewise.
14027 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14028 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14029 (infpy_search_memory): Likewise.
14030 * python/py-objfile.c (objfpy_add_separate_debug_file)
14031 (gdbpy_lookup_objfile): Likewise.
14032 * python/py-symbol.c (gdbpy_lookup_symbol)
14033 (gdbpy_lookup_global_symbol): Likewise.
14034 * python/py-type.c (gdbpy_lookup_type): Likewise.
14035 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14036 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14037 Likewise.
14038
14039 2017-04-05 Pedro Alves <palves@redhat.com>
14040
14041 * python/python-internal.h (gdb_PyGetSetDef): New type.
14042 * python/py-block.c (block_object_getset)
14043 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14044 * python/py-event.c (event_object_getset)
14045 (finish_breakpoint_object_getset): Likewise.
14046 * python/py-inferior.c (inferior_object_getset): Likewise.
14047 * python/py-infthread.c (thread_object_getset): Likewise.
14048 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14049 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14050 * python/py-objfile.c (objfile_getset): Likewise.
14051 * python/py-progspace.c (pspace_getset): Likewise.
14052 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14053 Likewise.
14054 * python/py-record.c (recpy_record_getset): Likewise.
14055 * python/py-symbol.c (symbol_object_getset): Likewise.
14056 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14057 Likewise.
14058 * python/py-type.c (type_object_getset, field_object_getset):
14059 Likewise.
14060 * python/py-value.c (value_object_getset): Likewise.
14061
14062 2017-04-05 Pedro Alves <palves@redhat.com>
14063
14064 * python/python-internal.h (gdb_PyObject_CallMethod)
14065 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14066 New functions.
14067 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14068 (PySys_GetObject, PySys_SetPath): New macros.
14069
14070 2017-04-05 Pedro Alves <palves@redhat.com>
14071
14072 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14073 info_osdata_command.
14074 * osdata.c (info_osdata_command): Rename to ...
14075 (info_osdata): ... this. Constify 'type' parameter, and remove
14076 the 'from_tty' parameter. Accept NULL TYPE.
14077 (info_osdata_command): New function.
14078 * osdata.h (info_osdata_command): Remove declaration.
14079 (info_osdata): New declaration.
14080
14081 2017-04-05 Pedro Alves <palves@redhat.com>
14082
14083 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14084 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14085 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14086 parameter.
14087 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14088 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14089 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14090 parameter.
14091 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14092 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14093 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14094 (mi_cmd_file_list_exec_source_files)
14095 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14096 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14097 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14098 parameter.
14099 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14100 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14101 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14102 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14103 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14104 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14105 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14106 'command' parameter.
14107 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14108 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14109 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14110 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14111 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14112 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14113 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14114 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14115 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14116 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14117 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14118 parameter.
14119 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14120 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14121 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14122 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14123 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14124 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14125 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14126 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14127 (mi_cmd_data_list_changed_registers)
14128 (mi_cmd_data_write_register_values)
14129 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14130 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14131 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14132 (mi_cmd_list_features, mi_cmd_list_target_features)
14133 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14134 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14135 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14136 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14137 (mi_cmd_trace_frame_collected): Constify 'command'
14138 parameter.
14139 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14140 'command' parameter.
14141
14142 2017-04-05 Pedro Alves <palves@redhat.com>
14143
14144 * ada-lang.c (ada_completer_word_break_characters): Now a const
14145 array.
14146 (ada_get_gdb_completer_word_break_characters): Constify.
14147 * completer.c (gdb_completer_command_word_break_characters)
14148 (gdb_completer_file_name_break_characters)
14149 (gdb_completer_quote_characters): Now const arrays.
14150 (get_gdb_completer_quote_characters): Constify.
14151 (set_rl_completer_word_break_characters): New function.
14152 (set_gdb_completion_word_break_characters)
14153 (complete_line_internal): Use it.
14154 * completer.h (get_gdb_completer_quote_characters): Constify.
14155 (set_rl_completer_word_break_characters): Declare.
14156 * f-lang.c (f_word_break_characters): Constify.
14157 * language.c (default_word_break_characters): Constify.
14158 * language.h (language_defn::la_word_break_characters): Constify.
14159 (default_word_break_characters): Constify.
14160 * top.c (init_main): Use set_rl_completer_word_break_characters.
14161
14162 2017-04-05 Pedro Alves <palves@redhat.com>
14163
14164 * aix-thread.c (aix_thread_pid_to_str)
14165 (aix_thread_extra_thread_info): Constify.
14166 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14167 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14168 (bsd_uthread_pid_to_str): Constify.
14169 * corelow.c (core_pid_to_str): Constify.
14170 * darwin-nat.c (darwin_pid_to_str): Constify.
14171 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14172 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14173 Constify.
14174 * gnu-nat.c (gnu_pid_to_str): Constify.
14175 * go32-nat.c (go32_pid_to_str): Constify.
14176 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14177 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14178 * inferior.c (inferior_pid_to_str): Constify.
14179 * linux-nat.c (linux_nat_pid_to_str): Constify.
14180 * linux-tdep.c (linux_core_pid_to_str): Constify.
14181 * linux-thread-db.c (thread_db_pid_to_str)
14182 (thread_db_extra_thread_info): Constify.
14183 * nto-tdep.c (nto_extra_thread_info): Constify.
14184 * nto-tdep.h (nto_extra_thread_info): Constify.
14185 * obsd-nat.c (obsd_pid_to_str): Constify.
14186 * procfs.c (procfs_pid_to_str): Constify.
14187 * ravenscar-thread.c (ravenscar_extra_thread_info)
14188 (ravenscar_pid_to_str): Constify.
14189 * remote-sim.c (gdbsim_pid_to_str): Constify.
14190 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14191 Constify.
14192 * sol-thread.c (solaris_pid_to_str): Constify.
14193 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14194 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14195 * target.c (default_pid_to_str, target_pid_to_str)
14196 (normal_pid_to_str, default_pid_to_str): Constify.
14197 * target.h (target_ops::to_pid_to_str)
14198 (target_ops::to_extra_thread_info): Constify.
14199 (target_pid_to_str, normal_pid_to_str): Constify.
14200 * windows-nat.c (windows_pid_to_str): Constify.
14201 * gdbarch.sh (core_pid_to_str): Constify.
14202 * target-delegates.c: Regenerate.
14203 * gdbarch.h, gdbarch.c: Regenerate.
14204
14205 2017-04-05 Pedro Alves <palves@redhat.com>
14206
14207 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14208 the memory of the temporary warning_pre_print override.
14209 * utils.c (warning_pre_print): Constify.
14210 * utils.h (warning_pre_print): Constify.
14211
14212 2017-04-05 Pedro Alves <palves@redhat.com>
14213
14214 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14215 (shell_command): New function.
14216 (make_command): Use std::string.
14217 (init_cli_cmds): Register shell_command instead of shell_escape.
14218
14219 2017-04-05 Pedro Alves <palves@redhat.com>
14220
14221 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14222 * tracepoint.c (default_collect): Don't initialize.
14223
14224 2017-04-05 Pedro Alves <palves@redhat.com>
14225
14226 * macroexp.c (macro_buffer::shared): Now a bool.
14227 (init_buffer): Update.
14228 (init_shared_buffer): Constify 'addr' parameter.
14229 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14230 casts.
14231
14232 2017-04-05 Pedro Alves <palves@redhat.com>
14233
14234 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14235 * disasm.c (set_disassembler_options): Constify local.
14236 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14237
14238 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14239
14240 PR gdb/21352
14241 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14242 option.
14243
14244 2017-04-05 Yao Qi <yao.qi@linaro.org>
14245
14246 * frame.c (frame_unwind_register_unsigned): Call
14247 frame_unwind_register_value.
14248
14249 2017-04-05 Yao Qi <yao.qi@linaro.org>
14250
14251 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14252 Use gdb_test_multiple, and don't match anchor.
14253
14254 2017-04-05 Pedro Alves <palves@redhat.com>
14255
14256 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14257 (Write After Approval): Remove Simon Marchi.
14258
14259 2017-04-05 Pedro Alves <palves@redhat.com>
14260
14261 * common/gdb_optional.h (optional::optional): Make constexpr and
14262 initialize m_dummy.
14263
14264 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14265
14266 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14267 (amd64fbsd_jmp_buf_reg_offset): Remove.
14268 (amd64fbsd_supply_uthread): Remove function.
14269 (amd64fbsd_collect_uthread): Remove function.
14270 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14271 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14272 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14273 (fbsd-nat.c): Update comment.
14274 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14275 (i386fbsd_jmp_buf_reg_offset): Remove.
14276 (i386fbsd_supply_uthread): Remove function.
14277 (i386fbsd_collect_uthread): Remove function.
14278 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14279
14280 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14281
14282 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14283 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14284 * NEWS: Mention that support for FreeBSD/alpha was removed.
14285 * alpha-fbsd-tdep.c: Delete file.
14286 * config/alpha/fbsd.mh: Delete file.
14287 * configure.host: Delete alpha*-*-freebsd* and
14288 alpha*-*-kfreebsd*-gnu.
14289 * configure.tgt: Delete alpha*-*-freebsd* and
14290 alpha*-*-kfreebsd*-gnu.
14291
14292 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14293
14294 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14295 amd64bsd_store_inferior_registers): Use ptid from regcache.
14296
14297 2017-04-04 Pedro Alves <palves@redhat.com>
14298
14299 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14300 data fields, make them private and add "m_" prefixes.
14301 (lnp_state_machine::lnp_state_machine): New ctor.
14302 (record_line, check_line_address, handle_set_discriminator)
14303 (handle_set_address, handle_advance_pc, handle_special_opcode)
14304 (handle_advance_line, handle_set_file, handle_negate_stmt)
14305 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14306 (end_sequence, advance_line): New methods.
14307 (m_gdbarch, m_record_lines_p): New fields.
14308 (lnp_reader_state): Delete.
14309 (dwarf_record_line): Rename to ...
14310 (lnp_state_machine::record_line): ... adjust.
14311 (init_lnp_state_machine): Delete.
14312 (lnp_state_machine::lnp_state_machine): New.
14313 (check_line_address): Rename to ...
14314 (lnp_state_machine::check_line_address): This.
14315 (dwarf_decode_lines_1): Remove reference to "reader_state".
14316 Adjust lnp_state_machine having a non-default ctor. Use bool.
14317 State machine internal state manipulation moved to
14318 lnp_state_machine methods.
14319
14320 2017-04-04 Pedro Alves <palves@redhat.com>
14321
14322 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14323 unittests/offset-type-selftests.c.
14324 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14325 * common/offset-type.h: New file.
14326 * common/preprocessor.h: New file.
14327 * common/traits.h: New file.
14328 * common/valid-expr.h: New file.
14329 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14330 sect_offset and cu_offset strong typedefs throughout.
14331 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14332 typedefs throughout.
14333 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14334 sect_offset and cu_offset strong typedefs throughout.
14335 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14336 typedefs throughout.
14337 * gdbtypes.h: Include "common/offset-type.h".
14338 (cu_offset): Now an offset type (strong typedef) instead of a
14339 struct.
14340 (sect_offset): Likewise.
14341 (union call_site_parameter_u): Rename "param_offset" field to
14342 "param_cu_off".
14343 * unittests/offset-type-selftests.c: New file.
14344
14345 2017-04-04 Pedro Alves <palves@redhat.com>
14346
14347 * common/underlying.h: New file.
14348 * dwarf2read.c: Include "common/gdb_optional.h" and
14349 "common/underlying.h".
14350 (dir_index, file_name_index): New types.
14351 (file_entry): Use them.
14352 (file_entry::include): Use to_underlying.
14353 (line_header::add_file_name): Use dir_index.
14354 (read_formatted_entries): Use gdb::optional. Read form before
14355 writting to file_entry.
14356 (dwarf_decode_line_header): Use dir_index.
14357 (lnp_state_machine::current_file): Use to_underlying.
14358 (lnp_state_machine::file): Change type to file_name_index.
14359 (dwarf_record_line): Use to_underlying.
14360 (init_lnp_state_machine): Use file_name_index.
14361 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14362
14363 2017-04-04 Pedro Alves <palves@redhat.com>
14364
14365 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14366 operator bool, has_value and get methods.
14367
14368 2017-04-04 Pedro Alves <palves@redhat.com>
14369
14370 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14371 fields.
14372 (line_header): Initialize all data fields. Change type of
14373 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14374 Change type of include_dirs to std::vector<const char *>. Remove
14375 num_include_dirs, include_dirs_size. Change type of file_names to
14376 std::vector<file_entry>. Remove num_file_names, file_names_size.
14377 (line_header::line_header): New.
14378 (line_header::add_include_dir, line_header::add_file_name): New
14379 methods.
14380 (line_header::include_dir_at): Remove NULL check.
14381 (line_header::file_name_at): Add const overload.
14382 (line_header_up): New unique_ptr typedef.
14383 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14384 std::vector. Remove free_line_header call.
14385 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14386 free_line_header call.
14387 (free_cu_line_header): Delete.
14388 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14389 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14390 Adjust to use std::vector.
14391 (free_line_header): Delete.
14392 (free_line_header_voidp): Use delete.
14393 (add_include_dir): Replace with ...
14394 (line_header::add_include_dir): ... this method. Use std::vector.
14395 (add_file_name): Replace with ...
14396 (line_header::add_file_name): ... this method. Use std::vector.
14397 (add_include_dir_stub): Delete.
14398 (read_formatted_entries): Remove memset.
14399 (dwarf_decode_line_header): Return a line_header_up instead of a
14400 raw pointer. Remove cleanup handling. Pass lambdas to
14401 read_formatted_entries. Adjust to use line_header methods.
14402 (dwarf_decode_lines_1): Adjust to use line_header methods.
14403 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14404 use std::vector.
14405
14406 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14407
14408 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14409 instead of struct ptid.
14410
14411 2017-05-04 Alan Hayward <alan.hayward@arm.com>
14412
14413 * frame.c (get_frame_register_bytes): Unwind using value.
14414 (put_frame_register_bytes): Likewise.
14415
14416 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14417
14418 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14419 aggregate-like.
14420
14421 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14422
14423 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14424
14425 2017-03-29 Yao Qi <yao.qi@linaro.org>
14426
14427 * gdbthread.h (struct thread_info): Declare constructor and
14428 destructor. Add some in-class member initializers.
14429 * thread.c (free_thread): Remove.
14430 (init_thread_list): Call delete instead of free_thread.
14431 (new_thread): Call thread_info constructor.
14432 (thread_info::thread_info): New function.
14433 (thread_info::~thread_info): New function.
14434 (delete_thread_1): Call delete instead of free_thread.
14435 (make_cleanup_restore_current_thread): Move tp and frame to
14436 inner block.
14437
14438 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14439
14440 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14441 (arc_skip_prologue): Likewise.
14442 (arc_make_frame_cache): Likewise.
14443 (arc_pv_get_operand): New function.
14444 (arc_is_in_prologue): Likewise.
14445 (arc_analyze_prologue): Likewise.
14446 (arc_print_frame_cache): Likewise.
14447 (MAX_PROLOGUE_LENGTH): New constant.
14448
14449 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14450
14451 * configure.tgt: Add arc-insn.o.
14452 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
14453 (dump_arc_instruction_command): New function.
14454 (arc_fprintf_disasm): Likewise.
14455 (arc_disassemble_info): Likewise.
14456 (arc_insn_get_operand_value): Likewise.
14457 (arc_insn_get_operand_value_signed): Likewise.
14458 (arc_insn_get_memory_base_reg): Likewise.
14459 (arc_insn_get_memory_offset): Likewise.
14460 (arc_insn_get_branch_target): Likewise.
14461 (arc_insn_dump): Likewise.
14462 (arc_insn_get_linear_next_pc): Likewise.
14463 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
14464 (arc_disassemble_info): Likewise.
14465 (arc_insn_get_branch_target): Likewise.
14466 (arc_insn_get_linear_next_pc): Likewise.
14467 * NEWS: Mention new "maint print arc arc-instruction".
14468
14469 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14470
14471 * arc-tdep (maintenance_print_arc_list): New variable.
14472 (maintenance_print_arc_command): New function.
14473
14474 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14475
14476 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
14477 Add "limm" and "reserved".
14478 (arc_cannot_fetch_register, arc_cannot_store_register): Add
14479 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
14480 * arc-tdep.h (arc_regnum): Likewise.
14481
14482 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14483
14484 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14485 for THREADPTR register.
14486 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
14487 register.
14488 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
14489 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
14490 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
14491
14492 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14493
14494 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
14495 registers above gdbarch_num_regs (gdbarch) as privileged in
14496 call0 ABI.
14497
14498 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14499
14500 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14501 for a single specified register or for all registers in
14502 a0_base..a0_base + C0_NREGS range.
14503 (supply_gregset_reg): Call regcache_raw_supply for a single
14504 specified register or for all registers in a0_base..a0_base +
14505 C0_NREGS range.
14506
14507 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14508
14509 * arch/xtensa.h (C0_NREGS): Add definition.
14510 * xtensa-tdep.c (C0_NREGS): Remove definition.
14511
14512 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14513
14514 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
14515 Drop xtensa_default_isa initialization.
14516 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
14517
14518 2017-03-27 Pedro Alves <palves@redhat.com>
14519
14520 * dwarf2read.c (file_entry) <dir_index>: Add comment.
14521 (file_entry::include_dir): New method.
14522 (line_header::include_dir_at, line_header::file_name_at): New
14523 methods.
14524 (setup_type_unit_groups, setup_type_unit_groups)
14525 (psymtab_include_file_name): Simplify using the new methods.
14526 (lnp_state_machine) <the_line_header>: New field.
14527 <file>: Add comment.
14528 (lnp_state_machine::current_file): New method.
14529 (dwarf_record_line): Simplify using the new methods.
14530 (init_lnp_state_machine): Initialize the "the_line_header" field.
14531 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
14532 Simplify using the new methods.
14533
14534 2017-03-27 Pedro Alves <palves@redhat.com>
14535
14536 * cp-name-parser.y (make_empty): Delete.
14537 (demangler_special, nested_name, ptr_operator, array_indicator)
14538 (direct_declarator, declarator_1): Use fill_comp instead of
14539 make_empty.
14540
14541 2017-03-27 Pedro Alves <palves@redhat.com>
14542
14543 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
14544 to ATTRIBUTE_PRINTF.
14545 * solib-target.c (library_list_start_list): Print "string" not
14546 "version".
14547 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
14548 gdb_xml_error call.
14549
14550 2017-03-27 Pedro Alves <palves@redhat.com>
14551
14552 * dwarf2read.c (struct file_and_directory): New.
14553 (dwarf2_get_dwz_file): Adjust to use std::string.
14554 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14555 (find_file_and_directory): Adjust to return a file_and_directory
14556 object.
14557 (read_file_scope): Adjust to use file_and_directory. Remove
14558 make_cleanup/do_cleanups calls.
14559 (open_and_init_dwp_file): Adjust to use std::string. Remove
14560 make_cleanup/do_cleanups calls.
14561 * python/python.c (do_start_initialization): Adjust to ldirname
14562 returning a std::string.
14563 * utils.c (ldirname): Now returns a std::string.
14564 * utils.h (ldirname): Change return type to std::string.
14565 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14566 returning a std::string.
14567 * xml-tdesc.c (file_read_description_xml): Likewise.
14568
14569 2017-03-24 Alan Hayward <alan.hayward@arm.com>
14570
14571 * regcache.c (regcache_debug_print_register): New function.
14572 * regcache.h (regcache_debug_print_register): New declaration.
14573 * target.c (debug_print_register): Remove.
14574 (target_fetch_registers): Call regcache_debug_print_register.
14575 (target_store_registers): Likewise.
14576
14577 2017-03-24 Pádraig Brady <pbrady@fb.com>
14578
14579 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14580 reference beyond the 'lh->include_dirs' array before accessing to
14581 it.
14582 (psymtab_include_file_name): Likewise.
14583 (dwarf_decode_lines_1): Likewise.
14584 (dwarf_decode_lines): Likewise.
14585 (file_file_name): Likewise.
14586
14587 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14588
14589 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14590 inferior_ptid.
14591 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14592 ps_lsetfpregs): Likewise.
14593 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
14594 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14595 ps_lsetfpregs): Likewise.
14596 * target.c (target_fetch_registers, target_store_registers):
14597 Remove asserts.
14598
14599 2017-03-23 Alan Hayward <alan.hayward@arm.com>
14600
14601 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
14602
14603 2017-03-23 Yao Qi <yao.qi@linaro.org>
14604
14605 * aarch64-tdep.c (aarch64_process_record_test): Declare.
14606 (_initialize_aarch64_tdep): Register it.
14607 (aarch64_record_load_store): Handle PRFM instruction.
14608 (aarch64_process_record_test): New function.
14609
14610 2017-03-23 Yao Qi <yao.qi@linaro.org>
14611
14612 * aarch64-tdep.c (aarch64_record_load_store): Fix code
14613 indentation.
14614
14615 2017-03-23 Yao Qi <yao.qi@linaro.org>
14616
14617 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
14618
14619 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14620
14621 python/python.c (do_start_initialization): Fix memory leak.
14622
14623 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14624
14625 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
14626 using get_ptrace_pid.
14627 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
14628 inferior_ptid.
14629 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14630 inferior_ptid instead of pid.
14631
14632 2017-03-22 Yao Qi <yao.qi@linaro.org>
14633
14634 * aarch64-tdep.c: Wrap locally used classes in anonymous
14635 namespace.
14636 * arm-tdep.c: Likewise.
14637 * linespec.c: Likewise.
14638 * ui-out.c: Likewise.
14639
14640 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
14641
14642 PR gdb/19637
14643 * python/lib/gdb/printer/bound_registers.py: Import sys.
14644
14645 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14646
14647 * windows-nat.c (do_windows_fetch_inferior_registers): Add
14648 windows_thread_info parameter and use it instead of
14649 current_thread.
14650 (windows_fetch_inferior_registers): Don't set current_thread,
14651 pass the thread to do_windows_fetch_inferior_registers. Use
14652 ptid from regcache instead of inferior_ptid.
14653 (do_windows_store_inferior_registers): Add windows_thread_info
14654 parameter and use it instead of current_thread.
14655 (windows_store_inferior_registers): Don't set current_thread,
14656 pass the thread to do_windows_store_inferior_registers. Use
14657 ptid from regcache instead of inferior_ptid.
14658
14659 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14660
14661 * ser-mingw.c (ser_windows_raw): Remove reference to
14662 struct serial::current_timeout.
14663
14664 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
14665
14666 PR tdep/20928
14667 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
14668 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
14669 (sparc64_fsr_type): Fix %fsr decoding.
14670
14671 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
14672
14673 * python/py-record-btrace.c (btpy_insn_data): Change return type
14674 for Python 2.
14675
14676 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14677
14678 * spu-linux-nat.c (spu_fetch_inferior_registers,
14679 spu_store_inferior_registers): Use ptid from regcache, set and
14680 restore inferior_ptid.
14681 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
14682 Likewise.
14683
14684 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14685
14686 * i386-linux-nat.c (fetch_register, store_register,
14687 i386_linux_fetch_inferior_registers,
14688 i386_linux_store_inferior_registers): Use ptid from regcache.
14689 * ia64-linux-nat.c (ia64_linux_fetch_register,
14690 ia64_linux_store_register): Likewise.
14691 * inf-ptrace.c (inf_ptrace_fetch_register,
14692 inf_ptrace_store_register): Likewise.
14693 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
14694 m32r_linux_store_inferior_registers): Likewise.
14695 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
14696 m68kbsd_store_inferior_registers): Likewise.
14697 * m68k-linux-nat.c (fetch_register, store_register,
14698 m68k_linux_fetch_inferior_registers,
14699 m68k_linux_store_inferior_registers): Likewise.
14700 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
14701 m88kbsd_store_inferior_registers): Likewise.
14702 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
14703 mips_fbsd_store_inferior_registers): Likewise.
14704 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
14705 mips64_linux_regsets_store_registers): Likewise.
14706 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
14707 mipsnbsd_store_inferior_registers): Likewise.
14708 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
14709 mips64obsd_store_inferior_registers): Likewise.
14710 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
14711 Likewise.
14712 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
14713 ppcfbsd_store_inferior_registers): Likewise.
14714 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
14715 ppc_linux_store_inferior_registers): Likewise.
14716 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
14717 ppcnbsd_store_inferior_registers): Likewise.
14718 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
14719 ppcobsd_store_registers): Likewise.
14720 * procfs.c (procfs_fetch_registers, procfs_store_registers):
14721 Likewise.
14722 * ravenscar-thread.c (ravenscar_fetch_registers,
14723 ravenscar_store_registers, ravenscar_prepare_to_store):
14724 Likewise.
14725 * record-btrace.c (record_btrace_fetch_registers,
14726 record_btrace_store_registers, record_btrace_prepare_to_store):
14727 Likewise.
14728 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
14729 Lookup inferior using ptid from regcache, instead of
14730 current_inferior.
14731 * remote.c (remote_fetch_registers, remote_store_registers): Use
14732 ptid from regcache.
14733 * rs6000-nat.c (fetch_register, store_register): Likewise.
14734 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
14735 s390_linux_store_inferior_registers): Likewise.
14736 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
14737 shnbsd_store_inferior_registers): Likewise.
14738 * sol-thread.c (sol_thread_fetch_registers,
14739 sol_thread_store_registers): Likewise.
14740 * sparc-nat.c (sparc_fetch_inferior_registers,
14741 sparc_store_inferior_registers): Likewise.
14742 * tilegx-linux-nat.c (fetch_inferior_registers,
14743 store_inferior_registers): Likewise.
14744 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
14745 vaxbsd_store_inferior_registers): Likewise.
14746 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
14747 store_xtregs): Likewise.
14748
14749 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14750
14751 PR gdb/14441
14752 * NEWS: Mention support for rvalue references in GDB and python.
14753 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
14754 supports both lvalue and rvalue references.
14755
14756 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14757
14758 PR gdb/14441
14759 * gdbtypes.c (rank_one_type): Implement overloading
14760 resolution rules regarding rvalue references.
14761
14762 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14763
14764 PR gdb/14441
14765 * aarch64-tdep.c (aarch64_type_align)
14766 (aarch64_extract_return_value, aarch64_store_return_value): Change
14767 lvalue reference type checks to general reference type checks.
14768 * amd64-tdep.c (amd64_classify): Likewise.
14769 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
14770 Likewise.
14771 * arm-tdep.c (arm_type_align, arm_extract_return_value)
14772 (arm_store_return_value): Likewise.
14773 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
14774 * c-typeprint.c (c_print_type): Likewise.
14775 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
14776 (cplus_number_of_children, cplus_describe_child): Likewise.
14777 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
14778 * completer.c (expression_completer): Likewise.
14779 * cp-support.c (make_symbol_overload_list_adl_namespace):
14780 Likewise.
14781 * darwin-nat-info.c (info_mach_region_command): Likewise.
14782 * dwarf2loc.c (entry_data_value_coerce_ref)
14783 (value_of_dwarf_reg_entry): Likewise.
14784 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
14785 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
14786 Likewise.
14787 * findvar.c (extract_typed_address, store_typed_address):
14788 Likewise.
14789 * gdbtypes.c (rank_one_type): Likewise.
14790 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
14791 * infcall.c (value_arg_coerce): Likewise.
14792 * language.c (pointer_type): Likewise.
14793 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
14794 Likewise.
14795 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
14796 * mn10300-tdep.c (mn10300_type_align): Likewise.
14797 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
14798 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
14799 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
14800 Likewise.
14801 * printcmd.c (print_formatted, x_command): Likewise.
14802 * python/py-type.c (typy_get_composite, typy_template_argument):
14803 Likewise.
14804 * python/py-value.c (valpy_referenced_value)
14805 (valpy_get_dynamic_type, value_has_field): Likewise.
14806 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
14807 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
14808 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
14809 * spu-tdep.c (spu_scalar_value_p): Likewise.
14810 * symtab.c (lookup_symbol_aux): Likewise.
14811 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
14812 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
14813 Likewise.
14814 * valops.c (value_cast_pointers, value_cast)
14815 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
14816 (value_struct_elt, value_struct_elt_bitpos)
14817 (value_find_oload_method_list, find_overload_match)
14818 (value_rtti_indirect_type): Likewise.
14819 * valprint.c (val_print_scalar_type_p, generic_val_print):
14820 Likewise.
14821 * value.c (value_actual_type, value_as_address, unpack_long)
14822 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
14823 (coerce_ref): Likewise.
14824 * varobj.c (varobj_get_value_type): Likewise.
14825
14826 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14827
14828 PR gdb/14441
14829 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
14830 table of constants.
14831 * python/lib/gdb/command/explore.py: Support exploring values
14832 of rvalue reference types.
14833 * python/lib/gdb/types.py: Implement get_basic_type() for
14834 rvalue reference types.
14835 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
14836 constant.
14837 * python/py-value.c (valpy_getitem): Add an rvalue reference
14838 check.
14839 (valpy_reference_value): Add new parameter "refcode".
14840 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
14841 New wrappers for valpy_reference_value().
14842 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14843 (gdbpy_invoke_xmethod): Likewise.
14844
14845 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14846
14847 PR gdb/14441
14848 * dwarf2read.c (process_die, read_type_die_1): Handle the
14849 DW_TAG_rvalue_reference_type DIE.
14850 (read_tag_reference_type): Add new parameter "refcode".
14851
14852 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14853
14854 PR gdb/14441
14855 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
14856 (c_type_print_modifier, c_type_print_varspec_suffix)
14857 (c_type_print_base): Support printing rvalue reference types.
14858 * c-valprint.c (c_val_print, c_value_print): Support printing
14859 rvalue reference values.
14860
14861 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14862
14863 PR gdb/14441
14864 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
14865 typename.
14866 * cp-support.c (replace_typedefs): Handle
14867 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
14868 * python/py-type.c (typy_lookup_type): Likewise.
14869
14870 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14871
14872 PR gdb/14441
14873 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
14874 * parse.c (insert_type): Change assert statement.
14875 (follow_types): Handle rvalue reference types.
14876 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
14877 constant.
14878
14879 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14880
14881 PR gdb/14441
14882 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
14883 value_ref() interface.
14884 * c-valprint.c (c_value_print): Likewise.
14885 * infcall.c (value_arg_coerce): Likewise.
14886 * python/py-value.c (valpy_reference_value): Likewise.
14887 * valops.c (value_cast, value_reinterpret_cast)
14888 (value_dynamic_cast, typecmp): Likewise.
14889 (value_ref): Parameterize by kind of return value reference type.
14890 * value.h (value_ref): Add new parameter "refcode".
14891
14892 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14893
14894 PR gdb/14441
14895 * dwarf2read.c (read_tag_reference_type): Use
14896 lookup_lvalue_reference_type() instead of lookup_reference_type().
14897 * eval.c (evaluate_subexp_standard): Likewise.
14898 * f-exp.y: Likewise.
14899 * gdbtypes.c (make_reference_type, lookup_reference_type):
14900 Generalize with rvalue reference types.
14901 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
14902 convenience wrappers for lookup_reference_type().
14903 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
14904 reference kind parameter.
14905 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
14906 wrappers for lookup_reference_type().
14907 * guile/scm-type.c (gdbscm_type_reference): Use
14908 lookup_lvalue_reference_type() instead of lookup_reference_type().
14909 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
14910 * parse.c (follow_types): Likewise.
14911 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
14912 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
14913 Likewise.
14914 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14915 (gdbpy_invoke_xmethod): Likewise.
14916 * stabsread.c: Provide extra argument to make_reference_type()
14917 call.
14918 * valops.c (value_ref, value_rtti_indirect_type): Use
14919 lookup_lvalue_reference_type() instead of lookup_reference_type().
14920
14921 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14922
14923 PR gdb/14441
14924 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
14925 (TYPE_IS_REFERENCE): New macro.
14926 (struct type): Add rvalue_reference_type field.
14927 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
14928
14929 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14930
14931 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
14932 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
14933 New function definition.
14934 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
14935 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
14936 New function declaration.
14937 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
14938 * mi/mi-interp.h: New file.
14939 * solib.c (info_sharedlibrary_command): Replace for loop with
14940 ALL_SO_LIBS macro
14941 * solib.h (update_solib_list): New function declaration.
14942 (so_list_head): Move macro.
14943 * solist.h (ALL_SO_LIBS): New macro.
14944
14945 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14946
14947 * infcmd.c (post_create_inferior): Remove unused argument in
14948 call to solib_add.
14949 * remote.c (remote_start_remote): Likewise.
14950 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
14951 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
14952 (enable_break): Likewise.
14953 * solib.c (update_solib_list): Remove unused target argument
14954 and its documentation.
14955 (solib_add): Remove unused target argument. Remove unused
14956 argument in call to update_solib_list.
14957 (info_sharedlibrary_command): Remove unused argument in call
14958 to update_solib_list.
14959 (sharedlibrary_command): Remove unused argument in call to
14960 solib_add.
14961 (handle_solib_event): Likewise.
14962 (reload_shared_libraries): Likewise.
14963 * solib.h (solib_add): Remove unused target argument.
14964
14965 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
14966
14967 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
14968 (s390_displaced_step_fixup): Cover relative branches with the
14969 default fixup handling. This fixes lack of support for some
14970 relative branch instructions.
14971
14972 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14973
14974 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
14975 ptid from regcache.
14976
14977 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14978
14979 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
14980 i386_darwin_store_inferior_registers): Use ptid from regcache.
14981
14982 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14983
14984 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
14985 i386bsd_store_inferior_registers): Use ptid from regcache.
14986
14987 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14988
14989 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
14990 hppaobsd_store_registers): Use ptid from regcache.
14991
14992 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14993
14994 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
14995 hppanbsd_store_registers): Use ptid from regcache.
14996
14997 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14998
14999 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15000 from regcache. Use get_ptrace_pid.
15001
15002 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15003
15004 * corelow.c (get_core_register_section): Use ptid from regcache,
15005 update doc.
15006
15007 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15008
15009 * bsd-uthread.c (bsd_uthread_fetch_registers,
15010 bsd_uthread_store_registers): Use ptid from regcache, set and
15011 restore inferior_ptid.
15012
15013 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15014
15015 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15016 fetch_fp_regs, store_register, store_regs, store_fp_register,
15017 store_fp_regs): Use ptid from regcache.
15018
15019 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15020
15021 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15022 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15023 store_vfp_regs): Use ptid from regcache.
15024
15025 2017-03-17 Pedro Alves <palves@redhat.com>
15026
15027 PR remote/21188
15028 * ser-base.c (ser_base_wait_for): Add comment.
15029 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15030 version.
15031 * ser-unix.c (hardwire_raw): Remove reference to
15032 scb->current_timeout.
15033 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15034 (hardwire_ops): Install ser_base_readchar instead of
15035 hardwire_readchar.
15036 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15037 Remove fields.
15038
15039 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15040
15041 PR gdb/19637
15042 * python/lib/gdb/printer/bound_registers.py: Add support for
15043 Python 3.
15044
15045 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15046
15047 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15048 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15049 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15050 byte_offset to subobj_byte_offset. Fix the handling of
15051 DWARF_VALUE_STACK on big-endian targets when coming via an
15052 implicit pointer.
15053 (dwarf2_evaluate_loc_desc): Adjust call to
15054 dwarf2_evaluate_loc_desc_full.
15055 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15056 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15057
15058 2017-03-16 Yao Qi <yao.qi@linaro.org>
15059
15060 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15061 and REVSH instructions.
15062
15063 2017-03-16 Yao Qi <yao.qi@linaro.org>
15064
15065 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15066 (arm_record_test): Declare.
15067 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15068 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15069 align with the manual.
15070 (thumb_record_misc): Adjust the code order to align with the
15071 manual.
15072 (thumb2_record_decode_insn_handler): Fix instruction matching.
15073 (instruction_reader_thumb): New class.
15074 (arm_record_test): New function.
15075
15076 2017-03-16 Yao Qi <yao.qi@linaro.org>
15077
15078 * arm-tdep.c (abstract_memory_reader): New class.
15079 (instruction_reader): New class.
15080 (extract_arm_insn): Add argument 'reader'. Callers updated.
15081 (decode_insn): Likewise.
15082
15083 2017-03-16 Doug Evans <dje@google.com>
15084
15085 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15086 member. Change type of TYPE member to SCM. All uses updated.
15087 (lsscm_make_lazy_string_smob): Add assert.
15088 (lsscm_make_lazy_string): Flag bad length values.
15089 (lsscm_elt_type): New function.
15090 (gdbscm_lazy_string_to_value): Rewrite to use
15091 lsscm_safe_lazy_string_to_value.
15092 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15093 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15094 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15095 in incoming type.
15096 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15097 * guile/scm-type.c (tyscm_scm_to_type): New function.
15098
15099 2017-03-15 Doug Evans <dje@google.com>
15100
15101 PR python/17728, python/18439, python/18779
15102 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15103 member. Change type of TYPE member to PyObject *. All uses updated.
15104 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15105 (gdbpy_create_lazy_string_object): Flag bad length values.
15106 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15107 Handle typedefs in incoming type.
15108 (stpy_lazy_string_elt_type): New function.
15109 (gdbpy_extract_lazy_string): Call it.
15110 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15111 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15112 typedefs in incoming type.
15113
15114 2017-03-16 Doug Evans <dje@google.com>
15115
15116 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15117 * guile/scm-type.c (tyscm_scm_to_type): New function.
15118
15119 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15120
15121 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15122 "ULONGEST" for "skip".
15123
15124 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15125
15126 PR gdb/21220
15127 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15128 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15129 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15130 over ptrace peek/poke until end of buffer or error.
15131
15132 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15133
15134 * parse.c (length_of_subexp): Make static.
15135 * parser-defs.h (length_of_subexp): Remove.
15136
15137 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15138
15139 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15140 as well.
15141
15142 2017-03-14 Pedro Alves <palves@redhat.com>
15143
15144 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15145 (main): Use std::unique_ptr. Remove calls to
15146 cp_demangled_name_parse_free.
15147
15148 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15149
15150 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15151 alphabsd_store_inferior_registers): Use regcache->ptid instead
15152 of inferior_ptid.
15153
15154 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15155
15156 * aix-thread.c (aix_thread_fetch_registers,
15157 aix_thread_store_registers): Use regcache->ptid instead of
15158 inferior_ptid.
15159
15160 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15161
15162 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15163 store_gregs_to_thread, fetch_fpregs_from_thread,
15164 store_fpregs_to_thread): Use regcache->ptid instead of
15165 inferior_ptid.
15166
15167 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15168
15169 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15170 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15171 instead of inferior_ptid.
15172
15173 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15174
15175 * target.c (target_fetch_registers, target_store_registers): Add
15176 assert.
15177
15178 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15179
15180 * regcache.h (regcache_get_ptid): New function.
15181 * regcache.c (regcache_get_ptid): New function.
15182
15183 2017-03-13 Mark Wielaard <mark@klomp.org>
15184
15185 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15186
15187 2017-03-10 Keith Seitz <keiths@redhat.com>
15188
15189 PR c++/8218
15190 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15191
15192 2017-03-08 Pedro Alves <palves@redhat.com>
15193
15194 PR gdb/18360
15195 * infrun.c (start_step_over, do_target_resume, resume)
15196 (restart_threads): Assert we're not resuming a thread that is
15197 meant to be stopped.
15198 (infrun_thread_stop_requested_callback): Delete.
15199 (infrun_thread_stop_requested): If the thread is internally
15200 stopped, queue a pending stop event and clear the thread's
15201 inline-frame state.
15202 (handle_stop_requested): New function.
15203 (handle_syscall_event, handle_inferior_event_1): Use
15204 handle_stop_requested.
15205 (handle_stop_requested): New function.
15206 (handle_signal_stop): Set the thread's stop_signal here instead of
15207 at caller.
15208 (finish_step_over): Clear step over info unconditionally.
15209 (handle_signal_stop): If the user had interrupted the event
15210 thread, consider the stop a random signal.
15211 (handle_signal_stop) <signal arrived while stepping over
15212 breakpoint>: Don't restart threads here.
15213 (stop_waiting): Don't clear step-over info here.
15214
15215 2017-03-08 Pedro Alves <palves@redhat.com>
15216
15217 PR 21206
15218 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15219 goes to argument 2, not 1.
15220
15221 2017-03-08 Pedro Alves <palves@redhat.com>
15222
15223 PR cli/21218
15224 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15225 display_gdb_prompt.
15226 (command_line_input): Add comment.
15227
15228 2017-03-08 Pedro Alves <palves@redhat.com>
15229
15230 PR tui/21216
15231 * tui/tui-file.c (tui_file::write): New.
15232 * tui/tui-file.h (tui_file): Override "write".
15233 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15234 factored out from ...
15235 (tui_puts): ... here.
15236 (tui_putc): Use them.
15237 (tui_write): New function.
15238 * tui/tui-io.h (tui_write): Declare.
15239
15240 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15241
15242 * Makefile.in (SFILES): Replace "environ.c" with
15243 "common/environ.c".
15244 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15245 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15246 to...
15247 * common/environ.c: ... here.
15248 * environ.h: Moved to...
15249 * common/environ.h: ... here.
15250
15251 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15252
15253 * gdbarch.sh (pstring_ptr): New static function.
15254 (gdbarch_disassembler_options): Use it.
15255 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15256 not valid_disassembler_option->name.
15257 * gdbarch.c: Regenerate.
15258
15259 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15260
15261 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15262
15263 2017-03-07 Pedro Alves <palves@redhat.com>
15264
15265 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15266
15267 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15268
15269 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15270 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15271 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15272 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15273
15274 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15275
15276 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15277
15278 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15279
15280 * remote.c (remote_add_target_side_commands): Use range-based
15281 for loop.
15282
15283 2017-03-03 Yao Qi <yao.qi@linaro.org>
15284
15285 PR gdb/21165
15286 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15287 value is lazy.
15288 * valprint.c (common_val_print): Likewise.
15289
15290 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15291
15292 * NEWS: Mention new set/show disassembler-options commands.
15293 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15294 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15295 (prospective_options): New static variable.
15296 (gdb_disassembler::gdb_disassembler): Initialize
15297 m_di.disassembler_options.
15298 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15299 (get_disassembler_options): New function.
15300 (set_disassembler_options): Likewise.
15301 (set_disassembler_options_sfunc): Likewise.
15302 (show_disassembler_options_sfunc): Likewise.
15303 (disassembler_options_completer): Likewise.
15304 (_initialize_disasm): Likewise.
15305 * disasm.h (get_disassembler_options): New prototype.
15306 (set_disassembler_options): Likewise.
15307 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15308 (gdbarch_verify_disassembler_options): Likewise.
15309 * gdbarch.c: Regenerate.
15310 * gdbarch.h: Likewise.
15311 * arm-tdep.c (num_disassembly_options): Delete.
15312 (set_disassembly_style): Likewise.
15313 (arm_disassembler_options): New static variable.
15314 (set_disassembly_style_sfunc): Convert short style name into long
15315 option name. Call set_disassembler_options.
15316 (show_disassembly_style_sfunc): New function.
15317 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15318 set_gdbarch_verify_disassembler_options.
15319 (_initialize_arm_tdep): Delete regnames variable and update callers.
15320 (arm_disassembler_options): Initialize.
15321 (disasm_options): New variable.
15322 (num_disassembly_options): Rename from this...
15323 (num_disassembly_styles): ...to this. Compute by scanning through
15324 disasm_options.
15325 (valid_disassembly_styles): Initialize using disasm_options.
15326 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15327 set_arm_regname_option.
15328 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15329 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15330 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15331 set_gdbarch_verify_disassembler_options.
15332 * s390-tdep.c (s390_disassembler_options): New static variable.
15333 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15334 set_gdbarch_verify_disassembler_options.
15335
15336 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15337
15338 * remote.c (remote_add_target_side_condition): Remove "struct"
15339 keyword from range-based for loop.
15340
15341 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15342
15343 * remote.c (remote_add_target_side_condition): Use range-based
15344 for loop. Update comment.
15345
15346 2017-02-27 Yao Qi <yao.qi@linaro.org>
15347
15348 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15349
15350 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15351
15352 * regcache.c (regcache_raw_update): New function.
15353 (regcache_raw_read): Move code to regcache_raw_update.
15354 * regcache.h (regcache_raw_update): New declaration.
15355 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15356
15357 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15358
15359 * dwarf2read.c (create_debug_type_hash_table): Initialize
15360 header.signature and header.type_offset_in_tu.
15361
15362 2017-02-24 Pedro Alves <palves@redhat.com>
15363
15364 * symtab.c (make_file_symbol_completion_list_1): Use
15365 add_symtab_completions.
15366
15367 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15368
15369 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15370
15371 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15372
15373 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15374 I386_MAX_REGISTER_SIZE.
15375 (i386_pseudo_register_write): Likewise.
15376 (i386_process_record): Likewise.
15377 * i387-tdep.c (i387_supply_xsave): Likewise.
15378 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15379 (store_register): Likewise.
15380
15381 2017-02-23 Pedro Alves <palves@redhat.com>
15382
15383 * ada-lang.c: Include "common/function-view.h".
15384 (ada_iterate_over_symbols): Adjust to use function_view as
15385 callback type.
15386 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15387 (ada_make_symbol_completion_list): Use a lambda.
15388 (ada_exc_search_name_matches): Delete.
15389 (name_matches_regex): New.
15390 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15391 * compile/compile-c-support.c: Include "common/function-view.h".
15392 (print_one_macro): Change prototype to accept a ui_file pointer.
15393 (write_macro_definitions): Use a lambda.
15394 * dwarf2read.c: Include "common/function-view.h".
15395 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15396 (dw2_expand_symtabs_matching): Adjust to use function_view as
15397 callback type.
15398 * language.h: Include "common/function-view.h".
15399 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15400 function_view as callback type.
15401 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15402 * linespec.c: Include "common/function-view.h".
15403 (collect_info::add_symbol): New method.
15404 (struct symbol_and_data_callback, iterate_inline_only, struct
15405 symbol_matcher_data, iterate_name_matcher): Delete.
15406 (iterate_over_all_matching_symtabs): Adjust to use function_view
15407 as callback type and lambdas.
15408 (iterate_over_file_blocks): Adjust to use function_view as
15409 callback type.
15410 (decode_compound_collector): Now a class with private fields.
15411 (decode_compound_collector::release_symbols): New method.
15412 (collect_one_symbol): Rename to...
15413 (decode_compound_collector::operator()): ... this and adjust.
15414 (lookup_prefix_sym): decode_compound_collector construction bits
15415 move to decode_compound_collector ctor. Pass the
15416 decode_compound_collector object directly as callback. Remove
15417 cleanups and use decode_compound_collector::release_symbols
15418 instead.
15419 (symtab_collector): Now a class with private fields.
15420 (symtab_collector::release_symtabs): New method.
15421 (add_symtabs_to_list): Rename to...
15422 (symtab_collector::operator()): ... this and adjust.
15423 (collect_symtabs_from_filename): symtab_collector construction
15424 bits move to symtab_collector ctor. Pass the symtab_collector
15425 object directly as callback. Remove cleanups and use
15426 symtab_collector::release_symtabs instead.
15427 (collect_symbols): Delete.
15428 (add_matching_symbols_to_info): Use lambdas.
15429 * macrocmd.c (print_macro_callback): Delete.
15430 (info_macro_command): Use a lambda.
15431 (info_macros_command): Pass print_macro_definition as callable
15432 directly.
15433 (print_one_macro): Remove 'ignore' parameter.
15434 (macro_list_command): Adjust.
15435 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15436 (macro_for_each_data::user_data): Delete field.
15437 (foreach_macro): Adjust to call the function_view.
15438 (macro_for_each): Adjust to use function_view as callback type.
15439 (foreach_macro_in_scope): Adjust to call the function_view.
15440 (macro_for_each_in_scope): Adjust to use function_view as callback
15441 type.
15442 * macrotab.h: Include "common/function-view.h".
15443 (macro_callback_fn): Declare a prototype instead of a pointer.
15444 Remove "user_data" parameter.
15445 (macro_for_each, macro_for_each_in_scope): Adjust to use
15446 function_view as callback type.
15447 * psymtab.c (partial_map_expand_apply)
15448 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
15449 Adjust to use function_view as callback type and to return bool.
15450 (psym_expand_symtabs_matching): Adjust to use function_view as
15451 callback types.
15452 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
15453 to use function_view as callback type and to return bool.
15454 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
15455 callback types.
15456 * symfile.c (expand_symtabs_matching): Adjust to use function_view
15457 as callback types.
15458 * symfile.h: Include "common/function-view.h".
15459 (expand_symtabs_file_matcher_ftype)
15460 (expand_symtabs_symbol_matcher_ftype)
15461 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
15462 return bool.
15463 (quick_symbol_functions::map_symtabs_matching_filename)
15464 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
15465 function_view as callback type and return bool.
15466 (expand_symtabs_matching): Adjust to use function_view as callback
15467 type.
15468 (maintenance_expand_name_matcher)
15469 (maintenance_expand_file_matcher): Delete.
15470 (maintenance_expand_symtabs): Use lambdas.
15471 * symtab.c (iterate_over_some_symtabs): Adjust to use
15472 function_view as callback types and return bool.
15473 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
15474 of a cleanup.
15475 (lookup_symtab_callback): Delete.
15476 (lookup_symtab): Use a lambda.
15477 (iterate_over_symbols): Adjust to use function_view as callback
15478 type.
15479 (struct search_symbols_data, search_symbols_file_matches)
15480 (search_symbols_name_matches): Delete.
15481 (search_symbols): Use a pair of lambdas.
15482 (struct add_name_data, add_macro_name, symbol_completion_matcher)
15483 (symtab_expansion_callback): Delete.
15484 (default_make_symbol_completion_list_break_on_1): Use lambdas.
15485 * symtab.h: Include "common/function-view.h".
15486 (iterate_over_some_symtabs): Adjust to use function_view as
15487 callback type and return bool.
15488 (iterate_over_symtabs): Adjust to use function_view as callback
15489 type.
15490 (symbol_found_callback_ftype): Remove 'data' parameter and return
15491 bool.
15492 (iterate_over_symbols): Adjust to use function_view as callback
15493 type.
15494
15495 2017-02-23 Pedro Alves <palves@redhat.com>
15496
15497 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
15498 (%.o) <unittests/%.c>: New pattern.
15499 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
15500 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
15501 * common/function-view.h: New file.
15502 * unittests/function-view-selftests.c: New file.
15503 * configure: Regenerate.
15504
15505 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
15506
15507 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
15508 inferior_ptid.
15509 * go32-nat.c (go32_thread_alive): Likewise.
15510
15511 2017-02-23 Yao Qi <yao.qi@linaro.org>
15512
15513 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
15514 delete.
15515
15516 2017-02-23 Yao Qi <yao.qi@linaro.org>
15517
15518 * varobj.c (varobj_clear_saved_item): Use delete instead of
15519 xfree.
15520 (update_dynamic_varobj_children): Likewise.
15521
15522 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15523
15524 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
15525
15526 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
15527
15528 * common/enum-flags.h (enum_flags::enum_flags): Initialize
15529 m_enum_value to 0 in default constructor.
15530
15531 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15532
15533 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
15534 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
15535 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
15536 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
15537 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
15538 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
15539 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
15540 IS_STORE_CONDITIONAL_INSN.
15541
15542 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15543
15544 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
15545
15546 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15547
15548 * NEWS (Changes since GDB 7.12): Add DWARF-5.
15549
15550 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15551
15552 * dwarf2read.c (skip_one_die, read_attribute_value)
15553 (dwarf2_const_value_attr, dump_die_shallow)
15554 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15555 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15556
15557 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15558
15559 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15560 (dwarf_parse_macro_header): Accept DWARF version 5.
15561 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15562
15563 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15564
15565 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15566 DW_AT_GNU_*.
15567 * common/common-exceptions.h (enum errors): Likewise.
15568 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15569 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15570 (dwarf_expr_context::execute_stack_op): Likewise.
15571 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15572 Likewise.
15573 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15574 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15575 (show_entry_values_debug, call_site_to_target_addr)
15576 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15577 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15578 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15579 (value_of_dwarf_block_entry, indirect_pieced_value)
15580 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15581 (disassemble_dwarf_expression): Likewise.
15582 * dwarf2read.c (process_die, inherit_abstract_dies)
15583 (read_call_site_scope): Likewise.
15584 * gdbtypes.h (struct func_type, struct call_site_parameter)
15585 (struct call_site): Likewise.
15586 * stack.c (read_frame_arg): Likewise.
15587 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15588
15589 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15590
15591 * defs.h (read_unsigned_leb128): New declaration.
15592 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
15593 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
15594 (dwarf2_find_location_expression): Call also
15595 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
15596 * dwarf2loc.h (dwarf2_version): New declaration.
15597 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
15598 rnglists.
15599 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
15600 .debug_rnglists.
15601 (struct dwop_section_names): Add loclists_dwo.
15602 (dwop_section_names): Add .debug_loclists.dwo.
15603 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
15604 (struct dwarf2_per_cu_data): Add dwarf_version.
15605 (struct dwo_sections): Add loclists.
15606 (struct attr_abbrev): Add implicit_const.
15607 (read_indirect_line_string): New declaration.
15608 (read_unsigned_leb128): Delete declaration.
15609 (rcuh_kind): New definition.
15610 (read_and_check_comp_unit_head): Change parameter
15611 is_debug_types_section to section_kind.
15612 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
15613 (read_comp_unit_head): Change parameter abfd to section, add parameter
15614 section_kind. Handle DWARF-5.
15615 (error_check_comp_unit_head): Accept also DWARF version 5.
15616 (read_and_check_comp_unit_head): Change parameter
15617 is_debug_types_section to section_kind.
15618 (read_and_check_type_unit_head): Delete function.
15619 (read_abbrev_offset): Handle DWARF-5.
15620 (create_debug_type_hash_table): Add parameter section_kind. Process
15621 only DW_UT_type. Use signature and type_offset_in_tu from struct
15622 comp_unit_head.
15623 (create_debug_types_hash_table): Update create_debug_type_hash_table
15624 caller.
15625 (create_all_type_units): Call create_debug_type_hash_table.
15626 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
15627 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
15628 caller.
15629 (skip_one_die): Handle DW_FORM_implicit_const.
15630 (dwarf2_rnglists_process): New function.
15631 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15632 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15633 (read_attribute_value): Handle DW_FORM_implicit_const,
15634 DW_FORM_line_strp.
15635 (read_attribute): Handle DW_FORM_implicit_const.
15636 (read_indirect_string_at_offset_from): New function from
15637 read_indirect_string_at_offset.
15638 (read_indirect_string_at_offset): Call
15639 read_indirect_string_at_offset_from.
15640 (read_indirect_line_string_at_offset): New function.
15641 (read_indirect_string): New function comment.
15642 (read_indirect_line_string): New function.
15643 (read_unsigned_leb128): Make it global.
15644 (dwarf2_string_attr): Handle DWARF-5.
15645 (add_include_dir_stub, read_formatted_entries): New functions.
15646 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
15647 Handle DWARF-5.
15648 (per_cu_header_read_in): Update read_comp_unit_head caller.
15649 (dwarf2_version): New function.
15650 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
15651 rnglists.
15652 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
15653 fields.
15654
15655 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15656
15657 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
15658
15659 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15660
15661 * dwarf2read.c (dwarf2_ranges_process): New function from
15662 dwarf2_ranges_read.
15663 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
15664 dwarf2_ranges_process.
15665
15666 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15667
15668 * dwarf2read.c (create_debug_type_hash_table): New function from
15669 create_debug_types_hash_table.
15670 (create_debug_types_hash_table): Call create_debug_type_hash_table.
15671 (create_all_type_units, open_and_init_dwo_file): Update
15672 create_debug_types_hash_table callers.
15673
15674 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15675
15676 PR gdb/16188
15677 * fork-child.c (trace_start_error): Fix thinko. va_end should
15678 refer to 'ap', not 'args'.
15679
15680 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15681 Pedro Alves <palves@redhat.com>
15682
15683 PR gdb/16188
15684 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
15685 calls succeeded.
15686 * fork-child.c (trace_start_error): New function.
15687 (trace_start_error_with_name): Likewise.
15688 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
15689 * inf-ptrace.c (inf_ptrace_me): Likewise.
15690 * inferior.h (trace_start_error): New prototype.
15691 (trace_start_error_with_name): Likewise.
15692
15693 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
15694
15695 PR gdb/21164
15696 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
15697 NULL before using it.
15698 * symmisc.c (maintenance_print_symbols): Likewise.
15699 (maintenance_print_msymbols): Likewise.
15700
15701 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15702
15703 * NEWS: Add record Python bindings entry.
15704
15705 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15706
15707 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
15708 py-record-full.o.
15709 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
15710 * python/py-record-btrace.c, python/py-record-btrace.h,
15711 python/py-record-full.c, python/py-record-full.h: New file.
15712 * python/py-record.c: Add include for py-record-btrace.h and
15713 py-record-full.h.
15714 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
15715 recpy_instruction_history, recpy_function_call_history, recpy_begin,
15716 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
15717 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
15718 New definition.
15719 (gdbpy_initialize_btrace): New export.
15720 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
15721
15722 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15723
15724 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
15725 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
15726 * python/py-record.c: New file.
15727 * python/python-internal.h (gdbpy_start_recording,
15728 gdbpy_current_recording, gdpy_stop_recording,
15729 gdbpy_initialize_record): New export.
15730 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
15731 (python_GdbMethods): Add gdbpy_start_recording,
15732 gdbpy_current_recording and gdbpy_stop_recording.
15733
15734 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15735
15736 * record-btrace.c (record_btrace_record_method): New function.
15737 (init_record_btrace_ops): Initialize to_record_method.
15738 * record-full.c (record_full_record_method): New function.
15739 (init_record_full_ops, init_record_full_core_ops): Add
15740 record_full_record_method.
15741 * record.h (enum record_method): New enum.
15742 * target-debug.h (target_debug_print_enum_record_method: New define.
15743 * target-delegates.c: Regenerate.
15744 * target.c (target_record_method): New function.
15745 * target.h: Include record.h.
15746 (struct target_ops) <to_record_method>: New field.
15747 (target_record_method): New export.
15748
15749 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15750
15751 * record.h (record_start, record_stop): New export.
15752 * record.c (record_start, record_stop): New function.
15753
15754 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15755
15756 * btrace.c (btrace_fetch): Copy function call segments pointer
15757 into a vector.
15758 (btrace_clear): Clear the vector.
15759 (btrace_find_insn_by_number): Use binary search to find the correct
15760 function call segment.
15761 * btrace.h (brace_fun_p): New typedef.
15762 (struct btrace_thread_info) <functions>: New field.
15763
15764 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15765
15766 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
15767 * btrace.c (btrace_decode_error): ... here. New function.
15768 * btrace.h (btrace_decode_error): New export.
15769
15770 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15771
15772 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
15773 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
15774 btrace_find_insn_by_number): Remove special case for gaps.
15775 * btrace.h (btrace_insn_get_error): New export.
15776 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
15777 * record-btrace.c (btrace_insn_history): Print number for gaps.
15778 (record_btrace_info, record_btrace_goto): Handle gaps.
15779
15780 2017-02-14 Tom Tromey <tom@tromey.com>
15781
15782 PR python/13598:
15783 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
15784 event.
15785 * python/py-evts.c (gdbpy_initialize_py_events): Add
15786 before_prompt registry.
15787 * python/py-events.h (events_object) <before_prompt>: New field.
15788
15789 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
15790
15791 * btrace.c (ftrace_new_switch): Preserve up link and flags.
15792
15793 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
15794
15795 * symfile (_initialize_symfile): Add usage text to the load command's
15796 help text.
15797
15798 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
15799
15800 * utils.c (defaulted_query): Don't query on secondary UIs.
15801
15802 2017-02-10 Tom Tromey <tom@tromey.com>
15803
15804 * rust-lang.c (rust_get_disr_info): Remove unused variable.
15805
15806 2017-02-10 Tom Tromey <tom@tromey.com>
15807
15808 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
15809 "cleanup" local.
15810 * python/py-type.c (typy_legacy_template_argument): Remove
15811 unnecessary "cleanup" local.
15812
15813 2017-02-10 Tom Tromey <tom@tromey.com>
15814
15815 * python/python.c (do_start_initialization): New function, from
15816 _initialize_python.
15817 (_initialize_python): Call do_start_initialization.
15818 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
15819 goto.
15820
15821 2017-02-10 Tom Tromey <tom@tromey.com>
15822
15823 * python/py-prettyprint.c (pretty_print_one_value): Use
15824 gdbpy_ref.
15825
15826 2017-02-10 Tom Tromey <tom@tromey.com>
15827
15828 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
15829 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
15830 gdbpy_ref.
15831 * python/py-type.c (field_new): Use gdbpy_ref.
15832 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
15833 gdbpy_ref.
15834 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
15835 (py_free_pspace): Likewise.
15836 (pspace_to_pspace_object): Likewise.
15837 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
15838 (py_free_objfile): Likewise.
15839 (objfile_to_objfile_object): Likewise.
15840 * python/py-inferior.c (delete_thread_object): Use
15841 gdbpy_ref.
15842 (infpy_read_memory): Likewise.
15843 (py_free_inferior): Likewise.
15844 * python/py-evtregistry.c (create_eventregistry_object): Use
15845 gdbpy_ref.
15846 * python/py-event.c (create_event_object): Use gdbpy_ref.
15847
15848 2017-02-10 Tom Tromey <tom@tromey.com>
15849
15850 * python/py-ref.h (gdbpy_ref_policy): Now a template.
15851 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
15852 used.
15853 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
15854 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
15855 python/py-exitedevent.c, python/py-finishbreakpoint.c,
15856 python/py-framefilter.c, python/py-function.c,
15857 python/py-inferior.c, python/py-infevents.c,
15858 python/py-linetable.c, python/py-newobjfileevent.c,
15859 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
15860 python/py-signalevent.c, python/py-stopevent.c,
15861 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
15862 python/py-unwind.c, python/py-utils.c, python/py-value.c,
15863 python/py-varobj.c, python/py-xmethods.c, python/python.c,
15864 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
15865
15866 2017-02-10 Tom Tromey <tom@tromey.com>
15867
15868 * ui-out.h (ui_out_emit_type): New class.
15869 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
15870 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
15871 and ui_out_emit_tuple.
15872 (enumerate_locals): Likewise.
15873 (py_mi_print_variables, py_print_locals, py_print_args): Use
15874 ui_out_emit_list.
15875 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
15876 ui_out_emit_list.
15877 * common/gdb_optional.h: New file.
15878
15879 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
15880
15881 * MAINTAINERS (Write After Approval): Update my e-mail address.
15882
15883 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
15884
15885 PR gdb/21122
15886 * breakpoint.c (_initialize_breakpoint): Update the help description
15887 of the 'commands' command to indicate that it takes a list argument.
15888
15889 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
15890
15891 * interps.c (current_interp_set_logging): Remove "return".
15892
15893 2017-02-09 Gary Benson <gbenson@redhat.com>
15894
15895 * symtab.c (add_symtab_completions): Prevent NULL pointer
15896 dereference.
15897
15898 2017-02-08 Pedro Alves <palves@redhat.com>
15899
15900 * interps.c (interp::interp): Remove reference to quiet_p.
15901 (interp_set): Make static. Remove dead "Switching to" output
15902 code.
15903 (interp_quiet_p, interp_set_quiet): Delete.
15904 (interpreter_exec_cmd): Don't set the interpreter quiet.
15905 * interps.h (interp_quiet_p): Make static.
15906 (class interp) <quiet_p>: Remove field
15907
15908 2017-02-08 Jerome Guitton <guitton@adacore.com>
15909
15910 * cli/cli-decode.c (find_command_name_length): Make it extern.
15911 * cli/cli-decode.h (find_command_name_length): Declare.
15912 * cli/cli-script.c (command_name_equals, line_first_arg):
15913 New functions.
15914 (process_next_line): Use cli-decode to parse command names.
15915 (build_command_line): Make args a constant pointer.
15916
15917 2017-02-08 Jerome Guitton <guitton@adacore.com>
15918
15919 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
15920 Remove case-insensitive search.
15921
15922 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
15923
15924 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
15925 at the end of the line. Avoids an ARI warning.
15926
15927 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
15928
15929 * NEWS: Mention support for record/replay of Intel 64 rdrand and
15930 rdseed instructions.
15931 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
15932
15933 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
15934
15935 PR tdep/20936
15936 Provide and use sparc32 and sparc64 target description XML files.
15937 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
15938 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
15939 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
15940 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
15941 * features/sparc/sparc32-solaris.xml: New file.
15942 * features/sparc/sparc64-solaris.xml: New file.
15943 * features/sparc/sparc32-solaris.c: Generated.
15944 * features/sparc/sparc64-solaris.c: Generated.
15945 * sparc-tdep.h: Account for differences in target descriptions.
15946 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
15947 (sparc32_register_type): Use target provided registers.
15948 (validate_tdesc_registers): New function.
15949 (sparc32_gdbarch_init): Use tdesc_has_registers.
15950 Set pseudoregister functions.
15951 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
15952 (sparc64_register_type): Use target provided registers.
15953 (sparc64_init_abi): Set pseudoregister functions.
15954
15955 2017-02-03 Tom Tromey <tom@tromey.com>
15956
15957 PR rust/21097:
15958 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
15959 with a single member.
15960
15961 2017-02-03 Pedro Alves <palves@redhat.com>
15962
15963 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
15964 (cli_interp_base::~cli_interp_base): New.
15965 (cli_interp): New struct.
15966 (as_cli_interp): Cast the interp itself to cli_interp.
15967 (cli_interpreter_pre_command_loop): Rename to ...
15968 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
15969 parameter.
15970 (cli_interpreter_init): Rename to ...
15971 (cli_interp::init): ... this. Remove 'self' parameter. Use
15972 boolean. Make extern.
15973 (cli_interpreter_resume): Rename to ...
15974 (cli_interp::resume): ... this. Remove 'data' parameter. Make
15975 extern.
15976 (cli_interpreter_suspend): Rename to ...
15977 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
15978 extern.
15979 (cli_interpreter_exec): Rename to ...
15980 (cli_interp::exec): ... this. Remove 'data' parameter. Make
15981 extern.
15982 (cli_interpreter_supports_command_editing): Rename to ...
15983 (cli_interp_base::supports_command_editing): ... this. Remove
15984 'interp' parameter. Make extern.
15985 (cli_ui_out): Rename to ...
15986 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
15987 Make extern.
15988 (cli_set_logging): Rename to ...
15989 (cli_interp_base::set_logging): ... this. Remove 'interp'
15990 parameter. Make extern.
15991 (cli_interp_procs): Delete.
15992 (cli_interp_factory): Adjust to use "new".
15993 * cli/cli-interp.h: Include "interps.h".
15994 (struct cli_interp_base): New struct.
15995 * interps.c (struct interp): Delete. Fields moved to interps.h.
15996 (interp_new): Delete.
15997 (interp::interp, interp::~interp): New.
15998 (interp_set): Use bool, and return void. Assume the interpreter
15999 has suspend, init and resume methods, and that the all return
16000 void.
16001 (set_top_level_interpreter): interp_set returns void.
16002 (interp_ui_out): Adapt.
16003 (current_interp_set_logging): Adapt.
16004 (interp_data): Delete.
16005 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16006 (interp_exec): Adapt.
16007 (top_level_interpreter_data): Delete.
16008 * interps.h (interp_init_ftype, interp_resume_ftype)
16009 (interp_suspend_ftype, interp_exec_ftype)
16010 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16011 (class interp): New.
16012 (interp_new): Delete.
16013 (interp_set): Now returns void. Use bool.
16014 (interp_data, top_level_interpreter_data): Delete.
16015 * mi/mi-common.h: Include interps.h.
16016 (class mi_interp): Inherit from interp. Define a ctor. Declare
16017 init, resume, suspect, exec, interp_ui_out, set_logging and
16018 pre_command_loop methods.
16019 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16020 (mi_interpreter_init): Rename to ...
16021 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16022 bool, return void and make extern. Adjust.
16023 (mi_interpreter_resume): ... Rename to ...
16024 (mi_interp::resume): ... this. Remove the 'data' parameter,
16025 return void and make extern. Adjust.
16026 (mi_interpreter_suspend): ... Rename to ...
16027 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16028 return void and make extern. Adjust.
16029 (mi_interpreter_exec): ... Rename to ...
16030 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16031 extern. Adjust.
16032 (mi_interpreter_pre_command_loop): ... Rename to ...
16033 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16034 parameter and make extern.
16035 (mi_on_normal_stop_1): Adjust.
16036 (mi_ui_out): Rename to ...
16037 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16038 parameter and make extern. Adjust.
16039 (mi_set_logging): Rename to ...
16040 (mi_interp::set_logging): ... this. Remove the 'interp'
16041 parameter and make extern. Adjust.
16042 (mi_interp_procs): Delete.
16043 (mi_interp_factory): Adjust to use 'new'.
16044 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16045 (mi_print_exception, mi_execute_command, mi_load_progress):
16046 Adjust.
16047 * tui/tui-interp.c (tui_interp): New class.
16048 (as_tui_interp): Return a tui_interp pointer.
16049 (tui_on_normal_stop, tui_on_signal_received)
16050 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16051 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16052 to use interp::interp_ui_out.
16053 (tui_init): Rename to ...
16054 (tui_interp::init): ... this. Remove the 'self' parameter, use
16055 bool, return void and make extern. Adjust.
16056 (tui_resume): Rename to ...
16057 (tui_interp::resume): ... this. Remove the 'data' parameter,
16058 return void and make extern. Adjust.
16059 (tui_suspend): Rename to ...
16060 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16061 return void and make extern. Adjust.
16062 (tui_ui_out): Rename to ...
16063 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16064 parameter, and make extern. Adjust.
16065 (tui_exec): Rename to ...
16066 (tui_interp::exec): ... this. Remove the 'data' parameter and
16067 make extern.
16068 (tui_interp_procs): Delete.
16069 (tui_interp_factory): Use "new".
16070
16071 2017-02-02 Tom Tromey <tom@tromey.com>
16072
16073 * rust-exp.y (ends_raw_string, space_then_number)
16074 (rust_identifier_start_p): Return bool.
16075 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16076 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16077 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16078 (rust_chartype_p): Return bool.
16079 (val_print_struct, rust_print_struct_def, rust_print_type):
16080 Update.
16081 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16082 Return bool.
16083
16084 2017-02-02 Tom Tromey <tom@tromey.com>
16085
16086 * rust-lang.c: Reindent.
16087
16088 2017-02-02 Tom Tromey <tom@tromey.com>
16089
16090 * rust-lang.h (rust_crate_for_block): Update.
16091 * rust-lang.c (rust_crate_for_block): Return std::string.
16092 (rust_get_disr_info): Use std:;string, not
16093 gdb::unique_xmalloc_ptr.
16094 * rust-exp.y (crate_name): Update.
16095
16096 2017-02-02 Pedro Alves <palves@redhat.com>
16097
16098 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16099 field out of gdb_disassembler_test and make it static.
16100
16101 2017-02-02 Pedro Alves <palves@redhat.com>
16102
16103 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16104 mi1_interp and mi_interp fields.
16105
16106 2017-02-02 Pedro Alves <palves@redhat.com>
16107
16108 * cli/cli-interp.c (struct saved_output_files, saved_output):
16109 Moved from cli/cli-logging.c.
16110 (cli_set_logging): New function.
16111 (cli_interp_procs): Install cli_set_logging.
16112 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16113 Declare.
16114 * cli/cli-logging.c (struct saved_output_files, saved_output):
16115 Moved to cli/cli-interp.c.
16116 (pop_output_files): Don't save outputs here.
16117 (make_logging_output): New function.
16118 (handle_redirections): Don't build tee nor save previous outputs
16119 here.
16120 * interps.c (current_interp_set_logging): Change prototype.
16121 Assume there's always a set_logging_proc method installed.
16122 * interps.h (interp_set_logging_ftype): Change prototype.
16123 (current_interp_set_logging): Change prototype and adjust comment.
16124 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16125 use make_logging_output.
16126 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16127 2017-02-02 Pedro Alves <palves@redhat.com>
16128
16129 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16130 from ...
16131 (set_logging_overwrite): ... here.
16132 (logging_no_redirect_file): Delete.
16133 (set_logging_redirect): Don't handle redirection on the fly.
16134 Instead warn that "logging off" / "logging on" is necessary.
16135 (pop_output_files): Delete references to logging_no_redirect_file.
16136 (show_logging_command): Always speak in terms of what will happen
16137 once logging is reenabled.
16138
16139 2017-02-02 Pedro Alves <palves@redhat.com>
16140
16141 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16142
16143 2017-02-02 Pedro Alves <palves@redhat.com>
16144
16145 * disasm.c (gdb_pretty_print_insn): Rename to ...
16146 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16147 Remove gdbarch parameter. Adapt to clear the object's buffers
16148 instead of allocating new buffers, and to print using the object's
16149 gdb_disassembler instead of calling gdb_print_insn.
16150 (dump_insns): Use gdb_pretty_print_disassembler.
16151 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16152 (gdb_pretty_print_disassembler): New class.
16153 * record-btrace.c (btrace_insn_history): Use
16154 gdb_pretty_print_disassembler.
16155
16156 2017-02-02 Pedro Alves <palves@redhat.com>
16157
16158 * ada-lang.c (type_as_string): Use string_file.
16159 * ada-valprint.c (ada_print_floating): Use string_file.
16160 * ada-varobj.c (ada_varobj_scalar_image)
16161 (ada_varobj_get_value_image): Use string_file.
16162 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16163 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16164 * breakpoint.c (update_inserted_breakpoint_locations)
16165 (insert_breakpoint_locations, reattach_breakpoints)
16166 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16167 (print_it_watchpoint): Use string_file.
16168 (save_breakpoints): Use stdio_file.
16169 * c-exp.y (oper): Use string_file.
16170 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16171 tee_file.
16172 (pop_output_files): Use delete.
16173 (handle_redirections): Use stdio_file and tee_file.
16174 * cli/cli-setshow.c (do_show_command): Use string_file.
16175 * compile/compile-c-support.c (c_compute_program): Use
16176 string_file.
16177 * compile/compile-c-symbols.c (generate_vla_size): Take a
16178 'string_file &' instead of a 'ui_file *'.
16179 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16180 of a 'ui_file *'. Use string_file.
16181 (generate_c_for_variable_locations): Take a 'string_file &'
16182 instead of a 'ui_file *'.
16183 * compile/compile-internal.h (generate_c_for_for_one_variable):
16184 Take a 'string_file &' instead of a 'ui_file *'.
16185 * compile/compile-loc2c.c (push, pushf, unary, binary)
16186 (print_label, pushf_register_address, pushf_register)
16187 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16188 'ui_file *'. Adjust.
16189 * compile/compile.c (compile_to_object): Use string_file.
16190 * compile/compile.h (compile_dwarf_expr_to_c)
16191 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16192 'ui_file *'.
16193 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16194 (replace_typedefs_qualified_name): Use string_file and
16195 obstack_copy0.
16196 * disasm.c (gdb_pretty_print_insn): Use string_file.
16197 (gdb_disassembly): Adjust reference the null_stream global.
16198 (do_ui_file_delete): Delete.
16199 (gdb_insn_length): Use null_stream.
16200 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16201 * dwarf2loc.c (dwarf2_compile_property_to_c)
16202 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16203 'string_file &' instead of a 'ui_file *'.
16204 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16205 * dwarf2read.c (do_ui_file_peek_last): Delete.
16206 (dwarf2_compute_name): Use string_file.
16207 * event-top.c (gdb_setup_readline): Use stdio_file.
16208 * gdbarch.sh (verify_gdbarch): Use string_file.
16209 * gdbtypes.c (safe_parse_type): Use null_stream.
16210 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16211 string_file.
16212 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16213 'string_file *' instead of a 'ui_file *'.
16214 (gdbscm_arch_disassemble): Use string_file.
16215 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16216 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16217 inherits from ui_file.
16218 (ioscm_file_port_delete, ioscm_file_port_rewind)
16219 (ioscm_file_port_put): Delete.
16220 (ioscm_file_port_write): Rename to ...
16221 (ioscm_file_port::write): ... this. Remove file_port_magic
16222 checks.
16223 (ioscm_file_port_new): Delete.
16224 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16225 ui_file_up.
16226 * guile/scm-type.c (tyscm_type_name): Use string_file.
16227 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16228 Use string_file.
16229 * infcmd.c (print_return_value_1): Use string_file.
16230 * infrun.c (print_target_wait_results): Use string_file.
16231 * language.c (add_language): Use string_file.
16232 * location.c (explicit_to_string_internal): Use string_file.
16233 * main.c (captured_main_1): Use null_file.
16234 * maint.c (maintenance_print_architecture): Use stdio_file.
16235 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16236 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16237 event_channel>: Change type to mi_console_file pointer.
16238 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16239 (mi_console_file_delete): Delete.
16240 (struct mi_console_file): Delete.
16241 (mi_console_file_magic): Delete.
16242 (mi_console_file_new): Delete.
16243 (mi_console_file::mi_console_file): New.
16244 (mi_console_file_delete): Delete.
16245 (mi_console_file_fputs): Delete.
16246 (mi_console_file::write): New.
16247 (mi_console_raw_packet): Delete.
16248 (mi_console_file::flush): New.
16249 (mi_console_file_flush): Delete.
16250 (mi_console_set_raw): Rename to ...
16251 (mi_console_file::set_raw): ... this.
16252 * mi/mi-console.h (class mi_console_file): New class.
16253 (mi_console_file_new, mi_console_set_raw): Delete.
16254 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16255 (mi_set_logging): Use delete and tee_file. Adjust.
16256 * mi/mi-main.c (output_register): Use string_file.
16257 (mi_cmd_data_evaluate_expression): Use string_file.
16258 (mi_cmd_data_read_memory): Use string_file.
16259 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16260 * mi/mi-out.c (mi_ui_out::main_stream): New.
16261 (mi_ui_out::rewind): Use main_stream and
16262 string_file.
16263 (mi_ui_out::put): Use main_stream and string_file.
16264 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16265 Allocate a 'string_file' instead.
16266 (mi_out_new): Don't allocate a mem_fileopen stream here.
16267 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16268 (mi_ui_out::main_stream): Declare method.
16269 * printcmd.c (eval_command): Use string_file.
16270 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16271 * python/py-arch.c (archpy_disassemble): Use string_file.
16272 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16273 * python/py-frame.c (frapy_str): Use string_file.
16274 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16275 Use string_file.
16276 * python/py-type.c (typy_str): Use string_file.
16277 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16278 * python/py-value.c (valpy_str): Use string_file.
16279 * record-btrace.c (btrace_insn_history): Use string_file.
16280 * regcache.c (regcache_print): Use stdio_file.
16281 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16282 * remote.c (escape_buffer): Use string_file.
16283 * rust-lang.c (rust_get_disr_info): Use string_file.
16284 * serial.c (serial_open_ops_1): Use stdio_file.
16285 (do_serial_close): Use delete.
16286 * stack.c (print_frame_arg): Use string_file.
16287 (print_frame_args): Remove local mem_fileopen stream, not used.
16288 (print_frame): Use string_file.
16289 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16290 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16291 Take a 'string_file *' instead of a 'ui_file *'.
16292 * top.c (new_ui): Use stdio_file and stderr_file.
16293 (free_ui): Use delete.
16294 (execute_command_to_string): Use string_file.
16295 (quit_confirm): Use string_file.
16296 * tracepoint.c (collection_list::append_exp): Use string_file.
16297 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16298 * tui/tui-file.c: Don't include "ui-file.h".
16299 (enum streamtype, struct tui_stream): Delete.
16300 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16301 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16302 (tui_file::tui_file): New method.
16303 (tui_file_fputs): Delete.
16304 (tui_file_get_strbuf): Delete.
16305 (tui_file::puts): New method.
16306 (tui_file_adjust_strbuf): Delete.
16307 (tui_file_flush): Delete.
16308 (tui_file::flush): New method.
16309 * tui/tui-file.h: Tweak intro comment.
16310 Include ui-file.h.
16311 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16312 (tui_file_adjust_strbuf): Delete declarations.
16313 (class tui_file): New class.
16314 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16315 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16316 (tui_register_format): Use string_stream.
16317 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16318 (tui_get_function_from_frame): Use string_file.
16319 * typeprint.c (type_to_string): Use string_file.
16320 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16321 (null_stream): New global.
16322 (ui_file_delete): Delete.
16323 (ui_file::ui_file): New.
16324 (null_file_isatty): Delete.
16325 (ui_file::~ui_file): New.
16326 (null_file_rewind): Delete.
16327 (ui_file::printf): New.
16328 (null_file_put): Delete.
16329 (null_file_flush): Delete.
16330 (ui_file::putstr): New.
16331 (null_file_write): Delete.
16332 (ui_file::putstrn): New.
16333 (null_file_read): Delete.
16334 (ui_file::putc): New.
16335 (null_file_fputs): Delete.
16336 (null_file_write_async_safe): Delete.
16337 (ui_file::vprintf): New.
16338 (null_file_delete): Delete.
16339 (null_file::write): New.
16340 (null_file_fseek): Delete.
16341 (null_file::puts): New.
16342 (ui_file_data): Delete.
16343 (null_file::write_async_safe): New.
16344 (gdb_flush, ui_file_isatty): Adjust.
16345 (ui_file_put, ui_file_rewind): Delete.
16346 (ui_file_write): Adjust.
16347 (ui_file_write_for_put): Delete.
16348 (ui_file_write_async_safe, ui_file_read): Adjust.
16349 (ui_file_fseek): Delete.
16350 (fputs_unfiltered): Adjust.
16351 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16352 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16353 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16354 (set_ui_file_data): Delete.
16355 (string_file::~string_file, string_file::write)
16356 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16357 (do_ui_file_as_string, ui_file_as_string): Delete.
16358 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16359 (struct mem_file): Delete.
16360 (mem_file_new): Delete.
16361 (stdio_file::stdio_file): New.
16362 (mem_file_delete): Delete.
16363 (stdio_file::stdio_file): New.
16364 (mem_fileopen): Delete.
16365 (stdio_file::~stdio_file): New.
16366 (mem_file_rewind): Delete.
16367 (stdio_file::set_stream): New.
16368 (mem_file_put): Delete.
16369 (stdio_file::open): New.
16370 (mem_file_write): Delete.
16371 (stdio_file_magic, struct stdio_file): Delete.
16372 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16373 (stdio_file::flush): New.
16374 (stdio_file_read): Rename to ...
16375 (stdio_file::read): ... this. Adjust.
16376 (stdio_file_write): Rename to ...
16377 (stdio_file::write): ... this. Adjust.
16378 (stdio_file_write_async_safe): Rename to ...
16379 (stdio_file::write_async_safe) ... this. Adjust.
16380 (stdio_file_fputs): Rename to ...
16381 (stdio_file::puts) ... this. Adjust.
16382 (stdio_file_isatty): Delete.
16383 (stdio_file_fseek): Delete.
16384 (stdio_file::isatty): New.
16385 (stderr_file_write): Rename to ...
16386 (stderr_file::write) ... this. Adjust.
16387 (stderr_file_fputs): Rename to ...
16388 (stderr_file::puts) ... this. Adjust.
16389 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16390 (stderr_file::stderr_file): New.
16391 (tee_file_magic): Delete.
16392 (struct tee_file): Delete.
16393 (tee_file::tee_file): New.
16394 (tee_file_new): Delete.
16395 (tee_file::~tee_file): New.
16396 (tee_file_delete): Delete.
16397 (tee_file_flush): Rename to ...
16398 (tee_file::flush): ... this. Adjust.
16399 (tee_file_write): Rename to ...
16400 (tee_file::write): ... this. Adjust.
16401 (tee_file::write_async_safe): New.
16402 (tee_file_fputs): Rename to ...
16403 (tee_file::puts): ... this. Adjust.
16404 (tee_file_isatty): Rename to ...
16405 (tee_file::isatty): ... this. Adjust.
16406 * ui-file.h (struct obstack, struct ui_file): Don't
16407 forward-declare.
16408 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16409 (ui_file_write_ftype)
16410 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16411 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16412 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16413 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16414 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16415 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16416 (set_ui_file_fseek): Delete.
16417 (ui_file_data, ui_file_delete, ui_file_rewind)
16418 (struct ui_file): New.
16419 (ui_file_up): New.
16420 (class null_file): New.
16421 (null_stream): Declare.
16422 (ui_file_write_for_put, ui_file_put): Delete.
16423 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16424 Delete.
16425 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16426 (gdb_fopen, tee_file_new): Delete.
16427 (struct string_file): New.
16428 (struct stdio_file): New.
16429 (stdio_file_up): New.
16430 (struct stderr_file): New.
16431 (class tee_file): New.
16432 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16433 of a 'ui_file *'. Adjust.
16434 * ui-out.h (class ui_out) <field_stream>: Likewise.
16435 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16436 (null_stream): Delete.
16437 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16438 Adjust.
16439 * utils.h (struct ui_file): Delete forward declaration..
16440 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16441 (error_stream): Take a 'string_file &' instead of a
16442 'ui_file *'.
16443 * varobj.c (varobj_value_get_print_value): Use string_file.
16444 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
16445 * gdbarch.c: Regenerate.
16446
16447 2017-02-02 Pedro Alves <palves@redhat.com>
16448
16449 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
16450 (gdb_pretty_print_insn): ... this. Now a free function. Add back
16451 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
16452 Adjust to call gdb_print_insn instead of
16453 gdb_disassembler::print_insn.
16454 (dump_insns, do_mixed_source_and_assembly_deprecated)
16455 (do_mixed_source_and_assembly, do_assembly_only): Add back a
16456 'gdbarch' parameter. Remove gdb_disassembler parameter.
16457 (gdb_disassembly): Don't allocate a gdb_disassembler here.
16458 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
16459 declaration.
16460 (gdb_pretty_print_insn): Re-add declaration.
16461 * record-btrace.c (btrace_insn_history): Don't allocate a
16462 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
16463
16464 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
16465
16466 * disasm.h (gdb_disassembly): Remove file_string parameter.
16467 * disasm.c (gdb_disassembly): Likewise.
16468 * cli/cli-cmds.c (print_disassembly): Adapt.
16469 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
16470 * stack.c (do_gdb_disassembly): Likewise.
16471
16472 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
16473
16474 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
16475 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
16476 targets. And if the implicit value is longer than needed, extract
16477 the first bytes instead of the "least significant" ones.
16478
16479 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16480
16481 * btrace.c (btrace_enable): Do not call btrace_add_pc for
16482 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
16483 (btrace_fetch): Assert can_access_registers_ptid.
16484 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
16485 validate_registers_access.
16486
16487 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16488
16489 * gdbthread.h (can_access_registers_ptid): New.
16490 * thread.c (can_access_registers_ptid): New.
16491
16492 2017-02-01 Pedro Alves <palves@redhat.com>
16493
16494 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
16495
16496 2017-01-31 Pedro Alves <palves@redhat.com>
16497
16498 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
16499 Fix typos.
16500
16501 2017-01-31 Pedro Alves <palves@redhat.com>
16502
16503 * stack.c (print_frame_args): Remove local mem_fileopen stream,
16504 not used.
16505
16506 2017-01-31 Pedro Alves <palves@redhat.com>
16507
16508 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
16509
16510 2017-01-31 Pedro Alves <palves@redhat.com>
16511
16512 * common/scoped_restore.h
16513 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
16514 change the value's parameter type to T2.
16515 (make_scoped_restore): Likewise.
16516
16517 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16518 Richard Henderson <rth@redhat.com>
16519
16520 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
16521 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
16522 GS_BASE for older kernels.
16523 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
16524 GS_BASE for older kernels.
16525 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
16526 and GS_BASE to the offset table.
16527 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
16528 system register group.
16529 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
16530 for older kernels.
16531 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
16532 amd64 ABI.
16533 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
16534 AMD64_GSBASE_REGNUM.
16535 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
16536 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
16537 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
16538 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
16539 i386/64bit-segments.xml in those rules.
16540 * features/i386/64bit-segments.xml: New file.
16541 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
16542 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
16543 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
16544 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
16545 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
16546 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
16547 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
16548 * features/i386/amd64-avx-linux.c: Regenerated.
16549 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
16550 * features/i386/amd64-avx-mpx.c: Regenerated.
16551 * features/i386/amd64-avx512-linux.c: Regenerated.
16552 * features/i386/amd64-linux.c: Regenerated.
16553 * features/i386/amd64-mpx-linux.c: Regenerated.
16554 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16555 * features/i386/i386-avx-mpx.c: Regenerated.
16556 * features/i386/x32-avx-linux.c: Regenerated.
16557 * features/i386/x32-avx512-linux.c: Regenerated.
16558 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16559 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16560 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16561 * regformats/i386/amd64-linux.dat: Regenerated.
16562 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16563 * regformats/i386/x32-avx-linux.dat: Regenerated.
16564 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16565 * regformats/i386/x32-linux.dat: Regenerated.
16566
16567 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16568
16569 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16570 Set to AMD64_NUM_REGS.
16571
16572 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16573
16574 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16575 that checks validity of a register number.
16576
16577 2017-01-27 Kees Cook <keescook@google.com>
16578
16579 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16580 fetch_fpregs if target has fpa registers.
16581 (arm_linux_store_inferior_registers): Call store_fpregs if target
16582 has fpa registers.
16583
16584 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16585
16586 * cris-tdep.c (cris_gdbarch_init): Remove check for
16587 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16588
16589 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16590
16591 * corelow.c (get_core_register_section): Check for regset
16592 existence before checking for REGSET_VARIABLE_SIZE.
16593
16594 2017-01-26 Yao Qi <yao.qi@linaro.org>
16595 Pedro Alves <palves@redhat.com>
16596
16597 PR gdb/20939
16598 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
16599 call memory_error, save memaddr instead.
16600 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
16601 negative, cal memory_error.
16602 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
16603
16604 2017-01-26 Yao Qi <yao.qi@linaro.org>
16605
16606 * disasm-selftests.c (memory_error_test): New function.
16607 (_initialize_disasm_selftests): Register memory_error_test.
16608
16609 2017-01-26 Yao Qi <yao.qi@linaro.org>
16610
16611 * Makefile.in (SFILES): Add disasm-selftests.c and
16612 selftest-arch.c.
16613 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
16614 * disasm-selftests.c: New file.
16615 * selftest-arch.c: New file.
16616 * selftest-arch.h: New file.
16617
16618 2017-01-26 Yao Qi <yao.qi@linaro.org>
16619
16620 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
16621 to bfd_arch_mep. Don't return 0 if section is not
16622 found. Call print_insn_mep.
16623
16624 2017-01-26 Pedro Alves <palves@redhat.com>
16625 Yao Qi <yao.qi@linaro.org>
16626
16627 * arm-tdep.c: Include "disasm.h".
16628 (gdb_print_insn_arm): Update code to get gdbarch.
16629 * disasm.c (dis_asm_read_memory): Change it to
16630 gdb_disassembler::dis_asm_read_memory.
16631 (dis_asm_memory_error): Likewise.
16632 (dis_asm_print_address): Likewise.
16633 (gdb_pretty_print_insn): Change it to
16634 gdb_disassembler::pretty_print_insn.
16635 (dump_insns): Add one argument gdb_disassemlber. All
16636 callers updated.
16637 (do_mixed_source_and_assembly_deprecated): Likewise.
16638 (do_mixed_source_and_assembly): Likewise.
16639 (do_assembly_only): Likewise.
16640 (gdb_disassembler::gdb_disassembler): New.
16641 (gdb_disassembler::print_insn): New.
16642 * disasm.h (class gdb_disassembler): New.
16643 (gdb_pretty_print_insn): Remove declaration.
16644 (gdb_disassemble_info): Likewise.
16645 * guile/scm-disasm.c (class gdbscm_disassembler): New.
16646 (gdbscm_disasm_read_memory_worker): Update.
16647 (gdbscm_disasm_read_memory): Update.
16648 (gdbscm_disasm_memory_error): Remove.
16649 (gdbscm_disasm_print_address): Remove.
16650 (gdbscm_disassembler::gdbscm_disassembler): New.
16651 (gdbscm_print_insn_from_port): Update.
16652 * mips-tdep.c: Include disasm.h.
16653 (gdb_print_insn_mips): Update code to get gdbarch.
16654 * record-btrace.c (btrace_insn_history): Update.
16655 * spu-tdep.c: Include disasm.h.
16656 (struct spu_dis_asm_data): Remove.
16657 (struct spu_dis_asm_info): New.
16658 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
16659 SPU id.
16660 (gdb_print_insn_spu): Cast disassemble_info to
16661 spu_dis_asm_info.
16662
16663 2017-01-26 Yao Qi <yao.qi@linaro.org>
16664
16665 * disasm.c (do_ui_file_delete): Delete.
16666 (gdb_insn_length): Move code creating stream to ...
16667 * utils.c (null_stream): ... here. New function.
16668 * utils.h (null_stream): Declare.
16669
16670 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16671
16672 * python/py-inferior.c (find_thread_object): Return directly
16673 from the loop. Remove "found" variable.
16674
16675 2017-01-21 Joel Brobecker <brobecker@adacore.com>
16676
16677 GDB 7.12.1 released.
16678
16679 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16680
16681 * python/py-function.c (fnpy_call): Reorder declarations to have
16682 the gdbpy_enter object declared first.
16683 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
16684
16685 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16686
16687 PR python/21068
16688 * python/python-internal.h (PyMem_RawMalloc): Define for
16689 Python < 3.4.
16690 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
16691 PyMem_RawMalloc instead of PyMem_Malloc.
16692
16693 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
16694 Luis Machado <lgustavo@codesourcery.com>
16695
16696 * NEWS (New commands): Mention flash-erase.
16697 (New MI commands): Mention target-flash-erase.
16698 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
16699 command.
16700 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
16701 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
16702 * target.c (flash_erase_command): New function.
16703 (initialize_targets): Add new flash-erase command.
16704 * target.h (flash_erase_command): New declaration.
16705
16706 2017-01-20 Joel Brobecker <brobecker@adacore.com>
16707
16708 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
16709 HAVE_SYS_PROCFS_H is defined.
16710
16711 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16712
16713 * remote.c (struct cached_reg): Change data into a pointer.
16714 * (stop_reply_dtr): Free data pointers before deleting vector.
16715 (process_stop_reply): Likewise.
16716 (remote_parse_stop_reply): Allocate space for data
16717
16718 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16719
16720 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
16721 MAX_REGISTER_SIZE.
16722 (amd64_pseudo_register_read_value): Likewise.
16723 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
16724 (store_register_using_P): Likewise.
16725 * regcache.c (regcache_xfer_part): Likewise.
16726
16727 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
16728
16729 Split real and pseudo registers.
16730 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
16731 (sparc32_pseudo_regnum): New enum.
16732 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
16733 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
16734 (SPARC32_CP0_REGISTERS): New macro.
16735 (sparc32_pseudo_register_name): New function.
16736 (sparc32_register_name): Use sparc32_pseudo_register_name.
16737 (sparc32_pseudo_register_type): New function.
16738 (sparc32_register_type): Use sparc32_pseudo_register_type.
16739 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
16740 pseudo register numbers.
16741 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
16742 (SPARC64_CP0_REGISTERS): New macro.
16743 (sparc64_pseudo_register_name): New function.
16744 (sparc64_register_name): Use sparc64_pseudo_register_name.
16745 (sparc64_pseudo_register_type): New function.
16746 (sparc64_register_type): Use sparc64_pseudo_register_type.
16747 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
16748 pseudo register numbers.
16749 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
16750 sparc64_store_arguments): Handle pseudo register numbers.
16751
16752 2017-01-13 Yao Qi <yao.qi@linaro.org>
16753
16754 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
16755 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
16756 output.
16757 (getpkt_or_notif_sane_1): Likewise.
16758
16759 2017-01-13 Yao Qi <yao.qi@linaro.org>
16760
16761 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
16762 of CC. Pass "-x c++-header" instead of "-x c".
16763
16764 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16765
16766 * remote.c (remote_can_async_p): Update comment.
16767
16768 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16769
16770 * linux-nat.c (linux_nat_can_async_p): Update comment.
16771
16772 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16773
16774 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
16775
16776 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
16777
16778 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
16779
16780 2017-01-10 Tom Tromey <tom@tromey.com>
16781
16782 * python/py-type.c (typy_legacy_template_argument): Update.
16783 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
16784 ~demangle_parse_info): Declare new members.
16785 (cp_demangled_name_to_comp): Return unique_ptr.
16786 (cp_demangled_name_parse_free)
16787 (make_cleanup_cp_demangled_name_parse_free)
16788 (cp_new_demangle_parse_info): Remove.
16789 * cp-support.c (do_demangled_name_parse_free_cleanup)
16790 (make_cleanup_cp_demangled_name_parse_free): Remove.
16791 (inspect_type, cp_canonicalize_string_full)
16792 (cp_canonicalize_string): Update.
16793 (mangled_name_to_comp): Change return type.
16794 (cp_class_name_from_physname, method_name_from_physname)
16795 (cp_func_name, cp_remove_params): Update.
16796 * cp-name-parser.y (demangle_parse_info): New constructor, from
16797 cp_new_demangle_parse_info.
16798 (~demangle_parse_info): New destructor, from
16799 cp_demangled_name_parse_free.
16800 (cp_merge_demangle_parse_infos): Update.
16801 (cp_demangled_name_to_comp): Change return type.
16802
16803 2017-01-10 Tom Tromey <tom@tromey.com>
16804
16805 * top.c (prevent_dont_repeat): Change return type.
16806 * python/python.c (execute_gdb_command): Use std::string.
16807 Update.
16808 * guile/guile.c (gdbscm_execute_gdb_command): Update.
16809 * command.h (prevent_dont_repeat): Change return type.
16810 * breakpoint.c (bpstat_do_actions_1): Update.
16811
16812 2017-01-10 Tom Tromey <tom@tromey.com>
16813
16814 * value.h (scoped_value_mark::~scoped_value_mark): Call
16815 free_to_mark.
16816 (scoped_value_mark::free_to_mark): New method.
16817 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
16818 scoped_value_mark.
16819
16820 2017-01-10 Tom Tromey <tom@tromey.com>
16821
16822 * python/py-value.c (valpy_dereference, valpy_referenced_value)
16823 (valpy_reference_value, valpy_const_value, valpy_get_address)
16824 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
16825 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
16826 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
16827 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
16828 scoped_value_mark.
16829 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
16830 * value.h (scoped_value_mark): New class.
16831
16832 2017-01-10 Tom Tromey <tom@tromey.com>
16833
16834 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
16835 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
16836 * psymtab.c (discard_psymtabs_upto): Remove.
16837 (make_cleanup_discard_psymtabs): Remove.
16838 (struct psymtab_state): Remove.
16839
16840 2017-01-10 Tom Tromey <tom@tromey.com>
16841
16842 * record-full.c (record_full_save_cleanups): Remove.
16843 (record_full_save): Use gdb::unlinker.
16844 * gcore.c (do_bfd_delete_cleanup): Remove.
16845 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
16846 cleanups.
16847 * dwarf2read.c (unlink_if_set): Remove.
16848 (write_psymtabs_to_index): Use gdb::unlinker.
16849 * common/gdb_unlinker.h: New file.
16850
16851 2017-01-10 Tom Tromey <tom@tromey.com>
16852
16853 * windows-tdep.c (windows_xfer_shared_library): Update.
16854 * windows-nat.c (windows_make_so): Update.
16855 * utils.h (make_cleanup_bfd_unref): Remove.
16856 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
16857 * symfile.h (symfile_bfd_open)
16858 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
16859 * symfile.c (read_symbols, symbol_file_add)
16860 (separate_debug_file_exists): Update.
16861 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
16862 (generic_load, reread_symbols): Update.
16863 * symfile-mem.c (symbol_file_add_from_memory): Update.
16864 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
16865 (spu_symbol_file_add_from_memory): Update.
16866 * solist.h (struct target_so_ops) <bfd_open>: Return
16867 gdb_bfd_ref_ptr.
16868 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
16869 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
16870 gdb_bfd_ref_ptr.
16871 (solib_map_sections, reload_shared_libraries_1): Update.
16872 * solib-svr4.c (enable_break): Update.
16873 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
16874 * solib-frv.c (enable_break2): Update.
16875 * solib-dsbt.c (enable_break): Update.
16876 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
16877 gdb_bfd_ref_ptr.
16878 (darwin_solib_get_all_image_info_addr_at_init): Update.
16879 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
16880 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
16881 * record-full.c (record_full_save): Update.
16882 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
16883 * procfs.c (insert_dbx_link_bpt_in_file): Update.
16884 * minidebug.c (find_separate_debug_file_in_section): Return
16885 gdb_bfd_ref_ptr.
16886 * machoread.c (macho_add_oso_symfile): Change abfd to
16887 gdb_bfd_ref_ptr.
16888 (macho_symfile_read_all_oso): Update.
16889 (macho_check_dsym): Return gdb_bfd_ref_ptr.
16890 (macho_symfile_read): Update.
16891 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
16892 (jit_bfd_try_read_symtab): Update.
16893 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16894 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16895 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16896 gdb_bfd_ref_ptr.
16897 (gdb_bfd_ref_policy): New struct.
16898 (gdb_bfd_ref_ptr): New typedef.
16899 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16900 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16901 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16902 gdb_bfd_ref_ptr.
16903 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16904 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16905 (gcore_command): Update.
16906 * exec.c (exec_file_attach): Update.
16907 * elfread.c (elf_symfile_read): Update.
16908 * dwarf2read.c (dwarf2_get_dwz_file): Update.
16909 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
16910 (open_and_init_dwo_file): Update.
16911 (open_dwp_file): Return gdb_bfd_ref_ptr.
16912 (open_and_init_dwp_file): Update.
16913 * corelow.c (core_open): Update.
16914 * compile/compile-object-load.c (compile_object_load): Update.
16915 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
16916 * coffread.c (coff_symfile_read): Update.
16917 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
16918 gdb_bfd_ref_ptr. Rename.
16919 (dump_bfd_file, restore_command): Update.
16920 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16921 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16922 (find_separate_debug_file_by_buildid): Update.
16923
16924 2017-01-10 Tom Tromey <tom@tromey.com>
16925
16926 * common/gdb_ref_ptr.h: New file.
16927 * python/py-ref.h (struct gdbpy_ref_policy): New.
16928 (gdbpy_ref): Now a typedef.
16929
16930 2017-01-10 Tom Tromey <tom@tromey.com>
16931
16932 * utils.h (make_cleanup_htab_delete): Don't declare.
16933 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
16934 Remove.
16935 * linespec.c (decode_compound_collector): Add constructor,
16936 destructor.
16937 (lookup_prefix_sym): Remove cleanup.
16938 (symtab_collector): Add constructor, destructor.
16939 (collect_symtabs_from_filename): Remove cleanup.
16940 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
16941 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
16942 Use htab_up.
16943 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
16944 * dwarf2read.c (dw2_expand_symtabs_matching)
16945 (dw2_map_symbol_filenames, dwarf_decode_macros)
16946 (write_psymtabs_to_index): Use htab_up.
16947 * dwarf2loc.c (func_verify_no_selftailcall)
16948 (call_site_find_chain_1, func_verify_no_selftailcall)
16949 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
16950 std::vector, gdb::unique_xmalloc_ptr.
16951 (call_sitep): Remove typedef.
16952 (dwarf2_locexpr_baton_eval): Remove unused variable.
16953
16954 2017-01-10 Tom Tromey <tom@tromey.com>
16955
16956 * python/python-internal.h (make_cleanup_py_decref)
16957 (make_cleanup_py_xdecref): Don't declare.
16958 * python/py-utils.c (py_decref, make_cleanup_py_decref)
16959 (py_xdecref, make_cleanup_py_xdecref): Remove.
16960
16961 2017-01-10 Tom Tromey <tom@tromey.com>
16962
16963 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
16964 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
16965
16966 2017-01-10 Tom Tromey <tom@tromey.com>
16967
16968 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
16969
16970 2017-01-10 Tom Tromey <tom@tromey.com>
16971
16972 * python/py-utils.c (unicode_to_encoded_string)
16973 (python_string_to_target_string)
16974 (python_string_to_target_python_string)
16975 (python_string_to_host_string, gdbpy_obj_to_string)
16976 (get_addr_from_python): Use gdbpy_ref.
16977
16978 2017-01-10 Tom Tromey <tom@tromey.com>
16979
16980 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
16981 gdbpy_ref.
16982
16983 2017-01-10 Tom Tromey <tom@tromey.com>
16984
16985 * python/python.c (eval_python_command, gdbpy_decode_line)
16986 (gdbpy_run_events, gdbpy_start_type_printers)
16987 (gdbpy_apply_type_printers): Use gdbpy_ref.
16988
16989 2017-01-10 Tom Tromey <tom@tromey.com>
16990
16991 * python/py-param.c (get_doc_string, compute_enum_values): Use
16992 gdbpy_ref.
16993
16994 2017-01-10 Tom Tromey <tom@tromey.com>
16995
16996 * python/py-inferior.c (find_thread_object, build_inferior_list):
16997 Use gdbpy_ref.
16998
16999 2017-01-10 Tom Tromey <tom@tromey.com>
17000
17001 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17002
17003 2017-01-10 Tom Tromey <tom@tromey.com>
17004
17005 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17006 gdbpy_ref.
17007
17008 2017-01-10 Tom Tromey <tom@tromey.com>
17009
17010 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17011 extra incref.
17012 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17013 Use gdbpy_ref.
17014
17015 2017-01-10 Tom Tromey <tom@tromey.com>
17016
17017 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17018 gdbpy_ref.
17019
17020 2017-01-10 Tom Tromey <tom@tromey.com>
17021
17022 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17023 decref results of PyArg_ParseTupleAndKeywords.
17024
17025 2017-01-10 Tom Tromey <tom@tromey.com>
17026
17027 * python/python.c (python_run_simple_file): Use
17028 unique_xmalloc_ptr, gdbpy_ref.
17029
17030 2017-01-10 Tom Tromey <tom@tromey.com>
17031
17032 * python/py-prettyprint.c (print_stack_unless_memory_error)
17033 (print_string_repr, print_children): Use gdbpy_ref.
17034 (dummy_python_frame): New class.
17035 (dummy_python_frame::dummy_python_frame): Rename from
17036 push_dummy_python_frame.
17037 (py_restore_tstate): Remove.
17038
17039 2017-01-10 Tom Tromey <tom@tromey.com>
17040
17041 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17042
17043 2017-01-10 Tom Tromey <tom@tromey.com>
17044
17045 * python/python.c (ensure_python_env, restore_python_env):
17046 Remove.
17047 * python/python-internal.h (ensure_python_env): Don't declare.
17048 * varobj.h (varobj_ensure_python_env): Don't declare.
17049 * varobj.c (varobj_ensure_python_env): Remove.
17050
17051 2017-01-10 Tom Tromey <tom@tromey.com>
17052
17053 * varobj.c (varobj_value_get_print_value): Use
17054 gdbpy_enter_varobj.
17055
17056 2017-01-10 Tom Tromey <tom@tromey.com>
17057
17058 * python/py-prettyprint.c (print_string_repr, print_children):
17059 Update.
17060 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17061 of "encoding".
17062 * varobj.c (varobj_value_get_print_value): Update.
17063 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17064
17065 2017-01-10 Tom Tromey <tom@tromey.com>
17066
17067 * varobj.c (varobj_get_display_hint)
17068 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17069 (varobj_set_visualizer, free_variable): Use
17070 gdbpy_enter_varobj.
17071
17072 2017-01-10 Tom Tromey <tom@tromey.com>
17073
17074 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17075 (do_finish_initialization): New function. Use gdbpy_ref.
17076 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17077 do_finish_initialization.
17078
17079 2017-01-10 Tom Tromey <tom@tromey.com>
17080
17081 * python/py-param.c (get_set_value, get_show_value): Use
17082 gdbpy_enter, gdbpy_ref.
17083
17084 2017-01-10 Tom Tromey <tom@tromey.com>
17085
17086 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17087
17088 2017-01-10 Tom Tromey <tom@tromey.com>
17089
17090 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17091
17092 2017-01-10 Tom Tromey <tom@tromey.com>
17093
17094 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17095 Use gdbpy_enter_varobj.
17096
17097 2017-01-10 Tom Tromey <tom@tromey.com>
17098
17099 * varobj.c (gdbpy_enter_varobj): New constructor.
17100 * python/python-internal.h (gdbpy_enter_varobj): New class.
17101 * python/py-varobj.c (py_varobj_get_iterator): Use
17102 gdbpy_enter_varobj.
17103
17104 2017-01-10 Tom Tromey <tom@tromey.com>
17105
17106 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17107 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17108 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17109 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17110 unique_xmalloc_ptr.
17111 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17112
17113 2017-01-10 Tom Tromey <tom@tromey.com>
17114
17115 * python/py-xmethods.c (invoke_match_method): Use
17116 gdbpy_ref.
17117
17118 2017-01-10 Tom Tromey <tom@tromey.com>
17119
17120 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17121 gdbpy_enter, gdbpy_ref.
17122
17123 2017-01-10 Tom Tromey <tom@tromey.com>
17124
17125 * python/python.c (python_interactive_command): Use gdbpy_enter.
17126
17127 2017-01-10 Tom Tromey <tom@tromey.com>
17128
17129 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17130 gdbpy_ref.
17131
17132 2017-01-10 Tom Tromey <tom@tromey.com>
17133
17134 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17135 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17136
17137 2017-01-10 Tom Tromey <tom@tromey.com>
17138
17139 * utils.h (htab_deleter): New struct.
17140 (htab_up): New typedef.
17141 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17142 gdbpy_enter, gdbpy_ref, htab_up.
17143
17144 2017-01-10 Tom Tromey <tom@tromey.com>
17145
17146 * python/py-unwind.c (pending_frame_invalidate): Remove.
17147 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17148
17149 2017-01-10 Tom Tromey <tom@tromey.com>
17150
17151 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17152 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17153
17154 2017-01-10 Tom Tromey <tom@tromey.com>
17155
17156 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17157
17158 2017-01-10 Tom Tromey <tom@tromey.com>
17159
17160 * python/python.c (gdbpy_eval_from_control_command)
17161 (gdbpy_source_script, gdbpy_run_events)
17162 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17163 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17164 gdbpy_enter.
17165
17166 2017-01-10 Tom Tromey <tom@tromey.com>
17167
17168 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17169
17170 2017-01-10 Tom Tromey <tom@tromey.com>
17171
17172 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17173
17174 2017-01-10 Tom Tromey <tom@tromey.com>
17175
17176 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17177 (python_on_inferior_call_pre, python_on_inferior_call_post)
17178 (python_on_memory_change, python_on_register_change)
17179 (python_inferior_exit, python_new_objfile, add_thread_object)
17180 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17181
17182 2017-01-10 Tom Tromey <tom@tromey.com>
17183
17184 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17185 (bpfinishpy_handle_exit): Use gdbpy_enter.
17186
17187 2017-01-10 Tom Tromey <tom@tromey.com>
17188
17189 * python/py-cmd.c (cmdpy_destroyer)
17190 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17191 gdbpy_enter.
17192
17193 2017-01-10 Tom Tromey <tom@tromey.com>
17194
17195 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17196 gdbpy_enter.
17197 (gdbpy_breakpoint_has_cond): Likewise.
17198
17199 2017-01-10 Tom Tromey <tom@tromey.com>
17200
17201 * python/python.c (gdbpy_enter): New constructor.
17202 (~gdbpy_enter): New destructor.
17203 (restore_python_env, ensure_python_env): Rewrite.
17204 * python/python-internal.h (gdbpy_enter): New class.
17205
17206 2017-01-10 Tom Tromey <tom@tromey.com>
17207
17208 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17209
17210 2017-01-10 Tom Tromey <tom@tromey.com>
17211
17212 * python/py-value.c (value_has_field, get_field_flag)
17213 (get_field_type, valpy_getitem, convert_value_from_python): Use
17214 gdbpy_ref.
17215
17216 2017-01-10 Tom Tromey <tom@tromey.com>
17217
17218 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17219 gdbpy_ref.
17220
17221 2017-01-10 Tom Tromey <tom@tromey.com>
17222
17223 * python/py-prettyprint.c (search_pp_list)
17224 (find_pretty_printer_from_objfiles)
17225 (find_pretty_printer_from_progspace)
17226 (find_pretty_printer_from_gdb, find_pretty_printer)
17227 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17228 gdbpy_ref.
17229
17230 2017-01-10 Tom Tromey <tom@tromey.com>
17231
17232 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17233
17234 2017-01-10 Tom Tromey <tom@tromey.com>
17235
17236 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17237 (ltpy_get_all_source_lines): Use gdbpy_ref.
17238
17239 2017-01-10 Tom Tromey <tom@tromey.com>
17240
17241 * python/py-framefilter.c (extract_sym, extract_value)
17242 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17243 gdbpy_ref.
17244
17245 2017-01-10 Tom Tromey <tom@tromey.com>
17246
17247 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17248
17249 2017-01-10 Tom Tromey <tom@tromey.com>
17250
17251 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17252
17253 2017-01-10 Tom Tromey <tom@tromey.com>
17254
17255 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17256 gdbpy_ref.
17257
17258 2017-01-10 Tom Tromey <tom@tromey.com>
17259
17260 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17261
17262 2017-01-10 Tom Tromey <tom@tromey.com>
17263
17264 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17265 (typy_range): Use gdbpy_ref.
17266
17267 2017-01-10 Tom Tromey <tom@tromey.com>
17268
17269 * python/py-threadevent.c (create_thread_event_object): Use
17270 gdbpy_ref.
17271 * python/py-stopevent.c (create_stop_event_object): Simplify.
17272 (emit_stop_event): Use gdbpy_ref.
17273 * python/py-signalevent.c (create_signal_event_object): Use
17274 gdbpy_ref.
17275 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17276 (emit_new_objfile_event, create_clear_objfiles_event_object)
17277 (emit_clear_objfiles_event): Use gdbpy_ref.
17278 * python/py-infevents.c (create_inferior_call_event_object)
17279 (create_register_changed_event_object)
17280 (create_memory_changed_event_object, emit_inferior_call_event)
17281 (emit_memory_changed_event, emit_register_changed_event): Use
17282 gdbpy_ref.
17283 * python/py-exitedevent.c (create_exited_event_object)
17284 (emit_exited_event): Use gdbpy_ref.
17285 * python/py-event.h (evpy_emit_event): Remove
17286 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17287 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17288 * python/py-continueevent.c (emit_continue_event): Use
17289 gdbpy_ref.
17290 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17291 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17292 gdbpy_ref.
17293 * python/py-bpevent.c (create_breakpoint_event_object): Use
17294 gdbpy_ref.
17295
17296 2017-01-10 Tom Tromey <tom@tromey.com>
17297
17298 * python/py-ref.h: New file.
17299
17300 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17301
17302 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17303 void.
17304 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17305 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17306 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17307 * ui-out.c (ui_out::redirect): Likewise.
17308 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17309 * cli/cli-logging.c (set_logging_redirect): Update call site of
17310 ui_out::redirect.
17311 (handle_redirections): Likewise.
17312 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17313 * top.c (execute_command_to_string): Likewise.
17314 * utils.c (do_ui_out_redirect_pop): Likewise.
17315
17316 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17317
17318 * stack.c (_initialize_stack): Update "frame" command help message.
17319
17320 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17321
17322 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17323
17324 2017-01-06 Yao Qi <yao.qi@linaro.org>
17325
17326 * x86-linux-nat.h: Include gdb_proc_service.h.
17327
17328 2017-01-06 Yao Qi <yao.qi@linaro.org>
17329
17330 * ser-base.h: Include serial.h.
17331
17332 2017-01-06 Yao Qi <yao.qi@linaro.org>
17333
17334 * ppc-linux-tdep.h: Include ppc-tdep.h.
17335
17336 2017-01-06 Yao Qi <yao.qi@linaro.org>
17337
17338 * nat/amd64-linux-siginfo.h: Include signal.h.
17339
17340 2017-01-06 Yao Qi <yao.qi@linaro.org>
17341
17342 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17343
17344 2017-01-06 Yao Qi <yao.qi@linaro.org>
17345
17346 * mi/mi-parse.h: Include mi-cmds.h.
17347
17348 2017-01-06 Yao Qi <yao.qi@linaro.org>
17349
17350 * inf-loop.c: Don't include "target.h".
17351 * inf-loop.h: Include it here.
17352
17353 2017-01-06 Yao Qi <yao.qi@linaro.org>
17354
17355 * dfp.h: Include "dboulest.h" and "expression.h".
17356
17357 2017-01-06 Yao Qi <yao.qi@linaro.org>
17358
17359 * ax-gdb.h: Include "ax.h".
17360
17361 2017-01-06 Yao Qi <yao.qi@linaro.org>
17362
17363 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17364 with nat/gdb_ptrace.h.
17365
17366 2017-01-05 Yao Qi <yao.qi@linaro.org>
17367
17368 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17369 new line.
17370 (mips64_fbsd_sigframe_init): Likewise.
17371
17372 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17373
17374 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17375 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17376
17377 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17378
17379 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17380 * NEWS: Mention new FreeBSD/mips native configuration.
17381 * config/mips/fbsd.mh: New file.
17382 * configure.host: Add mips*-*-freebsd*.
17383 * mips-fbsd-nat.c: New file.
17384
17385 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17386
17387 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17388 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17389 * NEWS: Mention new FreeBSD/mips target.
17390 * configure.tgt: Add mips*-*-freebsd*.
17391 * mips-fbsd-tdep.c: New file.
17392 * mips-fbsd-tdep.h: New file.
17393
17394 2017-01-04 Yao Qi <yao.qi@linaro.org>
17395
17396 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17397 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17398
17399 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17400
17401 Update copyright year range in all GDB files.
17402
17403 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17404
17405 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
17406
17407 For older changes see ChangeLog-2016.
17408 \f
17409 Local Variables:
17410 mode: change-log
17411 left-margin: 8
17412 fill-column: 74
17413 version-control: never
17414 coding: utf-8
17415 End:
This page took 0.445614 seconds and 4 git commands to generate.