Make '{add-,}symbol-file' not care about the position of command line arguments
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 * symfile.c (symbol_file_command): Call
4 'symbol_file_add_main_1' only after processing all command
5 line options.
6 (add_symbol_file_command): Modify logic to make arguments
7 position-independent.
8
9 2017-12-01 Joel Brobecker <brobecker@adacore.com>
10
11 * ada-lang.c (symbol_list_obstack): Delete.
12 (resolve_subexp): Make sure "candidates" gets xfree'ed.
13 (ada_lookup_symbol_list_worker): Remove the limitation that
14 the result is only good until the next call, now making it
15 the responsibility of the caller to free the result when no
16 longer needed. Adjust the function's intro comment accordingly.
17 (ada_lookup_symbol_list): Adjust the function's intro comment.
18 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
19 (ada_lookup_encoded_symbol, get_var_value): Likewise.
20 (_initialize_ada_language): Remove symbol_list_obstack
21 initialization.
22 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
23 (write_var_or_type, write_name_assoc): Likewise.
24
25 2017-12-01 Tom Tromey <tom@tromey.com>
26
27 * Makefile.in (all_deps_files): New variable.
28 Include .Po files using all_deps_files.
29
30 2017-12-01 Joel Brobecker <brobecker@adacore.com>
31
32 * MAINTAINERS: Update list of maintainers, moving those who
33 stepped down or became inactive to the "Past Maintainers"
34 section.
35
36 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37
38 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
39 sys/proc.h.
40 (NEW_PROC_API): Remove.
41 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
42 Likewise.
43 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
44 * configure: Regenerate.
45 * config.in: Regenerate.
46 * gdbserver/configure: Regenerate.
47 * gdbserver/config.in: Regenerate.
48
49 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
50 NEW_PROC_API test.
51 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
52
53 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
54
55 * proc-api.c: Remove !NEW_PROC_API support.
56 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
57 Remove tests for macros always defined on Solaris.
58 * proc-events.c: Remove !NEW_PROC_API support.
59 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
60 HAVE_SYS_USER_H tests.
61 (init_syscall_table): Remove non-Solaris syscalls.
62 Remove tests for syscalls present on all Solaris versions.
63 Add missing Solaris 10+ syscalls.
64 (signal_table): Remove non-Solaris signals.
65 Remove tests for signals present on all Solaris versions.
66 (fault_table): Remove non-Solaris faults.
67 Remove tests for faults present on all Solaris versions.
68 * proc-flags.c: Remove !NEW_PROC_API support.
69 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
70 Remove non-Solaris flags.
71 * proc-why.c: Remove !NEW_PROC_API support.
72 (pr_why_table): Remove meaningless comments.
73 Remove tests for reasons present on all Solaris versions.
74 Remove OSF/1 cases.
75 (proc_prettyfprint_why): Likewise.
76
77 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
78 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
79 Remove WA_READ test, IRIX watchpoint support.
80 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
81 types. Change users.
82 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
83 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
84 Change callers.
85 Remove CTL_PROC_NAME_FMT tests.
86 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
87 users.
88 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
89 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
90 (proc_modify_flag): Replace GDBRESET by PCUNSET.
91 Remove PR_ASYNC, PR_KLC tests.
92 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
93 (proc_parent_pid): Remove PCWATCH etc. tests.
94 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
95 Remove PCAGENT test.
96 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
97 Remove SYS_lwpcreate || SYS_lwp_create test.
98 (proc_get_current_thread): Likewise.
99 [PIOCNTHR && PIOCTLIST]: Remove.
100 [PIOCLSTATUS]: Remove.
101 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
102 [PRFS_STOPEXEC]: Remove.
103 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
104 (syscall_is_exit): Likewise.
105 (syscall_is_exec): Likewise.
106 (syscall_is_lwp_create): Likewise.
107 Remove SYS_syssgi support.
108 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
109 [SYS_syssgi]: Remove.
110 Remove non-Solaris cases, conditionals.
111 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
112 Remove.
113 (procfs_init_inferior) [SYS_syssgi]: Remove.
114 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
115 (procfs_inferior_created) [SYS_syssgi]: Remove.
116 (procfs_set_watchpoint): Remove !AIX5 test.
117 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
118 case.
119 (mappingflags) [MA_PHYS]: Remove.
120 (info_mappings_callback): Remove PCAGENT test.
121 Remove PIOCOPENLWP || PCAGENT test.
122
123 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
124
125 * sol-thread.c (info_solthreads): Constify args.
126 Cast args to void *.
127
128 2017-11-29 John Baldwin <jhb@FreeBSD.org>
129
130 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
131
132 2017-11-29 Joel Brobecker <brobecker@adacore.com>
133
134 * ada-lang.c (to_fixed_range_type): Make sure that the size
135 of the range type being returned is the same as the size
136 of the range type being fixed.
137
138 2017-11-29 Pedro Alves <palves@redhat.com>
139
140 PR c++/19436
141 * NEWS: Mention setting breakpoints on functions with C++ ABI
142 tags.
143 * completer.h (completion_match_for_lcd) <match,
144 mark_ignored_range>: New methods.
145 <finish>: Consider ignored ranges.
146 <clear>: Clear ignored ranges.
147 <m_ignored_ranges, m_finished_storage>: New fields.
148 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
149 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
150 completion_match_for_lcd pointer to strncmp_iw_with_mode.
151 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
152 * language.c (default_symbol_name_matcher): Pass the
153 completion_match_for_lcd pointer to strncmp_iw_with_mode.
154 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
155 * utils.c (skip_abi_tag): New function.
156 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
157 Handle ABI tags.
158 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
159 parameter.
160
161 2017-11-29 Pedro Alves <palves@redhat.com>
162
163 PR c++/19436
164 * NEWS: Mention setting breakpoints on functions with C++ ABI
165 tags.
166 * completer.h (completion_match_for_lcd) <match,
167 mark_ignored_range>: New methods.
168 <finish>: Consider ignored ranges.
169 <clear>: Clear ignored ranges.
170 <m_ignored_ranges, m_finished_storage>: New fields.
171 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
172 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
173 completion_match_for_lcd pointer to strncmp_iw_with_mode.
174 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
175 * language.c (default_symbol_name_matcher): Pass the
176 completion_match_for_lcd pointer to strncmp_iw_with_mode.
177 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
178 * utils.c (skip_abi_tag): New function.
179 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
180 Handle ABI tags.
181 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
182 parameter.
183
184 2017-11-29 Pedro Alves <palves@redhat.com>
185
186 * NEWS: Mention that breakpoints on C++ functions are now set on
187 on all namespaces/classes by default, and mention "break
188 -qualified".
189 * ax-gdb.c (agent_command_1): Adjust to pass a
190 symbol_name_match_type to new_linespec_location.
191 * breakpoint.c (parse_breakpoint_sals): Adjust to
192 get_linespec_location's return type change.
193 (strace_marker_create_sals_from_location): Adjust to pass a
194 symbol_name_match_type to new_linespec_location.
195 (strace_marker_decode_location): Adjust to get_linespec_location's
196 return type change.
197 (strace_command): Adjust to pass a symbol_name_match_type to
198 new_linespec_location.
199 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
200 mention "-qualified".
201 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
202 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
203 enumerator.
204 (complete_address_and_linespec_locations): New parameter
205 'match_type'. Pass it down.
206 (explicit_options): Add "-qualified".
207 (collect_explicit_location_matches): Pass the requested match type
208 to the linespec completers. Handle MATCH_QUALIFIED.
209 (location_completer): Handle "-qualified" combined with linespecs.
210 * cp-support.c (cp_search_name_hash): New.
211 (cp_symbol_name_matches_1): Implement wild matching for C++.
212 (cp_fq_symbol_name_matches): Reimplement.
213 (cp_get_symbol_name_matcher): Return different matchers depending
214 on the lookup name's match type.
215 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
216 * cp-support.h (cp_search_name_hash): New declaration.
217 * dwarf2read.c
218 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
219 symbols.
220 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
221 tests.
222 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
223 pass a symbol_name_match_type to new_linespec_location.
224 * linespec.c (linespec_parse_basic): Lookup function symbols using
225 the parser's symbol name match type.
226 (convert_explicit_location_to_linespec): New
227 symbol_name_match_type parameter. Pass it down to
228 find_linespec_symbols.
229 (convert_explicit_location_to_sals): Pass the location's name
230 match type to convert_explicit_location_to_linespec.
231 (parse_linespec): New match_type parameter. Save it in the
232 parser.
233 (linespec_parser_new): Default to symbol_name_match_type::WILD.
234 (linespec_complete_function): New symbol_name_match_type
235 parameter. Use it.
236 (complete_linespec_component): Pass down the parser's recorded
237 name match type.
238 (linespec_complete_label): New symbol_name_match_type parameter.
239 Use it.
240 (linespec_complete): New symbol_name_match_type parameter. Save
241 it in the parser and pass it down. Adjust to
242 get_linespec_location's prototype change.
243 (find_function_symbols, find_linespec_symbols): New
244 symbol_name_match_type parameter. Pass it down instead of
245 assuming symbol_name_match_type::WILD.
246 * linespec.h (linespec_complete, linespec_complete_function)
247 (linespec_complete_label): New symbol_name_match_type parameter.
248 * location.c (event_location::linespec_location): Now a struct
249 linespec_location.
250 (EL_LINESPEC): Adjust.
251 (initialize_explicit_location): Default to
252 symbol_name_match_type::WILD.
253 (new_linespec_location): New symbol_name_match_type parameter.
254 Record it in the location.
255 (get_linespec_location): Now returns a struct linespec_location.
256 (new_explicit_location): Also copy func_name_match_type.
257 (explicit_to_string_internal)
258 (string_to_explicit_location): Handle "-qualified".
259 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
260 Copy symbol_name_match_type fields.
261 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
262 type change.
263 (event_location_to_string): Adjust to LINESPEC_LOCATION type
264 change. Handle "-qualfied".
265 (string_to_explicit_location): Handle "-qualified".
266 (string_to_event_location_basic): New symbol_name_match_type
267 parameter. Pass it down.
268 (string_to_event_location): Handle "-qualified".
269 * location.h (struct linespec_location): New.
270 (explicit_location::func_name_match_type): New field.
271 (new_linespec_location): Now returns a const linespec_location *.
272 (string_to_event_location_basic): New symbol_name_match_type
273 parameter.
274 (explicit_completion_info::saw_explicit_location_option): New
275 field.
276 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
277 symbol_name_match_type to new_linespec_location.
278 * python/py-breakpoint.c (bppy_init): Likewise.
279 * python/python.c (gdbpy_decode_line): Likewise.
280
281 2017-11-29 Pedro Alves <palves@redhat.com>
282
283 * ada-lang.c (ada_lookup_name_info::matches): Change type of
284 parameter from completion_match to completion_match_result.
285 Adjust.
286 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
287 * completer.c (completion_tracker::maybe_add_completion): Add
288 match_for_lcd parameter and use it.
289 (completion_tracker::add_completion): Likewise.
290 * completer.h (class completion_match_for_lcd): New class.
291 (completion_match_result::match_for_lcd): New field.
292 (completion_match_result::set_match): New method.
293 (completion_tracker): Add comments.
294 (completion_tracker::add_completion): Add match_for_lcd parameter.
295 (completion_tracker::reset_completion_match_result): Reset
296 match_for_lcd too.
297 (completion_tracker::maybe_add_completion): Add match_for_lcd
298 parameter.
299 (completion_tracker::m_lowest_common_denominator_unique): Extend
300 comments.
301 * cp-support.c (cp_symbol_name_matches_1)
302 (cp_fq_symbol_name_matches): Change type of parameter from
303 completion_match to completion_match_result. Adjust.
304 * language.c (default_symbol_name_matcher): Change type of
305 parameter from completion_match to completion_match_result.
306 Adjust.
307 * language.h (completion_match_for_lcd): Forward declare.
308 (default_symbol_name_matcher): Change type of parameter from
309 completion_match to completion_match_result.
310 * symtab.c (compare_symbol_name): Adjust.
311 (completion_list_add_name): Pass the match_for_lcd to the tracker.
312 * symtab.h (ada_lookup_name_info::matches): Change type of
313 parameter from completion_match to completion_match_result.
314 (symbol_name_matcher_ftype): Likewise, and update comments.
315
316 2017-11-29 Pedro Alves <palves@redhat.com>
317
318 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
319 * minsyms.c (msymbol_is_text): Delete.
320 (msymbol_is_function): New function.
321 * minsyms.h (msymbol_is_text): Delete.
322 (msymbol_is_function): New declaration.
323 * symtab.c (find_function_alias_target): Use msymbol_is_function.
324
325 2017-11-29 Tom Tromey <tom@tromey.com>
326
327 * Makefile.in (distclean): Handle the case where rmdir fails.
328
329 2017-11-29 Tom Tromey <tom@tromey.com>
330
331 * symfile.c (_initialize_symfile): Update usage text for
332 add-symbol-file, symbol-file, load.
333
334 2017-11-29 Tom Tromey <tom@tromey.com>
335
336 * symfile.c (add_symbol_file_command): Error if some arguments to
337 -s are missing. Change unrecognized-argument error message.
338 (_initialize_symfile): Fix usage text for add-symbol-file.
339
340 2017-11-27 Tom Tromey <tom@tromey.com>
341
342 * Makefile.in (REMOTE_OBS): Remove.
343 (SFILES): Remove remote sources.
344 (COMMON_SFILES): Add remote sources.
345 (ALLDEPFILES): Remove dcache.c.
346
347 2017-11-27 Tom Tromey <tom@tromey.com>
348
349 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
350 variables.
351 (SFILES): Use SUBDIR_TARGET_SRCS.
352 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
353 (CONFIG_SRC_SUBDIR): Add target.
354 (%.o): Remove target rule.
355
356 2017-11-27 Tom Tromey <tom@tromey.com>
357
358 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
359 registry.o, thread-fsm.o, debug.o.
360 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
361 thread-fsm.c, debug.c.
362
363 2017-11-27 Tom Tromey <tom@tromey.com>
364
365 * Makefile.in (COMMON_SFILES): New.
366 (SFILES): Move some entries to COMMON_SFILES.
367 (COMMON_OBS): Use COMMON_SFILES.
368
369 2017-11-27 Tom Tromey <tom@tromey.com>
370
371 * Makefile.in (YYFILES): Update comment.
372 (YYOBJ): Redefine.
373
374 2017-11-27 Tom Tromey <tom@tromey.com>
375
376 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
377 (CONFIG_SRC_SUBDIR): Add python.
378 (%.o): Remove python rule.
379 (python/%.o): New rule.
380 * configure: Rebuild.
381 * configure.ac (CONFIG_OBS): Refer to python/python.o
382
383 2017-11-27 Tom Tromey <tom@tromey.com>
384
385 * configure: Rebuild.
386 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
387 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
388 (CONFIG_SRC_SUBDIR): Add guile.
389 (%.o): Remove guile rule.
390
391 2017-11-27 Tom Tromey <tom@tromey.com>
392
393 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
394 (%.o): Remove unittests rule.
395 (CONFIG_SRC_SUBDIR): Add unittests.
396
397 2017-11-27 Tom Tromey <tom@tromey.com>
398
399 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
400 (CONFIG_SRC_SUBDIR): Add tui.
401 (%.o): Remove tui rule.
402
403 2017-11-27 Tom Tromey <tom@tromey.com>
404
405 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
406 (%.o): Remove compile rule.
407 (CONFIG_SRC_SUBDIR): Add compile.
408
409 2017-11-27 Tom Tromey <tom@tromey.com>
410
411 * Makefile.in (SUBDIR_MI_OBS): Redefine.
412 (%.o): Remove mi rule.
413 (CONFIG_SRC_SUBDIR): Add mi.
414 (COMMON_OBS): Use mi/mi-common.o
415
416 2017-11-27 Tom Tromey <tom@tromey.com>
417
418 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
419 (%.o): Remove cli rule.
420 (CONFIG_SRC_SUBDIR): Add cli.
421
422 2017-11-27 Tom Tromey <tom@tromey.com>
423
424 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
425 * configure: Rebuild.
426 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
427 (CONFIG_DEP_SUBDIR): New variable.
428 (%.o): Add order-only dependency.
429 ($(CONFIG_DEP_SUBDIR)): New target.
430
431 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
432
433 PR gdb/21945
434 * findcmd.c (_initialize_mem_search): Update find command help
435 text.
436
437 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
438
439 * python/python.c (do_start_initialization): Change progname
440 type to gdb::unique_xmalloc_ptr. Release the pointer when using
441 Python 2.
442
443 2017-11-26 Tom Tromey <tom@tromey.com>
444
445 * common/format.h: Add include guards.
446
447 2017-11-26 Tom Tromey <tom@tromey.com>
448
449 * nat/linux-personality.h (class
450 maybe_disable_address_space_randomization): New class.
451 (maybe_disable_address_space_randomization): Don't declare
452 function.
453 * nat/linux-personality.c (restore_personality)
454 (make_disable_asr_cleanup): Remove.
455 (maybe_disable_address_space_randomization): Now a constructor.
456 (~maybe_disable_address_space_randomization): New destructor.
457 * linux-nat.c (linux_nat_create_inferior): Update.
458
459 2017-11-26 Tom Tromey <tom@tromey.com>
460
461 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
462
463 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
464
465 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
466 "cooked" register. Access only first four bytes of branch target
467 registers.
468
469 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
470
471 PR gdb/22491
472 * stap-probe.c (relocate_address): New function.
473 (stap_probe::get_relocated_address): Use 'relocate_address'.
474 (stap_probe::set_semaphore): Use 'relocate_address' and pass
475 'm_sem_addr'.
476 (stap_probe::clear_semaphore): Likewise.
477
478 2017-11-25 Pedro Alves <palves@redhat.com>
479
480 * dictionary.c: Include "safe-ctype.h".
481 * minsyms.c: Include "safe-ctype.h".
482 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
483
484 2017-11-25 Pedro Alves <palves@redhat.com>
485
486 * completer.c (complete_line_internal_1): Skip spaces until the
487 start of the command.
488
489 2017-11-24 Pedro Alves <palves@redhat.com>
490
491 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
492 cp_fq_symbol_name_matches. Pass language_cplus to
493 strncmp_with_mode.
494 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
495 (selftests::test_cp_symbol_name_cmp): New.
496 (_initialize_cp_support): Register "cp_symbol_name_matches"
497 selftests.
498 * language.c (default_symbol_name_matcher): Pass language_minimal
499 to strncmp_iw_with_mode.
500 * utils.c: Include "cp-support.h" and <algorithm>.
501 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
502 (cp_is_operator): New functions.
503 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
504 skip whitespace in the symbol name when the lookup name doesn't
505 have spaces, and vice versa.
506 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
507 * utils.h (strncmp_iw_with_mode): Add language parameter.
508
509 2017-11-24 Joel Brobecker <brobecker@adacore.com>
510
511 * ada-lang.c (ada_exception_message_1, ada_exception_message):
512 New functions.
513 (print_it_exception): If available, display the exception
514 message as well.
515 * NEWS: Document new feature.
516
517 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
518
519 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
520
521 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
522
523 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
524 (dtrace_probe::is_enabled, dtrace_probe::enable)
525 (dtrace_probe::disable): Remove keyword 'struct' at for-range
526 variable
527 * probe.c (gen_ui_out_table_header_info)
528 (print_ui_out_not_applicables): Remove keyword 'struct' at
529 for-range variable
530
531 2017-11-24 Alan Hayward <alan.hayward@arm.com>
532
533 * configure.tgt: Add arch/aarch64.o
534
535 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
536
537 * common/common-utils.h: Include poison.h.
538 (xfree): Remove declaration, add definition with static_assert.
539 * common/common-utils.c (xfree): Remove.
540 * common/poison.h (IsMallocatable): Define.
541 (IsFreeable): Define.
542 (free): Delete for non-freeable types.
543 (xnew): New.
544 (XNEW): Undef and redefine.
545 (xcnew): New.
546 (XCNEW): Undef and redefine.
547 (xdelete): New.
548 (XDELETE): Undef and redefine.
549 (xnewvec): New.
550 (XNEWVEC): Undef and redefine.
551 (xcnewvec): New.
552 (XCNEWVEC): Undef and redefine.
553 (xresizevec): New.
554 (XRESIZEVEC): Undef and redefine.
555 (xdeletevec): New.
556 (XDELETEVEC): Undef and redefine.
557 (xnewvar): New.
558 (XNEWVAR): Undef and redefine.
559 (xcnewvar): New.
560 (XCNEWVAR): Undef and redefine.
561 (xresizevar): New.
562 (XRESIZEVAR): Undef and redefine.
563
564 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
565
566 * gdbthread.h (private_thread_info): Define structure type, add
567 virtual pure destructor.
568 (thread_info) <priv>: Change type to unique_ptr.
569 <private_dtor>: Remove.
570 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
571 (private_thread_info::~private_thread_info): Provide default
572 implementation.
573 (thread_info::~thread_info): Don't call private_dtor nor
574 manually free priv.
575 * aix-thread.c (private_thread_info): Rename to ...
576 (aix_thread_info): ... this.
577 (get_aix_thread_info): New.
578 (sync_threadlists): Adjust.
579 (iter_tid): Adjust.
580 (aix_thread_resume): Adjust.
581 (aix_thread_fetch_registers): Adjust.
582 (aix_thread_store_registers): Adjust.
583 (aix_thread_extra_thread_info): Adjust.
584 * darwin-nat.h (private_thread_info): Rename to ...
585 (darwin_thread_info): ... this.
586 (get_darwin_thread_info): New.
587 * darwin-nat.c (darwin_init_thread_list): Adjust.
588 (darwin_check_new_threads): Adjust.
589 (thread_info_from_private_thread_info): Adjust.
590 * linux-thread-db.c (private_thread_info): Rename to ...
591 (thread_db_thread_info): ... this, initialize fields.
592 (get_thread_db_thread_info): New.
593 <dying>: Change type to bool.
594 (update_thread_state): Adjust to type rename.
595 (record_thread): Adjust to type rename an use of unique_ptr.
596 (thread_db_pid_to_str): Likewise.
597 (thread_db_extra_thread_info): Likewise.
598 (thread_db_thread_handle_to_thread_info): Likewise.
599 (thread_db_get_thread_local_address): Likewise.
600 * nto-tdep.h (private_thread_info): Rename to ...
601 (nto_thread_info): ... this, initialize fields.
602 (get_nto_thread_info): New.
603 <name>: Change type to std::string.
604 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
605 use of unique_ptr.
606 * nto-procfs.c (update_thread_private_data_name): Adjust to
607 std::string change, allocate nto_private_thread_info with new.
608 (update_thread_private_data): Adjust to unique_ptr.
609 * remote.c (private_thread_info): Rename to ...
610 (remote_thread_info): ... this, initialize data members with
611 default values.
612 <extra, name>: Change type to std::string.
613 <thread_handle>: Change type to non-pointer.
614 (free_private_thread_info): Remove.
615 (get_private_info_thread): Rename to...
616 (get_remote_thread_info): ... this, change return type, adjust to
617 use of unique_ptr, use remote_thread_info constructor.
618 (remote_add_thread): Adjust.
619 (get_private_info_ptid): Rename to...
620 (get_remote_thread_info): ...this, change return type.
621 (remote_thread_name): Use get_remote_thread_info, adjust to
622 change to std::string.
623 (struct thread_item) <~thread_item>: Remove.
624 <thread_handle>: Make non pointer.
625 (start_thread): Adjust to thread_item::thread_handle type
626 change.
627 (remote_update_thread_list): Adjust to type name change, move
628 strings from temporary to long-lived object instead of
629 duplicating.
630 (remote_threads_extra_info): Use get_remote_thread_info.
631 (process_initial_stop_replies): Likewise.
632 (resume_clear_thread_private_info): Likewise.
633 (remote_resume): Adjust to type name change.
634 (remote_commit_resume): Use get_remote_thread_info.
635 (process_stop_reply): Adjust to type name change.
636 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
637 (remote_stopped_by_hw_breakpoint): Likewise.
638 (remote_stopped_by_watchpoint): Likewise.
639 (remote_stopped_data_address): Likewise.
640 (remote_core_of_thread): Likewise.
641 (remote_thread_handle_to_thread_info): Use
642 get_private_info_thread, adjust to thread_handle field type
643 change.
644
645 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
646
647 * remote.c (struct thread_item): Add constructor, disable copy
648 construction and copy assignment, define default move
649 construction and move assignment.
650 <extra, name>: Change type to std::string.
651 <core>: Initialize.
652 <thread_handle>: Make non-pointer.
653 (thread_item_t): Remove typedef.
654 (DEF_VEC_O(thread_item_t)): Remove.
655 (threads_listing_context) <contains_thread>: New method.
656 <remove_thread>: New method.
657 <items>: Change type to std::vector.
658 (clear_threads_listing_context): Remove.
659 (threads_listing_context_remove): Remove.
660 (remote_newthread_step): Use thread_item constructor, adjust to
661 change to std::vector.
662 (start_thread): Use thread_item constructor, adjust to change to
663 std::vector.
664 (end_thread): Adjust to change to std::vector and std::string.
665 (remote_get_threads_with_qthreadinfo): Use thread_item
666 constructor, adjust to std::vector.
667 (remote_update_thread_list): Adjust to change to std::vector and
668 std::string, use threads_listing_context methods.
669 (remove_child_of_pending_fork): Adjust.
670 (remove_new_fork_children): Adjust.
671 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
672 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
673 * unittests/rsp-low-selftests.c: New file.
674 * common/rsp-low.h: Include common/byte-vector.h.
675 (hex2bin): New overload.
676 * common/rsp-low.c (hex2bin): New overload.
677
678 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
679
680 * inferior.h (private_inferior): Define structure type, add
681 virtual pure destructor.
682 (inferior) <priv>: Change type to unique_ptr.
683 * inferior.c (private_inferior::~private_inferior): Provide
684 default implementation.
685 (inferior::~inferior): Don't free priv field.
686 (exit_inferior_1): Likewise.
687 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
688 (darwin_exception_info): Remove typedef.
689 (DEF_VEC_O (darwin_thread_t)); Remove.
690 (private_inferior): Rename to ...
691 (darwin_private_inferior): ... this, extend private_inferior.
692 (get_darwin_inferior): New.
693 <threads>: Change type to std::vector of darwin_thread_t pointers.
694 * darwin-nat.c (darwin_check_new_threads): Adjust.
695 (find_inferior_task_it): Adjust.
696 (darwin_find_thread); Adjust.
697 (darwin_suspend_inferior): Adjust.
698 (darwin_resume_inferior): Adjust.
699 (darwin_find_new_inferior): Adjust.
700 (darwin_decode_notify_message): Adjust.
701 (darwin_send_reply): Adjust.
702 (darwin_resume_inferior_threads): Adjust.
703 (darwin_suspend_inferior_threads): Adjust.
704 (darwin_decode_message): Adjust.
705 (darwin_wait): Adjust.
706 (darwin_interrupt): Adjust.
707 (darwin_deallocate_threads): Adjust.
708 (darwin_mourn_inferior): Adjust, don't free private data.
709 (darwin_reply_to_all_pending_messages): Adjust.
710 (darwin_stop_inferior): Adjust.
711 (darwin_setup_exceptions): Adjust.
712 (darwin_kill_inferior): Adjust.
713 (darwin_setup_request_notification): Adjust.
714 (darwin_attach_pid): Adjust.
715 (darwin_init_thread_list): Adjust.
716 (darwin_setup_fake_stop_event): Adjust.
717 (darwin_attach): Adjust.
718 (darwin_detach): Adjust.
719 (darwin_xfer_partial): Adjust.
720 (set_enable_mach_exceptions): Adjust.
721 (darwin_pid_to_exec_file): Adjust.
722 (darwin_get_ada_task_ptid): Adjust.
723 * darwin-nat-info.c (get_task_from_args): Adjust.
724 (info_mach_ports_command): Adjust.
725 (info_mach_region_command): Adjust.
726 (info_mach_exceptions_command): Adjust.
727 * remote.c (private_inferior): Rename to ...
728 (remote_private_inferior): ... this, initialize fields.
729 (get_remote_inferior); New.
730 (remote_commit_resume): Use get_remote_inferior.
731 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
732
733 2017-11-24 Pedro Alves <palves@redhat.com>
734
735 * NEWS: Mention linespecs and explicit locations, and completion
736 improvements.
737
738 2017-11-24 Yao Qi <yao.qi@linaro.org>
739
740 * regcache.c (regcache::dump): Remove footnote_register_size.
741
742 2017-11-24 Yao Qi <yao.qi@linaro.org>
743
744 * regcache.c (cooked_read_test): Add more test for readonly
745 regcache.
746
747 2017-11-24 Yao Qi <yao.qi@linaro.org>
748
749 * gdbarch-selftests.c (test_target_has_registers): Move it to
750 target.c.
751 (test_target_has_stack): Likewise.
752 (test_target_has_memory): Likewise.
753 (test_target_prepare_to_store): Likewise.
754 (test_target_store_registers): Likewise.
755 (test_target_ops): Likewise.
756 * regcache.c: Include selftest-arch.h and gdbthread.h.
757 (target_ops_no_register): New class.
758 (test_target_fetch_registers): New.
759 (test_target_store_registers): New.
760 (test_target_xfer_partial): New.
761 (readwrite_regcache): New.
762 (cooked_read_test): New.
763 (_initialize_regcache): Register the test.
764 * target.c: (test_target_has_registers): Moved from
765 gdbarch-selftests.c.
766 (test_target_has_stack): Likewise.
767 (test_target_has_memory): Likewise.
768 (test_target_prepare_to_store): Likewise.
769 (test_target_store_registers): Likewise.
770 * target.h (test_target_ops): New class.
771
772 2017-11-24 Alan Hayward <alan.hayward@arm.com>
773
774 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
775 selftest.
776
777 2017-11-24 Alan Hayward <alan.hayward@arm.com>
778
779 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
780 * arch/aarch64.c (aarch64_create_target_description): Create
781 new target description.
782 * features/Makefile: Add new files.
783 * features/aarch64.c: Remove file.
784 * features/aarch64-core.c: New autogenerated file.
785 * features/aarch64-fpu.c: New autogenerated file.
786 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
787
788 2017-11-24 Alan Hayward <alan.hayward@arm.com>
789
790 * Makefile.in: Add new files.
791 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
792 aarch64_read_description.
793 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
794 Call aarch64_read_description.
795 * aarch64-tdep.c (aarch64_read_description): New function.
796 (aarch64_gdbarch_init): Call aarch64_read_description.
797 * aarch64-tdep.h (aarch64_read_description): New function.
798 * arch/aarch64.c: New file.
799 * configure.tgt: Add new files.
800
801 2017-11-24 Yao Qi <yao.qi@linaro.org>
802
803 * mi/mi-main.c (register_changed_p): Update.
804 * value.c (value_contents_bits_eq): Change return type.
805 (value_contents_eq): Likewise.
806 * value.h: Update comments.
807
808 2017-11-24 Yao Qi <yao.qi@linaro.org>
809
810 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
811 local 'changed'. Remove error.
812 (register_changed_p): Change return type to bool.
813
814 2017-11-24 Yao Qi <yao.qi@linaro.org>
815
816 * arch/tic6x.c: New file.
817 * arch/tic6x.h: New file.
818 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
819 tic6x-core.xml and tic6x-gp.xml.
820 * features/tic6x-c6xp.c: Generated.
821 * features/tic6x-core.c: Generated.
822 * features/tic6x-gp.c: Generated.
823 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
824 "tic6x-".
825
826 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
827
828 * mi/mi-main.c (list_available_thread_groups): Change map value
829 type to std::vector.
830
831 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
832
833 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
834
835 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
836
837 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
838 back to...
839 <children_requested>: ... this.
840 (varobj_get_num_children, varobj_update): Adjust.
841
842 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
843
844 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
845 (ada_value_has_mutated): Likewise.
846 * c-varobj.c (varobj_is_anonymous_child): Likewise.
847 (c_is_path_expr_parent): Likewise.
848 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
849 (mi_cmd_var_set_frozen): Likewise.
850 (mi_cmd_var_update_iter): Likewise.
851 (mi_cmd_var_update): Likewise.
852 * varobj.c (pretty_printing): Likewise.
853 (varobj_enable_pretty_printing): Likewise.
854 (struct varobj_root) <floating, is_valid>: Likewise.
855 (struct varobj_dynamic) <children_requested>: Likewise.
856 (delete_variable): Likewise.
857 (delete_variable_1): Likewise.
858 (install_variable): Likewise.
859 (update_type_if_necessary): Likewise.
860 (install_new_value): Likewise.
861 (value_of_root): Likewise.
862 (is_root_p): Likewise.
863 (varobj_create): Likewise.
864 (varobj_delete): Likewise.
865 (varobj_has_more): Likewise.
866 (varobj_set_frozen): Likewise.
867 (varobj_get_frozen): Likewise.
868 (install_dynamic_child): Likewise.
869 (dynamic_varobj_has_child_method): Likewise.
870 (update_dynamic_varobj_children): Likewise.
871 (varobj_get_num_children): Likewise.
872 (varobj_list_children): Likewise.
873 (is_path_expr_parent): Likewise.
874 (varobj_default_is_path_expr_parent): Likewise.
875 (varobj_is_dynamic_p): Likewise.
876 (varobj_set_value): Likewise.
877 (varobj_value_has_mutated): Likewise.
878 (varobj_update): Likewise.
879 (check_scope): Likewise.
880 (value_of_root_1): Likewise.
881 (varobj_value_get_print_value): Likewise.
882 (varobj_editable_p): Likewise.
883 (varobj_value_is_changeable_p): Likewise.
884 (varobj_floating_p): Likewise.
885 (varobj_default_value_is_changeable_p): Likewise.
886 (varobj_invalidate_iter): Likewise.
887 * varobj.h (struct varobj_update_result) <type_changed,
888 children_changed, changed, value_installed>: Likewise.
889 (struct varobj) <updated, frozen, not_fetched>: Likewise.
890 (struct lang_varobj_ops) <value_is_changeable_p,
891 value_has_mutated, is_path_expr_parent>: Likewise.
892 (varobj_delete): Likewise.
893 (varobj_set_frozen): Likewise.
894 (varobj_get_frozen): Likewise.
895 (varobj_set_value): Likewise.
896 (varobj_update): Likewise.
897 (varobj_editable_p): Likewise.
898 (varobj_floating_p): Likewise.
899 (varobj_has_more): Likewise.
900 (varobj_is_dynamic_p): Likewise.
901 (varobj_default_value_is_changeable_p): Likewise.
902 (varobj_value_is_changeable_p): Likewise.
903 (varobj_is_anonymous_child): Likewise.
904 (varobj_default_is_path_expr_parent): Likewise.
905
906 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
907
908 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
909 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
910 <type_str>: Convert to 'std::string'.
911 <expr>: Convert to 'expression_up'.
912 (dtrace_probe_arg_s): Delete type and VEC.
913 (dtrace_probe_enabler_s): Likewise.
914 (struct dtrace_probe): Replace by...
915 (class dtrace_static_probe_ops): ...this and...
916 (class dtrace_probe): ...this.
917 (dtrace_probe_is_linespec): Rename to...
918 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
919 to reflect change.
920 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
921 Adjust code. Create new instance of 'dtrace_probe'.
922 (dtrace_build_arg_exprs): Rename to...
923 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
924 reflect change.
925 (dtrace_get_probes): Rename to...
926 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
927 to reflect change.
928 (dtrace_get_arg): Rename to...
929 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
930 reflect change.
931 (dtrace_probe_is_enabled): Rename to...
932 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
933 change.
934 (dtrace_get_probe_address): Rename to...
935 (dtrace_probe::get_relocated_address): ...this. Adjust code
936 to reflect change.
937 (dtrace_get_probe_argument_count): Rename to...
938 (dtrace_probe::get_argument_count): ...this. Adjust code to
939 reflect change.
940 (dtrace_can_evaluate_probe_arguments): Rename to...
941 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
942 to reflect change.
943 (dtrace_evaluate_probe_argument): Rename to...
944 (dtrace_probe::evaluate_argument): ...this. Adjust code to
945 reflect change.
946 (dtrace_compile_to_ax): Rename to...
947 (dtrace_probe::compile_to_ax): ...this. Adjust code to
948 reflect change.
949 (dtrace_probe_destroy): Delete.
950 (dtrace_type_name): Rename to...
951 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
952 reflect change.
953 (dtrace_probe::get_static_ops): New method.
954 (dtrace_gen_info_probes_table_header): Rename to...
955 (dtrace_static_probe_ops::gen_info_probes_table_header):
956 ...this. Adjust code to reflect change.
957 (dtrace_gen_info_probes_table_values): Rename to...
958 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
959 code to reflect change.
960 (dtrace_enable_probe): Rename to...
961 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
962 change.
963 (dtrace_disable_probe): Rename to...
964 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
965 change.
966 (struct probe_ops dtrace_probe_ops): Delete.
967 (info_probes_dtrace_command): Call 'info_probes_for_spops'
968 instead of 'info_probes_for_ops'.
969 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
970 of 'all_probe_ops'.
971
972 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
973 Simon Marchi <simark@simark.ca>
974
975 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
976 variable.
977 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
978 <aexpr>: Change type to 'expression_up'.
979 (stap_probe_arg_s): Delete type and VEC.
980 (struct stap_probe): Delete. Replace by...
981 (class stap_static_probe_ops): ...this and...
982 (class stap_probe): ...this. Rename variables to add 'm_'
983 prefix. Do not use 'union' for arguments anymore.
984 (stap_get_expected_argument_type): Receive probe name instead
985 of 'struct stap_probe'. Adjust code.
986 (stap_parse_probe_arguments): Rename to...
987 (stap_probe::parse_arguments): ...this. Adjust code to
988 reflect change.
989 (stap_get_probe_address): Rename to...
990 (stap_probe::get_relocated_address): ...this. Adjust code
991 to reflect change.
992 (stap_get_probe_argument_count): Rename to...
993 (stap_probe::get_argument_count): ...this. Adjust code
994 to reflect change.
995 (stap_get_arg): Rename to...
996 (stap_probe::get_arg_by_number'): ...this. Adjust code to
997 reflect change.
998 (can_evaluate_probe_arguments): Rename to...
999 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1000 to reflect change.
1001 (stap_evaluate_probe_argument): Rename to...
1002 (stap_probe::evaluate_argument): ...this. Adjust code
1003 to reflect change.
1004 (stap_compile_to_ax): Rename to...
1005 (stap_probe::compile_to_ax): ...this. Adjust code to
1006 reflect change.
1007 (stap_probe_destroy): Delete.
1008 (stap_modify_semaphore): Adjust comment.
1009 (stap_set_semaphore): Rename to...
1010 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1011 change.
1012 (stap_clear_semaphore): Rename to...
1013 (stap_probe::clear_semaphore): ...this. Adjust code to
1014 reflect change.
1015 (stap_probe::get_static_ops): New method.
1016 (handle_stap_probe): Adjust code to create instance of
1017 'stap_probe'.
1018 (stap_get_probes): Rename to...
1019 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1020 reflect change.
1021 (stap_probe_is_linespec): Rename to...
1022 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1023 reflect change.
1024 (stap_type_name): Rename to...
1025 (stap_static_probe_ops::type_name): ...this. Adjust code to
1026 reflect change.
1027 (stap_gen_info_probes_table_header): Rename to...
1028 (stap_static_probe_ops::gen_info_probes_table_header):
1029 ...this. Adjust code to reflect change.
1030 (stap_gen_info_probes_table_values): Rename to...
1031 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1032 code to reflect change.
1033 (struct probe_ops stap_probe_ops): Delete.
1034 (info_probes_stap_command): Use 'info_probes_for_spops'
1035 instead of 'info_probes_for_ops'.
1036 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1037 of 'all_probe_ops'.
1038
1039 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1040
1041 * break-catch-throw.c (fetch_probe_arguments): Use
1042 'probe.prob' instead of 'probe.probe'.
1043 * breakpoint.c (create_longjmp_master_breakpoint): Call
1044 'can_evaluate_arguments' and 'get_relocated_address' methods
1045 from probe.
1046 (create_exception_master_breakpoint): Likewise.
1047 (add_location_to_breakpoint): Use 'sal->prob' instead of
1048 'sal->probe'.
1049 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1050 probe.
1051 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1052 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1053 of 'probe_ops'.
1054 (probe_key_free): Call 'delete' on probe.
1055 (check_exception_resume): Use 'probe.prob' instead of
1056 'probe.probe'.
1057 * location.c (string_to_event_location_basic): Call
1058 'probe_linespec_to_static_ops'.
1059 * probe.c (class any_static_probe_ops): New class.
1060 (any_static_probe_ops any_static_probe_ops): New variable.
1061 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1062 argument. Adjust code to reflect change.
1063 (parse_probes): Use 'static_probe_ops' instead of
1064 'probe_ops'. Adjust code to reflect change.
1065 (find_probes_in_objfile): Call methods to get name and
1066 provider from probe.
1067 (find_probe_by_pc): Use 'result.prob' instead of
1068 'result.probe'. Call 'get_relocated_address' method from
1069 probe.
1070 (collect_probes): Adjust comment and argument list to receive
1071 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1072 reflect change. Call necessary methods from probe.
1073 (compare_probes): Call methods to get name and provider from
1074 probes.
1075 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1076 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1077 adjust code accordingly.
1078 (print_ui_out_not_applicables): Likewise.
1079 (info_probes_for_ops): Rename to...
1080 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1081 as argument instead of 'probe_ops'. Adjust code. Call
1082 necessary methods from probe.
1083 (info_probes_command): Use 'info_probes_for_spops'.
1084 (enable_probes_command): Pass correct argument to
1085 'collect_probes'. Call methods from probe.
1086 (disable_probes_command): Likewise.
1087 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1088 (get_probe_argument_count): Move to
1089 'any_static_probe_ops::get_argument_count'.
1090 (can_evaluate_probe_arguments): Move to
1091 'any_static_probe_ops::can_evaluate_arguments'.
1092 (evaluate_probe_argument): Move to
1093 'any_static_probe_ops::evaluate_argument'.
1094 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1095 'probe.probe'.
1096 (probe_linespec_to_ops): Rename to...
1097 (probe_linespec_to_static_ops): ...this. Adjust code.
1098 (probe_any_is_linespec): Rename to...
1099 (any_static_probe_ops::is_linespec): ...this.
1100 (probe_any_get_probes): Rename to...
1101 (any_static_probe_ops::get_probes): ...this.
1102 (any_static_probe_ops::type_name): New method.
1103 (any_static_probe_ops::gen_info_probes_table_header): New
1104 method.
1105 (compute_probe_arg): Use 'pc_probe.prob' instead of
1106 'pc_probe.probe'. Call methods from probe.
1107 (compile_probe_arg): Likewise.
1108 (std::vector<const probe_ops *> all_probe_ops): Delete.
1109 (std::vector<const static_probe_ops *> all_static_probe_ops):
1110 New variable.
1111 (_initialize_probe): Use 'all_static_probe_ops' instead of
1112 'all_probe_ops'.
1113 * probe.h (struct info_probe_column) <field_name>: Delete
1114 extraneous newline
1115 (info_probe_column_s): Delete type and VEC.
1116 (struct probe_ops): Delete. Replace with...
1117 (class static_probe_ops): ...this and...
1118 (clas probe): ...this.
1119 (struct bound_probe) <bound_probe>: Delete extraneous
1120 newline. Adjust constructor to receive 'probe' instead of
1121 'struct probe'.
1122 <probe>: Rename to...
1123 <prob>: ...this. Delete extraneous newline.
1124 <objfile>: Delete extraneous newline.
1125 (register_probe_ops): Delete unused prototype.
1126 (info_probes_for_ops): Rename to...
1127 (info_probes_for_spops): ...this. Adjust comment.
1128 (get_probe_address): Move to 'probe::get_address'.
1129 (get_probe_argument_count): Move to
1130 'probe::get_argument_count'.
1131 (can_evaluate_probe_arguments): Move to
1132 'probe::can_evaluate_arguments'.
1133 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1134 * solib-svr4.c (struct svr4_info): Adjust comment.
1135 (struct probe_and_action) <probe>: Rename to...
1136 <prob>: ...this.
1137 (register_solib_event_probe): Receive 'probe' instead of
1138 'struct probe' as argument. Use 'prob' instead of 'probe'
1139 when applicable.
1140 (solib_event_probe_action): Call 'get_argument_count' method
1141 from probe. Adjust comment.
1142 (svr4_handle_solib_event): Adjust comment. Call
1143 'evaluate_argument' method from probe.
1144 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1145 from probe.
1146 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1147 'struct probe'. Call 'can_evaluate_arguments' from probe.
1148 * symfile.h: Forward declare 'class probe' instead of 'struct
1149 probe'.
1150 * symtab.h: Likewise.
1151 (struct symtab_and_line) <probe>: Rename to...
1152 <prob>: ...this.
1153 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1154 Call probe methods.
1155 (stop_tracing): Likewise.
1156
1157 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1158
1159 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1160 trailing newline at end of string in call to warning.
1161
1162 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1163
1164 * osdata.h: Include vector isntead of vec.h.
1165 (osdata_column_s): Remove typedef.
1166 (struct osdata_column): Add constructor.
1167 <name, value>: Change type to std::string.
1168 (DEF_VEC_O (osdata_column_s)): Remove.
1169 (osdata_item_s): Remove typedef.
1170 (struct osdata_item) <columns>: Change type to std::vector.
1171 (DEF_VEC_O (osdata_item_s)): Remove.
1172 (struct osdata): Add constructor.
1173 <type>: Change type to std::string.
1174 <items>: Change type to std::vector.
1175 (osdata_p): Remove typedef.
1176 (DEF_VEC_P (osdata_p)): Remove.
1177 (osdata_parse): Return a unique_ptr.
1178 (osdata_free): Remove.
1179 (make_cleanup_osdata_free): Remove.
1180 (get_osdata): Return a unique_ptr.
1181 (get_osdata_column): Return pointer to std::string, take a
1182 reference to osdata_item as parameter.
1183 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1184 unique_ptr.
1185 <property_name>: Change type to std::string.
1186 (osdata_start_osdata): Allocate osdata with new and adjust.
1187 (osdata_start_item): Adjust.
1188 (osdata_start_column): Adjust.
1189 (osdata_end_column): Adjust.
1190 (clear_parsing_data): Remove.
1191 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1192 (osdata_item_clear): Remove.
1193 (get_osdata): return a unique_ptr and adjust.
1194 (get_osdata_column): Return a pointer to std::string and adjust.
1195 (info_osdata): Adjust.
1196 * mi/mi-main.c: Include <map>.
1197 (free_vector_of_osdata_items): Remove.
1198 (list_available_thread_groups): Adjust, use std::map instead of
1199 splay tree.
1200
1201 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1202
1203 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1204 case in switch.
1205
1206 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1207
1208 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1209
1210 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1211
1212 * varobj.h (struct varobj_update_result): Add constructor, add
1213 move constructor, disable copy and assign, initialize fields.
1214 <newobj>: Change type to std::vector.
1215 (varobj_update): Return std::vector.
1216 * varobj.c (install_dynamic_child): Change VEC parameters to
1217 std::vector and adjust.
1218 (update_dynamic_varobj_children): Likewise.
1219 (varobj_update): Return std::vector and adjust.
1220 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1221
1222 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1223
1224 * varobj.h (struct varobj) <parent>: Remove const.
1225 <children>: Change type to std::vector.
1226 (varobj_list_children): Return std::vector const reference.
1227 (varobj_restrict_range): Change parameter type to std::vector
1228 const reference.
1229 * varobj.c (varobj_has_more): Adjust.
1230 (varobj_restrict_range): Change parameter type to std::vector
1231 const reference and adjust.
1232 (install_dynamic_child): Adjust.
1233 (update_dynamic_varobj_children): Adjust.
1234 (varobj_list_children): Return std::vector const reference and
1235 adjust.
1236 (varobj_add_child): Adjust.
1237 (update_type_if_necessary): Adjust.
1238 (varobj_update): Adjust.
1239 (delete_variable_1): Adjust.
1240 * ada-varobj.c (ada_value_has_mutated): Adjust.
1241 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1242
1243 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1244
1245 * varobj.h (struct varobj): Add constructor and destructor,
1246 initialize fields.
1247 * varobj.c (struct varobj_root): Initialize fields.
1248 (struct varobj_dynamic): Initialize fields.
1249 (varobj_create): Use unique_ptr instead of cleanup. Create
1250 varobj with new instead of new_root_variable.
1251 (delete_variable_1): Free variable with delete instead of
1252 free_variable.
1253 (create_child_with_value): Create variable with new instead of
1254 new_variable.
1255 (varobj::varobj): New.
1256 (varobj::~varobj): New (body mostly coming from free_variable).
1257 (new_variable): Remove.
1258 (free_variable): Remove.
1259 (do_free_variable_cleanup): Remove.
1260 (make_cleanup_free_variable): Remove.
1261
1262 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1263
1264 * core-regset.c: Remove file.
1265 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1266
1267 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1268
1269 * NEWS: Document use of GNU MPFR.
1270 * README: Likewise.
1271
1272 * Makefile.in (LIBMPFR): Add define.
1273 (CLIBS): Add $(LIBMPFR).
1274 * configure.ac: Add --with-mpfr configure option.
1275 * configure: Regenerate.
1276 * config.in: Regenerate.
1277
1278 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1279 (class mpfr_float_ops): New type.
1280 (mpfr_float_ops::from_target): Two new overloaded functions.
1281 (mpfr_float_ops::to_target): Likewise.
1282 (mpfr_float_ops::to_string): New function.
1283 (mpfr_float_ops::from_string): Likewise.
1284 (mpfr_float_ops::to_longest): Likewise.
1285 (mpfr_float_ops::from_longest): Likewise.
1286 (mpfr_float_ops::from_ulongest): Likewise.
1287 (mpfr_float_ops::to_host_double): Likewise.
1288 (mpfr_float_ops::from_host_double): Likewise.
1289 (mpfr_float_ops::convert): Likewise.
1290 (mpfr_float_ops::binop): Likewise.
1291 (mpfr_float_ops::compare): Likewise.
1292 (get_target_float_ops): Use mpfr_float_ops if available.
1293
1294 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1295
1296 * target-float.c: Do not include <math.h>.
1297 Include <cmath> and <limits>.
1298 (DOUBLEST): Do not define.
1299 (class target_float_ops): New type.
1300 (class host_float_ops): New templated type.
1301 (class decimal_float_ops): New type.
1302
1303 (floatformat_to_doublest): Rename to ...
1304 (host_float_ops<T>::from_target): ... this. Use template type T
1305 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1306 (host_float_ops<T>::from_target): New overload using a type argument.
1307 (floatformat_from_doublest): Rename to ...
1308 (host_float_ops<T>::to_target): ... this. Use template type T
1309 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1310 (host_float_ops<T>::to_target): New overload using a type argument.
1311 (floatformat_printf_format): New function.
1312 (struct printf_length_modifier): New templated type.
1313 (floatformat_to_string): Rename to ...
1314 (host_float_ops<T>::to_string): ... this. Use type instead of
1315 floatformat argument. Use floatformat_printf_format and
1316 printf_length_modifier. Remove special handling of invalid numbers,
1317 infinities and NaN (moved to target_float_to_string).
1318 (struct scanf_length_modifier): New templated type.
1319 (floatformat_from_string): Rename to ...
1320 (host_float_ops<T>::from_string): ... this. Use type instead of
1321 floatformat argument. Use scanf_length_modifier.
1322 (floatformat_to_longest): Rename to ...
1323 (host_float_ops<T>::to_longest): ... this. Use type instead of
1324 floatformat argument. Handle out-of-range values deterministically.
1325 (floatformat_from_longest): Rename to ...
1326 (host_float_ops<T>::from_longest): ... this. Use type instead of
1327 floatformat argument.
1328 (floatformat_from_ulongest): Rename to ...
1329 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1330 floatformat argument.
1331 (floatformat_to_host_double): Rename to ...
1332 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1333 floatformat argument.
1334 (floatformat_from_host_double): Rename to ...
1335 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1336 floatformat argument.
1337 (floatformat_convert): Rename to ...
1338 (host_float_ops<T>::convert): ... this. Use type instead of
1339 floatformat arguments. Remove handling of no-op conversions.
1340 (floatformat_binop): Rename to ...
1341 (host_float_ops<T>::binop): ... this. Use type instead of
1342 floatformat arguments.
1343 (floatformat_compare): Rename to ...
1344 (host_float_ops<T>::compare): ... this. Use type instead of
1345 floatformat arguments.
1346
1347 (match_endianness): Use type instead of length/byte_order arguments.
1348 (set_decnumber_context): Likewise.
1349 (decimal_from_number): Likewise. Update calls.
1350 (decimal_to_number): Likewise.
1351 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1352 (decimal_float_ops::to_host_double): New dummy function.
1353 (decimal_float_ops::from_host_double): Likewise.
1354 (decimal_to_string): Rename to ...
1355 (decimal_float_ops::to_string): ... this. Use type instead of
1356 length/byte_order arguments. Update calls.
1357 (decimal_from_string): Rename to ...
1358 (decimal_float_ops::from_string): ... this. Use type instead of
1359 length/byte_order arguments. Update calls.
1360 (decimal_from_longest): Rename to ...
1361 (decimal_float_ops::from_longest): ... this. Use type instead of
1362 length/byte_order arguments. Update calls.
1363 (decimal_from_ulongest): Rename to ...
1364 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1365 length/byte_order arguments. Update calls.
1366 (decimal_to_longest): Rename to ...
1367 (decimal_float_ops::to_longest): ... this. Use type instead of
1368 length/byte_order arguments. Update calls.
1369 (decimal_binop): Rename to ...
1370 (decimal_float_ops::binop): ... this. Use type instead of
1371 length/byte_order arguments. Update calls.
1372 (decimal_compare): Rename to ...
1373 (decimal_float_ops::compare): ... this. Use type instead of
1374 length/byte_order arguments. Update calls.
1375 (decimal_convert): Rename to ...
1376 (decimal_float_ops::convert): ... this. Use type instead of
1377 length/byte_order arguments. Update calls.
1378
1379 (target_float_same_category_p): New function.
1380 (target_float_same_format_p): Likewise.
1381 (target_float_format_length): Likewise.
1382 (enum target_float_ops_kind): New type.
1383 (get_target_float_ops_kind): New function.
1384 (get_target_float_ops): Three new overloaded functions.
1385
1386 (target_float_is_zero): Update call.
1387 (target_float_to_string): Add special handling of invalid numbers,
1388 infinities and NaN (moved from floatformat_to_string). Use
1389 target_float_ops callback.
1390 (target_float_from_string): Use target_float_ops callback.
1391 (target_float_to_longest): Likewise.
1392 (target_float_from_longest): Likewise.
1393 (target_float_from_ulongest): Likewise.
1394 (target_float_to_host_double): Likewise.
1395 (target_float_from_host_double): Likewise.
1396 (target_float_convert): Add special case for no-op conversions.
1397 Use target_float_ops callback.
1398 (target_float_binop): Use target_float_ops callback.
1399 (target_float_compare): Likewise.
1400
1401 2017-11-22 Yao Qi <yao.qi@linaro.org>
1402
1403 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
1404
1405 2017-11-22 Yao Qi <yao.qi@linaro.org>
1406
1407 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
1408 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
1409
1410 2017-11-21 Jerome Guitton <guitton@adacore.com>
1411
1412 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
1413 with event ptid from the lower layer before doing the
1414 ravenscar-specific update.
1415
1416 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1417
1418 * ravenscar-thread.c (is_ravenscar_task): Also verify that
1419 the ptid's TID is nonzero.
1420
1421 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1422
1423 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
1424 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
1425 Make non-static. Change return type to char *. Adjust code
1426 accordingly. Rewrite the function's documentation.
1427 (read_atcb): Adjust call to get_tcb_types_info accordingly.
1428 * ravenscar-thread.c (ravenscar_inferior_created): Check that
1429 we have enough debugging information in the runtime to support
1430 Ada task debugging before we enable the ravenscar-thread layer.
1431
1432 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1433
1434 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
1435 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
1436 * ravenscar-thread.c: Add into comment.
1437 (base_magic_null_ptid): Delete.
1438 (base_ptid): Change documentation.
1439 (ravenscar_active_task): Renames ravenscar_running_thread.
1440 All callers updated throughout.
1441 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
1442 (ravenscar_task_is_currently_active): Likewise.
1443 (get_base_thread_from_ravenscar_task): Ditto.
1444 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
1445 (ravenscar_runtime_initialized): Likewise.
1446 (get_running_thread_id): Add new parameter "cpu". Adjust
1447 implementation to handle this new parameter.
1448 (ravenscar_fetch_registers): Small adjustment to use
1449 is_ravenscar_task and ravenscar_task_is_currently_active in
1450 order to decide whether to use the target beneath or this
1451 module's arch_ops.
1452 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
1453 (ravenscar_stopped_by_sw_breakpoint): Use
1454 get_base_thread_from_ravenscar_task to get the underlying
1455 thread, rather than using base_ptid.
1456 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1457 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1458 Likewise.
1459 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
1460
1461 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1462
1463 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
1464 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
1465 (get_tcb_types_info): Set fieldnos.base_cpu.
1466 (read_atcb): Set task_info->base_cpu.
1467 (info_task): Print "Base CPU" info if set by runtime.
1468
1469 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1470
1471 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
1472 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1473 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1474 New functions.
1475 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
1476 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
1477 to_stopped_data_address and to_core_of_thread fields of
1478 ravenscar_ops.
1479
1480 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
1481
1482 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
1483 (struct gdbarch_tdep): New member long_double_abi.
1484 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
1485 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
1486 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
1487 format depending on long_double_abi tdep member.
1488 (ppc_floatformat_for_type): Handle __ibm128 type.
1489
1490 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1491
1492 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1493
1494 2017-11-21 Pedro Alves <palves@redhat.com>
1495
1496 * dwarf2read.c (mapped_index::find_name_components_bounds)
1497 <completion mode, upper bound>: Use std::lower_bound instead of
1498 std::upper_bound.
1499 (test_mapped_index_find_name_component_bounds): Remove incorrect
1500 "t1_fund" from expected symbols.
1501
1502 2017-11-21 Pedro Alves <palves@redhat.com>
1503
1504 * dwarf2read.c (mapped_index::name_components_casing): New field.
1505 (mapped_index) <build_name_components,
1506 find_name_components_bounds): Declare new methods.
1507 (mapped_index::find_name_components_bounds)
1508 (mapped_index::build_name_components): New methods, factored out
1509 from dw2_expand_symtabs_matching_symbol.
1510 (check_find_bounds_finds)
1511 (test_mapped_index_find_name_component_bounds): New.
1512 (run_test): Rename to ...
1513 (test_dw2_expand_symtabs_matching_symbol): ... this.
1514 (run_test): Reimplement.
1515
1516 2017-11-21 Pedro Alves <palves@redhat.com>
1517
1518 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1519 (symbol_end): Use cp_ident_is_alnum.
1520 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1521 * dwarf2read.c (make_sort_after_prefix_name): New function.
1522 (dw2_expand_symtabs_matching_symbol): Use it.
1523 (test_symbols): Add more symbols.
1524 (run_test): Add tests.
1525
1526 2017-11-17 Tom Tromey <tom@tromey.com>
1527
1528 * symtab.h (enum symbol_subclass_kind): New.
1529 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
1530 Remove.
1531 <subclass>: New member.
1532 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
1533 * rust-lang.c (rust_get_trait_object_pointer): Update.
1534 * dwarf2read.c (read_func_scope): Update.
1535 (read_variable): Update.
1536
1537 2017-11-17 Tom Tromey <tom@tromey.com>
1538
1539 * dwarf2read.c (read_func_scope): Update.
1540 * symtab.h (struct template_symbol): Derive from symbol.
1541 <base>: Remove.
1542
1543 2017-11-17 Tom Tromey <tom@tromey.com>
1544
1545 * symtab.h (struct symbol) <is_rust_vtable>: New member.
1546 (struct rust_vtable_symbol): New.
1547 (find_symbol_at_address): Declare.
1548 * symtab.c (find_symbol_at_address): New function.
1549 * symfile.h (struct quick_symbol_functions)
1550 <find_compunit_symtab_by_address>: New member.
1551 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
1552 function.
1553 (debug_sym_quick_functions): Link to
1554 debug_qf_find_compunit_symtab_by_address.
1555 * rust-lang.c (rust_get_trait_object_pointer): New function.
1556 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
1557 rust_get_trait_object_pointer.
1558 * psymtab.c (psym_relocate): Clear psymbol_map.
1559 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
1560 functions.
1561 (psym_functions): Link to psym_find_compunit_symtab_by_address.
1562 * objfiles.h (struct objfile) <psymbol_map>: New member.
1563 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1564 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1565 (rust_containing_type, read_variable): New functions.
1566
1567 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1568
1569 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1570
1571 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 * common/filestuff.c: Include <algorithm>.
1574 (open_fds): Change type to std::vector<int>.
1575 (do_mark_open_fd): Adjust.
1576 (unmark_fd_no_cloexec): Adjust.
1577 (do_close): Adjust.
1578
1579 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1580
1581 * breakpoint.c (output_thread_groups): Take an std::vector.
1582 (print_one_breakpoint_location): Adjust.
1583
1584 2017-11-17 Joel Brobecker <brobecker@adacore.com>
1585
1586 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
1587 (ada_evaluate_subexp_for_cast): New function.
1588 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
1589 ada_evaluate_subexp_for_cast.
1590 (ada_evaluate_subexp) <nosideret>: Replace code by call to
1591 eval_skip_value.
1592 * eval.c (evaluate_var_value): Make non-static.
1593 (evaluate_var_msym_value, eval_skip_value): Likewise.
1594 * value.h (evaluate_var_value, evaluate_var_msym_value)
1595 (eval_skip_value): Declare.
1596
1597 2017-11-16 Joel Brobecker <brobecker@adacore.com>
1598
1599 * ada-lang.c (ada_value_cast): Remove parameter "noside".
1600 Update all callers.
1601
1602 2017-11-16 Pedro Alves <palves@redhat.com>
1603
1604 * python/py-unwind.c (pyuw_sniffer): Translate
1605 PyExc_KeyboardInterrupt to a GDB Quit exception.
1606
1607 2017-11-16 Pedro Alves <palves@redhat.com>
1608
1609 * infrun.c (resume_cleanups): Delete.
1610 (resume): No longer install a resume_cleanups cleanup nor call
1611 QUIT.
1612 (proceed): Pass the terminal to the inferior.
1613 (keep_going_pass_signal): No longer install a resume_cleanups
1614 cleanup.
1615
1616 2017-11-16 Pedro Alves <palves@redhat.com>
1617
1618 * inf-loop.c (inferior_event_handler): Don't swallow the exception
1619 if the prompt is blocked.
1620
1621 2017-11-16 Pedro Alves <palves@redhat.com>
1622
1623 * breakpoint.c (insert_bp_location): Replace bp_err and
1624 bp_err_message locals by a gdb_exception local.
1625
1626 2017-11-16 Pedro Alves <palves@redhat.com>
1627
1628 * inflow.c (scoped_ignore_sigttou): New class.
1629 (child_terminal_ours_1, new_tty): Use it.
1630
1631 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1632
1633 * target-float.c (decimal_from_number): Add byte_order argument and
1634 call match_endianness. Error if unknown floating-point type.
1635 (decimal_to_number): Add byte_order argument and call match_endianness.
1636 (decimal_from_longest): Update call. Do not call match_endianness.
1637 (decimal_from_ulongest): Likewise.
1638 (decimal_binop): Likewise.
1639 (decimal_is_zero): Likewise.
1640 (decimal_compare): Likewise.
1641 (decimal_convert): Likewise.
1642
1643 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
1644
1645 * python/python.c (gdbpy_rbreak): New function.
1646 * NEWS: Document Python rbreak feature.
1647
1648 2017-11-16 Yao Qi <yao.qi@linaro.org>
1649
1650 * features/tic6x-c62x.xml: Remove.
1651 * features/tic6x-c64x.xml: Remove.
1652 * features/tic6x-c64xp.xml: Remove.
1653
1654 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1655
1656 * symtab.h: Include <array>.
1657
1658 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1659
1660 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
1661 (bsd_kvm_proc_cmd): Likewise.
1662
1663 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
1664
1665 * tui/tui-win.c (window_name_completer): Replace VEC with
1666 std::vector.
1667
1668 2017-11-15 Andrew Cagney <cagney@gnu.org>
1669
1670 * MAINTAINERS: Remove no-longer applicable entries.
1671
1672 2017-11-15 Andrew Cagney <cagney@gnu.org>
1673
1674 * MAINTAINERS: Move self to Past Maintainers.
1675
1676 2017-11-15 Yao Qi <yao.qi@linaro.org>
1677
1678 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
1679 * features/nios2-linux.c: Remove.
1680 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
1681 initialize_tdesc_nios2_linux.
1682
1683 2017-11-15 Yao Qi <yao.qi@linaro.org>
1684
1685 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
1686 M68HC11_LAST_HARD_REG + 1.
1687
1688 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
1689
1690 PR gdb/22388
1691 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
1692 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
1693 Return TARGET_XFER_EOF if size of returned data is 0.
1694
1695 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
1696
1697 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1698 memory-map-selftests.c.
1699 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
1700 * memory-map.c (memory_map_start_memory): Fix computation of hi
1701 address.
1702 * unittests/memory-map-selftests.c: New file.
1703
1704 2017-11-09 Joel Brobecker <brobecker@adacore.com>
1705
1706 * ada-lang.c: Fix some typos in the general command documenting
1707 how Ada expressions are being evaluated and how their result
1708 is printed.
1709
1710 2017-11-09 Tom Tromey <tom@tromey.com>
1711
1712 * psymtab.c (psymbol_hash): Do not hash string contents.
1713 (psymbol_compare): Add comment.
1714
1715 2017-11-09 Tom Tromey <tom@tromey.com>
1716
1717 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
1718
1719 2017-11-08 Joel Brobecker <brobecker@adacore.com>
1720
1721 * ada-exp.y (write_var_from_sym): Remove parameter
1722 "orig_left_context". Update all callers.
1723
1724 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
1725
1726 * tracepoint.h (class collection_list) <stringify>: Return
1727 std::vector<std::string>.
1728 (encode_actions_rsp): Change parameters to
1729 std::vector<std::string> *.
1730 * tracepoint.c (collection_list::stringify): Return
1731 std::vector<std::string> and adjust accordingly.
1732 (encode_actions_rsp): Changee parameters to
1733 std::vector<std::string> and adjust accordingly.
1734 * remote.c (free_actions_list),
1735 free_actions_list_cleanup_wrapper): Remove.
1736 (remote_download_tracepoint): Adjust to std::vector.
1737
1738 2017-11-08 Tom Tromey <tom@tromey.com>
1739
1740 * dwarf2read.c (symbolp): Remove typedef.
1741 (read_func_scope): Use std::vector.
1742 (process_structure_scope): Use std::vector.
1743
1744 2017-11-08 Pedro Alves <palves@redhat.com>
1745
1746 * ada-lang.c (ada_make_symbol_completion_list): Use
1747 completion_skip_symbol.
1748 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
1749 (symbol_is_function_or_method(symbol*)): New.
1750 (add_symtab_completions): Add complete_symbol_mode parameter. Use
1751 completion_skip_symbol.
1752 (default_collect_symbol_completion_matches_break_on): Use
1753 completion_skip_symbol. Pass down mode.
1754 (collect_file_symbol_completion_matches): Pass down mode.
1755 * symtab.h (symbol_is_function_or_method): New declarations.
1756 (completion_skip_symbol): New template function.
1757
1758 2017-11-08 Pedro Alves <palves@redhat.com>
1759
1760 * linespec.c (iterate_over_all_matching_symtabs): Add
1761 search_domain parameter. Pass it down to expand_symtabs_matching.
1762 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
1763 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
1764 search_domain.
1765 (add_all_symbol_names_from_pspace): Add search_domain parameter.
1766 Pass it down.
1767 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
1768 symbols.
1769 (add_matching_symbols_to_info): Add search_domain parameter. Pass
1770 it down.
1771
1772 2017-11-08 Pedro Alves <palves@redhat.com>
1773
1774 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
1775 text_len locals and don't pass them down.
1776 * symtab.c (completion_list_add_name): Remove
1777 sym_text/sym_text_len parameters and adjust.
1778 (completion_list_add_symbol, completion_list_add_msymbol)
1779 (completion_list_objc_symbol, completion_list_add_fields)
1780 (add_symtab_completions): Likewise.
1781 (default_collect_symbol_completion_matches_break_on)
1782 (collect_file_symbol_completion_matches): Remove sym_text_len
1783 local and don't pass it down.
1784 * symtab.h (completion_list_add_name): Remove
1785 sym_text/sym_text_len parameters.
1786
1787 2017-11-08 Pedro Alves <palves@redhat.com>
1788
1789 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1790 unittests/lookup_name_info-selftests.c.
1791 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
1792 * cp-support.c: Include "selftest.h".
1793 (cp_remove_params_1): Rename from cp_remove_params. Add
1794 'require_param' parameter, and handle it.
1795 (cp_remove_params): Reimplement.
1796 (cp_remove_params_if_any): New.
1797 (selftests::quote): New.
1798 (selftests::check_remove_params): New.
1799 (selftests::test_cp_remove_params): New.
1800 (_initialize_cp_support): Install
1801 selftests::test_cp_remove_params.
1802 * cp-support.h (cp_remove_params_if_any): Declare.
1803 * dwarf2read.c :Include "selftest.h".
1804 (dw2_expand_symtabs_matching_symbol): Use
1805 lookup_name_info::make_ignore_params.
1806 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
1807 (selftests::dw2_expand_symtabs_matching::string_or_null)
1808 (selftests::dw2_expand_symtabs_matching::check_match)
1809 (selftests::dw2_expand_symtabs_matching::test_symbols)
1810 (selftests::dw2_expand_symtabs_matching::run_test): New.
1811 (_initialize_dwarf2_read): Register
1812 selftests::dw2_expand_symtabs_matching::run_test.
1813 * psymtab.c (psym_expand_symtabs_matching): Use
1814 lookup_name_info::make_ignore_params.
1815 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
1816 If the lookup name wants to ignore parameters, strip them.
1817 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
1818 code handling '('.
1819 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
1820 (default_collect_symbol_completion_matches_break_on): Don't try to
1821 strip parameters.
1822 * symtab.h (lookup_name_info::lookup_name_info): Add
1823 'ignore_parameters' parameter.
1824 (lookup_name_info::ignore_parameters)
1825 (lookup_name_info::make_ignore_params): New methods.
1826 (lookup_name_info::m_ignore_parameters): New field.
1827 * unittests/lookup_name_info-selftests.c: New file.
1828
1829 2017-11-08 Pedro Alves <palves@redhat.com>
1830
1831 * dwarf2read.c (dw2_expand_marked_cus)
1832 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
1833 (dw2_expand_symtabs_matching): Move further below.
1834 (dw2_expand_marked_cus): Reindent.
1835
1836 2017-11-08 Pedro Alves <palves@redhat.com>
1837
1838 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
1839 (struct name_component): New.
1840 (mapped_index::name_components): New field.
1841 (mapped_index::symbol_name_at): New method.
1842 (dwarf2_read_index): Call mapped_index ctor.
1843 (dw2_map_matching_symbols): Add comment about name_components
1844 table.
1845 (dw2_expand_symtabs_matching): Factor part to...
1846 (dw2_expand_symtabs_matching_symbol): ... this new function.
1847 Build name components table, and lookup symbols in it before
1848 calling the name matcher.
1849 (dw2_expand_marked_cus): New, factored out from
1850 dw2_expand_symtabs_matching.
1851 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
1852
1853 2017-11-08 Pedro Alves <palves@redhat.com>
1854
1855 * ada-lang.c (ada_encode): Rename to ..
1856 (ada_encode_1): ... this. Add throw_errors parameter and handle
1857 it.
1858 (ada_encode): Reimplement.
1859 (match_name): Delete, folded into full_name.
1860 (resolve_subexp): No longer pass the encoded name to
1861 ada_lookup_symbol_list.
1862 (should_use_wild_match): Delete.
1863 (name_match_type_from_name): New.
1864 (ada_lookup_simple_minsym): Use lookup_name_info and the
1865 language's symbol_name_matcher_ftype.
1866 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
1867 (ada_add_block_renamings): Adjust to use lookup_name_info.
1868 (ada_lookup_name): New.
1869 (add_nonlocal_symbols, ada_add_all_symbols)
1870 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
1871 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
1872 (ada_name_for_lookup): Delete.
1873 (ada_lookup_encoded_symbol): Construct a verbatim name.
1874 (wild_match): Reverse sense of return type. Use bool.
1875 (full_match): Reverse sense of return type. Inline bits of old
1876 match_name here.
1877 (ada_add_block_symbols): Adjust to use lookup_name_info.
1878 (symbol_completion_match): Delete, folded into...
1879 (ada_lookup_name_info::matches): ... .this new method.
1880 (symbol_completion_add): Delete.
1881 (ada_collect_symbol_completion_matches): Add name_match_type
1882 parameter. Adjust to use lookup_name_info and
1883 completion_list_add_name.
1884 (get_var_value, ada_add_global_exceptions): Adjust to use
1885 lookup_name_info.
1886 (ada_get_symbol_name_cmp): Delete.
1887 (do_wild_match, do_full_match): New functions.
1888 (ada_lookup_name_info::ada_lookup_name_info): New method.
1889 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
1890 functions.
1891 (ada_language_defn): Install ada_get_symbol_name_matcher.
1892 * ada-lex.l (processId): If name starts with '<', copy it
1893 verbatim.
1894 * block.c (block_iter_match_step, block_iter_match_first)
1895 (block_iter_match_next, block_lookup_symbol)
1896 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
1897 lookup_name_info.
1898 * block.h (block_iter_match_first, block_iter_match_next)
1899 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
1900 * c-lang.c (c_language_defn, cplus_language_defn)
1901 (asm_language_defn, minimal_language_defn): Adjust comments to
1902 refer to la_get_symbol_name_matcher.
1903 * completer.c (complete_files_symbols)
1904 (collect_explicit_location_matches, symbol_completer): Pass a
1905 symbol_name_match_type down.
1906 * completer.h (class completion_match, completion_match_result):
1907 New classes.
1908 (completion_tracker::reset_completion_match_result): New method.
1909 (completion_tracker::m_completion_match_result): New field.
1910 * cp-support.c (make_symbol_overload_list_block): Adjust to use
1911 lookup_name_info.
1912 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
1913 functions.
1914 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
1915 * d-lang.c: Adjust comments to refer to
1916 la_get_symbol_name_matcher.
1917 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
1918 Adjust to use lookup_name_info.
1919 (dict_iter_match_first, dict_iter_match_next)
1920 (iter_match_first_hashed, iter_match_next_hashed)
1921 (iter_match_first_linear, iter_match_next_linear): Adjust to work
1922 with a lookup_name_info.
1923 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
1924 Likewise.
1925 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
1926 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
1927 (gdb_index_symbol_name_matcher): New class.
1928 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
1929 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
1930 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
1931 with a symbol_name_match_type.
1932 (f_language_defn): Adjust comments to refer to
1933 la_get_symbol_name_matcher.
1934 * go-lang.c (go_language_defn): Adjust comments to refer to
1935 la_get_symbol_name_matcher.
1936 * language.c (default_symbol_name_matcher)
1937 (language_get_symbol_name_matcher): New functions.
1938 (unknown_language_defn, auto_language_defn): Adjust comments to
1939 refer to la_get_symbol_name_matcher.
1940 * language.h (symbol_name_cmp_ftype): Delete.
1941 (language_defn) <la_collect_symbol_completion_matches>: Add match
1942 type parameter.
1943 <la_get_symbol_name_cmp>: Delete field.
1944 <la_get_symbol_name_matcher>: New field.
1945 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
1946 (default_symbol_name_matcher, language_get_symbol_name_matcher):
1947 Declare.
1948 * linespec.c (iterate_over_all_matching_symtabs)
1949 (iterate_over_file_blocks): Adjust to use lookup_name_info.
1950 (find_methods): Add language parameter, and use lookup_name_info
1951 and the language's symbol_name_matcher_ftype.
1952 (linespec_complete_function): Adjust.
1953 (lookup_prefix_sym): Use lookup_name_info.
1954 (add_all_symbol_names_from_pspace): Adjust.
1955 (find_superclass_methods): Add language parameter and pass it
1956 down.
1957 (find_method): Pass symbol language down.
1958 (find_linespec_symbols): Don't demangle or Ada encode here.
1959 (search_minsyms_for_name): Add lookup_name_info parameter.
1960 (add_matching_symbols_to_info): Add name_match_type parameter.
1961 Use lookup_name_info.
1962 * m2-lang.c (m2_language_defn): Adjust comments to refer to
1963 la_get_symbol_name_matcher.
1964 * minsyms.c: Include <algorithm>.
1965 (add_minsym_to_demangled_hash_table): Remove table parameter and
1966 add objfile parameter. Use search_name_hash, and add language to
1967 demangled languages vector.
1968 (struct found_minimal_symbols): New struct.
1969 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
1970 New functions.
1971 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
1972 input names here. Use lookup_name_info instead. Lookup up
1973 demangled names once for each language in the demangled names
1974 vector.
1975 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
1976 demangled names once for each language in the demangled names
1977 vector.
1978 (build_minimal_symbol_hash_tables): Adjust.
1979 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
1980 lookup_name_info.
1981 * objc-lang.c (objc_language_defn): Adjust comment to refer to
1982 la_get_symbol_name_matcher.
1983 * objfiles.h: Include <vector>.
1984 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
1985 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
1986 la_get_symbol_name_matcher.
1987 * p-lang.c (pascal_language_defn): Adjust comment to refer to
1988 la_get_symbol_name_matcher.
1989 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
1990 (match_partial_symbol): Use symbol_name_match_type,
1991 lookup_name_info and psymbol_name_matches.
1992 (lookup_partial_symbol): Use lookup_name_info.
1993 (map_block): Use symbol_name_match_type and lookup_name_info.
1994 (psym_map_matching_symbols): Use symbol_name_match_type.
1995 (psymbol_name_matches): New.
1996 (recursively_search_psymtabs): Use lookup_name_info and
1997 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
1998 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
1999 'kind' parameter to 'domain'.
2000 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2001 la_get_symbol_name_matcher.
2002 * symfile-debug.c (debug_qf_map_matching_symbols)
2003 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2004 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2005 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2006 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2007 Adjust to use symbol_name_match_type.
2008 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2009 (expand_symtabs_matching): Adjust to use lookup_name_info.
2010 * symmisc.c (maintenance_expand_symtabs): Use
2011 lookup_name_info::match_any ().
2012 * symtab.c (symbol_matches_search_name): New.
2013 (eq_symbol_entry): Adjust to use lookup_name_info and the
2014 language's matcher.
2015 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2016 (lookup_name_info::match_any): New.
2017 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2018 (compare_symbol_name): Add language, lookup_name_info and
2019 completion_match_result parameters, and use them.
2020 (completion_list_add_name): Make extern. Add language and
2021 lookup_name_info parameters. Use them.
2022 (completion_list_add_symbol, completion_list_add_msymbol)
2023 (completion_list_objc_symbol): Add lookup_name_info parameters and
2024 adjust. Pass down language.
2025 (completion_list_add_fields): Add lookup_name_info parameters and
2026 adjust. Pass down language.
2027 (add_symtab_completions): Add lookup_name_info parameters and
2028 adjust.
2029 (default_collect_symbol_completion_matches_break_on): Add
2030 name_match_type parameter, and use it. Use lookup_name_info.
2031 (default_collect_symbol_completion_matches)
2032 (collect_symbol_completion_matches): Add name_match_type
2033 parameter, and pass it down.
2034 (collect_symbol_completion_matches_type): Adjust.
2035 (collect_file_symbol_completion_matches): Add name_match_type
2036 parameter, and use lookup_name_info.
2037 * symtab.h: Include <string> and "common/gdb_optional.h".
2038 (enum class symbol_name_match_type): New.
2039 (class ada_lookup_name_info): New.
2040 (struct demangle_for_lookup_info): New.
2041 (class lookup_name_info): New.
2042 (symbol_name_matcher_ftype): New.
2043 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2044 (symbol_matches_search_name): Declare.
2045 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2046 (default_collect_symbol_completion_matches)
2047 (collect_symbol_completion_matches)
2048 (collect_file_symbol_completion_matches): Add name_match_type
2049 parameter.
2050 (iterate_over_symbols): Use lookup_name_info.
2051 (completion_list_add_name): Declare.
2052 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2053 (strncmp_iw_with_mode): Now extern.
2054 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2055 (strncmp_iw_with_mode): Declare.
2056
2057 2017-11-08 Keith Seitz <keiths@redhat.com>
2058 Pedro Alves <palves@redhat.com>
2059
2060 * ada-lang.c (ada_language_defn): Install
2061 default_search_name_hash.
2062 * buildsym.c (struct buildsym_compunit): <language>: New field.
2063 (finish_block_internal): Pass language when creating dictionaries.
2064 (start_buildsym_compunit, start_symtab): New language parameters.
2065 Use them.
2066 (restart_symtab): Pass down compilation unit's language.
2067 * buildsym.h (enum language): Forward declare.
2068 (start_symtab): New 'language' parameter.
2069 * c-lang.c (c_language_defn, cplus_language_defn)
2070 (asm_language_defn, minimal_language_defn): Install
2071 default_search_name_hash.
2072 * coffread.c (coff_start_symtab): Adjust.
2073 * d-lang.c (d_language_defn): Install default_search_name_hash.
2074 * dbxread.c (struct symloc): Add 'pst_language' field.
2075 (PST_LANGUAGE): Define.
2076 (start_psymtab, read_ofile_symtab): Use it.
2077 (process_one_symbol): New 'language' parameter. Pass it down.
2078 * dictionary.c (struct dictionary) <language>: New field.
2079 (DICT_LANGUAGE): Define.
2080 (dict_create_hashed, dict_create_hashed_expandable)
2081 (dict_create_linear, dict_create_linear_expandable): New parameter
2082 'language'. Set the dictionary's language.
2083 (iter_match_first_hashed): Adjust to rename.
2084 (insert_symbol_hashed): Assert we don't see mismatching
2085 languages. Adjust to rename.
2086 (dict_hash): Rename to ...
2087 (default_search_name_hash): ... this and make extern.
2088 * dictionary.h (struct language_defn): Forward declare.
2089 (dict_create_hashed): New parameter 'language'.
2090 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2091 * f-lang.c (f_language_defn): Install default_search_name_hash.
2092 * go-lang.c (go_language_defn): Install default_search_name_hash.
2093 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2094 creation.
2095 * language.c (unknown_language_defn, auto_language_defn):
2096 * language.h (language_defn::la_search_name_hash): New field.
2097 (default_search_name_hash): Declare.
2098 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2099 * mdebugread.c (new_block): New parameter 'language'.
2100 * mdebugread.c (parse_symbol): Pass symbol language to block
2101 allocation.
2102 (psymtab_to_symtab_1): Pass down language.
2103 (new_symtab): Pass compunit's language to block allocation.
2104 * objc-lang.c (objc_language_defn): Install
2105 default_search_name_hash.
2106 * opencl-lang.c (opencl_language_defn):
2107 * p-lang.c (pascal_language_defn): Install
2108 default_search_name_hash.
2109 * rust-lang.c (rust_language_defn): Install
2110 default_search_name_hash.
2111 * stabsread.h (enum language): Forward declare.
2112 (process_one_symbol): Add 'language' parameter.
2113 * symtab.c (search_name_hash): New function.
2114 * symtab.h (search_name_hash): Declare.
2115 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2116
2117 2017-11-08 Pedro Alves <palves@redhat.com>
2118
2119 * cp-name-parser.y (main): Don't initialize extra_chars.
2120
2121 2017-11-07 Tom Tromey <tom@tromey.com>
2122
2123 * event-top.h (command_handler): Constify.
2124 * record-full.c (cmd_record_full_start): Update.
2125 * thread.c (thread_apply_all_command): Update.
2126 * printcmd.c (eval_command): Update.
2127 * mi/mi-main.c (mi_execute_cli_command): Update.
2128 (mi_execute_async_cli_command): Update.
2129 * tui/tui-stack.c (tui_update_command): Update.
2130 * cli/cli-interp.c (safe_execute_command): Constify.
2131 * record.c (record_start): Update.
2132 (record_start, record_stop, cmd_record_start): Update.
2133 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2134 (cmd_record_btrace_pt_start): Update.
2135 (cmd_record_btrace_start): Update.
2136 (cmd_record_btrace_start): Update.
2137 * reverse.c (exec_reverse_once): Update.
2138 * python/python.c (execute_gdb_command): Don't copy the command.
2139 * event-top.c (command_line_handler): Update.
2140 (command_handler): Constify.
2141 * defs.h (deprecated_call_command_hook): Constify.
2142 * cli/cli-script.h (execute_user_command): Constify.
2143 * cli/cli-script.c (execute_user_command): Constify.
2144 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2145 (enum command_control_type): Update.
2146 * main.c (catch_command_errors): Remove non-const overload.
2147 (catch_command_errors_ftype): Remove.
2148 * python/py-cmd.c (cmdpy_function): Constify.
2149 * guile/scm-cmd.c (cmdscm_function): Constify.
2150 * cli/cli-dump.c (call_dump_func): Constify.
2151 * cli/cli-decode.c (do_const_cfunc): Constify.
2152 (do_sfunc): Constify.
2153 (cmd_func): Constify.
2154 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2155 * top.h (execute_command): Constify.
2156 * top.c (execute_command): Constify.
2157 (execute_command_to_string): Constify.
2158 (deprecated_call_command_hook): Constify.
2159 * command.h (cmd_func): Constify.
2160 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2161
2162 2017-11-07 Tom Tromey <tom@tromey.com>
2163
2164 * ada-lang.c (catch_ada_exception_command): Constify.
2165 (catch_assert_command): Constify.
2166 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2167 (catch_rethrow_command): Constify.
2168 (catch_exception_command_1): Constify.
2169 * breakpoint.h (add_catch_command): Constify.
2170 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2171 (catch_syscall_split_args): Constify.
2172 * break-catch-sig.c (catch_signal_command): Constify.
2173 (catch_signal_split_args): Constify.
2174 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2175 cmd_const_sfunc_ftype.
2176 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2177 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2178 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2179 (add_setshow_string_cmd, struct cmd_list_element)
2180 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2181 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2182 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2183 Constify.
2184 (set_cmd_sfunc): Constify.
2185 (empty_sfunc): Constify.
2186 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2187 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2188 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2189 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2190 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2191 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2192 Constify.
2193 (set_cmd_sfunc): Constify.
2194 (cmd_sfunc_ftype): Remove.
2195 * compile/compile.c (set_compile_args): Constify.
2196 * infrun.c (set_disable_randomization): Constify.
2197 * infcmd.c (set_args_command, set_cwd_command): Constify.
2198 * breakpoint.c (set_condition_evaluation_mode): Constify.
2199 (add_catch_command): Constify.
2200 (catch_fork_command_1, catch_exec_command_1)
2201 (catch_load_command_1, catch_unload_command_1): Constify.
2202 (catch_load_or_unload): Constify.
2203 * guile/scm-param.c (pascm_set_func): Constify.
2204 (add_setshow_generic): Constify.
2205 * python/py-param.c (get_set_value): Constify.
2206 * top.h (set_verbose): Constify.
2207 * tui/tui-win.c (tui_set_var_cmd): Constify.
2208 * mi/mi-main.c (set_mi_async_command): Constify.
2209 * cli/cli-logging.c (set_logging_overwrite)
2210 (set_logging_redirect): Constify.
2211 * value.c (set_max_value_size): Constify.
2212 * valprint.c (set_input_radix, set_output_radix): Constify.
2213 * utils.c (set_width_command, set_height_command): Constify.
2214 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2215 * tracepoint.c (set_disconnected_tracing)
2216 (set_circular_trace_buffer, set_trace_buffer_size)
2217 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2218 * top.c (set_history_size_command, set_verbose, set_editing)
2219 (set_gdb_datadir, set_history_filename): Constify.
2220 * target.c (set_targetdebug, maint_set_target_async_command)
2221 (maint_set_target_non_stop_command, set_target_permissions)
2222 (set_write_memory_permission): Constify.
2223 (open_target): Constify.
2224 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2225 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2226 * symtab.c (set_symbol_cache_size_handler): Constify.
2227 * symfile.c (set_ext_lang_command): Constify.
2228 * symfile-debug.c (set_debug_symfile): Constify.
2229 * source.c (set_directories_command): Constify.
2230 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2231 * serial.c (set_parity): Constify.
2232 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2233 * remote.c (set_remote_exec_file, set_remotebreak)
2234 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2235 * record.c (set_record_insn_history_size)
2236 (set_record_call_history_size): Constify.
2237 * record-full.c (set_record_full_insn_max_num): Constify.
2238 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2239 * osabi.c (set_osabi): Constify.
2240 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2241 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2242 * maint.c (maintenance_set_profile_cmd): Constify.
2243 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2244 * language.c (set_language_command, set_range_command)
2245 (set_case_command): Constify.
2246 * infrun.c (set_non_stop, set_observer_mode)
2247 (set_stop_on_solib_events, set_schedlock_func)
2248 (set_exec_direction_func): Constify.
2249 * infcmd.c (set_inferior_tty_command): Constify.
2250 * disasm.c (set_disassembler_options_sfunc): Constify.
2251 * demangle.c (set_demangling_command): Constify.
2252 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2253 * cris-tdep.c (set_cris_version, set_cris_mode)
2254 (set_cris_dwarf2_cfi): Constify.
2255 * corefile.c (set_gnutarget_command): Constify.
2256 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2257 (set_target_wide_charset_sfunc): Constify.
2258 * breakpoint.c (update_dprintf_commands): Constify.
2259 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2260 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2261 (set_disassembly_style_sfunc): Constify.
2262 * arch-utils.c (set_endian, set_architecture): Constify.
2263 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2264 * agent.c (set_can_use_agent): Constify.
2265
2266 2017-11-07 Tom Tromey <tom@tromey.com>
2267
2268 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2269 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2270 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2271 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2272 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2273 (parse_int_arg, show_thread_default_detach_sc_cmd)
2274 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2275 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2276 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2277 (show_task_pause_cmd, set_task_detach_sc_cmd)
2278 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2279 (set_noninvasive_cmd, set_thread_pause_cmd)
2280 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2281 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2282 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2283 * windows-nat.c (display_selectors): Constify.
2284 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2285 non-const "cfunc".
2286 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2287 (cmd_cfunc_eq): Likewise.
2288 (struct cmd_list_element): Likewise.
2289 (do_cfunc): Remove.
2290 (cli_user_command_p): Update.
2291 * command.h (add_cmd): Remove non-const overload.
2292 (cmd_cfunc_ftype): Remove typedef.
2293 (cmd_cfunc_eq): Remove non-const overload.
2294 * value.c (show_values): Constify.
2295 * thread.c (thread_apply_all_command): Constify.
2296 * symfile.c (load_command): Constify.
2297 * source.c (directory_command): Constify.
2298 * maint.c (maintenance_internal_error)
2299 (maintenance_demangler_warning, maintenance_space_display)
2300 (maintenance_print_architecture, maintenance_translate_address)
2301 (maintenance_info_selftests, maintenance_internal_warning):
2302 Constify.
2303 * breakpoint.c (disable_trace_command, enable_trace_command):
2304 Constify.
2305 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2306 Constify.
2307 (add_auto_load_safe_path): Constify.
2308 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2309 * top.h (show_commands): Constify.
2310 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2311 * sparc64-tdep.c (adi_examine_command): Constify.
2312 (adi_assign_command): Constify.
2313
2314 2017-11-07 Tom Tromey <tom@tromey.com>
2315
2316 * frame.h (info_locals_command, info_args_command): Constify.
2317 * auto-load.h (auto_load_info_scripts): Constify.
2318 * inferior.h (registers_info): Constify.
2319 * copying.c: Rebuild.
2320 * copying.awk: Constify generated commands.
2321 * auto-load.c (auto_load_info_scripts)
2322 (info_auto_load_gdb_scripts): Constify.
2323 * cli/cli-decode.c (struct cmd_list_element): Take a
2324 cmd_const_cfunc_ftype.
2325 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2326 * tui/tui-win.c (tui_all_windows_info): Constify.
2327 * python/py-auto-load.c (info_auto_load_python_scripts):
2328 Constify.
2329 * cli/cli-cmds.c (show_command): Remove non-const overload.
2330 * tracepoint.c (info_tvariables_command, info_scope_command):
2331 Constify.
2332 (info_static_tracepoint_markers_command): Constify.
2333 * thread.c (info_threads_command): Constify.
2334 (print_thread_info_1): Constify.
2335 * target.c (info_target_command): Constify.
2336 * symtab.c (info_sources_command, info_functions_command)
2337 (info_types_command): Constify.
2338 (info_variables_command): Remove non-const overload.
2339 * symfile.c (info_ext_lang_command): Constify.
2340 * stack.c (info_frame_command, info_locals_command)
2341 (info_args_command): Constify.
2342 (backtrace_command): Remove non-const overload.
2343 * source.c (info_source_command, info_line_command): Constify.
2344 * solib.c (info_sharedlibrary_command): Constify.
2345 * skip.c (info_skip_command): Constify.
2346 * ser-go32.c (info_serial_command): Constify.
2347 * reverse.c (info_bookmarks_command): Constify.
2348 * printcmd.c (info_symbol_command, info_address_command)
2349 (info_display_command): Constify.
2350 * osdata.c (info_osdata_command): Constify.
2351 * objc-lang.c (info_selectors_command, info_classes_command):
2352 Constify.
2353 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2354 * memattr.c (info_mem_command): Constify.
2355 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2356 * linux-fork.c (info_checkpoints_command): Constify.
2357 * infrun.c (info_signals_command): Constify.
2358 * inflow.c (info_terminal_command): Constify.
2359 * inferior.c (info_inferiors_command): Constify.
2360 (print_inferior): Constify.
2361 * infcmd.c (info_program_command, info_all_registers_command)
2362 (info_registers_command, info_vector_command)
2363 (info_float_command): Constify.
2364 (registers_info): Constify.
2365 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2366 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2367 Constify.
2368 * f-valprint.c (info_common_command): Constify.
2369 * dcache.c (info_dcache_command): Constify.
2370 (dcache_info_1): Constify.
2371 * darwin-nat-info.c (info_mach_tasks_command)
2372 (info_mach_task_command, info_mach_ports_command)
2373 (info_mach_port_command, info_mach_threads_command)
2374 (info_mach_thread_command, info_mach_regions_command)
2375 (info_mach_regions_recurse_command, info_mach_region_command)
2376 (info_mach_exceptions_command): Constify.
2377 (get_task_from_args): Constify.
2378 * cp-support.c (info_vtbl_command): Constify.
2379 * breakpoint.c (info_watchpoints_command)
2380 (info_tracepoints_command): Constify.
2381 (info_breakpoints_command): Remove non-const overload.
2382 * avr-tdep.c (avr_io_reg_read_command): Constify.
2383 * auxv.c (info_auxv_command): Constify.
2384 * ada-tasks.c (info_tasks_command): Constify.
2385 (info_task): Constify.
2386 * ada-lang.c (info_exceptions_command): Constify.
2387
2388 2017-11-07 Tom Tromey <tom@tromey.com>
2389
2390 * solib.h (no_shared_libraries): Constify.
2391 * frame.h (return_command): Constify.
2392 * cli/cli-cmds.h (quit_command): Constify.
2393 * top.h (quit_command, execute_command): Constify.
2394 * target.h (flash_erase_command): Constify.
2395 * inferior.h (set_inferior_args, attach_command): Constify.
2396 * tracepoint.h (start_tracing, stop_tracing): Constify.
2397 * breakpoint.h (break_command, tbreak_command)
2398 (hbreak_command_wrapper, thbreak_command_wrapper)
2399 (rbreak_command_wrapper, watch_command_wrapper)
2400 (awatch_command_wrapper, rwatch_command_wrapper)
2401 (get_tracepoint_by_number): Constify.
2402 * symtab.c (info_variables_command, rbreak_command)
2403 (symtab_symbol_info): Constify.
2404 (info_variables_command): Add non-const overload.
2405 * top.c (dont_repeat_command): Constify.
2406 * breakpoint.c (ignore_command, commands_command)
2407 (condition_command, tbreak_command, hbreak_command)
2408 (thbreak_command, clear_command, break_command)
2409 (info_breakpoints_command, watch_command, rwatch_command)
2410 (awatch_command, trace_command, ftrace_command, strace_command)
2411 (trace_pass_command, break_range_command, dprintf_command)
2412 (agent_printf_command, get_tracepoint_by_number)
2413 (watch_maybe_just_location, trace_pass_command): Constify.
2414 (info_breakpoints_command): Add non-const overload.
2415 * tracefile.c (tsave_command): Constify.
2416 * infcmd.c (attach_command, disconnect_command, signal_command)
2417 (queue_signal_command, stepi_command, nexti_command)
2418 (finish_command, next_command, step_command, until_command)
2419 (advance_command, jump_command, continue_command, run_command)
2420 (start_command, starti_command, interrupt_command)
2421 (run_command_1, set_inferior_args, step_1): Constify.
2422 * inferior.c (add_inferior_command, remove_inferior_command)
2423 (clone_inferior_command): Constify.
2424 * linux-fork.c (checkpoint_command, restart_command): Constify.
2425 * windows-nat.c (signal_event_command): Constify.
2426 * guile/guile.c (guile_repl_command, guile_command): Constify.
2427 * printcmd.c (x_command, display_command, printf_command)
2428 (output_command, set_command, call_command, print_command)
2429 (eval_command): Constify.
2430 (non_const_set_command): Remove.
2431 (_initialize_printcmd): Update.
2432 * source.c (forward_search_command, reverse_search_command):
2433 Constify.
2434 * jit.c (jit_reader_load_command, jit_reader_unload_command):
2435 Constify.
2436 * infrun.c (handle_command): Constify.
2437 * memattr.c (mem_command): Constify.
2438 * stack.c (return_command, up_command, up_silently_command)
2439 (down_command, down_silently_command, frame_command)
2440 (backtrace_command, func_command, backtrace_command_1): Constify.
2441 (backtrace_command): Add non-const overload.
2442 * remote-sim.c (simulator_command): Constify.
2443 * exec.c (set_section_command): Constify.
2444 * tracepoint.c (tdump_command, trace_variable_command)
2445 (tstatus_command, tstop_command, tstart_command)
2446 (end_actions_pseudocommand, while_stepping_pseudocommand)
2447 (collect_pseudocommand, teval_pseudocommand, actions_command)
2448 (start_tracing, stop_tracing): Constify.
2449 * value.c (init_if_undefined_command): Constify.
2450 * tui/tui-stack.c (tui_update_command): Constify.
2451 * tui/tui-win.c (tui_refresh_all_command)
2452 (tui_set_tab_width_command, tui_set_win_height_command)
2453 (tui_set_focus_command, tui_scroll_forward_command)
2454 (tui_scroll_backward_command, tui_scroll_left_command)
2455 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
2456 (tui_set_win_height): Constify.
2457 * tui/tui-layout.c (tui_layout_command): Constify.
2458 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
2459 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
2460 (proc_untrace_sysexit_cmd): Constify.
2461 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
2462 (threadset_test_cmd, threadlist_update_test_cmd)
2463 (threadalive_test): Constify.
2464 * objc-lang.c (print_object_command): Constify.
2465 * command.h (add_com): Constify.
2466 * cli/cli-dump.c (restore_command): Constify.
2467 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
2468 (help_command, complete_command, shell_command, edit_command)
2469 (list_command, disassemble_command, make_command)
2470 (apropos_command, alias_command): Constify.
2471 * cli/cli-script.c (document_command, define_command)
2472 (while_command, if_command, validate_comname): Constify.
2473 * cli/cli-decode.c (struct cmd_list_element): Change type of
2474 "fun".
2475 * target.c (do_monitor_command, flash_erase_command): Constify.
2476 * regcache.c (reg_flush_command): Constify.
2477 * reverse.c (reverse_step, reverse_next, reverse_stepi)
2478 (reverse_nexti, reverse_continue, reverse_finish)
2479 (save_bookmark_command, goto_bookmark_command)
2480 (exec_reverse_once): Constify.
2481 * python/python.c (python_interactive_command, python_command):
2482 Constify.
2483 * typeprint.c (ptype_command, whatis_command, whatis_exp):
2484 Constify.
2485 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
2486 * gcore.c (gcore_command): Constify.
2487
2488 2017-11-07 Tom Tromey <tom@tromey.com>
2489
2490 * printcmd.c (x_command): Call set_repeat_arguments.
2491 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2492 * top.c (repeat_arguments): New global.
2493 (set_repeat_arguments): New function.
2494 (execute_command): Handle repeat_arguments.
2495 (show_commands): Calls set_repeat_arguments.
2496 * command.h (set_repeat_arguments): Declare.
2497
2498 2017-11-07 Tom Tromey <tom@tromey.com>
2499
2500 * stack.c (backtrace_command): Use std::string.
2501 (backtrace_command_1): Make "count_exp" const.
2502
2503 2017-11-07 Tom Tromey <tom@tromey.com>
2504
2505 * source.c (directory_switch, mod_path, add_path): Constify.
2506 * defs.h (add_path, mod_path, directory_switch): Constify.
2507 * mi/mi-cmd-env.c (env_mod_path): Constify.
2508
2509 2017-11-07 Tom Tromey <tom@tromey.com>
2510
2511 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2512 (run_command_1, continue_command, step_1, jump_command)
2513 (signal_command, until_command, advance_command, finish_command)
2514 (attach_command): Update.
2515
2516 2017-11-07 Tom Tromey <tom@tromey.com>
2517
2518 * command.h (set_cmd_cfunc): Don't declare.
2519 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2520
2521 2017-11-07 Tom Tromey <tom@tromey.com>
2522
2523 * stack.c (select_frame_command): Constify.
2524 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2525 * command.h (add_com_suppress_notification): Constify.
2526
2527 2017-11-07 Tom Tromey <tom@tromey.com>
2528
2529 * breakpoint.c (stop_command): Constify.
2530 * cli/cli-decode.c (struct cmd_list_element): Constify.
2531 * command.h (add_abbrev_prefix_cmd): Constify.
2532
2533 2017-11-07 Pedro Alves <palves@redhat.com>
2534
2535 * breakpoint.c (extract_bp_kind): New enum.
2536 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
2537 factored out from ...
2538 (extract_bp_number_and_location): ... here.
2539 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
2540
2541 2017-11-07 Pedro Alves <palves@redhat.com>
2542
2543 * breakpoint.c (extract_bp_number_and_location): Change return
2544 type to void. Throw error instead of warning.
2545 (enable_disable_command): Adjust.
2546
2547 2017-11-07 Xavier Roirand <roirand@adacore.com>
2548 Pedro Alves <palves@redhat.com>
2549
2550 * breakpoint.c (map_breakpoint_number_range): New, factored out
2551 from ...
2552 (map_breakpoint_numbers): ... here.
2553 (find_location_by_number): Change parameters from string to
2554 breakpoint number and location.
2555 (extract_bp_number_and_location): New function.
2556 (enable_disable_bp_num_loc)
2557 (enable_disable_breakpoint_location_range)
2558 (enable_disable_command): New functions, factored out ...
2559 (enable_command, disable_command): ... these functions, and
2560 adjusted to support ranges.
2561 * NEWS: Document enable/disable breakpoint location range feature.
2562
2563 2017-11-06 Luis Machado <luis.machado@linaro.org>
2564
2565 * MAINTAINERS (Write After Approval): Update my e-mail address.
2566
2567 2017-11-06 Pedro Alves <palves@redhat.com>
2568
2569 * gnu-nat.c (gnu_terminal_init): Delete.
2570 (gnu_target): Don't install gnu_terminal_init.
2571 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2572 (child_terminal_init): ... this function.
2573
2574 2017-11-06 Pedro Alves <palves@redhat.com>
2575
2576 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2577 sgtty.h.
2578 * config.in, configure: Regenerate.
2579
2580 2017-11-06 Pedro Alves <palves@redhat.com>
2581
2582 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
2583 (async_init_signals): Adjust.
2584 (handle_stop_sig): Rename to ...
2585 (handle_sigtstp): ... this.
2586 (async_stop_sig): Rename to ...
2587 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
2588 SIGTSTP path.
2589 * event-top.h: Move signal.h include to the top. Check SIGTSTP
2590 instead of STOP_SIGNAL thoughout.
2591 (handle_stop_sig): Rename to ...
2592 (handle_sigtstp): ... this.
2593 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
2594
2595 2017-11-06 Pedro Alves <palves@redhat.com>
2596
2597 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
2598 longer set flags twice in row.
2599
2600 2017-11-06 Pedro Alves <palves@redhat.com>
2601
2602 * Makefile.in (SER_HARDWIRE): Update comment.
2603 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
2604 * common/gdb_termios.h: Delete file.
2605 * common/job-control.c: Include termios.h and unistd.h instead of
2606 gdb_termios.h.
2607 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
2608 check.
2609 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
2610 Remove sgtty code.
2611 * configure.ac: No longer check for termio.h and sgtty.h.
2612 * configure: Regenerate.
2613 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
2614 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
2615 Replace PROCESS_GROUP_TYPE references with pid_t references
2616 throughout.
2617 (gdb_getpgrp): Delete.
2618 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
2619 (child_terminal_inferior): Remove comment. Remove sgtty code.
2620 (child_terminal_ours_1): Use tcgetpgrp directly instead of
2621 gdb_getpgrp. Use serial_set_tty_state instead aof
2622 serial_noflush_set_tty_state. Remove sgtty code.
2623 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
2624 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
2625 (inferior_process_group): Now returns pid_t.
2626 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
2627 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
2628 * ser-event.c (serial_event_ops): Update.
2629 * ser-go32.c (dos_noflush_set_tty_state): Delete.
2630 (dos_ops): Update.
2631 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
2632 * ser-pipe.c (pipe_ops): Update.
2633 * ser-tcp.c (tcp_ops): Update.
2634 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
2635 HAVE_TERMIOS checks.
2636 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
2637 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
2638 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
2639 assume termios.
2640 (hardwire_noflush_set_tty_state): Delete.
2641 (hardwire_print_tty_state, hardwire_drain_output)
2642 (hardwire_flush_output, hardwire_flush_input)
2643 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
2644 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
2645 code, and assume termios.
2646 (hardwire_ops): Update.
2647 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
2648 * serial.c (serial_noflush_set_tty_state): Delete.
2649 * serial.h (serial_noflush_set_tty_state): Delete.
2650 (serial_ops::noflush_set_tty_state): Delete.
2651
2652 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2653
2654 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
2655 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
2656 (COMMON_OBS): Remove doublest.o and dfp.o.
2657 Do not build target-float.c (instead of doublest.c)
2658 with -Wformat-nonliteral.
2659
2660 * doublest.c: Remove file.
2661 * doublest.h: Remove file.
2662 * dfp.c: Remove file.
2663 * dfp.h: Remove file.
2664
2665 * target-float.c: Do not include "doublest.h" and "dfp.h".
2666 (DOUBLEST): Move here from doublest.h.
2667 (enum float_kind): Likewise.
2668 (FLOATFORMAT_CHAR_BIT): Likewise.
2669 (FLOATFORMAT_LARGEST_BYTES): Likewise.
2670 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
2671 (floatformat_precision): Likewise.
2672 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
2673 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
2674 Likewise.
2675 (host_float_format, host_double_format, host_long_double_format):
2676 Likewise.
2677 (floatformat_to_string, floatformat_from_string): Likewise.
2678 (floatformat_to_doublest): Likewise. Also, inline the original
2679 convert_floatformat_to_doublest.
2680 (floatformat_from_doublest): Likewise. Also, inline the original
2681 convert_floatformat_from_doublest.
2682
2683 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
2684 (MAX_DECIMAL_STRING): Move here from dfp.c.
2685 (match_endianness): Likewise.
2686 (set_decnumber_context, decimal_check_errors): Likewise.
2687 (decimal_from_number, decimal_to_number): Likewise.
2688 (decimal_to_string, decimal_from_string): Likewise. Make static.
2689 (decimal_from_longest, decimal_from_ulongest): Likewise.
2690 (decimal_to_longest): Likewise.
2691 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
2692 (decimal_convert): Likewise.
2693
2694 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2695
2696 * doublest.c: Do not include "gdbtypes.h".
2697 (extract_typed_floating): Remove.
2698 (store_typed_floating): Remove.
2699 (convert_typed_floating): Remove.
2700 * doublest.h (struct type): Remove.
2701 (DOUBLEST_PRINT_FORMAT): Remove.
2702 (DOUBLEST_SCAN_FORMAT): Remove.
2703 (extract_typed_floating): Remove.
2704 (store_typed_floating): Remove.
2705 (convert_typed_floating): Remove.
2706
2707 * dfp.c (decimal_from_doublest): Remove.
2708 (decimal_to_doublest): Remove.
2709 * dfp.h: Do not include "doublest.h".
2710 (decimal_from_doublest): Remove.
2711 (decimal_to_doublest): Remove.
2712
2713 * value.c: Do not include "doublest.h" and "dfp.h".
2714 (value_as_double): Remove.
2715 (unpack_double): Remove.
2716 (value_from_double): Remove.
2717 (value_from_decfloat): Remove.
2718 * value.h: Do not include "doublest.h".
2719 (value_as_double): Remove.
2720 (unpack_double): Remove.
2721 (value_from_double): Remove.
2722 (value_from_decfloat): Remove.
2723
2724 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2725
2726 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
2727 (i386_extract_return_value): Use target_float_convert.
2728 (i386_store_return_value): Likewise.
2729 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
2730 (i387_value_to_register): Likewise.
2731 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
2732 (ia64_register_to_value): Use target_float_convert.
2733 (ia64_value_to_register): Likewise.
2734 (ia64_extract_return_value): Likewise.
2735 (ia64_store_return_value): Likewise.
2736 (ia64_push_dummy_call): Likewise.
2737 * m68k-tdep.c: Include "target-float.h".
2738 (m68k_register_to_value): Use target_float_convert.
2739 (m68k_value_to_register): Likewise.
2740 (m68k_svr4_extract_return_value): Likewise.
2741 (m68k_svr4_store_return_value): Likewise.
2742 * ppc-sysv-tdep.c: Include "target-float.h".
2743 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
2744 (do_ppc_sysv_return_value): Likewise.
2745 (ppc64_sysv_abi_push_freg): Likewise.
2746 (ppc64_sysv_abi_return_value_base): Likewise.
2747 * rs6000-aix-tdep.c: Include "target-float.h".
2748 (rs6000_push_dummy_call): Use target_float_convert.
2749 (rs6000_return_value): Likewise.
2750 * rs6000-lynx178-tdep.c: Include "target-float.h".
2751 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
2752 (rs6000_lynx178_return_value): Likewise.
2753 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
2754 (rs6000_register_to_value): Use target_float_convert.
2755 (rs6000_value_to_register): Likewise.
2756 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
2757 (arm_extract_return_value): Use target_float_convert.
2758 (arm_store_return_value): Likewise.
2759 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
2760 (sh_register_convert_to_virtual): Use target_float_convert.
2761 (sh_register_convert_to_raw): Likewise.
2762 * sh64-tdep.c: Include "target-float.h".
2763 (sh64_extract_return_value): Use target_float_convert.
2764 (sh64_register_convert_to_virtual): Likewise.
2765 (sh64_register_convert_to_raw): Likewise. Fix argument types.
2766
2767 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2768
2769 * target-float.c (floatformat_to_host_double): New function.
2770 (floatformat_from_host_double): Likewise.
2771 (target_float_to_host_double): Likewise.
2772 (target_float_from_host_double): Likewise.
2773 * target-float.h (target_float_to_host_double): Add prototype.
2774 (target_float_from_host_double): Likewise.
2775
2776 * guile/scm-value.c: Include "target-float.h".
2777 (gdbscm_value_to_real): Use target_float_to_host_double.
2778 Handle integer source values via value_as_long.
2779 * guile/scm-math.c: Include "target-float.h". Do not include
2780 "doublest.h", "dfp.h", and "expression.h".
2781 (vlscm_convert_typed_number): Use target_float_from_host_double.
2782 (vlscm_convert_number): Likewise.
2783
2784 * python/py-value.c (valpy_float): Use target_float_to_host_double.
2785 (convert_value_from_python): Use target_float_from_host_double.
2786
2787 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2788
2789 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
2790 (cast_from_fixed): Likewise.
2791 (ada_scaling_type): New function.
2792 (ada_delta): Return value instead of DOUBLEST. Perform target
2793 arithmetic instead of host arithmetic.
2794 (scaling_factor): Rename to ...
2795 (ada_scaling_factor) ... this. Make non-static. Return value instead
2796 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
2797 (ada_fixed_to_float): Remove.
2798 (ada_float_to_fixed): Remove.
2799 * ada-lang.h (ada_fixed_to_float): Remove.
2800 (ada_float_to_fixed): Remove.
2801 (ada_delta): Return value instead of DOUBLEST.
2802 (ada_scaling_factor): Add prototype.
2803
2804 * ada-typeprint.c: Include "target-float.h".
2805 (print_fixed_point_type): Perform target arithmetic instead of
2806 host arithmetic.
2807 * ada-valprint.c: Include "target-float.h".
2808 (ada_val_print_num): Perform target arithmetic instead of
2809 host arithmetic for fixed-point types.
2810
2811 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2812
2813 * target-float.c: Include <math.h>.
2814 (floatformat_binop): New function.
2815 (floatformat_compare): Likewise.
2816 (target_float_binop): Likewise.
2817 (target_float_compare): Likewise.
2818 * target-float.h: Include "expression.h".
2819 (target_float_binop): Add prototype.
2820 (target_float_compare): Likewise.
2821
2822 * valarith.c: Do not include "doublest.h" and "dfp.h".
2823 Include "common/byte-vector.h".
2824 (value_args_as_decimal): Remove, replace by ...
2825 (value_args_as_target_float): ... this function. Handle both
2826 binary and decimal target floating-point formats.
2827 (scalar_binop): Handle both binary and decimal FP using
2828 value_args_as_target_float and target_float_binop.
2829 (value_equal): Handle both binary and decimal FP using
2830 value_args_as_target_float and target_float_compare.
2831 (value_less): Likewise.
2832 (value_pos): Handle all scalar types as simple copy.
2833 (value_neg): Handle all scalar types via BINOP_SUB from 0.
2834 * dfp.c (decimal_binop): Throw error instead of internal_error
2835 when called with an unsupported operation code.
2836
2837 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2838
2839 * target-float.c (target_float_to_string): New function.
2840 (target_float_from_string): New function.
2841 * target-float.h (target_float_to_string): Add prototype.
2842 (target_float_from_string): Add prototype.
2843
2844 * valprint.c: Include "target-float.h". Do not include
2845 "doublest.h" and "dfp.h".
2846 (print_floating): Use target_float_to_string.
2847 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
2848 (printf_floating): Use target_float_to_string.
2849 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
2850 (print_i387_value): Use target_float_to_string.
2851 * mips-tdep.c: Include "target-float.h".
2852 (mips_print_fp_register): Use target_float_to_string.
2853 * sh64-tdep.c: Include "target-float.h".
2854 (sh64_do_fp_register): Use target_float_to_string.
2855
2856 * parse.c: Include "target-float.h". Do not include
2857 "doublest.h" and "dfp.h".
2858 (parse_float): Use target_float_from_string.
2859 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
2860 (define_symbol): Use target_float_from_string.
2861 * gdbarch-selftests.c: Include "target-float.h".
2862 (register_to_value_test): Use target_float_from_string.
2863
2864 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2865
2866 * Makefile.c (SFILES): Add target-float.c.
2867 (HFILES_NO_SRCDIR): Add target-float.h.
2868 (COMMON_OBS): Add target-float.o.
2869 * target-float.h: New file.
2870 * target-float.c: New file.
2871
2872 * doublest.c (floatformat_classify): Fix detection of float_zero.
2873
2874 * gdbtypes.c (is_floating_type): New function.
2875 * gdbtypes.h (is_floating_type): Add prototype.
2876
2877 * value.c: Do not include "floatformat.h".
2878 (unpack_double): Use target_float_is_valid.
2879 (is_floating_value): New function.
2880 * value.h (is_floating_value): Add prototype-
2881
2882 * valarith.c: Include "target-float.h".
2883 (value_logical_not): Use target_float_is_zero.
2884
2885 * python/py-value.c: Include "target-float.h".
2886 (valpy_nonzero): Use target_float_is_zero.
2887
2888 2017-11-04 Tom Tromey <tom@tromey.com>
2889
2890 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
2891
2892 2017-11-04 Tom Tromey <tom@tromey.com>
2893
2894 * breakpoint.c (set_momentary_breakpoint): Return
2895 breakpoint_up.
2896 (until_break_command): Update.
2897 (new_until_break_fsm): Change argument types to
2898 breakpoint_up.
2899 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2900 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
2901 Remove.
2902 * infcmd.c (finish_forward): Update.
2903 * breakpoint.h (set_momentary_breakpoint)
2904 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2905 (make_cleanup_delete_breakpoint): Remove.
2906 (struct breakpoint_deleter): New.
2907 (breakpoint_up): New typedef.
2908 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
2909 (insert_exception_resume_breakpoint): Update.
2910 (insert_exception_resume_from_probe): Update.
2911 (insert_longjmp_resume_breakpoint): Update.
2912 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
2913 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
2914 * infcall.c (call_function_by_hand_dummy): Update
2915
2916 2017-11-04 Tom Tromey <tom@tromey.com>
2917
2918 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
2919
2920 2017-11-04 Tom Tromey <tom@tromey.com>
2921
2922 * linux-tdep.c (linux_core_info_proc_mappings): Use
2923 gdb::def_vector.
2924 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
2925 "size" argument.
2926 (linux_corefile_thread): Update.
2927 (linux_make_corefile_notes): Remove unused variable.
2928
2929 2017-11-04 Tom Tromey <tom@tromey.com>
2930
2931 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
2932 gdb::byte_vector.
2933
2934 2017-11-04 Tom Tromey <tom@tromey.com>
2935
2936 * objfiles.c (do_free_objfile_cleanup): Remove.
2937 * compile/compile-object-load.c (compile_object_load): Update.
2938 * objfiles.h (make_cleanup_free_objfile): Remove.
2939
2940 2017-11-04 Tom Tromey <tom@tromey.com>
2941
2942 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
2943 (adi_read_versions): Change "tags" to "gdb_byte *".
2944 (adi_print_versions): Likewise.
2945
2946 2017-11-04 Tom Tromey <tom@tromey.com>
2947
2948 * breakpoint.c
2949 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
2950 from start_rbreak_breakpoints.
2951 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
2952 * breakpoint.h (class scoped_rbreak_breakpoints): New.
2953 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
2954 * symtab.c (do_end_rbreak_breakpoints): Remove.
2955 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
2956
2957 2017-11-04 Tom Tromey <tom@tromey.com>
2958
2959 * cp-namespace.c (reset_directive_searched): Remove.
2960 (cp_lookup_symbol_via_imports): Use scoped_restore.
2961 * cp-support.c (reset_directive_searched): Remove.
2962 (make_symbol_overload_list_using): Use scoped_restore.
2963 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
2964 (reset_directive_searched): Remove.
2965
2966 2017-11-04 Tom Tromey <tom@tromey.com>
2967
2968 * symfile.c (find_separate_debug_file_by_debuglink): Use
2969 unique_xmalloc_ptr.
2970
2971 2017-11-04 Tom Tromey <tom@tromey.com>
2972
2973 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
2974 type of "info".
2975 (compute_stack_depth): Likewise.
2976 (do_compile_dwarf_expr_to_c): Use std::vector.
2977
2978 2017-11-04 Tom Tromey <tom@tromey.com>
2979
2980 * compile/compile-object-load.c (link_callbacks_einfo): Use
2981 std::string.
2982
2983 2017-11-04 Tom Tromey <tom@tromey.com>
2984
2985 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2986 Use scoped_free_pendings.
2987 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
2988 scoped_free_pendings.
2989 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
2990 (xcoff_initial_scan): Likewise.
2991 * buildsym.c (reset_symtab_globals): Update comment.
2992 (scoped_free_pendings): Rename from really_free_pendings.
2993 (prepare_for_building): Update comment.
2994 (buildsym_init): Likewise.
2995 * buildsym.h (class scoped_free_pendings): New class.
2996 (really_free_pendings): Don't declare.
2997
2998 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2999
3000 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3001 output when converting a zero value to a special byteorder format.
3002
3003 2017-11-02 Yao Qi <yao.qi@linaro.org>
3004
3005 * frame.c (do_frame_register_read): Remove aspace.
3006 * jit.c (jit_frame_sniffer): Likwise.
3007 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3008 * regcache.c (regcache::regcache): Pass nullptr.
3009 (regcache_print): Caller updated.
3010 * regcache.h (regcache::regcache): Remove one constructor
3011 parameter aspace.
3012
3013 2017-11-02 Yao Qi <yao.qi@linaro.org>
3014
3015 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3016
3017 2017-11-02 Yao Qi <yao.qi@linaro.org>
3018
3019 * breakpoint.c (insert_single_step_breakpoints): Update.
3020 * frame.c (struct frame_info) <aspace>: Add const.
3021 (frame_save_as_regcache): Add const.
3022 (get_frame_address_space): Return const address_space *.
3023 * frame.h (get_frame_address_space): Update declaration.
3024 * infrun.c (struct step_over_info) <aspace>: Add const.
3025 (set_step_over_info): Make aspace const.
3026 (displaced_step_prepare_throw): Change variable const.
3027 (resume): Likewise.
3028 (proceed): Likewise.
3029 (adjust_pc_after_break): Likewise.
3030 (save_waitstatus): Likewise.
3031 (handle_signal_stop): Likewise.
3032 (keep_going_pass_signal): Likewise.
3033 * jit.c (jit_frame_sniffer): Add const.
3034 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3035 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3036 * record-full.c (record_full_wait_1): Likewise.
3037 * regcache.c (regcache::regcache): Change parameter to const.
3038 * regcache.h (regcache::regcache): Likewise.
3039 (regcache::aspace): Return const address_space *.
3040 (regcache) <m_aspace>: Add const.
3041
3042 2017-11-02 Yao Qi <yao.qi@linaro.org>
3043
3044 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3045 * frame.c (create_sentinel_frame): Likewise.
3046 * infrun.c (displaced_step_prepare_throw): Likewise.
3047 (resume): Likewise.
3048 (thread_still_needs_step_over_bp): Likewise.
3049 (proceed): Likewise.
3050 (do_target_wait): Likewise.
3051 (adjust_pc_after_break): Likewise.
3052 (handle_syscall_event): Likewise.
3053 (save_waitstatus): Likewise.
3054 (handle_inferior_event_1): Likewise.
3055 (handle_signal_stop): Likewise.
3056 (keep_going_pass_signal): Likewise.
3057 * linux-nat.c (status_callback): Likewise.
3058 (save_stop_reason): Likewise.
3059 (resume_stopped_resumed_lwps): Likewise.
3060 * record-full.c (record_full_exec_insn): Likewise.
3061 (record_full_wait_1): Likewise.
3062 * regcache.c (get_regcache_aspace): Remove.
3063 * regcache.h (get_regcache_aspace): Remove.
3064
3065 2017-11-02 Yao Qi <yao.qi@linaro.org>
3066
3067 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3068 (init_regcache_descr): Use gdbarch_num_regs.
3069 (regcache::regcache): Likewise.
3070 (regcache::get_register_status): Likewise.
3071 (regcache::assert_raw_regnum): Likewise.
3072 (regcache::cooked_read): Likewise.
3073 (regcache::cooked_read_value): Likewise.
3074 (regcache::cooked_write): Likewise.
3075 (regcache::dump): Likewise.
3076 (regcache::num_raw_registers): New method.
3077 * regcache.h (class regcache) <num_raw_registers>: New.
3078
3079 2017-11-02 Yao Qi <yao.qi@linaro.org>
3080
3081 * regcache.c (regcache::assert_regnum): New method.
3082 (regcache::invalidate): Call assert_regnum.
3083 (regcache::raw_update): Likewise.
3084 (regcache::raw_write): Likewise.
3085 (regcache::raw_read_part): Likewise.
3086 (regcache::raw_write_part): Likewise.
3087 (regcache::raw_supply): Likewise.
3088 (regcache::raw_supply_integer): Likewise.
3089 (regcache::raw_supply_zeroed): Likewise.
3090 (regcache::raw_collect): Likewise.
3091 (regcache::raw_collect_integer): Likewise.
3092 * regcache.h (regcache::assert_regnum): Declare.
3093
3094 2017-11-02 Yao Qi <yao.qi@linaro.org>
3095
3096 * regcache.c (regcache::dump): Remove code.
3097
3098 2017-11-02 Yao Qi <yao.qi@linaro.org>
3099
3100 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3101 Remove.
3102 <sizeof_cooked_register_status>: Remove.
3103 (init_regcache_descr): Update.
3104 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3105 (regcache::save): Likewise.
3106 (regcache::dump): Likewise.
3107
3108 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3109
3110 * ft32-tdep.c (ft32_fetch_instruction): New function.
3111 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3112
3113 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3114
3115 * cli/cli-script.c (execute_control_command): Rename to ...
3116 (execute_control_command_1): ... this.
3117 (execute_control_command): New function.
3118
3119 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3120
3121 * tracepoint.c (tfind_command): Remove const_cast.
3122
3123 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3124
3125 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3126
3127 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3128
3129 * common/common-utils.h (in_inclusive_range): New function.
3130 * arm-tdep.c (arm_record_extension_space): Use
3131 in_inclusive_range.
3132 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3133 * cris-tdep.c (cris_spec_reg_applicable): Use
3134 in_inclusive_range.
3135
3136 2017-10-30 Pedro Alves <palves@redhat.com>
3137 Simon Marchi <simon.marchi@ericsson.com>
3138
3139 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3140 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3141
3142 2017-10-30 Pedro Alves <palves@redhat.com>
3143
3144 * common/common-utils.c (string_appendf, string_vappendf): New
3145 functions.
3146 * common/common-utils.h (string_appendf, string_vappendf): New
3147 declarations.
3148 * unittests/common-utils-selftests.c (string_appendf_func)
3149 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3150 (string_vappendf_tests): New functions.
3151 (_initialize_common_utils_selftests): Register "string_appendf" and
3152 "string_vappendf tests".
3153
3154 2017-10-30 Pedro Alves <palves@redhat.com>
3155
3156 * unittests/common-utils-selftests.c (format_func): New typedef.
3157 (string_printf_tests, string_vprintf_tests): Tests factored out
3158 and merged to ...
3159 (test_format_func): ... this new function.
3160 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3161 test_format_func.
3162
3163 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3164
3165 * darwin-nat.c: Remove include of gdb.h.
3166
3167 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3168
3169 * xtensa-xtregs.c: Fix formatting issues.
3170
3171 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3172
3173 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3174
3175 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3176
3177 PR python/21213
3178 * python/py-infthread.c (thpy_get_inferior): Increment reference
3179 of inferior before returning it.
3180
3181 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3182
3183 * unittests/common-utils-selftests.c (format): Add
3184 ATTRIBUTE_PRINTF.
3185
3186 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3187
3188 * xml-syscall.c (struct syscall_desc): Add constructor.
3189 <name>: Change type to std::string.
3190 (syscall_desc_up): New typedef.
3191 (syscall_desc_p): Remove typeder.
3192 (DEF_VEC_P(syscall_desc_p)): Remove.
3193 (struct syscall_group_desc): Add constructor.
3194 <name>: Change type to std::string.
3195 <syscalls>: Change type to std::vector.
3196 (syscall_group_desc_up): New typedef.
3197 (syscall_group_desc_p): Remove typedef.
3198 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3199 (struct syscalls_info) <syscalls>: Change type to std::vector of
3200 unique_ptr.
3201 <groups>: Likewise.
3202 <my_gdb_datadir>: Change type to std::string.
3203 (syscalls_info_up): New typedef.
3204 (allocate_syscalls_info): Remove.
3205 (syscalls_info_free_syscalls_desc): Remove.
3206 (syscalls_info_free_syscall_group_desc): Remove.
3207 (free_syscalls_info): Remove.
3208 (make_cleanup_free_syscalls_info): Remove.
3209 (syscall_group_create_syscall_group_desc): Adjust.
3210 (syscall_group_add_syscall): Adjust.
3211 (syscall_create_syscall_desc): Adjust.
3212 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3213 (init_syscalls_info): Adjust.
3214 (syscall_group_get_group_by_name): Adjust.
3215 (xml_get_syscall_number): Adjust.
3216 (xml_get_syscall_name): Adjust.
3217 (xml_list_of_syscalls): Adjust.
3218 (xml_list_syscalls_by_group): Adjust.
3219 (xml_list_of_groups): Adjust.
3220
3221 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3222
3223 * probe.h: Don't include gdb_vecs.h.
3224 (DEF_VEC_P (probe_p)): Remove.
3225 (find_probes_in_objfile): Return an std::vector.
3226 * probe.c (find_probes_in_objfile): Likewise.
3227 * breakpoint.c (breakpoint_objfile_data)
3228 <longjmp_probes>: Change type to std::vector.
3229 <exception_probes>: Likewise.
3230 (free_breakpoint_probes): Don't manually free vectors.
3231 (create_longjmp_master_breakpoint): Adjust.
3232 (create_exception_master_breakpoint): Adjust.
3233 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3234 parameter type, adjust.
3235 (svr4_create_solib_event_breakpoints): Adjust.
3236
3237 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3238
3239 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3240 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3241 with new.
3242 (free_breakpoint_probes): Rename to ...
3243 (free_breakpoint_objfile_data): ... this, and call delete on
3244 bp_objfile_data..
3245
3246 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3247
3248 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3249 (loaded_script_ptr): Remove typedef.
3250 (DEF_VEC_P (loaded_script_ptr)): Remove.
3251 (struct collect_matching_scripts_data): Add constructor.
3252 <scripts_p>: Change type to (pointer to) std::vector.
3253 (collect_matching_scripts_data): Adjust.
3254 (sort_scripts_by_name): Make suitable for std::sort.
3255 (print_scripts): Don't sort vector, adjust to std::vector.
3256 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3257
3258 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3259
3260 * symfile.c (filename_language): Make struct, not typedef. Add
3261 constructor.
3262 <ext>: Change type to std::string.
3263 (DEF_VEC_O (filename_language)): Remove.
3264 (filename_language_table): Change type to std::vector.
3265 (add_filename_language): Adjust.
3266 (set_ext_lang_command): Adjust.
3267 (info_ext_lang_command): Adjust.
3268 (deduce_language_from_filename): Adjust.
3269 (class scoped_restore_filename_language_table): Remove.
3270 (test_filename_language): Use scoped_restore.
3271 (test_set_ext_lang_command): Use scoped_restore, adjust to
3272 std::vector change.
3273
3274 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3275
3276 * symfile.c: Include selftest.h.
3277 (class scoped_restore_filename_language_table): New.
3278 (test_filename_language): New test.
3279 (test_set_ext_lang_command): New test.
3280 (_initialize_symfile): Register tests.
3281
3282 2017-10-27 Keith Seitz <keiths@redhat.com>
3283
3284 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3285 in the bp_location, falling back to find_pc_sect_function when
3286 needed.
3287 (add_location_to_breakpoint): Save sal->symbol.
3288 * breakpoint.h (struct bp_location) <symbol>: New field.
3289 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3290 * symtab.h (struct symtab_and_line) <symbol>: New field.
3291
3292 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3293
3294 PR gdb/13669
3295 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3296 to rewind obstack.
3297
3298 2017-10-26 Pedro Alves <palves@redhat.com>
3299
3300 * remote.c (remote_async_terminal_ours_p): Delete.
3301 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3302 Remove references to 'remote_async_terminal_ours_p'.
3303
3304 2017-10-26 Yao Qi <yao.qi@linaro.org>
3305
3306 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3307
3308 2017-10-26 Yao Qi <yao.qi@linaro.org>
3309
3310 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3311 aspace const.
3312 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3313 Likewise.
3314 * breakpoint.c (bpstat_check_location): Remove cast.
3315 (breakpoint_hit_catch_fork): Make aspce const.
3316 (breakpoint_hit_catch_solib): Likewise.
3317 (breakpoint_hit_catch_exec): Likewise.
3318 (breakpoint_hit_ranged_breakpoint): Likewise.
3319 (breakpoint_hit_watchpoint): Likewise.
3320 (base_breakpoint_breakpoint_hit): Likewise.
3321 (bkpt_breakpoint_hit): Likewise.
3322 (dprintf_breakpoint_hit): Likewise.
3323 (tracepoint_breakpoint_hit): Likewise.
3324 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3325
3326 2017-10-26 Yao Qi <yao.qi@linaro.org>
3327
3328 * breakpoint.c (breakpoint_location_address_match): Change
3329 "struct address_space *" to "const address_space".
3330 (breakpoint_location_address_range_overlap): Likewise.
3331 (breakpoint_here_p): Likewise.
3332 (breakpoint_in_range_p): Likewise.
3333 (moribund_breakpoint_here_p): Likewise.
3334 (bp_location_inserted_here_p): Likewise.
3335 (software_breakpoint_inserted_here_p): Likewise.
3336 (hardware_breakpoint_inserted_here_p): Likewise.
3337 (hardware_watchpoint_inserted_in_range): Likewise.
3338 (bpstat_check_location): Likewise.
3339 (bpstat_stop_status): Likewise.
3340 (breakpoint_address_match): Likewise.
3341 (breakpoint_address_match_range): Likewise.
3342 (breakpoint_location_address_match): Likewise.
3343 (breakpoint_location_address_range_overlap): Likewise.
3344 (insert_single_step_breakpoint): Likewise.
3345 (breakpoint_has_location_inserted_here): Likewise.
3346 (single_step_breakpoint_inserted_here_p): Likewise.
3347 (pc_at_non_inline_function): Likewise.
3348 * breakpoint.h (bpstat_stop_status): Update declaration.
3349 (breakpoint_here_p): Likewise.
3350 (breakpoint_in_range_p): Likewise.
3351 (moribund_breakpoint_here_p): Likewise.
3352 (breakpoint_inserted_here_p): Likewise.
3353 (software_breakpoint_inserted_here_p): Likewise.
3354 (hardware_breakpoint_inserted_here_p): Likewise.
3355 (breakpoint_has_location_inserted_here): Likewise.
3356 (single_step_breakpoint_inserted_here_p): Likewise.
3357 (hardware_watchpoint_inserted_in_range): Likewise.
3358 (breakpoint_address_match): Likewise.
3359 (insert_single_step_breakpoint): Likewise.
3360 (pc_at_non_inline_function): Likewise.
3361 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3362 * record.c (record_check_stopped_by_breakpoint): Likewise.
3363 * record.h (record_check_stopped_by_breakpoint): Likewise.
3364 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3365
3366 2017-10-25 Yao Qi <yao.qi@linaro.org>
3367
3368 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3369 regcache->arch () instead get_regcache_arch.
3370 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3371 Likewise.
3372 (aarch64_fbsd_store_inferior_registers): Likewise.
3373 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3374 (store_gregs_to_thread): Likewise.
3375 (fetch_fpregs_from_thread): Likewise.
3376 (store_fpregs_to_thread): Likewise.
3377 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
3378 (aarch64_store_return_value): Likewise.
3379 (aarch64_software_single_step): Likewise.
3380 * aix-thread.c (aix_thread_wait): Likewise.
3381 (supply_reg32): Likewise.
3382 (supply_sprs64): Likewise.
3383 (supply_sprs32): Likewise.
3384 (fill_gprs64): Likewise.
3385 (fill_gprs32): Likewise.
3386 (fill_sprs64): Likewise.
3387 (fill_sprs32): Likewise.
3388 (store_regs_user_thread): Likewise.
3389 (store_regs_kernel_thread): Likewise.
3390 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3391 (alphabsd_store_inferior_registers): Likewise.
3392 * alpha-tdep.c (alpha_extract_return_value): Likewise.
3393 (alpha_store_return_value): Likewise.
3394 (alpha_deal_with_atomic_sequence): Likewise.
3395 (alpha_next_pc): Likewise.
3396 (alpha_software_single_step): Likewise.
3397 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3398 (amd64bsd_store_inferior_registers): Likewise.
3399 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3400 Likewise.
3401 (amd64_linux_store_inferior_registers): Likewise.
3402 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
3403 (amd64_collect_native_gregset): Likewise.
3404 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
3405 (amd64obsd_collect_uthread): Likewise.
3406 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
3407 (amd64_collect_fpregset): Likewise.
3408 (amd64_supply_fxsave): Likewise.
3409 (amd64_supply_xsave): Likewise.
3410 (amd64_collect_fxsave): Likewise.
3411 (amd64_collect_xsave): Likewise.
3412 * arc-tdep.c (arc_write_pc): Likewise.
3413 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
3414 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
3415 (arm_fbsd_store_inferior_registers): Likewise.
3416 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
3417 (store_vfp_regs): Likewise.
3418 (arm_linux_fetch_inferior_registers): Likewise.
3419 (arm_linux_store_inferior_registers): Likewise.
3420 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3421 (arm_linux_sigreturn_next_pc): Likewise.
3422 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3423 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
3424 (fetch_register): Likewise.
3425 (store_register): Likewise.
3426 * arm-tdep.c (arm_is_thumb): Likewise.
3427 (displaced_in_arm_mode): Likewise.
3428 (bx_write_pc): Likewise.
3429 (arm_get_next_pcs_addr_bits_remove): Likewise.
3430 (arm_software_single_step): Likewise.
3431 (arm_extract_return_value): Likewise.
3432 (arm_store_return_value): Likewise.
3433 (arm_write_pc): Likewise.
3434 * bfin-tdep.c (bfin_extract_return_value): Likewise.
3435 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3436 (bsd_uthread_store_registers): Likewise.
3437 * core-regset.c (fetch_core_registers): Likewise.
3438 * corelow.c (get_core_registers): Likewise.
3439 * cris-tdep.c (cris_store_return_value): Likewise.
3440 (cris_extract_return_value): Likewise.
3441 (find_step_target): Likewise.
3442 (find_step_target): Likewise.
3443 (cris_software_single_step): Likewise.
3444 * ctf.c (ctf_fetch_registers): Likewise.
3445 * darwin-nat.c (cancel_breakpoint): Likewise.
3446 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
3447 * frv-tdep.c (frv_extract_return_value): Likewise.
3448 * ft32-tdep.c (ft32_store_return_value): Likewise.
3449 (ft32_extract_return_value): Likewise.
3450 * go32-nat.c (fetch_register): Likewise.
3451 (go32_fetch_registers): Likewise.
3452 (go32_store_registers): Likewise.
3453 (store_register): Likewise.
3454 * h8300-tdep.c (h8300_extract_return_value): Likewise.
3455 (h8300_store_return_value): Likewise.
3456 * hppa-linux-nat.c (fetch_register): Likewise.
3457 (store_register): Likewise.
3458 (hppa_linux_fetch_inferior_registers): Likewise.
3459 (hppa_linux_store_inferior_registers): Likewise.
3460 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
3461 (i386_darwin_store_inferior_registers): Likewise.
3462 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
3463 (gnu_store_registers): Likewise.
3464 * i386-linux-nat.c (fetch_register): Likewise.
3465 (store_register): Likewise.
3466 (supply_gregset): Likewise.
3467 (fill_gregset): Likewise.
3468 (i386_linux_fetch_inferior_registers): Likewise.
3469 (i386_linux_store_inferior_registers): Likewise.
3470 (i386_linux_resume): Likewise.
3471 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
3472 Likewise.
3473 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
3474 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
3475 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
3476 (i386obsd_collect_uthread): Likewise.
3477 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3478 (i386_supply_gregset): Likewise.
3479 (i386_collect_gregset): Likewise.
3480 (i386_supply_fpregset): Likewise.
3481 (i386_collect_fpregset): Likewise.
3482 (i386_mpx_bd_base): Likewise.
3483 * i386-v4-nat.c (supply_fpregset): Likewise.
3484 (fill_fpregset): Likewise.
3485 * i387-tdep.c (i387_supply_fsave): Likewise.
3486 (i387_collect_fsave): Likewise.
3487 (i387_supply_fxsave): Likewise.
3488 (i387_collect_fxsave): Likewise.
3489 (i387_supply_xsave): Likewise.
3490 (i387_collect_xsave): Likewise.
3491 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3492 (ia64_linux_store_registers): Likewise.
3493 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3494 (ia64_extract_return_value): Likewise.
3495 (ia64_store_return_value): Likewise.
3496 (find_func_descr): Likewise.
3497 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3498 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3499 (inf_ptrace_store_registers): Likewise.
3500 * infrun.c (use_displaced_stepping): Likewise.
3501 (displaced_step_prepare_throw): Likewise.
3502 (resume): Likewise.
3503 (proceed): Likewise.
3504 (do_target_wait): Likewise.
3505 (adjust_pc_after_break): Likewise.
3506 (handle_inferior_event_1): Likewise.
3507 (handle_signal_stop): Likewise.
3508 (save_infcall_suspend_state): Likewise.
3509 (restore_infcall_suspend_state): Likewise.
3510 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3511 * jit.c (jit_frame_prev_register): Likewise.
3512 * linux-nat.c (save_stop_reason): Likewise.
3513 (linux_nat_wait_1): Likewise.
3514 (resume_stopped_resumed_lwps): Likewise.
3515 * linux-record.c (record_linux_sockaddr): Likewise.
3516 (record_linux_msghdr): Likewise.
3517 (record_linux_system_call): Likewise.
3518 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3519 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3520 (lm32_store_return_value): Likewise.
3521 * m32c-tdep.c (m32c_read_flg): Likewise.
3522 (m32c_pseudo_register_read): Likewise.
3523 (m32c_pseudo_register_write): Likewise.
3524 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3525 (m32r_linux_collect_gregset): Likewise.
3526 * m32r-tdep.c (m32r_store_return_value): Likewise.
3527 (m32r_extract_return_value): Likewise.
3528 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3529 (m68kbsd_collect_fpregset): Likewise.
3530 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3531 * m68k-linux-nat.c (fetch_register): Likewise.
3532 (old_fetch_inferior_registers): Likewise.
3533 (old_store_inferior_registers): Likewise.
3534 (store_regs): Likewise.
3535 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
3536 (m68k_svr4_store_return_value): Likewise.
3537 * m88k-tdep.c (m88k_store_arguments): Likewise.
3538 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
3539 (mi_cmd_data_write_register_values): Likewise.
3540 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
3541 (mips_fbsd_store_inferior_registers): Likewise.
3542 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
3543 (mips_fbsd_supply_gregs): Likewise.
3544 (mips_fbsd_collect_fpregs): Likewise.
3545 (mips_fbsd_collect_gregs): Likewise.
3546 (mips_fbsd_supply_fpregset): Likewise.
3547 (mips_fbsd_collect_fpregset): Likewise.
3548 (mips_fbsd_supply_gregset): Likewise.
3549 (mips_fbsd_collect_gregset): Likewise.
3550 * mips-linux-nat.c (supply_gregset): Likewise.
3551 (fill_gregset): Likewise.
3552 (supply_fpregset): Likewise.
3553 (fill_fpregset): Likewise.
3554 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
3555 (mips_fill_gregset): Likewise.
3556 (mips_supply_fpregset): Likewise.
3557 (mips_fill_fpregset): Likewise.
3558 (mips64_supply_gregset): Likewise.
3559 (micromips_linux_sigframe_validate): Likewise.
3560 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3561 (mipsnbsd_fetch_inferior_registers): Likewise.
3562 (mipsnbsd_store_inferior_registers): Likewise.
3563 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3564 (mipsnbsd_supply_gregset): Likewise.
3565 (mipsnbsd_iterate_over_regset_sections): Likewise.
3566 (mipsnbsd_supply_reg): Likewise.
3567 (mipsnbsd_supply_fpreg): Likewise.
3568 * mips-tdep.c (mips_in_frame_stub): Likewise.
3569 (mips_dummy_id): Likewise.
3570 (is_octeon_bbit_op): Likewise.
3571 (micromips_bc1_pc): Likewise.
3572 (extended_mips16_next_pc): Likewise.
3573 (mips16_next_pc): Likewise.
3574 (deal_with_atomic_sequence): Likewise.
3575 * moxie-tdep.c (moxie_process_readu): Likewise.
3576 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3577 * nto-procfs.c (procfs_store_registers): Likewise.
3578 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
3579 (ppcfbsd_store_inferior_registers): Likewise.
3580 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
3581 (fetch_altivec_register): Likewise.
3582 (get_spe_registers): Likewise.
3583 (fetch_spe_register): Likewise.
3584 (fetch_altivec_registers): Likewise.
3585 (fetch_all_gp_regs): Likewise.
3586 (fetch_all_fp_regs): Likewise.
3587 (store_vsx_register): Likewise.
3588 (store_altivec_register): Likewise.
3589 (set_spe_registers): Likewise.
3590 (store_spe_register): Likewise.
3591 (store_altivec_registers): Likewise.
3592 (store_all_gp_regs): Likewise.
3593 (store_all_fp_regs): Likewise.
3594 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
3595 (ppc_linux_collect_gregset): Likewise.
3596 (ppc_canonicalize_syscall): Likewise.
3597 (ppc_linux_record_signal): Likewise.
3598 (ppu2spu_prev_register): Likewise.
3599 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
3600 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
3601 (ppcobsd_store_registers): Likewise.
3602 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
3603 Likewise.
3604 (ppc_ravenscar_generic_store_registers): Likewise.
3605 * procfs.c (procfs_fetch_registers): Likewise.
3606 (procfs_store_registers): Likewise.
3607 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
3608 (ravenscar_store_registers): Likewise.
3609 (ravenscar_prepare_to_store): Likewise.
3610 * record-btrace.c (record_btrace_fetch_registers): Likewise.
3611 * record-full.c (record_full_wait_1): Likewise.
3612 (record_full_registers_change): Likewise.
3613 (record_full_store_registers): Likewise.
3614 (record_full_core_fetch_registers): Likewise.
3615 (record_full_save): Likewise.
3616 (record_full_goto_insn): Likewise.
3617 * regcache.c (regcache_register_size): Likewise.
3618 (get_regcache_arch): Remove.
3619 (regcache_read_pc): Likewise.
3620 * regcache.h (get_regcache_arch): Remove.
3621 * remote-sim.c (gdbsim_fetch_register): Likewise.
3622 (gdbsim_store_register): Likewise.
3623 * remote.c (fetch_register_using_p): Likewise.
3624 (send_g_packet): Likewise.
3625 (remote_prepare_to_store): Likewise.
3626 (store_registers_using_G): Likewise.
3627 * reverse.c (save_bookmark_command): Likewise.
3628 (goto_bookmark_command): Likewise.
3629 * rs6000-aix-tdep.c (branch_dest): Likewise.
3630 * rs6000-nat.c (rs6000_ptrace64): Likewise.
3631 (fetch_register): Likewise.
3632 * rs6000-tdep.c (ppc_supply_reg): Likewise.
3633 (ppc_collect_reg): Likewise.
3634 (ppc_collect_gregset): Likewise.
3635 (ppc_collect_fpregset): Likewise.
3636 (ppc_collect_vsxregset): Likewise.
3637 (ppc_collect_vrregset): Likewise.
3638 (ppc_displaced_step_hw_singlestep): Likewise.
3639 (rs6000_pseudo_register_read): Likewise.
3640 (rs6000_pseudo_register_write): Likewise.
3641 * s390-linux-nat.c (supply_gregset): Likewise.
3642 (fill_gregset): Likewise.
3643 (s390_linux_fetch_inferior_registers): Likewise.
3644 * s390-linux-tdep.c (s390_write_pc): Likewise.
3645 (s390_software_single_step): Likewise.
3646 (s390_all_but_pc_registers_record): Likewise.
3647 (s390_linux_syscall_record): Likewise.
3648 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
3649 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3650 (shnbsd_store_inferior_registers): Likewise.
3651 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3652 (sh_extract_return_value_fpu): Likewise.
3653 (sh_store_return_value_nofpu): Likewise.
3654 (sh_corefile_supply_regset): Likewise.
3655 (sh_corefile_collect_regset): Likewise.
3656 * sh64-tdep.c (sh64_extract_return_value): Likewise.
3657 (sh64_store_return_value): Likewise.
3658 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
3659 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
3660 (sparc_store_inferior_registers): Likewise.
3661 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
3662 (sparc_ravenscar_prepare_to_store): Likewise.
3663 * sparc-tdep.c (sparc32_store_arguments): Likewise.
3664 (sparc_analyze_control_transfer): Likewise.
3665 (sparc_step_trap): Likewise.
3666 (sparc_software_single_step): Likewise.
3667 (sparc32_gdbarch_init): Likewise.
3668 (sparc_supply_rwindow): Likewise.
3669 (sparc_collect_rwindow): Likewise.
3670 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
3671 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
3672 (sparc64nbsd_collect_gregset): Likewise.
3673 (sparc64nbsd_supply_fpregset): Likewise.
3674 (sparc64nbsd_collect_fpregset): Likewise.
3675 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
3676 (sparc64_supply_gregset): Likewise.
3677 (sparc64_collect_gregset): Likewise.
3678 (sparc64_supply_fpregset): Likewise.
3679 (sparc64_collect_fpregset): Likewise.
3680 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3681 * spu-tdep.c (spu_unwind_sp): Likewise.
3682 (spu2ppu_prev_register): Likewise.
3683 (spu_memory_remove_breakpoint): Likewise.
3684 * stack.c (return_command): Likewise.
3685 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
3686 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3687 * tracefile.c (trace_save_ctf): Likewise.
3688 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
3689 (do_windows_store_inferior_registers): Likewise.
3690 (windows_resume): Likewise.
3691 * xtensa-linux-nat.c (fill_gregset): Likewise.
3692 (supply_gregset_reg): Likewise.
3693 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
3694 (xtensa_register_read_masked): Likewise.
3695 (xtensa_supply_gregset): Likewise.
3696 (xtensa_extract_return_value): Likewise.
3697 (xtensa_store_return_value): Likewise.
3698
3699 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
3700
3701 * doublest.c (floatformat_from_string): New function.
3702 * doublest.h (floatformat_from_string): Add prototype.
3703
3704 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
3705 (OP_FLOAT): ... this.
3706 * expression.h: Do not include "doublest.h".
3707 (union exp_element): Replace doubleconst and decfloatconst by
3708 new element floatconst.
3709 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
3710 (ada_evaluate_subexp): Likewise.
3711 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
3712 OP_DOUBLE and OP_DECFLOAT.
3713 * expprint.c (print_subexp_standard): Likewise.
3714 (dump_subexp_body_standard): Likewise.
3715 * breakpoint.c (watchpoint_exp_is_const): Likewise.
3716
3717 * parse.c: Include "dfp.h".
3718 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3719 (write_exp_elt_floatcst): New function.
3720 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
3721 and OP_DECFLOAT.
3722 (operator_check_standard): Likewise.
3723 (parse_float): Do not accept suffix. Take type as input. Return bool.
3724 Return target format buffer instead of host DOUBLEST.
3725 Use floatformat_from_string and decimal_from_string to parse
3726 either binary or decimal floating-point types.
3727 (parse_c_float): Remove.
3728 * parser-defs.h: Do not include "doublest.h".
3729 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3730 (write_exp_elt_floatcst): Add prototype.
3731 (parse_float): Update prototype.
3732 (parse_c_float): Remove.
3733
3734 * c-exp.y: Do not include "dfp.h".
3735 (typed_val_float): Use byte buffer instead of DOUBLEST.
3736 (typed_val_decfloat): Remove.
3737 (DECFLOAT): Remove.
3738 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3739 (parse_number): Update to new parse_float interface.
3740 Parse suffixes and determine type before calling parse_float.
3741 Handle decimal and binary FP types the same way.
3742
3743 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3744 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
3745 (parse_number): Update to new parse_float interface.
3746 Parse suffixes and determine type before calling parse_float.
3747
3748 * f-exp.y: Replace dval by typed_val_float.
3749 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3750 (parse_number): Use parse_float instead of atof.
3751
3752 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3753 (parse_go_float): Remove.
3754 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3755 (parse_number): Call parse_float instead of parse_go_float.
3756 Parse suffixes and determine type before calling parse_float.
3757
3758 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3759 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3760 (parse_number): Update to new parse_float interface.
3761 Parse suffixes and determine type before calling parse_float.
3762
3763 * m2-exp.y: Replace dval by byte buffer val.
3764 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3765 (parse_number): Call parse_float instead of atof.
3766
3767 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3768 (lex_number): Call parse_float instead of strtod.
3769 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
3770 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
3771 Use write_exp_elt_floatcst.
3772 (unit_testing): Remove static variable.
3773 (rust_type): Do not check unit_testing.
3774 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
3775
3776 * ada-exp.y (type_float, type_double): Remove.
3777 (typed_val_float): Use byte buffer instead of DOUBLEST.
3778 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3779 * ada-lex.l (processReal): Use parse_float instead of sscanf.
3780
3781 2017-10-25 Alan Hayward <alan.hayward@arm.com>
3782
3783 * aarch64-tdep.h (enum aarch64_regnum): Remove.
3784 * arch/aarch64.h: New file.
3785
3786 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3787
3788 * dfp.h (decimal_from_string): Use const reference for argument.
3789 * dfp.c (decimal_from_string): Likewise.
3790
3791 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3792
3793 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
3794 * sh64-tdep.c (sh64_do_fp_register): Likewise.
3795 * mips-tdep.c (mips_print_fp_register): Likewise.
3796
3797 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3798
3799 * common/format.h (enum argclass): Replace decfloat_arg by
3800 dec32float_arg, dec64float_arg, and dec128float_arg.
3801 * common/format.c (parse_format_string): Update to return
3802 new decimal float argument classes.
3803
3804 * printcmd.c (printf_decfloat): Rename to ...
3805 (printf_floating): ... this. Add argclass argument, and use it
3806 instead of parsing the format string again. Add support for
3807 binary floating-point values, using floatformat_to_string.
3808 Convert value to the target format if it doesn't already match.
3809 (ui_printf): Call printf_floating instead of printf_decfloat,
3810 also for double_arg / long_double_arg. Pass argclass.
3811
3812 * dfp.c (decimal_to_string): Add format string argument.
3813 * dfp.h (decimal_to_string): Likewise.
3814
3815 * doublest.c (floatformat_to_string): Add format string argument.
3816 * doublest.h (floatformat_to_string): Likewise.
3817
3818 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3819
3820 * doublest.c (floatformat_precision): New routine.
3821 (floatformat_to_string): Likewise.
3822 * doublest.c (floatformat_to_string): Add prototype.
3823
3824 * printcmd.c (print_scalar_formatted): Only call print_floating
3825 on floating-point types.
3826 * valprint.c: Do not include "floatformat.h".
3827 (generic_val_print_decfloat): Remove.
3828 (generic_val_print): Call generic_val_print_float for both
3829 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
3830 (print_floating): Use floatformat_to_string. Handle decimal float.
3831 (print_decimal_floating): Remove, merge into floatformat_to_string.
3832 * value.h (print_decimal_floating): Remove.
3833
3834 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
3835
3836 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3837
3838 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
3839
3840 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3841
3842 * memattr.h: Don't include vec.h.
3843 (struct mem_attrib): Initialize fields.
3844 <unknown>: New static method.
3845 (struct mem_region): Add constructors, operator<, initialize
3846 fields.
3847 * memattr.c: Include algorithm.
3848 (default_mem_attrib, unknown_mem_attrib): Remove.
3849 (user_mem_region_list): New global.
3850 (target_mem_region_list, mem_region_list): Change type to
3851 std::vector<mem_region>.
3852 (mem_use_target): Now a function.
3853 (target_mem_regions_valid): Change type to bool.
3854 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
3855 (require_user_regions): Adjust.
3856 (require_target_regions): Adjust.
3857 (create_mem_region): Adjust.
3858 (lookup_mem_region): Adjust.
3859 (invalidate_target_mem_regions): Adjust.
3860 (mem_clear): Rename to...
3861 (user_mem_clear): ... this, and adjust.
3862 (mem_command): Adjust.
3863 (info_mem_command): Adjust.
3864 (mem_enable, enable_mem_command, mem_disable,
3865 disable_mem_command): Adjust.
3866 (mem_delete): Adjust.
3867 (delete_mem_command): Adjust.
3868 * memory-map.h (parse_memory_map): Return an std::vector.
3869 * memory-map.c (parse_memory_map): Likewise.
3870 (struct memory_map_parsing_data): Add constructor.
3871 <memory_map>: Point to std::vector.
3872 (memory_map_start_memory): Adjust.
3873 (memory_map_end_memory): Adjust.
3874 (memory_map_end_property): Adjust.
3875 (clear_result): Remove.
3876 * remote.c (remote_memory_map): Return an std::vector.
3877 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
3878 Remove.
3879 (target_debug_print_mem_region_vector): New.
3880 * target-delegates.c: Regenerate.
3881 * target.h (mem_region_vector): New typedef.
3882 (to_memory_map): Return mem_region_vector.
3883 (target_memory_map): Return an std::vector.
3884 * target.c (target_memory_map): Return an std::vector.
3885 (flash_erase_command): Adjust.
3886
3887 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3888
3889 * memory-map.c (struct memory_map_parsing_data) <property_name>:
3890 Change type to std::string.
3891 (memory_map_start_property): Adjust.
3892 (memory_map_end_property): Adjust.
3893
3894 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3895
3896 * infrun.h: Include common/byte-vector.h.
3897 (struct displaced_step_closure): New struct.
3898 (struct buf_displaced_step_closure): New struct.
3899 * infrun.c (displaced_step_closure::~displaced_step_closure):
3900 Provide default implementation.
3901 (displaced_step_clear): Deallocate step closure with delete.
3902 * aarch64-tdep.c (displaced_step_closure): Rename to ...
3903 (aarch64_displaced_step_closure): ... this, extend
3904 displaced_step_closure.
3905 (aarch64_displaced_step_data) <dsc>: Change type to
3906 aarch64_displaced_step_closure.
3907 (aarch64_displaced_step_copy_insn): Adjust to type change, use
3908 unique_ptr.
3909 (aarch64_displaced_step_fixup): Add cast for displaced step
3910 closure.
3911 * amd64-tdep.c (displaced_step_closure): Rename to ...
3912 (amd64_displaced_step_closure): ... this, extend
3913 displaced_step_closure.
3914 <insn_buf>: Change type to std::vector<gdb_byte>.
3915 <max_len>: Remove.
3916 (fixup_riprel): Change type of DSC parameter, adjust to type
3917 change of insn_buf.
3918 (fixup_displaced_copy): Change type of DSC parameter.
3919 (amd64_displaced_step_copy_insn): Instantiate
3920 amd64_displaced_step_closure.
3921 (amd64_displaced_step_fixup): Add cast for closure type, adjust
3922 to type change of insn_buf.
3923 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
3924 parameter DSC.
3925 (arm_linux_copy_svc): Likewise.
3926 (cleanup_kernel_helper_return): Likewise.
3927 (arm_catch_kernel_helper_return): Likewise.
3928 (arm_linux_displaced_step_copy_insn): Instantiate
3929 arm_displaced_step_closure.
3930 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
3931 (displaced_read_reg): Change type of parameter DSC.
3932 (branch_write_pc): Likewise.
3933 (load_write_pc): Likewise.
3934 (alu_write_pc): Likewise.
3935 (displaced_write_reg): Likewise.
3936 (arm_copy_unmodified): Likewise.
3937 (thumb_copy_unmodified_32bit): Likewise.
3938 (thumb_copy_unmodified_16bit): Likewise.
3939 (cleanup_preload): Likewise.
3940 (install_preload): Likewise.
3941 (arm_copy_preload): Likewise.
3942 (thumb2_copy_preload): Likewise.
3943 (install_preload_reg): Likewise.
3944 (arm_copy_preload_reg): Likewise.
3945 (cleanup_copro_load_store): Likewise.
3946 (install_copro_load_store): Likewise.
3947 (arm_copy_copro_load_store) Likewise.
3948 (thumb2_copy_copro_load_store): Likewise.
3949 (cleanup_branch): Likewise.
3950 (install_b_bl_blx): Likewise.
3951 (arm_copy_b_bl_blx): Likewise.
3952 (thumb2_copy_b_bl_blx): Likewise.
3953 (thumb_copy_b): Likewise.
3954 (install_bx_blx_reg): Likewise.
3955 (arm_copy_bx_blx_reg): Likewise.
3956 (thumb_copy_bx_blx_reg): Likewise.
3957 (cleanup_alu_imm): Likewise.
3958 (arm_copy_alu_imm): Likewise.
3959 (thumb2_copy_alu_imm): Likewise.
3960 (cleanup_alu_reg): Likewise.
3961 (install_alu_reg): Likewise.
3962 (arm_copy_alu_reg): Likewise.
3963 (thumb_copy_alu_reg): Likewise.
3964 (cleanup_alu_shifted_reg): Likewise.
3965 (install_alu_shifted_reg): Likewise.
3966 (arm_copy_alu_shifted_reg): Likewise.
3967 (cleanup_load): Likewise.
3968 (cleanup_store): Likewise.
3969 (arm_copy_extra_ld_st): Likewise.
3970 (install_load_store): Likewise.
3971 (thumb2_copy_load_literal): Likewise.
3972 (thumb2_copy_load_reg_imm): Likewise.
3973 (arm_copy_ldr_str_ldrb_strb): Likewise.
3974 (cleanup_block_load_all): Likewise.
3975 (cleanup_block_store_pc): Likewise.
3976 (cleanup_block_load_pc): Likewise.
3977 (arm_copy_block_xfer): Likewise.
3978 (thumb2_copy_block_xfer): Likewise.
3979 (cleanup_svc): Likewise.
3980 (install_svc): Likewise.
3981 (arm_copy_svc): Likewise.
3982 (thumb_copy_svc): Likewise.
3983 (arm_copy_undef): Likewise.
3984 (thumb_32bit_copy_undef): Likewise.
3985 (arm_copy_unpred): Likewise.
3986 (arm_decode_misc_memhint_neon): Likewise.
3987 (arm_decode_unconditional): Likewise.
3988 (arm_decode_miscellaneous): Likewise.
3989 (arm_decode_dp_misc): Likewise.
3990 (arm_decode_ld_st_word_ubyte): Likewise.
3991 (arm_decode_media): Likewise.
3992 (arm_decode_b_bl_ldmstm): Likewise.
3993 (arm_decode_ext_reg_ld_st): Likewise.
3994 (thumb2_decode_dp_shift_reg): Likewise.
3995 (thumb2_decode_ext_reg_ld_st): Likewise.
3996 (arm_decode_svc_copro): Likewise.
3997 (thumb2_decode_svc_copro): Likewise.
3998 (install_pc_relative): Likewise.
3999 (thumb_copy_pc_relative_16bit): Likewise.
4000 (thumb_decode_pc_relative_16bit): Likewise.
4001 (thumb_copy_pc_relative_32bit): Likewise.
4002 (thumb_copy_16bit_ldr_literal): Likewise.
4003 (thumb_copy_cbnz_cbz): Likewise.
4004 (thumb2_copy_table_branch): Likewise.
4005 (cleanup_pop_pc_16bit_all): Likewise.
4006 (thumb_copy_pop_pc_16bit): Likewise.
4007 (thumb_process_displaced_16bit_insn): Likewise.
4008 (decode_thumb_32bit_ld_mem_hints): Likewise.
4009 (thumb_process_displaced_32bit_insn): Likewise.
4010 (thumb_process_displaced_insn): Likewise.
4011 (arm_process_displaced_insn): Likewise.
4012 (arm_displaced_init_closure): Likewise.
4013 (arm_displaced_step_fixup): Add cast for closure.
4014 * arm-tdep.h: Include infrun.h.
4015 (displaced_step_closure): Rename to ...
4016 (arm_displaced_step_closure): ... this, extend
4017 displaced_step_closure.
4018 <u::svc::copy_svc_os>: Change type of parameter DSC.
4019 <cleanup>: Likewise.
4020 (arm_process_displaced_insn): Likewise.
4021 (arm_displaced_init_closure): Likewise.
4022 (displaced_read_reg): Likewise.
4023 (displaced_write_reg): Likewise.
4024 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4025 Adjust.
4026 * i386-tdep.h: Include infrun.h.
4027 (i386_displaced_step_closure): New typedef.
4028 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4029 i386_displaced_step_closure.
4030 (i386_displaced_step_fixup): Adjust.
4031 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4032 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4033 and unique_ptr.
4034 (ppc_displaced_step_fixup): Adjust.
4035 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4036 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4037 and unique_ptr.
4038 (s390_displaced_step_fixup): Adjust.
4039
4040 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4041
4042 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4043 Remove declarations.
4044
4045 2017-10-20 Tom Tromey <tom@tromey.com>
4046
4047 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4048 std::vector.
4049 (gdb_bfd_record_inclusion): Update.
4050 (bfdp): Remove typedef.
4051
4052 2017-10-20 Tom Tromey <tom@tromey.com>
4053
4054 * gdb_bfd.c (gdb_bfd_ref): Use new.
4055 (struct gdb_bfd_data): Add constructor, destructor, and member
4056 initializers.
4057 (gdb_bfd_unref): Use delete.
4058
4059 2017-10-20 Tom Tromey <tom@tromey.com>
4060
4061 * exec.c (exec_file_attach): Use new_bfd_ref.
4062 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4063 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4064 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4065 new_bfd_ref.
4066 * gdb_bfd.h (new_bfd_ref): New function.
4067
4068 2017-10-20 Pedro Alves <palves@redhat.com>
4069
4070 * main.c (captured_command_loop): Add attribute noinline.
4071
4072 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4073
4074 * interps.c (struct interp_factory): Add constructor.
4075 (interp_factory_p): Remove typedef.
4076 (DEF_VEC_P(interp_factory_p)): Remove.
4077 (interpreter_factories): Change type to std::vector.
4078 (interp_factory_register): Adjust.
4079 (interp_lookup): Adjust.
4080 (interpreter_completer): Adjust.
4081
4082 2017-10-19 Tom Tromey <tom@tromey.com>
4083
4084 * break-catch-syscall.c (catch_syscall_completer): Use
4085 std::string, gdb::unique_xmalloc_ptr.
4086
4087 2017-10-19 Tom Tromey <tom@tromey.com>
4088
4089 * infcall.c (call_function_by_hand_dummy): Use std::string.
4090
4091 2017-10-19 Tom Tromey <tom@tromey.com>
4092
4093 * mi/mi-main.c (mi_cmd_execute): Update.
4094 * top.h (prepare_execute_command): Return scoped_value_mark.
4095 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4096 Add move constructor.
4097 * top.c (prepare_execute_command): Return scoped_value_mark.
4098 (execute_command): Update.
4099
4100 2017-10-19 Pedro Alves <palves@redhat.com>
4101
4102 * xml-support.c (xml_fetch_content_from_file): Check fread's
4103 return.
4104
4105 2017-10-19 Pedro Alves <palves@redhat.com>
4106
4107 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4108 async.
4109 (handle_error_fd): New function.
4110 (ser_base_async): Add/delete an event loop file handler for
4111 error_fd.
4112
4113 2017-10-19 Pedro Alves <palves@redhat.com>
4114
4115 * xml-support.c (xml_fetch_content_from_file): Don't read in
4116 chunks. Instead use fseek to determine the file's size, and read
4117 it in one go.
4118
4119 2017-11-18 Keith Seitz <keiths@redhat.com>
4120
4121 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4122 types.
4123 Add whitespace to front of type name.
4124
4125 2017-10-18 Keith Seitz <keiths@redhat.com>
4126
4127 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4128 DW_AT_accessibility.
4129
4130 2017-10-18 Yao Qi <yao.qi@linaro.org>
4131
4132 * features/tic6x-c62x-linux.c: Remove.
4133
4134 2017-10-17 Tom Tromey <tom@tromey.com>
4135
4136 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4137 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4138 (do_mixed_source_and_assembly): Likewise.
4139
4140 2017-10-17 Tom Tromey <tom@tromey.com>
4141
4142 * regcache.c (regcache::xfer_part): Remove assertion.
4143
4144 2017-10-17 Pedro Alves <palves@redhat.com>
4145
4146 * xml-support.c (xml_fetch_content_from_file): Call
4147 unique_ptr::release() instead unique_ptr::get() when passing
4148 through xrealloc.
4149
4150 2017-10-17 Yao Qi <yao.qi@linaro.org>
4151
4152 * regcache.c (regcache::xfer_part): Remove parameters read and
4153 write, add parameter is_raw. All callers are updated.
4154
4155 2017-10-16 Keith Seitz <keiths@redhat.com>
4156
4157 * c-typeprint.c (enum access_specifier): Moved here from
4158 c_type_print_base.
4159 (output_access_specifier): New function.
4160 (c_type_print_base): Consider typedefs when assessing
4161 whether access labels are needed.
4162 Use output_access_specifier as needed.
4163 Output access specifier for typedefs, if needed.
4164 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4165 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4166 fields.
4167 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4168 accessor macros.
4169
4170 2017-10-16 Tom Tromey <tom@tromey.com>
4171
4172 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4173 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4174 * target.c (target_fileio_read_stralloc): Update.
4175 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4176 * target.h (target_fileio_read_stralloc): Return
4177 unique_xmalloc_ptr.
4178
4179 2017-10-16 Tom Tromey <tom@tromey.com>
4180
4181 * xml-syscall.c (xml_init_syscalls_info): Update.
4182 * xml-support.c (xinclude_start_include): Update.
4183 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4184 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4185 (xml_fetch_content_from_file): Likewise.
4186 * osdata.c (get_osdata): Update.
4187 * target.h (target_read_stralloc, target_get_osdata): Return
4188 unique_xmalloc_ptr.
4189 * solib-aix.c (solib_aix_get_library_list): Update.
4190 * solib-target.c (solib_target_current_sos): Update.
4191 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4192 * xml-tdesc.c (fetch_available_features_from_target): Update.
4193 (target_fetch_description_xml): Update.
4194 (file_read_description_xml): Update.
4195 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4196 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4197 (remote_pid_to_exec_file): Update.
4198 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4199 (target_get_osdata): Likewise.
4200
4201 2017-10-16 Tom Tromey <tom@tromey.com>
4202
4203 * remote.c (remote_register_number_and_offset): Use std::vector.
4204 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4205 (putpkt_binary): Use gdb::def_vector.
4206 (compare_sections_command): Use gdb::byte_vector.
4207
4208 2017-10-16 Tom Tromey <tom@tromey.com>
4209
4210 * ppc-linux-nat.c (hwdebug_insert_point): Use
4211 gdb::unique_xmalloc_ptr, XDUP.
4212
4213 2017-10-16 Tom Tromey <tom@tromey.com>
4214
4215 * probe.c (parse_probes): Use std::string.
4216 (info_probes_for_ops, enable_probes_command)
4217 (disable_probes_command): Remove cleanups.
4218
4219 2017-10-16 Tom Tromey <tom@tromey.com>
4220
4221 * buildsym.c (block_compar): Remove.
4222 (end_symtab_get_static_block): Use std::vector.
4223
4224 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4225
4226 * memrange.h (struct mem_range): Define operator< and operator==.
4227 (mem_range_s): Remove.
4228 (DEF_VEC_O (mem_range_s)): Remove.
4229 (normalize_mem_ranges): Change parameter type to std::vector.
4230 * memrange.c (compare_mem_ranges): Remove.
4231 (normalize_mem_ranges): Change parameter type to std::vector,
4232 adjust to vector change.
4233 * exec.c (section_table_available_memory): Return vector, remove
4234 parameter.
4235 (section_table_read_available_memory): Adjust to std::vector
4236 change.
4237 * remote.c (remote_read_bytes): Adjust to std::vector
4238 change.
4239 * tracepoint.h (traceframe_available_memory): Change parameter
4240 type to std::vector.
4241 * tracepoint.c (traceframe_available_memory): Change parameter
4242 type to std::vector, adjust.
4243 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4244 std::vector change.
4245 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4246 unittests/memrange-selftests.c.
4247 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4248 * gdb/unittests/memrange-selftests.c: New file.
4249
4250 2017-10-16 Pedro Alves <palves@redhat.com>
4251
4252 * elfread.c (probe_key_free): Rename range-for variable.
4253 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4254 (find_probe_by_pc, collect_probes): Rename range-for variable.
4255
4256 2017-10-16 Yao Qi <yao.qi@linaro.org>
4257
4258 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4259 * features/tic6x-c62x.c: Remove.
4260 * features/tic6x-c64x-linux.c: Remove.
4261 * features/tic6x-c64x.c: Remove.
4262 * features/tic6x-c64xp-linux.c: Remove.
4263 * features/tic6x-c64xp.c: Remove.
4264 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4265 initialize_tdesc_tic6x_*_linux functions.
4266 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4267 initialize_tdesc_tic6x_* functions.
4268
4269 2017-10-16 Yao Qi <yao.qi@linaro.org>
4270
4271 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4272 tic6x-c62x.
4273 * regformats/tic6x-c62x.dat: Remove.
4274 * regformats/tic6x-c64x.dat: Remove.
4275 * regformats/tic6x-c64xp.dat: Remove.
4276
4277 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4278
4279 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4280 (the !HAVE_LIBEXPAT version).
4281
4282 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4283
4284 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4285 const.
4286
4287 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4288
4289 * target.h: Include tracepoint.h.
4290 (enum trace_find_type): Move to tracepoint.h.
4291 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4292 * tracepoint.h: Don't include target.h
4293 (enum trace_find_type): Move from target.h.
4294 (parse_traceframe_info): Return a unique ptr.
4295 * tracepoint.c (current_traceframe_info): Change type to unique
4296 ptr.
4297 (free_traceframe_info): Remove.
4298 (clear_traceframe_info): Don't manually free
4299 current_traceframe_info.
4300 (free_result): Remove.
4301 (parse_traceframe_info): Return a unique ptr.
4302 (get_traceframe_info): Adjust to unique ptr.
4303 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4304 * remote.c (remote_traceframe_info): Return a unique ptr.
4305 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4306 ptr.
4307 * target-debug.h (target_debug_print_traceframe_info_up): New
4308 macro.
4309 * target-delegates.c: Regenerate.
4310
4311 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4312
4313 * memrange.h (struct mem_range): Add constructors.
4314 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4315 std::vector<mem_range>.
4316 * tracepoint.c (free_traceframe_info): Don't manually free
4317 vector.
4318 (traceframe_info_start_memory): Adjust to vector change.
4319 (traceframe_available_memory): Likewise.
4320 * tracefile-tfile.c (build_traceframe_info): Likewise.
4321 * ctf.c (ctf_traceframe_info): Likewise.
4322
4323 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4324
4325 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4326 std::vector<int>.
4327 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4328 (traceframe_info_start_tvar): Adjust to vector change.
4329 (parse_traceframe_info): Allocate with new.
4330 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4331 vector change.
4332 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4333 change.
4334 tfile_traceframe_info): Allocate with new.
4335 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4336 change.
4337
4338 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4339
4340 * tracepoint.c (traceframe_info): Rename to...
4341 (current_traceframe_info): ...this.
4342 (clear_traceframe_info): Adjust.
4343 (get_traceframe_info): Adjust.
4344
4345 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4346
4347 * nat/linux-osdata.c: Include algorithm.
4348 (compare_processes): Remove.
4349 (struct pid_pgid_entry): New struct.
4350 (linux_xfer_osdata_processgroups): Use std::vector instead of
4351 XNEWVEC.
4352
4353 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4354
4355 * objfiles.h: Don't include symfile.h.
4356 (struct partial_symbol): Remove forward-declaration.
4357 (struct objfile) <global_psymbols, static_psymbols>: Change type
4358 to std::vector<partial_symbol *>.
4359 * objfiles.c (objfile::objfile): Don't memset those fields.
4360 (objfile::~objfile): Don't free those fields.
4361 * psympriv.h (struct psymbol_allocation_list): Remove
4362 forward-declaration.
4363 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4364 to std::vector.
4365 (start_psymtab_common): Change parameters to std::vector.
4366 * psymtab.c: Include algorithm.
4367 (require_partial_symbols): Call shrink_to_fit.
4368 (find_pc_sect_psymbol): Adjust to vector change.
4369 (match_partial_symbol): Likewise.
4370 (lookup_partial_symbol): Likewise.
4371 (psym_relocate): Likewise.
4372 (dump_psymtab): Likewise.
4373 (recursively_search_psymtabs): Likewise.
4374 (compare_psymbols): Remove.
4375 (sort_pst_symbols): Adjust to vector change.
4376 (start_psymtab_common): Likewise.
4377 (end_psymtab_common): Likewise.
4378 (psymbol_bcache_full): De-constify return value.
4379 (add_psymbol_to_bcache): Likewise.
4380 (extend_psymbol_list): Remove.
4381 (append_psymbol_to_list): Adjust to vector change.
4382 (add_psymbol_to_list): Likewise.
4383 (init_psymbol_list): Likewise.
4384 (maintenance_info_psymtabs): Likewise.
4385 (maintenance_check_psymtabs): Likewise.
4386 * symfile.h (struct psymbol_allocation_list): Remove.
4387 * symfile.c (reread_symbols): Adjust to vector change.
4388 * dbxread.c (start_psymtab): Change type of parameters.
4389 (dbx_symfile_read): Adjust to vector change.
4390 (read_dbx_symtab): Likewise.
4391 (start_psymtab): Change type of parameters.
4392 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
4393 (create_partial_symtab): Likewise.
4394 (add_partial_symbol): Likewise.
4395 (write_one_signatured_type): Likewise.
4396 (recursively_write_psymbols): Likewise.
4397 * mdebugread.c (parse_partial_symbols): Likewise.
4398 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
4399 (scan_xcoff_symtab): Adjust to vector change.
4400 (xcoff_initial_scan): Likewise.
4401
4402 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
4403
4404 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
4405
4406 2017-10-13 Yao Qi <yao.qi@linaro.org>
4407
4408 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
4409 Remove s390x-*-expedite, add s390x-expedite.
4410
4411 2017-10-13 Yao Qi <yao.qi@linaro.org>
4412
4413 * features/s390-gs-linux64.c: Regenerated.
4414 * features/s390x-gs-linux64.c: Regenerated.
4415
4416 2017-10-13 Tom Tromey <tom@tromey.com>
4417
4418 * compile/compile-object-run.c (do_module_cleanup): Use delete.
4419 * solib.c (update_solib_list, reload_shared_libraries_1): Use
4420 delete.
4421 * symfile.c (symbol_file_add_with_addrs): Use new.
4422 (symbol_file_add_separate): Update comment.
4423 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
4424 * jit.c (jit_object_close_impl): Use new.
4425 (jit_unregister_code): Use delete.
4426 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
4427 (~objfile): Rename from free_objfile.
4428 (free_objfile_separate_debug, do_free_objfile_cleanup)
4429 (free_all_objfiles, objfile_purge_solibs): Use delete.
4430 * objfiles.h (struct objfile): Add constructor and destructor.
4431 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
4432 (allocate_objfile, free_objfile): Don't declare.
4433 (struct objstats): Add initializers.
4434
4435 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4436
4437 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
4438 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
4439 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
4440 * gdbarch.h: Regenerate.
4441 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4442 Adjust comment.
4443 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
4444 (i386_displaced_step_fixup): Adjust comment.
4445 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
4446
4447 2017-10-12 Tom Tromey <tom@tromey.com>
4448
4449 * prologue-value.h (pv_area::store_would_trash): Return bool.
4450 (pv_area::find_reg): Likewise.
4451 * prologue-value.c (pv_area::store_would_trash): Return bool.
4452 (pv_area::find_reg): Likewise.
4453
4454 2017-10-12 Tom Tromey <tom@tromey.com>
4455
4456 * s390-linux-tdep.c (s390_store, s390_load)
4457 (s390_check_for_saved, s390_analyze_prologue): Update.
4458 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
4459 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
4460 * prologue-value.h (class pv_area): Move from prologue-value.c.
4461 Change names of members. Add constructor, destructor, member
4462 functions.
4463 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
4464 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
4465 (pv_area_fetch, pv_area_scan): Don't declare.
4466 * prologue-value.c (struct pv_area::area_entry): Now member of
4467 pv_area.
4468 (struct pv_area): Move to prologue-value.h.
4469 (pv_area::pv_area): Rename from make_pv_area.
4470 (pv_area::~pv_area): Rename from free_pv_area.
4471 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
4472 (clear_entries, find_entry, overlaps, store_would_trash, store)
4473 (fetch, find_reg, scan): Now member of pv_area.
4474 Remove "area" argument. Update.
4475 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
4476 Update.
4477 * mn10300-tdep.c (push_reg, check_for_saved)
4478 (mn10300_analyze_prologue): Update.
4479 * mep-tdep.c (is_arg_spill, check_for_saved)
4480 (mep_analyze_prologue): Update.
4481 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
4482 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
4483 (m32c_is_struct_return, m32c_analyze_prologue): Update.
4484 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
4485 Update.
4486 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
4487 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4488
4489 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4490
4491 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4492 * linux-nat.c (linux_nat_delete_thread): New variable.
4493 (lwp_free): Invoke linux_nat_delete_thread if set.
4494 (linux_nat_set_delete_thread): New function.
4495 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4496 thread delete callback.
4497 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4498 (_initialize_arm_linux_nat): Assign thread delete callback.
4499 * s390-linux-nat.c (s390_delete_thread): New function.
4500 (_initialize_s390_nat): Assign thread delete callback.
4501 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4502 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4503 function.
4504 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4505 declaration.
4506 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4507 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4508
4509 2017-10-09 Tom Tromey <tom@tromey.com>
4510
4511 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4512 std::string.
4513 * tui/tui-layout.c (enum tui_status): Use std::string.
4514
4515 2017-10-11 Tom Tromey <tom@tromey.com>
4516
4517 * gdbthread.h (thread_command): Constify.
4518 * inferior.h (detach_command): Constify.
4519 * top.h (set_history, show_history): Constify.
4520 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4521 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4522 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4523 * printcmd.c (set_command): Constify.
4524 (non_const_set_command): New function.
4525 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4526 * breakpoint.c (enable_command, disable_command, delete_command)
4527 (catch_command, tcatch_command, set_breakpoint_cmd)
4528 (show_breakpoint_cmd): Constify.
4529 * macrocmd.c (macro_command): Constify.
4530 * infcmd.c (unset_command, kill_command, detach_command)
4531 (info_proc_cmd): Constify.
4532 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
4533 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
4534 (info_auto_load_cmd): Constify.
4535 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4536 (unset_tdesc_cmd): Constify.
4537 * ada-lang.c (set_ada_command, show_ada_command)
4538 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
4539 * guile/guile.c (set_guile_command, show_guile_command)
4540 (info_guile_command): Constify.
4541 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
4542 Constify.
4543 * skip.c (skip_command): Constify.
4544 * compile/compile.c (_initialize_compile): Constify.
4545 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
4546 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4547 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4548 (maint_btrace_pt_show_cmd): Constify.
4549 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
4550 Constify.
4551 * python/python.c (user_show_python, user_set_python): Constify.
4552 * mips-tdep.c (set_mips_command, show_mips_command)
4553 (set_mipsfpu_command): Constify.
4554 * record-btrace.c (cmd_record_btrace_start)
4555 (cmd_set_record_btrace, cmd_show_record_btrace)
4556 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
4557 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
4558 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
4559 Constify.
4560 * symfile.c (overlay_command): Constify.
4561 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
4562 * cli/cli-logging.c (set_logging_command, show_logging_command):
4563 Constify.
4564 * cli/cli-dump.c (dump_command, append_command)
4565 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4566 (tekhex_dump_command, binary_dump_command)
4567 (binary_append_command): Constify.
4568 * cli/cli-decode.c (struct cmd_list_element): Change type of
4569 "fun".
4570 * cli/cli-cmds.c (info_command, show_command, set_debug)
4571 (show_debug): Constify.
4572 (show_command): Add non-const overload.
4573 * top.c (set_history, show_history): Constify.
4574 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4575 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4576 * target.c (target_command): Constify.
4577 * sparc64-tdep.c (info_adi_command): Constify.
4578 * record-full.c (cmd_record_full_start): Constify.
4579 (set_record_full_command): Constify. Fix typo.
4580 (show_record_full_command): Constify.
4581 * thread.c (thread_command, thread_apply_command): Constify.
4582 * memattr.c (dummy_cmd): Constify.
4583 * value.c (function_command): Constify.
4584 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
4585 * probe.c (info_probes_command): Constify.
4586 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
4587 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
4588 (show_thread_cmd, set_thread_default_cmd)
4589 (show_thread_default_cmd): Constify.
4590 (check_empty): Constify.
4591 * tracepoint.c (tfind_command): Constify.
4592 * cp-support.c (maint_cplus_command): Constify.
4593 * windows-tdep.c (info_w32_command): Constify.
4594 * record.c (cmd_record_start, set_record_command)
4595 (show_record_command, info_record_command, cmd_record_goto):
4596 Constify.
4597 * ravenscar-thread.c (set_ravenscar_command)
4598 (show_ravenscar_command): Constify.
4599 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4600 Constify.
4601 (add_internal_problem_command): Remove casts.
4602 * arc-tdep.c (maintenance_print_arc_command): Constify.
4603 * valprint.c (set_print, show_print, set_print_raw)
4604 (show_print_raw): Constify.
4605 * maint.c (maintenance_command, maintenance_info_command)
4606 (maintenance_print_command, maintenance_set_cmd)
4607 (maintenance_show_cmd, set_per_command_cmd)
4608 (show_per_command_cmd, maintenance_check_command): Constify.
4609 * language.c (set_check, show_check): Constify.
4610 * typeprint.c (show_print_type, set_print_type): Constify.
4611 * go32-nat.c (go32_info_dos_command): Constify.
4612
4613 2017-10-11 Tom Tromey <tom@tromey.com>
4614
4615 * breakpoint.c (prepare_re_set_context): Remove.
4616 (breakpoint_re_set_one): Update. Don't use cleanups.
4617 (breakpoint_re_set): Use scoped_restore, std::string, and
4618 scoped_restore_current_language.
4619
4620 2017-10-11 Tom Tromey <tom@tromey.com>
4621
4622 * breakpoint.c (commands_command_1): Use std::string.
4623 (cleanup_executing_breakpoints): Remove.
4624 (bpstat_do_actions_1): Use scoped_restore.
4625 (bpstat_check_watchpoint): Use std::string.
4626 (decode_static_tracepoint_spec): Likewise.
4627 (break_range_command): Likewise.
4628 (watch_command_1): Likewise.
4629 (compare_breakpoints): Change argument types.
4630 (clear_command): Use std::vector.
4631 (cleanup_executing_breakpoints): Remove.
4632 (update_global_location_list): Use unique_xmalloc_ptr.
4633 (strace_command): Remove unused declaration.
4634
4635 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4636
4637 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
4638 * NEWS: Mention new FreeBSD/arm native configuration.
4639 * configure.host: Add arm*-*-freebsd*.
4640 * configure.nat: Likewise.
4641 * arm-fbsd-nat.c: New file.
4642
4643 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4644
4645 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
4646 (ALLDEPFILES): Add arm-fbsd-tdep.c.
4647 * NEWS: Mention new FreeBSD/arm target.
4648 * configure.tgt: Add arm*-*-freebsd*.
4649 * arm-fbsd-tdep.c: New file.
4650 * arm-fbsd-tdep.h: New file.
4651
4652 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4653
4654 * linux-tdep.c (linux_make_corefile_notes): Remove call to
4655 `gdbarch_elfcore_write_linux_prpsinfo'.
4656 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
4657 method.
4658 (elf_internal_linux_prpsinfo): Remove declaration.
4659 * gdbarch.h: Regenerate.
4660 * gdbarch.c: Regenerate.
4661
4662 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4663
4664 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
4665 `set_gdbarch_elfcore_write_linux_prpsinfo'.
4666
4667 2017-10-11 Pedro Alves <palves@redhat.com>
4668
4669 * breakpoint.c (reattach_breakpoints): Delete.
4670 * breakpoint.h (reattach_breakpoints): Delete.
4671
4672 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
4673
4674 * symfile.c (registered_sym_fns): Make struct, not typedef.
4675 (DEF_VEC_O (registered_sym_fns)): Remove.
4676 (symtab_fns): Change type to std::vector.
4677 (add_symtab_fns): Adjust.
4678 (find_sym_fns): Adjust.
4679
4680 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
4681
4682 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
4683 * arc-tdep.h (arc_arch_is_em): New function.
4684 (arc_arch_is_hs): Likewise.
4685
4686 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
4687
4688 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
4689 parentheses in the declaration.
4690 (macro_lookup_inclusion): Likewise.
4691 (macro_lookup_definition): Likewise.
4692 * p-lang.h (pascal_builtin_types): Likewise.
4693 * tui/tui-data.c (tui_win_list): Likewise.
4694 * tui/tui-data.h (tui_win_list): Likewise.
4695 * utils.h (make_cleanup_free_section_addr_info): Likewise.
4696
4697 2017-10-11 Mark Rages <markrages@gmail.com>
4698
4699 * target-memory.c (block_boundaries): Fix for block address not
4700 aligned on block size.
4701
4702 2017-10-10 Pedro Alves <palves@redhat.com>
4703 Tom Tromey <tom@tromey.com>
4704
4705 * breakpoint.c (struct captured_breakpoint_query_args)
4706 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
4707 (print_breakpoint): New.
4708 * breakpoint.h (print_breakpoint): Declare.
4709 * common/common-exceptions.h (enum return_reason): Remove
4710 references to catch_exceptions.
4711 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
4712 Delete.
4713 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
4714 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
4715 * gdb.h: Delete.
4716 * gdbthread.h (thread_select): Declare.
4717 * mi/mi-cmd-break.c: Don't include gdb.h.
4718 (breakpoint_notify): Use print_breakpoint.
4719 * mi/mi-cmd-catch.c: Don't include gdb.h.
4720 * mi/mi-interp.c: Don't include gdb.h.
4721 (mi_print_breakpoint_for_event): New.
4722 (mi_breakpoint_created, mi_breakpoint_modified): Use
4723 mi_print_breakpoint_for_event.
4724 * mi/mi-main.c: Don't include gdb.h.
4725 (mi_cmd_thread_select): Parse the global thread ID here. Use
4726 thread_select instead of gdb_thread_select.
4727 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
4728 of using gdb_list_thread_ids.
4729 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
4730 FILEIO_ENOSYS here.
4731 (remote_fileio_request): Use TRY/CATCH instead of
4732 catch_exceptions.
4733 * symfile-mem.c (struct symbol_file_add_from_memory_args)
4734 (symbol_file_add_from_memory_wrapper): Delete.
4735 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
4736 * thread.c: Don't include gdb.h.
4737 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
4738 (thread_alive): Use thread_select.
4739 (do_captured_thread_select): Delete, parts salvaged as ...
4740 (thread_select): ... this new function.
4741 (gdb_thread_select): Delete.
4742
4743 2017-10-10 Pedro Alves <palves@redhat.com>
4744 Tom Tromey <tom@tromey.com>
4745
4746 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
4747 and reverse logic.
4748 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
4749 No longer macros. Instead ...
4750 (enum wp_check_result): They're now values of this new
4751 enumeration.
4752 (watchpoint_check): Change return type to wp_check_result and
4753 parameter type to bpstat.
4754 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
4755 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
4756 catch_errors. Reverse logic of watchpoint_check call.
4757 (breakpoint_re_set_one): Now returns void and takes a breakpoint
4758 pointer as parameter.
4759 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
4760 * common/common-exceptions.c (throw_exception_sjlj): Update
4761 comments to avoid mentioning catch_errors.
4762 * exceptions.c (catch_errors): Delete.
4763 * exceptions.h: Update comments to avoid mentioning catch_errors.
4764 (catch_errors_ftype, catch_errors): Delete.
4765 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
4766 (hook_stop_stub): Delete.
4767 (restore_selected_frame): Change return type to void, and
4768 parameter type to const frame_id &.
4769 (restore_infcall_control_state): Use TRY/CATCH instead of
4770 catch_errors.
4771 * main.c (captured_command_loop): Return void and remove
4772 parameter. Remove references to catch_errors.
4773 (captured_main): Use TRY/CATCH instead of catch_errors.
4774 * objc-lang.c (objc_submethod_helper_data)
4775 (find_objc_msgcall_submethod_helper): Delete.
4776 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
4777 catch_errors.
4778 * record-full.c (record_full_message): Return void.
4779 (record_full_message_args, record_full_message_wrapper): Delete.
4780 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
4781 instead of catch_errors.
4782 * solib-aix.c (solib_aix_open_symbol_file_object): Change
4783 parameter type to int.
4784 * solib-darwin.c (open_symbol_file_object): Ditto.
4785 * solib-dsbt.c (open_symbol_file_object): Ditto.
4786 * solib-frv.c (open_symbol_file_object): Ditto.
4787 * solib-svr4.c (open_symbol_file_object): Ditto.
4788 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
4789 * solib.c (update_solib_list): Use TRY/CATCH instead of
4790 catch_errors.
4791 * solist.h (struct target_so_ops) <open_symbol_file_object>:
4792 Change type.
4793 * symmisc.c (struct print_symbol_args): Remove.
4794 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
4795 (print_symbol): Change type.
4796 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
4797 and remove parameters.
4798 (catch_errors): New.
4799 (get_windows_debug_event): Adjust.
4800
4801 2017-10-09 Tom Tromey <tom@tromey.com>
4802
4803 * mi/mi-main.c (free_splay_tree): Remove.
4804 (list_available_thread_groups): Use splay_tree_up.
4805 * common/gdb_splay_tree.h: New file.
4806
4807 2017-10-09 Tom Tromey <tom@tromey.com>
4808
4809 * mi/mi-main.c (do_nothing): Remove.
4810 (list_available_thread_groups): Update.
4811
4812 2017-10-09 Pedro Alves <palves@redhat.com>
4813
4814 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
4815 reading registers when switching context.
4816
4817 2017-10-09 John Baldwin <jhb@FreeBSD.org>
4818
4819 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
4820 (fbsd_convert_siginfo): Likewise.
4821 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
4822
4823 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
4824
4825 * configure.ac (try_guile_versions): Remove guile-2.2.
4826 * configure: Regenerate.
4827
4828 2017-10-09 Tom Tromey <tom@tromey.com>
4829
4830 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
4831 (COMPILE.pre): Use $(CXX).
4832
4833 2017-10-09 Pedro Alves <palves@redhat.com>
4834
4835 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4836 Use bool.
4837 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4838 * cp-support.h (cp_remove_params): Now returns a
4839 gdb::unique_xmalloc_ptr.
4840 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
4841 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
4842 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
4843 returning a gdb::unique_xmalloc_ptr.
4844 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4845 * stack.c (find_frame_funname): Adjust to cp_remove_params
4846 returning a gdb::unique_xmalloc_ptr.
4847
4848 2017-10-08 Tom Tromey <tom@tromey.com>
4849
4850 * dwarf2read.c (dwarf2_get_dwz_file): Use
4851 gdb::unique_xmalloc_ptr.
4852 (find_slot_in_mapped_hash): Likewise.
4853 (dwarf2_physname): Likewise.
4854 (create_dwo_unit_in_dwp_v1): Use std::string.
4855 (create_dwo_unit_in_dwp_v2): Likewise.
4856 (lookup_dwo_cutu): Likewise.
4857 (inherit_abstract_dies): Use std::vector.
4858 (read_array_type): Likewise.
4859 (dwarf_decode_macros): Remove unused declaration.
4860 (unsigned_int_compar): Remove.
4861 (dwarf2_build_psymtabs_hard): Use scoped_restore.
4862 (psymtabs_addrmap_cleanup): Remove.
4863
4864 2017-10-08 Tom Tromey <tom@tromey.com>
4865
4866 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4867 * frame.h (frame_cleanup_after_sniffer): Declare.
4868 (frame_prepare_for_sniffer): Return void.
4869 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
4870 type of argument.
4871 (frame_prepare_for_sniffer): Return void.
4872
4873 2017-10-08 Tom Tromey <tom@tromey.com>
4874
4875 * utils.h (make_cleanup_value_free): Remove.
4876 * utils.c (do_value_free, struct cleanup): Remove.
4877 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
4878 Use gdb_value_up.
4879 * value.h (struct value_deleter): New.
4880 (gdb_value_up): New typedef.
4881
4882 2017-10-08 Tom Tromey <tom@tromey.com>
4883
4884 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
4885 (make_cleanup_free_search_symbols): Remove.
4886 (search_symbols): Return std::vector.
4887 (symbol_search::compare_search_syms): Now member of
4888 symbol_search. Change arguments.
4889 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
4890 (symtab_symbol_info, rbreak_command): Update.
4891 * symtab.h (struct symbol_search) <next>: Remove.
4892 Add constructors.
4893 (symbol_search::operator<): New function.
4894 (symbol_search::operator==): New function.
4895 (search_symbols): Remove std::vector.
4896 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
4897 (symbol_search::compare_search_syms): Declare.
4898
4899 2017-10-06 Yao Qi <yao.qi@linaro.org>
4900
4901 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
4902 arch/aarch64-insn.o.
4903 Remove one rule.
4904 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
4905
4906 2017-10-06 Yao Qi <yao.qi@linaro.org>
4907
4908 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4909 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
4910 arch/arm-linux.o respectively.
4911 * configure.tgt: Likewise.
4912
4913 2017-10-06 Yao Qi <yao.qi@linaro.org>
4914
4915 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
4916 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
4917
4918 2017-10-06 Pedro Alves <palves@redhat.com>
4919
4920 * windows-nat.c: Include <algorithm>.
4921
4922 2017-10-06 Yao Qi <yao.qi@linaro.org>
4923
4924 * configure.tgt (i386_tobjs): New variable.
4925 (amd64_tobjs): New variable.
4926 Set $cpu_obs and $os_obs.
4927
4928 2017-10-06 Yao Qi <yao.qi@linaro.org>
4929
4930 * Makefile.in (CONFIG_SRC_SUBDIR): New.
4931 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
4932 (clean): Remove object files and dependency files.
4933 (distclean): Remove the directory.
4934 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4935 * configure: Re-generated.
4936 * configure.tgt: Replace amd64.o with arch/amd64.o.
4937
4938 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
4939
4940 PR build/22188
4941 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
4942 and SETEND.
4943
4944 2017-10-05 Pedro Alves <palves@redhat.com>
4945
4946 * linux-nat.c (linux_child_follow_fork): When following the parent
4947 and detaching the child, consult the parent thread's architecture
4948 instead of the child's.
4949
4950 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4951
4952 * ax.h: Do not include "doublest.h".
4953 (union agent_val): Remove.
4954
4955 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4956
4957 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
4958 (decimal_to_string): Return std::string object.
4959 (decimal_from_string): Accept std::string object. Return bool.
4960 (decimal_from_integral, decimal_from_doublest): Remove.
4961 (decimal_from_longest): Add prototype.
4962 (decimal_from_ulongest): Likewise.
4963 (decimal_to_longest): Likewise.
4964 (decimal_from_doublest): Likewise.
4965 * dfp.c: Do not include "gdbtypes.h" or "value.h".
4966 (MAX_DECIMAL_STRING): Move here.
4967 (decimal_to_string): Return std::string object.
4968 (decimal_from_string): Accept std::string object. Return bool.
4969 (decimal_from_integral): Remove, replace by ...
4970 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
4971 (decimal_to_longest): New function.
4972 (decimal_from_floating): Remove, replace by ...
4973 (decimal_from_doublest): ... this new function.
4974 (decimal_to_doublest): Update to new decimal_to_string interface.
4975
4976 * value.c (unpack_long): Use decimal_to_longest.
4977 * valops.c (value_cast): Use decimal_from_doublest instead of
4978 decimal_from_floating. Use decimal_from_[u]longest isntead of
4979 decimal_from_integral.
4980 * valarith.c (value_args_as_decimal): Likewise.
4981 * valprint.c (print_decimal_floating): Update to new
4982 decimal_to_string interface.
4983 * printcmd.c (printf_decfloat): Likewise.
4984 * c-exp.y (parse_number): Update to new decimal_from_string interface.
4985
4986 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4987
4988 * doublest.h: Do not include "floatformat.h". Remove stale comments.
4989 * gdbtypes.c: Include "floatformat.h".
4990 * value.c: Likewise.
4991 * m68k-tdep.c: Likewise.
4992
4993 * findvar.c: Do not include "floatformat.h".
4994 * amd64-darwin-tdep.c: Likewise.
4995 * arm-linux-tdep.c: Likewise.
4996 * i386-darwin-tdep.c: Likewise.
4997 * i387-tdep.c: Likewise.
4998 * m68k-linux-tdep.c: Likewise.
4999 * mep-tdep.c: Likewise.
5000 * mips-tdep.c: Likewise.
5001 * nios2-tdep.c: Likewise.
5002 * s390-linux-tdep.c: Likewise.
5003 * sparc-obsd-tdep.c: Likewise.
5004 * sparc-tdep.c: Likewise.
5005 * sparc64-tdep.c: Likewise.
5006 * spu-tdep.c: Likewise.
5007 * tic6x-tdep.c: Likewise.
5008 * tilegx-tdep.c: Likewise.
5009 * vax-tdep.c: Likewise.
5010 * xstormy16-tdep.c: Likewise.
5011 * xtensa-tdep.c: Likewise.
5012
5013 * top.c: Do not include "doublest.h".
5014 * aarch64-tdep.c: Likewise.
5015 * alpha-tdep.c: Likewise.
5016 * arm-linux-tdep.c: Likewise.
5017 * m68k-linux-tdep.c: Likewise.
5018 * tilegx-tdep.c: Likewise.
5019 * xstormy16-tdep.c: Likewise.
5020
5021 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5022
5023 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5024 (mipsn32_fbsd_sigframe): Define.
5025 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5026 for FreeBSD/mipsn32.
5027
5028 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5029
5030 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5031 AT_HWCAP.
5032
5033 2017-10-05 Tristan Gingold <tgingold@free.fr>
5034
5035 * MAINTAINERS (Misc): Update my email address.
5036
5037 2017-10-04 Pedro Alves <palves@redhat.com>
5038
5039 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5040 it instead of target_gdbarch.
5041 (get_remote_state, get_remote_packet_size): Adjust
5042 get_remote_arch_state calls, passing down target_gdbarch
5043 explicitly.
5044 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5045 'gdbarch' and use it instead of target_gdbarch.
5046 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5047 passing down target_gdbarch explicitly.
5048 (struct stop_reply) <arch>: New field.
5049 (remote_parse_stop_reply): Use the stopped thread's architecture,
5050 not the current inferior's. Save the architecture in the
5051 stop_reply.
5052 (process_stop_reply): Use the stop reply's architecture.
5053 (process_g_packet, remote_fetch_registers)
5054 (remote_prepare_to_store, store_registers_using_G)
5055 (remote_store_registers): Adjust get_remote_arch_state calls,
5056 using the regcache's architecture.
5057 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5058 passing down target_gdbarch explicitly.
5059 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5060 beneath instead of calling target_gdbarch.
5061 * target.c (default_thread_architecture): Use the specified
5062 inferior's architecture, instead of the current inferior's
5063 architecture (via target_gdbarch).
5064
5065 2017-10-04 Pedro Alves <palves@redhat.com>
5066
5067 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5068 case.
5069 (regcache_print): Handle !target_has_registers here instead.
5070
5071 2017-10-04 Pedro Alves <palves@redhat.com>
5072
5073 * frame.c (create_test_frame): Delete.
5074 * frame.h (create_test_frame): Delete.
5075 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5076 (class regcache_test): Delete.
5077 (test_target_has_registers, test_target_has_stack)
5078 (test_target_has_memory, test_target_prepare_to_store)
5079 (test_target_store_registers): New functions.
5080 (test_target_ops): New class.
5081 (register_to_value_test): Error out if there's already a
5082 process_stratum (or higher) target pushed. Create a fuller mock
5083 environment, with mock target_ops, inferior, address space, thread
5084 and inferior_ptid.
5085 * progspace.c (struct address_space): Move to ...
5086 * progspace.h (struct address_space): ... here.
5087 * regcache.h (regcache::~regcache, regcache::raw_write)
5088 [GDB_SELF_TEST]: No longer virtual.
5089
5090 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5091
5092 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5093
5094 2017-10-04 Pedro Alves <palves@redhat.com>
5095
5096 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5097 out of 'between TRY and CATCH'.
5098
5099 2017-10-04 Pedro Alves <palves@redhat.com>
5100
5101 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5102 * common/common-exceptions.h (TRY): Open an outermost scope.
5103 Expand intro comment.
5104 (CATCH): Reindent.
5105 (END_CATCH): Close the outermost scope.
5106 * completer.c (complete_line_internal): Add missing END_CATCH.
5107
5108 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5109
5110 * NEWS (Changes since GDB 8.0): Add entry about new
5111 'set-cwd-on-gdbserver' feature.
5112 (New remote packets): Add entry for QSetWorkingDir.
5113 * common/common-inferior.h (set_inferior_cwd): New prototype.
5114 * infcmd.c (set_inferior_cwd): Remove "static".
5115 (show_cwd_command): Expand text to include remote debugging.
5116 * remote.c: Add PACKET_QSetWorkingDir.
5117 (remote_protocol_features) <QSetWorkingDir>: New entry for
5118 PACKET_QSetWorkingDir.
5119 (extended_remote_set_inferior_cwd): New function.
5120 (extended_remote_create_inferior): Call
5121 "extended_remote_set_inferior_cwd".
5122 (_initialize_remote): Call "add_packet_config_cmd" for
5123 QSetWorkingDir.
5124
5125 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5126
5127 * NEWS (New commands): Mention "set/show cwd".
5128 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5129 "cd" command's help text.
5130 * common/common-inferior.h (get_inferior_cwd): New prototype.
5131 * infcmd.c (inferior_cwd_scratch): New global variable.
5132 (set_inferior_cwd): New function.
5133 (get_inferior_cwd): Likewise.
5134 (set_cwd_command): Likewise.
5135 (show_cwd_command): Likewise.
5136 (_initialize_infcmd): Add "set/show cwd" commands.
5137 * inferior.h (class inferior) <cwd>: New field.
5138 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5139 (fork_inferior): Change inferior's cwd before its execution.
5140 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5141 to CreateProcess.
5142
5143 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5144
5145 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5146 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5147 (COMMON_OBS): Add gdb_tilde_expand.o.
5148 * common/gdb_tilde_expand.c: New file.
5149 * common/gdb_tilde_expand.h: Likewise.
5150
5151 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5152
5153 * gdbarch.sh (objfile): Remove duplicate declaration.
5154 * gdbarch.h: Regenerate.
5155
5156 2017-10-03 Tom Tromey <tom@tromey.com>
5157
5158 * utils.c (internal_vproblem): Use string_vprintf.
5159
5160 2017-10-03 Tom Tromey <tom@tromey.com>
5161
5162 * printcmd.c (info_symbol_command): Use std::string.
5163
5164 2017-10-03 Tom Tromey <tom@tromey.com>
5165
5166 * top.c (gdb_safe_append_history): Use std::string.
5167
5168 2017-10-03 Tom Tromey <tom@tromey.com>
5169
5170 * event-top.c (stdin_event_handler): Update.
5171 * main.c (captured_main_1): Update.
5172 * top.h (make_delete_ui_cleanup): Remove.
5173 (struct ui): Add constructor and destructor.
5174 (new_ui, delete_ui): Remove.
5175 * top.c (make_delete_ui_cleanup): Remove.
5176 (new_ui_command): Use std::unique_ptr.
5177 (delete_ui_cleanup): Remove.
5178 (ui::ui): Rename from new_ui. Update.
5179 (free_ui): Remove.
5180 (ui::~ui): Rename from delete_ui. Update.
5181
5182 2017-10-03 Tom Tromey <tom@tromey.com>
5183
5184 * symfile.c (load_progress): Use gdb::byte_vector.
5185
5186 2017-10-03 Tom Tromey <tom@tromey.com>
5187
5188 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5189 declaration.
5190 * printcmd.c (x_command): Remove unused declaration.
5191 * symfile.c (symbol_file_command): Remove unused declaration.
5192
5193 2017-10-03 Tom Tromey <tom@tromey.com>
5194
5195 * utils.c (internal_vproblem): Use std::string.
5196 (defaulted_query): Likewise.
5197
5198 2017-10-03 Tom Tromey <tom@tromey.com>
5199
5200 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5201 * top.c (execute_command_to_string): Update.
5202 * utils.c (make_cleanup_restore_page_info): Remove.
5203 (do_restore_page_info_cleanup): Remove.
5204 (set_batch_flag_and_restore_page_info):
5205 New.
5206 (make_cleanup_restore_page_info): Remove.
5207 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5208 (~set_batch_flag_and_restore_page_info): New
5209 (make_cleanup_restore_uinteger): Remove.
5210 (make_cleanup_restore_integer): Remove.
5211 (struct restore_integer_closure): Remove.
5212 (restore_integer): Remove.
5213 * utils.h (struct set_batch_flag_and_restore_page_info): New
5214 class.
5215 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5216 (make_cleanup_restore_page_info): Remove.
5217 (make_cleanup_restore_uinteger) Remove.
5218 (make_cleanup_restore_integer) Remove.
5219
5220 2017-10-03 Tom Tromey <tom@tromey.com>
5221
5222 * record-full.h (record_full_gdb_operation_disable_set): Return
5223 scoped_restore_tmpl<int>.
5224 * infrun.c (adjust_pc_after_break): Update.
5225 (handle_signal_stop): Update.
5226 * record-full.c (record_full_gdb_operation_disable_set): Return
5227 scoped_restore_tmpl<int>.
5228 (record_full_wait_1, record_full_insert_breakpoint)
5229 (record_full_remove_breakpoint, record_full_save)
5230 (record_full_goto_insn): Update.
5231
5232 2017-10-02 Tom Tromey <tom@tromey.com>
5233
5234 PR rust/22236:
5235 * rust-lang.c (rust_val_print_str): New function.
5236 (val_print_struct): Call it.
5237 (rust_subscript): Preserve name of slice type.
5238
5239 2017-10-02 Tom Tromey <tom@tromey.com>
5240
5241 * rust-lang.c (rust_subscript): Handle slices in
5242 EVAL_AVOID_SIDE_EFFECTS case.
5243
5244 2017-10-02 Tom Tromey <tom@tromey.com>
5245
5246 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5247
5248 2017-10-02 Tom Tromey <tom@tromey.com>
5249
5250 * rust-lang.h (rust_slice_type): Add "extern".
5251
5252 2017-10-02 Tom Tromey <tom@tromey.com>
5253 Pedro Alves <palves@redhat.com>
5254
5255 * ada-lang.h (ada_exc_info::operator<): Make const.
5256 (ada_exc_info::operator==): Make const.
5257 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5258 Make const.
5259
5260 2017-09-29 Tom Tromey <tom@tromey.com>
5261
5262 * target.c (read_whatever_is_readable): Change type of "result".
5263 Update.
5264 (free_memory_read_result_vector): Remove.
5265 (read_memory_robust): Change return type. Update.
5266 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5267 bin2hex, std::string.
5268 * target.h (memory_read_result_s): Remove typedef.
5269 (free_memory_read_result_vector): Remove.
5270 (read_memory_robust): Return std::vector.
5271
5272 2017-09-29 Tom Tromey <tom@tromey.com>
5273
5274 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5275
5276 2017-09-29 Tom Tromey <tom@tromey.com>
5277
5278 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5279 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5280 operator< and operator==.
5281 (ada_exceptions_list): Return a std::vector.
5282 * ada-lang.c (ada_exc_info::operator<): Rename from
5283 compare_ada_exception_info.
5284 (ada_exc_info::operator==): New.
5285 (sort_remove_dups_ada_exceptions_list): Change type of
5286 "exceptions".
5287 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5288 (ada_add_global_exceptions): Likewise.
5289 (ada_exceptions_list_1): Return a std::vector.
5290 (ada_exceptions_list): Likewise.
5291
5292 2017-09-29 Tom Tromey <tom@tromey.com>
5293
5294 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5295 'std::set *'.
5296 (print_one_inferior): Update.
5297 (free_vector_of_ints): Remove.
5298 (list_available_thread_groups): Change "ids" to std::set.
5299 (mi_cmd_list_thread_groups): Update.
5300 (struct collect_cores_data) <core>: Now a std::set.
5301 (collect_cores): Update.
5302 (unique): Remove.
5303 (print_one_inferior): Update.
5304
5305 2017-09-29 Tom Tromey <tom@tromey.com>
5306
5307 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5308 (mi_execute_async_cli_command): Likewise.
5309 (mi_cmd_trace_frame_collected): Use field_fmt.
5310
5311 2017-09-29 Tom Tromey <tom@tromey.com>
5312
5313 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5314 gdb::byte_vector.
5315
5316 2017-09-29 Tom Tromey <tom@tromey.com>
5317
5318 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5319
5320 2017-09-29 Tom Tromey <tom@tromey.com>
5321
5322 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5323
5324 2017-09-29 Tom Tromey <tom@tromey.com>
5325
5326 * varobj.h (varobj_gen_name): Return std::string.
5327 * varobj.c (varobj_gen_name): Return std::string.
5328 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5329 (mi_cmd_var_delete): Don't copy "name".
5330
5331 2017-09-29 Tom Tromey <tom@tromey.com>
5332
5333 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5334 (mi_cmd_break_insert_1): Update.
5335
5336 2017-09-29 Tom Tromey <tom@tromey.com>
5337
5338 * target.h (make_scoped_defer_target_commit_resume): Update.
5339 * target.c (make_scoped_defer_target_commit_resume): Rename from
5340 make_cleanup_defer_target_commit_resume. Return a
5341 scoped_restore.
5342 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5343
5344 2017-09-29 Tom Tromey <tom@tromey.com>
5345
5346 * main.c (captured_main_1): Remove unused declaration.
5347 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5348
5349 2017-09-29 Tom Tromey <tom@tromey.com>
5350
5351 * symtab.c (search_symbols): Remove unused outer cleanup.
5352 (make_source_files_completion_list): Remove unused declaration.
5353
5354 2017-09-29 Tom Tromey <tom@tromey.com>
5355
5356 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5357
5358 2017-09-29 Tom Tromey <tom@tromey.com>
5359
5360 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5361 gdb::byte_vector.
5362
5363 2017-09-29 Tom Tromey <tom@tromey.com>
5364
5365 * complaints.c (vcomplaint): Use std::string.
5366
5367 2017-09-29 Tom Tromey <tom@tromey.com>
5368
5369 * tracepoint.c (trace_variable_command): Use std::string.
5370 (encode_actions_1): Remove unused declarations.
5371 (create_tsv_from_upload): Use std::string.
5372
5373 2017-09-29 Tom Tromey <tom@tromey.com>
5374
5375 * cp-support.c (gdb_demangle): Use std::string.
5376
5377 2017-09-29 Tom Tromey <tom@tromey.com>
5378
5379 * stack.c (parse_frame_specification): Use std::string
5380 (info_frame_command): Use gdb::unique_xmalloc_ptr.
5381
5382 2017-09-29 Tom Tromey <tom@tromey.com>
5383
5384 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
5385
5386 2017-09-29 Tom Tromey <tom@tromey.com>
5387
5388 * utils.c (vfprintf_maybe_filtered): Use std::string.
5389 (vfprintf_unfiltered): Likewise.
5390
5391 2017-09-29 Tom Tromey <tom@tromey.com>
5392
5393 * event-top.c (top_level_prompt): Return std::string.
5394 (display_gdb_prompt): Update.
5395
5396 2017-09-29 Tom Tromey <tom@tromey.com>
5397
5398 * unittests/common-utils-selftests.c (format): New function.
5399 (string_vprintf_tests): New function.
5400 (_initialize_common_utils_selftests): Register new tests.
5401 * common/common-utils.c (string_vprintf): New function.
5402 * common/common-utils.h (string_vprintf): Declare.
5403
5404 2017-09-29 Pedro Alves <palves@redhat.com>
5405
5406 * common/rsp-low.c (unpack_varlen_hex): Constify.
5407 * common/rsp-low.h (unpack_varlen_hex): Constify.
5408 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5409 Constify.
5410 * remote.c (remote_set_permissions, read_ptid)
5411 (remote_current_thread, remote_get_threads_with_qthreadinfo)
5412 (remote_static_tracepoint_marker_at)
5413 (remote_static_tracepoint_markers_by_strid)
5414 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
5415 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
5416 (parse_tracepoint_definition, parse_tsv_definition)
5417 (parse_static_tracepoint_marker_definition): Constify.
5418 * tracepoint.h (parse_static_tracepoint_marker_definition)
5419 (parse_trace_status, parse_tracepoint_status)
5420 (parse_tracepoint_definition, parse_tsv_definition): Constify.
5421
5422 2017-09-29 Pedro Alves <palves@redhat.com>
5423
5424 * remote.c (target_buf, target_buf_size): Delete.
5425 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
5426 Use the connection's packet buffer instead.
5427 All callers adjusted.
5428 (_initialize_remote): Remove references to target_buf and
5429 target_buf_size.
5430
5431 2017-09-28 Pedro Alves <palves@redhat.com>
5432
5433 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5434 unittests/common-utils-selftests.c.
5435 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
5436 (COMMON_OBS): Remove utils-selftests.o.
5437 * utils-selftests.c: Move to ...
5438 * unittests/common-utils-selftests.c: ... here and rename self
5439 test to "string_printf".
5440
5441 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
5442
5443 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
5444 having NULL cus or tus.
5445
5446 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5447
5448 * arm-tdep.c: (convert_from_extended): Remove.
5449 (convert_to_extended): Likewise.
5450 (arm_extract_return_value): Use convert_typed_floating.
5451 (arm_store_return_value): Likewise.
5452
5453 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5454 * sh-tdep.c: Do not include "floatformat.h".
5455 (sh_littlebyte_bigword_type): New function.
5456 (sh_register_convert_to_virtual): Use convert_typed_floating.
5457 (sh_register_convert_to_raw): Likewise.
5458 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5459 (sh64_littlebyte_bigword_type): New function.
5460 (sh64_extract_return_value): Use convert_typed_floating.
5461 (sh64_register_convert_to_virtual): Likewise.
5462 (sh64_register_convert_to_raw): Likewise.
5463
5464 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5465
5466 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
5467 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5468
5469 * gdbtypes.h (union type_specific): Make field floatformat hold
5470 just a single struct floatformat, not an array.
5471 (floatformat_from_type): Move here.
5472 * gdbtypes.c (floatformat_from_type): Move here. Update to
5473 changed TYPE_FLOATFORMAT definition.
5474 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
5475 (recursive_dump_type): Likewise.
5476 (init_float_type): Install correct floatformat for byte order.
5477 (arch_float_type): Likewise.
5478
5479 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5480
5481 * gdbtypes.c (init_type): Change incoming argument from
5482 length-in-bytes to length-in-bits. Assert length is a
5483 multiple of TARGET_CHAR_BITS.
5484 (arch_type, arch_flags_type): Likewise.
5485 (init_integer_type): Update call to init_type.
5486 (init_character_type): Likewise.
5487 (init_boolean_type): Likewise.
5488 (init_float_type): Likewise.
5489 (init_decfloat_type): Likewise.
5490 (init_complex_type): Likewise.
5491 (init_pointer_type): Likewise.
5492 (objfile_type): Likewise.
5493 (arch_integer_type): Update call to arch_type.
5494 (arch_character_type): Likewise.
5495 (arch_boolean_type): Likewise.
5496 (arch_float_type): Likewise.
5497 (arch_decfloat_type): Likewise.
5498 (arch_complex_type): Likewise.
5499 (arch_pointer_type): Likewise.
5500 (gdbtypes_post_init): Likewise.
5501
5502 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5503 (read_base_type): Likewise.
5504 * mdebugread.c (basic_type): Likewise.
5505 * stabsread.c (dbx_init_float_type): Likewise.
5506 (rs6000_builtin_type): Likewise.
5507 (read_range_type): Likewise. Also, fix call to init_integer_type
5508 with erroneous length argument.
5509
5510 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5511 * d-lang.c (build_d_types): Likewise.
5512 * f-lang.c (build_fortran_types): Likewise.
5513 * go-lang.c (build_go_types): Likewise.
5514 * opencl-lang.c (build_opencl_types): Likewise.
5515 * jit.c (finalize_symtab): Likewise.
5516 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5517 (build_std_type_info_type): Likewise.
5518 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5519 update call to arch_flags_type.
5520
5521 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5522 arch_type.
5523 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5524 * windows-tdep.c (windows_get_tlb_type): Likewise.
5525
5526 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
5527 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5528 * m32c-tdep.c (make_types): Likewise.
5529 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5530 (rl78_psw_type): Update call to arch_flags_type.
5531 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
5532 * rx-tdep.c (rx_psw_type): Likewise.
5533 (rx_fpsw_type): Likewise.
5534 * sparc-tdep.c (sparc_psr_type): Likewise.
5535 (sparc_fsr_type): Likewise.
5536 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
5537 (sparc64_ccr_type): Likewise.
5538 (sparc64_fsr_type): Likewise.
5539 (sparc64_fprs_type): Likewise.
5540
5541 2017-09-27 Tom Tromey <tom@tromey.com>
5542
5543 * findcmd.c (find_command): Constify.
5544
5545 2017-09-27 Tom Tromey <tom@tromey.com>
5546
5547 * ada-tasks.c (task_command_1, task_command): Constify.
5548
5549 2017-09-27 Tom Tromey <tom@tromey.com>
5550
5551 * symtab.c (maintenance_print_symbol_cache)
5552 (maintenance_flush_symbol_cache)
5553 (maintenance_print_symbol_cache_statistics): Constify.
5554
5555 2017-09-27 Tom Tromey <tom@tromey.com>
5556
5557 * inferior.c (detach_inferior_command, kill_inferior_command)
5558 (inferior_command): Constify.
5559
5560 2017-09-27 Tom Tromey <tom@tromey.com>
5561
5562 * regcache.c (regcache_print, maintenance_print_registers)
5563 (maintenance_print_raw_registers)
5564 (maintenance_print_cooked_registers)
5565 (maintenance_print_register_groups)
5566 (maintenance_print_remote_registers): Constify.
5567
5568 2017-09-27 Tom Tromey <tom@tromey.com>
5569
5570 * printcmd.c (map_display_numbers, undisplay_command)
5571 (enable_disable_display_command, enable_display_command)
5572 (disable_display_command): Constify.
5573
5574 2017-09-27 Tom Tromey <tom@tromey.com>
5575
5576 * breakpoint.h (delete_command): Don't declare.
5577 * breakpoint.c (delete_command, enable_once_command)
5578 (enable_count_command, enable_delete_command, breakpoint_1)
5579 (maintenance_info_breakpoints, stopin_command, stopat_command)
5580 (delete_command, delete_trace_command, save_breakpoints)
5581 (save_breakpoints_command, save_tracepoints_command): Constify.
5582
5583 2017-09-27 Tom Tromey <tom@tromey.com>
5584
5585 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5586 (skip_ws, extract_identifier, macro_define_command)
5587 (macro_undef_command, macro_list_command): Constify.
5588
5589 2017-09-27 Tom Tromey <tom@tromey.com>
5590
5591 * infcmd.c (environment_info, set_environment_command)
5592 (unset_environment_command, path_info, info_proc_cmd_1)
5593 (info_proc_cmd_mappings, info_proc_cmd_stat)
5594 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
5595 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
5596
5597 2017-09-27 Tom Tromey <tom@tromey.com>
5598
5599 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
5600 Constify.
5601
5602 2017-09-27 Tom Tromey <tom@tromey.com>
5603
5604 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
5605
5606 2017-09-27 Tom Tromey <tom@tromey.com>
5607
5608 * demangle.c (demangle_command): Constify.
5609
5610 2017-09-27 Tom Tromey <tom@tromey.com>
5611
5612 * progspace.c (maintenance_info_program_spaces_command):
5613 Constify.
5614
5615 2017-09-27 Tom Tromey <tom@tromey.com>
5616
5617 * compile/compile.c (check_raw_argument, compile_file_command)
5618 (compile_code_command, compile_print_command): Constify.
5619
5620 2017-09-27 Tom Tromey <tom@tromey.com>
5621
5622 * reggroups.c (maintenance_print_reggroups): Constify.
5623
5624 2017-09-27 Tom Tromey <tom@tromey.com>
5625
5626 * dwarf2read.c (save_gdb_index_command): Constify.
5627
5628 2017-09-27 Tom Tromey <tom@tromey.com>
5629
5630 * stap-probe.c (info_probes_stap_command): Constify.
5631
5632 2017-09-27 Tom Tromey <tom@tromey.com>
5633
5634 * fork-child.c (unset_exec_wrapper_command): Constify.
5635
5636 2017-09-27 Tom Tromey <tom@tromey.com>
5637
5638 * btrace.c (get_uint, get_context_size, no_chunk)
5639 (maint_btrace_packet_history_cmd)
5640 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5641 (maint_info_btrace_cmd): Constify.
5642
5643 2017-09-27 Tom Tromey <tom@tromey.com>
5644
5645 * reverse.c (delete_bookmark_command): Constify.
5646
5647 2017-09-27 Tom Tromey <tom@tromey.com>
5648
5649 * remote.c (set_memory_packet_size)
5650 (set_memory_write_packet_size, show_memory_write_packet_size)
5651 (set_memory_read_packet_size, show_memory_read_packet_size)
5652 (compare_sections_command, packet_command, remote_put_command)
5653 (remote_get_command, remote_delete_command): Constify.
5654
5655 2017-09-27 Tom Tromey <tom@tromey.com>
5656
5657 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
5658 (set_mipsfpu_double_command, set_mipsfpu_none_command)
5659 (set_mipsfpu_auto_command): Constify.
5660
5661 2017-09-27 Tom Tromey <tom@tromey.com>
5662
5663 * cli/cli-cmds.h (cd_command): Constify.
5664 * cli/cli-cmds.c (cd_command): Constify.
5665
5666 2017-09-27 Tom Tromey <tom@tromey.com>
5667
5668 * thread.c (thread_name_command, thread_find_command): Constify.
5669
5670 2017-09-27 Tom Tromey <tom@tromey.com>
5671
5672 * probe.c (enable_probes_command, disable_probes_command):
5673 Constify.
5674
5675 2017-09-27 Tom Tromey <tom@tromey.com>
5676
5677 * symfile.c (symbol_file_command): Constify.
5678 * gdbcore.h (deprecated_file_changed_hook): Constify.
5679 * exec.c (deprecated_file_changed_hook, exec_file_command)
5680 (file_command): Constify.
5681 * defs.h (symbol_file_command): Constify.
5682
5683 2017-09-27 Tom Tromey <tom@tromey.com>
5684
5685 * remote-fileio.c (set_system_call_allowed)
5686 (show_system_call_allowed): Constify.
5687
5688 2017-09-27 Tom Tromey <tom@tromey.com>
5689
5690 * tracepoint.c (delete_trace_variable_command)
5691 (tfind_end_command, tfind_start_command, tfind_pc_command)
5692 (tfind_tracepoint_command, tfind_line_command)
5693 (tfind_range_command, tfind_outside_command): Constify.
5694
5695 2017-09-27 Tom Tromey <tom@tromey.com>
5696
5697 * ax-gdb.c (maint_agent_printf_command, agent_command)
5698 (agent_eval_command): Constify.
5699
5700 2017-09-27 Tom Tromey <tom@tromey.com>
5701
5702 * tracepoint.c (info_scope_command): Constify.
5703 * python/python.c (gdbpy_decode_line): Constify.
5704 * python/py-breakpoint.c (bppy_init): Constify.
5705 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
5706 * location.h: (new_linespec_location)
5707 (string_to_event_location_basic, string_to_event_location):
5708 Constify.
5709 * location.c (new_linespec_location)
5710 (string_to_event_location_basic, string_to_event_location):
5711 Constify.
5712 * linespec.h (decode_line_with_current_source)
5713 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
5714 * linespec.c (linespec_lex_to_end)
5715 (decode_line_with_current_source)
5716 (decode_line_with_last_displayed): Constify.
5717 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
5718 Constify.
5719 * cli/cli-cmds.c (edit_command, list_command): Constify.
5720 * breakpoint.h (until_break_command, watch_command_wrapper)
5721 (awatch_command_wrapper, rwatch_command_wrapper)
5722 (init_ada_exception_breakpoint): Constify.
5723 * breakpoint.c (break_command_1, dprintf_command)
5724 (break_range_command, watch_command_wrapper)
5725 (rwatch_command_wrapper, awatch_command_wrapper)
5726 (until_break_command, init_ada_exception_breakpoint)
5727 (strace_marker_create_sals_from_location, trace_command)
5728 (ftrace_command, strace_command, struct tracepoint): Constify.
5729 * ax-gdb.c (agent_command_1): Constify.
5730 * ada-lang.c (ada_exception_sal): Constify.
5731
5732 2017-09-27 Tom Tromey <tom@tromey.com>
5733
5734 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
5735 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
5736 (get_context_size, no_chunk, get_insn_history_modifiers)
5737 (cmd_record_insn_history, get_call_history_modifiers)
5738 (cmd_record_call_history): Constify.
5739
5740 2017-09-27 Tom Tromey <tom@tromey.com>
5741
5742 * source.c (show_substitute_path_command)
5743 (unset_substitute_path_command, set_substitute_path_command):
5744 Constify.
5745
5746 2017-09-27 Tom Tromey <tom@tromey.com>
5747
5748 * typeprint.c (maintenance_print_type): Constify.
5749 * maint.c (maintenance_dump_me, maintenance_demangle)
5750 (maintenance_time_display, maintenance_info_sections)
5751 (maintenance_print_statistics, maintenance_deprecate)
5752 (maintenance_undeprecate): Constify.
5753 (maintenance_do_deprecate): Constify. Use std::string.
5754 (maintenance_selftest): Constify.
5755 * gdbtypes.h (maintenance_print_type): Constify.
5756
5757 2017-09-27 Tom Tromey <tom@tromey.com>
5758
5759 * hppa-tdep.c (unwind_command): Constify.
5760
5761 2017-09-27 Tom Tromey <tom@tromey.com>
5762
5763 * target-descriptions.c (unset_tdesc_filename_cmd)
5764 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
5765 Constify.
5766
5767 2017-09-27 Tom Tromey <tom@tromey.com>
5768
5769 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
5770
5771 2017-09-27 Tom Tromey <tom@tromey.com>
5772
5773 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
5774
5775 2017-09-27 Tom Tromey <tom@tromey.com>
5776
5777 * tui/tui-regs.c (tui_reg_command): Constify.
5778
5779 2017-09-27 Tom Tromey <tom@tromey.com>
5780
5781 * skip.c (skip_file_command, skip_function_command)
5782 (skip_enable_command, skip_disable_command, skip_delete_command):
5783 Constify.
5784
5785 2017-09-27 Tom Tromey <tom@tromey.com>
5786
5787 * record-btrace.c (cmd_record_btrace_bts_start)
5788 (cmd_record_btrace_pt_start): Constify.
5789
5790 2017-09-27 Tom Tromey <tom@tromey.com>
5791
5792 * symmisc.c (maintenance_print_symbols)
5793 (maintenance_print_msymbols, maintenance_print_objfiles)
5794 (maintenance_info_symtabs, maintenance_check_symtabs)
5795 (maintenance_expand_symtabs, maintenance_info_line_tables):
5796 Constify.
5797
5798 2017-09-27 Tom Tromey <tom@tromey.com>
5799
5800 * top.c (new_ui_command): Constify.
5801
5802 2017-09-27 Tom Tromey <tom@tromey.com>
5803
5804 * symfile.c (add_symbol_file_command)
5805 (remove_symbol_file_command, list_overlays_command)
5806 (map_overlay_command, unmap_overlay_command)
5807 (overlay_auto_command, overlay_manual_command)
5808 (overlay_off_command, overlay_load_command): Constify.
5809
5810 2017-09-27 Tom Tromey <tom@tromey.com>
5811
5812 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
5813 (info_spu_mailbox_command, info_spu_dma_command)
5814 (info_spu_proxydma_command): Constify.
5815
5816 2017-09-27 Tom Tromey <tom@tromey.com>
5817
5818 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
5819
5820 2017-09-27 Tom Tromey <tom@tromey.com>
5821
5822 * cli/cli-script.c (user_defined_command): Constify.
5823
5824 2017-09-27 Tom Tromey <tom@tromey.com>
5825
5826 * cli/cli-dump.c (dump_memory_command, dump_value_command)
5827 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
5828 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
5829 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
5830 (dump_binary_value, append_binary_memory, append_binary_value):
5831 Constify.
5832 (struct dump_context) <func>: Constify.
5833 (add_dump_command): Update.
5834
5835 2017-09-27 Tom Tromey <tom@tromey.com>
5836
5837 * cli/cli-cmds.c (show_version, show_configuration)
5838 (source_command, show_user): Constify.
5839
5840 2017-09-27 Tom Tromey <tom@tromey.com>
5841
5842 * target.c (maintenance_print_target_stack): Constify.
5843
5844 2017-09-27 Tom Tromey <tom@tromey.com>
5845
5846 * interps.c (interpreter_exec_cmd): Constify.
5847
5848 2017-09-27 Tom Tromey <tom@tromey.com>
5849
5850 * record-full.c (cmd_record_full_restore): Constify.
5851
5852 2017-09-27 Tom Tromey <tom@tromey.com>
5853
5854 * memattr.c (enable_mem_command, disable_mem_command)
5855 (delete_mem_command): Constify.
5856
5857 2017-09-27 Tom Tromey <tom@tromey.com>
5858
5859 * value.c (show_convenience): Constify.
5860
5861 2017-09-27 Tom Tromey <tom@tromey.com>
5862
5863 * gdbcore.h (core_file_command): Update.
5864 * corefile.c (core_file_command): Constify.
5865
5866 2017-09-27 Tom Tromey <tom@tromey.com>
5867
5868 * user-regs.c (maintenance_print_user_registers): Constify.
5869
5870 2017-09-27 Tom Tromey <tom@tromey.com>
5871
5872 * cp-namespace.c (maintenance_cplus_namespace): Constify.
5873
5874 2017-09-27 Tom Tromey <tom@tromey.com>
5875
5876 * cp-support.c (first_component_command): Constify.
5877
5878 2017-09-27 Tom Tromey <tom@tromey.com>
5879
5880 * psymtab.c (maintenance_print_psymbols)
5881 (maintenance_info_psymtabs, maintenance_check_psymtabs):
5882 Constify.
5883
5884 2017-09-27 Tom Tromey <tom@tromey.com>
5885
5886 * windows-tdep.c (display_tib): Constify.
5887
5888 2017-09-27 Tom Tromey <tom@tromey.com>
5889
5890 * linux-fork.c (delete_checkpoint_command)
5891 (detach_checkpoint_command): Constify.
5892
5893 2017-09-27 Tom Tromey <tom@tromey.com>
5894
5895 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
5896
5897 2017-09-27 Tom Tromey <tom@tromey.com>
5898
5899 * arc-tdep.c (dump_arc_instruction_command): Constify.
5900
5901 2017-09-27 Tom Tromey <tom@tromey.com>
5902
5903 * valprint.c (set_radix, show_radix): Constify.
5904
5905 2017-09-27 Tom Tromey <tom@tromey.com>
5906
5907 * dtrace-probe.c (info_probes_dtrace_command): Constify.
5908
5909 2017-09-27 Tom Tromey <tom@tromey.com>
5910
5911 * command.h (not_just_help_class_command): Update.
5912 * cli/cli-decode.h (not_just_help_class_command): Update.
5913 * cli/cli-decode.c (not_just_help_class_command): Constify.
5914
5915 2017-09-27 Tom Tromey <tom@tromey.com>
5916
5917 * gdb_bfd.c (maintenance_info_bfds): Constify.
5918
5919 2017-09-27 Tom Tromey <tom@tromey.com>
5920
5921 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
5922 overloads.
5923 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
5924 (do_const_cfunc): New function.
5925 (cmd_cfunc_eq): New overload.
5926 (cli_user_command_p): Check do_const_cfunc.
5927 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
5928 const_cfunc.
5929 * command.h (add_cmd): Add const overload and no-function
5930 overload.
5931 (set_cmd_cfunc): Add const overload.
5932 (cmd_const_cfunc_ftype): Declare.
5933 (cmd_cfunc_eq): Add const overload.
5934 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
5935 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
5936 overload.
5937
5938 2017-09-27 Tom Tromey <tom@tromey.com>
5939
5940 * macroexp.c (get_next_token_for_substitution): New function.
5941 (substitute_args): Call it. Check for __VA_OPT__.
5942
5943 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5944 Pedro Alves <palves@redhat.com>
5945
5946 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
5947 producer_is_icc_lt_14.
5948 (producer_is_icc_lt_14): New function.
5949 (check_producer): Add code for checking version of ICC.
5950 (producer_is_icc): Move to producer.c.
5951 (read_structure_type): Restrict ICC workaround to ICC<14.
5952 * producer.c: Include selftest.h.
5953 (producer_is_icc, producer_parsing_tests, _initialize_producer):
5954 New functions.
5955 * producer.h (producer_is_icc): New declaration.
5956
5957 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5958
5959 * Makefile.in (SFILES): Add producer.c.
5960 (COMMON_OBS): Add producer.o
5961 * amd64-tdep.c (producer.h): Add new include.
5962 * dwarf2read.c (producer.h): Add new include.
5963 * producer.c: New file.
5964 * producer.h: New file.
5965 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
5966 producer.c.
5967 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
5968 producer.h.
5969
5970 2017-09-26 Matthias Klose <doko@ubuntu.com>
5971
5972 * configure.ac: Search ncursesw before ncurses.
5973 Check ncursesw/ncurses.h before ncurses/ncurses.h.
5974 * gdb_curses.h: Include <ncursesw/ncurses.h>
5975 * config.in, configure: Regenerate.
5976
5977 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5978
5979 PR gdb/22185
5980 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
5981 obsolete.
5982 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
5983 Remove i386sol2 support.
5984 * configure.nat <i386sol2>: Remove.
5985 <sol2-64>: Fold into ...
5986 <sol2>: ... this.
5987 Move common settings to default section.
5988 Add sol-thread.o.
5989 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
5990 x86_64-*-solaris2.1[0-9]*>: Rename to ...
5991 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
5992 <i[34567]86-*-solaris*>: Remove.
5993 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
5994
5995 * configure.ac: Remove wctype in libw check.
5996 (_MSE_INT_H): Don't define on Solaris 7-9.
5997 <solaris*>: Remove libthread_db.so.1 check.
5998 * configure: Regenerate.
5999 * config.in: Regenerate.
6000
6001 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6002 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6003 (gdb_ps_size_t): Remove.
6004 Use base types in users.
6005 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6006
6007 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6008
6009 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6010
6011 PR build/22206
6012 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6013 (adi_is_addr_mapped): Likewise.
6014 (PSR_ICC): Don't redefine.
6015 (PSR_IMPL): Likewise.
6016
6017 2017-09-25 Tom Tromey <tom@tromey.com>
6018
6019 * regcache.c (regcache::dump): Use string_printf.
6020
6021 2017-09-25 Tom Tromey <tom@tromey.com>
6022
6023 * regcache.c (class regcache_invalidator): New.
6024 (struct register_to_invalidate): Remove.
6025 (make_cleanup_regcache_invalidate): Remove.
6026 (regcache::raw_write): Use regcache_invalidator.
6027
6028 2017-09-25 Tom Tromey <tom@tromey.com>
6029
6030 * spu-tdep.c (spu2ppu_sniffer): Update.
6031 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6032 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6033 Remove.
6034 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6035 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6036 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6037 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6038 (frame_pop): Update.
6039
6040 2017-09-25 Tom Tromey <tom@tromey.com>
6041
6042 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6043 * regcache.h (regcache_xfree): Don't declare.
6044 * regcache.c (regcache_xfree): Remove.
6045 (do_regcache_xfree): Use delete.
6046 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6047 * linux-fork.c (free_fork): Use delete.
6048 (fork_save_infrun_state): Likewise.
6049 * jit.c (jit_dealloc_cache): Use delete.
6050 * infrun.c (discard_infcall_suspend_state): Use delete.
6051
6052 2017-09-25 Tom Tromey <tom@tromey.com>
6053
6054 * regcache.h (regcache_xmalloc): Don't declare.
6055 (regcache_raw_set_cached_value): Update comment.
6056 * regcache.c (regcache_xmalloc): Remove.
6057 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6058 * jit.c (jit_frame_sniffer): Use new.
6059 * frame.c (frame_save_as_regcache): Use new.
6060
6061 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6062
6063 * NEWS: Advertise support for guarded-storage registers on IBM z.
6064
6065 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6066
6067 * s390-linux-nat.c (have_regset_gs): New static variable.
6068 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6069 control block and guarded-storage broadcast control regsets.
6070 (s390_read_description): Detect whether the target has
6071 guarded-storage support, return appropriate tdesc.
6072 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6073 (features/s390x-gs-linux64.c): Likewise.
6074 (struct gdbarch_tdep) <have_gs>: New field.
6075 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6076 (s390_gsbc_regset): New variables.
6077 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6078 and s390_gsbc_regset, if applicable.
6079 (s390_core_read_description): Check whether core file was from a
6080 target with guarded-storage support; include appropriate regsets.
6081 (s390_gdbarch_init): Add registers for guarded-storage support.
6082 (_initialize_s390_tdep): Initialize new target descriptions that
6083 include registers for guarded-storage support.
6084 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6085 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6086 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6087 (S390_NUM_REGS): Adjust macro definition.
6088 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6089 (tdesc_s390x_gs_linux64): New declarations.
6090
6091 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6092
6093 * features/s390-gs-linux64.xml: New file.
6094 * features/s390-gs.xml: New file.
6095 * features/s390-gsbc.xml: New file.
6096 * features/s390x-gs-linux64.xml: New file.
6097 * features/Makefile (WHICH): Add s390-gs-linux64 and
6098 s390x-gs-linux64.
6099 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6100 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6101 * features/s390-gs-linux64.c: New generated file.
6102 * features/s390x-gs-linux64.c: New file.
6103 * regformats/s390-gs-linux64.dat: New file.
6104 * regformats/s390x-gs-linux64.dat: New file.
6105
6106 2017-09-23 Tom Tromey <tom@tromey.com>
6107
6108 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6109
6110 2017-09-22 Tom Tromey <tom@tromey.com>
6111
6112 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6113 type to scoped_restore_tmpl.
6114 <scoped_input_handler>: Initialize m_quit_handler directly.
6115
6116 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6117
6118 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6119 (cd_command): Likewise. Free "current_directory" before
6120 assigning to it.
6121 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6122 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6123 * top.c (gdb_dirbuf): Remove global declaration.
6124 * top.h (gdb_dirbuf): Likewise.
6125
6126 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6127
6128 * gnulib/aclocal.m4: Regenerate.
6129 * gnulib/config.in: Regenerate.
6130 * gnulib/configure: Regenerate.
6131 * gnulib/import/Makefile.am: Regenerate.
6132 * gnulib/import/Makefile.in: Regenerate.
6133 * gnulib/import/assure.h: New file.
6134 * gnulib/import/at-func.c: Likewise
6135 * gnulib/import/chdir-long.c: New file.
6136 * gnulib/import/chdir-long.h: New file.
6137 * gnulib/import/cloexec.c: New file.
6138 * gnulib/import/cloexec.h: New file.
6139 * gnulib/import/close.c: New file.
6140 * gnulib/import/closedir.c: New file.
6141 * gnulib/import/dirent-private.h: New file.
6142 * gnulib/import/dup-safer.c: New file.
6143 * gnulib/import/dup.c: New file.
6144 * gnulib/import/dup2.c: New file.
6145 * gnulib/import/error.c: New file.
6146 * gnulib/import/error.h: New file.
6147 * gnulib/import/exitfail.c: New file.
6148 * gnulib/import/exitfail.h: New file.
6149 * gnulib/import/fchdir.c: New file.
6150 * gnulib/import/fcntl.c: New file.
6151 * gnulib/import/fcntl.in.h: New file.
6152 * gnulib/import/fd-hook.c: New file.
6153 * gnulib/import/fd-hook.h: New file.
6154 * gnulib/import/fd-safer.c: New file.
6155 * gnulib/import/fdopendir.c: New file.
6156 * gnulib/import/filename.h: New file.
6157 * gnulib/import/filenamecat-lgpl.c: New file.
6158 * gnulib/import/filenamecat.h: New file.
6159 * gnulib/import/fstat.c: New file.
6160 * gnulib/import/fstatat.c: New file.
6161 * gnulib/import/getcwd-lgpl.c: New file.
6162 * gnulib/import/getcwd.c: New file.
6163 * gnulib/import/getdtablesize.c: New file.
6164 * gnulib/import/getlogin_r.c: New file.
6165 * gnulib/import/getprogname.c: New file.
6166 * gnulib/import/getprogname.h: New file.
6167 * gnulib/import/gettext.h: New file.
6168 * gnulib/import/glob-libc.h: New file.
6169 * gnulib/import/glob.c: New file.
6170 * gnulib/import/glob.in.h: New file.
6171 * gnulib/import/intprops.h: New file.
6172 * gnulib/import/m4/chdir-long.m4: New file.
6173 * gnulib/import/m4/close.m4: New file.
6174 * gnulib/import/m4/closedir.m4: New file.
6175 * gnulib/import/m4/d-ino.m4: New file.
6176 * gnulib/import/m4/d-type.m4: New file.
6177 * gnulib/import/m4/dup.m4: New file.
6178 * gnulib/import/m4/dup2.m4: New file.
6179 * gnulib/import/m4/error.m4: New file.
6180 * gnulib/import/m4/fchdir.m4: New file.
6181 * gnulib/import/m4/fcntl.m4: New file.
6182 * gnulib/import/m4/fcntl_h.m4: New file.
6183 * gnulib/import/m4/fdopendir.m4: New file.
6184 * gnulib/import/m4/filenamecat.m4: New file.
6185 * gnulib/import/m4/fstat.m4: New file.
6186 * gnulib/import/m4/fstatat.m4: New file.
6187 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6188 * gnulib/import/m4/getcwd-path-max.m4: New file.
6189 * gnulib/import/m4/getcwd.m4: New file.
6190 * gnulib/import/m4/getdtablesize.m4: New file.
6191 * gnulib/import/m4/getlogin_r.m4: New file.
6192 * gnulib/import/m4/getprogname.m4: New file.
6193 * gnulib/import/m4/glob.m4: New file.
6194 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6195 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6196 * gnulib/import/m4/mempcpy.m4: New file.
6197 * gnulib/import/m4/memrchr.m4: New file.
6198 * gnulib/import/m4/mode_t.m4: New file.
6199 * gnulib/import/m4/msvc-inval.m4: New file.
6200 * gnulib/import/m4/msvc-nothrow.m4: New file.
6201 * gnulib/import/m4/open.m4: New file.
6202 * gnulib/import/m4/openat.m4: New file.
6203 * gnulib/import/m4/opendir.m4: New file.
6204 * gnulib/import/m4/readdir.m4: New file.
6205 * gnulib/import/m4/realloc.m4: New file.
6206 * gnulib/import/m4/rewinddir.m4: New file.
6207 * gnulib/import/m4/save-cwd.m4: New file.
6208 * gnulib/import/m4/strdup.m4: New file.
6209 * gnulib/import/m4/strerror.m4: New file.
6210 * gnulib/import/m4/unistd-safer.m4: New file.
6211 * gnulib/import/mempcpy.c: New file.
6212 * gnulib/import/memrchr.c: New file.
6213 * gnulib/import/msvc-inval.c: New file.
6214 * gnulib/import/msvc-inval.h: New file.
6215 * gnulib/import/msvc-nothrow.c: New file.
6216 * gnulib/import/msvc-nothrow.h: New file.
6217 * gnulib/import/open.c: New file.
6218 * gnulib/import/openat-die.c: New file.
6219 * gnulib/import/openat-priv.h: New file.
6220 * gnulib/import/openat-proc.c: New file.
6221 * gnulib/import/openat.c: New file.
6222 * gnulib/import/openat.h: New file.
6223 * gnulib/import/opendir.c: New file.
6224 * gnulib/import/pipe-safer.c: New file.
6225 * gnulib/import/readdir.c: New file.
6226 * gnulib/import/realloc.c: New file.
6227 * gnulib/import/rewinddir.c: New file.
6228 * gnulib/import/save-cwd.c: New file.
6229 * gnulib/import/save-cwd.h: New file.
6230 * gnulib/import/strdup.c: New file.
6231 * gnulib/import/strerror-override.c: New file.
6232 * gnulib/import/strerror-override.h: New file.
6233 * gnulib/import/strerror.c: New file.
6234 * gnulib/import/unistd--.h: New file.
6235 * gnulib/import/unistd-safer.h: New file.
6236 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6237 "getcwd" and "glob".
6238 * ser-tcp.c: Undefine "close" before redefining it.
6239
6240 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6241
6242 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6243 get rid of res_val.
6244
6245 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6246
6247 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6248 <sol2,sparc>: Likewise.
6249 <sol2-64,i386>: Likewise.
6250
6251 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6252 -Wdeprecated-declarations on *-*-solaris*.
6253 * configure: Regenerate.
6254
6255 * procfs.c: Include "nat/inferior.h".
6256 (procfs_info_proc): Fix typo.
6257
6258 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6259
6260 * remote.c (vector): Include.
6261 (struct private_thread_info): Add field, thread_handle.
6262 (free_private_thread_info): Deallocate storage associated with
6263 thread handle.
6264 (get_private_info_thread): Initialize `thread_handle' field.
6265 (struct thread_item): Add field, thread_handle.
6266 (clear_threads_listing_context): Deallocate storage associated
6267 with thread handle.
6268 (start_thread): Add support for "handle" attribute.
6269 (thread_attributes): Add "handle".
6270 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6271 field.
6272 (remote_update_thread_list): Update thread_handle.
6273 (remote_thread_handle_to_thread_info): New function.
6274 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6275
6276 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6277
6278 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6279 function.
6280 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6281 * python/python-internal.h (thread_object_type): Declare.
6282
6283 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6284
6285 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6286 (target_thread_handle_to_thread_info): Declare.
6287 * target.c (target_thread_handle_to_thread_info): New function.
6288 * target-delegates.c: Regenerate.
6289 * gdbthread.h (find_thread_by_handle): Declare.
6290 * thread.c (find_thread_by_handle): New function.
6291 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6292 function.
6293 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6294
6295 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6296
6297 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6298
6299 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6300
6301 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6302
6303 2017-09-21 Yao Qi <yao.qi@linaro.org>
6304
6305 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6306 to gdb_target_obs.
6307
6308 2017-09-20 Tom Tromey <tom@tromey.com>
6309
6310 * breakpoint.c (struct counted_command_line): Remove.
6311 (breakpoint_commands): Update.
6312 (alloc_counted_command_line, incref_counted_command_line)
6313 (decref_counted_command_line, do_cleanup_counted_command_line)
6314 (make_cleanup_decref_counted_command_line): Remove.
6315 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6316 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6317 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6318 (save_breakpoints): Update.
6319 * breakpoint.h (counted_command_line): Now a typedef to
6320 shared_ptr.
6321 (struct breakpoint) <commands>: Now a counted_command_line.
6322 (struct bpstats) <command>: Likewise.
6323
6324 2017-09-20 Tom Tromey <tom@tromey.com>
6325
6326 * breakpoint.c (struct commands_info, do_map_commands_command):
6327 Remove.
6328 (commands_command_1): Update.
6329 (iterate_over_related_breakpoints): Take a function_view.
6330 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6331 (delete_command): Update.
6332 (map_breakpoint_numbers): Take a function_view.
6333 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6334 (disable_command): Update.
6335 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6336 (enable_command): Update.
6337 (struct disp_data, do_enable_breakpoint_disp)
6338 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6339 (do_map_enable_delete_breakpoint): Remove.
6340 (enable_once_command, enable_count_command, enable_delete_command)
6341 (delete_trace_variable_command): Update.
6342
6343 2017-09-20 Tom Tromey <tom@tromey.com>
6344
6345 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6346 (bpstat_clear): Use delete.
6347 (bpstats): New constructors.
6348 (bpstat_copy, bpstat_stop_status): Use new.
6349 (dprintf_after_condition_true): Update.
6350 * breakpoint.h (bpstats::bpstats): Add constructors.
6351 (bpstats::~bpstats): Add destructor.
6352
6353 2017-09-20 Pedro Alves <palves@redhat.com>
6354
6355 * eval.c (make_params): Delete, refactored as ...
6356 (class fake_method): ... this new type's ctor.
6357 (fake_method::~fake_method): New.
6358 (evaluate_subexp_standard): Use 'fake_method'.
6359
6360 2017-09-20 Tom Tromey <tom@tromey.com>
6361
6362 * windows-nat.c (get_windows_debug_event, windows_wait)
6363 (do_initial_windows_stuff, windows_attach): Update.
6364 * utils.c (vwarning, internal_vproblem): Update.
6365 (ui_unregister_input_event_handler_cleanup)
6366 (prepare_to_handle_input): Remove.
6367 (class scoped_input_handler): New.
6368 (defaulted_query, prompt_for_continue): Update.
6369 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6370 Update.
6371 * top.c (undo_terminal_modifications_before_exit): Update.
6372 * target/target.h (target_terminal_init, target_terminal_inferior)
6373 (target_terminal_ours): Don't declare.
6374 (class target_terminal): New.
6375 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
6376 (target_terminal_ours_for_output)
6377 (make_cleanup_restore_target_terminal): Don't declare.
6378 (target_terminal_info): Remove.
6379 * target.c (enum terminal_state, terminal_state): Remove.
6380 (target_terminal::terminal_state): Define.
6381 (target_terminal::init): Rename from target_terminal_init.
6382 (target_terminal::inferior): Rename from
6383 target_terminal_inferior.
6384 (target_terminal::ours): Rename from target_terminal_ours.
6385 (target_terminal::ours_for_output): Rename from
6386 target_terminal_ours_for_output.
6387 (target_terminal::info): New method.
6388 (cleanup_restore_target_terminal)
6389 (make_cleanup_restore_target_terminal): Remove.
6390 * solib.c (handle_solib_event): Update.
6391 * remote.c (remote_serial_quit_handler): Update.
6392 (remote_terminal_inferior, remote_wait_as): Update.
6393 * record-full.c (record_full_wait_1): Update.
6394 * nto-procfs.c (procfs_create_inferior): Update.
6395 * nat/fork-inferior.c (startup_inferior): Update.
6396 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6397 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6398 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6399 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6400 (mi_breakpoint_created, mi_breakpoint_deleted)
6401 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
6402 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6403 (mi_user_selected_context_changed, report_initial_inferior):
6404 Update.
6405 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
6406 (linux_nat_terminal_inferior): Update.
6407 * infrun.c (follow_fork_inferior)
6408 (handle_vfork_child_exec_or_exit, do_target_resume)
6409 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
6410 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
6411 Update.
6412 * inflow.c (child_terminal_init, info_terminal_command): Update.
6413 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
6414 (attach_command): Update.
6415 * infcall.c (call_thread_fsm_should_stop): Update.
6416 * gnu-nat.c (gnu_attach): Update.
6417 * extension.c (struct active_ext_lang_state)
6418 (restore_active_ext_lang): Update.
6419 * exceptions.c (print_flush): Update.
6420 * event-top.c (async_enable_stdin, default_quit_handler): Update.
6421 (struct quit_handler_cleanup_data, restore_quit_handler)
6422 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
6423 Remove.
6424 * cp-support.c (gdb_demangle): Update.
6425 * breakpoint.c (update_inserted_breakpoint_locations)
6426 (insert_breakpoint_locations, handle_jit_event)
6427 (disable_breakpoints_in_unloaded_shlib): Update.
6428 * annotate.c (annotate_breakpoints_invalid)
6429 (annotate_frames_invalid): Update.
6430
6431 2017-09-20 Tom Tromey <tom@tromey.com>
6432
6433 * main.c (catch_command_errors): Rename from
6434 catch_command_errors_const.
6435 (captured_main_1): Update.
6436
6437 2017-09-20 Pedro Alves <palves@redhat.com>
6438
6439 * cli/cli-cmds.c (list_command): Use print_sal_location.
6440 (print_sal_location): New function.
6441 (ambiguous_line_spec): Use print_sal_location.
6442 * linespec.c (symbol_to_sal): Record the symbol in the sal.
6443 * symtab.c (find_function_start_sal): Likewise.
6444 * symtab.h (symtab_and_line::symbol): New field.
6445
6446 2017-09-20 Pedro Alves <palves@redhat.com>
6447
6448 * linespec.c (minsym_found): Handle non-text minsyms.
6449 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
6450
6451 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6452
6453 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
6454 backslash.
6455
6456 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6457
6458 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
6459 vmovups instead vmovaps.
6460 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
6461
6462 2017-09-19 John Baldwin <jhb@FreeBSD.org>
6463
6464 * NEWS (Changes since GDB 8.0): Add starti.
6465 * infcmd.c (enum run_break): New.
6466 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
6467 case.
6468 (run_command): Use enum run_how.
6469 (start_command): Likewise.
6470 (starti_command): New function.
6471 (RUN_ARGS_HELP): New macro.
6472 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
6473 commands. Add starti command.
6474
6475 2017-09-19 Yao Qi <yao.qi@linaro.org>
6476
6477 * Makefile.in (monitor.o): Remove the rule.
6478
6479 2017-09-19 Yao Qi <yao.qi@linaro.org>
6480
6481 * annotate.h (struct annotate_arg_emitter): Use
6482 DISABLE_COPY_AND_ASSIGN.
6483 * common/refcounted-object.h (refcounted_object): Likewise.
6484 * completer.h (struct completion_result): Likewise.
6485 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
6486 * filename-seen-cache.h (filename_seen_cache): Likewise.
6487 * gdbcore.h (thread_section_name): Likewise.
6488 * gdb_regex.h (compiled_regex): Likewise.
6489 * gdbthread.h (scoped_restore_current_thread): Likewise.
6490 * inferior.h (scoped_restore_current_inferior): Likewise.
6491 * jit.c (jit_reader): Likewise.
6492 * linespec.h (struct linespec_result): Likewise.
6493 * mi/mi-parse.h (struct mi_parse): Likewise.
6494 * nat/fork-inferior.c (execv_argv): Likewise.
6495 * progspace.h (scoped_restore_current_program_space): Likewise.
6496 * python/python-internal.h (class gdbpy_enter): Likewise.
6497 * regcache.h (regcache): Likewise.
6498 * target-descriptions.c (struct tdesc_reg): Likewise.
6499 (struct tdesc_type): Likewise.
6500 (struct tdesc_feature): Likewise.
6501 * ui-out.h (ui_out_emit_type): Likewise.
6502
6503 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6504
6505 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6506 label abort_expression.
6507
6508 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6509
6510 * common/buffer.c (buffer_xml_printf): Adjust.
6511 * common/xml-utils.c (xml_escape_text): Change return type to
6512 std::string, update code accordingly.
6513 * common/xml-utils.h (xml_escape_text): Change return type to
6514 std::string.
6515 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6516 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6517 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6518 Adjust.
6519
6520 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6521
6522 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6523 (SUBDIR_UNITTESTS_OBS): Add new object file.
6524 * unittests/xml-utils-selftests.c: New file.
6525
6526 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6527
6528 * common/selftest.h (selftest): New struct/interface.
6529 (register_test): Add name parameter, add new overload.
6530 (run_tests): Add filter parameter.
6531 (for_each_selftest_ftype): New typedef.
6532 (for_each_selftest): New declaration.
6533 * common/selftest.c (tests): Change type to
6534 map<string, unique_ptr<selftest>>.
6535 (simple_selftest): New struct.
6536 (register_test): New function.
6537 (register_test): Add name parameter and use it.
6538 (run_tests): Add filter parameter and use it. Add prints.
6539 Adjust to vector -> map change.
6540 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
6541 registering selftests.
6542 * arm-tdep.c (_initialize_arm_tdep): Likewise.
6543 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
6544 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
6545 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
6546 * findvar.c (_initialize_findvar): Likewise.
6547 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
6548 * maint.c (maintenance_selftest): Update call to run_tests.
6549 (maintenance_info_selftests): New function.
6550 (_initialize_maint_cmds): Register "maintenance info selftests"
6551 command. Update "maintenance selftest" doc.
6552 * regcache.c (_initialize_regcache): Add names when registering
6553 selftests.
6554 * rust-exp.y (_initialize_rust_exp): Likewise.
6555 * selftest-arch.c (gdbarch_selftest): New struct.
6556 (gdbarch_tests): Remove.
6557 (register_test_foreach_arch): Add name parameter. Call
6558 register_test.
6559 (tests_with_arch): Remove, move most content to
6560 gdbarch_selftest::operator().
6561 (_initialize_selftests_foreach_arch): Remove.
6562 * selftest-arch.h (register_test_foreach_arch): Add name
6563 parameter.
6564 (run_tests_with_arch): New declaration.
6565 * utils-selftests.c (_initialize_utils_selftests): Add names
6566 when registering selftests.
6567 * utils.c (_initialize_utils): Likewise.
6568 * unittests/array-view-selftests.c
6569 (_initialize_array_view_selftests): Likewise.
6570 * unittests/environ-selftests.c (_initialize_environ_selftests):
6571 Likewise.
6572 * unittests/function-view-selftests.c
6573 (_initialize_function_view_selftests): Likewise.
6574 * unittests/offset-type-selftests.c
6575 (_initialize_offset_type_selftests): Likewise.
6576 * unittests/optional-selftests.c
6577 (_initialize_optional_selftests): Likewise.
6578 * unittests/scoped_restore-selftests.c
6579 (_initialize_scoped_restore_selftests): Likewise.
6580 * NEWS: Document "maintenance selftest" and "maint info
6581 selftests".
6582
6583 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6584
6585 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
6586 scoped_restore.
6587
6588 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6589
6590 * mi/mi-main.c (mi_load_progress): Make uiout variable
6591 a unique_ptr.
6592
6593 2017-09-15 Pedro Alves <palves@redhat.com>
6594
6595 * compile/compile-c-types.c (convert_enum, convert_int)
6596 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
6597
6598 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6599
6600 * dwarf2read.c (copy_string): Remove.
6601 (parse_macro_definition): Replace copy_string with savestring.
6602
6603 2017-09-15 Yao Qi <yao.qi@linaro.org>
6604
6605 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
6606 gdb_target_obs.
6607 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6608 Likewise.
6609 (i[34567]86-*-linux*): Likewise.
6610
6611 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6612
6613 * dwarf2expr.h (dwarf_stack_value): Add constructor.
6614 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
6615 <stack>: Change type to std::vector.
6616 <stack_len, stack_allocated>: Remove.
6617 <grow_stack>: Remove.
6618 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6619 (dwarf_expr_context::~dwarf_expr_context): Remove.
6620 (dwarf_expr_context::grow_stack): Remove.
6621 (dwarf_expr_context::push): Adjust.
6622 (dwarf_expr_context::pop): Adjust.
6623 (dwarf_expr_context::fetch): Adjust.
6624 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
6625 (dwarf_expr_context::stack_empty_p): Adjust.
6626 (dwarf_expr_context::execute_stack_op): Adjust.
6627
6628 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6629
6630 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
6631 return type to bool.
6632 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
6633
6634 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6635
6636 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
6637 Change type to bool.
6638 (dwarf_stack_value) <in_stack_memory>: Likewise.
6639 (dwarf_expr_context) <push_address>: Change parameter type to
6640 bool.
6641 <fetch_in_stack_memory>: Change return type to bool.
6642 <push>: Change parameter type to bool.
6643 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
6644 to bool.
6645 (dwarf_expr_context::push_address): Likewise.
6646 (dwarf_expr_context::fetch_in_stack_memory): Change return type
6647 to bool.
6648 (dwarf_expr_context::execute_stack_op): Adjust.
6649 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
6650
6651 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6652
6653 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
6654 (struct dwarf_expr_context) <n_pieces>: Remove.
6655 <pieces>: Change type to std::vector.
6656 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6657 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
6658 pieces.
6659 (dwarf_expr_context::add_piece): Adjust.
6660 * dwarf2loc.c (struct piece_closure): Initialize fields.
6661 <n_pieces>: Remove.
6662 <pieces>: Change type to std::vector.
6663 (allocate_piece_closure): Adjust, change parameter to
6664 std::vector rvalue and std::move it to piece_closure.
6665 (rw_pieced_value): Adjust.
6666 (check_pieced_synthetic_pointer): Adjust.
6667 (indirect_synthetic_pointer): Adjust.
6668 (coerce_pieced_ref): Adjust.
6669 (free_pieced_value_closure): Adjust. Use delete to free
6670 piece_closure.
6671 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
6672 to allocate_piece_closure.
6673 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
6674
6675 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6676
6677 * probe.h (probe_ops_cp): Remove typedef.
6678 (DEF_VEC_P (probe_ops_cp)): Remove.
6679 (all_probe_ops): Change type to std::vector.
6680 * probe.c (info_probes_for_ops): Adjust to vector change.
6681 (probe_linespec_to_ops): Likewise.
6682 (all_probe_ops): Change type to std::vector.
6683 (_initialize_probe): Adjust to vector change.
6684 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
6685 * elfread.c (elf_get_probes): Likewise.
6686 * stap-probe.c (_initialize_stap_probe): Likewise.
6687
6688 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6689
6690 * probe.h (struct bound_probe): Define constructors.
6691 * probe.c (bound_probe_s): Remove typedef.
6692 (DEF_VEC_O (bound_probe_s)): Remove VEC.
6693 (collect_probes): Change return type to std::vector, remove
6694 cleanup.
6695 (compare_probes): Return bool, change parameter type. Change
6696 semantic to "less than".
6697 (gen_ui_out_table_header_info): Change parameter to std::vector
6698 and update.
6699 (exists_probe_with_pops): Likewise.
6700 (info_probes_for_ops): Update to std::vector change.
6701 (enable_probes_command): Likewise.
6702 (disable_probes_command): Likewise.
6703
6704 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6705
6706 * probe.h (struct probe_ops) <get_probes>: Change parameter from
6707 vec to std::vector.
6708 * probe.c (parse_probes_in_pspace): Update.
6709 (find_probes_in_objfile): Update.
6710 (find_probe_by_pc): Update.
6711 (collect_probes): Update.
6712 (probe_any_get_probes): Update.
6713 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
6714 return type to reference to std::vector.
6715 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
6716 std::vector and update.
6717 (dtrace_process_dof): Likewise.
6718 (dtrace_get_probes): Likewise.
6719 * elfread.c (elf_get_probes): Change return type to std::vector,
6720 store an std::vector in bfd_data.
6721 (probe_key_free): Update to std::vector.
6722 * stap-probe.c (handle_stap_probe): Change parameter to
6723 std::vector and update.
6724 (stap_get_probes): Likewise.
6725 * symfile-debug.c (debug_sym_get_probes): Change return type to
6726 std::vector and update.
6727
6728 2017-09-11 Tom Tromey <tom@tromey.com>
6729
6730 * breakpoint.c (program_breakpoint_here_p): Update.
6731 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
6732 from make_show_memory_breakpoints_cleanup. Return a
6733 scoped_restore_tmpl<int>.
6734 (restore_show_memory_breakpoints): Remove.
6735 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
6736 * mem-break.c (memory_validate_breakpoint): Update.
6737 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
6738 (ia64_memory_remove_breakpoint): Update.
6739 (ia64_breakpoint_from_pc): Update.
6740 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
6741 from make_show_memory_breakpoints_cleanup.
6742
6743 2017-09-11 Tom Tromey <tom@tromey.com>
6744
6745 * d-namespace.c (d_lookup_symbol): Use std::string.
6746 (find_symbol_in_baseclass): Likewise.
6747
6748 2017-09-11 Tom Tromey <tom@tromey.com>
6749
6750 * ctf.c (ctf_start): Use std::string.
6751
6752 2017-09-11 Tom Tromey <tom@tromey.com>
6753
6754 * ada-lang.c (is_known_support_routine): Update.
6755 (ada_unhandled_exception_name_addr_from_raise): Update.
6756 * guile/scm-frame.c (gdbscm_frame_name): Update.
6757 * python/py-frame.c (frapy_name): Update.
6758 (frapy_function): Update.
6759 * stack.h (find_frame_funname): Update.
6760 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
6761 (print_frame): Update.
6762
6763 2017-09-11 Tom Tromey <tom@tromey.com>
6764
6765 * findcmd.c (put_bits): Take a gdb::byte_vector.
6766 (parse_find_args): Return gdb::byte_vector. "args" now const.
6767 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
6768 cleanups.
6769 (find_command): Update.
6770
6771 2017-09-11 Tom Tromey <tom@tromey.com>
6772
6773 * cli/cli-script.c (class scoped_restore_hook_in): New.
6774 (clear_hook_in_cleanup): Remove.
6775 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
6776 scoped_restore_hook_in.
6777
6778 2017-09-11 Tom Tromey <tom@tromey.com>
6779
6780 * cli/cli-script.c (restore_interp): Remove.
6781 (read_command_lines): Use scoped_restore_interp.
6782 * interps.c (scoped_restore_interp::set_temp): Rename from
6783 interp_set_temp.
6784 * interps.h (class scoped_restore_interp): New.
6785 (interp_set_temp): Remove.
6786
6787 2017-09-11 Tom Tromey <tom@tromey.com>
6788
6789 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6790 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
6791 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
6792 scoped_restore.
6793 (mi_cmd_break_insert_1): Update.
6794 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
6795 scoped_restore.
6796
6797 2017-09-11 Tom Tromey <tom@tromey.com>
6798
6799 * demangle.c (demangle_command): Update.
6800 * breakpoint.c (disable_command): Update.
6801 (enable_command): Update.
6802 (find_location_by_number): Make "number" const. Use
6803 get_number_trailer.
6804 * cli/cli-utils.c (extract_arg): Return std::string.
6805 * probe.c (parse_probe_linespec): Update. Change types.
6806 (collect_probes): Take string arguments.
6807 (parse_probe_linespec): Likewise.
6808 (info_probes_for_ops): Update.
6809 (enable_probes_command): Update.
6810 (disable_probes_command): Update.
6811 * break-catch-sig.c (catch_signal_split_args): Update.
6812 * mi/mi-parse.c (mi_parse): Update.
6813
6814 2017-09-11 Tom Tromey <tom@tromey.com>
6815
6816 * language.h (language_enum): Make argument const.
6817 * language.c (language_enum): Make argument const.
6818
6819 2017-09-11 Tom Tromey <tom@tromey.com>
6820
6821 * common/common-utils.h (skip_to_space): Remove macro, redeclare
6822 as function.
6823 (skip_to_space): Rename from skip_to_space_const.
6824 * common/common-utils.c (skip_to_space): New function.
6825 (skip_to_space): Rename from skip_to_space_const.
6826 * cli/cli-utils.h (get_number): Rename from get_number_const.
6827 (extract_arg): Rename from extract_arg_const.
6828 * cli/cli-utils.c (get_number): Rename from get_number_const.
6829 (extract_arg): Rename from extract_arg_const.
6830 (number_or_range_parser::get_number): Use ::get_number.
6831 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
6832 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
6833 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
6834 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
6835 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
6836 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
6837 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
6838 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
6839
6840 2017-09-11 Tom Tromey <tom@tromey.com>
6841
6842 * python/python.c (do_start_initialization): Use
6843 py-event-types.def to initialize types.
6844 Define all object type structures.
6845 * python/python-internal.h: Don't declare event initialization
6846 functions.
6847 * python/py-threadevent.c (thread_event_object_type): Don't
6848 define.
6849 * python/py-stopevent.c (stop_event_object_type): Don't define.
6850 * python/py-signalevent.c (signal_event_object_type): Don't
6851 declare or define.
6852 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6853 (clear_objfiles_event_object_type): Don't declare or define.
6854 * python/py-infevents.c (inferior_call_pre_event_object_type)
6855 (inferior_call_post_event_object_type)
6856 (register_changed_event_object_type)
6857 (memory_changed_event_object_type): Don't declare or define.
6858 * python/py-inferior.c (new_thread_event_object_type)
6859 (new_inferior_event_object_type)
6860 (inferior_deleted_event_object_type): Don't declare or define.
6861 * python/py-exitedevent.c (exited_event_object_type): Don't
6862 declare or define.
6863 * python/py-evts.c (gdbpy_initialize_py_events): Use
6864 py-all-events.def.
6865 * python/py-events.h (thread_event_object_type): Don't declare.
6866 (events_object): Use py-all-events.def.
6867 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
6868 py-event-types.def.
6869 * python/py-event-types.def: New file.
6870 * python/py-continueevent.c (create_continue_event_object): Don't
6871 declare or define.
6872 * python/py-bpevent.c (breakpoint_event_object_type): Don't
6873 declare or define.
6874 * python/py-all-events.def: New file.
6875
6876 2017-09-11 Tom Tromey <tom@tromey.com>
6877
6878 * python/py-threadevent.c (create_thread_event_object): Return
6879 gdbpy_ref.
6880 * python/py-stopevent.h (create_stop_event_object)
6881 (create_breakpoint_event_object, create_signal_event_object):
6882 Update.
6883 * python/py-stopevent.c (create_stop_event_object): Return
6884 gdbpy_ref.
6885 (emit_stop_event): Update.
6886 * python/py-signalevent.c (create_signal_event_object): Return
6887 gdbpy_ref.
6888 * python/py-infevents.c (create_inferior_call_event_object):
6889 Update.
6890 * python/py-event.h (create_event_object)
6891 (create_thread_event_object): Update.
6892 * python/py-event.c (create_event_object): Return gdbpy_ref.
6893 * python/py-continueevent.c: Return gdbpy_ref.
6894 * python/py-bpevent.c (create_breakpoint_event_object): Return
6895 gdbpy_ref.
6896
6897 2017-09-11 Tom Tromey <tom@tromey.com>
6898
6899 PR python/15622:
6900 * NEWS: Add entry.
6901 * python/python.c (do_start_initialization): Initialize new event
6902 types.
6903 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
6904 (gdbpy_initialize_inferior_deleted_event)
6905 (gdbpy_initialize_new_thread_event): Declare.
6906 * python/py-threadevent.c (create_thread_event_object): Add option
6907 "thread" parameter.
6908 * python/py-inferior.c (new_thread_event_object_type)
6909 (new_inferior_event_object_type)
6910 (inferior_deleted_event_object_type): Declare.
6911 (python_new_inferior, python_inferior_deleted): New functions.
6912 (add_thread_object): Emit new_thread event.
6913 (gdbpy_initialize_inferior): Attach new functions to corresponding
6914 observers.
6915 (new_thread, new_inferior, inferior_deleted): Define new event
6916 types.
6917 * python/py-evts.c (gdbpy_initialize_py_events): Add new
6918 registries.
6919 * python/py-events.h (events_object) <new_inferior,
6920 inferior_deleted, new_thread>: New fields.
6921 * python/py-event.h (create_thread_event_breakpoint): Add optional
6922 "thread" parameter.
6923
6924 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
6925
6926 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
6927 check current_ui instead.
6928 (internal_vproblem): Likewise.
6929
6930 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
6931
6932 * thread.c (print_thread_info_1): Remove unnecessary calls to
6933 uiout->is_mi_like_p.
6934
6935 2017-09-09 Tom Tromey <tom@tromey.com>
6936
6937 * namespace.h (add_using_directive): Update.
6938 * namespace.c (add_using_directive): Change type of excludes to
6939 std::vector.
6940 * dwarf2read.c (read_import_statement): Use std::vector.
6941 (read_namespace): Update.
6942 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6943
6944 2017-09-09 Tom Tromey <tom@tromey.com>
6945
6946 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
6947
6948 2017-09-09 Tom Tromey <tom@tromey.com>
6949
6950 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
6951
6952 2017-09-09 Tom Tromey <tom@tromey.com>
6953
6954 * stack.c (func_command): Use gdb::def_vector.
6955
6956 2017-09-09 Tom Tromey <tom@tromey.com>
6957
6958 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
6959 ui_out_emit_list, ui_out_emit_tuple.
6960 (mi_cmd_var_update): Likewise.
6961
6962 2017-09-09 Tom Tromey <tom@tromey.com>
6963
6964 * mi/mi-interp.c (mi_user_selected_context_changed): Use
6965 ui_out_redirect_pop.
6966 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6967 ui_out_redirect_pop.
6968 * utils.c (do_ui_out_redirect_pop)
6969 (make_cleanup_ui_out_redirect_pop): Remove.
6970 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
6971 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
6972 * ui-out.h (ui_out_redirect_pop): New class.
6973
6974 2017-09-09 Tom Tromey <tom@tromey.com>
6975
6976 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
6977 (list_available_thread_groups, mi_cmd_list_thread_groups)
6978 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
6979 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
6980 Likewise.
6981
6982 2017-09-09 Tom Tromey <tom@tromey.com>
6983
6984 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6985 ui_out_emit_tuple.
6986
6987 2017-09-09 Tom Tromey <tom@tromey.com>
6988
6989 * target.c (flash_erase_command): Use ui_out_emit_tuple.
6990 * stack.c (print_frame): Use ui_out_emit_tuple.
6991 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
6992 (info_spu_mailbox_command, info_spu_dma_command)
6993 (info_spu_proxydma_command): Likewise.
6994 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
6995 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
6996 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6997 ui_out_emit_tuple.
6998 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
6999
7000 2017-09-09 Tom Tromey <tom@tromey.com>
7001
7002 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7003 (class ui_out_emit_table): Update comment.
7004 * ui-out.c (do_cleanup_table_end)
7005 (make_cleanup_ui_out_table_begin_end): Remove.
7006 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7007 (info_spu_dma_cmdlist): Likewise.
7008 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7009 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7010 ui_out_emit_table.
7011
7012 2017-09-09 Tom Tromey <tom@tromey.com>
7013
7014 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7015 ui_out_emit_list, gdb::optional.
7016
7017 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7018
7019 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7020 prototype.
7021 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7022 prototype.
7023 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7024 prototype.
7025 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7026 * ada-exp.y: Remove _initialize_ada_exp prototype.
7027 * ada-lang.c: Remove _initialize_ada_language prototype.
7028 * ada-tasks.c: Remove _initialize_tasks prototype.
7029 * addrmap.c: Remove _initialize_addrmap prototype.
7030 * agent.c: Remove _initialize_agent prototype.
7031 * aix-thread.c: Remove _initialize_aix_thread prototype.
7032 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7033 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7034 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7035 prototype.
7036 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7037 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7038 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7039 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7040 prototype.
7041 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7042 prototype.
7043 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7044 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7045 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7046 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7047 prototype.
7048 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7049 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7050 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7051 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7052 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7053 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7054 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7055 prototype.
7056 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7057 prototype.
7058 * annotate.c: Remove _initialize_annotate prototype.
7059 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7060 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7061 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7062 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7063 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7064 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7065 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7066 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7067 prototype.
7068 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7069 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7070 * auto-load.c: Remove _initialize_auto_load prototype.
7071 * auxv.c: Remove _initialize_auxv prototype.
7072 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7073 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7074 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7075 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7076 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7077 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7078 prototype.
7079 * break-catch-throw.c: Remove _initialize_break_catch_throw
7080 prototype.
7081 * breakpoint.c: Remove _initialize_breakpoint prototype.
7082 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7083 * btrace.c: Remove _initialize_btrace prototype.
7084 * charset.c: Remove _initialize_charset prototype.
7085 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7086 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7087 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7088 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7089 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7090 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7091 * coffread.c: Remove _initialize_coffread prototype.
7092 * compile/compile.c: Remove _initialize_compile prototype.
7093 * complaints.c: Remove _initialize_complaints prototype.
7094 * completer.c: Remove _initialize_completer prototype.
7095 * copying.awk: Remove _initialize_copying prototype.
7096 * copying.c: Regenerate.
7097 * core-regset.c: Remove _initialize_core_regset prototype.
7098 * corefile.c: Remove _initialize_core prototype.
7099 * corelow.c: Remove _initialize_corelow prototype.
7100 * cp-abi.c: Remove _initialize_cp_abi prototype.
7101 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7102 * cp-support.c: Remove _initialize_cp_support prototype.
7103 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7104 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7105 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7106 * ctf.c: Remove _initialize_ctf prototype.
7107 * d-lang.c: Remove _initialize_d_language prototype.
7108 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7109 prototype.
7110 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7111 * dbxread.c: Remove _initialize_dbxread prototype.
7112 * dcache.c: Remove _initialize_dcache prototype.
7113 * demangle.c: Remove _initialize_demangler prototype.
7114 * disasm-selftests.c: Remove _initialize_disasm_selftests
7115 prototype.
7116 * disasm.c: Remove _initialize_disasm prototype.
7117 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7118 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7119 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7120 prototype.
7121 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7122 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7123 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7124 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7125 * elfread.c: Remove _initialize_elfread prototype.
7126 * exec.c: Remove _initialize_exec prototype.
7127 * extension.c: Remove _initialize_extension prototype.
7128 * f-lang.c: Remove _initialize_f_language prototype.
7129 * f-valprint.c: Remove _initialize_f_valprint prototype.
7130 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7131 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7132 * filesystem.c: Remove _initialize_filesystem prototype.
7133 * findcmd.c: Remove _initialize_mem_search prototype.
7134 * fork-child.c: Remove _initialize_fork_child prototype.
7135 * frame-base.c: Remove _initialize_frame_base prototype.
7136 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7137 * frame.c: Remove _initialize_frame prototype.
7138 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7139 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7140 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7141 * gcore.c: Remove _initialize_gcore prototype.
7142 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7143 * gdbarch.c: Regenerate.
7144 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7145 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7146 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7147 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7148 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7149 * go-lang.c: Remove _initialize_go_language prototype.
7150 * go32-nat.c: Remove _initialize_go32_nat prototype.
7151 * guile/guile.c: Remove _initialize_guile prototype.
7152 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7153 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7154 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7155 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7156 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7157 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7158 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7159 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7160 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7161 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7162 prototype.
7163 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7164 prototype.
7165 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7166 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7167 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7168 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7169 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7170 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7171 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7172 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7173 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7174 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7175 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7176 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7177 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7178 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7179 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7180 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7181 prototype.
7182 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7183 prototype.
7184 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7185 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7186 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7187 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7188 * infcall.c: Remove _initialize_infcall prototype.
7189 * infcmd.c: Remove _initialize_infcmd prototype.
7190 * inferior.c: Remove _initialize_inferiors prototype.
7191 * inflow.c: Remove _initialize_inflow prototype.
7192 * infrun.c: Remove _initialize_infrun prototype.
7193 * interps.c: Remove _initialize_interpreter prototype.
7194 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7195 * jit.c: Remove _initialize_jit prototype.
7196 * language.c: Remove _initialize_language prototype.
7197 * linux-fork.c: Remove _initialize_linux_fork prototype.
7198 * linux-nat.c: Remove _initialize_linux_nat prototype.
7199 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7200 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7201 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7202 * m2-lang.c: Remove _initialize_m2_language prototype.
7203 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7204 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7205 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7206 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7207 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7208 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7209 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7210 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7211 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7212 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7213 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7214 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7215 * machoread.c: Remove _initialize_machoread prototype.
7216 * macrocmd.c: Remove _initialize_macrocmd prototype.
7217 * macroscope.c: Remove _initialize_macroscope prototype.
7218 * maint.c: Remove _initialize_maint_cmds prototype.
7219 * mdebugread.c: Remove _initialize_mdebugread prototype.
7220 * memattr.c: Remove _initialize_mem prototype.
7221 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7222 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7223 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7224 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7225 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7226 * microblaze-linux-tdep.c: Remove
7227 _initialize_microblaze_linux_tdep prototype.
7228 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7229 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7230 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7231 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7232 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7233 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7234 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7235 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7236 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7237 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7238 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7239 prototype.
7240 * mipsread.c: Remove _initialize_mipsread prototype.
7241 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7242 prototype.
7243 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7244 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7245 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7246 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7247 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7248 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7249 prototype.
7250 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7251 * nto-procfs.c: Remove _initialize_procfs prototype.
7252 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7253 * objc-lang.c: Remove _initialize_objc_language prototype.
7254 * objfiles.c: Remove _initialize_objfiles prototype.
7255 * observer.c: Remove observer_test_first_notification_function,
7256 observer_test_second_notification_function,
7257 observer_test_third_notification_function, and
7258 _initialize_observer prototypes.
7259 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7260 * osabi.c: Remove _initialize_gdb_osabi prototype.
7261 * osdata.c: Remove _initialize_osdata prototype.
7262 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7263 * parse.c: Remove _initialize_parse prototype.
7264 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7265 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7266 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7267 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7268 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7269 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7270 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7271 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7272 * printcmd.c: Remove _initialize_printcmd prototype.
7273 * probe.c: Remove _initialize_probe prototype.
7274 * proc-api.c: Remove _initialize_proc_api prototype.
7275 * proc-events.c: Remove _initialize_proc_events prototype.
7276 * proc-service.c: Remove _initialize_proc_service prototype.
7277 * procfs.c: Remove _initialize_procfs prototype.
7278 * psymtab.c: Remove _initialize_psymtab prototype.
7279 * python/python.c: Remove _initialize_python prototype.
7280 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7281 * record-btrace.c: Remove _initialize_record_btrace prototype.
7282 * record-full.c: Remove _initialize_record_full prototype.
7283 * record.c: Remove _initialize_record prototype.
7284 * regcache.c: Remove _initialize_regcache prototype.
7285 * reggroups.c: Remove _initialize_reggroup prototype.
7286 * remote-notif.c: Remove _initialize_notif prototype.
7287 * remote-sim.c: Remove _initialize_remote_sim prototype.
7288 * remote.c: Remove _initialize_remote prototype.
7289 * reverse.c: Remove _initialize_reverse prototype.
7290 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7291 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7292 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7293 prototype.
7294 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7295 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7296 * rust-exp.y: Remove _initialize_rust_exp prototype.
7297 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7298 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7299 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7300 * score-tdep.c: Remove _initialize_score_tdep prototype.
7301 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7302 prototype.
7303 * ser-go32.c: Remove _initialize_ser_dos prototype.
7304 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7305 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7306 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7307 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7308 * serial.c: Remove _initialize_serial prototype.
7309 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7310 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7311 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7312 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7313 * skip.c: Remove _initialize_step_skip prototype.
7314 * sol-thread.c: Remove _initialize_sol_thread prototype.
7315 * solib-aix.c: Remove _initialize_solib_aix prototype.
7316 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7317 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7318 * solib-frv.c: Remove _initialize_frv_solib prototype.
7319 * solib-spu.c: Remove _initialize_spu_solib prototype.
7320 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7321 * solib-target.c: Remove _initialize_solib_target prototype.
7322 * solib.c: Remove _initialize_solib prototype.
7323 * source.c: Remove _initialize_source prototype.
7324 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7325 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7326 prototype.
7327 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7328 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7329 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7330 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7331 prototype.
7332 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7333 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7334 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7335 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7336 prototype.
7337 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7338 prototype.
7339 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7340 prototype.
7341 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7342 prototype.
7343 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7344 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7345 prototype.
7346 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7347 prototype.
7348 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7349 prototype.
7350 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7351 prototype.
7352 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7353 prototype.
7354 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7355 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7356 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7357 * stabsread.c: Remove _initialize_stabsread prototype.
7358 * stack.c: Remove _initialize_stack prototype.
7359 * stap-probe.c: Remove _initialize_stap_probe prototype.
7360 * std-regs.c: Remove _initialize_frame_reg prototype.
7361 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7362 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7363 * symfile.c: Remove _initialize_symfile prototype.
7364 * symmisc.c: Remove _initialize_symmisc prototype.
7365 * symtab.c: Remove _initialize_symtab prototype.
7366 * target-dcache.c: Remove _initialize_target_dcache prototype.
7367 * target-descriptions.c: Remove _initialize_target_descriptions
7368 prototype.
7369 * thread.c: Remove _initialize_thread prototype.
7370 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7371 prototype.
7372 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7373 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7374 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7375 prototype.
7376 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
7377 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
7378 * tracefile.c: Remove _initialize_tracefile prototype.
7379 * tracepoint.c: Remove _initialize_tracepoint prototype.
7380 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
7381 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
7382 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
7383 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
7384 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
7385 * tui/tui-win.c: Remove _initialize_tui_win prototype.
7386 * tui/tui.c: Remove _initialize_tui prototype.
7387 * typeprint.c: Remove _initialize_typeprint prototype.
7388 * user-regs.c: Remove _initialize_user_regs prototype.
7389 * utils.c: Remove _initialize_utils prototype.
7390 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
7391 * valarith.c: Remove _initialize_valarith prototype.
7392 * valops.c: Remove _initialize_valops prototype.
7393 * valprint.c: Remove _initialize_valprint prototype.
7394 * value.c: Remove _initialize_values prototype.
7395 * varobj.c: Remove _initialize_varobj prototype.
7396 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
7397 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
7398 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
7399 * windows-nat.c: Remove _initialize_windows_nat,
7400 _initialize_check_for_gdb_ini, and _initialize_loadable
7401 prototypes.
7402 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
7403 * xcoffread.c: Remove _initialize_xcoffread prototype.
7404 * xml-support.c: Remove _initialize_xml_support prototype.
7405 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
7406 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
7407 prototype.
7408 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
7409 prototype.
7410 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
7411
7412 2017-09-08 Keith Seitz <keiths@redhat.com>
7413
7414 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
7415 field.
7416
7417 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
7418
7419 * f-valprint.c (f_val_print): Remove check for one byte
7420 sized integers. Remove printing of character type.
7421
7422 2017-09-08 Frank Penczek <frank.penczek@intel.com>
7423 Christoph Weinmann <christoph.t.weinmann@intel.com>
7424 Bernhard Heckel <bernhard.heckel@intel.com>
7425
7426 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
7427 to maintain proper indentation when printing pointers/refs.
7428
7429 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7430
7431 GDB 8.0.1 released.
7432
7433 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7434
7435 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
7436
7437 2017-09-05 Tom Tromey <tom@tromey.com>
7438
7439 * parse.c (funcall_chain): Now a std::vector.
7440 (start_arglist, end_arglist): Simplify.
7441 (free_funcalls): Remove.
7442 (parse_exp_in_context_1): Remove cleanup.
7443
7444 2017-09-05 Tom Tromey <tom@tromey.com>
7445
7446 * go-exp.y (go_parse): Don't create a cleanup.
7447
7448 2017-09-05 Tom Tromey <tom@tromey.com>
7449
7450 * d-exp.y (PrimaryExpression): Use std::string.
7451 (d_parse): Don't create a cleanup.
7452
7453 2017-09-05 Tom Tromey <tom@tromey.com>
7454
7455 * utils.c (do_clear_parser_state): Remove.
7456 (make_cleanup_clear_parser_state): Remove.
7457 * p-exp.y (pascal_parse): Use scoped_restore.
7458 * m2-exp.y (m2_parse): Use scoped_restore.
7459 * f-exp.y (f_parse): Use scoped_restore.
7460 * d-exp.y (d_parse): Use scoped_restore.
7461 * c-exp.y (c_parse): Use scoped_restore.
7462 * ada-exp.y (ada_parse): Use scoped_restore.
7463 * utils.h (make_cleanup_clear_parser_state): Remove.
7464
7465 2017-09-06 Keith Seitz <keiths@redhat.com>
7466
7467 * dwarf2read.c (dw2_linkage_name_attr): New function.
7468 (dw2_linkage_name): New function.
7469 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
7470 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
7471 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
7472
7473 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7474
7475 * config/djgpp/djconfig.sh: Correct shell portability issue.
7476
7477 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7478
7479 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
7480
7481 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7482
7483 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
7484 * NEWS: Mention new FreeBSD/mips native configuration.
7485 * configure.host: Add aarch64*-*-freebsd*.
7486 * configure.nat: Likewise.
7487 * aarch64-fbsd-nat.c: New file.
7488
7489 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7490
7491 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7492 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7493 * NEWS: Mention new FreeBSD/aarch64 target.
7494 * configure.tgt: Add aarch64*-*-freebsd*.
7495 * aarch64-fbsd-tdep.c: New file.
7496 * aarch64-fbsd-tdep.h: New file.
7497
7498 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7499
7500 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7501
7502 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7503
7504 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7505 of TLS symbols.
7506
7507 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7508
7509 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7510 call.
7511
7512 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7513
7514 * infrun.c (follow_exec): Call add_thread after
7515 target_find_description.
7516
7517 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7518
7519 * infrun.c (handle_inferior_event_1): When exec'ing, read
7520 stop_pc after follow_exec.
7521
7522 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7523
7524 * remote.c (process_g_packet): Update error message.
7525
7526 2017-09-05 Yao Qi <yao.qi@linaro.org>
7527
7528 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
7529 targets.
7530
7531 2017-09-05 Pedro Alves <palves@redhat.com>
7532
7533 * eval.c (eval_call, evaluate_funcall): New functions, factored
7534 out from ...
7535 (evaluate_subexp_standard): ... this.
7536
7537 2017-09-05 Yao Qi <yao.qi@linaro.org>
7538
7539 * amd64-tdep.c (amd64_target_description): Create target
7540 descriptions.
7541 (_initialize_amd64_tdep): Don't call functions
7542 initialize_tdesc_amd64_*. Add self tests.
7543 * arch/amd64.c (amd64_create_target_description): Add parameter
7544 is_linux. Call set_tdesc_osabi if is_linux is true.
7545 * arch/amd64.h (amd64_create_target_description): Update the
7546 declaration.
7547 * arch/i386.c (i386_create_target_description): Add parameter
7548 is_linux. Call set_tdesc_osabi if is_linux is true.
7549 * arch/i386.h (i386_create_target_description): Update
7550 declaration.
7551 * configure.tgt: Add i386.o to gdb_target_obs.
7552 * features/Makefile (XMLTOC): Remove i386/*.xml.
7553 * features/i386/amd64-avx-avx512.c: Remove.
7554 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
7555 * features/i386/amd64-avx-mpx.c: Remove.
7556 * features/i386/amd64-avx.c: Remove.
7557 * features/i386/amd64-mpx.c: Remove.
7558 * features/i386/amd64.c: Remove.
7559 * features/i386/i386-avx-avx512.c: Remove.
7560 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
7561 * features/i386/i386-avx-mpx.c: Remove.
7562 * features/i386/i386-avx.c: Remove.
7563 * features/i386/i386-mmx.c: Remove.
7564 * features/i386/i386-mpx.c: Remove.
7565 * features/i386/i386.c: Remove.
7566 * i386-tdep.c: Don't include features/i386/i386*.c., include
7567 target-descriptions.h and arch/i386.h.
7568 (i386_target_description): Create target descriptions.
7569 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7570 functions. Do self tests.
7571
7572 2017-09-05 Yao Qi <yao.qi@linaro.org>
7573
7574 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7575 * features/i386/amd64-avx-avx512-linux.c: Removed.
7576 * features/i386/amd64-avx-linux.c: Removed.
7577 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
7578 * features/i386/amd64-avx-mpx-linux.c: Removed.
7579 * features/i386/amd64-linux.c: Removed.
7580 * features/i386/amd64-mpx-linux.c: Removed.
7581 * features/i386/x32-avx-avx512-linux.c: Removed.
7582 * features/i386/x32-avx-linux.c: Removed.
7583 * features/i386/x32-linux.c: Removed.
7584
7585 2017-09-05 Yao Qi <yao.qi@linaro.org>
7586
7587 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
7588 features/i386/*.c.
7589 (amd64_linux_read_description): Call
7590 amd64_create_target_description.
7591 * arch/amd64.c: New file.
7592 * arch/amd64.h: New file.
7593 * configure.tgt (x86_64-*-linux*): Append amd64.o.
7594 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
7595
7596 2017-09-05 Yao Qi <yao.qi@linaro.org>
7597
7598 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
7599 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
7600 (amd64_linux_read_description): Create target descriptions.
7601 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
7602 functions. Add unit tests.
7603 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
7604 x32-core.xml.
7605 * features/i386/64bit-avx.c: Generated.
7606 * features/i386/64bit-avx512.c: Generated.
7607 * features/i386/64bit-core.c: Generated.
7608 * features/i386/64bit-linux.c: Generated.
7609 * features/i386/64bit-mpx.c: Generated.
7610 * features/i386/64bit-pkeys.c: Generated.
7611 * features/i386/64bit-segments.c: Generated.
7612 * features/i386/64bit-sse.c: Generated.
7613 * features/i386/x32-core.c: Generated.
7614 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
7615 c files for amd64-linux and x32-linux.
7616
7617 2017-09-05 Yao Qi <yao.qi@linaro.org>
7618
7619 * amd64-linux-tdep.c (amd64_linux_read_description): New
7620 function.
7621 (amd64_linux_core_read_description): Call
7622 amd64_linux_read_description.
7623 (amd64_linux_init_abi): Likewise.
7624 (amd64_x32_linux_init_abi): Likewise.
7625 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
7626 * x86-linux-nat.c (x86_linux_read_description): Call
7627 amd64_linux_read_description.
7628
7629 2017-09-05 Yao Qi <yao.qi@linaro.org>
7630
7631 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
7632 comments.
7633
7634 2017-09-05 Yao Qi <yao.qi@linaro.org>
7635
7636 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
7637 * features/i386/i386-avx-avx512-linux.c: Remove.
7638 * features/i386/i386-avx-linux.c: Remove.
7639 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
7640 * features/i386/i386-avx-mpx-linux.c: Remove.
7641 * features/i386/i386-linux.c: Remove.
7642 * features/i386/i386-mmx-linux.c: Remove.
7643 * features/i386/i386-mpx-linux.c: Remove.
7644
7645 2017-09-05 Yao Qi <yao.qi@linaro.org>
7646
7647 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
7648 (SFILES): Add arch/i386.c.
7649 (HFILES_NO_SRCDIR): Add arch/i386.h.
7650 * arch/i386.c: New file.
7651 * arch/i386.h: New file.
7652 * arch/tdesc.h (allocate_target_description): Declare.
7653 (set_tdesc_architecture): Declare.
7654 (set_tdesc_osabi): Declare.
7655 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
7656 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
7657 include arch/i386.h.
7658 (i386_linux_read_description): Remove code and call
7659 i386_create_target_description.
7660 (set_tdesc_architecture): New function.
7661 (set_tdesc_osabi): New function.
7662 * target-descriptions.h (allocate_target_description): Remove.
7663
7664 2017-09-05 Yao Qi <yao.qi@linaro.org>
7665
7666 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
7667 * target-descriptions.c (tdesc_create_feature): Likewise, and
7668 adjust code.
7669 * features/i386/32bit-avx.c: Re-generated.
7670 * features/i386/32bit-avx512.c: Re-generated.
7671 * features/i386/32bit-core.c: Re-generated.
7672 * features/i386/32bit-linux.c: Re-generated.
7673 * features/i386/32bit-mpx.c: Re-generated.
7674 * features/i386/32bit-pkeys.c: Re-generated.
7675 * features/i386/32bit-sse.c: Re-generated.
7676
7677 2017-09-05 Yao Qi <yao.qi@linaro.org>
7678
7679 * regformats/regdef.h (struct reg): Override operator == and !=.
7680
7681 2017-09-05 Yao Qi <yao.qi@linaro.org>
7682
7683 * arch/tdesc.h: New file.
7684 * regformats/regdat.sh: Generate code using tdesc_create_reg.
7685 * target-descriptions.c: Update comments.
7686 * target-descriptions.h: Include "arch/tdesc.h". Remove the
7687 declarations.
7688 * features/i386/32bit-avx.c: Re-generated.
7689 * features/i386/32bit-avx512.c: Re-generated.
7690 * features/i386/32bit-core.c: Re-generated.
7691 * features/i386/32bit-linux.c: Re-generated.
7692 * features/i386/32bit-mpx.c: Re-generated.
7693 * features/i386/32bit-pkeys.c: Re-generated.
7694 * features/i386/32bit-sse.c: Re-generated.
7695
7696 2017-09-05 Yao Qi <yao.qi@linaro.org>
7697
7698 * regformats/regdat.sh: Update generated code.
7699
7700 2017-09-05 Yao Qi <yao.qi@linaro.org>
7701
7702 * regformats/regdat.sh: Adjust code order.
7703
7704 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7705
7706 * expprint.c (dump_subexp_body_standard): Use constant format
7707 string in fprintf_filtered call.
7708
7709 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7710
7711 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
7712 NetBSD/i386.
7713 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
7714
7715 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7716
7717 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
7718
7719 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7720
7721 * bsd-kvm.o: Define _KMEMUSER.
7722 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
7723 * configure: Regenerate.
7724
7725 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7726
7727 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
7728 * i386-fbsd-nat.c: Likewise.
7729
7730 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7731
7732 * unittests/array-view-selftests.c: Add include of <array>.
7733
7734 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7735
7736 * spu-tdep.c (flush_ea_cache): Add missing argument to
7737 call_function_by_hand.
7738
7739 2017-09-04 Pedro Alves <palves@redhat.com>
7740
7741 * NEWS (Safer support for debugging with no debug info): New.
7742
7743 2017-09-04 Pedro Alves <palves@redhat.com>
7744
7745 * c-exp.y (function_method, function_method_void): Add current
7746 instance flags to TYPE_INSTANCE.
7747 * dwarf2read.c (check_modifier): New.
7748 (compute_delayed_physnames): Assert that only C++ adds delayed
7749 physnames. Mark fn_fields as const/volatile depending on
7750 physname.
7751 * eval.c (make_params): New type_instance_flags parameter. Use
7752 it as the new type's instance flags.
7753 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
7754 flags element and pass it to make_params.
7755 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
7756 instance flags element.
7757 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
7758 * gdbtypes.h: Include "enum-flags.h".
7759 (type_instance_flags): New enum-flags type.
7760 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
7761 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
7762 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
7763 (follow_type_instance_flags): New function.
7764 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
7765 * parser-defs.h (follow_type_instance_flags): Declare.
7766 * valops.c (value_struct_elt_for_reference): const/volatile must
7767 match too.
7768
7769 2017-09-04 Pedro Alves <palves@redhat.com>
7770
7771 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
7772 function/method scopes; lookup the nested name as a function local
7773 static variable.
7774
7775 2017-09-04 Pedro Alves <palves@redhat.com>
7776
7777 (%type <voidval>): Add function_method.
7778 * c-exp.y (exp): New production for calls with no arguments.
7779 (function_method, function_method_void_or_typelist): New
7780 productions.
7781 (exp): New production for "method()::static_var".
7782 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
7783 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7784 Handle OP_FUNC_STATIC_VAR.
7785 * parse.c (operator_length_standard):
7786 Handle OP_FUNC_STATIC_VAR.
7787
7788 2017-09-04 Pedro Alves <palves@redhat.com>
7789
7790 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
7791 handling.
7792 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7793 Ditto.
7794 * parse.c (operator_length_standard, operator_check_standard):
7795 Ditto.
7796 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
7797
7798 2017-09-04 Pedro Alves <palves@redhat.com>
7799
7800 * ax-gdb.c: Include "typeprint.h".
7801 (gen_expr_for_cast): New function.
7802 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
7803 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
7804 type is unknown.
7805 * dwarf2read.c (new_symbol_full): Fallback to int instead of
7806 nodebug_data_symbol.
7807 * eval.c: Include "typeprint.h".
7808 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
7809 Error out if symbol has unknown type.
7810 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
7811 evaluate_subexp_for_cast.
7812 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
7813 OP_VAR_MSYM_VALUE.
7814 (evaluate_subexp_for_cast): New function.
7815 * gdbtypes.c (init_nodebug_var_type): New function.
7816 (objfile_type): Use it to initialize types of variables with no
7817 debug info.
7818 * typeprint.c (error_unknown_type): New.
7819 * typeprint.h (error_unknown_type): New declaration.
7820 * compile/compile-c-types.c (convert_type_basic): Handle
7821 TYPE_CODE_ERROR; warn and fallback to int for variables with
7822 unknown type.
7823
7824 2017-09-04 Pedro Alves <palves@redhat.com>
7825
7826 * eval.c (evaluate_var_value): New function, factored out from ...
7827 (evaluate_subexp_standard): ... here.
7828
7829 2017-09-04 Pedro Alves <palves@redhat.com>
7830
7831 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
7832 Remove useless assignments to 'op'.
7833
7834 2017-09-04 Pedro Alves <palves@redhat.com>
7835
7836 * eval.c (eval_skip_value): New function.
7837 (evaluate_subexp_standard): Use it.
7838
7839 2017-09-04 Pedro Alves <palves@redhat.com>
7840
7841 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
7842 function name from symbol/minsym and pass it to
7843 error_call_unknown_return_type.
7844
7845 2017-09-04 Pedro Alves <palves@redhat.com>
7846
7847 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
7848 * ax-gdb.c (gen_msym_var_ref): New function.
7849 (gen_expr): Handle OP_VAR_MSYM_VALUE.
7850 * eval.c (evaluate_var_msym_value): New function.
7851 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
7852 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
7853 to call_function_by_hand.
7854 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7855 Handle OP_VAR_MSYM_VALUE.
7856 (union exp_element) <msymbol>: New field.
7857 * minsyms.h (struct type): Forward declare.
7858 (find_minsym_type_and_address): Declare.
7859 * parse.c (write_exp_elt_msym): New function.
7860 (write_exp_msymbol): Delete, refactored as ...
7861 (find_minsym_type_and_address): ... this new function.
7862 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
7863 (operator_length_standard, operator_check_standard): Handle
7864 OP_VAR_MSYM_VALUE.
7865 * std-operator.def (OP_VAR_MSYM_VALUE): New.
7866
7867 2017-09-04 Pedro Alves <palves@redhat.com>
7868
7869 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
7870 TYPE_GNU_IFUNC specially here. Throw error if return type is
7871 unknown.
7872 * ada-typeprint.c (print_func_type): Handle functions with unknown
7873 return type.
7874 * c-typeprint.c (c_type_print_base): Handle functions and methods
7875 with unknown return type.
7876 * compile/compile-c-symbols.c (convert_symbol_bmsym)
7877 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
7878 * compile/compile-c-types.c: Include "objfiles.h".
7879 (convert_func): For functions with unknown return type, warn and
7880 default to int.
7881 * compile/compile-object-run.c (compile_object_run): Adjust call
7882 to call_function_by_hand_dummy.
7883 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
7884 call_function_by_hand.
7885 * eval.c (evaluate_subexp_standard): Adjust calls to
7886 call_function_by_hand. Handle functions and methods with unknown
7887 return type. Pass expect_type to call_function_by_hand.
7888 * f-typeprint.c (f_type_print_base): Handle functions with unknown
7889 return type.
7890 * gcore.c (call_target_sbrk): Adjust call to
7891 call_function_by_hand.
7892 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
7893 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
7894 an integer address type instead of nodebug.
7895 * guile/scm-value.c (gdbscm_value_call): Adjust call to
7896 call_function_by_hand.
7897 * infcall.c (error_call_unknown_return_type): New function.
7898 (call_function_by_hand): New "default_return_type" parameter.
7899 Pass it down.
7900 (call_function_by_hand_dummy): New "default_return_type"
7901 parameter. Use it instead of defaulting to int. If there's no
7902 default and the return type is unknown, throw an error. If
7903 there's a default return type, and the called function has no
7904 debug info, then assume the function is prototyped.
7905 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
7906 New "default_return_type" parameter.
7907 (error_call_unknown_return_type): New declaration.
7908 * linux-fork.c (call_lseek): Cast return type of lseek.
7909 (inferior_call_waitpid, checkpoint_command): Adjust calls to
7910 call_function_by_hand.
7911 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
7912 calls to call_function_by_hand.
7913 * m2-typeprint.c (m2_procedure): Handle functions with unknown
7914 return type.
7915 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7916 (value_nsstring, print_object_command): Adjust calls to
7917 call_function_by_hand.
7918 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
7919 functions with unknown return type.
7920 (pascal_type_print_func_varspec_suffix): New function.
7921 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
7922 TYPE_CODE_METHOD>: Use it.
7923 * python/py-value.c (valpy_call): Adjust call to
7924 call_function_by_hand.
7925 * rust-lang.c (rust_evaluate_funcall): Adjust call to
7926 call_function_by_hand.
7927 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
7928 call_function_by_hand.
7929 * valops.c (value_allocate_space_in_inferior): Adjust call to
7930 call_function_by_hand.
7931 * typeprint.c (type_print_unknown_return_type): New function.
7932 * typeprint.h (type_print_unknown_return_type): New declaration.
7933
7934 2017-09-04 Pedro Alves <palves@redhat.com>
7935
7936 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
7937 types with more than one parameter as prototyped.
7938
7939 2017-09-04 Pedro Alves <palves@redhat.com>
7940
7941 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
7942 (disassemble_command): Use gdb_disassembly_flags instead of bare
7943 int.
7944 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
7945 (dump_insns, do_mixed_source_and_assembly_deprecated)
7946 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
7947 Use gdb_disassembly_flags instead of bare int.
7948 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
7949 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
7950 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
7951 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
7952 (enum gdb_disassembly_flag): ... values of this new enumeration.
7953 (gdb_disassembly_flags): Define.
7954 (gdb_disassembly)
7955 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
7956 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
7957 gdb_disassembly_flags instead of bare int.
7958 * record-btrace.c (btrace_insn_history)
7959 (record_btrace_insn_history, record_btrace_insn_history_range)
7960 (record_btrace_insn_history_from): Use gdb_disassembly_flags
7961 instead of bare int.
7962 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
7963 Use gdb_disassembly_flags instead of bare int.
7964 * target-debug.h (target_debug_print_gdb_disassembly_flags):
7965 Define.
7966 * target-delegates.c: Regenerate.
7967 * target.c (target_insn_history, target_insn_history_from)
7968 (target_insn_history_range): Use gdb_disassembly_flags instead of
7969 bare int.
7970 * target.h: Include "disasm.h".
7971 (struct target_ops) <to_insn_history, to_insn_history_from,
7972 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
7973 int.
7974 (target_insn_history, target_insn_history_from)
7975 (target_insn_history_range): Use gdb_disassembly_flags instead of
7976 bare int.
7977
7978 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7979
7980 * cli/cli-script.c (build_command_line): For if/while commands,
7981 check whether args is empty.
7982
7983 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7984
7985 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
7986 (enum command_control_type): Likewise.
7987 (struct command_line): Likewise.
7988 (free_command_lines): Likewise.
7989 (struct command_lines_deleter): Likewise.
7990 (command_line_up): Likewise.
7991 (read_command_lines): Likewise.
7992 (read_command_lines_1): Likewise.
7993 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
7994 (enum command_control_type): Likewise.
7995 (struct command_line): Likewise.
7996 (free_command_lines): Likewise.
7997 (struct command_lines_deleter): Likewise.
7998 (command_line_up): Likewise.
7999 (read_command_lines): Likewise.
8000 (read_command_lines_1): Likewise.
8001 * breakpoint.h: Include cli/cli-script.h.
8002 * extension-priv.h: Likewise.
8003 * gdbcmd.h: Likewise.
8004
8005 2017-09-04 Pedro Alves <palves@redhat.com>
8006
8007 * ada-lang.c (is_known_support_routine): Move sal declaration to
8008 where it is initialized.
8009 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8010 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8011 (clear_command, update_static_tracepoint): Remove init_sal
8012 references. Move declarations closer to initializations.
8013 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8014 initializations.
8015 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8016 references. Move sal declarations closer to initializations.
8017 * frame.c (find_frame_sal): Return a symtab_and_line via function
8018 return instead of output parameter. Remove init_sal references.
8019 * frame.h (find_frame_sal): Return a symtab_and_line via function
8020 return instead of output parameter.
8021 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8022 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8023 instead of memset.
8024 (gdbscm_find_pc_line): Remove init_sal reference.
8025 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8026 references. Move declarations closer to initializations.
8027 * infcmd.c (set_step_frame): Update. Move declarations closer to
8028 initializations.
8029 (finish_backward): Remove init_sal references. Move declarations
8030 closer to initializations.
8031 * infrun.c (process_event_stop_test, handle_step_into_function)
8032 (insert_hp_step_resume_breakpoint_at_frame)
8033 (insert_step_resume_breakpoint_at_caller): Likewise.
8034 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8035 (symbol_to_sal): Likewise.
8036 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8037 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8038 to its initialization.
8039 * reverse.c (save_bookmark_command): Use new/delete. Remove
8040 init_sal references. Move declarations closer to initializations.
8041 * source.c (get_current_source_symtab_and_line): Remove brace
8042 initialization.
8043 (set_current_source_symtab_and_line): Now takes the sal by const
8044 reference. Remove brace initialization.
8045 (line_info): Remove init_sal reference.
8046 * source.h (set_current_source_symtab_and_line): Now takes a
8047 symtab_and_line via const reference.
8048 * stack.c (set_current_sal_from_frame): Adjust.
8049 (print_frame_info): Adjust.
8050 (get_last_displayed_sal): Return the sal via function return
8051 instead of via output parameter. Simplify.
8052 (frame_info): Adjust.
8053 * stack.h (get_last_displayed_sal): Return the sal via function
8054 return instead of via output parameter.
8055 * symtab.c (init_sal): Delete.
8056 (find_pc_sect_line): Remove init_sal references. Move
8057 declarations closer to initializations.
8058 (find_function_start_sal): Remove init_sal references. Move
8059 declarations closer to initializations.
8060 * symtab.h (struct symtab_and_line): In-class initialize all
8061 fields.
8062 * tracepoint.c (set_traceframe_context)
8063 (print_one_static_tracepoint_marker): Remove init_sal references.
8064 Move declarations closer to initializations.
8065 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8066 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8067 declarations closer to initializations.
8068 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8069 init_sal references. Adjust.
8070
8071 2017-09-04 Pedro Alves <palves@redhat.com>
8072
8073 * ax-gdb.c (agent_command_1): Use range-for.
8074 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8075 * breakpoint.c: Include "common/array-view.h".
8076 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8077 parameter from struct symtabs_and_lines to
8078 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8079 (breakpoint_sals_to_pc): Change sals parameter from struct
8080 symtabs_and_lines to std::vector reference.
8081 (check_fast_tracepoint_sals): Change sals parameter from struct
8082 symtabs_and_lines to std::array_view. Use range-for.
8083 (decode_static_tracepoint_spec): Return a std::vector instead of
8084 symtabs_and_lines. Update.
8085 (create_breakpoint): Update.
8086 (break_range_command, until_break_command, clear_command): Update.
8087 (base_breakpoint_decode_location, bkpt_decode_location)
8088 (bkpt_probe_create_sals_from_location)
8089 (bkpt_probe_decode_location, tracepoint_decode_location)
8090 (tracepoint_probe_decode_location)
8091 (strace_marker_create_sals_from_location): Return a std::vector
8092 instead of symtabs_and_lines.
8093 (strace_marker_create_breakpoints_sal): Update.
8094 (strace_marker_decode_location): Return a std::vector instead of
8095 symtabs_and_lines. Update.
8096 (update_breakpoint_locations): Change struct symtabs_and_lines
8097 parameters to gdb::array_view. Adjust.
8098 (location_to_sals): Return a std::vector instead of
8099 symtabs_and_lines. Update.
8100 (breakpoint_re_set_default): Use std::vector instead of struct
8101 symtabs_and_lines.
8102 (decode_location_default): Return a std::vector instead of
8103 symtabs_and_lines. Update.
8104 * breakpoint.h: Include "common/array-view.h".
8105 (struct breakpoint_ops) <decode_location>: Now returns a
8106 std::vector instead of returning a symtabs_and_lines via output
8107 parameter.
8108 (update_breakpoint_locations): Change sals parameters to use
8109 gdb::array_view.
8110 * cli/cli-cmds.c (edit_command, list_command): Update to use
8111 std::vector and gdb::array_view.
8112 (ambiguous_line_spec): Adjust to use gdb::array_view and
8113 range-for.
8114 (compare_symtabs): Rename to ...
8115 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8116 const reference and adjust.
8117 (filter_sals): Rewrite using std::vector and standard algorithms.
8118 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8119 (jump_command): Update to use std::vector.
8120 * linespec.c (struct linespec_state) <canonical_names>: Update
8121 comment.
8122 (add_sal_to_sals_basic): Delete.
8123 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8124 (decode_line_2, create_sals_line_offset)
8125 (convert_address_location_to_sals, convert_linespec_to_sals)
8126 (convert_explicit_location_to_sals, parse_linespec)
8127 (event_location_to_sals, decode_line_full, decode_line_1)
8128 (decode_line_with_current_source)
8129 (decode_line_with_last_displayed, decode_objc)
8130 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8131 (linespec_result::~linespec_result): Adjust to use std::vector
8132 instead of symtabs_and_lines.
8133 * linespec.h (linespec_sals::sals): Now a std::vector.
8134 (struct linespec_result): Use std::vector, bool, and in-class
8135 initialization.
8136 (decode_line_1, decode_line_with_current_source)
8137 (decode_line_with_last_displayed): Return std::vector.
8138 * macrocmd.c (info_macros_command): Use std::vector.
8139 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8140 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8141 std::vector.
8142 * probe.h (parse_probes): Return a std::vector.
8143 * python/python.c (gdbpy_decode_line): Use std::vector and
8144 gdb::array_view.
8145 * source.c (select_source_symtab, line_info): Use std::vector.
8146 * stack.c (func_command): Use std::vector.
8147 * symtab.h (struct symtabs_and_lines): Delete.
8148 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8149
8150 2017-09-04 Pedro Alves <palves@redhat.com>
8151
8152 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8153 unittests/array-view-selftests.c.
8154 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8155 * common/array-view.h: New file.
8156 * unittests/array-view-selftests.c: New file.
8157
8158 2017-09-04 Pedro Alves <palves@redhat.com>
8159
8160 * cli/cli-cmds.c (edit_command): Pass message to
8161 ambiguous_line_spec.
8162 (list_command): Pass message to ambiguous_line_spec. Say
8163 "first"/"last" instead of "start" and "end" to be consistent with
8164 the manual.
8165 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8166 them to print formatted message.
8167
8168 2017-09-04 Pedro Alves <palves@redhat.com>
8169
8170 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8171 ftrace_update_insns by reference instead of pointer.
8172
8173 2017-09-04 Yao Qi <yao.qi@linaro.org>
8174
8175 * i386-go32-tdep.c: Include x86-xstate.h.
8176 (i386_go32_init_abi): Call i386_target_description.
8177 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8178 if xcr0 is X86_XSTATE_X87_MASK.
8179 * i386-tdep.h (tdesc_i386): Remove the declaration.
8180 (tdesc_i386_mmx): Likewise.
8181
8182 2017-09-04 Yao Qi <yao.qi@linaro.org>
8183
8184 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8185 X86_XSTATE_SSE_MASK instead of 0.
8186
8187 2017-09-04 Yao Qi <yao.qi@linaro.org>
8188
8189 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8190 i386_target_description.
8191 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8192 i386_target_description.
8193 * i386-tdep.c (i386_gdbarch_init): Likewise.
8194
8195 2017-09-04 Yao Qi <yao.qi@linaro.org>
8196
8197 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8198 (x86_darwin_init_abi_64): Call amd64_target_description.
8199 * amd64-dicos-tdep.c: Likewise.
8200 * amd64-fbsd-nat.c: Likewise.
8201 * amd64-fbsd-tdep.c: Likewise.
8202 * amd64-nbsd-tdep.c: Likewise.
8203 * amd64-obsd-tdep.c: Likewise.
8204 * amd64-sol2-tdep.c: Likewise.
8205 * amd64-windows-tdep.c: Likewise.
8206 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8207
8208 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8209
8210 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8211 (btrace_function) <insn>: Change type to use std::vector.
8212 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8213 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8214 ftrace_update_insns, ftrace_compute_global_level_offset,
8215 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8216 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8217 change to std::vector.
8218 (ftrace_update_insns): Adjust to change to std::vector, change
8219 type of INSN parameter.
8220 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8221 * record-btrace.c (btrace_call_history_insn_range,
8222 btrace_compute_src_line_range,
8223 record_btrace_frame_prev_register): Adjust to change to
8224 std::vector.
8225 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8226 to change to std::vector.
8227
8228 2017-09-03 Tom Tromey <tom@tromey.com>
8229
8230 * corefile.c (reopen_exec_file): Use std::string.
8231
8232 2017-09-03 Tom Tromey <tom@tromey.com>
8233
8234 * compile/compile.c (compile_register_name_mangled): Return
8235 std::string.
8236 * compile/compile-loc2c.c (pushf_register_address): Update.
8237 (pushf_register): Update.
8238 * compile/compile-c-types.c (convert_array): Update.
8239 * compile/compile-c-symbols.c (generate_vla_size): Update.
8240 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8241 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8242 (convert_one_symbol): Update.
8243 (generate_c_for_for_one_variable): Update.
8244 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8245 std::string.
8246 (generate_register_struct): Update.
8247 * compile/compile-internal.h (c_get_range_decl_name): Return a
8248 std::string.
8249 (compile_register_name_mangled): Return std::string.
8250
8251 2017-09-03 Tom Tromey <tom@tromey.com>
8252
8253 * utils.c (perror_string): Return a std::string.
8254 (throw_perror_with_name, perror_warning_with_name): Update.
8255
8256 2017-09-03 Tom Tromey <tom@tromey.com>
8257
8258 * demangle.c (demangle_command): Use std::string,
8259 unique_xmalloc_ptr.
8260
8261 2017-09-03 Tom Tromey <tom@tromey.com>
8262
8263 * cli/cli-setshow.c (do_set_command): Use std::string.
8264
8265 2017-09-03 Tom Tromey <tom@tromey.com>
8266
8267 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8268
8269 2017-09-03 Tom Tromey <tom@tromey.com>
8270
8271 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8272
8273 2017-09-03 Tom Tromey <tom@tromey.com>
8274
8275 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8276 gdb::unique_xmalloc_ptr.
8277
8278 2017-09-03 Tom Tromey <tom@tromey.com>
8279
8280 * thread.c (print_thread_info_1): Use string_printf.
8281 (thread_apply_command, thread_apply_all_command): Use
8282 std::string.
8283
8284 2017-09-03 Tom Tromey <tom@tromey.com>
8285
8286 * valprint.c (val_print_string): Update.
8287 * gdbcore.h (memory_error_message): Return std::string.
8288 * corefile.c (memory_error_message): Return std::string.
8289 (memory_error): Update.
8290 * breakpoint.c (insert_bp_location): Update.
8291
8292 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8293
8294 * target/waitstatus.h (target_waitstatus_to_string): Change
8295 return type to std::string.
8296 * target/waitstatus.c (target_waitstatus_to_string): Return
8297 std::string.
8298 * target.h (target_waitstatus_to_string): Remove declaration.
8299 * infrun.c (resume, clear_proceed_status_thread,
8300 print_target_wait_results, do_target_wait, save_waitstatus,
8301 stop_all_threads): Adjust.
8302 * record-btrace.c (record_btrace_wait): Adjust.
8303 * target-debug.h
8304 (target_debug_print_struct_target_waitstatus_p): Adjust.
8305
8306 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8307
8308 PR gdb/22046
8309 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8310 detection.
8311
8312 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8313
8314 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8315 for setting/unsetting environment variables on the remote target.
8316 (New remote packets): Add entries for QEnvironmentHexEncoded,
8317 QEnvironmentUnset and QEnvironmentReset.
8318 * common/environ.c (gdb_environ::operator=): Extend method to
8319 handle m_user_set_env_list and m_user_unset_env_list.
8320 (gdb_environ::clear): Likewise.
8321 (match_var_in_string): Change type of first parameter from 'char
8322 *' to 'const char *'.
8323 (gdb_environ::set): Extend method to handle
8324 m_user_set_env_list and m_user_unset_env_list.
8325 (gdb_environ::unset): Likewise.
8326 (gdb_environ::clear_user_set_env): New method.
8327 (gdb_environ::user_set_envp): Likewise.
8328 (gdb_environ::user_unset_envp): Likewise.
8329 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8330 m_user_unset_env_list on move constructor/assignment.
8331 (unset): Add new default parameter 'update_unset_list = true'.
8332 (clear_user_set_env): New method.
8333 (user_set_envp): Likewise.
8334 (user_unset_envp): Likewise.
8335 (m_user_set_env_list): New std::set.
8336 (m_user_unset_env_list): Likewise.
8337 * common/rsp-low.c (hex2str): New function.
8338 (bin2hex): New overload for bin2hex function.
8339 * common/rsp-low.c (hex2str): New prototype.
8340 (str2hex): New overload prototype.
8341 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8342 QEnvironmentUnset and QEnvironmentReset.
8343 (remote_protocol_features): Add QEnvironmentHexEncoded,
8344 QEnvironmentUnset and QEnvironmentReset packets.
8345 (send_environment_packet): New function.
8346 (extended_remote_environment_support): Likewise.
8347 (extended_remote_create_inferior): Call
8348 extended_remote_environment_support.
8349 (_initialize_remote): Add QEnvironmentHexEncoded,
8350 QEnvironmentUnset and QEnvironmentReset packet configs.
8351 * unittests/environ-selftests.c (gdb_selftest_env_var):
8352 New variable.
8353 (test_vector_initialization): New function.
8354 (test_init_from_host_environ): Likewise.
8355 (test_reinit_from_host_environ): Likewise.
8356 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8357 Likewise.
8358 (test_unset_set_empty_vector): Likewise.
8359 (test_vector_clear): Likewise.
8360 (test_std_move): Likewise.
8361 (test_move_constructor):
8362 (test_self_move): Likewise.
8363 (test_set_unset_reset): Likewise.
8364 (run_tests): Rewrite in terms of the functions above.
8365
8366 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
8367
8368 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8369 (adi_available): Use a temp variable of type CORE_ADDR as argument
8370 3 when calling target_auxv_search.
8371 (adi_normalize_address): Use masks and xor operators to calculate
8372 normalized address.
8373 (adi_read_versions, adi_write_versions, adi_print_versions)
8374 (do_examine, do_assign): Use paddress.
8375
8376 2017-08-29 John Baldwin <jhb@FreeBSD.org>
8377
8378 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
8379 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
8380 out of loop and add supply of FIR.
8381 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
8382 add collect of FIR.
8383
8384 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
8385
8386 PR gdb/21827
8387 * cli/cli-script.c (define_command): Don't convert command name
8388 to lower case.
8389
8390 2017-08-25 Joel Brobecker <brobecker@adacore.com>
8391
8392 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
8393 Update all callers accordingly. Remove all code blocks handling
8394 the case where DISPP is not NULL.
8395
8396 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8397
8398 PR symtab/22003
8399 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
8400 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8401 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
8402
8403 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8404
8405 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
8406 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
8407 (read_comp_units_from_section): New parameter abbrev_section, use
8408 read_and_check_comp_unit_head, allocate signatured_type if needed.
8409 (create_all_comp_units): Update read_comp_units_from_section caller.
8410
8411 2017-08-23 Pedro Alves <palves@redhat.com>
8412
8413 PR remote/21852
8414 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
8415 to null_ptid and switch to thread without reading the registers
8416 after adding the inferior.
8417
8418 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8419
8420 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
8421 compile-gcc.
8422 * compile/compile.c (compile_gcc, show_compile_gcc): New.
8423 (compile_to_object): Implement compile_gcc.
8424 (_initialize_compile): Install "set compile-gcc". Initialize
8425 compile_gcc.
8426
8427 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8428
8429 * compile/compile.c (compile_to_object): Conditionally call
8430 set_verbose. Conditionally call compile or compile_v0.
8431
8432 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
8433
8434 * sparc64-tdep.h: (adi_normalize_address): New export.
8435 * sparc-nat.h: (open_adi_tag_fd): New export.
8436 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
8437 * sparc64-linux-tdep.c:
8438 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
8439 (sparc64_linux_handle_segmentation_fault): New function.
8440 (sparc64_linux_init_abi): Register
8441 sparc64_linux_handle_segmentation_fault
8442 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
8443 (sparc64_addr_bits_remove): New function.
8444 (sparc64_init_abi): Register sparc64_addr_bits_remove.
8445 (MAX_PROC_NAME_SIZE): New macro.
8446 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
8447 (sparc64adilist): New variable.
8448 (adi_proc_list): New variable.
8449 (find_adi_info): New function.
8450 (add_adi_info): New function.
8451 (get_adi_info_proc): New function.
8452 (get_adi_info): New function.
8453 (info_adi_command): New function.
8454 (read_maps_entry): New function.
8455 (adi_available): New function.
8456 (adi_normalize_address): New function.
8457 (adi_align_address): New function.
8458 (adi_convert_byte_count): New function.
8459 (adi_tag_fd): New function.
8460 (adi_is_addr_mapped): New function.
8461 (adi_read_versions): New function.
8462 (adi_write_versions): New function.
8463 (adi_print_versions): New function.
8464 (do_examine): New function.
8465 (do_assign): New function.
8466 (adi_examine_command): New function.
8467 (adi_assign_command): New function.
8468 (_initialize_sparc64_adi_tdep): New function.
8469
8470 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
8471
8472 * breakpoint.c (breakpoints_info): Rename to ...
8473 (info_breakpoints_command): ... this.
8474 (watchpoints_info): Rename to ...
8475 (info_watchpoints_command): ... this.
8476 (tracepoints_info): Rename to ...
8477 (info_tracepoints_command): ... this.
8478 (_initialize_breakpoint): Adjust.
8479 * dcache.c (dcache_info): Rename to ...
8480 (info_display_command): ... this.
8481 (_initialize_dcache): Adjust.
8482 * frame.h (args_info): Rename to ...
8483 (info_args_command): ... this.
8484 (locals_info): Rename to ...
8485 (info_locals_command): ... this.
8486 * infcmd.c (nofp_registers_info): Rename to ...
8487 (info_registers_command): ... this.
8488 (float_info): Rename to ...
8489 (info_float_command): ... this.
8490 (program_info): Rename to ...
8491 (info_program_command): ... this.
8492 (all_registers_info): Rename to ...
8493 (info_all_registers_command): ... this.
8494 (vector_info): Rename to ...
8495 (info_vector_command): ... this.
8496 (float_info): Rename to ...
8497 (info_float_command): ... this.
8498 (_initialize_infcmd): Adjust.
8499 * inferior.h (term_info): Rename to ...
8500 (info_terminal_command): ... this.
8501 * inflow.c (term_info): Rename to ...
8502 (info_terminal_command): ... this.
8503 (_initialize_inflow): Adjust.
8504 * infrun.c (signals_info): Rename to ...
8505 (info_signals_command): ... this.
8506 (_initialize_infrun): Adjust.
8507 * objc-lang.c (classes_info): Rename to ...
8508 (info_classes_command): ... this.
8509 (selectors_info): Rename to ...
8510 (info_selectors_command): ... this.
8511 (_initialize_objc_language): Adjust.
8512 * printcmd.c (sym_info): Rename to ...
8513 (info_symbol_command): ... this.
8514 (address_info): Rename to ...
8515 (info_address_command): ... this.
8516 (display_info): Rename to ...
8517 (info_display_command): ... this.
8518 (_initialize_printcmd): Adjust.
8519 * reverse.c (bookmarks_info): Rename to ...
8520 (info_breakpoints_command): ... this.
8521 (_initialize_reverse): Adjust.
8522 * ser-go32.c (dos_info): Rename to ...
8523 (info_serial_command): ... this.
8524 (_initialize_ser_dos): Adjust.
8525 * skip.c (skip_info): Rename to ...
8526 (info_skip_command): ... this.
8527 (_initialize_step_skip): Adjust.
8528 * source.c (line_info): Rename to ...
8529 (info_line_command): ... this.
8530 (source_info): Rename to ...
8531 (info_source_command)
8532 * stack.c (frame_info): Rename to ...
8533 (info_frame_command): ... this.
8534 (locals_info): Rename to ...
8535 (info_locals_command): ... this.
8536 (args_info): Rename to ...
8537 (info_args_command): ... this.
8538 (_initialize_stack): Adjust.
8539 * symtab.c (sources_info): Rename to ...
8540 (info_sources_command): ... this.
8541 (variables_info): Rename to ...
8542 (info_variables_command): ... this.
8543 (functions_info): Rename to ...
8544 (info_functions_command): ... this.
8545 (types_info): Rename to ...
8546 (info_types_command): ... this.
8547 (_initialize_symtab): Adjust.
8548 * target.c (target_info): Rename to ...
8549 (info_target_command): ... this.
8550 (initialize_targets): Adjust.
8551 * tracepoint.c (tvariables_info): Rename to ...
8552 (info_tvariables_command): ... this.
8553 (scope_info): Rename to ...
8554 (info_scope_command): ... this.
8555 (trace_dump_actions): Adjust.
8556 (_initialize_tracepoint): Adjust.
8557
8558 2017-08-22 Tom Tromey <tom@tromey.com>
8559
8560 * breakpoint.h (install_breakpoint): Update.
8561 * breakpoint.c (add_solib_catchpoint): Update.
8562 (install_breakpoint): Change argument to a std::unique_ptr.
8563 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8564 (create_breakpoint_sal, create_breakpoint): Update.
8565 (watch_command_1, catch_exec_command_1)
8566 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8567 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8568 Return the breakpoint.
8569 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8570 (new_single_step_breakpoint): Update.
8571 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8572 std::unique_ptr.
8573 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8574 std::unique_ptr.
8575 * break-catch-sig.c (create_signal_catchpoint): Use
8576 std::unique_ptr.
8577 * ada-lang.c (create_ada_exception_catchpoint): Use
8578 std::unique_ptr.
8579
8580 2017-08-22 Tom Tromey <tom@tromey.com>
8581
8582 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
8583
8584 2017-08-22 Tom Tromey <tom@tromey.com>
8585
8586 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
8587 (lookup_partial_symbol): Update.
8588
8589 2017-08-22 Tom Tromey <tom@tromey.com>
8590
8591 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
8592 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
8593 (find_and_open_source, symtab_to_fullname): Update.
8594 * psymtab.c (psymtab_to_fullname): Update.
8595
8596 2017-08-22 Tom Tromey <tom@tromey.com>
8597
8598 * exec.c (exec_file_attach): Update.
8599 * linux-thread-db.c (try_thread_db_load): Update.
8600 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
8601 * utils.c (gdb_realpath): Change return type.
8602 (gdb_realpath_keepfile): Update.
8603 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
8604 (_initialize_utils): Register the new self test.
8605 * source.c (openp): Update.
8606 (find_and_open_source): Update.
8607 * nto-tdep.c (nto_find_and_open_solib): Update.
8608 * main.c (set_gdb_data_directory): Update.
8609 (captured_main_1): Update.
8610 * dwarf2read.c (dwarf2_get_dwz_file): Update
8611 (dw2_map_symbol_filenames): Update.
8612 * auto-load.c (auto_load_safe_path_vec_update): Update.
8613 (filename_is_in_auto_load_safe_path_vec): Change type of
8614 "filename_realp".
8615 (auto_load_objfile_script): Update.
8616 (file_is_auto_load_safe): Update. Use std::string.
8617 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
8618
8619 2017-08-22 Tom Tromey <tom@tromey.com>
8620
8621 * utils.c (gdb_realpath_keepfile): Return a
8622 gdb::unique_xmalloc_ptr.
8623 * exec.c (exec_file_attach): Update.
8624 * utils.h (gdb_realpath_keepfile): Return a
8625 gdb::unique_xmalloc_ptr.
8626
8627 2017-08-22 Tom Tromey <tom@tromey.com>
8628
8629 * compile/compile.c (compile_file_command): Use
8630 gdb::unique_xmalloc_ptr, std::string.
8631 * utils.c (gdb_abspath): Change return type.
8632 * source.c (openp): Update.
8633 * objfiles.c (allocate_objfile): Update.
8634 * main.c (set_gdb_data_directory): Update.
8635 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
8636
8637 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
8638
8639 * cli-cmds.c (list_commands): List actual code around more than
8640 one location.
8641
8642 2017-08-21 John Baldwin <jhb@FreeBSD.org>
8643
8644 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
8645
8646 2017-08-21 Pedro Alves <palves@redhat.com>
8647
8648 PR gdb/19487
8649 * c-exp.y (variable production): Handle function aliases.
8650 * minsyms.c (msymbol_is_text): New function.
8651 * minsyms.h (msymbol_is_text): Declare.
8652 * symtab.c (find_function_alias_target): New function.
8653 * symtab.h (find_function_alias_target): Declare.
8654
8655 2017-08-21 Pedro Alves <palves@redhat.com>
8656
8657 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
8658 typedefs.
8659 * typeprint.c (whatis_exp): If handling "whatis", and expression
8660 is OP_TYPE, strip one typedef level. Otherwise don't strip
8661 typedefs here.
8662 * valops.c (value_cast): Save "to" type before resolving
8663 stubs/typedefs. Use that type as resulting value's type.
8664
8665 2017-08-18 Tom Tromey <tom@tromey.com>
8666 Pedro Alves <palves@redhat.com>
8667
8668 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
8669 * sol-thread.c (sol_thread_resume, sol_thread_wait)
8670 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
8671 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
8672 * proc-service.c (ps_xfer_memory): Use scoped_restore.
8673 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
8674 (linux_get_siginfo_data): Add "thread" argument. Use
8675 scoped_restore.
8676 * linux-nat.c (linux_child_follow_fork)
8677 (check_stopped_by_watchpoint): Use scoped_restore.
8678 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
8679 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
8680 (restore_inferior_ptid, save_inferior_ptid): Remove.
8681 * btrace.c (btrace_fetch): Use scoped_restore.
8682 * bsd-uthread.c (bsd_uthread_fetch_registers)
8683 (bsd_uthread_store_registers): Use scoped_restore.
8684 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
8685 scoped_restore.
8686 * aix-thread.c (aix_thread_resume, aix_thread_wait)
8687 (aix_thread_xfer_partial): Use scoped_restore.
8688 * inferior.h (save_inferior_ptid): Remove.
8689
8690 2017-08-18 Yao Qi <yao.qi@linaro.org>
8691
8692 PR tdep/21818
8693 * arm-tdep.c (gdb_print_insn_arm): Mark
8694 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
8695
8696 2017-08-18 Yao Qi <yao.qi@linaro.org>
8697
8698 * NEWS: Mention GDBserver's new option "--selftest".
8699 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
8700 * selftest.c: Move it to common/selftest.c.
8701 * selftest.h: Move it to common/selftest.h.
8702 * selftest-arch.c (reset): New function.
8703 (tests_with_arch): Call reset.
8704
8705 2017-08-18 Yao Qi <yao.qi@linaro.org>
8706
8707 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
8708 instead of exception_fprintf and printf_filtered.
8709
8710 2017-08-18 Yao Qi <yao.qi@linaro.org>
8711
8712 * selftest.c (register_self_test): Rename it to
8713 selftests::register_test.
8714 (run_self_tests): selftest::run_tests.
8715 * selftest.h: Update declarations.
8716 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
8717 selftests::register_test_foreach_arch.
8718 * selftest-arch.h: Update declaration.
8719 * aarch64-tdep.c: Update.
8720 * arm-tdep.c: Likewise.
8721 * disasm-selftests.c: Likewise.
8722 * dwarf2loc.c: Likewise.
8723 * dwarf2-frame.c: Likewise.
8724 * findvar.c: Likewise.
8725 * gdbarch-selftests.c: Likewise.
8726 * maint.c (maintenance_selftest): Likewise.
8727 * regcache.c: Likewise.
8728 * rust-exp.y: Likewise.
8729 * selftest-arch.c: Likewise.
8730 * unittests/environ-selftests.c: Likewise.
8731 * unittests/function-view-selftests.c: Likewise.
8732 * unittests/offset-type-selftests.c: Likewise.
8733 * unittests/optional-selftests.c: Likewise.
8734 * unittests/scoped_restore-selftests.c: Likewise.
8735 * utils-selftests.c: Likewise.
8736
8737 2017-08-17 Pedro Alves <palves@redhat.com>
8738
8739 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
8740 local.
8741
8742 2017-08-17 Pedro Alves <palves@redhat.com>
8743
8744 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
8745 field.
8746 (reset_die_in_process): Delete, replaced by ...
8747 (process_die_scope): ... this new class. Make it responsible for
8748 freeing cu->line_header too.
8749 (process_die): Use process_die_scope.
8750 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
8751 cu->line_header_die_owner. Don't release the line header if it's
8752 owned by the CU.
8753 (setup_type_unit_groups): Make the CU/DIE own the line header.
8754 Don't release the line header here.
8755
8756 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
8757
8758 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
8759
8760 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
8761
8762 * NEWS: Mention new shortcuts for nexti and stepi in TUI
8763 Single-Key mode
8764
8765 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
8766
8767 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
8768 mode command list.
8769
8770 2017-08-15 Stafford Horne <shorne@gmail.com>
8771
8772 * MAINTAINERS (Write After Approval): Add Stafford Horne.
8773
8774 2017-08-15 Stafford Horne <shorne@gmail.com>
8775
8776 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
8777
8778 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
8779
8780 PR gdb/21954
8781 * infcmd.c (unset_environment_command): Use the 'clear' method on
8782 the environment instead of resetting it.
8783
8784 2017-08-15 John Baldwin <jhb@FreeBSD.org>
8785
8786 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
8787 platforms.
8788
8789 2017-08-14 Tom Tromey <tom@tromey.com>
8790
8791 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
8792 (print_binary_chars): Likewise.
8793 (BITS_IN_BYTES): Remove.
8794
8795 2017-08-14 Tom Tromey <tom@tromey.com>
8796
8797 PR gdb/21675
8798 * valprint.c (LOW_ZERO): Change value to 034.
8799 (print_octal_chars): Add static_asserts for octal constants.
8800 * printcmd.c (print_scalar_formatted): Add 'd' case.
8801
8802 2017-08-11 Tom Tromey <tom@tromey.com>
8803
8804 * symfile.c (add_symbol_file_command): Use std::vector.
8805
8806 2017-08-14 Tom Tromey <tom@tromey.com>
8807
8808 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
8809 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8810 std::move.
8811 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
8812
8813 2017-08-11 Pedro Alves <palves@redhat.com>
8814
8815 * infrun.c (process_event_stop_test): Adjust
8816 function_name_is_marked_for_skip call.
8817 * skip.c: Include <list>.
8818 (skiplist_entry): Make it a class with private fields, and
8819 getters/setters.
8820 (skiplist_entry_chain): Delete.
8821 (skiplist_entries): New.
8822 (skiplist_entry_count): Delete.
8823 (highest_skiplist_entry_num): New.
8824 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
8825 (add_skiplist_entry): Delete.
8826 (skiplist_entry::skiplist_entry): New.
8827 (skiplist_entry::add_entry): New.
8828 (skip_file_command, skip_function): Adjust.
8829 (compile_skip_regexp): Delete.
8830 (skip_command): Don't compile regexp here. Adjust to use
8831 skiplist_entry::add_entry.
8832 (skip_info): Adjust to use range-for and getters.
8833 (skip_enable_command, skip_disable_command): Adjust to use
8834 range-for and setters.
8835 (skip_delete_command): Adjust to use std::list.
8836 (add_skiplist_entry): Delete.
8837 (skip_file_p): Delete, refactored as ...
8838 (skiplist_entry::do_skip_file_p): ... this new method.
8839 (skip_gfile_p): Delete, refactored as ...
8840 (skiplist_entry::do_gskip_file_p): ... this new method.
8841 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
8842 (skiplist_entry::skip_function_p): ... this new method.
8843 (function_name_is_marked_for_skip): Now returns bool, and takes
8844 the function sal by const reference. Adjust to use range-for and
8845 skiplist_entry methods.
8846 (_initialize_step_skip): Remove references to
8847 skiplist_entry_chain, skiplist_entry_count.
8848 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
8849 takes the function sal by const reference.
8850
8851 2017-08-11 Yao Qi <yao.qi@linaro.org>
8852
8853 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
8854 (dwarf2_frame_cache): Remove reset_cache_cleanup.
8855 (dwarf2_frame_cache):
8856 * frame-unwind.c (frame_unwind_try_unwinder): Catch
8857 RETURN_MASK_ALL and set *this_case to NULL.
8858 * frame-unwind.h: Update comments.
8859
8860 2017-08-11 Yao Qi <yao.qi@linaro.org>
8861
8862 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
8863 (dwarf2_frame_state_copy_regs): Remove.
8864 (dwarf2_frame_state_free_regs): Remove.
8865 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
8866 (dwarf2_restore_rule): Call method .alloc_regs instead of
8867 dwarf2_frame_state_alloc_regs.
8868 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
8869 constructor. Call std::move.
8870 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
8871 (dwarf2_frame_cache): Likewise.
8872
8873 [GDB_SELF_TEST]: Include selftest.h and
8874 selftest-arch.h.
8875 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
8876 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
8877 execute_cfa_program_test.
8878
8879 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
8880 copy ctor, assignment operator, move assignment.
8881 <alloc_regs>: New method.
8882 <swap>: New method.
8883 (struct dwarf2_frame_state): Delete dtor.
8884 (dwarf2_frame_state_alloc_regs): Remove declaration.
8885 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
8886 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
8887
8888 2017-08-11 Yao Qi <yao.qi@linaro.org>
8889
8890 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
8891 (dwarf2_frame_state::dwarf2_frame_state): New.
8892 (dwarf2_frame_state::~dwarf2_frame_state): New.
8893 (dwarf2_fetch_cfa_info): Update.
8894 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
8895 rather than a pointer. Update code.
8896 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
8897 dtor.
8898 <data_align, code_align, retaddr_column>: Change them to const.
8899 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
8900 to bool.
8901
8902 2017-08-11 Yao Qi <yao.qi@linaro.org>
8903
8904 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
8905 <loc.exp>: New field.
8906 * dwarf2-frame.c (execute_cfa_program): Update.
8907 (dwarf2_frame_prev_register): Update.
8908
8909 2017-08-10 Pedro Alves <palves@redhat.com>
8910
8911 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
8912
8913 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8914
8915 * fbsd-nat.c (struct fbsd_fork_info): Remove.
8916 (fbsd_pending_children): Use std::list.
8917 (fbsd_remember_child): Likewise.
8918 (fbsd_is_child_pending): Likewise.
8919 (fbsd_pending_vfork_done): Use std::forward_list.
8920 (fbsd_add_vfork_done): Likewise.
8921 (fbsd_is_vfork_done_pending): Likewise.
8922 (fbsd_next_vfork_done): Likewise.
8923
8924 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8925
8926 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
8927 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
8928 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
8929 for `mapfilename'.
8930 (fbsd_xfer_partial): Use gdb::byte_vector.
8931 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
8932
8933 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8934
8935 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
8936 "filestuff.h".
8937 (fbsd_find_memory_regions): Fix `mapfile' initialization.
8938
8939 2017-08-09 Tom Tromey <tom@tromey.com>
8940
8941 * skip.c (skiplist_entry): New constructor.
8942 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
8943 (skiplist_entry::file_is_glob): Now bool.
8944 (skiplist_entry::file, skiplist_entry::function): Now
8945 std::string.
8946 (make_skip_entry): Return a unique_ptr. Use new.
8947 (free_skiplist_entry, free_skiplist_entry_cleanup)
8948 (make_free_skiplist_entry_cleanup): Remove.
8949 (skip_command, skip_disable_command, add_skiplist_entry)
8950 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
8951 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
8952 (function_name_is_marked_for_skip): Update.
8953 (skip_delete_command): Update. Use delete.
8954
8955 2017-08-09 Jiong Wang <jiong.wang@arm.com>
8956
8957 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
8958 (aarch64_linux_core_read_description): New function.
8959 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
8960
8961 2017-08-09 Pedro Alves <palves@redhat.com>
8962
8963 * cp-name-parser.y (cp_comp_to_string): Return a
8964 gdb::unique_xmalloc_ptr<char>.
8965 * cp-support.c (replace_typedefs_qualified_name)
8966 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
8967 (cp_canonicalize_string_full): Use op= instead of explicit
8968 convertion.
8969 (cp_class_name_from_physname, method_name_from_physname)
8970 (cp_func_name, cp_remove_params): Adjust to use
8971 gdb::unique_xmalloc_ptr<char>.
8972 * cp-support.h (cp_comp_to_string): Return a
8973 gdb::unique_xmalloc_ptr<char>.
8974 * python/py-type.c (typy_lookup_type): Adjust to use
8975 gdb::unique_xmalloc_ptr<char>.
8976
8977 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
8978
8979 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
8980
8981 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
8982 Yao Qi <yao.qi@linaro.org>
8983
8984 * cp-support.c (cp_canonicalize_string_full): Use
8985 gdb::unique_xmalloc_ptr<char>.
8986 (cp_canonicalize_string): Likewise.
8987
8988 2017-08-09 Yao Qi <yao.qi@linaro.org>
8989
8990 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
8991 * regformats/i386/amd64-avx-avx512.dat: Remove.
8992 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
8993 * regformats/i386/amd64-avx-mpx.dat:Remove.
8994 * regformats/i386/amd64-avx.dat: Remove.
8995 * regformats/i386/amd64-mpx.dat: Remove.
8996 * regformats/i386/i386-avx-avx512.dat: Remove.
8997 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
8998 * regformats/i386/i386-avx-mpx.dat: Remove.
8999 * regformats/i386/i386-mmx.dat: Remove.
9000 * regformats/i386/i386-mpx.dat: Remove.
9001
9002 2017-08-09 Yao Qi <yao.qi@linaro.org>
9003
9004 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9005 * amd64-tdep.c: Don't include features/i386/x32*.c.
9006 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9007 functions.
9008 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9009 and i386/x32-avx-avx512.
9010 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9011 and i386/x32.xml.
9012 * features/i386/x32-avx-avx512.c: Removed.
9013 * features/i386/x32-avx-avx512.xml: Removed.
9014 * features/i386/x32-avx.c: Removed.
9015 * features/i386/x32-avx.xml: Removed.
9016 * features/i386/x32.c: Removed.
9017 * features/i386/x32.xml: Removed.
9018 * regformats/i386/x32-avx-avx512.dat: Removed.
9019 * regformats/i386/x32-avx.dat: Removed.
9020 * regformats/i386/x32.dat: Removed.
9021
9022 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9023
9024 PR breakpoints/21886
9025 * mem-break.c (default_memory_insert_breakpoint): Use
9026 `->placed_address' rather than `->reqstd_address' for the
9027 breakpoint location.
9028
9029 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9030
9031 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9032 assertions.
9033
9034 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9035
9036 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9037 a union of `tdep_info', `tdesc_data' and `id'.
9038 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9039 rather than `info.tdep_info'.
9040 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9041 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9042 * i386-tdep.c (i386_gdbarch_init): Likewise.
9043 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9044 * mips-tdep.c (mips_gdbarch_init): Likewise.
9045 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9046 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9047 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9048 `info.tdep_info'.
9049 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9050 `info.tdep_info'.
9051 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9052 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9053 `info.tdep_info'.
9054 * spu-tdep.c (spu_gdbarch_init): Likewise.
9055 * gdbarch.h: Regenerate.
9056
9057 2017-08-07 Leszek Swirski <leszeks@google.com>
9058
9059 PR symtab/20899
9060 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9061
9062 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9063
9064 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9065 (gdbsim_open): Rename gdb_argv args object to argv.
9066
9067 2017-08-05 Tom Tromey <tom@tromey.com>
9068
9069 * compile/compile-object-load.c (compile_object_load): Use
9070 gdb::unique_xmalloc_ptr.
9071 * cli/cli-dump.c (scan_filename): Rename from
9072 scan_filename_with_cleanup. Change return type.
9073 (scan_expression): Rename from scan_expression_with_cleanup.
9074 Change return type.
9075 (dump_memory_to_file, dump_value_to_file, restore_command):
9076 Use gdb::unique_xmalloc_ptr. Update.
9077 * cli/cli-cmds.c (find_and_open_script): Use
9078 gdb::unique_xmalloc_ptr.
9079 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9080 * symmisc.c (maintenance_print_symbols)
9081 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9082 * symfile.c (symfile_bfd_open, generic_load)
9083 (add_symbol_file_command, remove_symbol_file_command): Use
9084 gdb::unique_xmalloc_ptr.
9085 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9086 * psymtab.c (maintenance_print_psymbols): Use
9087 gdb::unique_xmalloc_ptr.
9088 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9089 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9090 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9091 (reload_shared_libraries_1): Likewise.
9092
9093 2017-08-05 Tom Tromey <tom@tromey.com>
9094
9095 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9096 (rust_op_vector, rust_set_vector): New typedefs.
9097 (current_parser): New global.
9098 (work_obstack): Change to pointer type. Update all users.
9099 (rust_ast, pstate): Remove globals.
9100 (struct rust_parser): New.
9101 (%union) <params, field_inits>: Change type.
9102 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9103 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9104 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9105 (convert_params_to_types, convert_params_to_expression): Change
9106 type of "params".
9107 (ast_string): Change type of "fields".
9108 (rust_parse): Make a rust_parser. Remove cleanups.
9109 (rust_lex_tests): Make and install an auto_obstack.
9110
9111 2017-08-04 Yao Qi <yao.qi@linaro.org>
9112
9113 * configure.srv (ipa_x32_linux_regobj): New.
9114 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9115 instead of X86_TDESC_AVX512.
9116 (initialize_low_tracepoint): Call
9117 init_registers_x32_avx_avx512_linux.
9118
9119 2017-08-04 Yao Qi <yao.qi@linaro.org>
9120
9121 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9122
9123 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9124
9125 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9126
9127 2017-08-03 Tom Tromey <tom@tromey.com>
9128
9129 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9130 Remove.
9131 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9132
9133 2017-08-03 Tom Tromey <tom@tromey.com>
9134
9135 * python/py-param.c (compute_enum_values): Use gdb_argv.
9136
9137 2017-08-03 Tom Tromey <tom@tromey.com>
9138
9139 * utils.h (struct gdb_argv_deleter): New.
9140 (gdb_argv): New class.
9141 * utils.c (gdb_argv::reset): New method.
9142 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9143 * tracefile.c (tsave_command): Use gdb_argv.
9144 * top.c (new_ui_command): Use gdb_argv.
9145 * symmisc.c (maintenance_print_symbols)
9146 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9147 * symfile.c (symbol_file_command, generic_load)
9148 (remove_symbol_file_command): Use gdb_argv.
9149 * stack.c (backtrace_command): Use gdb_argv.
9150 * source.c (add_path, show_substitute_path_command)
9151 (unset_substitute_path_command, set_substitute_path_command):
9152 Use gdb_argv.
9153 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9154 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9155 * remote.c (extended_remote_run, remote_put_command)
9156 (remote_get_command, remote_delete_command): Use gdb_argv.
9157 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9158 (gdbsim_open): Use gdb_argv.
9159 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9160 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9161 * procfs.c (procfs_info_proc): Use gdb_argv.
9162 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9163 * infrun.c (handle_command): Use gdb_argv.
9164 * inferior.c (add_inferior_command, clone_inferior_command):
9165 Use gdb_argv.
9166 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9167 * exec.c (exec_file_command): Use gdb_argv.
9168 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9169 * compile/compile.c (build_argc_argv): Use gdb_argv.
9170
9171 2017-08-03 Tom Tromey <tom@tromey.com>
9172
9173 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9174
9175 2017-08-03 Tom Tromey <tom@tromey.com>
9176
9177 * python/python.c (compute_python_string): Return std::string.
9178 (gdbpy_eval_from_control_command): Update.
9179 (do_start_initialization): Use std::string.
9180 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9181 xstrprintf.
9182 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9183 xstrprintf.
9184
9185 2017-08-03 Tom Tromey <tom@tromey.com>
9186
9187 * top.h (do_restore_instream_cleanup): Remove.
9188 * top.c (do_restore_instream_cleanup): Remove.
9189 (read_command_file): Use scoped_restore.
9190 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9191
9192 2017-08-03 Tom Tromey <tom@tromey.com>
9193
9194 * cli/cli-script.c (execute_user_command)
9195 (execute_control_command): Use scoped_restore.
9196
9197 2017-08-03 Tom Tromey <tom@tromey.com>
9198
9199 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9200 (execute_user_command): Remove user_call_depth; use
9201 user_args_stack's size instead.
9202
9203 2017-08-03 Tom Tromey <tom@tromey.com>
9204
9205 * top.h (in_user_command): Remove.
9206 * top.c (in_user_command): Remove.
9207 * cli/cli-script.c (do_restore_user_call_depth)
9208 (execute_user_command): Update.
9209
9210 2017-08-03 Tom Tromey <tom@tromey.com>
9211
9212 * valops.c (search_struct_method): Use gdb::byte_vector.
9213 * valarith.c (value_concat): Use std::vector.
9214 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9215 (simple_search_memory): Likewise.
9216 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9217 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9218 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9219 * elfread.c (elf_rel_plt_read): Use std::string.
9220 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9221 * cli/cli-dump.c (restore_section_callback): Use
9222 gdb::byte_vector.
9223
9224 2017-08-03 Tom Tromey <tom@tromey.com>
9225
9226 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9227
9228 2017-08-03 Tom Tromey <tom@tromey.com>
9229
9230 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9231 (tui_register_format): Use scoped_restore.
9232
9233 2017-08-03 Tom Tromey <tom@tromey.com>
9234
9235 * reverse.c (exec_direction_default): Remove.
9236 (exec_reverse_once): Use scoped_restore.
9237 * remote.c (restore_remote_timeout): Remove.
9238 (remote_flash_erase, remote_flash_write, remote_flash_done)
9239 (readchar, remote_serial_write): Use scoped_restore.
9240 * cli/cli-script.c (struct source_cleanup_lines_args)
9241 (source_cleanup_lines): Remove.
9242 (script_from_file): Use scoped_restore.
9243 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9244 (source_command): Use scoped_restore.
9245
9246 2017-08-03 Tom Tromey <tom@tromey.com>
9247
9248 * utils.h (make_cleanup_free_so): Remove.
9249 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9250 * solist.h (struct so_deleter): New.
9251 (so_list_up): New typedef.
9252 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9253
9254 2017-08-03 Tom Tromey <tom@tromey.com>
9255
9256 * utils.h (make_cleanup_restore_current_language): Remove.
9257 * utils.c (do_restore_current_language)
9258 (make_cleanup_restore_current_language): Remove.
9259 * parse.c (parse_exp_in_context_1)
9260 (parse_expression_with_language): Use
9261 scoped_restore_current_language.
9262 * mi/mi-main.c (mi_cmd_execute): Use
9263 scoped_restore_current_language.
9264 * language.h (scoped_restore_current_language): New class.
9265
9266 2017-08-03 Tom Tromey <tom@tromey.com>
9267
9268 * compile/compile.c (cleanup_unlink_file): Remove.
9269 (compile_to_object): Use gdb::unlinker.
9270 (eval_compile_command): Likewise.
9271
9272 2017-08-03 Tom Tromey <tom@tromey.com>
9273
9274 * utils.h (make_cleanup_fclose): Remove.
9275 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9276
9277 2017-08-03 Tom Tromey <tom@tromey.com>
9278
9279 * top.c (open_terminal_stream): Return gdb_file_up.
9280 (new_ui_command): Update.
9281
9282 2017-08-03 Tom Tromey <tom@tromey.com>
9283
9284 * source.c (print_source_lines_base, forward_search_command)
9285 (reverse_search_command): Use gdb_file_up.
9286
9287 2017-08-03 Tom Tromey <tom@tromey.com>
9288
9289 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9290
9291 2017-08-03 Tom Tromey <tom@tromey.com>
9292
9293 * cli/cli-cmds.c (find_and_open_script): Change return type.
9294 Remove "streamp" and "full_path" parameters.
9295 (source_script_with_search): Update.
9296 * auto-load.c (source_script_file): Update.
9297 * cli/cli-cmds.h (find_and_open_script): Change type.
9298 (open_script): New struct.
9299
9300 2017-08-03 Tom Tromey <tom@tromey.com>
9301
9302 * xml-support.c (xml_fetch_content_from_file): Update.
9303 * ui-file.c (stdio_file::open): Update.
9304 * tracefile-tfile.c (tfile_start): Update.
9305 * remote.c (remote_file_put, remote_file_get): Update.
9306 * nat/linux-procfs.c (linux_proc_get_int)
9307 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9308 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9309 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9310 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9311 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9312 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9313 * linux-nat.c (linux_proc_pending_signals): Update.
9314 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9315 (file_closer): Remove.
9316 * compile/compile.c (compile_to_object): Update.
9317 * common/filestuff.h (struct gdb_file_deleter): New.
9318 (gdb_file_up): New typedef.
9319 (gdb_fopen_cloexec): Change return type.
9320 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9321 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9322 (dump_binary_file, restore_binary_file): Update.
9323 * auto-load.c (auto_load_objfile_script_1): Update.
9324
9325 2017-08-03 Tom Tromey <tom@tromey.com>
9326
9327 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9328 (info_static_tracepoint_markers_command): Likewise.
9329 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9330 * skip.c (skip_info): Use ui_out_emit_table.
9331 * progspace.c (print_program_space): Use ui_out_emit_table.
9332 * osdata.c (info_osdata): Use ui_out_emit_table.
9333 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9334 ui_out_emit_table.
9335 * linux-thread-db.c (info_auto_load_libthread_db): Use
9336 ui_out_emit_table.
9337 * inferior.c (print_inferior): Use ui_out_emit_table.
9338 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9339 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9340 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9341 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9342 * ui-out.h (class ui_out_emit_table): New.
9343
9344 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9345
9346 * mips-tdep.c (mips_fpu_type_str): New function.
9347 (mips_dump_tdep): Call it.
9348
9349 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9350
9351 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9352 `->mips_fpu_type'.
9353
9354 2017-07-31 Xavier Roirand <roirand@adacore.com>
9355
9356 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9357
9358 2017-07-27 Xavier Roirand <roirand@adacore.com>
9359
9360 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9361
9362 2017-07-26 Yao Qi <yao.qi@linaro.org>
9363
9364 * cli/cli-cmds.c (maintenancechecklist): New variable.
9365 * gdbcmd.h (maintenancechecklist): Declare it.
9366 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9367 Call i386_linux_read_description with different masks.
9368 * maint.c (maintenance_check_command): New function.
9369 (_initialize_maint_cmds): Call add_prefix_cmd.
9370 * target-descriptions.c (tdesc_reg): override operator != and ==.
9371 (tdesc_type): Likewise.
9372 (tdesc_feature): Likewise.
9373 (target_desc): Likewise.
9374 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9375 (maintenance_check_xml_descriptions): New function.
9376 (_initialize_target_descriptions) Add command "xml-descriptions".
9377 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
9378
9379 2017-07-26 Yao Qi <yao.qi@linaro.org>
9380
9381 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
9382 Include features/i386/32bit-*.c.
9383 (i386_linux_read_description): Generate target description if it
9384 doesn't exist.
9385 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
9386 functions.
9387 * features/i386/32bit-linux.c: Re-generated.
9388 * features/i386/32bit-sse.c: Likewise.
9389 * target-descriptions.c (print_c_feature::visit): Print code to
9390 set register number if needed.
9391 (print_c_feature) <m_next_regnum>: New field.
9392
9393 2017-07-26 Yao Qi <yao.qi@linaro.org>
9394
9395 * features/Makefile (CFILES): Rename with TDESC_CFILES.
9396 (FEATURE_XMLFILES): New.
9397 (FEATURE_CFILES): New.
9398 New rules.
9399 (clean-cfiles): Remove generated c files.
9400 * features/i386/32bit-avx.c: Generated.
9401 * features/i386/32bit-avx512.c: Generated.
9402 * features/i386/32bit-core.c: Generated.
9403 * features/i386/32bit-linux.c: Generated.
9404 * features/i386/32bit-mpx.c: Generated.
9405 * features/i386/32bit-pkeys.c: Generated.
9406 * features/i386/32bit-sse.c: Generated.
9407 * target-descriptions.c: Include algorithm.
9408 (tdesc_element_visitor): Add method visit_end.
9409 (print_c_tdesc): Implement visit_end.
9410 (print_c_tdesc:: m_filename_after_features): Move it to
9411 protected.
9412 (print_c_feature): New class.
9413 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
9414 name starts with "i386/32bit-".
9415
9416 2017-07-26 Yao Qi <yao.qi@linaro.org>
9417
9418 * target-descriptions.c (tdesc_element_visitor): New class.
9419 (tdesc_element): New class.
9420 (tdesc_reg): Inherit from tdesc_element.
9421 (tdesc_reg::accept): New function.
9422 (tdesc_type): Inherit from tdesc_element.
9423 (tdesc_type::accept): New function.
9424 (tdesc_feature): Inherit from tdesc_element.
9425 (tdesc_feature::accept): New function.
9426 (target_desc): Inherit from tdesc_element.
9427 (target_desc::target_desc): New.
9428 (target_desc::~target_desc): New.
9429 (target_desc::accept): New.
9430 (allocate_target_description): Use new.
9431 (free_target_description): Use delete.
9432 (print_c_tdesc): New class.
9433 (maint_print_c_tdesc_cmd): Adjust.
9434
9435 * features/aarch64.c: Re-generated.
9436 * features/arc-arcompact.c: Re-generated.
9437 * features/arc-v2.c: Re-generated.
9438 * features/arm/arm-with-iwmmxt.c: Re-generated.
9439 * features/arm/arm-with-m.c: Re-generated.
9440 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
9441 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
9442 * features/arm/arm-with-neon.c: Re-generated.
9443 * features/arm/arm-with-vfpv2.c: Re-generated.
9444 * features/arm/arm-with-vfpv3.c: Re-generated.
9445 * features/i386/amd64-avx-avx512.c: Re-generated.
9446 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9447 * features/i386/amd64-avx.c: Re-generated.
9448 * features/i386/amd64-avx-linux.c: Re-generated.
9449 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
9450 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9451 * features/i386/amd64-avx-mpx.c: Re-generated.
9452 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
9453 * features/i386/amd64.c: Re-generated.
9454 * features/i386/amd64-linux.c: Re-generated.
9455 * features/i386/amd64-mpx.c: Re-generated.
9456 * features/i386/amd64-mpx-linux.c: Re-generated.
9457 * features/i386/i386-avx-avx512.c: Re-generated.
9458 * features/i386/i386-avx-avx512-linux.c: Re-generated.
9459 * features/i386/i386-avx.c: Re-generated.
9460 * features/i386/i386-avx-linux.c: Re-generated.
9461 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
9462 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
9463 * features/i386/i386-avx-mpx.c: Re-generated.
9464 * features/i386/i386-avx-mpx-linux.c: Re-generated.
9465 * features/i386/i386.c: Re-generated.
9466 * features/i386/i386-linux.c: Re-generated.
9467 * features/i386/i386-mmx.c: Re-generated.
9468 * features/i386/i386-mmx-linux.c: Re-generated.
9469 * features/i386/i386-mpx.c: Re-generated.
9470 * features/i386/i386-mpx-linux.c: Re-generated.
9471 * features/i386/x32-avx-avx512.c: Re-generated.
9472 * features/i386/x32-avx-avx512-linux.c: Re-generated.
9473 * features/i386/x32-avx.c: Re-generated.
9474 * features/i386/x32-avx-linux.c: Re-generated.
9475 * features/i386/x32.c: Re-generated.
9476 * features/i386/x32-linux.c: Re-generated.
9477 * features/microblaze.c: Re-generated.
9478 * features/microblaze-with-stack-protect.c: Re-generated.
9479 * features/mips64-dsp-linux.c: Re-generated.
9480 * features/mips64-linux.c: Re-generated.
9481 * features/mips-dsp-linux.c: Re-generated.
9482 * features/mips-linux.c: Re-generated.
9483 * features/nds32.c: Re-generated.
9484 * features/nios2.c: Re-generated.
9485 * features/nios2-linux.c: Re-generated.
9486 * features/rs6000/powerpc-32.c: Re-generated.
9487 * features/rs6000/powerpc-32l.c: Re-generated.
9488 * features/rs6000/powerpc-403.c: Re-generated.
9489 * features/rs6000/powerpc-403gc.c : Re-generated.
9490 * features/rs6000/powerpc-405.c: Re-generated.
9491 * features/rs6000/powerpc-505.c: Re-generated.
9492 * features/rs6000/powerpc-601.c: Re-generated.
9493 * features/rs6000/powerpc-602.c: Re-generated.
9494 * features/rs6000/powerpc-603.c: Re-generated.
9495 * features/rs6000/powerpc-604.c: Re-generated.
9496 * features/rs6000/powerpc-64.c: Re-generated.
9497 * features/rs6000/powerpc-64l.c: Re-generated.
9498 * features/rs6000/powerpc-7400.c: Re-generated.
9499 * features/rs6000/powerpc-750.c: Re-generated.
9500 * features/rs6000/powerpc-860.c: Re-generated.
9501 * features/rs6000/powerpc-altivec32.c: Re-generated.
9502 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9503 * features/rs6000/powerpc-altivec64.c: Re-generated.
9504 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9505 * features/rs6000/powerpc-cell32l.c: Re-generated.
9506 * features/rs6000/powerpc-cell64l.c: Re-generated.
9507 * features/rs6000/powerpc-e500.c: Re-generated.
9508 * features/rs6000/powerpc-e500l.c: Re-generated.
9509 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9510 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9511 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9512 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9513 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9514 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9515 * features/rs6000/powerpc-vsx32.c: Re-generated.
9516 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9517 * features/rs6000/powerpc-vsx64.c: Re-generated.
9518 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9519 * features/rs6000/rs6000.c: Re-generated.
9520 * features/s390-linux32.c: Re-generated.
9521 * features/s390-linux32v1.c: Re-generated.
9522 * features/s390-linux32v2.c: Re-generated.
9523 * features/s390-linux64.c: Re-generated.
9524 * features/s390-linux64v1.c: Re-generated.
9525 * features/s390-linux64v2.c: Re-generated.
9526 * features/s390-te-linux64.c: Re-generated.
9527 * features/s390-tevx-linux64.c: Re-generated.
9528 * features/s390-vx-linux64.c: Re-generated.
9529 * features/s390x-linux64.c: Re-generated.
9530 * features/s390x-linux64v1.c: Re-generated.
9531 * features/s390x-linux64v2.c: Re-generated.
9532 * features/s390x-te-linux64.c: Re-generated.
9533 * features/s390x-tevx-linux64.c: Re-generated.
9534 * features/s390x-vx-linux64.c: Re-generated.
9535 * features/sparc/sparc32-solaris.c: Re-generated.
9536 * features/sparc/sparc64-solaris.c: Re-generated.
9537 * features/tic6x-c62x.c: Re-generated.
9538 * features/tic6x-c62x-linux.c: Re-generated.
9539 * features/tic6x-c64x.c: Re-generated.
9540 * features/tic6x-c64x-linux.c: Re-generated.
9541 * features/tic6x-c64xp.c: Re-generated.
9542 * features/tic6x-c64xp-linux.c: Re-generated.
9543
9544 2017-07-26 Yao Qi <yao.qi@linaro.org>
9545
9546 * i386-linux-tdep.c (i386_linux_read_description): New function.
9547 (i386_linux_core_read_description): Call
9548 i386_linux_read_description.
9549 * i386-linux-tdep.h (i386_linux_read_description): Declare.
9550 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
9551 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
9552 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
9553 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
9554 * x86-linux-nat.c (x86_linux_read_description): Call
9555 i386_linux_read_description.
9556
9557 2017-07-26 Yao Qi <yao.qi@linaro.org>
9558
9559 * NEWS: Mention it.
9560 * features/Makefile (%.c: %.xml): Pass the xml file name to
9561 command "maint print c-tdesc".
9562 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9563 name from 'arg'.
9564
9565 2017-07-26 Yao Qi <yao.qi@linaro.org>
9566
9567 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9568 in-class initialization.
9569 (tdesc_create_feature): Call new instead of XCNEW.
9570 (free_target_description): Ue delete.
9571
9572 2017-07-25 John Baldwin <jhb@FreeBSD.org>
9573
9574 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9575
9576 2017-07-25 Yao Qi <yao.qi@linaro.org>
9577
9578 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
9579 constant.
9580 (amd64_x32_init_abi): Likewise.
9581 * amd64-tdep.h (amd64_init_abi): Update declaration.
9582 (amd64_x32_init_abi): Likewise.
9583
9584 2017-07-25 Yao Qi <yao.qi@linaro.org>
9585
9586 PR tdep/21717
9587 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
9588 condition for FPSCR.
9589 (arm_linux_store_inferior_registers): Likewise.
9590
9591 2017-07-22 Tom Tromey <tom@tromey.com>
9592
9593 * break-catch-syscall.c (struct catch_syscall_inferior_data)
9594 <syscalls_counts>: Now a std::vector.
9595 (get_catch_syscall_inferior_data): Use "new".
9596 (catch_syscall_inferior_data_cleanup): Use "delete".
9597 (insert_catch_syscall, remove_catch_syscall)
9598 (clear_syscall_counts): Update.
9599
9600 2017-07-22 Tom Tromey <tom@tromey.com>
9601
9602 * break-catch-syscall.c (syscall_catchpoint)
9603 <syscalls_to_be_caught>: Now a std::vector<int>
9604 (~syscall_catchpoint): Remove.
9605 (insert_catch_syscall, remove_catch_syscall)
9606 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
9607 (print_mention_catch_syscall, print_recreate_catch_syscall):
9608 Update.
9609 (create_syscall_event_catchpoint): Change type of "filter"
9610 parameter.
9611 (catch_syscall_split_args): Return a std::vector.
9612 (catch_syscall_command_1, catching_syscall_number_1): Update.
9613
9614 2017-07-22 Tom Tromey <tom@tromey.com>
9615
9616 * break-catch-throw.c (struct exception_catchpoint)
9617 <exception_rx>: Now a std::string.
9618 (~exception_catchpoint): Remove.
9619 (print_one_detail_exception_catchpoint): Update.
9620 (handle_gnu_v3_exceptions): Change type of except_rx.
9621 (extract_exception_regexp): Return a std::string.
9622 (catch_exception_command_1): Update.
9623
9624 2017-07-22 Tom Tromey <tom@tromey.com>
9625
9626 * break-catch-sig.c (gdb_signal_type): Remove typedef.
9627 (struct signal_catchpoint) <signals_to_be_caught>: Now a
9628 std::vector.
9629 <catch_all>: Now a bool.
9630 (~signal_catchpoint): Remove.
9631 (signal_catchpoint_insert_location)
9632 (signal_catchpoint_remove_location)
9633 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
9634 (signal_catchpoint_print_mention)
9635 (signal_catchpoint_print_recreate)
9636 (signal_catchpoint_explains_signal): Update.
9637 (create_signal_catchpoint): Change type of "filter" and
9638 "catch_all".
9639 (catch_signal_split_args): Return a std::vector. Change type of
9640 "catch_all".
9641 (catch_signal_command): Update.
9642
9643 2017-07-20 Pedro Alves <palves@redhat.com>
9644
9645 * ada-lang.c (ada_language_defn): Make extern.
9646 (_initialize_ada_language): Remove add_language call.
9647 * c-lang.c (c_language_defn, cplus_language_defn)
9648 (asm_language_defn, minimal_language_defn): Make extern.
9649 (_initialize_c_language): Delete.
9650 * completer.c (compare_cstrings): Delete, moved to utils.h.
9651 * d-lang.c (d_language_defn): Make extern.
9652 (_initialize_d_language): Remove add_language calls.
9653 * defs.h (enum language): Add comment.
9654 * f-lang.c (f_language_defn): Make extern.
9655 (_initialize_f_language): Remove add_language call.
9656 * go-lang.c (go_language_defn): Make extern.
9657 (_initialize_go_language): Remove add_language call.
9658 * language.c: Include <algorithm>.
9659 (languages): Redefine as const array.
9660 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
9661 (set_language_command): Handle "local". Use for-range loop.
9662 (set_language): Remove loop.
9663 (language_enum): Rewrite.
9664 (language_def, language_str): Remove loops.
9665 (add_language): Delete.
9666 (add_set_language_command): New, based on add_languages.
9667 (skip_language_trampoline): Adjust.
9668 (local_language_defn): Delete.
9669 (language_gdbarch_post_init): Adjust.
9670 (_initialize_language): Remove add_language calls. Call
9671 add_set_language_command.
9672 * language.h (add_language): Delete.
9673 (auto_language_defn)
9674 (unknown_language_defn, minimal_language_defn, ada_language_defn)
9675 (asm_language_defn, c_language_defn, cplus_language_defn)
9676 (d_language_defn, f_language_defn, go_language_defn)
9677 (m2_language_defn, objc_language_defn, opencl_language_defn)
9678 (pascal_language_defn, rust_language_defn): Declare.
9679 * m2-lang.c (m2_language_defn): Make extern.
9680 (_initialize_m2_language): Remove add_language call.
9681 * objc-lang.c (objc_language_defn): Make extern.
9682 (_initialize_objc_language): Remove add_language call.
9683 * opencl-lang.c (opencl_language_defn): Make extern.
9684 (_initialize_opencl_language): Remove add_language call.
9685 * p-lang.c (pascal_language_defn): Make extern.
9686 (_initialize_pascal_language): Delete.
9687 * rust-lang.c (rust_language_defn): Make extern.
9688 (_initialize_rust_language): Delete.
9689 * utils.h (compare_cstrings): New static inline function.
9690
9691 2017-07-20 Pedro Alves <palves@redhat.com>
9692
9693 * ada-lang.c (ada_to_fixed_type_1): Adjust.
9694 (get_var_value): Constify parameters.
9695 (get_int_var_value): Change prototype.
9696 (to_fixed_range_type): Adjust.
9697 * ada-lang.h (get_int_var_value): Change prototype.
9698
9699 2017-07-20 Pedro Alves <palves@redhat.com>
9700
9701 * dwarf2read.c (dw2_lookup_symbol): Use
9702 SYMBOL_MATCHES_SEARCH_NAME.
9703 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
9704
9705 2017-07-20 Pedro Alves <palves@redhat.com>
9706
9707 * block.c (block_iter_name_step, block_iter_name_first)
9708 (block_iter_name_next): Delete.
9709 (block_lookup_symbol_primary): Adjust to use
9710 dict_iter_match_first/dict_iter_match_next.
9711 * block.h (block_iter_name_first, block_iter_name_next): Delete
9712 declarations.
9713 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
9714 dict_iter_match_first/dict_iter_match_next.
9715
9716 2017-07-20 Pedro Alves <palves@redhat.com>
9717
9718 * cp-support.c (cp_find_first_component_aux): Add missing case for
9719 end of string.
9720
9721 2017-07-18 David Blaikie <dblaikie@gmail.com>
9722
9723 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
9724 of dwo_cu's dwo_file.
9725
9726 2017-07-18 Yao Qi <yao.qi@linaro.org>
9727
9728 * remote.c (store_registers_using_G): Remove one line comment.
9729
9730 2017-07-18 Yao Qi <yao.qi@linaro.org>
9731
9732 * regcache.c (regcache_cpy): Simplify it.
9733 (regcache::cpy_no_passthrough): Remove it.
9734 * regcache.h (cpy_no_passthrough): Remove it.
9735 (regcache_dup, regcache_cpy): Update comments.
9736
9737 2017-07-18 Pedro Alves <palves@redhat.com>
9738
9739 * remote-sim.c (sim_command_completer): Adjust to work with a
9740 completion_tracker instead of a VEC.
9741
9742 2017-07-17 Pedro Alves <palves@redhat.com>
9743
9744 * completer.c (complete_source_filenames): New function.
9745 (complete_address_and_linespec_locations): New function.
9746 (location_completer): Use complete_address_and_linespec_locations.
9747 (completion_tracker::build_completion_result): Honor the tracker's
9748 request to suppress append.
9749 * completer.h (completion_tracker::suppress_append_ws)
9750 (completion_tracker::set_suppress_append_ws): New methods.
9751 (completion_tracker::m_suppress_append_ws): New field.
9752 (complete_source_filenames): New declaration.
9753 * linespec.c (linespec_complete_what): New.
9754 (struct ls_parser) <complete_what, completion_word,
9755 completion_quote_char, completion_quote_end, completion_tracker>:
9756 New fields.
9757 (string_find_incomplete_keyword_at_end): New.
9758 (linespec_lexer_lex_string): Record quote char. If in completion
9759 mode, don't throw.
9760 (linespec_lexer_consume_token): Advance the completion word point.
9761 (linespec_lexer_peek_token): Save/restore completion info.
9762 (save_stream_and_consume_token): New.
9763 (set_completion_after_number): New.
9764 (linespec_parse_basic): Set what to complete next depending on
9765 token. Handle function and label completions specially.
9766 (parse_linespec): Disable objc shortcut in completion mode. Set
9767 what to complete next depending on token type. Skip keyword if in
9768 completion mode.
9769 (complete_linespec_component, linespec_complete): New.
9770 * linespec.h (linespec_complete): Declare.
9771
9772 2017-07-17 Pedro Alves <palves@redhat.com>
9773
9774 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
9775 Handle 'operator<' / 'operator<<'.
9776
9777 2017-07-17 Pedro Alves <palves@redhat.com>
9778
9779 * completer.c (collect_explicit_location_matches): Handle
9780 MATCH_LABEL.
9781 (convert_explicit_location_to_linespec): New, factored out from
9782 ...
9783 (convert_explicit_location_to_sals): ... this.
9784 (complete_label): New.
9785 (linespec_complete_label, find_label_symbols_in_block): New.
9786 (find_label_symbols): Add completion_mode parameter and adjust to
9787 call find_label_symbols_in_block.
9788 * linespec.h (linespec_complete_label): Declare.
9789
9790 2017-07-17 Pedro Alves <palves@redhat.com>
9791
9792 * ada-lang.c (ada_collect_symbol_completion_matches): Add
9793 complete_symbol_mode parameter.
9794 * cli/cli-cmds.c (complete_command): Get the completion result out
9795 of the handle_brkchars tracker if used a custom word point.
9796 * completer.c: Include "linespec.h".
9797 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
9798 (advance_to_expression_complete_word_point): New.
9799 (completion_tracker::completes_to_completion_word): New.
9800 (complete_files_symbols): Pass down
9801 complete_symbol_mode::EXPRESSION.
9802 (explicit_options, probe_options): New.
9803 (collect_explicit_location_matches): Complete on the
9804 explictit_loc->foo instead of word. Use
9805 linespec_complete_function. Handle MATCH_LINE. Handle offering
9806 keyword and options completions.
9807 (backup_text_ptr): Delete.
9808 (skip_keyword): New.
9809 (complete_explicit_location): Remove 'word' parameter. Add
9810 language, quoted_arg_start and quoted_arg_end parameters.
9811 Rewrite, parsing left to right.
9812 (location_completer): Rewrite.
9813 (location_completer_handle_brkchars): New function.
9814 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
9815 (enum complete_line_internal_reason): Adjust comments.
9816 (completion_tracker::discard_completions): New.
9817 (completer_handle_brkchars_func_for_completer): Handle
9818 location_completer.
9819 (gdb_custom_word_point_brkchars)
9820 (gdb_org_rl_basic_quote_characters): New.
9821 (gdb_completion_word_break_characters_throw)
9822 (completion_find_completion_word): Handle trackers that use a
9823 custom word point.
9824 (completion_tracker::advance_custom_word_point_by): New.
9825 (completion_tracker::build_completion_result): Don't rely on
9826 readline appending the quote char.
9827 (gdb_rl_attempted_completion_function_throw): Handle trackers that
9828 use a custom word point.
9829 (gdb_rl_attempted_completion_function): Restore
9830 rl_basic_quote_characters.
9831 * completer.h (class completion_tracker): Extend intro comment.
9832 (completion_tracker::set_quote_char)
9833 (completion_tracker::quote_char)
9834 (completion_tracker::set_use_custom_word_point)
9835 (completion_tracker::use_custom_word_point)
9836 (completion_tracker::custom_word_point)
9837 (completion_tracker::set_custom_word_point)
9838 (completion_tracker::advance_custom_word_point_by)
9839 (completion_tracker::completes_to_completion_word)
9840 (completion_tracker::discard_completions): New methods.
9841 (completion_tracker::m_quote_char)
9842 (completion_tracker::m_use_custom_word_point)
9843 (completion_tracker::m_custom_word_point): New fields.
9844 (advance_to_expression_complete_word_point): Declare.
9845 * f-lang.c (f_collect_symbol_completion_matches): Add
9846 complete_symbol_mode parameter.
9847 * language.h (struct language_defn)
9848 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
9849 parameter.
9850 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
9851 (linespec_complete_function): New function.
9852 (linespec_lexer_lex_keyword): Adjust.
9853 * linespec.h (linespec_keywords, linespec_complete_function): New
9854 declarations.
9855 * location.c (find_end_quote): New function.
9856 (explicit_location_lex_one): Add explicit_completion_info
9857 parameter. Save quoting info. Don't throw if being called for
9858 completion. Don't handle Ada operators here.
9859 (is_cp_operator, skip_op_false_positives, first_of)
9860 (explicit_location_lex_one_function): New function.
9861 (string_to_explicit_location): Replace 'dont_throw' parameter with
9862 an explicit_completion_info pointer parameter. Handle it. Don't
9863 use explicit_location_lex_one to lex function names. Use
9864 explicit_location_lex_one_function instead.
9865 * location.h (struct explicit_completion_info): New.
9866 (string_to_explicit_location): Replace 'dont_throw' parameter with
9867 an explicit_completion_info pointer parameter.
9868 * symtab.c (default_collect_symbol_completion_matches_break_on):
9869 Add complete_symbol_mode parameter. Handle LINESPEC mode.
9870 (default_collect_symbol_completion_matches)
9871 (collect_symbol_completion_matches): Add complete_symbol_mode
9872 parameter.
9873 (collect_symbol_completion_matches_type): Pass down
9874 complete_symbol_mode::EXPRESSION.
9875 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9876 parameter. Handle LINESPEC mode.
9877 * symtab.h (complete_symbol_mode): New.
9878 (default_collect_symbol_completion_matches_break_on)
9879 (default_collect_symbol_completion_matches)
9880 (collect_symbol_completion_matches)
9881 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9882 parameter.
9883
9884 2017-07-17 Pedro Alves <palves@redhat.com>
9885
9886 * utils.c (enum class strncmp_iw_mode): New.
9887 (strcmp_iw): Rename to ...
9888 (strncmp_iw_with_mode): ... this. Add string2_len and mode
9889 parameters. Handle them.
9890 (strncmp_iw): New.
9891 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
9892 * utils.h (strncmp_iw): Declare.
9893 (strcmp_iw): Move describing comments here.
9894
9895 2017-07-17 Pedro Alves <palves@redhat.com>
9896
9897 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
9898 CP_OPERATOR_STR.
9899 * c-typeprint.c (is_type_conversion_operator): Use
9900 CP_OPERATOR_STR.
9901 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
9902 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
9903 CP_OPERATOR_LEN.
9904 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
9905 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
9906 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
9907 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
9908 CP_OPERATOR_STR.
9909 * location.c: Include "cp-support.h".
9910 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
9911 CP_OPERATOR_STR.
9912 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
9913 CP_OPERATOR_LEN.
9914
9915 2017-07-17 Pedro Alves <palves@redhat.com>
9916
9917 * cli/cli-cmds.c (complete_command): Use a completion tracker
9918 along with completion_find_completion_word for handle_brkchars
9919 phase.
9920 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
9921 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
9922 (struct gdb_rl_completion_word_info): New.
9923 (gdb_rl_find_completion_word): New.
9924 (completion_find_completion_word): New.
9925 * completer.h (completion_find_completion_word): Declare.
9926
9927 2017-07-17 Pedro Alves <palves@redhat.com>
9928
9929 * ada-lang.c (symbol_completion_match): Adjust comments.
9930 (symbol_completion_add): Replace vector parameter with
9931 completion_tracker parameter. Use it.
9932 (ada_make_symbol_completion_list): Rename to...
9933 (ada_collect_symbol_completion_matches): ... this. Add
9934 completion_tracker parameter and use it.
9935 (ada_language_defn): Adjust.
9936 * break-catch-syscall.c (catch_syscall_completer): Adjust
9937 prototype and work with completion_tracker instead of VEC.
9938 * breakpoint.c (condition_completer): Adjust prototype and work
9939 with completion_tracker instead of VEC.
9940 * c-lang.c (c_language_defn, cplus_language_defn)
9941 (asm_language_defn, minimal_language_defn): Adjust to renames.
9942 * cli/cli-cmds.c (complete_command): Rework using
9943 completion_tracker. Catch exceptions when completing.
9944 * cli/cli-decode.c (integer_unlimited_completer)
9945 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
9946 with completion_tracker instead of VEC.
9947 * command.h (struct completion_tracker): Forward declare.
9948 (completer_ftype, completer_handle_brkchars_ftype): Change
9949 types.
9950 (complete_on_cmdlist, complete_on_enum): Adjust.
9951 * completer.c: Include <algorithm>.
9952 (struct gdb_completer_state): New.
9953 (current_completion): New global.
9954 (readline_line_completion_function): Delete.
9955 (noop_completer, filename_completer)
9956 (filename_completer_handle_brkchars, complete_files_symbols)
9957 (linespec_location_completer): Adjust to work with a
9958 completion_tracker instead of a VEC.
9959 (string_or_empty): New.
9960 (collect_explicit_location_matches): Adjust to work with a
9961 completion_tracker instead of a VEC.
9962 (explicit_location_completer): Rename to ...
9963 (complete_explicit_location): ... this and adjust to work with a
9964 completion_tracker instead of a VEC.
9965 (location_completer): Adjust to work with a completion_tracker
9966 instead of a VEC.
9967 (add_struct_fields): Adjust to work with a completion_list instead
9968 of VEC.
9969 (expression_completer): Rename to ...
9970 (complete_expression): ... this and adjust to work with a
9971 completion_tracker instead of a VEC. Use complete_files_symbols.
9972 (expression_completer): Reimplement on top of complete_expression.
9973 (symbol_completer): Adjust to work with a completion_tracker
9974 instead of a VEC.
9975 (enum complete_line_internal_reason): Add describing comments.
9976 (complete_line_internal_normal_command): Adjust to work with a
9977 completion_tracker instead of a VEC.
9978 (complete_line_internal): Rename to ...
9979 (complete_line_internal_1): ... this and adjust to work with a
9980 completion_tracker instead of a VEC. Assert TEXT is NULL in the
9981 handle_brkchars phase.
9982 (new_completion_tracker): Delete.
9983 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
9984 complete_line_internal_1.
9985 (free_completion_tracker): Delete.
9986 (INITIAL_COMPLETION_HTAB_SIZE): New.
9987 (completion_tracker::completion_tracker)
9988 (completion_tracker::~completion_tracker): New.
9989 (maybe_add_completion): Delete.
9990 (completion_tracker::maybe_add_completion)
9991 (completion_tracker::add_completion)
9992 (completion_tracker::add_completions): New.
9993 (throw_max_completions_reached_error): Delete.
9994 (complete_line): Adjust to work with a completion_tracker instead
9995 of a VEC. Don't create a completion_tracker_t or check for max
9996 completions here.
9997 (command_completer, command_completer_handle_brkchars)
9998 (signal_completer, reg_or_group_completer_1)
9999 (reg_or_group_completer, default_completer_handle_brkchars):
10000 Adjust to work with a completion_tracker.
10001 (gdb_completion_word_break_characters_throw): New.
10002 (gdb_completion_word_break_characters): Reimplement.
10003 (line_completion_function): Delete.
10004 (completion_tracker::recompute_lowest_common_denominator)
10005 (expand_preserving_ws)
10006 (completion_tracker::build_completion_result)
10007 (completion_result::completion_result)
10008 (completion_result::completion_result)
10009 (completion_result::~completion_result)
10010 (completion_result::completion_result)
10011 (completion_result::release_match_list, compare_cstrings)
10012 (completion_result::sort_match_list)
10013 (completion_result::reset_match_list)
10014 (gdb_rl_attempted_completion_function_throw)
10015 (gdb_rl_attempted_completion_function): New.
10016 * completer.h (completion_list, struct completion_result)
10017 (class completion_tracker): New.
10018 (complete_line): Add completion_tracker parameter.
10019 (readline_line_completion_function): Delete.
10020 (gdb_rl_attempted_completion_function): New.
10021 (noop_completer, filename_completer, expression_completer)
10022 (location_completer, symbol_completer, command_completer)
10023 (signal_completer, reg_or_group_completer): Update prototypes.
10024 (completion_tracker_t, new_completion_tracker)
10025 (make_cleanup_free_completion_tracker): Delete.
10026 (enum maybe_add_completion_enum): Delete.
10027 (maybe_add_completion): Delete.
10028 (throw_max_completions_reached_error): Delete.
10029 * corefile.c (complete_set_gnutarget): Adjust to work with a
10030 completion_tracker instead of a VEC.
10031 * cp-abi.c (cp_abi_completer): Adjust to work with a
10032 completion_tracker instead of a VEC.
10033 * d-lang.c (d_language_defn): Adjust.
10034 * disasm.c (disassembler_options_completer): Adjust to work with a
10035 completion_tracker instead of a VEC.
10036 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10037 (f_collect_symbol_completion_matches): ... this. Adjust to work
10038 with a completion_tracker instead of a VEC.
10039 (f_language_defn): Adjust.
10040 * go-lang.c (go_language_defn): Adjust.
10041 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10042 Adjust to work with a completion_tracker instead of a VEC.
10043 * infrun.c (handle_completer): Likewise.
10044 * interps.c (interpreter_completer): Likewise.
10045 * interps.h (interpreter_completer): Likewise.
10046 * language.c (unknown_language_defn, auto_language_defn)
10047 (local_language_defn): Adjust.
10048 * language.h (language_defn::la_make_symbol_completion_list):
10049 Rename to ...
10050 (language_defn::la_collect_symbol_completion_matches): ... this
10051 and adjust to work with a completion_tracker instead of a VEC.
10052 * m2-lang.c (m2_language_defn): Adjust.
10053 * objc-lang.c (objc_language_defn): Adjust.
10054 * opencl-lang.c (opencl_language_defn): Adjust.
10055 * p-lang.c (pascal_language_defn): Adjust.
10056 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10057 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10058 with a completion_tracker.
10059 * rust-lang.c (rust_language_defn): Adjust.
10060 * symtab.c (free_completion_list, do_free_completion_list)
10061 (return_val, completion_tracker): Delete.
10062 (completion_list_add_name, completion_list_add_symbol)
10063 (completion_list_add_msymbol, completion_list_objc_symbol)
10064 (completion_list_add_fields, add_symtab_completions): Add
10065 completion_tracker parameter and use it.
10066 (default_make_symbol_completion_list_break_on_1): Rename to...
10067 (default_collect_symbol_completion_matches_break_on): ... this.
10068 Add completion_tracker parameter and use it instead of allocating
10069 a completion tracker here.
10070 (default_make_symbol_completion_list_break_on): Delete old
10071 implementation.
10072 (default_make_symbol_completion_list): Delete.
10073 (default_collect_symbol_completion_matches): New.
10074 (make_symbol_completion_list): Delete.
10075 (collect_symbol_completion_matches): New.
10076 (make_symbol_completion_type): Rename to ...
10077 (collect_symbol_completion_matches_type): ... this. Add
10078 completion_tracker parameter and use it instead of VEC.
10079 (make_file_symbol_completion_list_1): Rename to...
10080 (collect_file_symbol_completion_matches): ... this. Add
10081 completion_tracker parameter and use it instead of VEC.
10082 (make_file_symbol_completion_list): Delete.
10083 (add_filename_to_list): Use completion_list instead of a VEC.
10084 (add_partial_filename_data::list): Now a completion_list.
10085 (make_source_files_completion_list): Work with a completion_list
10086 instead of a VEC.
10087 * symtab.h: Include "completer.h".
10088 (default_make_symbol_completion_list_break_on)
10089 (default_make_symbol_completion_list, make_symbol_completion_list)
10090 (make_symbol_completion_type, make_file_symbol_completion_list)
10091 (make_source_files_completion_list): Delete.
10092 (default_collect_symbol_completion_matches_break_on)
10093 (default_collect_symbol_completion_matches)
10094 (collect_symbol_completion_matches)
10095 (collect_symbol_completion_matches_type)
10096 (collect_file_symbol_completion_matches)
10097 (make_source_files_completion_list): New.
10098 * top.c (init_main): Don't install a rl_completion_entry_function
10099 hook. Install a rl_attempted_completion_function hook instead.
10100 * tui/tui-layout.c (layout_completer): Adjust to work with a
10101 completion_tracker.
10102 * tui/tui-regs.c (tui_reggroup_completer):
10103 * tui/tui-win.c (window_name_completer, focus_completer)
10104 (winheight_completer): Adjust to work with a completion_tracker.
10105 * value.c: Include "completer.h".
10106 (complete_internalvar): Adjust to work with a completion_tracker.
10107 * value.h (complete_internalvar): Likewise.
10108
10109 2017-07-17 Pedro Alves <palves@redhat.com>
10110
10111 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10112 renames.
10113 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10114 comments to completer_ftype's declaration.
10115 <completer_handle_brkchars>: Change type to
10116 completer_handle_brkchars_ftype.
10117 * command.h (completer_ftype): Add describing comment and give
10118 names to parameters.
10119 (completer_ftype_void): Rename to ...
10120 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10121 (set_cmd_completer_handle_brkchars): Adjust.
10122 * completer.c (filename_completer_handle_brkchars): New function.
10123 (complete_line_internal_normal_command): New function, factored
10124 out from ...
10125 (complete_line_internal): ... here.
10126 (command_completer_handle_brkchars)
10127 (default_completer_handle_brkchars)
10128 (completer_handle_brkchars_func_for_completer): New functions.
10129 * completer.h (set_gdb_completion_word_break_characters): Delete
10130 declaration.
10131 (completer_handle_brkchars_func_for_completer): New declaration.
10132 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10133 completer_handle_brkchars_func_for_completer.
10134
10135 2017-07-17 Pedro Alves <palves@redhat.com>
10136
10137 * completer.c (symbol_completer): New function, based on
10138 make_symbol_completion_list_fn.
10139 * completer.h (symbol_completer): New declaration.
10140 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10141 * python/py-cmd.c (completers): Adjust.
10142 * symtab.c (make_symbol_completion_list_fn): Delete.
10143 * symtab.h (make_symbol_completion_list_fn): Delete.
10144 * cli/cli-decode.c (add_cmd): Adjust.
10145
10146 2017-07-17 Pedro Alves <palves@redhat.com>
10147
10148 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10149 * dwarf2read.c: Include "filename-seen-cache.h".
10150 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10151 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10152 * filename-seen-cache.c: New file.
10153 * filename-seen-cache.h: New file.
10154 * symtab.c: Include "filename-seen-cache.h".
10155 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10156 (create_filename_seen_cache, clear_filename_seen_cache)
10157 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10158 to filename-seen-cache.h/filename-seen-cache.c.
10159 (output_source_filename, sources_info)
10160 (maybe_add_partial_symtab_filename)
10161 (make_source_files_completion_list): Adjust to use
10162 filename_seen_cache.
10163
10164 2017-07-17 Pedro Alves <palves@redhat.com>
10165
10166 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10167 fields.
10168 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10169 dwarf2_debug_sections*)): New.
10170 (dwarf2_per_objfile::dwarf2_per_objfile(const
10171 dwarf2_per_objfile&)): Declare as deleted.
10172 (dwarf2_per_objfile::operator=): Declare as deleted.
10173 (dwarf2_per_objfile::dwarf2_per_objfile)
10174 (dwarf2_per_objfile::~dwarf2_per_objfile)
10175 (dwarf2_per_objfile::free_cached_comp_units): New.
10176 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10177 ctor. Call dwarf2_per_objfile's ctor manually.
10178 (dwarf2_locate_sections): Deleted/refactored as ...
10179 (dwarf2_per_objfile::locate_sections): ... this new method.
10180 (free_cached_comp_units): Defer to
10181 dwarf2_per_objfile::free_cached_comp_units.
10182 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10183
10184 2017-07-14 Tom Tromey <tom@tromey.com>
10185
10186 PR rust/21764:
10187 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10188 parameter.
10189 <UNOP_SIZEOF>: Split into separate case.
10190 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10191
10192 2017-07-14 Tom Tromey <tom@tromey.com>
10193
10194 PR rust/21763:
10195 * symtab.c (symbol_matches_domain): Add language_rust to special
10196 case.
10197 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10198 treat LOC_TYPEDEF symbols as variables.
10199
10200 2017-07-14 Pedro Alves <palves@redhat.com>
10201
10202 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10203 symtabs matching all symtabs with SRCFILE as file name instead of
10204 only considering the first hit, with lookup_symtab.
10205
10206 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10207
10208 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10209 operator_name parameters.
10210 (gen_expr): Update function call.
10211
10212 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10213
10214 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10215 parameter.
10216 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10217 Likewise.
10218 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10219 parameter, use agent_expr::gdbarch instead, update function
10220 calls.
10221 (locexpr_tracepoint_var_ref): Likewise.
10222 (loclist_tracepoint_var_ref): Likewise.
10223 * ax-gdb.c (gen_trace_static_fields): Likewise.
10224 (gen_traced_pop): Likewise.
10225 (gen_frame_args_address): Likewise.
10226 (gen_frame_locals_address): Likewise.
10227 (gen_var_ref): Likewise.
10228 (gen_struct_ref_recursive): Likewise.
10229 (gen_static_field): Likewise.
10230 (gen_maybe_namespace_elt): Likewise.
10231 (gen_expr): Likewise.
10232 (gen_trace_for_var): Likewise.
10233 (gen_trace_for_expr): Likewise.
10234 (gen_trace_for_return_address): Likewise.
10235
10236 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10237
10238 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10239 parameter.
10240 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10241
10242 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10243
10244 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10245 from ax, update calls.
10246 (gen_usual_arithmetic): Likewise.
10247 (gen_integral_promotions): Likewise.
10248 (gen_bitfield_ref): Likewise.
10249 (gen_primitive_field): Likewise.
10250 (gen_struct_ref_recursive): Likewise.
10251 (gen_struct_ref): Likewise.
10252 (gen_maybe_namespace_elt): Likewise.
10253 (gen_struct_elt_for_reference): Likewise.
10254 (gen_namespace_elt): Likewise.
10255 (gen_aggregate_elt_ref): Likewise.
10256 (gen_expr): Get gdbarch from ax, update calls.
10257 (gen_expr_binop_rest): Likewise.
10258
10259 2017-07-13 Pedro Alves <palves@redhat.com>
10260
10261 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10262 as default tdesc.
10263 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10264 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10265 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10266 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10267 tdep.
10268 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10269 Get final tdesc from the tdep.
10270 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10271 default tdesc.
10272 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10273 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10274 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10275 Use it as default tdesc.
10276 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10277 down to amd_init_abi. No longer handle fallback tdesc here.
10278 * amd64-tdep.h (tdesc_x32): Declare.
10279 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10280 parameter.
10281 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10282 as default tdesc.
10283
10284 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10285
10286 * s390-linux-tdep.c (s390_process_record): Add support for
10287 instructions new in arch12.
10288
10289 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10290
10291 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10292 PT_GETFSBASE and PT_GETGSBASE.
10293 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10294 PT_SETGSBASE.
10295
10296 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10297
10298 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10299 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10300 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10301 those rules.
10302 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10303 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10304 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10305 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10306 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10307 * features/i386/amd64.xml: Add 64bit-segments.xml.
10308 * features/i386/amd64-avx-avx512.c: Regenerated.
10309 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10310 * features/i386/amd64-avx-mpx.c: Regenerated.
10311 * features/i386/amd64-avx.c: Regenerated.
10312 * features/i386/amd64-mpx.c: Regenerated.
10313 * features/i386/amd64.c: Regenerated.
10314 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10315 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10316 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10317 * regformats/i386/amd64-avx.dat: Regenerated.
10318 * regformats/i386/amd64-mpx.dat: Regenerated.
10319 * regformats/i386/amd64.dat: Regenerated.
10320
10321 2017-07-10 Yao Qi <yao.qi@linaro.org>
10322
10323 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10324 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10325
10326 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10327
10328 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10329 unsetenv.
10330 * gnulib/aclocal.m4: Regenerate.
10331 * gnulib/config.in: Regenerate.
10332 * gnulib/configure: Regenerate.
10333 * gnulib/import/Makefile.am: Regenerate.
10334 * gnulib/import/Makefile.in: Regenerate.
10335 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10336 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10337 * gnulib/import/m4/environ.m4: New file.
10338 * gnulib/import/m4/setenv.m4: New file.
10339 * gnulib/import/setenv.c: New file.
10340 * gnulib/import/unsetenv.c: New file.
10341
10342 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10343
10344 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10345 address when op is DW_OP_addr.
10346
10347 2017-07-09 Tom Tromey <tom@tromey.com>
10348
10349 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10350 check and apply to outer type.
10351
10352 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10353
10354 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10355 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10356 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10357 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10358
10359 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10360
10361 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10362
10363 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10364
10365 * corelow.c (get_core_siginfo): Remove.
10366 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10367 instead of get_core_siginfo.
10368 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10369 * gdbarch.h: Re-generate.
10370 * gdbarch.c: Re-generate.
10371 * linux-tdep.c (linux_core_xfer_siginfo): New.
10372 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10373
10374 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10375
10376 * corelow.c (thread_section_name): Move to ...
10377 * gdbcore.h (thread_section_name): ... here.
10378
10379 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10380
10381 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
10382 (struct siginfo32): New.
10383 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
10384 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
10385 via ptrace(PT_LWPINFO).
10386
10387 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10388
10389 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
10390 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
10391 (fbsd_get_siginfo_type): New.
10392 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
10393 (_initialize_fbsd_tdep): New.
10394
10395 2017-07-06 David Blaikie <dblaikie@gmail.com>
10396
10397 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
10398 a singular dwo_unit*) to support multiple CUs in the same way that
10399 multiple TUs are supported.
10400 (create_cus_hash_table): Replace create_dwo_cu with a function for
10401 parsing multiple CUs from a DWO file.
10402 (open_and_init_dwo_file): Use create_cus_hash_table rather than
10403 create_dwo_cu.
10404 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
10405 htab_find, rather than comparing the signature to a singleton CU in
10406 the dwo_file.
10407
10408 2017-07-06 Pedro Alves <palves@redhat.com>
10409
10410 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
10411
10412 2017-07-04 Pedro Alves <palves@redhat.com>
10413
10414 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
10415 * gdbtypes.h (TYPE_STATIC): Delete.
10416 (struct fn_field) <is_public, is_abstract, is_static, is_final,
10417 is_synchronized, is_native>: Delete.
10418 <dummy>: Bump.
10419 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
10420 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
10421 (TYPE_FN_FIELD_ABSTRACT): Delete.
10422
10423 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
10424
10425 * buffer.h (buffer_finish): Fix spelling mistakes.
10426
10427 2017-07-01 Eli Zaretskii <eliz@gnu.org>
10428
10429 * .dir-locals.el: Automatically switch to C-style comments in
10430 versions of Emacs that support the feature.
10431
10432 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10433 Pedro Alves <palves@redhat.com>
10434
10435 PR cli/21688
10436 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
10437 (process_next_line): New variable 'inline_cmd'.
10438 Adjust 'if' clauses for "python", "compile" and "guile" to use
10439 'command_name_equals' and check for '!inline_cmd'.
10440
10441 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10442
10443 PR cli/21688
10444 * cli/cli-script.c (command_name_equals_not_inline): New function.
10445 (process_next_line): Adjust 'if' clauses for "python", "compile"
10446 and "guile" to use command_name_equals_not_inline.
10447
10448 2017-06-29 Pedro Alves <palves@redhat.com>
10449
10450 * completer.c (expression_completer): Call
10451 linespec_location_completer instead of location_completer.
10452
10453 2017-06-29 Pedro Alves <palves@redhat.com>
10454
10455 * completer.c (expression_completer): Remove code that recomputes
10456 'text' from 'word'.
10457
10458 2017-06-29 Yao Qi <yao.qi@linaro.org>
10459
10460 * regformats/regdat.sh: Generate code with
10461 "ifndef IN_PROCESS_AGENT".
10462
10463 2017-06-28 Pedro Alves <palves@redhat.com>
10464
10465 * command.h: Include "common/scoped_restore.h".
10466
10467 2017-06-28 Yao Qi <yao.qi@linaro.org>
10468
10469 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
10470 instead of obstack_grow.
10471
10472 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
10473
10474 PR gdb/21337
10475 * symfile.c (reread_symbols): Call objfiles_changed just before
10476 read_symbols.
10477
10478 2017-06-27 Pedro Alves <palves@redhat.com>
10479
10480 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
10481 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
10482 (completion_list_add_symbol, completion_list_add_msymbol):
10483 ... these new functions.
10484 (add_symtab_completions)
10485 (default_make_symbol_completion_list_break_on_1): Adjust.
10486
10487 2017-06-27 Pedro Alves <palves@redhat.com>
10488
10489 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10490 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10491 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10492 dtor.
10493 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10494 'storage_obstack' field an auto_obstack. In-class initialize all
10495 non-bitfield fields. Make minsyms_read bool.
10496 * symfile.c (read_symbols): Adjust.
10497
10498 2017-06-27 Alan Hayward <alan.hayward@arm.com>
10499
10500 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10501 (gdbsim_store_register): Likewise.
10502
10503 2017-06-27 Pedro Alves <palves@redhat.com>
10504
10505 * c-exp.y (name_obstack): Now an auto_obstack.
10506 (yylex): Use auto_obstack::clear.
10507 (c_parse): Use auto_obstack::clear instead of reinitializing and
10508 freeing the obstack.
10509 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10510 * d-exp.y (name_obstack): Now an auto_obstack.
10511 (yylex): Use auto_obstack::clear.
10512 (d_parse): Use auto_obstack::clear instead of reinitializing and
10513 freeing the obstack.
10514 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10515 auto_obstack.
10516 * dwarf2read.c (create_addrmap_from_index)
10517 (dwarf2_build_psymtabs_hard)
10518 (update_enumeration_type_from_children): Likewise.
10519 * gdb_obstack.h (auto_obstack): New type.
10520 * go-exp.y (name_obstack): Now an auto_obstack.
10521 (build_packaged_name): Use auto_obstack::clear.
10522 (go_parse): Use auto_obstack::clear instead of reinitializing and
10523 freeing the obstack.
10524 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10525 auto_obstack.
10526 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
10527 * rust-exp.y (work_obstack): Now an auto_obstack.
10528 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
10529 reinitializing and freeing the obstack.
10530 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
10531 (host_char_to_target): Use auto_obstack.
10532 * utils.h (make_cleanup_obstack_free): Delete declaration.
10533 * valprint.c (generic_emit_char, generic_printstr): Use
10534 auto_obstack.
10535
10536 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
10537
10538 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
10539 thread.
10540 (darwin_init_thread_list): Don't update dummy thread.
10541 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
10542
10543 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10544
10545 * record-full.c (netorder16): Remove.
10546
10547 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10548
10549 * common/diagnostics.h: Define macros for GCC.
10550 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
10551 * common/vec.h: Include diagnostics.h.
10552 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
10553 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
10554 warning.
10555
10556 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10557
10558 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
10559 New macro.
10560 * ada-lex.l: Ignore deprecated register warnings.
10561
10562 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10563
10564 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10565 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10566
10567 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10568
10569 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10570 its own line.
10571
10572 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10573
10574 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10575
10576 2017-06-23 Alan Hayward <alan.hayward@arm.com>
10577
10578 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
10579 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
10580 (xtensa_register_read_masked): Likewise.
10581
10582 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
10583
10584 * common/environ.c (gdb_environ::unset): Update comment.
10585
10586 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10587
10588 * python/py-unwind.c (pyuw_sniffer): Allocate space for
10589 registers.
10590
10591 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10592
10593 * record-full.c (record_full_exec_insn): Use byte_vector.
10594
10595 2017-06-22 Yao Qi <yao.qi@linaro.org>
10596
10597 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
10598 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10599
10600 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10601
10602 * remote.c (cached_reg): Move from here...
10603 * regcache.h (cached_reg): ...to here.
10604 * python/py-unwind.c (struct reg_info): Remove.
10605 (cached_frame_info): Use cached_reg_t.
10606 (pyuw_prev_register): Likewise.
10607 (pyuw_sniffer): Use cached_reg_t and allocate registers.
10608 (pyuw_dealloc_cache): Free all registers.
10609
10610 2017-06-22 Pedro Alves <palves@redhat.com>
10611 Simon Marchi <simon.marchi@ericsson.com>
10612
10613 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
10614 warning.
10615 * common/diagnostics.h: New file.
10616
10617 2017-06-22 Pedro Alves <palves@redhat.com>
10618
10619 * common/agent.h: Add include guards.
10620
10621 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
10622
10623 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
10624 talk about addressable units instead of bytes.
10625
10626 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10627
10628 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
10629 of '::const_iterator'.
10630
10631 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10632
10633 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10634 'unittests/environ-selftests.c'.
10635 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
10636 * charset.c (find_charset_names): Declare object 'iconv_env'.
10637 Update code to use 'iconv_env' object. Remove call to
10638 'free_environ'.
10639 * common/environ.c: Include <utility>.
10640 (make_environ): Delete function.
10641 (free_environ): Delete function.
10642 (gdb_environ::clear): New function.
10643 (gdb_environ::operator=): New function.
10644 (gdb_environ::get): Likewise.
10645 (environ_vector): Delete function.
10646 (set_in_environ): Delete function.
10647 (gdb_environ::set): New function.
10648 (unset_in_environ): Delete function.
10649 (gdb_environ::unset): New function.
10650 (gdb_environ::envp): Likewise.
10651 * common/environ.h: Include <vector>.
10652 (struct gdb_environ): Delete; transform into...
10653 (class gdb_environ): ... this class.
10654 (free_environ): Delete prototype.
10655 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
10656 environ_vector): Likewise.
10657 * infcmd.c (run_command_1): Update code to call
10658 'envp' from 'gdb_environ' class.
10659 (environment_info): Update code to call methods from 'gdb_environ'
10660 class.
10661 (unset_environment_command): Likewise.
10662 (path_info): Likewise.
10663 (path_command): Likewise.
10664 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
10665 (inferior::inferior): Initialize 'environment' using the host's
10666 information.
10667 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
10668 Include "environ.h".
10669 (class inferior) <environment>: Change type from 'struct
10670 gdb_environ' to 'gdb_environ'.
10671 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
10672 methods from 'gdb_environ' class.
10673 * solib.c (solib_find_1): Likewise
10674 * unittests/environ-selftests.c: New file.
10675
10676 2017-06-20 Yao Qi <yao.qi@linaro.org>
10677
10678 * features/i386/i386-linux.xml: Exchange the order of including
10679 32bit-linux.xml and 32bit-sse.xml.
10680 * features/i386/i386-linux.c: Regenerated.
10681
10682 2017-06-20 Yao Qi <yao.qi@linaro.org>
10683
10684 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
10685 Delete copy ctor and assignment operator.
10686 (tdesc_type): Likewise.
10687 (tdesc_feature): Likewise.
10688 (tdesc_free_reg): Remove.
10689 (tdesc_create_reg): Use new.
10690 (tdesc_free_type): Remove.
10691 (tdesc_create_vector): Use new.
10692 (tdesc_create_union): Likewise.
10693 (tdesc_create_flags): Likewise.
10694 (tdesc_create_enum): Likewise.
10695 (tdesc_free_feature): Delete.
10696 (free_target_description): Use delete.
10697
10698 2017-06-19 John Baldwin <jhb@FreeBSD.org>
10699
10700 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
10701 registers.
10702
10703 2017-06-19 Pedro Alves <palves@redhat.com>
10704
10705 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
10706 after gdb::unlinker.
10707
10708 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
10709
10710 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
10711 gdb_environ to access an environment variable.
10712
10713 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10714
10715 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
10716 gdb_byte*.
10717
10718 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10719
10720 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
10721
10722 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10723
10724 * configure: Re-generate.
10725 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
10726
10727 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10728
10729 * configure: Re-generate.
10730 * warning.m4: Pass -Werror to compiler when checking for
10731 supported warning flags.
10732
10733 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10734
10735 * Makefile.in (COMPILE.pre): Add "-x c++".
10736
10737 2017-06-16 Alan Hayward <alan.hayward@arm.com>
10738 Pedro Alves <palves@redhat.com>
10739 Yao Qi <yao.qi@linaro.org>
10740
10741 * defs.h (RequireLongest): New.
10742 (extract_integer): Declare function template.
10743 (extract_signed_integer): Remove the declaration, but define it
10744 static inline.
10745 (extract_unsigned_integer): Likewise.
10746 (store_integer): Declare function template.
10747 (store_signed_integer): Remove the declaration, but define it
10748 static inline.
10749 (store_unsigned_integer): Likewise.
10750 * findvar.c (extract_integer): New function template.
10751 (extract_signed_integer): Remove.
10752 (extract_unsigned_integer): Remove.
10753 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
10754 instantiations.
10755 (store_integer): New function template.
10756 (store_signed_integer): Remove.
10757 (store_unsigned_integer): Remove.
10758 (store_integer): Explicit instantiations.
10759 * regcache.c (regcache_raw_read_signed): Update.
10760 (regcache::raw_read): New function.
10761 (regcache::raw_read_signed): Remove.
10762 (regcache::raw_read_unsigned): Remove.
10763 (regcache_raw_read_unsigned): Update.
10764 (regcache_raw_write_unsigned): Update.
10765 (regcache::raw_write_signed): Remove.
10766 (regcache::raw_write): New function.
10767 (regcache_cooked_read_signed): Update.
10768 (regcache::raw_write_unsigned): Remove.
10769 (regcache::cooked_read_signed): Remove.
10770 (regcache_cooked_read_unsigned): Update.
10771 (regcache::cooked_read_unsigned): Remove.
10772 (regcache_cooked_write_signed): Update.
10773 (regcache_cooked_write_unsigned): Update.
10774 * regcache.h (regcache) <raw_read_signed>: Remove.
10775 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
10776 <raw_read, raw_write>: New.
10777 <cooked_read_signed, cooked_write_signed>: Remove.
10778 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
10779 <cooked_read, cooked_write>: New.
10780 * sh64-tdep.c (sh64_pseudo_register_read): Update.
10781 (sh64_pseudo_register_write): Update.
10782
10783 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
10784
10785 * arc-tdep.c (arc_disassembler_options): New variable.
10786 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
10787 of default_print_insn.
10788 (arc_delayed_print_insn): Set info->section when needed,
10789 use default_print_insn to retrieve a disassembler.
10790
10791 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
10792
10793 PR gdb/21574
10794 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
10795 to mention $SHELL and startup-with-shell.
10796
10797 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
10798
10799 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
10800
10801 2017-06-14 Yao Qi <yao.qi@linaro.org>
10802
10803 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
10804 default_print_insn instead of print_insn_aarch64.
10805 * arm-tdep.c (gdb_print_insn_arm): Call
10806 default_print_insn instead of print_insn_big_arm
10807 and print_insn_little_arm.
10808 * i386-tdep.c (i386_print_insn): Call default_print_insn
10809 instead of print_insn_i386.
10810 * ia64-tdep.c (ia64_print_insn): Call
10811 default_print_insn instead of print_insn_ia64.
10812 * mips-tdep.c (gdb_print_insn_mips): Call
10813 default_print_insn instead of print_insn_big_mips
10814 and print_insn_little_mips.
10815 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
10816 instead of print_insn_spu.
10817
10818 2017-06-14 Pedro Alves <palves@redhat.com>
10819
10820 * ada-lang.c: Include "common/byte-vector.h".
10821 (ada_value_primitive_packed_val): Use gdb::byte_vector.
10822 * charset.c (wchar_iterator::iterate): Resize the vector instead
10823 of reserving it.
10824 * common/byte-vector.h: Include "common/def-vector.h".
10825 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
10826 * cli/cli-dump.c: Include "common/byte-vector.h".
10827 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
10828 * common/byte-vector.h: New file.
10829 * common/def-vector.h: New file.
10830 * common/default-init-alloc.h: New file.
10831 * dwarf2loc.c: Include "common/byte-vector.h".
10832 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
10833 instead of reserving it.
10834 * dwarf2read.c: Include "common/byte-vector.h".
10835 (data_buf::m_vec): Now a gdb::byte_vector.
10836 * gdb_regex.c: Include "common/def-vector.h".
10837 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
10838 * mi/mi-main.c: Include "common/byte-vector.h".
10839 (mi_cmd_data_read_memory): Use gdb::byte_vector.
10840 * printcmd.c: Include "common/byte-vector.h".
10841 (print_scalar_formatted): Use gdb::byte_vector.
10842 * valprint.c: Include "common/byte-vector.h".
10843 (maybe_negate_by_bytes, print_decimal_chars): Use
10844 gdb::byte_vector.
10845
10846 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10847
10848 * darwin-nat.c: Include "nat/fork-inferior.h".
10849
10850 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10851
10852 * configure.nat: Factor out Darwin bits that are not
10853 architecture-specific. Add fork-inferior.o.
10854
10855 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10856
10857 * configure.nat: Factor out AIX bits that are not
10858 architecture-specific. Add fork-inferior.o.
10859
10860 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10861
10862 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
10863 (read_pieced_value, write_pieced_value): ...here. Reduce to
10864 wrappers that just call rw_pieced_value.
10865
10866 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10867
10868 * dwarf2loc.c (write_pieced_value): When writing the data for a
10869 memory piece, use write_memory_with_notification instead of
10870 write_memory.
10871
10872 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10873
10874 * valops.c (read_value_memory): Change embedded_offset to
10875 represent a bit offset instead of a byte offset.
10876 * value.h (read_value_memory): Adjust comment.
10877
10878 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10879
10880 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
10881 dest_offset_bits and source_offset_bits.
10882 (write_pieced_value): Likewise.
10883
10884 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10885
10886 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
10887 given by DW_OP_bit_piece.
10888 (write_pieced_value): Likewise.
10889
10890 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10891
10892 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
10893 some other preparations to the places where sufficient information
10894 is available.
10895 (write_pieced_value): Likewise.
10896
10897 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10898
10899 * dwarf2loc.c (bits_to_bytes): New function.
10900 (read_pieced_value): Fix offset calculations for register pieces
10901 on big-endian targets.
10902 (write_pieced_value): Likewise.
10903
10904 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10905
10906 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
10907 (write_pieced_value): Likewise.
10908
10909 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10910
10911 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
10912 transfer the source value's least significant bits, instead of its
10913 lowest-addressed ones. Rename type_len to max_offset.
10914 (read_pieced_value): Mirror above changes to write_pieced_value as
10915 applicable.
10916
10917 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10918
10919 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
10920 truncate full bytes from dest_offset_bits before using it as an
10921 offset into the buffer.
10922
10923 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10924
10925 * dwarf2loc.c (write_pieced_value): Include transfer size in
10926 byte-wise check.
10927
10928 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10929
10930 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
10931 calculation of this_size.
10932
10933 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10934
10935 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
10936 when targeting a bit-field.
10937 (write_pieced_value): Likewise.
10938
10939 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10940
10941 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
10942 (allocate_piece_closure): Drop addr_size parameter.
10943 (dwarf2_evaluate_loc_desc_full): Adjust call to
10944 allocate_piece_closure.
10945
10946 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10947
10948 PR gdb/21226
10949 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
10950 the LSB end, independent of endianness.
10951
10952 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10953
10954 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
10955 size capping.
10956
10957 2017-06-13 Yao Qi <yao.qi@linaro.org>
10958
10959 * mips-linux-nat.c: Move include features/mips*-linux.c to
10960 mips-linux-tdep.c.
10961 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
10962 to mips-linux-tdep.c.
10963 * mips-linux-tdep.c: Include features/mips*-linux.c
10964 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
10965 functions.
10966 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
10967 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
10968 (tdesc_mips64_dsp_linux): Declare.
10969
10970 2017-06-12 Tom Tromey <tom@tromey.com>
10971
10972 * valprint.h (val_print_type_code_int): Remove.
10973 * valprint.c (generic_val_print_int): Always call
10974 val_print_scalar_formatted.
10975 (val_print_type_code_int): Remove.
10976 * printcmd.c (print_scalar_formatted): Handle options->format==0.
10977 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
10978 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
10979 * ada-valprint.c (ada_val_print_num): Use
10980 val_print_scalar_formatted.
10981
10982 2017-06-12 Tom Tromey <tom@tromey.com>
10983
10984 * printcmd.c (print_scalar_formatted): Unify the two switches.
10985 Don't convert scalars to LONGEST.
10986
10987 2017-06-12 Tom Tromey <tom@tromey.com>
10988
10989 PR exp/16225:
10990 * valprint.h (print_decimal_chars): Update.
10991 * valprint.c (maybe_negate_by_bytes): New function.
10992 (print_decimal_chars): Add "is_signed" argument.
10993 * printcmd.c (print_scalar_formatted): Update.
10994
10995 2017-06-12 Tom Tromey <tom@tromey.com>
10996
10997 PR exp/16225:
10998 * valprint.h (print_binary_chars, print_hex_chars): Update.
10999 * valprint.c (val_print_type_code_int): Update.
11000 (print_binary_chars): Add "zero_pad" argument.
11001 (emit_octal_digit): New function.
11002 (print_octal_chars): Don't zero-pad.
11003 (print_decimal_chars): Likewise.
11004 (print_hex_chars): Add "zero_pad" argument.
11005 * sh64-tdep.c (sh64_do_fp_register): Update.
11006 * regcache.c (regcache::dump): Update.
11007 * printcmd.c (print_scalar_formatted): Update.
11008 * infcmd.c (default_print_one_register_info): Update.
11009
11010 2017-06-12 Pedro Alves <palves@redhat.com>
11011 Alan Hayward <alan.hayward@arm.com>
11012
11013 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11014 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11015 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11016 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11017 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11018
11019 2017-06-12 Pedro Alves <palves@redhat.com>
11020
11021 * dwarf2read.c (mapped_symtab::data): Now a vector of
11022 symtab_index_entry instead of vector of
11023 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11024 whether an element's name is NULL instead of checking whether the
11025 element itself is NULL.
11026 (find_slot): Change return type. Adjust.
11027 (hash_expand, , add_index_entry, uniquify_cu_indices)
11028 (write_hash_table): Adjust.
11029
11030 2017-06-12 Pedro Alves <palves@redhat.com>
11031
11032 * dwarf2read.c (recursively_count_psymbols): New function.
11033 (write_psymtabs_to_index): Call it to compute number of psyms and
11034 pass estimate size of psyms_seen to unordered_set's ctor.
11035
11036 2017-06-12 Pedro Alves <palves@redhat.com>
11037
11038 * dwarf2read.c (write_hash_table): Check if key already exists
11039 before emplacing.
11040
11041 2017-06-12 Pedro Alves <palves@redhat.com>
11042
11043 * dwarf2read.c (data_buf::append_space): Rename to...
11044 (data_buf::grow): ... this, and make private. Adjust all callers.
11045 (data_buf::append_uint): New method.
11046 (add_address_entry, write_one_signatured_type)
11047 (write_psymtabs_to_index): Use it.
11048
11049 2017-06-12 Pedro Alves <palves@redhat.com>
11050
11051 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11052 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11053 (data_buf::file_write): Call ::fwrite directly.
11054
11055 2017-06-12 Pedro Alves <palves@redhat.com>
11056
11057 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11058 std::vector::erase.
11059
11060 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11061
11062 Code cleanup: C++ify .gdb_index producer.
11063 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11064 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11065 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11066 (create_strtab, add_string): Remove.
11067 (file_write, data_buf): New.
11068 (struct symtab_index_entry): Use std::vector for cu_indices.
11069 (struct mapped_symtab): Use std::vector for data.
11070 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11071 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11072 Remove.
11073 (find_slot): Change return type. Update it to the new data structures.
11074 (hash_expand, add_index_entry): Update it to the new data structures.
11075 (offset_type_compare): Remove.
11076 (uniquify_cu_indices): Update it to the new data structures.
11077 (c_str_view, c_str_view_hasher, vector_hasher): New.
11078 (add_indices_to_cpool): Remove.
11079 (write_hash_table): Update it to the new data structures.
11080 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11081 (eq_psymtab_cu_index): Remove.
11082 (psym_index_map): New typedef.
11083 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11084 reference and std::unordered_map for cu_index_htab.
11085 (add_address_entry, add_address_entry_worker, write_address_map)
11086 (write_psymbols): Update it to the new data structures.
11087 (write_obstack): Remove.
11088 (struct signatured_type_index_data): Change types_list to a data_buf
11089 reference and psyms_seen to a std::unordered_set reference.
11090 (write_one_signatured_type, recursively_write_psymbols)
11091 (write_psymtabs_to_index): Update it to the new data structures.
11092
11093 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11094
11095 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11096 separate-debug-file commands.
11097 * symfile.h (separate_debug_file_debug): New global.
11098 * symfile.c (separate_debug_file_debug): New global.
11099 (separate_debug_file_exists, find_separate_debug_file): Add
11100 debug output.
11101 (_initialize_symfile): Add "set debug separate-debug-file"
11102 command.
11103 * build-id.c (build_id_to_debug_bfd,
11104 find_separate_debug_file_by_buildid): Add debug output.
11105
11106 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11107
11108 * gdbarch.sh (displaced_step_free_closure): Remove.
11109 * gdbarch.h, gdbarch.c: Re-generate.
11110 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11111 displaced_step_free_closure.
11112 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11113 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11114 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11115 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11116 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11117 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11118 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11119 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11120 * infrun.c (displaced_step_clear): Call xfree instead of
11121 gdbarch_displaced_step_free_closure.
11122
11123 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11124
11125 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11126 NULL".
11127
11128 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11129
11130 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11131 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11132 (mn10300_push_dummy_call): Likewise.
11133
11134 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11135
11136 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11137
11138 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11139
11140 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11141
11142 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11143
11144 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11145 able to start inferiors using a shell.
11146 (New remote packets): Announce new packet "QStartupWithShell".
11147 * remote.c: Add PACKET_QStartupWithShell.
11148 (extended_remote_create_inferior): Handle new
11149 PACKET_QStartupWithShell.
11150 (remote_protocol_features) <QStartupWithShell>: New entry for
11151 PACKET_QStartupWithShell.
11152 (_initialize_remote): Call "add_packet_config_cmd" for
11153 QStartupShell.
11154
11155 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11156 Pedro Alves <palves@redhat.com>
11157
11158 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11159 and "nat/fork-inferior.h".
11160 * common/common-inferior.h: New file, with contents from
11161 "gdb/inferior.h".
11162 * commom/common-utils.c: Include "common-utils.h".
11163 (stringify_argv): New function.
11164 * common/common-utils.h (stringify_argv): New prototype.
11165 * configure.nat: Add "fork-inferior.o" as a dependency for
11166 "*linux*", "fbsd*" and "nbsd*" hosts.
11167 * corefile.c (get_exec_file): Update comment.
11168 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11169 instead of "startup_inferior".
11170 (darwin_create_inferior): Call "add_thread_silent" after
11171 "fork_inferior".
11172 * fork-child.c: Cleanup unnecessary includes.
11173 (SHELL_FILE): Move to "common/common-fork-child.c".
11174 (environ): Likewise.
11175 (exec_wrapper): Initialize.
11176 (get_exec_wrapper): New function.
11177 (breakup_args): Move to "common/common-fork-child.c"; rename to
11178 "breakup_args_for_exec".
11179 (escape_bang_in_quoted_argument): Move to
11180 "common/common-fork-child.c".
11181 (saved_ui): New variable.
11182 (prefork_hook): New function.
11183 (postfork_hook): Likewise.
11184 (postfork_child_hook): Likewise.
11185 (gdb_startup_inferior): Likewise.
11186 (fork_inferior): Move to "common/common-fork-child.c". Update
11187 function to support gdbserver.
11188 (startup_inferior): Likewise.
11189 * gdbcore.h (get_exec_file): Remove declaration.
11190 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11191 instead of "startup_inferior". Call "add_thread_silent" after
11192 "fork_inferior".
11193 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11194 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11195 instead of "startup_inferior". Call "add_thread_silent" after
11196 "fork_inferior".
11197 * inferior.h: Include "common-inferior.h".
11198 (trace_start_error): Move to "common/common-utils.h".
11199 (trace_start_error_with_name): Likewise.
11200 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11201 (startup_inferior): Likewise.
11202 (gdb_startup_inferior): New prototype.
11203 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11204 * nat/fork-inferior.h: New file.
11205 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11206 instead of "startup_inferior". Call "add_thread_silent" after
11207 "fork_inferior".
11208 * target.h (target_terminal_init): Move prototype to
11209 "target/target.h".
11210 (target_terminal_inferior): Likewise.
11211 (target_terminal_ours): Likewise.
11212 * target/target.h (target_terminal_init): New prototype, moved
11213 from "target.h".
11214 (target_terminal_inferior): Likewise.
11215 (target_terminal_ours): Likewise.
11216 * utils.c (gdb_flush_out_err): New function.
11217
11218 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11219
11220 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11221 * common/common-gdbthread.h: New file, with parts from
11222 "gdb/gdbthread.h".
11223 * gdbthread.h: Include "common-gdbthread.h".
11224 (switch_to_thread): Moved to "common/common-gdbthread.h".
11225
11226 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11227
11228 * Makefile.in (SFILES): Add "common/job-control.c".
11229 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11230 (COMMON_OBS): Add "job-control.o".
11231 * common/job-control.c: New file, with contents from
11232 "gdb/inflow.c".
11233 * common/job-control.h: New file, with contents from "terminal.h".
11234 * fork-child.c: Include "job-control.h".
11235 * inflow.c: Include "job-control.h".
11236 (gdb_setpgid): Move to "common/common-inflow.c".
11237 (_initialize_inflow): Move setting of "job_control" to
11238 "handle_job_control".
11239 * terminal.h (job_control): Moved to "common/common-terminal.h".
11240 (gdb_setpgid): Likewise.
11241 * top.c: Include "job_control.h".
11242 * utils.c: Likewise.
11243 (job_control): Moved to "job-control.c".
11244
11245 2017-06-07 Pedro Alves <palves@redhat.com>
11246
11247 * Makefile.in (SFILES): Add gdb_regex.c.
11248 (COMMON_OBS): Add gdb_regex.o.
11249 * ada-lang.c (ada_add_standard_exceptions)
11250 (ada_add_exceptions_from_frame, name_matches_regex)
11251 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11252 parameter type to compiled_regex. Adjust.
11253 (ada_exceptions_list): Use compiled_regex.
11254 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11255 std::unique_ptr<compiled_regex>.
11256 (exception_catchpoint::~exception_catchpoint): Remove regfree
11257 call.
11258 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11259 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11260 * breakpoint.c (solib_catchpoint::compiled): Now a
11261 std::unique_ptr<compiled_regex>.
11262 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11263 (check_status_catch_solib): Adjust to use compiled_regex.
11264 (add_solib_catchpoint): Adjust to use compiled_regex.
11265 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11266 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11267 compiled_regex reference. Adjust to use it.
11268 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11269 declaration. Include "gdb_regex.h".
11270 (apropos_cmd): Change regex parameter to compiled_regex reference.
11271 * gdb_regex.c: New file.
11272 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11273 declarations.
11274 (class compiled_regex): New.
11275 * linux-tdep.c: Include "common/gdb_optional.h".
11276 (struct mapping_regexes): New, factored out from
11277 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11278 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11279 gdb::optional and remove cleanups. Adjust to compiled_regex.
11280 * probe.c: Include "common/gdb_optional.h".
11281 (collect_probes): Use compiled_regex and gdb::optional and remove
11282 cleanups.
11283 * skip.c: Include "common/gdb_optional.h".
11284 (skiplist_entry::compiled_function_regexp): Now a
11285 gdb::optional<compiled_regex>.
11286 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11287 (free_skiplist_entry): Remove regfree call.
11288 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11289 compiled_regex and gdb::optional.
11290 * symtab.c: Include "common/gdb_optional.h".
11291 (search_symbols): Use compiled_regex and gdb::optional.
11292 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11293 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11294 to gdb_regex.c.
11295
11296 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11297
11298 * regcache.c (regcache::save): Avoid buffer use.
11299 (regcache::dump): Likewise.
11300
11301 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11302
11303 * sh-tdep.c (sh_pseudo_register_read): Remove
11304 MAX_REGISTER_SIZE.
11305 (sh_pseudo_register_write): Likewise.
11306 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11307 (sh64_pseudo_register_write): Likewise
11308
11309 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11310
11311 * aarch64-tdep.c (aarch64_store_return_value): Use
11312 V_REGISTER_SIZE.
11313 (aarch64_pseudo_read_value): Likewise.
11314 (aarch64_pseudo_write): Likewise.
11315
11316 2017-06-06 Yao Qi <yao.qi@linaro.org>
11317
11318 * regformats/regdef.h (set_register_cache): Remove the
11319 declaration.
11320
11321 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11322
11323 * frame.c (frame_unwind_register_signed): Use
11324 frame_unwind_register_value.
11325
11326 2017-06-06 Pedro Alves <palves@redhat.com>
11327
11328 PR breakpoints/21553
11329 * breakpoint.c (create_breakpoints_sal_default)
11330 (init_breakpoint_sal, create_breakpoint_sal): Use
11331 gdb::unique_xmalloc_ptr for string parameters.
11332 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11333 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11334 (base_breakpoint_create_breakpoints_sal)
11335 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11336 (strace_marker_create_breakpoints_sal)
11337 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11338 string parameters.
11339 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11340 gdb::unique_xmalloc_ptr for string parameters.
11341 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11342 parameters.
11343
11344 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11345
11346 * alpha-tdep.c (alpha_register_to_value): Use
11347 get_frame_register_value.
11348 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11349
11350 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11351
11352 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11353 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11354 (ia64_value_to_register): Likewise.
11355 (ia64_extract_return_value): Likewise.
11356 (ia64_store_return_value): Likewise.
11357 (ia64_push_dummy_call): Likewise.
11358
11359 2017-06-04 Joel Brobecker <brobecker@adacore.com>
11360
11361 GDB 8.0 released.
11362
11363 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11364
11365 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11366
11367 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11368
11369 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11370 parameter.
11371 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11372
11373 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11374
11375 * event-loop.c (poll_timers): Unallocate timer using delete
11376 instead of xfree.
11377
11378 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11379
11380 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
11381 (struct breakpoint) <~breakpoint>: New.
11382 (struct watchpoint): Inherit from breakpoint.
11383 <~watchpoint>: New.
11384 <base>: Remove.
11385 (struct tracepoint): Inherit from breakpoint.
11386 <base>: Remove.
11387 * breakpoint.c (longjmp_breakpoint_ops): Remove.
11388 (struct longjmp_breakpoint): Inherit from breakpoint.
11389 <~longjmp_breakpoint>: New.
11390 <base>: Remove.
11391 (new_breakpoint_from_type): Remove casts.
11392 (watchpoint_in_thread_scope): Remove reference to base field.
11393 (watchpoint_del_at_next_stop): Likewise.
11394 (update_watchpoint): Likewise.
11395 (watchpoint_check): Likewise.
11396 (bpstat_check_watchpoint): Likewise.
11397 (set_longjmp_breakpoint): Likewise.
11398 (struct fork_catchpoint): Inherit from breakpoint.
11399 <base>: Remove.
11400 (struct solib_catchpoint): Inherit from breakpoint.
11401 <~solib_catchpoint>: New.
11402 <base>: Remove.
11403 (dtor_catch_solib): Change to ...
11404 (solib_catchpoint::~solib_catchpoint): ... this.
11405 (breakpoint_hit_catch_solib): Remove reference to base field.
11406 (add_solib_catchpoint): Likewise.
11407 (create_fork_vfork_event_catchpoint): Likewise.
11408 (struct exec_catchpoint): Inherit from breakpoint.
11409 <~exec_catchpoint>: New.
11410 <base>: Remove.
11411 (dtor_catch_exec): Change to ...
11412 (exec_catchpoint::~exec_catchpoint): ... this.
11413 (dtor_watchpoint): Change to ...
11414 (watchpoint::~watchpoint): ... this.
11415 (watch_command_1): Remove reference to base field.
11416 (catch_exec_command_1): Likewise.
11417 (base_breakpoint_dtor): Change to ...
11418 (breakpoint::~breakpoint): ... this.
11419 (base_breakpoint_ops): Remove dtor field value.
11420 (longjmp_bkpt_dtor): Change to ...
11421 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
11422 (strace_marker_create_breakpoints_sal): Remove reference to base
11423 field.
11424 (delete_breakpoint): Don't manually call breakpoint destructor.
11425 (create_tracepoint_from_upload): Remove reference to base field.
11426 (trace_pass_set_count): Likewise.
11427 (initialize_breakpoint_ops): Don't initialize
11428 momentary_breakpoint_ops, don't set dtors.
11429 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
11430 <~ada_catchpoint>: New.
11431 <base>: Remove.
11432 (create_excep_cond_exprs): Remove reference to base field.
11433 (dtor_exception): Change to ...
11434 (ada_catchpoint::~ada_catchpoint): ... this.
11435 (dtor_catch_exception): Remove.
11436 (dtor_catch_exception_unhandled): Remove.
11437 (dtor_catch_assert): Remove.
11438 (create_ada_exception_catchpoint): Remove reference to base
11439 field.
11440 (initialize_ada_catchpoint_ops): Don't set dtors.
11441 * break-catch-sig.c (struct signal_catchpoint): Inherit from
11442 breakpoint.
11443 <~signal_catchpoint>: New.
11444 <base>: Remove.
11445 (signal_catchpoint_dtor): Change to ...
11446 (signal_catchpoint::~signal_catchpoint): ... this.
11447 (create_signal_catchpoint): Remove reference to base field.
11448 (initialize_signal_catchpoint_ops): Don't set dtor.
11449 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
11450 from breakpoint.
11451 <~syscall_catchpoint>: New.
11452 <base>: Remove.
11453 (dtor_catch_syscall): Change to ...
11454 (syscall_catchpoint::~syscall_catchpoint): ... this.
11455 (create_syscall_event_catchpoint): Remove reference to base
11456 field.
11457 (initialize_syscall_catchpoint_ops): Don't set dtor.
11458 * break-catch-throw.c (struct exception_catchpoint): Inherit
11459 from breakpoint.
11460 <~exception_catchpoint>: New.
11461 <base>: Remove.
11462 (dtor_exception_catchpoint): Change to ...
11463 (exception_catchpoint::~exception_catchpoint): ... this.
11464 (handle_gnu_v3_exceptions): Remove reference to base field.
11465 (initialize_throw_catchpoint_ops): Don't set dtor.
11466 * ctf.c (ctf_get_traceframe_address): Remove reference to base
11467 field.
11468 * remote.c (remote_get_tracepoint_status): Likewise.
11469 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
11470 * tracefile.c (tracefile_fetch_registers): Likewise.
11471 * tracepoint.c (actions_command): Likewise.
11472 (validate_actionline): Likewise.
11473 (tfind_1): Likewise.
11474 (get_traceframe_location): Likewise.
11475 (find_matching_tracepoint_location): Likewise.
11476 (parse_tracepoint_status): Likewise.
11477 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
11478
11479 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11480
11481 * breakpoint.c (struct longjmp_breakpoint): New struct.
11482 (is_tracepoint_type): Change return type to bool.
11483 (is_longjmp_type): New function.
11484 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
11485 (set_raw_breakpoint_without_location): Use
11486 new_breakpoint_from_type.
11487 (set_raw_breakpoint): Likewise.
11488
11489 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11490
11491 * breakpoint.c (new_breakpoint_from_type): New function.
11492 (create_breakpoint_sal): Use new_breakpoint_from_type and
11493 unique_ptr.
11494 (create_breakpoint): Likewise.
11495
11496 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11497
11498 * memattr.c (mem_info_command): Rename to ...
11499 (info_mem_command): ... this.
11500 (mem_enable_command): Rename to ...
11501 (enable_mem_command): ... this.
11502 (mem_disable_command): Rename to ...
11503 (disable_mem_command): ... this.
11504 (mem_delete_command): Rename to ...
11505 (delete_mem_command): ... this.
11506 (_initialize_mem): Adjust function names.
11507
11508 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11509
11510 * btrace.c (handle_pt_insn_events): New.
11511 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11512 STATUS. Split into this and ...
11513 (handle_pt_insn_event_flags): ... this.
11514
11515 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11516
11517 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11518 and struct pt_insn.resynced.
11519 * configure: Regenerated.
11520 * config.in: Regenerated.
11521
11522 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11523
11524 * btrace.c (ftrace_find_call_by_number): New function.
11525 (ftrace_new_function): Store objects, not pointers.
11526 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
11527 ftrace_new_gap, ftrace_update_function,
11528 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
11529 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
11530 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
11531 btrace_ends_with_single_insn, btrace_call_get): Account for
11532 btrace_thread_info::functions now storing objects.
11533 * btrace.h (struct btrace_thread_info): Add constructor.
11534 (struct btrace_thread_info) <functions>: Make std::vector.
11535 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
11536 Initialize with default values.
11537 * record-btrace.c (record_btrace_frame_sniffer): Account for
11538 btrace_thread_info::functions now storing objects.
11539
11540 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11541
11542 * btrace.c: Remove typedef bfun_s.
11543 (ftrace_new_gap): Directly add gaps to the list of gaps.
11544 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
11545 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
11546 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
11547 instead of gdb VEC.
11548
11549 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11550
11551 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
11552 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
11553 with btrace_thread_info::next_segment and
11554 btrace_thread_info::prev_segment.
11555 * btrace.h: Remove struct btrace_func_link.
11556 (struct btrace_function): Replace pair of function segment pointers
11557 with pair of indices.
11558 * python/py-record-btrace.c (btpy_call_prev_sibling,
11559 btpy_call_next_sibling): Replace references to
11560 btrace_thread_info::segment with btrace_thread_info::next_segment and
11561 btrace_thread_info::prev_segment.
11562 * record-btrace.c (record_btrace_frame_this_id): Use
11563 btrace_find_call_by_number.
11564
11565 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11566
11567 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11568 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11569 btrace_insn_next, btrace_insn_prev): Remove references to
11570 btrace_thread_info::flow.
11571 * btrace.h (struct btrace_function): Remove FLOW.
11572
11573 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11574
11575 * btrace.c (ftrace_find_call_by_number): New function.
11576 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11577 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
11578 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
11579 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
11580 index.
11581 * btrace.h (struct btrace_function): Turn UP into an index.
11582 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
11583 as an index.
11584 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
11585 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
11586 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
11587
11588 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11589
11590 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11591 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11592 ftrace_update_function, ftrace_compute_global_level_offset,
11593 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
11594 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
11595 btrace_insn_end, btrace_is_empty): Remove references to
11596 btrace_thread_info::begin and btrace_thread_info::end.
11597 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
11598 (struct btrace_thread_info) <functions>: Adjust comment.
11599 * record-btrace.c (record_btrace_start_replaying): Remove reference to
11600 btrace_thread_info::begin.
11601
11602 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11603
11604 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11605 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11606 ftrace_update_function): Remove arguments that implicitly were always
11607 BTINFO->END.
11608 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
11609 Don't pass BTINFO->END.
11610
11611 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11612
11613 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
11614 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
11615 btrace_find_insn_by_number): Replace function segment pointer with
11616 index.
11617 (btrace_insn_cmp): Simplify.
11618 * btrace.h: (struct btrace_insn_iterator) Rename index to
11619 insn_index. Replace function segment pointer with index into function
11620 segment vector.
11621 * record-btrace.c (record_btrace_call_history): Replace function
11622 segment pointer use with index.
11623 (record_btrace_frame_sniffer): Retrieve function call segment through
11624 vector.
11625 (record_btrace_set_replay): Remove defunc't safety check.
11626
11627 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11628
11629 * btrace.c (btrace_ends_with_single_insn): New function.
11630 (btrace_call_get, btrace_call_number, btrace_call_begin,
11631 btrace_call_end, btrace_call_next, btrace_call_prev,
11632 btrace_find_call_by_number): Use index into call segment vector
11633 instead of pointer.
11634 (btrace_call_cmp): Simplify.
11635 * btrace.h (struct btrace_call_iterator): Replace function call segment
11636 pointer with index into vector.
11637 * record-btrace.c (record_btrace_call_history): Use index instead of
11638 pointer.
11639
11640 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11641
11642 * btrace.c (btrace_insn_begin, btrace_insn_end,
11643 btrace_find_insn_by_number): Add btinfo to iterator.
11644 * btrace.h (struct btrace_insn_iterator): Add btinfo.
11645
11646 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11647
11648 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
11649 and save pointers directly.
11650 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
11651 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
11652 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
11653 changed signature of functions.
11654 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
11655 (btrace_fetch): Remove code that adds btrace_function pointers to
11656 vector of btrace_functions.
11657 (btrace_clear): Simplify freeing vector of btrace_functions.
11658
11659 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11660
11661 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
11662 Replace VEC_* with std::vector functions.
11663 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
11664 (struct btrace_thread_info)<functions>: Change type to std::vector.
11665
11666 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
11667
11668 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
11669 "Removed targets and native configurations" up. Merge duplicate
11670 "New commands" sub-sections. Add "New options" sub-sections.
11671
11672 2017-05-26 Alan Hayward <alan.hayward@arm.com>
11673
11674 * defs.h (copy_integer_to_size): New declaration.
11675 * findvar.c (copy_integer_to_size): New function.
11676 (do_cint_test): New selftest function.
11677 (copy_integer_to_size_test): Likewise.
11678 (_initialize_findvar): Likewise.
11679 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
11680 (mips_fbsd_collect_reg): Use raw_collect_integer.
11681 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
11682 (mips64_fill_gregset): Use raw_collect_integer
11683 (mips64_fill_fpregset): Use raw_supply_integer.
11684 * regcache.c (regcache::raw_supply_integer): New function.
11685 (regcache::raw_collect_integer): Likewise.
11686 * regcache.h: (regcache::raw_supply_integer): New declaration.
11687 (regcache::raw_collect_integer): Likewise.
11688
11689 2017-05-24 Yao Qi <yao.qi@linaro.org>
11690
11691 * Makefile.in (SFILES): Add gdbarch-selftests.c.
11692 (COMMON_OBS): Add gdbarch-selftests.o.
11693 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
11694 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
11695 * gdbarch-selftests.c: New file.
11696 * regcache.h (regcache) <~regcache>: Mark it virtual if
11697 GDB_SELF_TEST.
11698 <raw_write>: Likewise.
11699
11700 2017-05-24 Yao Qi <yao.qi@linaro.org>
11701
11702 * regcache.c (current_regcache): Change it to
11703 regcache::current_regcache.
11704 (regcache_observer_target_changed): Update.
11705 (regcache_thread_ptid_changed): Make it a regcache static
11706 method.
11707 (regcache_thread_ptid_changed): Update.
11708 (class regcache_access): New.
11709 (current_regcache_test): Update.
11710 (_initialize_regcache): Update.
11711 * regcache.h: Include forward_list.
11712 (regcache): Declare regcache_thread_ptid_changed and declare
11713 registers_changed_ptid as friend.
11714
11715 2017-05-24 Yao Qi <yao.qi@linaro.org>
11716
11717 * i387-tdep.c (i387_register_to_value): Use register_size
11718 instead of TYPE_LENGTH.
11719 * m68k-tdep.c (m68k_register_to_value): Likewise.
11720
11721 2017-05-24 Yao Qi <yao.qi@linaro.org>
11722
11723 * i387-tdep.c (i387_convert_register_p): Return false if type
11724 code isn't TYPE_CODE_FLT.
11725
11726 2017-05-24 Yao Qi <yao.qi@linaro.org>
11727
11728 * alpha-tdep.c (alpha_convert_register_p): Return true if type
11729 length is 4.
11730 (alpha_register_to_value): Remove type length check.
11731 (alpha_value_to_register): Likewise.
11732
11733 2017-05-24 Yao Qi <yao.qi@linaro.org>
11734
11735 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
11736 TYPE_CODE_FLT.
11737
11738 2017-05-24 Yao Qi <yao.qi@linaro.org>
11739
11740 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
11741 TYPE_CODE_FLT or not.
11742
11743 2017-05-24 Yao Qi <yao.qi@linaro.org>
11744
11745 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
11746 * avr-tdep.c (avr_gdbarch_init): Likewise.
11747 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11748 * cris-tdep.c (cris_gdbarch_init): Likewise.
11749 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11750 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11751 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11753 * mep-tdep.c (mep_gdbarch_init): Likewise.
11754 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11755 * mips-tdep.c (mips_gdbarch_init): Likewise.
11756 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11757 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11758 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11759 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11760 * v850-tdep.c (v850_gdbarch_init): Likewise.
11761
11762 2017-05-24 Yao Qi <yao.qi@linaro.org>
11763
11764 * selftest-arch.c (tests_with_arch): Call registers_changed
11765 and reinit_frame_cache.
11766 * selftest.c (run_self_tests): Likewise.
11767
11768 2017-05-24 Yao Qi <yao.qi@linaro.org>
11769
11770 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
11771 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
11772
11773 2017-05-24 Yao Qi <yao.qi@linaro.org>
11774
11775 * rl78-tdep.c (rl78_gdbarch_init): Don't call
11776 set_gdbarch_print_insn.
11777
11778 2017-05-24 Yao Qi <yao.qi@linaro.org>
11779
11780 * h8300-tdep.c (h8300_gdbarch_init): Don't call
11781 set_gdbarch_print_insn.
11782
11783 2017-05-24 Yao Qi <yao.qi@linaro.org>
11784
11785 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11786 set_gdbarch_print_insn.
11787 * arc-tdep.c (arc_gdbarch_init): Likewise.
11788 * arch-utils.c: include dis-asm.h.
11789 (default_print_insn): New function.
11790 * arch-utils.h (default_print_insn): Declare.
11791 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
11792 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11793 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
11794 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
11795 * frv-tdep.c (frv_gdbarch_init): Likewise.
11796 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11797 * gdbarch.sh (print_insn): Use default_print_insn.
11798 * gdbarch.c: Regenerated.
11799 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11800 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
11801 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11802 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
11803 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11804 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
11805 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
11806 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11807 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
11808 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11809 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11810 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11811 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11812 * mt-tdep.c (mt_gdbarch_init): Likewise.
11813 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11814 * nios2-tdep.c (nios2_print_insn): Remove.
11815 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
11816 * rx-tdep.c (rx_gdbarch_init): Likewise.
11817 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11818 * score-tdep.c (score_print_insn): Remove.
11819 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
11820 * sh-tdep.c (sh_gdbarch_init): Likewise.
11821 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11822 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11823 * tic6x-tdep.c (tic6x_print_insn): Remove.
11824 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
11825 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
11826 * v850-tdep.c (v850_gdbarch_init): Likewise.
11827 * vax-tdep.c (vax_gdbarch_init): Likewise.
11828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11829 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
11830
11831 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11832
11833 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
11834 (MIPS_FP0_REGNUM): Remove.
11835 (MIPS_FSR_REGNUM): Remove.
11836 (mips_fbsd_supply_fpregs): Use mips_regnum.
11837 (mips_fbsd_supply_gregs): Likewise.
11838 (mips_fbsd_collect_fpregs): Likewise.
11839 (mips_fbsd_collect_gregs): Likewise.
11840
11841 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11842
11843 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
11844 (getpfpregs_supplies): New function.
11845 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
11846 getfpregs_supplies.
11847 (mips_fbsd_store_inferior_registers): Likewise.
11848
11849 2017-05-22 Pedro Alves <palves@redhat.com>
11850
11851 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
11852 maintainer.
11853
11854 2017-05-22 Alan Hayward <alan.hayward@arm.com>
11855
11856 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
11857 (store_register): Likewise.
11858 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
11859 (get_decimal_float_return_value): Likewise.
11860 (do_ppc_sysv_return_value): Likewise.
11861 (ppc64_sysv_abi_push_integer): Likewise.
11862 (ppc64_sysv_abi_push_freg): Likewise.
11863 (ppc64_sysv_abi_return_value_base): Likewise.
11864 (ppc64_sysv_abi_return_value): Likewise.
11865 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
11866 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
11867 * rs6000-nat.c: Likewise.
11868 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
11869 (rs6000_value_to_register): Likewise.
11870 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
11871
11872 2017-05-21 Tom Tromey <tom@tromey.com>
11873
11874 PR rust/21466:
11875 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
11876 arrays as "[T]", not "[T; ]".
11877
11878 2017-05-19 Tom Tromey <tom@tromey.com>
11879
11880 PR rust/21484:
11881 * rust-lang.c (exp_descriptor_rust): New function.
11882 (rust_language_defn): Use it.
11883 * p-lang.c (pascal_language_defn): Update.
11884 * opencl-lang.c (opencl_language_defn): Update.
11885 * objc-lang.c (objc_language_defn): Update.
11886 * m2-lang.c (m2_language_defn): Update.
11887 * language.h (struct language_defn)
11888 <la_watch_location_expression>: New member.
11889 * language.c (unknown_language_defn, auto_language_defn)
11890 (local_language_defn): Update.
11891 * go-lang.c (go_language_defn): Update.
11892 * f-lang.c (f_language_defn): Update.
11893 * d-lang.c (d_language_defn): Update.
11894 * c-lang.h (c_watch_location_expression): Declare.
11895 * c-lang.c (c_watch_location_expression): New function.
11896 (c_language_defn, cplus_language_defn, asm_language_defn)
11897 (minimal_language_defn): Use it.
11898 * breakpoint.c (watch_command_1): Call
11899 la_watch_location_expression.
11900 * ada-lang.c (ada_language_defn): Update.
11901
11902 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11903
11904 PR tui/21482
11905 * gdb_curses.h (NOMACROS): Define.
11906 (NCURSES_NOMACROS): Define.
11907
11908 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11909
11910 PR tui/21482
11911 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
11912 arg to char *.
11913 * tui/tui-wingeneral.c (box_win): Likewise.
11914 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
11915 (tui_show_source_line): Likewise.
11916 (tui_show_exec_info_content): Likewise.
11917
11918 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
11919
11920 * sparc-tdep.c (sparc_structure_return_p)
11921 (sparc_arg_on_registers_p): New functions.
11922 (sparc32_store_arguments): Use them.
11923 * sparc64-tdep.c (sparc64_16_byte_align_p)
11924 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
11925 Handle TYPE_CODE_ARRAY.
11926
11927 2017-05-17 Yao Qi <yao.qi@linaro.org>
11928
11929 * cli/cli-decode.c (add_alias_cmd): New function.
11930 * command.h (add_alias_cmd): Declare.
11931 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
11932 instead call add_alias_cmd.
11933
11934 2017-05-17 Pedro Alves <palves@redhat.com>
11935
11936 * Makefile.in (nat_extra_makefile_frag): Rename to ...
11937 (nat_makefile_frag): ... this. All references updated.
11938 * configure.ac: Likewise.
11939 * configure.nat: Likewise. Enhance comments.
11940 * configure: Regenerate.
11941
11942 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11943
11944 * procfs.c (procfs_create_inferior): Change prototype to match
11945 definition.
11946
11947 2017-05-13 Eli Zaretskii <eliz@gnu.org>
11948
11949 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
11950 C++ compiler warning.
11951
11952 2017-05-12 Tom Tromey <tom@tromey.com>
11953
11954 PR rust/21483:
11955 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
11956 recurse, just call value_struct_elt directly.
11957
11958 2017-05-12 Tom Tromey <tom@tromey.com>
11959
11960 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
11961 OP_RUST_ARRAY>: Fix.
11962
11963 2017-05-12 Tom Tromey <tom@tromey.com>
11964
11965 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
11966
11967 2017-05-09 Yao Qi <yao.qi@linaro.org>
11968
11969 * regcache.c: Include <forward_list>.
11970 (struct regcache_list): Remove.
11971 (current_regcache): Update.
11972 (get_thread_arch_aspace_regcache): Update for std::forward_list.
11973 (regcache_thread_ptid_changed): Likewise.
11974 (registers_changed_ptid): Likewise.
11975 (current_regcache_size): Likewise.
11976
11977 2017-05-09 Yao Qi <yao.qi@linaro.org>
11978
11979 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
11980 (current_regcache_size): New function.
11981 (current_regcache_test): New function.
11982 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
11983
11984 2017-05-08 Alan Hayward <alan.hayward@arm.com>
11985
11986 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
11987 (print_gp_register_row): Use get_frame_register_value.
11988
11989 2017-05-08 Alan Hayward <alan.hayward@arm.com>
11990
11991 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
11992 (mips_supply_fpregset): Likewise.
11993 (mips64_supply_gregset): Likewise.
11994
11995 2017-05-08 Alan Hayward <alan.hayward@arm.com>
11996
11997 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
11998 regcache->raw_supply_zeroed.
11999
12000 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12001
12002 * configure.nat: Rearrange 'case' statements to match
12003 host before cpu.
12004
12005 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12006
12007 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12008 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12009 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12010 "@nat_extra_makefile_frag@".
12011 (Makefile): Remove dependency on "@frags@".
12012 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12013 (data-directory/Makefile): Likewise.
12014 * config/aarch64/linux.mh: Deleted; moved contents to
12015 "gdb/configure.nat".
12016 * config/alpha/alpha-linux.mh: Likewise.
12017 * config/alpha/nbsd.mh: Likewise.
12018 * config/arm/linux.mh: Likewise.
12019 * config/arm/nbsdelf.mh: Likewise.
12020 * config/i386/cygwin.mh: Likewise.
12021 * config/i386/cygwin64.mh: Likewise.
12022 * config/i386/darwin.mh: Likewise.
12023 * config/i386/fbsd.mh: Likewise.
12024 * config/i386/fbsd64.mh: Likewise.
12025 * config/i386/go32.mh: Likewise.
12026 * config/i386/i386gnu.mh: Likewise.
12027 * config/i386/i386sol2.mh: Likewise.
12028 * config/i386/linux.mh: Likewise.
12029 * config/i386/linux64.mh: Likewise.
12030 * config/i386/mingw.mh: Likewise.
12031 * config/i386/mingw64.mh: Likewise.
12032 * config/i386/nbsd64.mh: Likewise.
12033 * config/i386/nbsdelf.mh: Likewise.
12034 * config/i386/nto.mh: Likewise.
12035 * config/i386/obsd.mh: Likewise.
12036 * config/i386/obsd64.mh: Likewise.
12037 * config/i386/sol2-64.mh: Likewise.
12038 * config/ia64/linux.mh: Likewise.
12039 * config/m32r/linux.mh: Likewise.
12040 * config/m68k/linux.mh: Likewise.
12041 * config/m68k/nbsdelf.mh: Likewise.
12042 * config/m68k/obsd.mh: Likewise.
12043 * config/m88k/obsd.mh: Likewise.
12044 * config/mips/fbsd.mh: Likewise.
12045 * config/mips/linux.mh: Likewise.
12046 * config/mips/nbsd.mh: Likewise.
12047 * config/mips/obsd64.mh: Likewise.
12048 * config/pa/linux.mh: Likewise.
12049 * config/pa/nbsd.mh: Likewise.
12050 * config/pa/obsd.mh: Likewise.
12051 * config/powerpc/aix.mh: Likewise.
12052 * config/powerpc/fbsd.mh: Likewise.
12053 * config/powerpc/linux.mh: Likewise.
12054 * config/powerpc/nbsd.mh: Likewise.
12055 * config/powerpc/obsd.mh: Likewise.
12056 * config/powerpc/ppc64-linux.mh: Likewise.
12057 * config/powerpc/spu-linux.mh: Likewise.
12058 * config/s390/linux.mh: Likewise.
12059 * config/sh/nbsd.mh: Likewise.
12060 * config/sparc/fbsd.mh: Likewise.
12061 * config/sparc/linux.mh: Likewise.
12062 * config/sparc/linux64.mh: Likewise.
12063 * config/sparc/nbsd64.mh: Likewise.
12064 * config/sparc/nbsdelf.mh: Likewise.
12065 * config/sparc/obsd64.mh: Likewise.
12066 * config/sparc/sol2.mh: Likewise.
12067 * config/tilegx/linux.mh: Likewise.
12068 * config/vax/nbsdelf.mh: Likewise.
12069 * config/vax/obsd.mh: Likewise.
12070 * config/xtensa/linux.mh: Likewise.
12071 * config/i386/i386gnu.mn: New file, with excerpts from
12072 "config/i386/i386gnu.mh".
12073 * configure: Regenerate.
12074 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12075 *.mh files under "gdb/config".
12076 * configure.nat: New file, with contents from the
12077 "gdb/config/*/*.mh" files.
12078
12079 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12080
12081 * btrace.c (btrace_clear): Free insn vector.
12082
12083 2017-05-05 Pedro Alves <palves@redhat.com>
12084
12085 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12086 * configure: Regenerate.
12087
12088 2017-05-04 Pedro Alves <palves@redhat.com>
12089
12090 * Makefile.in (SFILES): Add progspace-and-thread.c.
12091 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12092 (COMMON_OBS): Add progspace-and-thread.o.
12093 * breakpoint.c: Include "progspace-and-thread.h".
12094 (update_inserted_breakpoint_locations)
12095 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12096 Use scoped_restore_current_pspace_and_thread.
12097 (create_std_terminate_master_breakpoint): Use
12098 scoped_restore_current_program_space.
12099 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12100 (print_breakpoint_location): Use
12101 scoped_restore_current_program_space.
12102 (bp_loc_is_permanent): Use
12103 scoped_restore_current_pspace_and_thread.
12104 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12105 (download_tracepoint_locations): Use
12106 scoped_restore_current_pspace_and_thread.
12107 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12108 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12109 (enum step_over_calls_kind): Moved from inferior.h.
12110 (class scoped_restore_current_thread): New class.
12111 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12112 declaration.
12113 (scoped_restore_current_thread): New class.
12114 * infcmd.c: Include "common/gdb_optional.h".
12115 (continue_1, proceed_after_attach): Use
12116 scoped_restore_current_thread.
12117 (notice_new_inferior): Use scoped_restore_current_thread.
12118 * inferior.c: Include "progspace-and-thread.h".
12119 (restore_inferior, save_current_inferior): Delete.
12120 (add_inferior_command, clone_inferior_command): Use
12121 scoped_restore_current_pspace_and_thread.
12122 * inferior.h (scoped_restore_current_inferior): New class.
12123 * infrun.c: Include "progspace-and-thread.h" and
12124 "common/gdb_optional.h".
12125 (follow_fork_inferior): Use
12126 scoped_restore_current_pspace_and_thread.
12127 (scoped_restore_exited_inferior): New class.
12128 (handle_vfork_child_exec_or_exit): Use
12129 scoped_restore_exited_inferior,
12130 scoped_restore_current_pspace_and_thread,
12131 scoped_restore_current_thread and scoped_restore.
12132 (fetch_inferior_event): Use scoped_restore_current_thread.
12133 * linespec.c (decode_line_full, decode_line_1): Use
12134 scoped_restore_current_program_space.
12135 * mi/mi-main.c: Include "progspace-and-thread.h".
12136 (exec_continue): Use scoped_restore_current_thread.
12137 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12138 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12139 * proc-service.c (ps_pglobal_lookup): Use
12140 scoped_restore_current_program_space.
12141 * progspace-and-thread.c: New file.
12142 * progspace-and-thread.h: New file.
12143 * progspace.c (release_program_space, clone_program_space): Use
12144 scoped_restore_current_program_space.
12145 (restore_program_space, save_current_program_space)
12146 (save_current_space_and_thread): Delete.
12147 (switch_to_program_space_and_thread): Moved to
12148 progspace-and-thread.c.
12149 * progspace.h (save_current_program_space)
12150 (save_current_space_and_thread): Delete declarations.
12151 (scoped_restore_current_program_space): New class.
12152 * remote.c (remote_btrace_maybe_reopen): Use
12153 scoped_restore_current_thread.
12154 * symtab.c: Include "progspace-and-thread.h".
12155 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12156 * thread.c (print_thread_info_1): Use
12157 scoped_restore_current_thread.
12158 (struct current_thread_cleanup): Delete.
12159 (do_restore_current_thread_cleanup)
12160 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12161 (scoped_restore_current_thread::~scoped_restore_current_thread):
12162 ... this new dtor.
12163 (make_cleanup_restore_current_thread): Rename/convert to ...
12164 (scoped_restore_current_thread::scoped_restore_current_thread):
12165 ... this new ctor.
12166 (thread_apply_all_command): Use scoped_restore_current_thread.
12167 (thread_apply_command): Use scoped_restore_current_thread.
12168 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12169 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12170
12171 2017-05-04 Pedro Alves <palves@redhat.com>
12172
12173 * thread.c (make_cleanup_restore_current_thread): Move
12174 find_thread_ptid call before the is_stopped call. Assert that the
12175 thread is found. Replace is_stopped call by checking the thread's
12176 state directly. Remove unnecessary NULL-thread check.
12177
12178 2017-05-04 Pedro Alves <palves@redhat.com>
12179
12180 * corelow.c (thread_section_name): New class.
12181 (get_core_register_section, get_core_siginfo): Use it.
12182
12183 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12184
12185 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12186 (get_core_register_section): Remove xfree of NULL pointer.
12187
12188 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12189
12190 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12191 * regcache.c (regcache::raw_supply_zeroed): New function.
12192 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12193
12194 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12195
12196 * gdbarch.sh: Remove commented out definition of
12197 TARGET_CHAR_BIT.
12198 * gdbarch.h: Re-generate.
12199
12200 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12201
12202 * configure: Regenerate.
12203
12204 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12205
12206 * solib-target.c (solib_target_relocate_section_addresses):
12207 Remove num_section_bases, num_bases, segment_bases variables.
12208
12209 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12210
12211 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12212
12213 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12214
12215 * solib-target.c: Include <vector>
12216 (struct lm_info_target) <~lm_info_target>: Remove.
12217 <segment_bases, section_bases>: Change type to
12218 std::vector<CORE_ADDR>.
12219 (library_list_start_segment, library_list_start_section,
12220 library_list_end_library,
12221 solib_target_relocate_section_addresses): Adjust.
12222
12223 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12224
12225 * gdbarch.sh (software_single_step): Change return type to
12226 std::vector<CORE_ADDR>.
12227 * gdbarch.c, gdbarch.h: Re-generate.
12228 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12229 Adjust.
12230 (arm_deal_with_atomic_sequence_raw): Adjust.
12231 (thumb_get_next_pcs_raw): Adjust.
12232 (arm_get_next_pcs_raw): Adjust.
12233 (arm_get_next_pcs): Adjust.
12234 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12235 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12236 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12237 (alpha_software_single_step): Adjust.
12238 * alpha-tdep.h (alpha_software_single_step): Adjust.
12239 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12240 * arm-tdep.c (arm_software_single_step): Adjust.
12241 (arm_breakpoint_kind_from_current_state): Adjust.
12242 * arm-tdep.h (arm_software_single_step): Adjust.
12243 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12244 * cris-tdep.c (cris_software_single_step): Adjust.
12245 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12246 (micromips_deal_with_atomic_sequence): Adjust.
12247 (deal_with_atomic_sequence): Adjust.
12248 (mips_software_single_step): Adjust.
12249 * mips-tdep.h (mips_software_single_step): Adjust.
12250 * moxie-tdep.c (moxie_software_single_step): Adjust.
12251 * nios2-tdep.c (nios2_software_single_step): Adjust.
12252 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12253 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12254 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12255 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12256 * sparc-tdep.c (sparc_software_single_step): Adjust.
12257 * spu-tdep.c (spu_software_single_step): Adjust.
12258 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12259
12260 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12261
12262 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12263 * gdbarch.h: Re-generate.
12264
12265 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12266
12267 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12268 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12269 * python/py-instruction.c, python/py-instruction.h: New file.
12270 * python/py-record.c: Add py-instruction.h include.
12271 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12272 gdb.RecordInstruction.
12273 * python/python-internal.h: Add gdbpy_initialize_instruction
12274 declaration.
12275 * python/python.c (do_start_initialization): Add
12276 gdbpy_initialize_instruction.
12277
12278 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12279
12280 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12281 Remove.
12282 (btrace_func_from_recpy_func): New function.
12283 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12284 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12285 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12286 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12287 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12288 Also, use new helper functions.
12289 (btpy_list_item): Use new helper functions.
12290 (recpy_bt_function_call_history): Use new type name.
12291 (btpy_call_getset): Remove.
12292 (gdbpy_initialize_btrace): Remove code to initialize
12293 gdb.BtraceFunctionCall.
12294 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12295 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12296 recpy_bt_func_prev, recpy_bt_func_next): New export.
12297 * python/py-record.c (recpy_func_type): New static object.
12298 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12299 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12300 recpy_func_next): New function.
12301 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12302 (recpy_func_getset): New static object.
12303 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12304 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12305
12306 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12307
12308 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12309 (btpy_object, btpy_insn_type, btpy_new): Remove.
12310 (btpy_list_object): Use gdb.RecordInstruction type instead of
12311 gdb.BtraceInstruction type.
12312 (btrace_insn_from_recpy_insn): New function.
12313 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12314 btpy_new.
12315 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12316 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12317 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12318 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12319 instead of btpy_object.
12320 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12321 btpy_insn_data, btpy_insn_decode): Rename to ...
12322 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12323 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12324 recpy_bt_insn_decode): This. Also, use new helper functions.
12325 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12326 recpy_insn_type.
12327 (btpy_insn_getset): Remove.
12328 (gdbpy_initialize_btrace): Remove code to initialize
12329 gdb.BtraceInstruction. Use recpy_element_object.
12330 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12331 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12332 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12333 * python/py-record.c (recpy_insn_type): New static object.
12334 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12335 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12336 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12337 New function.
12338 (recpy_insn_getset): New static object.
12339 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12340 * python/py-record.h (recpy_element_object): New typedef.
12341 (recpy_insn_type, recpy_insn_new): New export.
12342
12343 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12344
12345 * py-record-btrace.c (btpy_insn_new): Removed.
12346 (btpy_insn_or_gap_new): New function.
12347 (btpy_insn_error): Removed.
12348 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12349 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12350 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12351 btpy_insn_or_gap_new instead of btpy_insn_new.
12352 (btpy_insn_getset): Remove btpy_insn_error.
12353 * py-record.c (recpy_gap_type): New static object.
12354 (recpy_gap_object): New typedef.
12355 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12356 recpy_gap_reason_string): New function.
12357 (recpy_gap_getset): New static object.
12358 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12359 * py-record.h (recpy_gap_new): New export.
12360
12361 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12362
12363 * python/py-record.c (recpy_ptid): Remove.
12364 (recpy_record_getset): Remove recpy_ptid.
12365
12366 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12367
12368 * btrace.c (btrace_fetch): Set inferior_ptid.
12369 * python/py-record-btrace.c: Add "py-record.h" include.
12370 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12371 recpy_bt_end, recpy_bt_instruction_history,
12372 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12373 in gdb.Record object instead of current ptid.
12374 * python/py-record.c: Include new "py-record.h" file.
12375 (recpy_record_object): Moved to py-record.h.
12376 * python/py-record.h: New file.
12377
12378 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12379
12380 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
12381 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
12382 indentation.
12383
12384 2017-05-01 Joel Brobecker <brobecker@adacore.com>
12385
12386 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
12387 the past maintainers section.
12388
12389 2017-04-28 Yao Qi <yao.qi@linaro.org>
12390
12391 * infcmd.c (get_return_value): Use regcache ctor, and remove
12392 cleanup.
12393
12394 2017-04-28 Yao Qi <yao.qi@linaro.org>
12395 Pedro Alves <palves@redhat.com>
12396
12397 * regcache.c (regcache::regcache): New tag dispatch ctor.
12398 (do_cooked_read): Moved above.
12399 (regcache_dup): Use the tag dispatch ctor..
12400 * regcache.h (regcache): Declare ctor, delete copy ctor and
12401 assignment operator, remove friend regcache_dup.
12402
12403 2017-04-28 Yao Qi <yao.qi@linaro.org>
12404
12405 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
12406 call method save instead of regcache_cpy.
12407 * regcache.h (struct regcache): Make regcache_dup a friend.
12408
12409 2017-04-28 Yao Qi <yao.qi@linaro.org>
12410
12411 * regcache.c (struct regcache): Move to regcache.h
12412 (regcache::arch): New method.
12413 (regcache_get_ptid): Update.
12414 (get_regcache_arch): Call arch method.
12415 (get_regcache_aspace): Call method aspace.
12416 (register_buffer): Change it to method.
12417 (regcache_save): Change it to regcache::save.
12418 (regcache_restore): Likewise.
12419 (regcache_cpy_no_passthrough): Remove the declaration.
12420 (regcache_cpy): Call methods restore and cpy_no_passthrough.
12421 (regcache_cpy_no_passthrough): Change it to method
12422 cpy_no_passthrough.
12423 (regcache_register_status): Change it to method
12424 get_register_status.
12425 (regcache_invalidate): Change it to method invalidate.
12426 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
12427 (regcache_raw_update): Change it to method raw_update.
12428 (regcache_raw_read): Likewise.
12429 (regcache_raw_read_signed): Likewise.
12430 (regcache_raw_read_unsigned): Likewise.
12431 (regcache_raw_write_signed): Likewise.
12432 (regcache_raw_write_unsigned): Likewise.
12433 (regcache_cooked_read): Likewise.
12434 (regcache_cooked_read_value): Likewise.
12435 (regcache_cooked_read_signed): Likewise.
12436 (regcache_cooked_read_unsigned): Likewise.
12437 (regcache_cooked_write_signed): Likewise.
12438 (regcache_cooked_write_unsigned): Likewise.
12439 (regcache_raw_set_cached_value): Likewise.
12440 (regcache_raw_write): Likewise.
12441 (regcache_cooked_write): Likewise.
12442 (regcache_xfer_part): Likewise.
12443 (regcache_raw_read_part): Likewise.
12444 (regcache_raw_write_part): Likewise.
12445 (regcache_cooked_read_part): Likewise.
12446 (regcache_cooked_write_part): Likewise.
12447 (regcache_raw_supply): Likewise.
12448 (regcache_raw_collect): Likewise.
12449 (regcache_transfer_regset): Likewise.
12450 (regcache_supply_regset): Likewise.
12451 (regcache_collect_regset): Likewise.
12452 (regcache_debug_print_register): Likewise.
12453 (enum regcache_dump_what): Move it to regcache.h.
12454 (regcache_dump): Change it to method dump.
12455 * regcache.h (enum regcache_dump_what): New.
12456 (class regcache): New.
12457 * target.c (target_fetch_registers): Call method
12458 debug_print_register.
12459 (target_store_registers): Likewise.
12460
12461 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12462
12463 * windows-nat.c (struct lm_info_windows): Initialize field.
12464 (windows_make_so): Allocate lm_info_windows with new.
12465 (windows_free_so): Free lm_info_windows with delete.
12466
12467 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12468
12469 * solib-darwin.c (struct lm_info_darwin): Initialize field.
12470 (darwin_current_sos): Allocate lm_info_darwin with new, remove
12471 cleanup.
12472 (darwin_free_so): Free lm_info_darwin with delete.
12473
12474 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12475
12476 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
12477 <l_addr_p>: Change type to bool.
12478 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
12479 (svr4_free_so): Free lm_info_svr4 with delete.
12480 (svr4_copy_library_list): Replace memcpy with call to copy
12481 constructor.
12482 (library_list_start_library, svr4_default_sos): Allocate
12483 lm_info_svr4 with new.
12484
12485 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12486
12487 * solib-target.c (struct lm_info_target): Add destructor,
12488 initialize fields.
12489 <name>: Change type to std::string.
12490 (library_list_start_library): Allocate lm_info_target with new.
12491 (solib_target_free_library_list): Free lm_info_target with
12492 delete.
12493 (solib_target_current_sos): Adapt to std::string.
12494 (solib_target_free_so): Free lm_info_target with delete.
12495
12496 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12497
12498 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12499 fields.
12500 (frv_current_sos): Allocate lm_info_frv with new.
12501 (frv_relocate_main_executable): Free lm_info_frv with delete,
12502 allocate with new.
12503 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12504
12505 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12506
12507 * solib-frv.c (struct lm_info_frv): Fix indentation.
12508
12509 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12510
12511 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12512 map field.
12513 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12514 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12515 and allocate with new.
12516 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12517
12518 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12519
12520 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12521 <filename, member_name>: Change type to std::string.
12522 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12523 (library_list_start_library): Allocate lm_info_aix with new.
12524 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12525 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12526 with copy constructor.
12527
12528 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12529
12530 * solist.h (struct lm_info): Remove.
12531 (struct lm_info_base): New class.
12532 (struct so_list) <lm_info>: Change type to lm_info_base *.
12533 * nto-tdep.c (struct lm_info): Remove.
12534 (lm_addr): Adjust.
12535 * solib-aix.c (struct lm_info): Rename to ...
12536 (struct lm_info_aix): ... this. Extend lm_info_base.
12537 (lm_info_p): Rename to ...
12538 (lm_info_aix_p): ... this, and adjust.
12539 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
12540 solib_aix_parse_libraries, library_list_start_library,
12541 solib_aix_free_library_list, solib_aix_parse_libraries,
12542 solib_aix_get_library_list,
12543 solib_aix_relocate_section_addresses, solib_aix_free_so,
12544 solib_aix_get_section_offsets,
12545 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
12546 Adjust.
12547 (struct solib_aix_inferior_data) <library_list>: Adjust.
12548 * solib-darwin.c (struct lm_info): Rename to ...
12549 (struct lm_info_darwin): ... this. Extend lm_info_base.
12550 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
12551 * solib-dsbt.c (struct lm_info): Rename to ...
12552 (struct lm_info_dsbt): ... this. Extend lm_info_base.
12553 (struct dsbt_info) <main_executable_lm_info): Adjust.
12554 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
12555 dsbt_relocate_section_addresses): Adjust.
12556 * solib-frv.c (struct lm_info): Rename to ...
12557 (struct lm_info_frv): ... this. Extend lm_info_base.
12558 (main_executable_lm_info): Adjust.
12559 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
12560 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
12561 find_canonical_descriptor_in_load_object,
12562 frv_fdpic_find_canonical_descriptor): Adjust.
12563 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12564 to lm_info_svr4.
12565 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12566 svr4_clear_so, svr4_copy_library_list,
12567 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12568 svr4_current_sos, svr4_fetch_objfile_link_map,
12569 solist_update_incremental): Adjust.
12570 * solib-svr4.h (struct lm_info_svr4): Move here from
12571 solib-svr4.c.
12572 * solib-target.c (struct lm_info): Rename to ...
12573 (struct lm_info_target): ... this. Extend lm_info_base.
12574 (lm_info_p): Rename to ...
12575 (lm_info_target_p): ... this.
12576 (solib_target_parse_libraries, library_list_start_segment,
12577 library_list_start_section, library_list_start_library,
12578 library_list_end_library, solib_target_free_library_list,
12579 solib_target_current_sos, solib_target_free_so,
12580 solib_target_relocate_section_addresses): Adjust.
12581 * windows-nat.c (struct lm_info): Rename to ...
12582 (struct lm_info_windows): ... this. Extend lm_info_base.
12583 (windows_make_so, handle_load_dll, handle_unload_dll,
12584 windows_xfer_shared_libraries): Adjust.
12585
12586 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12587
12588 * solib-darwin.c (struct darwin_so_list): Remove.
12589 (darwin_current_sos): Allocate an so_list object instead of a
12590 darwin_so_list, separately allocate an lm_info object.
12591 (darwin_free_so): Free lm_info.
12592
12593 2017-04-28 John Baldwin <jhb@FreeBSD.org>
12594
12595 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
12596 with fprintf_filtered.
12597
12598 2017-04-28 Yao Qi <yao.qi@linaro.org>
12599
12600 * regcache.c (regcache::regcache): New function.
12601 (regcache::~regcache): New function.
12602 (regcache_xmalloc_1): Remove.
12603 (regcache_xmalloc): Call new regcache.
12604 (regcache_xfree): Call delete regcache.
12605 (get_thread_arch_aspace_regcache): Call new regcache.
12606
12607 2017-04-28 Yao Qi <yao.qi@linaro.org>
12608
12609 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
12610 lwp instead of ptid_get_lwp.
12611
12612 2017-04-28 Yao Qi <yao.qi@linaro.org>
12613
12614 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
12615 lwp_info instead of getting from inferior_ptid.
12616
12617 2017-04-27 Keith Seitz <keiths@redhat.com>
12618
12619 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
12620 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
12621 (CV_CONVERSION_BADNESS): Define.
12622 (rank_one_type): Remove overly restrictive rvalue reference
12623 rank checks.
12624 Add cv-qualifier checks and subranks for type equality.
12625 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
12626 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
12627 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
12628
12629 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
12630
12631 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
12632 count when creating the object.
12633
12634 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
12635 Ulrich Weigand <uweigand@de.ibm.com>
12636
12637 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
12638 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
12639 is used in AIX.
12640 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
12641 (process_xcoff_symbol): Likewise.
12642 (scan_xcoff_symtab): Likewise.
12643
12644 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12645
12646 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
12647 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
12648 (ia64_access_reg): Use get_frame_register_unsigned.
12649 (ia64_access_rse_reg): Likewise.
12650 (ia64_libunwind_frame_prev_register): Likewise.
12651
12652 2017-04-26 Jiong Wang <jiong.wang@arm.com>
12653
12654 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
12655 * gdbarch.c: Regenerated.
12656 * gdbarch.h: Regenerated.
12657 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
12658 visibility external.
12659 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
12660 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
12661 (enum cfa_how_kind): Move to ...
12662 (struct dwarf2_frame_state_reg_info): Likewise.
12663 (struct dwarf2_frame_state): Likewise.
12664 * dwarf2-frame.h: ... here.
12665 (dwarf2_frame_state_alloc_regs): New declaration.
12666 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
12667 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
12668
12669 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12670
12671 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
12672 regcache_raw_read_unsigned.
12673 (xtensa_pseudo_register_write): Likewise.
12674
12675 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12676
12677 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
12678 (nds32_pseudo_register_write): Likewise.
12679
12680 2017-04-25 Yao Qi <yao.qi@linaro.org>
12681
12682 * regcache.c (struct regcache) <readonly_p>: Change its type
12683 to bool.
12684 (regcache_xmalloc_1): Update parameter type and callers update.
12685
12686 2017-04-25 Yao Qi <yao.qi@linaro.org>
12687
12688 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
12689 set_gdbarch_wchar_bit.
12690 * arm-tdep.c (arm_gdbarch_init): Likewise.
12691
12692 2017-04-25 Pedro Alves <palves@redhat.com>
12693
12694 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
12695 (BothAreRelocatable, memcopy, memmove): Don't define.
12696 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
12697 macros.
12698
12699 2017-04-25 Pedro Alves <palves@redhat.com>
12700
12701 * common/common-defs.h: Include "common/poison.h".
12702 * common/function-view.h: (Not, Or, Requires): Move to traits.h
12703 and adjust.
12704 * common/poison.h: New file.
12705 * common/traits.h: Include <type_traits>.
12706 (Not, Or, Requires): New, moved from common/function-view.h.
12707
12708 2017-04-25 Pedro Alves <palves@redhat.com>
12709
12710 * breakpoint.h (struct breakpoint): In-class initialize all
12711 fields. Make boolean fields "bool".
12712 * breakpoint.c (init_raw_breakpoint_without_location): Remove
12713 memset call and initializations no longer necessary.
12714
12715 2017-04-25 Pedro Alves <palves@redhat.com>
12716
12717 * btrace.c (pt_btrace_insn_flags): Change parameter type to
12718 reference.
12719 (pt_btrace_insn): New function.
12720 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
12721
12722 2017-04-25 Pedro Alves <palves@redhat.com>
12723
12724 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
12725 "base" field and inherit from "bp_location" instead. Add
12726 non-default ctor.
12727 (allocate_location_exception): Use new non-default ctor.
12728 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
12729 (init_bp_location): Convert to ...
12730 (bp_location::bp_location): ... this new ctor, and remove memset
12731 call.
12732 (base_breakpoint_allocate_location): Use the new non-default ctor.
12733 * breakpoint.h (bp_location): Now a class. Declare default and
12734 non-default ctors. In-class initialize all members.
12735 (init_bp_location): Remove declaration.
12736
12737 2017-04-25 Pedro Alves <palves@redhat.com>
12738
12739 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
12740 assignment operator.
12741
12742 2017-04-24 Yao Qi <yao.qi@linaro.org>
12743
12744 * doublest.c (convert_doublest_to_floatformat): Call
12745 floatformat_totalsize_bytes.
12746
12747 2017-04-22 Tom Tromey <tom@tromey.com>
12748
12749 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
12750 ui_out_emit_list.
12751 * stack.c (print_frame): Use ui_out_emit_list.
12752 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12753 ui_out_emit_list.
12754 * mi/mi-main.c (print_one_inferior)
12755 (mi_cmd_data_list_register_names)
12756 (mi_cmd_data_list_register_values, mi_cmd_list_features)
12757 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
12758 ui_out_emit_list.
12759 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
12760 (mi_output_solib_attribs): Use ui_out_emit_list,
12761 ui_out_emit_tuple.
12762 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
12763 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
12764 (mi_cmd_stack_list_args, list_args_or_locals): Use
12765 ui_out_emit_list.
12766 * disasm.c (do_assembly_only): Use ui_out_emit_list.
12767 * breakpoint.c (print_solib_event, output_thread_groups): Use
12768 ui_out_emit_list.
12769
12770 2017-04-22 Tom Tromey <tom@tromey.com>
12771
12772 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
12773 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
12774 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
12775
12776 2017-04-22 Tom Tromey <tom@tromey.com>
12777
12778 * tracepoint.c (tvariables_info_1)
12779 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
12780
12781 2017-04-22 Tom Tromey <tom@tromey.com>
12782
12783 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
12784 annotate_arg_emitter.
12785 * breakpoint.c (print_mention_watchpoint)
12786 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
12787 * annotate.h (struct annotate_arg_emitter): New.
12788
12789 2017-04-22 Tom Tromey <tom@tromey.com>
12790
12791 * record-btrace.c (record_btrace_insn_history)
12792 (record_btrace_insn_history_range, record_btrace_call_history)
12793 (record_btrace_call_history_range): Use ui_out_emit_tuple.
12794 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
12795 ui_out_emit_tuple.
12796 * stack.c (print_frame_info): Use ui_out_emit_tuple.
12797 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
12798 * skip.c (skip_info): Use ui_out_emit_tuple.
12799 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
12800 * progspace.c (print_program_space): Use ui_out_emit_tuple.
12801 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
12802 * osdata.c (info_osdata): Use ui_out_emit_tuple.
12803 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12804 ui_out_emit_tuple.
12805 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
12806 (output_register, mi_cmd_data_read_memory)
12807 (mi_cmd_data_read_memory_bytes, mi_load_progress)
12808 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
12809 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
12810 Use ui_out_emit_tuple.
12811 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
12812 ui_out_emit_tuple.
12813 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12814 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
12815 * linux-thread-db.c (info_auto_load_libthread_db): Use
12816 ui_out_emit_tuple.
12817 * inferior.c (print_inferior): Use ui_out_emit_tuple.
12818 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
12819 * disasm.c (do_mixed_source_and_assembly_deprecated)
12820 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
12821 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
12822 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
12823 * breakpoint.c (print_one_breakpoint_location)
12824 (print_one_breakpoint): Use ui_out_emit_tuple.
12825 * auto-load.c (print_script, info_auto_load_cmd): Use
12826 ui_out_emit_tuple.
12827 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
12828
12829 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
12830
12831 * thread.c (print_thread_info_1): Remove dead code.
12832
12833 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12834
12835 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
12836 GDB_SELF_TEST.
12837 * arm-tdep.c (selftests::arm_record_test): Likewise.
12838
12839 2017-04-21 Yao Qi <yao.qi@linaro.org>
12840
12841 * regcache.c (regcache_restore): Remove argument 2. Replace
12842 argument 3 with regcache. Get register status from
12843 src->register_status and get register contents from
12844 register_buffer (src, regnum).
12845 (regcache_cpy): Update.
12846
12847 2017-04-19 Pedro Alves <palves@redhat.com>
12848
12849 * gdbthread.h (thread): Add missing closing parenthesis in
12850 comment.
12851
12852 2017-04-19 Pedro Alves <palves@redhat.com>
12853
12854 * common/refcounted-object.h: New file.
12855 * gdbthread.h: Include "common/refcounted-object.h".
12856 (thread_info): Inherit from refcounted_object and add comments.
12857 (thread_info::incref, thread_info::decref)
12858 (thread_info::m_refcount): Delete.
12859 (thread_info::deletable): Use the refcounted_object::refcount()
12860 method.
12861 * inferior.c (current_inferior_): Add comment.
12862 (set_current_inferior): Increment/decrement refcounts.
12863 (prune_inferiors, remove_inferior_command): Skip inferiors marked
12864 not-deletable instead of comparing with the current inferior.
12865 (initialize_inferiors): Increment the initial inferior's refcount.
12866 * inferior.h (struct inferior): Forward declare.
12867 Include "common/refcounted-object.h".
12868 (current_inferior, set_current_inferior): Move declaration to
12869 before struct inferior's definition, and fix comment.
12870 (inferior): Inherit from refcounted_object. Add comments.
12871 * thread.c (switch_to_thread_no_regs): Reference the thread's
12872 inferior pointer directly instead of doing a ptid lookup.
12873 (switch_to_no_thread): New function.
12874 (switch_to_thread(thread_info *)): New function, factored out
12875 from ...
12876 (switch_to_thread(ptid_t)): ... this.
12877 (restore_current_thread): Delete.
12878 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
12879 fields, and add 'inf' field.
12880 (do_restore_current_thread_cleanup): Check whether old->inf is
12881 alive instead of looking up an inferior by ptid. Use
12882 switch_to_thread and switch_to_no_thread.
12883 (restore_current_thread_cleanup_dtor): Use old->inf directly
12884 instead of lookup up an inferior by id. Decref the inferior.
12885 Don't restore 'removable'.
12886 (make_cleanup_restore_current_thread): Same the inferior pointer
12887 in old, instead of the inferior number. Incref the inferior.
12888 Don't save/clear 'removable'.
12889
12890 2017-04-19 Pedro Alves <palves@redhat.com>
12891
12892 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12893 unittests/scoped_restore-selftests.c.
12894 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
12895 * common/scoped_restore.h (scoped_restore_base): Make "class".
12896 (scoped_restore_base::release): New public method.
12897 (scoped_restore_base::scoped_restore_base): New protected ctor.
12898 (scoped_restore_base::m_saved_var): New protected field.
12899 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
12900 scoped_restore_base base class instead of m_saved_var directly.
12901 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
12902 (scoped_restore_tmpl::scoped_restore_tmpl(const
12903 scoped_restore_tmpl<T>&)): Likewise.
12904 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
12905 method.
12906 (scoped_restore_tmpl::saved_var): New method.
12907 (scoped_restore_tmpl::m_saved_var): Delete.
12908 * inferior.h (inferior::detaching): Now a bool.
12909 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
12910 cleanup.
12911 * unittests/scoped_restore-selftests.c: New file.
12912
12913 2017-04-19 Pedro Alves <palves@redhat.com>
12914
12915 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
12916 Re-sort in alphabetic order.
12917
12918 2017-04-18 Pedro Alves <palves@redhat.com>
12919
12920 * xml-support.c (obstack_xml_printf): Delete.
12921 * xml-support.h (obstack_xml_printf): Delete.
12922
12923 2017-04-18 Pedro Alves <palves@redhat.com>
12924
12925 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
12926 vdebug, verror, body_text, start_element, end_element, name,
12927 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
12928 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
12929 is_xinclude>: Make private and add m_ prefix.
12930 (gdb_xml_parser::body_text): New method, based on ...
12931 (gdb_xml_body_text): ... this. Adjust.
12932 (gdb_xml_parser::vdebug): New method, based on ...
12933 (gdb_xml_debug): ... this. Adjust.
12934 (gdb_xml_parser::verror): New method, based on ...
12935 (gdb_xml_error): ... this. Adjust.
12936 (gdb_xml_parser::start_element): New method, based on ...
12937 (gdb_xml_start_element): ... this. Adjust.
12938 (gdb_xml_start_element_wrapper): Defer to
12939 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
12940 (gdb_xml_parser::end_element): New method, based on ...
12941 (gdb_xml_end_element_wrapper): ... this. Adjust.
12942 (gdb_xml_parser::~gdb_xml_parser): Adjust.
12943 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
12944 (gdb_xml_parser::use_dtd): New method, based on ...
12945 (gdb_xml_use_dtd): ... this. Adjust.
12946 (gdb_xml_parser::parse): New method, based on ...
12947 (gdb_xml_parse): ... this. Adjust.
12948 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
12949 (xinclude_start_include): Adjust to call the parser's name method.
12950 (xml_xinclude_default, xml_xinclude_start_doctype)
12951 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
12952 method.
12953 (xml_process_xincludes): Adjust to call parser methods.
12954 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
12955 declarations.
12956
12957 2017-04-18 Pedro Alves <palves@redhat.com>
12958
12959 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
12960 gdb::optional<std::string>.
12961 * xml-support.c: Include <string>.
12962 (scope_level::scope_level(scope_level &&))
12963 (scope_level::~scope_level): Delete.
12964 (scope_level::body): Now a std::string.
12965 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
12966 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
12967 parameter.
12968 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
12969 (xinclude_parsing_data::output): Now a std::string reference.
12970 (xinclude_start_include): Adjust.
12971 (xml_xinclude_default): Adjust.
12972 (xml_process_xincludes): Add 'output' parameter, and return bool.
12973 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
12974 and return bool.
12975 * xml-tdesc.c: Include <unordered_map> and <string>.
12976 (tdesc_xml_cache): Delete.
12977 (tdesc_xml_cache_s): Delete.
12978 (xml_cache): Now an std::unordered_map.
12979 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
12980 (target_fetch_description_xml): Change return type to
12981 gdb::optional<std::string>, and adjust.
12982 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
12983 (target_fetch_description_xml): Change return type to
12984 gdb::optional<std::string>.
12985
12986 2017-04-18 Pedro Alves <palves@redhat.com>
12987
12988 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12989 unittests/optional-selftests.c.
12990 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
12991 * unittests/optional-selftests.c: New file.
12992 * unittests/optional/assignment/1.cc: New file.
12993 * unittests/optional/assignment/2.cc: New file.
12994 * unittests/optional/assignment/3.cc: New file.
12995 * unittests/optional/assignment/4.cc: New file.
12996 * unittests/optional/assignment/5.cc: New file.
12997 * unittests/optional/assignment/6.cc: New file.
12998 * unittests/optional/assignment/7.cc: New file.
12999 * unittests/optional/cons/copy.cc: New file.
13000 * unittests/optional/cons/default.cc: New file.
13001 * unittests/optional/cons/move.cc: New file.
13002 * unittests/optional/cons/value.cc: New file.
13003 * unittests/optional/in_place.cc: New file.
13004 * unittests/optional/observers/1.cc: New file.
13005 * unittests/optional/observers/2.cc: New file.
13006
13007 2017-04-18 Pedro Alves <palves@redhat.com>
13008
13009 * common/gdb_optional.h: Include common/traits.h.
13010 (in_place_t): New type.
13011 (in_place): New constexpr variable.
13012 (optional::optional): Remove member initialization of
13013 m_instantiated.
13014 (optional::optional(in_place_t...)): New constructor.
13015 (optional::~optional): Use reset.
13016 (optional::optional(const optional&)): New.
13017 (optional::optional(const optional&&)): New.
13018 (optional::optional(T &)): New.
13019 (optional::optional(T &&)): New.
13020 (operator::operator=(const optional &)): New.
13021 (operator::operator=(optional &&)): New.
13022 (operator::operator= (const T &))
13023 (operator::operator= (T &&))
13024 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13025 (operator::reset): New.
13026 (operator::m_instantiated):: Add in-class initializer.
13027 * common/traits.h: Include <type_traits>.
13028 (struct And): New types.
13029
13030 2017-04-18 Pedro Alves <palves@redhat.com>
13031
13032 * xml-support.c: Include <vector>.
13033 (scope_level::scope_level(const gdb_xml_element *))
13034 (scope_level::scope_level(scope_level&&)): New.
13035 (scope_level::~scope_level): New.
13036 (scope_level_s): Delete.
13037 (gdb_xml_parser::scopes): Now a std::vector.
13038 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13039 Use std::vector.
13040 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13041 scope cleanup code.
13042 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13043 of the scopes member. Use std::vector::emplace_back.
13044
13045 2017-04-18 Pedro Alves <palves@redhat.com>
13046
13047 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13048 a bool.
13049 (gdb_xml_end_element): Change type of first parameter.
13050 (gdb_xml_cleanup): Rename to ...
13051 (gdb_xml_parser::~gdb_xml_parser): ... this.
13052 (gdb_xml_create_parser_and_cleanup): Delete with ...
13053 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13054 to this new ctor.
13055 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13056 using gdb_xml_create_parser_and_cleanup.
13057 (xinclude_parsing_data): Add ctor/dtor.
13058 (xml_xinclude_cleanup): Delete.
13059 (xml_process_xincludes): Create a local xinclude_parsing_data
13060 instead of heap-allocating one. Create a local gdb_xml_parser
13061 instead of heap-allocating one with
13062 gdb_xml_create_parser_and_cleanup.
13063
13064 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13065
13066 PR threads/20743
13067 * fbsd-nat.c (resume_one_thread_cb): Remove.
13068 (resume_all_threads_cb): Remove.
13069 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13070 iterate_over_threads.
13071
13072 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13073
13074 * NEWS: Create a new section for the next release branch.
13075 Rename the section of the current branch, now that it has
13076 been cut.
13077
13078 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13079
13080 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13081 * version.in: Bump version to 8.0.50.DATE-git.
13082
13083 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13084
13085 PR gdb/21385
13086 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13087 independently of the host, and fix build breakage on Cygwin.
13088
13089 2017-04-13 Pedro Alves <palves@redhat.com>
13090
13091 * inferior.c (free_inferior): Convert to ...
13092 (inferior::~inferior): ... this dtor.
13093 (inferior::inferior): New ctor, factored out from ...
13094 (add_inferior_silent): ... here. Allocate the inferior with a new
13095 expression.
13096 (delete_inferior): Call delete instead of free_inferior.
13097 * inferior.h (gdb_environ, continuation): Forward declare.
13098 (inferior): Now a class. Add in-class initialization to all
13099 members. Make boolean fields bool, except 'detaching'.
13100 (inferior::inferior): New explicit ctor.
13101 (inferior::~inferior): New.
13102
13103 2017-04-13 Pedro Alves <palves@redhat.com>
13104
13105 * inferior.c (init_inferior_list): Delete.
13106 * inferior.h (init_inferior_list): Delete.
13107
13108 2017-04-13 Pedro Alves <palves@redhat.com>
13109
13110 PR threads/13217
13111 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13112 (top level): Call it twice, with different thread sets.
13113
13114 2017-04-13 Pedro Alves <palves@redhat.com>
13115
13116 * thread.c: Include <algorithm>.
13117 (thread_array_cleanup): Delete.
13118 (scoped_inc_dec_ref): New class.
13119 (live_threads_count): New function.
13120 (set_thread_refcount): Delete.
13121 (tp_array_compar_ascending): Now a bool.
13122 (tp_array_compar): Convert to a std::sort comparison function.
13123 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13124 and live_threads_count.
13125
13126 2017-04-13 Pedro Alves <palves@redhat.com>
13127
13128 * infrun.c (follow_fork_inferior): Also switch the current
13129 inferior.
13130
13131 2017-04-13 Pedro Alves <palves@redhat.com>
13132
13133 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13134 before calling create_internal_breakpoint.
13135
13136 2017-04-13 Pedro Alves <palves@redhat.com>
13137
13138 * fork-child.c (execv_argv): New class.
13139 (breakup_args): Refactored as ...
13140 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13141 Copy arguments to storage and replace separators with NULL
13142 terminators in place.
13143 (escape_bang_in_quoted_argument): Adjust to return bool.
13144 (execv_argv::execv_argv): New ctor.
13145 (execv_argv::init_for_shell): New method, factored out from
13146 fork_inferior. Don't strdup strings into the vector.
13147 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13148 Remove free_vector_argv call.
13149
13150 2017-04-13 Yao Qi <yao.qi@linaro.org>
13151
13152 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13153 tdep->rx_psw_type.
13154
13155 2017-04-13 Yao Qi <yao.qi@linaro.org>
13156
13157 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13158 * rx-tdep.c (rx_gdbarch_init): Likewise.
13159
13160 2017-04-13 Pedro Alves <palves@redhat.com>
13161
13162 * breakpoint.h (struct breakpoint): Reindent.
13163
13164 2017-04-13 Pedro Alves <palves@redhat.com>
13165
13166 * breakpoint.c (bp_location): Rename to ...
13167 (bp_locations): ... this. All references updated.
13168 (bp_location_count): Rename to ...
13169 (bp_locations_count): ... this. All references updated.
13170 (bp_location_placed_address_before_address_max): Rename to ...
13171 (bp_locations_placed_address_before_address_max): ... this. All
13172 references updated.
13173 (bp_location_shadow_len_after_address_max): Rename to ...
13174 (bp_locations_shadow_len_after_address_max): ... this. All
13175 references updated.
13176 (bp_location_compare_addrs): Rename to ...
13177 (bp_locations_compare_addrs): ... this. All references updated.
13178 (bp_location_compare):Rename to ...
13179 (bp_locations_compare): ... this. All references updated.
13180 (bp_location_target_extensions_update): Rename to ...
13181 (bp_locations_target_extensions_update): ... this. All references
13182 updated.
13183
13184 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13185
13186 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13187 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13188 'sgtty.h'.
13189 * common/gdb_termios.h: New file, with parts of "terminal.h".
13190 * inflow.c: Include "gdb_termios.h".
13191 * ser-unix.c: Include "gdb_termios.h".
13192 * terminal.h: Move terminal-related defines to
13193 "common/gdb_termios.h".
13194
13195 2017-04-12 Tom Tromey <tom@tromey.com>
13196
13197 * probe.c (parse_probes): Update.
13198 * location.h (delete_event_location): Don't declare.
13199 (event_location_deleter::operator()): Update.
13200 * location.c (event_location_deleter::operator()): Rename from
13201 delete_event_location.
13202 * linespec.h (linespec_result) <location>: Change type to
13203 event_location_up.
13204 * linespec.c (canonicalize_linespec, event_location_to_sals)
13205 (decode_objc): Update.
13206 (linespec_result): Don't call delete_event_location.
13207 * breakpoint.c (create_breakpoints_sal)
13208 (bkpt_probe_create_sals_from_location)
13209 (strace_marker_create_sals_from_location): Update.
13210
13211 2017-04-12 Tom Tromey <tom@tromey.com>
13212
13213 * linespec.h (struct linespec_result): Add constructor and
13214 destructor.
13215 (init_linespec_result, destroy_linespec_result)
13216 (make_cleanup_destroy_linespec_result): Don't declare.
13217 * linespec.c (init_linespec_result): Remove.
13218 (linespec_result::~linespec_result): Rename from
13219 destroy_linespec_result. Update.
13220 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13221 Remove.
13222 * breakpoint.c (create_breakpoint, break_range_command)
13223 (decode_location_default): Update.
13224 * ax-gdb.c (agent_command_1): Update.
13225
13226 2017-04-12 Tom Tromey <tom@tromey.com>
13227
13228 * remote.c (remote_download_tracepoint): Update.
13229 * python/py-breakpoint.c (bppy_get_location): Update.
13230 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13231 (gdbscm_breakpoint_location): Update.
13232 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13233 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13234 Change type to event_location_up.
13235 * breakpoint.c (create_overlay_event_breakpoint)
13236 (create_longjmp_master_breakpoint)
13237 (create_std_terminate_master_breakpoint)
13238 (create_exception_master_breakpoint)
13239 (breakpoint_event_location_empty_p, print_breakpoint_location)
13240 (print_one_breakpoint_location, create_thread_event_breakpoint)
13241 (init_breakpoint_sal, create_breakpoint)
13242 (print_recreate_ranged_breakpoint, break_range_command)
13243 (init_ada_exception_breakpoint, say_where): Update.
13244 (base_breakpoint_dtor): Don't call delete_event_location.
13245 (bkpt_print_recreate, tracepoint_print_recreate)
13246 (dprintf_print_recreate, update_static_tracepoint)
13247 (breakpoint_re_set_default): Update.
13248
13249 2017-04-12 Tom Tromey <tom@tromey.com>
13250
13251 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13252 type of "to_do". Update.
13253 (compute_stack_depth): Use std::vector.
13254
13255 2017-04-12 Tom Tromey <tom@tromey.com>
13256
13257 * printcmd.c (find_instruction_backward): Use std::vector.
13258
13259 2017-04-12 Tom Tromey <tom@tromey.com>
13260
13261 * symfile.c (objfilep): Remove typedef.
13262 (reread_symbols): Use a std::vector.
13263
13264 2017-04-12 Tom Tromey <tom@tromey.com>
13265
13266 * mi/mi-main.c (exec_direction_forward): Remove.
13267 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13268 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13269 scoped_restore.
13270 * guile/guile.c (guile_repl_command, guile_command)
13271 (gdbscm_execute_gdb_command): Use scoped_restore.
13272 * go-exp.y (go_parse): Use scoped_restore.
13273 * d-exp.y (d_parse): Use scoped_restore.
13274 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13275 * c-exp.y (c_parse): Use scoped_restore.
13276
13277 2017-04-12 Tom Tromey <tom@tromey.com>
13278
13279 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13280 (mi_parse): Update return type.
13281 (mi_parse_free): Remove.
13282 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13283 (mi_parse::~mi_parse): Rename from mi_parse_free.
13284 (mi_parse_cleanup): Remove.
13285 (mi_parse): Return a unique_ptr. Use new.
13286 * mi/mi-main.c (mi_execute_command): Update.
13287
13288 2017-04-12 Tom Tromey <tom@tromey.com>
13289
13290 * location.c (explicit_location_lex_one): Return a
13291 unique_xmalloc_ptr.
13292 (string_to_explicit_location): Update. Remove cleanups.
13293
13294 2017-04-12 Tom Tromey <tom@tromey.com>
13295
13296 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13297 (compare_value_and_voffset): Change type. Update.
13298 (compute_vtable_size): Change type of "offset_vec".
13299 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13300 (gnuv3_get_typeid): Remove extraneous declaration.
13301
13302 2017-04-12 Tom Tromey <tom@tromey.com>
13303
13304 * charset.h (wchar_iterator): Fix comment.
13305
13306 2017-04-12 Tom Tromey <tom@tromey.com>
13307
13308 * charset.c (iconv_wrapper): New class.
13309 (cleanup_iconv): Remove.
13310 (convert_between_encodings): Use it.
13311
13312 2017-04-12 Tom Tromey <tom@tromey.com>
13313
13314 * symfile.h (increment_reading_symtab): Update type.
13315 * symfile.c (decrement_reading_symtab): Remove.
13316 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13317 * psymtab.c (psymtab_to_symtab): Update.
13318 * dwarf2read.c (dw2_instantiate_symtab): Update.
13319
13320 2017-04-12 Tom Tromey <tom@tromey.com>
13321
13322 * jit.c (struct jit_reader): Declare separately. Add constructor
13323 and destructor. Change type of "handle".
13324 (loaded_jit_reader): Define separately.
13325 (jit_reader_load): Update. New "new".
13326 (jit_reader_unload_command): Use "delete".
13327 * gdb-dlfcn.h (struct dlclose_deleter): New.
13328 (gdb_dlhandle_up): New typedef.
13329 (gdb_dlopen, gdb_dlsym): Update types.
13330 (gdb_dlclose): Remove.
13331 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13332 (gdb_dlsym): Change type of "handle".
13333 (make_cleanup_dlclose): Remove.
13334 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13335 * compile/compile-c-support.c (load_libcc): Update.
13336
13337 2017-04-12 Tom Tromey <tom@tromey.com>
13338
13339 * symtab.h (find_pcs_for_symtab_line): Change return type.
13340 * symtab.c (find_pcs_for_symtab_line): Change return type.
13341 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13342 type of "vec". Update.
13343 (ltpy_get_pcs_for_line): Update.
13344 * linespec.c (decode_digits_ordinary): Update.
13345
13346 2017-04-12 Tom Tromey <tom@tromey.com>
13347
13348 * tracepoint.c (actions_command): Update.
13349 * python/python.c (python_command, python_interactive_command):
13350 Update.
13351 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13352 * guile/guile.c (guile_command): Update.
13353 * defs.h (read_command_lines, read_command_lines_1): Return
13354 command_line_up.
13355 (command_lines_deleter): New struct.
13356 (command_line_up): New typedef.
13357 * compile/compile.c (compile_code_command)
13358 (compile_print_command): Update.
13359 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13360 command_line_up.
13361 (make_cleanup_free_command_lines): Remove.
13362 * cli/cli-script.c (get_command_line, read_command_lines_1)
13363 (copy_command_lines): Return command_line_up.
13364 (while_command, if_command, read_command_lines, define_command)
13365 (document_command): Update.
13366 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13367 Remove.
13368 * breakpoint.h (breakpoint_set_commands): Change type of
13369 "commands".
13370 * breakpoint.c (breakpoint_set_commands): Change type of
13371 "commands". Update.
13372 (do_map_commands_command, update_dprintf_command_list)
13373 (create_tracepoint_from_upload): Update.
13374
13375 2017-04-12 Tom Tromey <tom@tromey.com>
13376
13377 * tracepoint.c (scope_info): Update.
13378 * spu-tdep.c (spu_catch_start): Update.
13379 * python/python.c (gdbpy_decode_line): Update.
13380 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
13381 * python/py-breakpoint.c (bppy_init): Update.
13382 * probe.c (parse_probes): Update.
13383 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
13384 * location.h (event_location_deleter): New struct.
13385 (event_location_up): New typedef.
13386 (new_linespec_location, new_address_location, new_probe_location)
13387 (new_explicit_location, copy_event_location)
13388 (string_to_event_location, string_to_event_location_basic)
13389 (string_to_explicit_location): Update return type.
13390 (make_cleanup_delete_event_location): Remove.
13391 * location.c (new_linespec_location, new_address_location)
13392 (new_probe_location, new_explicit_location, copy_event_location):
13393 Return event_location_up.
13394 (delete_event_location_cleanup)
13395 (make_cleanup_delete_event_location): Remove.
13396 (string_to_explicit_location, string_to_event_location_basic)
13397 (string_to_event_location): Return event_location_up.
13398 * linespec.c (canonicalize_linespec, event_location_to_sals)
13399 (decode_line_with_current_source)
13400 (decode_line_with_last_displayed, decode_objc): Update.
13401 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
13402 * completer.c (location_completer): Update.
13403 * cli/cli-cmds.c (edit_command, list_command): Update.
13404 * breakpoint.c (create_overlay_event_breakpoint)
13405 (create_longjmp_master_breakpoint)
13406 (create_std_terminate_master_breakpoint)
13407 (create_exception_master_breakpoint)
13408 (create_thread_event_breakpoint): Update.
13409 (init_breakpoint_sal): Update. Remove some dead code.
13410 (create_breakpoint_sal): Change type of "location". Update.
13411 (create_breakpoints_sal, create_breakpoint, break_command_1)
13412 (dprintf_command, break_range_command, until_break_command)
13413 (init_ada_exception_breakpoint)
13414 (strace_marker_create_sals_from_location)
13415 (update_static_tracepoint, trace_command, ftrace_command)
13416 (strace_command, create_tracepoint_from_upload): Update.
13417 * break-catch-throw.c (re_set_exception_catchpoint): Update.
13418 * ax-gdb.c (agent_command_1): Update.
13419
13420 2017-04-12 Pedro Alves <palves@redhat.com>
13421
13422 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
13423 * configure.tgt: Handle i[34567]86-*-go32* and
13424 i[34567]86-*-msdosdjgpp*.
13425 * i386-tdep.c (i386_svr4_reg_to_regnum):
13426 Make extern.
13427 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
13428 i386-go32-tdep.c.
13429 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
13430 * i386-go32-tdep.c: New file.
13431 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
13432 declarations.
13433
13434 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
13435
13436 * aix-thread.c (pd_status2str): Change return type to const char *.
13437
13438 2017-04-12 Pedro Alves <palves@redhat.com>
13439
13440 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
13441 calls to set_gdbarch_gnu_triplet_regexp.
13442
13443 2017-04-12 Pedro Alves <palves@redhat.com>
13444
13445 PR gdb/21323
13446 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
13447 New enum value.
13448 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
13449 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
13450 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
13451 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
13452 * gdbarch.h, gdbarch.c: Regenerate.
13453 * aarch64-tdep.c (aarch64_gdbarch_init): Override
13454 gdbarch_wchar_bit and gdbarch_wchar_signed.
13455 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
13456 * arm-tdep.c (arm_gdbarch_init): Likewise.
13457 * avr-tdep.c (avr_gdbarch_init): Likewise.
13458 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13459 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
13460 * i386-tdep.c (i386_go32_init_abi): Likewise.
13461 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13462 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13463 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
13464 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
13465 * sh-tdep.c (sh_gdbarch_init): Likewise.
13466 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13467 * sparc64-tdep.c (sparc64_init_abi): Likewise.
13468 * windows-tdep.c (windows_init_abi): Likewise.
13469 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13470
13471 2017-04-12 Pedro Alves <palves@redhat.com>
13472
13473 PR c++/21323
13474 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
13475 cplus_primitive_type_char32_t>: New enum values.
13476 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
13477 and cplus_primitive_type_char32_t.
13478 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
13479 32, use the archtecture's built-in type for char16_t and char32_t,
13480 respectively. Otherwise, fallback to init_integer_type as before,
13481 but make the type unsigned, and issue a complaint.
13482 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
13483
13484 2017-04-12 Alan Hayward <alan.hayward@arm.com>
13485
13486 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
13487 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13488
13489 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13490
13491 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13492 'const char *'.
13493
13494 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13495
13496 * common/common-utils.c (free_vector_argv): New function.
13497 * common/common-utils.h: Include <vector>.
13498 (free_vector_argv): New prototype.
13499 * darwin-nat.c (darwin_create_inferior): Rewrite function
13500 prototype in order to constify "exec_file" and accept a
13501 "std::string" for "allargs".
13502 * fork-child.c: Include <vector>.
13503 (breakup_args): Rewrite function, using C++.
13504 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13505 and accept "std::string" for "allargs". Update the code to
13506 calculate "argv" based on "allargs". Update calls to "exec_fun"
13507 and "execvp".
13508 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13509 order to constify "exec_file" and accept a "std::string" for
13510 "allargs".
13511 * go32-nat.c (go32_create_inferior): Likewise.
13512 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13513 * infcmd.c (run_command_1): Constify "exec_file". Use
13514 "std::string" for inferior arguments.
13515 * inferior.h (fork_inferior): Update prototype.
13516 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13517 prototype in order to constify "exec_file" and accept a
13518 "std::string" for "allargs".
13519 * nto-procfs.c (procfs_create_inferior): Likewise.
13520 * procfs.c (procfs_create_inferior): Likewise.
13521 * remote-sim.c (gdbsim_create_inferior): Likewise.
13522 * remote.c (extended_remote_run): Update code to accept
13523 "std::string" as argument.
13524 (extended_remote_create_inferior): Rewrite function prototype in
13525 order to constify "exec_file" and accept a "std::string" for
13526 "allargs".
13527 * rs6000-nat.c (super_create_inferior): Likewise.
13528 (rs6000_create_inferior): Likewise.
13529 * target.h (struct target_ops) <to_create_inferior>: Likewise.
13530 * windows-nat.c (windows_create_inferior): Likewise.
13531
13532 2017-04-11 Pedro Alves <palves@redhat.com>
13533
13534 * thread.c: Fix whitespace throughout.
13535
13536 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
13537
13538 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
13539
13540 2017-04-11 Alan Hayward <alan.hayward@arm.com>
13541
13542 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
13543
13544 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
13545
13546 PR gdb/21364
13547 * osdata.c (info_osdata): Check if 'type' is an empty string
13548 instead of NULL.
13549
13550 2017-04-10 Pedro Alves <palves@redhat.com>
13551
13552 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
13553 (ptid_to_global_thread_id, in_thread_list)
13554 (do_captured_list_thread_ids, set_resumed, set_running)
13555 (set_executing, set_stop_requested, finish_thread_state)
13556 (validate_registers_access, can_access_registers_ptid)
13557 (print_thread_info_1, switch_to_thread)
13558 (do_restore_current_thread_cleanup)
13559 (make_cleanup_restore_current_thread, thread_command)
13560 (thread_name_command): Use operator== instead of ptid_equal.
13561
13562 2017-04-10 Pedro Alves <palves@redhat.com>
13563
13564 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13565 (current_thread_cleanup_chain): Delete.
13566 (restore_current_thread_cleanup_dtor)
13567 (make_cleanup_restore_current_thread): Remove references to
13568 current_thread_cleanup_chain.
13569
13570 2017-04-10 Alan Hayward <alan.hayward@arm.com>
13571
13572 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13573 REG_UNKNOWN.
13574
13575 2017-04-10 Yao Qi <yao.qi@linaro.org>
13576
13577 PR gdb/19942
13578 * gdbthread.h (thread_info::deletable): New method.
13579 (thread_info::incref): New method.
13580 (thread_info::decref): New method.
13581 (thread_info::refcount): Move it to private.
13582 * infrun.c (save_stop_context): Call inc_refcount.
13583 (release_stop_context_cleanup): Likewise.
13584 * thread.c (set_thread_exited): New function.
13585 (init_thread_list): Delete "tp" only it is deletable, otherwise
13586 call set_thread_exited.
13587 (delete_thread_1): Call set_thread_exited.
13588 (current_thread_cleanup) <inferior_pid>: Remove.
13589 <thread>: New field.
13590 (restore_current_thread_ptid_changed): Removed.
13591 (do_restore_current_thread_cleanup): Adjust.
13592 (restore_current_thread_cleanup_dtor): Don't call
13593 find_thread_ptid.
13594 (set_thread_refcount): Use dec_refcount.
13595 (make_cleanup_restore_current_thread): Adjust.
13596 (thread_apply_all_command): Call inc_refcount.
13597 (_initialize_thread): Don't call
13598 observer_attach_thread_ptid_changed.
13599
13600 2017-04-10 Yao Qi <yao.qi@linaro.org>
13601
13602 * thread.c (delete_thread_1): Hoist code on marking thread as
13603 exited.
13604
13605 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13606
13607 * windows-nat.c (windows_detach): Initialize ptid with
13608 minus_one_ptid.
13609
13610 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
13611
13612 * unittests/ptid-selftests.c: Fix erroneous assert messages.
13613
13614 2017-04-07 Alan Hayward <alan.hayward@arm.com>
13615
13616 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
13617 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
13618 (bfin_pseudo_register_write): Likewise
13619
13620 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
13621
13622 * common/ptid.h (struct ptid): Change to...
13623 (class ptid_t): ... this.
13624 <ptid_t>: New constructors.
13625 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
13626 matches>: New methods.
13627 <make_null, make_minus_one>: New static methods.
13628 <pid>: Rename to...
13629 <m_pid>: ...this.
13630 <lwp>: Rename to...
13631 <m_lwp>: ...this.
13632 <tid>: Rename to...
13633 <m_tid>: ...this.
13634 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
13635 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
13636 as references, move comment to class ptid_t.
13637 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
13638 ptid_t static methods.
13639 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
13640 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
13641 Take ptid arguments as references, implement using ptid_t methods.
13642 * unittests/ptid-selftests.c: New file.
13643 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13644 unittests/ptid-selftests.c.
13645 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
13646
13647 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13648
13649 * python/python.c (python_run_simple_file): Cast mode literal to
13650 non-const char pointer as expected by PyFile_FromString.
13651
13652 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
13653
13654 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
13655 minus_one_ptid and null_ptid.
13656
13657 2017-04-05 Pedro Alves <palves@redhat.com>
13658
13659 * warning.m4 (build_warnings): Remove -Wno-write-strings.
13660 * configure: Regenerate.
13661
13662 2017-04-05 Pedro Alves <palves@redhat.com>
13663
13664 * ada-exp.y (yyerror): Constify.
13665 * ada-lang.c (bound_name, get_selections)
13666 (ada_variant_discrim_type)
13667 (ada_variant_discrim_name, ada_value_struct_elt)
13668 (ada_lookup_struct_elt_type, is_unchecked_variant)
13669 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
13670 (catch_ada_exception_command_split)
13671 (catch_ada_assert_command_split, catch_assert_command)
13672 (ada_op_name): Constify.
13673 * ada-lang.h (ada_yyerror, get_selections)
13674 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
13675 * arc-tdep.c (arc_print_frame_cache): Constify.
13676 * arm-tdep.c (arm_skip_stub): Constify.
13677 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
13678 (gen_aggregate_elt_ref): Constify.
13679 * bcache.c (print_bcache_statistics): Constify.
13680 * bcache.h (print_bcache_statistics): Constify.
13681 * break-catch-throw.c (catch_exception_command_1):
13682 * breakpoint.c (struct ep_type_description::description):
13683 Constify.
13684 (add_solib_catchpoint): Constify.
13685 (catch_fork_command_1): Add cast.
13686 (add_catch_command): Constify.
13687 * breakpoint.h (add_catch_command, add_solib_catchpoint):
13688 Constify.
13689 * bsd-uthread.c (bsd_uthread_state): Constify.
13690 * buildsym.c (patch_subfile_names): Constify.
13691 * buildsym.h (next_symbol_text_func, patch_subfile_names):
13692 Constify.
13693 * c-exp.y (yyerror): Constify.
13694 (token::oper): Constify.
13695 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
13696 * c-varobj.c (cplus_describe_child): Constify.
13697 * charset.c (find_charset_names): Add cast.
13698 (find_charset_names): Constify array and add const_cast.
13699 * cli/cli-cmds.c (complete_command, cd_command): Constify.
13700 (edit_command): Constify.
13701 * cli/cli-decode.c (lookup_cmd): Constify.
13702 * cli/cli-dump.c (dump_memory_command, dump_value_command):
13703 Constify.
13704 (struct dump_context): Constify.
13705 (add_dump_command, restore_command): Constify.
13706 * cli/cli-script.c (get_command_line): Constify.
13707 * cli/cli-script.h (get_command_line): Constify.
13708 * cli/cli-utils.c (check_for_argument): Constify.
13709 * cli/cli-utils.h (check_for_argument): Constify.
13710 * coff-pe-read.c (struct read_pe_section_data): Constify.
13711 * command.h (lookup_cmd): Constify.
13712 * common/print-utils.c (decimal2str): Constify.
13713 * completer.c (gdb_print_filename): Constify.
13714 * corefile.c (set_gnutarget): Constify.
13715 * cp-name-parser.y (yyerror): Constify.
13716 * cp-valprint.c (cp_print_class_member): Constify.
13717 * cris-tdep.c (cris_register_name, crisv32_register_name):
13718 Constify.
13719 * d-exp.y (yyerror): Constify.
13720 (struct token::oper): Constify.
13721 * d-lang.h (d_yyerror): Constify.
13722 * dbxread.c (struct header_file_location::name): Constify.
13723 (add_old_header_file, add_new_header_file, last_function_name)
13724 (dbx_next_symbol_text, add_bincl_to_list)
13725 (find_corresponding_bincl_psymtab, set_namestring)
13726 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
13727 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
13728 * defs.h (command_line_input, print_address_symbolic)
13729 (deprecated_readline_begin_hook): Constify.
13730 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
13731 Constify.
13732 * event-top.c (handle_line_of_input): Constify and add cast.
13733 * exceptions.c (catch_errors): Constify.
13734 * exceptions.h (catch_errors): Constify.
13735 * expprint.c (print_subexp_standard, op_string, op_name)
13736 (op_name_standard, dump_raw_expression, dump_raw_expression):
13737 * expression.h (op_name, op_string, dump_raw_expression):
13738 Constify.
13739 * f-exp.y (yyerror): Constify.
13740 (struct token::oper): Constify.
13741 (struct f77_boolean_val::name): Constify.
13742 * f-lang.c (f_word_break_characters): Constify.
13743 * f-lang.h (f_yyerror): Constify.
13744 * fork-child.c (fork_inferior): Add cast.
13745 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
13746 (new_variant): Constify.
13747 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
13748 * gdbarch.c: Regenerate.
13749 * gdbcore.h (set_gnutarget): Constify.
13750 * go-exp.y (yyerror): Constify.
13751 (token::oper): Constify.
13752 * go-lang.h (go_yyerror): Constify.
13753 * go32-nat.c (go32_sysinfo): Constify.
13754 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
13755 * guile/scm-cmd.c (cmdscm_function): Constify.
13756 * guile/scm-param.c (pascm_param_value): Constify.
13757 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
13758 (h8300sx_register_name): Constify.
13759 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
13760 Constify.
13761 * ia64-tdep.c (ia64_register_names): Constify.
13762 * infcmd.c (construct_inferior_arguments): Constify.
13763 (path_command, attach_post_wait): Constify.
13764 * language.c (show_range_command, show_case_command)
13765 (unk_lang_error): Constify.
13766 * language.h (language_defn::la_error)
13767 (language_defn::la_name_of_this): Constify.
13768 * linespec.c (decode_line_2): Constify.
13769 * linux-thread-db.c (thread_db_err_str): Constify.
13770 * lm32-tdep.c (lm32_register_name): Constify.
13771 * m2-exp.y (yyerror): Constify.
13772 * m2-lang.h (m2_yyerror): Constify.
13773 * m32r-tdep.c (m32r_register_names): Constify and make static.
13774 * m68hc11-tdep.c (m68hc11_register_names): Constify.
13775 * m88k-tdep.c (m88k_register_name): Constify.
13776 * macroexp.c (appendmem): Constify.
13777 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
13778 (upgrade_type, parse_external, parse_partial_symbols)
13779 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
13780 (new_symbol): Constify.
13781 * memattr.c (mem_info_command): Constify.
13782 * mep-tdep.c (register_name_from_keyword): Constify.
13783 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
13784 Constify.
13785 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
13786 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
13787 * mi/mi-main.c (captured_mi_execute_command): Constify and add
13788 cast.
13789 (mi_execute_async_cli_command): Constify.
13790 * mips-tdep.c (mips_register_name): Constify.
13791 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
13792 (am33_register_name, am33_2_register_name)
13793 * moxie-tdep.c (moxie_register_names): Constify.
13794 * nat/linux-osdata.c (osdata_type): Constify fields.
13795 * nto-tdep.c (nto_parse_redirection): Constify.
13796 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
13797 (lookup_child_selector): Constify.
13798 (objc_methcall::name): Constify.
13799 * objc-lang.h (lookup_objc_class, lookup_child_selector)
13800 (lookup_struct_typedef): Constify.
13801 * objfiles.c (pc_in_section): Constify.
13802 * objfiles.h (pc_in_section): Constify.
13803 * p-exp.y (struct token::oper): Constify.
13804 (yyerror): Constify.
13805 * p-lang.h (pascal_yyerror): Constify.
13806 * parser-defs.h (op_name_standard): Constify.
13807 (op_print::string): Constify.
13808 (exp_descriptor::op_name): Constify.
13809 * printcmd.c (print_address_symbolic): Constify.
13810 * psymtab.c (print_partial_symbols): Constify.
13811 * python/py-breakpoint.c (stop_func): Constify.
13812 (bppy_get_expression): Constify.
13813 * python/py-cmd.c (cmdpy_completer::name): Constify.
13814 (cmdpy_function): Constify.
13815 * python/py-event.c (evpy_add_attribute)
13816 (gdbpy_initialize_event_generic): Constify.
13817 * python/py-event.h (evpy_add_attribute)
13818 (gdbpy_initialize_event_generic): Constify.
13819 * python/py-evts.c (add_new_registry): Constify.
13820 * python/py-finishbreakpoint.c (outofscope_func): Constify.
13821 * python/py-framefilter.c (get_py_iter_from_func): Constify.
13822 * python/py-inferior.c (get_buffer): Add cast.
13823 * python/py-param.c (parm_constant::name): Constify.
13824 * python/py-unwind.c (fprint_frame_id): Constify.
13825 * python/python.c (gdbpy_parameter_value): Constify.
13826 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
13827 * remote.c (memory_packet_config::name): Constify.
13828 (show_packet_config_cmd, remote_write_bytes)
13829 (remote_buffer_add_string):
13830 * reverse.c (exec_reverse_once): Constify.
13831 * rs6000-tdep.c (variant::name, variant::description): Constify.
13832 * rust-exp.y (rustyyerror): Constify.
13833 * rust-lang.c (rust_op_name): Constify.
13834 * rust-lang.h (rustyyerror): Constify.
13835 * serial.h (serial_ops::name): Constify.
13836 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
13837 (sh_sh3e_register_name, sh_sh2e_register_name)
13838 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
13839 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
13840 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
13841 (sh_sh4al_dsp_register_name): Constify.
13842 * sh64-tdep.c (sh64_register_name): Constify.
13843 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
13844 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
13845 * stabsread.c (patch_block_stabs, read_type_number)
13846 (ref_map::stabs, ref_add, process_reference)
13847 (symbol_reference_defined, define_symbol, define_symbol)
13848 (error_type, read_type, read_member_functions, read_cpp_abbrev)
13849 (read_one_struct_field, read_struct_fields, read_baseclasses)
13850 (read_tilde_fields, read_struct_type, read_array_type)
13851 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
13852 (read_huge_number, read_range_type, read_args, common_block_start)
13853 (find_name_end): Constify.
13854 * stabsread.h (common_block_start, define_symbol)
13855 (process_one_symbol, symbol_reference_defined, ref_add):
13856 * symfile.c (get_section_index, add_symbol_file_command):
13857 * symfile.h (get_section_index): Constify.
13858 * target-descriptions.c (tdesc_type::name): Constify.
13859 (tdesc_free_type): Add cast.
13860 * target.c (find_default_run_target):
13861 (add_deprecated_target_alias, find_default_run_target)
13862 (target_announce_detach): Constify.
13863 (do_option): Constify.
13864 * target.h (add_deprecated_target_alias): Constify.
13865 * thread.c (print_thread_info_1): Constify.
13866 * top.c (deprecated_readline_begin_hook, command_line_input):
13867 Constify.
13868 (init_main): Add casts.
13869 * top.h (handle_line_of_input): Constify.
13870 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
13871 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
13872 (tfind_command): Rename to ...
13873 (tfind_command_1): ... this and constify.
13874 (tfind_command): New function.
13875 (tfind_end_command, tfind_start_command): Adjust.
13876 (encode_source_string): Constify.
13877 * tracepoint.h (encode_source_string): Constify.
13878 * tui/tui-data.c (tui_partial_win_by_name): Constify.
13879 * tui/tui-data.h (tui_partial_win_by_name): Constify.
13880 * tui/tui-source.c (tui_set_source_content_nil): Constify.
13881 * tui/tui-source.h (tui_set_source_content_nil): Constify.
13882 * tui/tui-win.c (parse_scrolling_args): Constify.
13883 * tui/tui-windata.c (tui_erase_data_content): Constify.
13884 * tui/tui-windata.h (tui_erase_data_content): Constify.
13885 * tui/tui-winsource.c (tui_erase_source_content): Constify.
13886 * tui/tui.c (tui_enable): Add cast.
13887 * utils.c (defaulted_query): Constify.
13888 (init_page_info): Add cast.
13889 (puts_debug, subset_compare): Constify.
13890 * utils.h (subset_compare): Constify.
13891 * varobj.c (varobj_format_string): Constify.
13892 * varobj.h (varobj_format_string): Constify.
13893 * vax-tdep.c (vax_register_name): Constify.
13894 * windows-nat.c (windows_detach): Constify.
13895 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
13896 * xml-support.c (gdb_xml_end_element): Constify.
13897 * xml-tdesc.c (tdesc_start_reg): Constify.
13898 * xstormy16-tdep.c (xstormy16_register_name): Constify.
13899 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
13900 * xtensa-tdep.h (xtensa_register_t::name): Constify.
13901
13902 2017-04-05 Pedro Alves <palves@redhat.com>
13903
13904 * proc-api.c (struct trans): Constify.
13905 (procfs_note): Constify.
13906 * proc-events.c (struct trans, syscall_table):
13907 * proc-flags.c (struct trans): Constify.
13908 * proc-utils.h (procfs_note): Constify.
13909 * proc-why.c (struct trans): Constify.
13910 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
13911 (procfs_detach): Constify.
13912 * sol-thread.c (struct string_map): Constify.
13913 (td_err_string, td_state_string): Constify.
13914
13915 2017-04-05 Pedro Alves <palves@redhat.com>
13916
13917 * proc-api.c (procfs_filename): Don't initialize
13918 procfs_filename.
13919 (prepare_to_trace): Assume procfs_filename is non-NULL.
13920 (_initialize_proc_api): Give procfs_filename a default value here.
13921
13922 2017-04-05 Pedro Alves <palves@redhat.com>
13923
13924 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
13925 'cond_string' parameter.
13926 (extract_exception_regexp): Constify 'string' parameter.
13927 (catch_exception_command_1): Constify.
13928 * breakpoint.c (init_catchpoint)
13929 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
13930 parameter.
13931 (ep_parse_optional_if_clause, catch_fork_command_1)
13932 (catch_exec_command_1): Constify.
13933 * breakpoint.h (init_catchpoint): Constify 'cond_string'
13934 parameter.
13935 (ep_parse_optional_if_clause): Constify.
13936 * cli/cli-utils.c (remove_trailing_whitespace)
13937 (check_for_argument): Constify.
13938 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
13939 non-const overload.
13940 (check_for_argument): Likewise.
13941
13942 2017-04-05 Pedro Alves <palves@redhat.com>
13943
13944 * event-top.c (command_line_handler): Add cast to execute_command
13945 call.
13946 * record-btrace.c (cmd_record_btrace_bts_start)
13947 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
13948 (cmd_record_btrace_start): Add cast to execute_command call.
13949 * record-full.c (record_full_goto_insn):
13950 * record.c (record_start, record_stop): Add cast to
13951 execute_command_to_string calls.
13952 (cmd_record_start): Add cast to execute_command calls.
13953
13954 2017-04-05 Pedro Alves <palves@redhat.com>
13955
13956 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
13957 static inline function.
13958 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
13959 array and use gdb_PyArg_ParseTupleAndKeywords.
13960 * python/py-cmd.c (cmdpy_init): Likewise.
13961 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
13962 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
13963 (infpy_search_memory): Likewise.
13964 * python/py-objfile.c (objfpy_add_separate_debug_file)
13965 (gdbpy_lookup_objfile): Likewise.
13966 * python/py-symbol.c (gdbpy_lookup_symbol)
13967 (gdbpy_lookup_global_symbol): Likewise.
13968 * python/py-type.c (gdbpy_lookup_type): Likewise.
13969 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
13970 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
13971 Likewise.
13972
13973 2017-04-05 Pedro Alves <palves@redhat.com>
13974
13975 * python/python-internal.h (gdb_PyGetSetDef): New type.
13976 * python/py-block.c (block_object_getset)
13977 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
13978 * python/py-event.c (event_object_getset)
13979 (finish_breakpoint_object_getset): Likewise.
13980 * python/py-inferior.c (inferior_object_getset): Likewise.
13981 * python/py-infthread.c (thread_object_getset): Likewise.
13982 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
13983 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
13984 * python/py-objfile.c (objfile_getset): Likewise.
13985 * python/py-progspace.c (pspace_getset): Likewise.
13986 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
13987 Likewise.
13988 * python/py-record.c (recpy_record_getset): Likewise.
13989 * python/py-symbol.c (symbol_object_getset): Likewise.
13990 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
13991 Likewise.
13992 * python/py-type.c (type_object_getset, field_object_getset):
13993 Likewise.
13994 * python/py-value.c (value_object_getset): Likewise.
13995
13996 2017-04-05 Pedro Alves <palves@redhat.com>
13997
13998 * python/python-internal.h (gdb_PyObject_CallMethod)
13999 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14000 New functions.
14001 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14002 (PySys_GetObject, PySys_SetPath): New macros.
14003
14004 2017-04-05 Pedro Alves <palves@redhat.com>
14005
14006 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14007 info_osdata_command.
14008 * osdata.c (info_osdata_command): Rename to ...
14009 (info_osdata): ... this. Constify 'type' parameter, and remove
14010 the 'from_tty' parameter. Accept NULL TYPE.
14011 (info_osdata_command): New function.
14012 * osdata.h (info_osdata_command): Remove declaration.
14013 (info_osdata): New declaration.
14014
14015 2017-04-05 Pedro Alves <palves@redhat.com>
14016
14017 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14018 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14019 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14020 parameter.
14021 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14022 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14023 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14024 parameter.
14025 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14026 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14027 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14028 (mi_cmd_file_list_exec_source_files)
14029 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14030 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14031 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14032 parameter.
14033 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14034 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14035 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14036 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14037 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14038 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14039 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14040 'command' parameter.
14041 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14042 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14043 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14044 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14045 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14046 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14047 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14048 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14049 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14050 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14051 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14052 parameter.
14053 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14054 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14055 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14056 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14057 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14058 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14059 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14060 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14061 (mi_cmd_data_list_changed_registers)
14062 (mi_cmd_data_write_register_values)
14063 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14064 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14065 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14066 (mi_cmd_list_features, mi_cmd_list_target_features)
14067 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14068 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14069 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14070 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14071 (mi_cmd_trace_frame_collected): Constify 'command'
14072 parameter.
14073 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14074 'command' parameter.
14075
14076 2017-04-05 Pedro Alves <palves@redhat.com>
14077
14078 * ada-lang.c (ada_completer_word_break_characters): Now a const
14079 array.
14080 (ada_get_gdb_completer_word_break_characters): Constify.
14081 * completer.c (gdb_completer_command_word_break_characters)
14082 (gdb_completer_file_name_break_characters)
14083 (gdb_completer_quote_characters): Now const arrays.
14084 (get_gdb_completer_quote_characters): Constify.
14085 (set_rl_completer_word_break_characters): New function.
14086 (set_gdb_completion_word_break_characters)
14087 (complete_line_internal): Use it.
14088 * completer.h (get_gdb_completer_quote_characters): Constify.
14089 (set_rl_completer_word_break_characters): Declare.
14090 * f-lang.c (f_word_break_characters): Constify.
14091 * language.c (default_word_break_characters): Constify.
14092 * language.h (language_defn::la_word_break_characters): Constify.
14093 (default_word_break_characters): Constify.
14094 * top.c (init_main): Use set_rl_completer_word_break_characters.
14095
14096 2017-04-05 Pedro Alves <palves@redhat.com>
14097
14098 * aix-thread.c (aix_thread_pid_to_str)
14099 (aix_thread_extra_thread_info): Constify.
14100 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14101 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14102 (bsd_uthread_pid_to_str): Constify.
14103 * corelow.c (core_pid_to_str): Constify.
14104 * darwin-nat.c (darwin_pid_to_str): Constify.
14105 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14106 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14107 Constify.
14108 * gnu-nat.c (gnu_pid_to_str): Constify.
14109 * go32-nat.c (go32_pid_to_str): Constify.
14110 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14111 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14112 * inferior.c (inferior_pid_to_str): Constify.
14113 * linux-nat.c (linux_nat_pid_to_str): Constify.
14114 * linux-tdep.c (linux_core_pid_to_str): Constify.
14115 * linux-thread-db.c (thread_db_pid_to_str)
14116 (thread_db_extra_thread_info): Constify.
14117 * nto-tdep.c (nto_extra_thread_info): Constify.
14118 * nto-tdep.h (nto_extra_thread_info): Constify.
14119 * obsd-nat.c (obsd_pid_to_str): Constify.
14120 * procfs.c (procfs_pid_to_str): Constify.
14121 * ravenscar-thread.c (ravenscar_extra_thread_info)
14122 (ravenscar_pid_to_str): Constify.
14123 * remote-sim.c (gdbsim_pid_to_str): Constify.
14124 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14125 Constify.
14126 * sol-thread.c (solaris_pid_to_str): Constify.
14127 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14128 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14129 * target.c (default_pid_to_str, target_pid_to_str)
14130 (normal_pid_to_str, default_pid_to_str): Constify.
14131 * target.h (target_ops::to_pid_to_str)
14132 (target_ops::to_extra_thread_info): Constify.
14133 (target_pid_to_str, normal_pid_to_str): Constify.
14134 * windows-nat.c (windows_pid_to_str): Constify.
14135 * gdbarch.sh (core_pid_to_str): Constify.
14136 * target-delegates.c: Regenerate.
14137 * gdbarch.h, gdbarch.c: Regenerate.
14138
14139 2017-04-05 Pedro Alves <palves@redhat.com>
14140
14141 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14142 the memory of the temporary warning_pre_print override.
14143 * utils.c (warning_pre_print): Constify.
14144 * utils.h (warning_pre_print): Constify.
14145
14146 2017-04-05 Pedro Alves <palves@redhat.com>
14147
14148 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14149 (shell_command): New function.
14150 (make_command): Use std::string.
14151 (init_cli_cmds): Register shell_command instead of shell_escape.
14152
14153 2017-04-05 Pedro Alves <palves@redhat.com>
14154
14155 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14156 * tracepoint.c (default_collect): Don't initialize.
14157
14158 2017-04-05 Pedro Alves <palves@redhat.com>
14159
14160 * macroexp.c (macro_buffer::shared): Now a bool.
14161 (init_buffer): Update.
14162 (init_shared_buffer): Constify 'addr' parameter.
14163 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14164 casts.
14165
14166 2017-04-05 Pedro Alves <palves@redhat.com>
14167
14168 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14169 * disasm.c (set_disassembler_options): Constify local.
14170 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14171
14172 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14173
14174 PR gdb/21352
14175 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14176 option.
14177
14178 2017-04-05 Yao Qi <yao.qi@linaro.org>
14179
14180 * frame.c (frame_unwind_register_unsigned): Call
14181 frame_unwind_register_value.
14182
14183 2017-04-05 Yao Qi <yao.qi@linaro.org>
14184
14185 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14186 Use gdb_test_multiple, and don't match anchor.
14187
14188 2017-04-05 Pedro Alves <palves@redhat.com>
14189
14190 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14191 (Write After Approval): Remove Simon Marchi.
14192
14193 2017-04-05 Pedro Alves <palves@redhat.com>
14194
14195 * common/gdb_optional.h (optional::optional): Make constexpr and
14196 initialize m_dummy.
14197
14198 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14199
14200 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14201 (amd64fbsd_jmp_buf_reg_offset): Remove.
14202 (amd64fbsd_supply_uthread): Remove function.
14203 (amd64fbsd_collect_uthread): Remove function.
14204 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14205 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14206 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14207 (fbsd-nat.c): Update comment.
14208 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14209 (i386fbsd_jmp_buf_reg_offset): Remove.
14210 (i386fbsd_supply_uthread): Remove function.
14211 (i386fbsd_collect_uthread): Remove function.
14212 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14213
14214 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14215
14216 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14217 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14218 * NEWS: Mention that support for FreeBSD/alpha was removed.
14219 * alpha-fbsd-tdep.c: Delete file.
14220 * config/alpha/fbsd.mh: Delete file.
14221 * configure.host: Delete alpha*-*-freebsd* and
14222 alpha*-*-kfreebsd*-gnu.
14223 * configure.tgt: Delete alpha*-*-freebsd* and
14224 alpha*-*-kfreebsd*-gnu.
14225
14226 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14227
14228 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14229 amd64bsd_store_inferior_registers): Use ptid from regcache.
14230
14231 2017-04-04 Pedro Alves <palves@redhat.com>
14232
14233 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14234 data fields, make them private and add "m_" prefixes.
14235 (lnp_state_machine::lnp_state_machine): New ctor.
14236 (record_line, check_line_address, handle_set_discriminator)
14237 (handle_set_address, handle_advance_pc, handle_special_opcode)
14238 (handle_advance_line, handle_set_file, handle_negate_stmt)
14239 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14240 (end_sequence, advance_line): New methods.
14241 (m_gdbarch, m_record_lines_p): New fields.
14242 (lnp_reader_state): Delete.
14243 (dwarf_record_line): Rename to ...
14244 (lnp_state_machine::record_line): ... adjust.
14245 (init_lnp_state_machine): Delete.
14246 (lnp_state_machine::lnp_state_machine): New.
14247 (check_line_address): Rename to ...
14248 (lnp_state_machine::check_line_address): This.
14249 (dwarf_decode_lines_1): Remove reference to "reader_state".
14250 Adjust lnp_state_machine having a non-default ctor. Use bool.
14251 State machine internal state manipulation moved to
14252 lnp_state_machine methods.
14253
14254 2017-04-04 Pedro Alves <palves@redhat.com>
14255
14256 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14257 unittests/offset-type-selftests.c.
14258 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14259 * common/offset-type.h: New file.
14260 * common/preprocessor.h: New file.
14261 * common/traits.h: New file.
14262 * common/valid-expr.h: New file.
14263 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14264 sect_offset and cu_offset strong typedefs throughout.
14265 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14266 typedefs throughout.
14267 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14268 sect_offset and cu_offset strong typedefs throughout.
14269 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14270 typedefs throughout.
14271 * gdbtypes.h: Include "common/offset-type.h".
14272 (cu_offset): Now an offset type (strong typedef) instead of a
14273 struct.
14274 (sect_offset): Likewise.
14275 (union call_site_parameter_u): Rename "param_offset" field to
14276 "param_cu_off".
14277 * unittests/offset-type-selftests.c: New file.
14278
14279 2017-04-04 Pedro Alves <palves@redhat.com>
14280
14281 * common/underlying.h: New file.
14282 * dwarf2read.c: Include "common/gdb_optional.h" and
14283 "common/underlying.h".
14284 (dir_index, file_name_index): New types.
14285 (file_entry): Use them.
14286 (file_entry::include): Use to_underlying.
14287 (line_header::add_file_name): Use dir_index.
14288 (read_formatted_entries): Use gdb::optional. Read form before
14289 writting to file_entry.
14290 (dwarf_decode_line_header): Use dir_index.
14291 (lnp_state_machine::current_file): Use to_underlying.
14292 (lnp_state_machine::file): Change type to file_name_index.
14293 (dwarf_record_line): Use to_underlying.
14294 (init_lnp_state_machine): Use file_name_index.
14295 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14296
14297 2017-04-04 Pedro Alves <palves@redhat.com>
14298
14299 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14300 operator bool, has_value and get methods.
14301
14302 2017-04-04 Pedro Alves <palves@redhat.com>
14303
14304 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14305 fields.
14306 (line_header): Initialize all data fields. Change type of
14307 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14308 Change type of include_dirs to std::vector<const char *>. Remove
14309 num_include_dirs, include_dirs_size. Change type of file_names to
14310 std::vector<file_entry>. Remove num_file_names, file_names_size.
14311 (line_header::line_header): New.
14312 (line_header::add_include_dir, line_header::add_file_name): New
14313 methods.
14314 (line_header::include_dir_at): Remove NULL check.
14315 (line_header::file_name_at): Add const overload.
14316 (line_header_up): New unique_ptr typedef.
14317 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14318 std::vector. Remove free_line_header call.
14319 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14320 free_line_header call.
14321 (free_cu_line_header): Delete.
14322 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14323 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14324 Adjust to use std::vector.
14325 (free_line_header): Delete.
14326 (free_line_header_voidp): Use delete.
14327 (add_include_dir): Replace with ...
14328 (line_header::add_include_dir): ... this method. Use std::vector.
14329 (add_file_name): Replace with ...
14330 (line_header::add_file_name): ... this method. Use std::vector.
14331 (add_include_dir_stub): Delete.
14332 (read_formatted_entries): Remove memset.
14333 (dwarf_decode_line_header): Return a line_header_up instead of a
14334 raw pointer. Remove cleanup handling. Pass lambdas to
14335 read_formatted_entries. Adjust to use line_header methods.
14336 (dwarf_decode_lines_1): Adjust to use line_header methods.
14337 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14338 use std::vector.
14339
14340 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14341
14342 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14343 instead of struct ptid.
14344
14345 2017-05-04 Alan Hayward <alan.hayward@arm.com>
14346
14347 * frame.c (get_frame_register_bytes): Unwind using value.
14348 (put_frame_register_bytes): Likewise.
14349
14350 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14351
14352 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14353 aggregate-like.
14354
14355 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14356
14357 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14358
14359 2017-03-29 Yao Qi <yao.qi@linaro.org>
14360
14361 * gdbthread.h (struct thread_info): Declare constructor and
14362 destructor. Add some in-class member initializers.
14363 * thread.c (free_thread): Remove.
14364 (init_thread_list): Call delete instead of free_thread.
14365 (new_thread): Call thread_info constructor.
14366 (thread_info::thread_info): New function.
14367 (thread_info::~thread_info): New function.
14368 (delete_thread_1): Call delete instead of free_thread.
14369 (make_cleanup_restore_current_thread): Move tp and frame to
14370 inner block.
14371
14372 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14373
14374 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14375 (arc_skip_prologue): Likewise.
14376 (arc_make_frame_cache): Likewise.
14377 (arc_pv_get_operand): New function.
14378 (arc_is_in_prologue): Likewise.
14379 (arc_analyze_prologue): Likewise.
14380 (arc_print_frame_cache): Likewise.
14381 (MAX_PROLOGUE_LENGTH): New constant.
14382
14383 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14384
14385 * configure.tgt: Add arc-insn.o.
14386 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
14387 (dump_arc_instruction_command): New function.
14388 (arc_fprintf_disasm): Likewise.
14389 (arc_disassemble_info): Likewise.
14390 (arc_insn_get_operand_value): Likewise.
14391 (arc_insn_get_operand_value_signed): Likewise.
14392 (arc_insn_get_memory_base_reg): Likewise.
14393 (arc_insn_get_memory_offset): Likewise.
14394 (arc_insn_get_branch_target): Likewise.
14395 (arc_insn_dump): Likewise.
14396 (arc_insn_get_linear_next_pc): Likewise.
14397 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
14398 (arc_disassemble_info): Likewise.
14399 (arc_insn_get_branch_target): Likewise.
14400 (arc_insn_get_linear_next_pc): Likewise.
14401 * NEWS: Mention new "maint print arc arc-instruction".
14402
14403 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14404
14405 * arc-tdep (maintenance_print_arc_list): New variable.
14406 (maintenance_print_arc_command): New function.
14407
14408 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14409
14410 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
14411 Add "limm" and "reserved".
14412 (arc_cannot_fetch_register, arc_cannot_store_register): Add
14413 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
14414 * arc-tdep.h (arc_regnum): Likewise.
14415
14416 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14417
14418 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14419 for THREADPTR register.
14420 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
14421 register.
14422 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
14423 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
14424 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
14425
14426 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14427
14428 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
14429 registers above gdbarch_num_regs (gdbarch) as privileged in
14430 call0 ABI.
14431
14432 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14433
14434 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14435 for a single specified register or for all registers in
14436 a0_base..a0_base + C0_NREGS range.
14437 (supply_gregset_reg): Call regcache_raw_supply for a single
14438 specified register or for all registers in a0_base..a0_base +
14439 C0_NREGS range.
14440
14441 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14442
14443 * arch/xtensa.h (C0_NREGS): Add definition.
14444 * xtensa-tdep.c (C0_NREGS): Remove definition.
14445
14446 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14447
14448 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
14449 Drop xtensa_default_isa initialization.
14450 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
14451
14452 2017-03-27 Pedro Alves <palves@redhat.com>
14453
14454 * dwarf2read.c (file_entry) <dir_index>: Add comment.
14455 (file_entry::include_dir): New method.
14456 (line_header::include_dir_at, line_header::file_name_at): New
14457 methods.
14458 (setup_type_unit_groups, setup_type_unit_groups)
14459 (psymtab_include_file_name): Simplify using the new methods.
14460 (lnp_state_machine) <the_line_header>: New field.
14461 <file>: Add comment.
14462 (lnp_state_machine::current_file): New method.
14463 (dwarf_record_line): Simplify using the new methods.
14464 (init_lnp_state_machine): Initialize the "the_line_header" field.
14465 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
14466 Simplify using the new methods.
14467
14468 2017-03-27 Pedro Alves <palves@redhat.com>
14469
14470 * cp-name-parser.y (make_empty): Delete.
14471 (demangler_special, nested_name, ptr_operator, array_indicator)
14472 (direct_declarator, declarator_1): Use fill_comp instead of
14473 make_empty.
14474
14475 2017-03-27 Pedro Alves <palves@redhat.com>
14476
14477 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
14478 to ATTRIBUTE_PRINTF.
14479 * solib-target.c (library_list_start_list): Print "string" not
14480 "version".
14481 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
14482 gdb_xml_error call.
14483
14484 2017-03-27 Pedro Alves <palves@redhat.com>
14485
14486 * dwarf2read.c (struct file_and_directory): New.
14487 (dwarf2_get_dwz_file): Adjust to use std::string.
14488 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14489 (find_file_and_directory): Adjust to return a file_and_directory
14490 object.
14491 (read_file_scope): Adjust to use file_and_directory. Remove
14492 make_cleanup/do_cleanups calls.
14493 (open_and_init_dwp_file): Adjust to use std::string. Remove
14494 make_cleanup/do_cleanups calls.
14495 * python/python.c (do_start_initialization): Adjust to ldirname
14496 returning a std::string.
14497 * utils.c (ldirname): Now returns a std::string.
14498 * utils.h (ldirname): Change return type to std::string.
14499 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14500 returning a std::string.
14501 * xml-tdesc.c (file_read_description_xml): Likewise.
14502
14503 2017-03-24 Alan Hayward <alan.hayward@arm.com>
14504
14505 * regcache.c (regcache_debug_print_register): New function.
14506 * regcache.h (regcache_debug_print_register): New declaration.
14507 * target.c (debug_print_register): Remove.
14508 (target_fetch_registers): Call regcache_debug_print_register.
14509 (target_store_registers): Likewise.
14510
14511 2017-03-24 Pádraig Brady <pbrady@fb.com>
14512
14513 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14514 reference beyond the 'lh->include_dirs' array before accessing to
14515 it.
14516 (psymtab_include_file_name): Likewise.
14517 (dwarf_decode_lines_1): Likewise.
14518 (dwarf_decode_lines): Likewise.
14519 (file_file_name): Likewise.
14520
14521 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14522
14523 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14524 inferior_ptid.
14525 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14526 ps_lsetfpregs): Likewise.
14527 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
14528 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14529 ps_lsetfpregs): Likewise.
14530 * target.c (target_fetch_registers, target_store_registers):
14531 Remove asserts.
14532
14533 2017-03-23 Alan Hayward <alan.hayward@arm.com>
14534
14535 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
14536
14537 2017-03-23 Yao Qi <yao.qi@linaro.org>
14538
14539 * aarch64-tdep.c (aarch64_process_record_test): Declare.
14540 (_initialize_aarch64_tdep): Register it.
14541 (aarch64_record_load_store): Handle PRFM instruction.
14542 (aarch64_process_record_test): New function.
14543
14544 2017-03-23 Yao Qi <yao.qi@linaro.org>
14545
14546 * aarch64-tdep.c (aarch64_record_load_store): Fix code
14547 indentation.
14548
14549 2017-03-23 Yao Qi <yao.qi@linaro.org>
14550
14551 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
14552
14553 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14554
14555 python/python.c (do_start_initialization): Fix memory leak.
14556
14557 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14558
14559 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
14560 using get_ptrace_pid.
14561 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
14562 inferior_ptid.
14563 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14564 inferior_ptid instead of pid.
14565
14566 2017-03-22 Yao Qi <yao.qi@linaro.org>
14567
14568 * aarch64-tdep.c: Wrap locally used classes in anonymous
14569 namespace.
14570 * arm-tdep.c: Likewise.
14571 * linespec.c: Likewise.
14572 * ui-out.c: Likewise.
14573
14574 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
14575
14576 PR gdb/19637
14577 * python/lib/gdb/printer/bound_registers.py: Import sys.
14578
14579 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14580
14581 * windows-nat.c (do_windows_fetch_inferior_registers): Add
14582 windows_thread_info parameter and use it instead of
14583 current_thread.
14584 (windows_fetch_inferior_registers): Don't set current_thread,
14585 pass the thread to do_windows_fetch_inferior_registers. Use
14586 ptid from regcache instead of inferior_ptid.
14587 (do_windows_store_inferior_registers): Add windows_thread_info
14588 parameter and use it instead of current_thread.
14589 (windows_store_inferior_registers): Don't set current_thread,
14590 pass the thread to do_windows_store_inferior_registers. Use
14591 ptid from regcache instead of inferior_ptid.
14592
14593 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14594
14595 * ser-mingw.c (ser_windows_raw): Remove reference to
14596 struct serial::current_timeout.
14597
14598 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
14599
14600 PR tdep/20928
14601 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
14602 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
14603 (sparc64_fsr_type): Fix %fsr decoding.
14604
14605 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
14606
14607 * python/py-record-btrace.c (btpy_insn_data): Change return type
14608 for Python 2.
14609
14610 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14611
14612 * spu-linux-nat.c (spu_fetch_inferior_registers,
14613 spu_store_inferior_registers): Use ptid from regcache, set and
14614 restore inferior_ptid.
14615 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
14616 Likewise.
14617
14618 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14619
14620 * i386-linux-nat.c (fetch_register, store_register,
14621 i386_linux_fetch_inferior_registers,
14622 i386_linux_store_inferior_registers): Use ptid from regcache.
14623 * ia64-linux-nat.c (ia64_linux_fetch_register,
14624 ia64_linux_store_register): Likewise.
14625 * inf-ptrace.c (inf_ptrace_fetch_register,
14626 inf_ptrace_store_register): Likewise.
14627 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
14628 m32r_linux_store_inferior_registers): Likewise.
14629 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
14630 m68kbsd_store_inferior_registers): Likewise.
14631 * m68k-linux-nat.c (fetch_register, store_register,
14632 m68k_linux_fetch_inferior_registers,
14633 m68k_linux_store_inferior_registers): Likewise.
14634 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
14635 m88kbsd_store_inferior_registers): Likewise.
14636 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
14637 mips_fbsd_store_inferior_registers): Likewise.
14638 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
14639 mips64_linux_regsets_store_registers): Likewise.
14640 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
14641 mipsnbsd_store_inferior_registers): Likewise.
14642 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
14643 mips64obsd_store_inferior_registers): Likewise.
14644 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
14645 Likewise.
14646 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
14647 ppcfbsd_store_inferior_registers): Likewise.
14648 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
14649 ppc_linux_store_inferior_registers): Likewise.
14650 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
14651 ppcnbsd_store_inferior_registers): Likewise.
14652 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
14653 ppcobsd_store_registers): Likewise.
14654 * procfs.c (procfs_fetch_registers, procfs_store_registers):
14655 Likewise.
14656 * ravenscar-thread.c (ravenscar_fetch_registers,
14657 ravenscar_store_registers, ravenscar_prepare_to_store):
14658 Likewise.
14659 * record-btrace.c (record_btrace_fetch_registers,
14660 record_btrace_store_registers, record_btrace_prepare_to_store):
14661 Likewise.
14662 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
14663 Lookup inferior using ptid from regcache, instead of
14664 current_inferior.
14665 * remote.c (remote_fetch_registers, remote_store_registers): Use
14666 ptid from regcache.
14667 * rs6000-nat.c (fetch_register, store_register): Likewise.
14668 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
14669 s390_linux_store_inferior_registers): Likewise.
14670 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
14671 shnbsd_store_inferior_registers): Likewise.
14672 * sol-thread.c (sol_thread_fetch_registers,
14673 sol_thread_store_registers): Likewise.
14674 * sparc-nat.c (sparc_fetch_inferior_registers,
14675 sparc_store_inferior_registers): Likewise.
14676 * tilegx-linux-nat.c (fetch_inferior_registers,
14677 store_inferior_registers): Likewise.
14678 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
14679 vaxbsd_store_inferior_registers): Likewise.
14680 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
14681 store_xtregs): Likewise.
14682
14683 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14684
14685 PR gdb/14441
14686 * NEWS: Mention support for rvalue references in GDB and python.
14687 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
14688 supports both lvalue and rvalue references.
14689
14690 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14691
14692 PR gdb/14441
14693 * gdbtypes.c (rank_one_type): Implement overloading
14694 resolution rules regarding rvalue references.
14695
14696 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14697
14698 PR gdb/14441
14699 * aarch64-tdep.c (aarch64_type_align)
14700 (aarch64_extract_return_value, aarch64_store_return_value): Change
14701 lvalue reference type checks to general reference type checks.
14702 * amd64-tdep.c (amd64_classify): Likewise.
14703 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
14704 Likewise.
14705 * arm-tdep.c (arm_type_align, arm_extract_return_value)
14706 (arm_store_return_value): Likewise.
14707 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
14708 * c-typeprint.c (c_print_type): Likewise.
14709 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
14710 (cplus_number_of_children, cplus_describe_child): Likewise.
14711 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
14712 * completer.c (expression_completer): Likewise.
14713 * cp-support.c (make_symbol_overload_list_adl_namespace):
14714 Likewise.
14715 * darwin-nat-info.c (info_mach_region_command): Likewise.
14716 * dwarf2loc.c (entry_data_value_coerce_ref)
14717 (value_of_dwarf_reg_entry): Likewise.
14718 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
14719 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
14720 Likewise.
14721 * findvar.c (extract_typed_address, store_typed_address):
14722 Likewise.
14723 * gdbtypes.c (rank_one_type): Likewise.
14724 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
14725 * infcall.c (value_arg_coerce): Likewise.
14726 * language.c (pointer_type): Likewise.
14727 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
14728 Likewise.
14729 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
14730 * mn10300-tdep.c (mn10300_type_align): Likewise.
14731 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
14732 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
14733 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
14734 Likewise.
14735 * printcmd.c (print_formatted, x_command): Likewise.
14736 * python/py-type.c (typy_get_composite, typy_template_argument):
14737 Likewise.
14738 * python/py-value.c (valpy_referenced_value)
14739 (valpy_get_dynamic_type, value_has_field): Likewise.
14740 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
14741 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
14742 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
14743 * spu-tdep.c (spu_scalar_value_p): Likewise.
14744 * symtab.c (lookup_symbol_aux): Likewise.
14745 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
14746 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
14747 Likewise.
14748 * valops.c (value_cast_pointers, value_cast)
14749 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
14750 (value_struct_elt, value_struct_elt_bitpos)
14751 (value_find_oload_method_list, find_overload_match)
14752 (value_rtti_indirect_type): Likewise.
14753 * valprint.c (val_print_scalar_type_p, generic_val_print):
14754 Likewise.
14755 * value.c (value_actual_type, value_as_address, unpack_long)
14756 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
14757 (coerce_ref): Likewise.
14758 * varobj.c (varobj_get_value_type): Likewise.
14759
14760 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14761
14762 PR gdb/14441
14763 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
14764 table of constants.
14765 * python/lib/gdb/command/explore.py: Support exploring values
14766 of rvalue reference types.
14767 * python/lib/gdb/types.py: Implement get_basic_type() for
14768 rvalue reference types.
14769 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
14770 constant.
14771 * python/py-value.c (valpy_getitem): Add an rvalue reference
14772 check.
14773 (valpy_reference_value): Add new parameter "refcode".
14774 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
14775 New wrappers for valpy_reference_value().
14776 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14777 (gdbpy_invoke_xmethod): Likewise.
14778
14779 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14780
14781 PR gdb/14441
14782 * dwarf2read.c (process_die, read_type_die_1): Handle the
14783 DW_TAG_rvalue_reference_type DIE.
14784 (read_tag_reference_type): Add new parameter "refcode".
14785
14786 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14787
14788 PR gdb/14441
14789 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
14790 (c_type_print_modifier, c_type_print_varspec_suffix)
14791 (c_type_print_base): Support printing rvalue reference types.
14792 * c-valprint.c (c_val_print, c_value_print): Support printing
14793 rvalue reference values.
14794
14795 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14796
14797 PR gdb/14441
14798 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
14799 typename.
14800 * cp-support.c (replace_typedefs): Handle
14801 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
14802 * python/py-type.c (typy_lookup_type): Likewise.
14803
14804 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14805
14806 PR gdb/14441
14807 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
14808 * parse.c (insert_type): Change assert statement.
14809 (follow_types): Handle rvalue reference types.
14810 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
14811 constant.
14812
14813 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14814
14815 PR gdb/14441
14816 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
14817 value_ref() interface.
14818 * c-valprint.c (c_value_print): Likewise.
14819 * infcall.c (value_arg_coerce): Likewise.
14820 * python/py-value.c (valpy_reference_value): Likewise.
14821 * valops.c (value_cast, value_reinterpret_cast)
14822 (value_dynamic_cast, typecmp): Likewise.
14823 (value_ref): Parameterize by kind of return value reference type.
14824 * value.h (value_ref): Add new parameter "refcode".
14825
14826 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14827
14828 PR gdb/14441
14829 * dwarf2read.c (read_tag_reference_type): Use
14830 lookup_lvalue_reference_type() instead of lookup_reference_type().
14831 * eval.c (evaluate_subexp_standard): Likewise.
14832 * f-exp.y: Likewise.
14833 * gdbtypes.c (make_reference_type, lookup_reference_type):
14834 Generalize with rvalue reference types.
14835 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
14836 convenience wrappers for lookup_reference_type().
14837 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
14838 reference kind parameter.
14839 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
14840 wrappers for lookup_reference_type().
14841 * guile/scm-type.c (gdbscm_type_reference): Use
14842 lookup_lvalue_reference_type() instead of lookup_reference_type().
14843 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
14844 * parse.c (follow_types): Likewise.
14845 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
14846 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
14847 Likewise.
14848 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14849 (gdbpy_invoke_xmethod): Likewise.
14850 * stabsread.c: Provide extra argument to make_reference_type()
14851 call.
14852 * valops.c (value_ref, value_rtti_indirect_type): Use
14853 lookup_lvalue_reference_type() instead of lookup_reference_type().
14854
14855 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14856
14857 PR gdb/14441
14858 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
14859 (TYPE_IS_REFERENCE): New macro.
14860 (struct type): Add rvalue_reference_type field.
14861 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
14862
14863 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14864
14865 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
14866 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
14867 New function definition.
14868 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
14869 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
14870 New function declaration.
14871 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
14872 * mi/mi-interp.h: New file.
14873 * solib.c (info_sharedlibrary_command): Replace for loop with
14874 ALL_SO_LIBS macro
14875 * solib.h (update_solib_list): New function declaration.
14876 (so_list_head): Move macro.
14877 * solist.h (ALL_SO_LIBS): New macro.
14878
14879 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14880
14881 * infcmd.c (post_create_inferior): Remove unused argument in
14882 call to solib_add.
14883 * remote.c (remote_start_remote): Likewise.
14884 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
14885 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
14886 (enable_break): Likewise.
14887 * solib.c (update_solib_list): Remove unused target argument
14888 and its documentation.
14889 (solib_add): Remove unused target argument. Remove unused
14890 argument in call to update_solib_list.
14891 (info_sharedlibrary_command): Remove unused argument in call
14892 to update_solib_list.
14893 (sharedlibrary_command): Remove unused argument in call to
14894 solib_add.
14895 (handle_solib_event): Likewise.
14896 (reload_shared_libraries): Likewise.
14897 * solib.h (solib_add): Remove unused target argument.
14898
14899 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
14900
14901 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
14902 (s390_displaced_step_fixup): Cover relative branches with the
14903 default fixup handling. This fixes lack of support for some
14904 relative branch instructions.
14905
14906 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14907
14908 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
14909 ptid from regcache.
14910
14911 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14912
14913 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
14914 i386_darwin_store_inferior_registers): Use ptid from regcache.
14915
14916 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14917
14918 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
14919 i386bsd_store_inferior_registers): Use ptid from regcache.
14920
14921 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14922
14923 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
14924 hppaobsd_store_registers): Use ptid from regcache.
14925
14926 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14927
14928 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
14929 hppanbsd_store_registers): Use ptid from regcache.
14930
14931 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14932
14933 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
14934 from regcache. Use get_ptrace_pid.
14935
14936 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14937
14938 * corelow.c (get_core_register_section): Use ptid from regcache,
14939 update doc.
14940
14941 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14942
14943 * bsd-uthread.c (bsd_uthread_fetch_registers,
14944 bsd_uthread_store_registers): Use ptid from regcache, set and
14945 restore inferior_ptid.
14946
14947 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14948
14949 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
14950 fetch_fp_regs, store_register, store_regs, store_fp_register,
14951 store_fp_regs): Use ptid from regcache.
14952
14953 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14954
14955 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
14956 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
14957 store_vfp_regs): Use ptid from regcache.
14958
14959 2017-03-17 Pedro Alves <palves@redhat.com>
14960
14961 PR remote/21188
14962 * ser-base.c (ser_base_wait_for): Add comment.
14963 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
14964 version.
14965 * ser-unix.c (hardwire_raw): Remove reference to
14966 scb->current_timeout.
14967 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
14968 (hardwire_ops): Install ser_base_readchar instead of
14969 hardwire_readchar.
14970 * serial.h (struct serial) <current_timeout, timeout_remaining>:
14971 Remove fields.
14972
14973 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
14974
14975 PR gdb/19637
14976 * python/lib/gdb/printer/bound_registers.py: Add support for
14977 Python 3.
14978
14979 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
14980
14981 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
14982 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
14983 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
14984 byte_offset to subobj_byte_offset. Fix the handling of
14985 DWARF_VALUE_STACK on big-endian targets when coming via an
14986 implicit pointer.
14987 (dwarf2_evaluate_loc_desc): Adjust call to
14988 dwarf2_evaluate_loc_desc_full.
14989 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
14990 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
14991
14992 2017-03-16 Yao Qi <yao.qi@linaro.org>
14993
14994 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
14995 and REVSH instructions.
14996
14997 2017-03-16 Yao Qi <yao.qi@linaro.org>
14998
14999 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15000 (arm_record_test): Declare.
15001 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15002 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15003 align with the manual.
15004 (thumb_record_misc): Adjust the code order to align with the
15005 manual.
15006 (thumb2_record_decode_insn_handler): Fix instruction matching.
15007 (instruction_reader_thumb): New class.
15008 (arm_record_test): New function.
15009
15010 2017-03-16 Yao Qi <yao.qi@linaro.org>
15011
15012 * arm-tdep.c (abstract_memory_reader): New class.
15013 (instruction_reader): New class.
15014 (extract_arm_insn): Add argument 'reader'. Callers updated.
15015 (decode_insn): Likewise.
15016
15017 2017-03-16 Doug Evans <dje@google.com>
15018
15019 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15020 member. Change type of TYPE member to SCM. All uses updated.
15021 (lsscm_make_lazy_string_smob): Add assert.
15022 (lsscm_make_lazy_string): Flag bad length values.
15023 (lsscm_elt_type): New function.
15024 (gdbscm_lazy_string_to_value): Rewrite to use
15025 lsscm_safe_lazy_string_to_value.
15026 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15027 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15028 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15029 in incoming type.
15030 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15031 * guile/scm-type.c (tyscm_scm_to_type): New function.
15032
15033 2017-03-15 Doug Evans <dje@google.com>
15034
15035 PR python/17728, python/18439, python/18779
15036 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15037 member. Change type of TYPE member to PyObject *. All uses updated.
15038 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15039 (gdbpy_create_lazy_string_object): Flag bad length values.
15040 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15041 Handle typedefs in incoming type.
15042 (stpy_lazy_string_elt_type): New function.
15043 (gdbpy_extract_lazy_string): Call it.
15044 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15045 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15046 typedefs in incoming type.
15047
15048 2017-03-16 Doug Evans <dje@google.com>
15049
15050 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15051 * guile/scm-type.c (tyscm_scm_to_type): New function.
15052
15053 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15054
15055 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15056 "ULONGEST" for "skip".
15057
15058 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15059
15060 PR gdb/21220
15061 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15062 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15063 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15064 over ptrace peek/poke until end of buffer or error.
15065
15066 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15067
15068 * parse.c (length_of_subexp): Make static.
15069 * parser-defs.h (length_of_subexp): Remove.
15070
15071 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15072
15073 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15074 as well.
15075
15076 2017-03-14 Pedro Alves <palves@redhat.com>
15077
15078 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15079 (main): Use std::unique_ptr. Remove calls to
15080 cp_demangled_name_parse_free.
15081
15082 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15083
15084 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15085 alphabsd_store_inferior_registers): Use regcache->ptid instead
15086 of inferior_ptid.
15087
15088 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15089
15090 * aix-thread.c (aix_thread_fetch_registers,
15091 aix_thread_store_registers): Use regcache->ptid instead of
15092 inferior_ptid.
15093
15094 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15095
15096 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15097 store_gregs_to_thread, fetch_fpregs_from_thread,
15098 store_fpregs_to_thread): Use regcache->ptid instead of
15099 inferior_ptid.
15100
15101 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15102
15103 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15104 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15105 instead of inferior_ptid.
15106
15107 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15108
15109 * target.c (target_fetch_registers, target_store_registers): Add
15110 assert.
15111
15112 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15113
15114 * regcache.h (regcache_get_ptid): New function.
15115 * regcache.c (regcache_get_ptid): New function.
15116
15117 2017-03-13 Mark Wielaard <mark@klomp.org>
15118
15119 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15120
15121 2017-03-10 Keith Seitz <keiths@redhat.com>
15122
15123 PR c++/8218
15124 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15125
15126 2017-03-08 Pedro Alves <palves@redhat.com>
15127
15128 PR gdb/18360
15129 * infrun.c (start_step_over, do_target_resume, resume)
15130 (restart_threads): Assert we're not resuming a thread that is
15131 meant to be stopped.
15132 (infrun_thread_stop_requested_callback): Delete.
15133 (infrun_thread_stop_requested): If the thread is internally
15134 stopped, queue a pending stop event and clear the thread's
15135 inline-frame state.
15136 (handle_stop_requested): New function.
15137 (handle_syscall_event, handle_inferior_event_1): Use
15138 handle_stop_requested.
15139 (handle_stop_requested): New function.
15140 (handle_signal_stop): Set the thread's stop_signal here instead of
15141 at caller.
15142 (finish_step_over): Clear step over info unconditionally.
15143 (handle_signal_stop): If the user had interrupted the event
15144 thread, consider the stop a random signal.
15145 (handle_signal_stop) <signal arrived while stepping over
15146 breakpoint>: Don't restart threads here.
15147 (stop_waiting): Don't clear step-over info here.
15148
15149 2017-03-08 Pedro Alves <palves@redhat.com>
15150
15151 PR 21206
15152 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15153 goes to argument 2, not 1.
15154
15155 2017-03-08 Pedro Alves <palves@redhat.com>
15156
15157 PR cli/21218
15158 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15159 display_gdb_prompt.
15160 (command_line_input): Add comment.
15161
15162 2017-03-08 Pedro Alves <palves@redhat.com>
15163
15164 PR tui/21216
15165 * tui/tui-file.c (tui_file::write): New.
15166 * tui/tui-file.h (tui_file): Override "write".
15167 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15168 factored out from ...
15169 (tui_puts): ... here.
15170 (tui_putc): Use them.
15171 (tui_write): New function.
15172 * tui/tui-io.h (tui_write): Declare.
15173
15174 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15175
15176 * Makefile.in (SFILES): Replace "environ.c" with
15177 "common/environ.c".
15178 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15179 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15180 to...
15181 * common/environ.c: ... here.
15182 * environ.h: Moved to...
15183 * common/environ.h: ... here.
15184
15185 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15186
15187 * gdbarch.sh (pstring_ptr): New static function.
15188 (gdbarch_disassembler_options): Use it.
15189 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15190 not valid_disassembler_option->name.
15191 * gdbarch.c: Regenerate.
15192
15193 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15194
15195 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15196
15197 2017-03-07 Pedro Alves <palves@redhat.com>
15198
15199 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15200
15201 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15202
15203 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15204 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15205 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15206 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15207
15208 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15209
15210 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15211
15212 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15213
15214 * remote.c (remote_add_target_side_commands): Use range-based
15215 for loop.
15216
15217 2017-03-03 Yao Qi <yao.qi@linaro.org>
15218
15219 PR gdb/21165
15220 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15221 value is lazy.
15222 * valprint.c (common_val_print): Likewise.
15223
15224 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15225
15226 * NEWS: Mention new set/show disassembler-options commands.
15227 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15228 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15229 (prospective_options): New static variable.
15230 (gdb_disassembler::gdb_disassembler): Initialize
15231 m_di.disassembler_options.
15232 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15233 (get_disassembler_options): New function.
15234 (set_disassembler_options): Likewise.
15235 (set_disassembler_options_sfunc): Likewise.
15236 (show_disassembler_options_sfunc): Likewise.
15237 (disassembler_options_completer): Likewise.
15238 (_initialize_disasm): Likewise.
15239 * disasm.h (get_disassembler_options): New prototype.
15240 (set_disassembler_options): Likewise.
15241 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15242 (gdbarch_verify_disassembler_options): Likewise.
15243 * gdbarch.c: Regenerate.
15244 * gdbarch.h: Likewise.
15245 * arm-tdep.c (num_disassembly_options): Delete.
15246 (set_disassembly_style): Likewise.
15247 (arm_disassembler_options): New static variable.
15248 (set_disassembly_style_sfunc): Convert short style name into long
15249 option name. Call set_disassembler_options.
15250 (show_disassembly_style_sfunc): New function.
15251 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15252 set_gdbarch_verify_disassembler_options.
15253 (_initialize_arm_tdep): Delete regnames variable and update callers.
15254 (arm_disassembler_options): Initialize.
15255 (disasm_options): New variable.
15256 (num_disassembly_options): Rename from this...
15257 (num_disassembly_styles): ...to this. Compute by scanning through
15258 disasm_options.
15259 (valid_disassembly_styles): Initialize using disasm_options.
15260 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15261 set_arm_regname_option.
15262 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15263 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15264 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15265 set_gdbarch_verify_disassembler_options.
15266 * s390-tdep.c (s390_disassembler_options): New static variable.
15267 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15268 set_gdbarch_verify_disassembler_options.
15269
15270 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15271
15272 * remote.c (remote_add_target_side_condition): Remove "struct"
15273 keyword from range-based for loop.
15274
15275 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15276
15277 * remote.c (remote_add_target_side_condition): Use range-based
15278 for loop. Update comment.
15279
15280 2017-02-27 Yao Qi <yao.qi@linaro.org>
15281
15282 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15283
15284 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15285
15286 * regcache.c (regcache_raw_update): New function.
15287 (regcache_raw_read): Move code to regcache_raw_update.
15288 * regcache.h (regcache_raw_update): New declaration.
15289 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15290
15291 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15292
15293 * dwarf2read.c (create_debug_type_hash_table): Initialize
15294 header.signature and header.type_offset_in_tu.
15295
15296 2017-02-24 Pedro Alves <palves@redhat.com>
15297
15298 * symtab.c (make_file_symbol_completion_list_1): Use
15299 add_symtab_completions.
15300
15301 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15302
15303 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15304
15305 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15306
15307 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15308 I386_MAX_REGISTER_SIZE.
15309 (i386_pseudo_register_write): Likewise.
15310 (i386_process_record): Likewise.
15311 * i387-tdep.c (i387_supply_xsave): Likewise.
15312 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15313 (store_register): Likewise.
15314
15315 2017-02-23 Pedro Alves <palves@redhat.com>
15316
15317 * ada-lang.c: Include "common/function-view.h".
15318 (ada_iterate_over_symbols): Adjust to use function_view as
15319 callback type.
15320 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15321 (ada_make_symbol_completion_list): Use a lambda.
15322 (ada_exc_search_name_matches): Delete.
15323 (name_matches_regex): New.
15324 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15325 * compile/compile-c-support.c: Include "common/function-view.h".
15326 (print_one_macro): Change prototype to accept a ui_file pointer.
15327 (write_macro_definitions): Use a lambda.
15328 * dwarf2read.c: Include "common/function-view.h".
15329 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15330 (dw2_expand_symtabs_matching): Adjust to use function_view as
15331 callback type.
15332 * language.h: Include "common/function-view.h".
15333 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15334 function_view as callback type.
15335 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15336 * linespec.c: Include "common/function-view.h".
15337 (collect_info::add_symbol): New method.
15338 (struct symbol_and_data_callback, iterate_inline_only, struct
15339 symbol_matcher_data, iterate_name_matcher): Delete.
15340 (iterate_over_all_matching_symtabs): Adjust to use function_view
15341 as callback type and lambdas.
15342 (iterate_over_file_blocks): Adjust to use function_view as
15343 callback type.
15344 (decode_compound_collector): Now a class with private fields.
15345 (decode_compound_collector::release_symbols): New method.
15346 (collect_one_symbol): Rename to...
15347 (decode_compound_collector::operator()): ... this and adjust.
15348 (lookup_prefix_sym): decode_compound_collector construction bits
15349 move to decode_compound_collector ctor. Pass the
15350 decode_compound_collector object directly as callback. Remove
15351 cleanups and use decode_compound_collector::release_symbols
15352 instead.
15353 (symtab_collector): Now a class with private fields.
15354 (symtab_collector::release_symtabs): New method.
15355 (add_symtabs_to_list): Rename to...
15356 (symtab_collector::operator()): ... this and adjust.
15357 (collect_symtabs_from_filename): symtab_collector construction
15358 bits move to symtab_collector ctor. Pass the symtab_collector
15359 object directly as callback. Remove cleanups and use
15360 symtab_collector::release_symtabs instead.
15361 (collect_symbols): Delete.
15362 (add_matching_symbols_to_info): Use lambdas.
15363 * macrocmd.c (print_macro_callback): Delete.
15364 (info_macro_command): Use a lambda.
15365 (info_macros_command): Pass print_macro_definition as callable
15366 directly.
15367 (print_one_macro): Remove 'ignore' parameter.
15368 (macro_list_command): Adjust.
15369 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15370 (macro_for_each_data::user_data): Delete field.
15371 (foreach_macro): Adjust to call the function_view.
15372 (macro_for_each): Adjust to use function_view as callback type.
15373 (foreach_macro_in_scope): Adjust to call the function_view.
15374 (macro_for_each_in_scope): Adjust to use function_view as callback
15375 type.
15376 * macrotab.h: Include "common/function-view.h".
15377 (macro_callback_fn): Declare a prototype instead of a pointer.
15378 Remove "user_data" parameter.
15379 (macro_for_each, macro_for_each_in_scope): Adjust to use
15380 function_view as callback type.
15381 * psymtab.c (partial_map_expand_apply)
15382 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
15383 Adjust to use function_view as callback type and to return bool.
15384 (psym_expand_symtabs_matching): Adjust to use function_view as
15385 callback types.
15386 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
15387 to use function_view as callback type and to return bool.
15388 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
15389 callback types.
15390 * symfile.c (expand_symtabs_matching): Adjust to use function_view
15391 as callback types.
15392 * symfile.h: Include "common/function-view.h".
15393 (expand_symtabs_file_matcher_ftype)
15394 (expand_symtabs_symbol_matcher_ftype)
15395 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
15396 return bool.
15397 (quick_symbol_functions::map_symtabs_matching_filename)
15398 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
15399 function_view as callback type and return bool.
15400 (expand_symtabs_matching): Adjust to use function_view as callback
15401 type.
15402 (maintenance_expand_name_matcher)
15403 (maintenance_expand_file_matcher): Delete.
15404 (maintenance_expand_symtabs): Use lambdas.
15405 * symtab.c (iterate_over_some_symtabs): Adjust to use
15406 function_view as callback types and return bool.
15407 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
15408 of a cleanup.
15409 (lookup_symtab_callback): Delete.
15410 (lookup_symtab): Use a lambda.
15411 (iterate_over_symbols): Adjust to use function_view as callback
15412 type.
15413 (struct search_symbols_data, search_symbols_file_matches)
15414 (search_symbols_name_matches): Delete.
15415 (search_symbols): Use a pair of lambdas.
15416 (struct add_name_data, add_macro_name, symbol_completion_matcher)
15417 (symtab_expansion_callback): Delete.
15418 (default_make_symbol_completion_list_break_on_1): Use lambdas.
15419 * symtab.h: Include "common/function-view.h".
15420 (iterate_over_some_symtabs): Adjust to use function_view as
15421 callback type and return bool.
15422 (iterate_over_symtabs): Adjust to use function_view as callback
15423 type.
15424 (symbol_found_callback_ftype): Remove 'data' parameter and return
15425 bool.
15426 (iterate_over_symbols): Adjust to use function_view as callback
15427 type.
15428
15429 2017-02-23 Pedro Alves <palves@redhat.com>
15430
15431 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
15432 (%.o) <unittests/%.c>: New pattern.
15433 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
15434 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
15435 * common/function-view.h: New file.
15436 * unittests/function-view-selftests.c: New file.
15437 * configure: Regenerate.
15438
15439 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
15440
15441 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
15442 inferior_ptid.
15443 * go32-nat.c (go32_thread_alive): Likewise.
15444
15445 2017-02-23 Yao Qi <yao.qi@linaro.org>
15446
15447 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
15448 delete.
15449
15450 2017-02-23 Yao Qi <yao.qi@linaro.org>
15451
15452 * varobj.c (varobj_clear_saved_item): Use delete instead of
15453 xfree.
15454 (update_dynamic_varobj_children): Likewise.
15455
15456 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15457
15458 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
15459
15460 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
15461
15462 * common/enum-flags.h (enum_flags::enum_flags): Initialize
15463 m_enum_value to 0 in default constructor.
15464
15465 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15466
15467 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
15468 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
15469 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
15470 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
15471 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
15472 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
15473 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
15474 IS_STORE_CONDITIONAL_INSN.
15475
15476 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15477
15478 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
15479
15480 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15481
15482 * NEWS (Changes since GDB 7.12): Add DWARF-5.
15483
15484 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15485
15486 * dwarf2read.c (skip_one_die, read_attribute_value)
15487 (dwarf2_const_value_attr, dump_die_shallow)
15488 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15489 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15490
15491 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15492
15493 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15494 (dwarf_parse_macro_header): Accept DWARF version 5.
15495 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15496
15497 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15498
15499 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15500 DW_AT_GNU_*.
15501 * common/common-exceptions.h (enum errors): Likewise.
15502 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15503 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15504 (dwarf_expr_context::execute_stack_op): Likewise.
15505 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15506 Likewise.
15507 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15508 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15509 (show_entry_values_debug, call_site_to_target_addr)
15510 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15511 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15512 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15513 (value_of_dwarf_block_entry, indirect_pieced_value)
15514 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15515 (disassemble_dwarf_expression): Likewise.
15516 * dwarf2read.c (process_die, inherit_abstract_dies)
15517 (read_call_site_scope): Likewise.
15518 * gdbtypes.h (struct func_type, struct call_site_parameter)
15519 (struct call_site): Likewise.
15520 * stack.c (read_frame_arg): Likewise.
15521 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15522
15523 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15524
15525 * defs.h (read_unsigned_leb128): New declaration.
15526 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
15527 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
15528 (dwarf2_find_location_expression): Call also
15529 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
15530 * dwarf2loc.h (dwarf2_version): New declaration.
15531 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
15532 rnglists.
15533 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
15534 .debug_rnglists.
15535 (struct dwop_section_names): Add loclists_dwo.
15536 (dwop_section_names): Add .debug_loclists.dwo.
15537 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
15538 (struct dwarf2_per_cu_data): Add dwarf_version.
15539 (struct dwo_sections): Add loclists.
15540 (struct attr_abbrev): Add implicit_const.
15541 (read_indirect_line_string): New declaration.
15542 (read_unsigned_leb128): Delete declaration.
15543 (rcuh_kind): New definition.
15544 (read_and_check_comp_unit_head): Change parameter
15545 is_debug_types_section to section_kind.
15546 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
15547 (read_comp_unit_head): Change parameter abfd to section, add parameter
15548 section_kind. Handle DWARF-5.
15549 (error_check_comp_unit_head): Accept also DWARF version 5.
15550 (read_and_check_comp_unit_head): Change parameter
15551 is_debug_types_section to section_kind.
15552 (read_and_check_type_unit_head): Delete function.
15553 (read_abbrev_offset): Handle DWARF-5.
15554 (create_debug_type_hash_table): Add parameter section_kind. Process
15555 only DW_UT_type. Use signature and type_offset_in_tu from struct
15556 comp_unit_head.
15557 (create_debug_types_hash_table): Update create_debug_type_hash_table
15558 caller.
15559 (create_all_type_units): Call create_debug_type_hash_table.
15560 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
15561 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
15562 caller.
15563 (skip_one_die): Handle DW_FORM_implicit_const.
15564 (dwarf2_rnglists_process): New function.
15565 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15566 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15567 (read_attribute_value): Handle DW_FORM_implicit_const,
15568 DW_FORM_line_strp.
15569 (read_attribute): Handle DW_FORM_implicit_const.
15570 (read_indirect_string_at_offset_from): New function from
15571 read_indirect_string_at_offset.
15572 (read_indirect_string_at_offset): Call
15573 read_indirect_string_at_offset_from.
15574 (read_indirect_line_string_at_offset): New function.
15575 (read_indirect_string): New function comment.
15576 (read_indirect_line_string): New function.
15577 (read_unsigned_leb128): Make it global.
15578 (dwarf2_string_attr): Handle DWARF-5.
15579 (add_include_dir_stub, read_formatted_entries): New functions.
15580 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
15581 Handle DWARF-5.
15582 (per_cu_header_read_in): Update read_comp_unit_head caller.
15583 (dwarf2_version): New function.
15584 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
15585 rnglists.
15586 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
15587 fields.
15588
15589 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15590
15591 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
15592
15593 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15594
15595 * dwarf2read.c (dwarf2_ranges_process): New function from
15596 dwarf2_ranges_read.
15597 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
15598 dwarf2_ranges_process.
15599
15600 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15601
15602 * dwarf2read.c (create_debug_type_hash_table): New function from
15603 create_debug_types_hash_table.
15604 (create_debug_types_hash_table): Call create_debug_type_hash_table.
15605 (create_all_type_units, open_and_init_dwo_file): Update
15606 create_debug_types_hash_table callers.
15607
15608 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15609
15610 PR gdb/16188
15611 * fork-child.c (trace_start_error): Fix thinko. va_end should
15612 refer to 'ap', not 'args'.
15613
15614 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15615 Pedro Alves <palves@redhat.com>
15616
15617 PR gdb/16188
15618 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
15619 calls succeeded.
15620 * fork-child.c (trace_start_error): New function.
15621 (trace_start_error_with_name): Likewise.
15622 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
15623 * inf-ptrace.c (inf_ptrace_me): Likewise.
15624 * inferior.h (trace_start_error): New prototype.
15625 (trace_start_error_with_name): Likewise.
15626
15627 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
15628
15629 PR gdb/21164
15630 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
15631 NULL before using it.
15632 * symmisc.c (maintenance_print_symbols): Likewise.
15633 (maintenance_print_msymbols): Likewise.
15634
15635 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15636
15637 * NEWS: Add record Python bindings entry.
15638
15639 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15640
15641 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
15642 py-record-full.o.
15643 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
15644 * python/py-record-btrace.c, python/py-record-btrace.h,
15645 python/py-record-full.c, python/py-record-full.h: New file.
15646 * python/py-record.c: Add include for py-record-btrace.h and
15647 py-record-full.h.
15648 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
15649 recpy_instruction_history, recpy_function_call_history, recpy_begin,
15650 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
15651 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
15652 New definition.
15653 (gdbpy_initialize_btrace): New export.
15654 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
15655
15656 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15657
15658 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
15659 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
15660 * python/py-record.c: New file.
15661 * python/python-internal.h (gdbpy_start_recording,
15662 gdbpy_current_recording, gdpy_stop_recording,
15663 gdbpy_initialize_record): New export.
15664 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
15665 (python_GdbMethods): Add gdbpy_start_recording,
15666 gdbpy_current_recording and gdbpy_stop_recording.
15667
15668 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15669
15670 * record-btrace.c (record_btrace_record_method): New function.
15671 (init_record_btrace_ops): Initialize to_record_method.
15672 * record-full.c (record_full_record_method): New function.
15673 (init_record_full_ops, init_record_full_core_ops): Add
15674 record_full_record_method.
15675 * record.h (enum record_method): New enum.
15676 * target-debug.h (target_debug_print_enum_record_method: New define.
15677 * target-delegates.c: Regenerate.
15678 * target.c (target_record_method): New function.
15679 * target.h: Include record.h.
15680 (struct target_ops) <to_record_method>: New field.
15681 (target_record_method): New export.
15682
15683 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15684
15685 * record.h (record_start, record_stop): New export.
15686 * record.c (record_start, record_stop): New function.
15687
15688 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15689
15690 * btrace.c (btrace_fetch): Copy function call segments pointer
15691 into a vector.
15692 (btrace_clear): Clear the vector.
15693 (btrace_find_insn_by_number): Use binary search to find the correct
15694 function call segment.
15695 * btrace.h (brace_fun_p): New typedef.
15696 (struct btrace_thread_info) <functions>: New field.
15697
15698 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15699
15700 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
15701 * btrace.c (btrace_decode_error): ... here. New function.
15702 * btrace.h (btrace_decode_error): New export.
15703
15704 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15705
15706 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
15707 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
15708 btrace_find_insn_by_number): Remove special case for gaps.
15709 * btrace.h (btrace_insn_get_error): New export.
15710 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
15711 * record-btrace.c (btrace_insn_history): Print number for gaps.
15712 (record_btrace_info, record_btrace_goto): Handle gaps.
15713
15714 2017-02-14 Tom Tromey <tom@tromey.com>
15715
15716 PR python/13598:
15717 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
15718 event.
15719 * python/py-evts.c (gdbpy_initialize_py_events): Add
15720 before_prompt registry.
15721 * python/py-events.h (events_object) <before_prompt>: New field.
15722
15723 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
15724
15725 * btrace.c (ftrace_new_switch): Preserve up link and flags.
15726
15727 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
15728
15729 * symfile (_initialize_symfile): Add usage text to the load command's
15730 help text.
15731
15732 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
15733
15734 * utils.c (defaulted_query): Don't query on secondary UIs.
15735
15736 2017-02-10 Tom Tromey <tom@tromey.com>
15737
15738 * rust-lang.c (rust_get_disr_info): Remove unused variable.
15739
15740 2017-02-10 Tom Tromey <tom@tromey.com>
15741
15742 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
15743 "cleanup" local.
15744 * python/py-type.c (typy_legacy_template_argument): Remove
15745 unnecessary "cleanup" local.
15746
15747 2017-02-10 Tom Tromey <tom@tromey.com>
15748
15749 * python/python.c (do_start_initialization): New function, from
15750 _initialize_python.
15751 (_initialize_python): Call do_start_initialization.
15752 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
15753 goto.
15754
15755 2017-02-10 Tom Tromey <tom@tromey.com>
15756
15757 * python/py-prettyprint.c (pretty_print_one_value): Use
15758 gdbpy_ref.
15759
15760 2017-02-10 Tom Tromey <tom@tromey.com>
15761
15762 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
15763 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
15764 gdbpy_ref.
15765 * python/py-type.c (field_new): Use gdbpy_ref.
15766 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
15767 gdbpy_ref.
15768 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
15769 (py_free_pspace): Likewise.
15770 (pspace_to_pspace_object): Likewise.
15771 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
15772 (py_free_objfile): Likewise.
15773 (objfile_to_objfile_object): Likewise.
15774 * python/py-inferior.c (delete_thread_object): Use
15775 gdbpy_ref.
15776 (infpy_read_memory): Likewise.
15777 (py_free_inferior): Likewise.
15778 * python/py-evtregistry.c (create_eventregistry_object): Use
15779 gdbpy_ref.
15780 * python/py-event.c (create_event_object): Use gdbpy_ref.
15781
15782 2017-02-10 Tom Tromey <tom@tromey.com>
15783
15784 * python/py-ref.h (gdbpy_ref_policy): Now a template.
15785 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
15786 used.
15787 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
15788 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
15789 python/py-exitedevent.c, python/py-finishbreakpoint.c,
15790 python/py-framefilter.c, python/py-function.c,
15791 python/py-inferior.c, python/py-infevents.c,
15792 python/py-linetable.c, python/py-newobjfileevent.c,
15793 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
15794 python/py-signalevent.c, python/py-stopevent.c,
15795 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
15796 python/py-unwind.c, python/py-utils.c, python/py-value.c,
15797 python/py-varobj.c, python/py-xmethods.c, python/python.c,
15798 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
15799
15800 2017-02-10 Tom Tromey <tom@tromey.com>
15801
15802 * ui-out.h (ui_out_emit_type): New class.
15803 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
15804 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
15805 and ui_out_emit_tuple.
15806 (enumerate_locals): Likewise.
15807 (py_mi_print_variables, py_print_locals, py_print_args): Use
15808 ui_out_emit_list.
15809 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
15810 ui_out_emit_list.
15811 * common/gdb_optional.h: New file.
15812
15813 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
15814
15815 * MAINTAINERS (Write After Approval): Update my e-mail address.
15816
15817 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
15818
15819 PR gdb/21122
15820 * breakpoint.c (_initialize_breakpoint): Update the help description
15821 of the 'commands' command to indicate that it takes a list argument.
15822
15823 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
15824
15825 * interps.c (current_interp_set_logging): Remove "return".
15826
15827 2017-02-09 Gary Benson <gbenson@redhat.com>
15828
15829 * symtab.c (add_symtab_completions): Prevent NULL pointer
15830 dereference.
15831
15832 2017-02-08 Pedro Alves <palves@redhat.com>
15833
15834 * interps.c (interp::interp): Remove reference to quiet_p.
15835 (interp_set): Make static. Remove dead "Switching to" output
15836 code.
15837 (interp_quiet_p, interp_set_quiet): Delete.
15838 (interpreter_exec_cmd): Don't set the interpreter quiet.
15839 * interps.h (interp_quiet_p): Make static.
15840 (class interp) <quiet_p>: Remove field
15841
15842 2017-02-08 Jerome Guitton <guitton@adacore.com>
15843
15844 * cli/cli-decode.c (find_command_name_length): Make it extern.
15845 * cli/cli-decode.h (find_command_name_length): Declare.
15846 * cli/cli-script.c (command_name_equals, line_first_arg):
15847 New functions.
15848 (process_next_line): Use cli-decode to parse command names.
15849 (build_command_line): Make args a constant pointer.
15850
15851 2017-02-08 Jerome Guitton <guitton@adacore.com>
15852
15853 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
15854 Remove case-insensitive search.
15855
15856 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
15857
15858 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
15859 at the end of the line. Avoids an ARI warning.
15860
15861 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
15862
15863 * NEWS: Mention support for record/replay of Intel 64 rdrand and
15864 rdseed instructions.
15865 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
15866
15867 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
15868
15869 PR tdep/20936
15870 Provide and use sparc32 and sparc64 target description XML files.
15871 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
15872 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
15873 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
15874 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
15875 * features/sparc/sparc32-solaris.xml: New file.
15876 * features/sparc/sparc64-solaris.xml: New file.
15877 * features/sparc/sparc32-solaris.c: Generated.
15878 * features/sparc/sparc64-solaris.c: Generated.
15879 * sparc-tdep.h: Account for differences in target descriptions.
15880 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
15881 (sparc32_register_type): Use target provided registers.
15882 (validate_tdesc_registers): New function.
15883 (sparc32_gdbarch_init): Use tdesc_has_registers.
15884 Set pseudoregister functions.
15885 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
15886 (sparc64_register_type): Use target provided registers.
15887 (sparc64_init_abi): Set pseudoregister functions.
15888
15889 2017-02-03 Tom Tromey <tom@tromey.com>
15890
15891 PR rust/21097:
15892 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
15893 with a single member.
15894
15895 2017-02-03 Pedro Alves <palves@redhat.com>
15896
15897 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
15898 (cli_interp_base::~cli_interp_base): New.
15899 (cli_interp): New struct.
15900 (as_cli_interp): Cast the interp itself to cli_interp.
15901 (cli_interpreter_pre_command_loop): Rename to ...
15902 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
15903 parameter.
15904 (cli_interpreter_init): Rename to ...
15905 (cli_interp::init): ... this. Remove 'self' parameter. Use
15906 boolean. Make extern.
15907 (cli_interpreter_resume): Rename to ...
15908 (cli_interp::resume): ... this. Remove 'data' parameter. Make
15909 extern.
15910 (cli_interpreter_suspend): Rename to ...
15911 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
15912 extern.
15913 (cli_interpreter_exec): Rename to ...
15914 (cli_interp::exec): ... this. Remove 'data' parameter. Make
15915 extern.
15916 (cli_interpreter_supports_command_editing): Rename to ...
15917 (cli_interp_base::supports_command_editing): ... this. Remove
15918 'interp' parameter. Make extern.
15919 (cli_ui_out): Rename to ...
15920 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
15921 Make extern.
15922 (cli_set_logging): Rename to ...
15923 (cli_interp_base::set_logging): ... this. Remove 'interp'
15924 parameter. Make extern.
15925 (cli_interp_procs): Delete.
15926 (cli_interp_factory): Adjust to use "new".
15927 * cli/cli-interp.h: Include "interps.h".
15928 (struct cli_interp_base): New struct.
15929 * interps.c (struct interp): Delete. Fields moved to interps.h.
15930 (interp_new): Delete.
15931 (interp::interp, interp::~interp): New.
15932 (interp_set): Use bool, and return void. Assume the interpreter
15933 has suspend, init and resume methods, and that the all return
15934 void.
15935 (set_top_level_interpreter): interp_set returns void.
15936 (interp_ui_out): Adapt.
15937 (current_interp_set_logging): Adapt.
15938 (interp_data): Delete.
15939 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
15940 (interp_exec): Adapt.
15941 (top_level_interpreter_data): Delete.
15942 * interps.h (interp_init_ftype, interp_resume_ftype)
15943 (interp_suspend_ftype, interp_exec_ftype)
15944 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
15945 (class interp): New.
15946 (interp_new): Delete.
15947 (interp_set): Now returns void. Use bool.
15948 (interp_data, top_level_interpreter_data): Delete.
15949 * mi/mi-common.h: Include interps.h.
15950 (class mi_interp): Inherit from interp. Define a ctor. Declare
15951 init, resume, suspect, exec, interp_ui_out, set_logging and
15952 pre_command_loop methods.
15953 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
15954 (mi_interpreter_init): Rename to ...
15955 (mi_interp::init): ... this. Remove the 'interp' parameter, use
15956 bool, return void and make extern. Adjust.
15957 (mi_interpreter_resume): ... Rename to ...
15958 (mi_interp::resume): ... this. Remove the 'data' parameter,
15959 return void and make extern. Adjust.
15960 (mi_interpreter_suspend): ... Rename to ...
15961 (mi_interp::suspend): ... this. Remove the 'data' parameter,
15962 return void and make extern. Adjust.
15963 (mi_interpreter_exec): ... Rename to ...
15964 (mi_interp::exec): ... this. Remove the 'data' parameter and make
15965 extern. Adjust.
15966 (mi_interpreter_pre_command_loop): ... Rename to ...
15967 (mi_interp::pre_command_loop): ... this. Remove the 'self'
15968 parameter and make extern.
15969 (mi_on_normal_stop_1): Adjust.
15970 (mi_ui_out): Rename to ...
15971 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
15972 parameter and make extern. Adjust.
15973 (mi_set_logging): Rename to ...
15974 (mi_interp::set_logging): ... this. Remove the 'interp'
15975 parameter and make extern. Adjust.
15976 (mi_interp_procs): Delete.
15977 (mi_interp_factory): Adjust to use 'new'.
15978 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
15979 (mi_print_exception, mi_execute_command, mi_load_progress):
15980 Adjust.
15981 * tui/tui-interp.c (tui_interp): New class.
15982 (as_tui_interp): Return a tui_interp pointer.
15983 (tui_on_normal_stop, tui_on_signal_received)
15984 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
15985 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
15986 to use interp::interp_ui_out.
15987 (tui_init): Rename to ...
15988 (tui_interp::init): ... this. Remove the 'self' parameter, use
15989 bool, return void and make extern. Adjust.
15990 (tui_resume): Rename to ...
15991 (tui_interp::resume): ... this. Remove the 'data' parameter,
15992 return void and make extern. Adjust.
15993 (tui_suspend): Rename to ...
15994 (tui_interp::suspend): ... this. Remove the 'data' parameter,
15995 return void and make extern. Adjust.
15996 (tui_ui_out): Rename to ...
15997 (tui_interp::interp_ui_out): ... this. Remove the 'self'
15998 parameter, and make extern. Adjust.
15999 (tui_exec): Rename to ...
16000 (tui_interp::exec): ... this. Remove the 'data' parameter and
16001 make extern.
16002 (tui_interp_procs): Delete.
16003 (tui_interp_factory): Use "new".
16004
16005 2017-02-02 Tom Tromey <tom@tromey.com>
16006
16007 * rust-exp.y (ends_raw_string, space_then_number)
16008 (rust_identifier_start_p): Return bool.
16009 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16010 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16011 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16012 (rust_chartype_p): Return bool.
16013 (val_print_struct, rust_print_struct_def, rust_print_type):
16014 Update.
16015 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16016 Return bool.
16017
16018 2017-02-02 Tom Tromey <tom@tromey.com>
16019
16020 * rust-lang.c: Reindent.
16021
16022 2017-02-02 Tom Tromey <tom@tromey.com>
16023
16024 * rust-lang.h (rust_crate_for_block): Update.
16025 * rust-lang.c (rust_crate_for_block): Return std::string.
16026 (rust_get_disr_info): Use std:;string, not
16027 gdb::unique_xmalloc_ptr.
16028 * rust-exp.y (crate_name): Update.
16029
16030 2017-02-02 Pedro Alves <palves@redhat.com>
16031
16032 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16033 field out of gdb_disassembler_test and make it static.
16034
16035 2017-02-02 Pedro Alves <palves@redhat.com>
16036
16037 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16038 mi1_interp and mi_interp fields.
16039
16040 2017-02-02 Pedro Alves <palves@redhat.com>
16041
16042 * cli/cli-interp.c (struct saved_output_files, saved_output):
16043 Moved from cli/cli-logging.c.
16044 (cli_set_logging): New function.
16045 (cli_interp_procs): Install cli_set_logging.
16046 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16047 Declare.
16048 * cli/cli-logging.c (struct saved_output_files, saved_output):
16049 Moved to cli/cli-interp.c.
16050 (pop_output_files): Don't save outputs here.
16051 (make_logging_output): New function.
16052 (handle_redirections): Don't build tee nor save previous outputs
16053 here.
16054 * interps.c (current_interp_set_logging): Change prototype.
16055 Assume there's always a set_logging_proc method installed.
16056 * interps.h (interp_set_logging_ftype): Change prototype.
16057 (current_interp_set_logging): Change prototype and adjust comment.
16058 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16059 use make_logging_output.
16060 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16061 2017-02-02 Pedro Alves <palves@redhat.com>
16062
16063 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16064 from ...
16065 (set_logging_overwrite): ... here.
16066 (logging_no_redirect_file): Delete.
16067 (set_logging_redirect): Don't handle redirection on the fly.
16068 Instead warn that "logging off" / "logging on" is necessary.
16069 (pop_output_files): Delete references to logging_no_redirect_file.
16070 (show_logging_command): Always speak in terms of what will happen
16071 once logging is reenabled.
16072
16073 2017-02-02 Pedro Alves <palves@redhat.com>
16074
16075 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16076
16077 2017-02-02 Pedro Alves <palves@redhat.com>
16078
16079 * disasm.c (gdb_pretty_print_insn): Rename to ...
16080 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16081 Remove gdbarch parameter. Adapt to clear the object's buffers
16082 instead of allocating new buffers, and to print using the object's
16083 gdb_disassembler instead of calling gdb_print_insn.
16084 (dump_insns): Use gdb_pretty_print_disassembler.
16085 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16086 (gdb_pretty_print_disassembler): New class.
16087 * record-btrace.c (btrace_insn_history): Use
16088 gdb_pretty_print_disassembler.
16089
16090 2017-02-02 Pedro Alves <palves@redhat.com>
16091
16092 * ada-lang.c (type_as_string): Use string_file.
16093 * ada-valprint.c (ada_print_floating): Use string_file.
16094 * ada-varobj.c (ada_varobj_scalar_image)
16095 (ada_varobj_get_value_image): Use string_file.
16096 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16097 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16098 * breakpoint.c (update_inserted_breakpoint_locations)
16099 (insert_breakpoint_locations, reattach_breakpoints)
16100 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16101 (print_it_watchpoint): Use string_file.
16102 (save_breakpoints): Use stdio_file.
16103 * c-exp.y (oper): Use string_file.
16104 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16105 tee_file.
16106 (pop_output_files): Use delete.
16107 (handle_redirections): Use stdio_file and tee_file.
16108 * cli/cli-setshow.c (do_show_command): Use string_file.
16109 * compile/compile-c-support.c (c_compute_program): Use
16110 string_file.
16111 * compile/compile-c-symbols.c (generate_vla_size): Take a
16112 'string_file &' instead of a 'ui_file *'.
16113 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16114 of a 'ui_file *'. Use string_file.
16115 (generate_c_for_variable_locations): Take a 'string_file &'
16116 instead of a 'ui_file *'.
16117 * compile/compile-internal.h (generate_c_for_for_one_variable):
16118 Take a 'string_file &' instead of a 'ui_file *'.
16119 * compile/compile-loc2c.c (push, pushf, unary, binary)
16120 (print_label, pushf_register_address, pushf_register)
16121 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16122 'ui_file *'. Adjust.
16123 * compile/compile.c (compile_to_object): Use string_file.
16124 * compile/compile.h (compile_dwarf_expr_to_c)
16125 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16126 'ui_file *'.
16127 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16128 (replace_typedefs_qualified_name): Use string_file and
16129 obstack_copy0.
16130 * disasm.c (gdb_pretty_print_insn): Use string_file.
16131 (gdb_disassembly): Adjust reference the null_stream global.
16132 (do_ui_file_delete): Delete.
16133 (gdb_insn_length): Use null_stream.
16134 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16135 * dwarf2loc.c (dwarf2_compile_property_to_c)
16136 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16137 'string_file &' instead of a 'ui_file *'.
16138 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16139 * dwarf2read.c (do_ui_file_peek_last): Delete.
16140 (dwarf2_compute_name): Use string_file.
16141 * event-top.c (gdb_setup_readline): Use stdio_file.
16142 * gdbarch.sh (verify_gdbarch): Use string_file.
16143 * gdbtypes.c (safe_parse_type): Use null_stream.
16144 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16145 string_file.
16146 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16147 'string_file *' instead of a 'ui_file *'.
16148 (gdbscm_arch_disassemble): Use string_file.
16149 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16150 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16151 inherits from ui_file.
16152 (ioscm_file_port_delete, ioscm_file_port_rewind)
16153 (ioscm_file_port_put): Delete.
16154 (ioscm_file_port_write): Rename to ...
16155 (ioscm_file_port::write): ... this. Remove file_port_magic
16156 checks.
16157 (ioscm_file_port_new): Delete.
16158 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16159 ui_file_up.
16160 * guile/scm-type.c (tyscm_type_name): Use string_file.
16161 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16162 Use string_file.
16163 * infcmd.c (print_return_value_1): Use string_file.
16164 * infrun.c (print_target_wait_results): Use string_file.
16165 * language.c (add_language): Use string_file.
16166 * location.c (explicit_to_string_internal): Use string_file.
16167 * main.c (captured_main_1): Use null_file.
16168 * maint.c (maintenance_print_architecture): Use stdio_file.
16169 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16170 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16171 event_channel>: Change type to mi_console_file pointer.
16172 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16173 (mi_console_file_delete): Delete.
16174 (struct mi_console_file): Delete.
16175 (mi_console_file_magic): Delete.
16176 (mi_console_file_new): Delete.
16177 (mi_console_file::mi_console_file): New.
16178 (mi_console_file_delete): Delete.
16179 (mi_console_file_fputs): Delete.
16180 (mi_console_file::write): New.
16181 (mi_console_raw_packet): Delete.
16182 (mi_console_file::flush): New.
16183 (mi_console_file_flush): Delete.
16184 (mi_console_set_raw): Rename to ...
16185 (mi_console_file::set_raw): ... this.
16186 * mi/mi-console.h (class mi_console_file): New class.
16187 (mi_console_file_new, mi_console_set_raw): Delete.
16188 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16189 (mi_set_logging): Use delete and tee_file. Adjust.
16190 * mi/mi-main.c (output_register): Use string_file.
16191 (mi_cmd_data_evaluate_expression): Use string_file.
16192 (mi_cmd_data_read_memory): Use string_file.
16193 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16194 * mi/mi-out.c (mi_ui_out::main_stream): New.
16195 (mi_ui_out::rewind): Use main_stream and
16196 string_file.
16197 (mi_ui_out::put): Use main_stream and string_file.
16198 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16199 Allocate a 'string_file' instead.
16200 (mi_out_new): Don't allocate a mem_fileopen stream here.
16201 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16202 (mi_ui_out::main_stream): Declare method.
16203 * printcmd.c (eval_command): Use string_file.
16204 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16205 * python/py-arch.c (archpy_disassemble): Use string_file.
16206 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16207 * python/py-frame.c (frapy_str): Use string_file.
16208 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16209 Use string_file.
16210 * python/py-type.c (typy_str): Use string_file.
16211 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16212 * python/py-value.c (valpy_str): Use string_file.
16213 * record-btrace.c (btrace_insn_history): Use string_file.
16214 * regcache.c (regcache_print): Use stdio_file.
16215 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16216 * remote.c (escape_buffer): Use string_file.
16217 * rust-lang.c (rust_get_disr_info): Use string_file.
16218 * serial.c (serial_open_ops_1): Use stdio_file.
16219 (do_serial_close): Use delete.
16220 * stack.c (print_frame_arg): Use string_file.
16221 (print_frame_args): Remove local mem_fileopen stream, not used.
16222 (print_frame): Use string_file.
16223 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16224 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16225 Take a 'string_file *' instead of a 'ui_file *'.
16226 * top.c (new_ui): Use stdio_file and stderr_file.
16227 (free_ui): Use delete.
16228 (execute_command_to_string): Use string_file.
16229 (quit_confirm): Use string_file.
16230 * tracepoint.c (collection_list::append_exp): Use string_file.
16231 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16232 * tui/tui-file.c: Don't include "ui-file.h".
16233 (enum streamtype, struct tui_stream): Delete.
16234 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16235 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16236 (tui_file::tui_file): New method.
16237 (tui_file_fputs): Delete.
16238 (tui_file_get_strbuf): Delete.
16239 (tui_file::puts): New method.
16240 (tui_file_adjust_strbuf): Delete.
16241 (tui_file_flush): Delete.
16242 (tui_file::flush): New method.
16243 * tui/tui-file.h: Tweak intro comment.
16244 Include ui-file.h.
16245 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16246 (tui_file_adjust_strbuf): Delete declarations.
16247 (class tui_file): New class.
16248 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16249 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16250 (tui_register_format): Use string_stream.
16251 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16252 (tui_get_function_from_frame): Use string_file.
16253 * typeprint.c (type_to_string): Use string_file.
16254 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16255 (null_stream): New global.
16256 (ui_file_delete): Delete.
16257 (ui_file::ui_file): New.
16258 (null_file_isatty): Delete.
16259 (ui_file::~ui_file): New.
16260 (null_file_rewind): Delete.
16261 (ui_file::printf): New.
16262 (null_file_put): Delete.
16263 (null_file_flush): Delete.
16264 (ui_file::putstr): New.
16265 (null_file_write): Delete.
16266 (ui_file::putstrn): New.
16267 (null_file_read): Delete.
16268 (ui_file::putc): New.
16269 (null_file_fputs): Delete.
16270 (null_file_write_async_safe): Delete.
16271 (ui_file::vprintf): New.
16272 (null_file_delete): Delete.
16273 (null_file::write): New.
16274 (null_file_fseek): Delete.
16275 (null_file::puts): New.
16276 (ui_file_data): Delete.
16277 (null_file::write_async_safe): New.
16278 (gdb_flush, ui_file_isatty): Adjust.
16279 (ui_file_put, ui_file_rewind): Delete.
16280 (ui_file_write): Adjust.
16281 (ui_file_write_for_put): Delete.
16282 (ui_file_write_async_safe, ui_file_read): Adjust.
16283 (ui_file_fseek): Delete.
16284 (fputs_unfiltered): Adjust.
16285 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16286 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16287 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16288 (set_ui_file_data): Delete.
16289 (string_file::~string_file, string_file::write)
16290 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16291 (do_ui_file_as_string, ui_file_as_string): Delete.
16292 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16293 (struct mem_file): Delete.
16294 (mem_file_new): Delete.
16295 (stdio_file::stdio_file): New.
16296 (mem_file_delete): Delete.
16297 (stdio_file::stdio_file): New.
16298 (mem_fileopen): Delete.
16299 (stdio_file::~stdio_file): New.
16300 (mem_file_rewind): Delete.
16301 (stdio_file::set_stream): New.
16302 (mem_file_put): Delete.
16303 (stdio_file::open): New.
16304 (mem_file_write): Delete.
16305 (stdio_file_magic, struct stdio_file): Delete.
16306 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16307 (stdio_file::flush): New.
16308 (stdio_file_read): Rename to ...
16309 (stdio_file::read): ... this. Adjust.
16310 (stdio_file_write): Rename to ...
16311 (stdio_file::write): ... this. Adjust.
16312 (stdio_file_write_async_safe): Rename to ...
16313 (stdio_file::write_async_safe) ... this. Adjust.
16314 (stdio_file_fputs): Rename to ...
16315 (stdio_file::puts) ... this. Adjust.
16316 (stdio_file_isatty): Delete.
16317 (stdio_file_fseek): Delete.
16318 (stdio_file::isatty): New.
16319 (stderr_file_write): Rename to ...
16320 (stderr_file::write) ... this. Adjust.
16321 (stderr_file_fputs): Rename to ...
16322 (stderr_file::puts) ... this. Adjust.
16323 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16324 (stderr_file::stderr_file): New.
16325 (tee_file_magic): Delete.
16326 (struct tee_file): Delete.
16327 (tee_file::tee_file): New.
16328 (tee_file_new): Delete.
16329 (tee_file::~tee_file): New.
16330 (tee_file_delete): Delete.
16331 (tee_file_flush): Rename to ...
16332 (tee_file::flush): ... this. Adjust.
16333 (tee_file_write): Rename to ...
16334 (tee_file::write): ... this. Adjust.
16335 (tee_file::write_async_safe): New.
16336 (tee_file_fputs): Rename to ...
16337 (tee_file::puts): ... this. Adjust.
16338 (tee_file_isatty): Rename to ...
16339 (tee_file::isatty): ... this. Adjust.
16340 * ui-file.h (struct obstack, struct ui_file): Don't
16341 forward-declare.
16342 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16343 (ui_file_write_ftype)
16344 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16345 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16346 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16347 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16348 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16349 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16350 (set_ui_file_fseek): Delete.
16351 (ui_file_data, ui_file_delete, ui_file_rewind)
16352 (struct ui_file): New.
16353 (ui_file_up): New.
16354 (class null_file): New.
16355 (null_stream): Declare.
16356 (ui_file_write_for_put, ui_file_put): Delete.
16357 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16358 Delete.
16359 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16360 (gdb_fopen, tee_file_new): Delete.
16361 (struct string_file): New.
16362 (struct stdio_file): New.
16363 (stdio_file_up): New.
16364 (struct stderr_file): New.
16365 (class tee_file): New.
16366 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16367 of a 'ui_file *'. Adjust.
16368 * ui-out.h (class ui_out) <field_stream>: Likewise.
16369 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16370 (null_stream): Delete.
16371 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16372 Adjust.
16373 * utils.h (struct ui_file): Delete forward declaration..
16374 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16375 (error_stream): Take a 'string_file &' instead of a
16376 'ui_file *'.
16377 * varobj.c (varobj_value_get_print_value): Use string_file.
16378 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
16379 * gdbarch.c: Regenerate.
16380
16381 2017-02-02 Pedro Alves <palves@redhat.com>
16382
16383 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
16384 (gdb_pretty_print_insn): ... this. Now a free function. Add back
16385 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
16386 Adjust to call gdb_print_insn instead of
16387 gdb_disassembler::print_insn.
16388 (dump_insns, do_mixed_source_and_assembly_deprecated)
16389 (do_mixed_source_and_assembly, do_assembly_only): Add back a
16390 'gdbarch' parameter. Remove gdb_disassembler parameter.
16391 (gdb_disassembly): Don't allocate a gdb_disassembler here.
16392 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
16393 declaration.
16394 (gdb_pretty_print_insn): Re-add declaration.
16395 * record-btrace.c (btrace_insn_history): Don't allocate a
16396 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
16397
16398 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
16399
16400 * disasm.h (gdb_disassembly): Remove file_string parameter.
16401 * disasm.c (gdb_disassembly): Likewise.
16402 * cli/cli-cmds.c (print_disassembly): Adapt.
16403 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
16404 * stack.c (do_gdb_disassembly): Likewise.
16405
16406 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
16407
16408 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
16409 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
16410 targets. And if the implicit value is longer than needed, extract
16411 the first bytes instead of the "least significant" ones.
16412
16413 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16414
16415 * btrace.c (btrace_enable): Do not call btrace_add_pc for
16416 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
16417 (btrace_fetch): Assert can_access_registers_ptid.
16418 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
16419 validate_registers_access.
16420
16421 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16422
16423 * gdbthread.h (can_access_registers_ptid): New.
16424 * thread.c (can_access_registers_ptid): New.
16425
16426 2017-02-01 Pedro Alves <palves@redhat.com>
16427
16428 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
16429
16430 2017-01-31 Pedro Alves <palves@redhat.com>
16431
16432 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
16433 Fix typos.
16434
16435 2017-01-31 Pedro Alves <palves@redhat.com>
16436
16437 * stack.c (print_frame_args): Remove local mem_fileopen stream,
16438 not used.
16439
16440 2017-01-31 Pedro Alves <palves@redhat.com>
16441
16442 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
16443
16444 2017-01-31 Pedro Alves <palves@redhat.com>
16445
16446 * common/scoped_restore.h
16447 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
16448 change the value's parameter type to T2.
16449 (make_scoped_restore): Likewise.
16450
16451 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16452 Richard Henderson <rth@redhat.com>
16453
16454 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
16455 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
16456 GS_BASE for older kernels.
16457 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
16458 GS_BASE for older kernels.
16459 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
16460 and GS_BASE to the offset table.
16461 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
16462 system register group.
16463 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
16464 for older kernels.
16465 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
16466 amd64 ABI.
16467 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
16468 AMD64_GSBASE_REGNUM.
16469 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
16470 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
16471 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
16472 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
16473 i386/64bit-segments.xml in those rules.
16474 * features/i386/64bit-segments.xml: New file.
16475 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
16476 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
16477 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
16478 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
16479 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
16480 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
16481 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
16482 * features/i386/amd64-avx-linux.c: Regenerated.
16483 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
16484 * features/i386/amd64-avx-mpx.c: Regenerated.
16485 * features/i386/amd64-avx512-linux.c: Regenerated.
16486 * features/i386/amd64-linux.c: Regenerated.
16487 * features/i386/amd64-mpx-linux.c: Regenerated.
16488 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16489 * features/i386/i386-avx-mpx.c: Regenerated.
16490 * features/i386/x32-avx-linux.c: Regenerated.
16491 * features/i386/x32-avx512-linux.c: Regenerated.
16492 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16493 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16494 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16495 * regformats/i386/amd64-linux.dat: Regenerated.
16496 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16497 * regformats/i386/x32-avx-linux.dat: Regenerated.
16498 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16499 * regformats/i386/x32-linux.dat: Regenerated.
16500
16501 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16502
16503 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16504 Set to AMD64_NUM_REGS.
16505
16506 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16507
16508 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16509 that checks validity of a register number.
16510
16511 2017-01-27 Kees Cook <keescook@google.com>
16512
16513 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16514 fetch_fpregs if target has fpa registers.
16515 (arm_linux_store_inferior_registers): Call store_fpregs if target
16516 has fpa registers.
16517
16518 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16519
16520 * cris-tdep.c (cris_gdbarch_init): Remove check for
16521 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16522
16523 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16524
16525 * corelow.c (get_core_register_section): Check for regset
16526 existence before checking for REGSET_VARIABLE_SIZE.
16527
16528 2017-01-26 Yao Qi <yao.qi@linaro.org>
16529 Pedro Alves <palves@redhat.com>
16530
16531 PR gdb/20939
16532 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
16533 call memory_error, save memaddr instead.
16534 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
16535 negative, cal memory_error.
16536 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
16537
16538 2017-01-26 Yao Qi <yao.qi@linaro.org>
16539
16540 * disasm-selftests.c (memory_error_test): New function.
16541 (_initialize_disasm_selftests): Register memory_error_test.
16542
16543 2017-01-26 Yao Qi <yao.qi@linaro.org>
16544
16545 * Makefile.in (SFILES): Add disasm-selftests.c and
16546 selftest-arch.c.
16547 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
16548 * disasm-selftests.c: New file.
16549 * selftest-arch.c: New file.
16550 * selftest-arch.h: New file.
16551
16552 2017-01-26 Yao Qi <yao.qi@linaro.org>
16553
16554 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
16555 to bfd_arch_mep. Don't return 0 if section is not
16556 found. Call print_insn_mep.
16557
16558 2017-01-26 Pedro Alves <palves@redhat.com>
16559 Yao Qi <yao.qi@linaro.org>
16560
16561 * arm-tdep.c: Include "disasm.h".
16562 (gdb_print_insn_arm): Update code to get gdbarch.
16563 * disasm.c (dis_asm_read_memory): Change it to
16564 gdb_disassembler::dis_asm_read_memory.
16565 (dis_asm_memory_error): Likewise.
16566 (dis_asm_print_address): Likewise.
16567 (gdb_pretty_print_insn): Change it to
16568 gdb_disassembler::pretty_print_insn.
16569 (dump_insns): Add one argument gdb_disassemlber. All
16570 callers updated.
16571 (do_mixed_source_and_assembly_deprecated): Likewise.
16572 (do_mixed_source_and_assembly): Likewise.
16573 (do_assembly_only): Likewise.
16574 (gdb_disassembler::gdb_disassembler): New.
16575 (gdb_disassembler::print_insn): New.
16576 * disasm.h (class gdb_disassembler): New.
16577 (gdb_pretty_print_insn): Remove declaration.
16578 (gdb_disassemble_info): Likewise.
16579 * guile/scm-disasm.c (class gdbscm_disassembler): New.
16580 (gdbscm_disasm_read_memory_worker): Update.
16581 (gdbscm_disasm_read_memory): Update.
16582 (gdbscm_disasm_memory_error): Remove.
16583 (gdbscm_disasm_print_address): Remove.
16584 (gdbscm_disassembler::gdbscm_disassembler): New.
16585 (gdbscm_print_insn_from_port): Update.
16586 * mips-tdep.c: Include disasm.h.
16587 (gdb_print_insn_mips): Update code to get gdbarch.
16588 * record-btrace.c (btrace_insn_history): Update.
16589 * spu-tdep.c: Include disasm.h.
16590 (struct spu_dis_asm_data): Remove.
16591 (struct spu_dis_asm_info): New.
16592 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
16593 SPU id.
16594 (gdb_print_insn_spu): Cast disassemble_info to
16595 spu_dis_asm_info.
16596
16597 2017-01-26 Yao Qi <yao.qi@linaro.org>
16598
16599 * disasm.c (do_ui_file_delete): Delete.
16600 (gdb_insn_length): Move code creating stream to ...
16601 * utils.c (null_stream): ... here. New function.
16602 * utils.h (null_stream): Declare.
16603
16604 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16605
16606 * python/py-inferior.c (find_thread_object): Return directly
16607 from the loop. Remove "found" variable.
16608
16609 2017-01-21 Joel Brobecker <brobecker@adacore.com>
16610
16611 GDB 7.12.1 released.
16612
16613 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16614
16615 * python/py-function.c (fnpy_call): Reorder declarations to have
16616 the gdbpy_enter object declared first.
16617 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
16618
16619 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16620
16621 PR python/21068
16622 * python/python-internal.h (PyMem_RawMalloc): Define for
16623 Python < 3.4.
16624 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
16625 PyMem_RawMalloc instead of PyMem_Malloc.
16626
16627 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
16628 Luis Machado <lgustavo@codesourcery.com>
16629
16630 * NEWS (New commands): Mention flash-erase.
16631 (New MI commands): Mention target-flash-erase.
16632 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
16633 command.
16634 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
16635 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
16636 * target.c (flash_erase_command): New function.
16637 (initialize_targets): Add new flash-erase command.
16638 * target.h (flash_erase_command): New declaration.
16639
16640 2017-01-20 Joel Brobecker <brobecker@adacore.com>
16641
16642 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
16643 HAVE_SYS_PROCFS_H is defined.
16644
16645 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16646
16647 * remote.c (struct cached_reg): Change data into a pointer.
16648 * (stop_reply_dtr): Free data pointers before deleting vector.
16649 (process_stop_reply): Likewise.
16650 (remote_parse_stop_reply): Allocate space for data
16651
16652 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16653
16654 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
16655 MAX_REGISTER_SIZE.
16656 (amd64_pseudo_register_read_value): Likewise.
16657 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
16658 (store_register_using_P): Likewise.
16659 * regcache.c (regcache_xfer_part): Likewise.
16660
16661 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
16662
16663 Split real and pseudo registers.
16664 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
16665 (sparc32_pseudo_regnum): New enum.
16666 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
16667 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
16668 (SPARC32_CP0_REGISTERS): New macro.
16669 (sparc32_pseudo_register_name): New function.
16670 (sparc32_register_name): Use sparc32_pseudo_register_name.
16671 (sparc32_pseudo_register_type): New function.
16672 (sparc32_register_type): Use sparc32_pseudo_register_type.
16673 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
16674 pseudo register numbers.
16675 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
16676 (SPARC64_CP0_REGISTERS): New macro.
16677 (sparc64_pseudo_register_name): New function.
16678 (sparc64_register_name): Use sparc64_pseudo_register_name.
16679 (sparc64_pseudo_register_type): New function.
16680 (sparc64_register_type): Use sparc64_pseudo_register_type.
16681 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
16682 pseudo register numbers.
16683 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
16684 sparc64_store_arguments): Handle pseudo register numbers.
16685
16686 2017-01-13 Yao Qi <yao.qi@linaro.org>
16687
16688 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
16689 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
16690 output.
16691 (getpkt_or_notif_sane_1): Likewise.
16692
16693 2017-01-13 Yao Qi <yao.qi@linaro.org>
16694
16695 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
16696 of CC. Pass "-x c++-header" instead of "-x c".
16697
16698 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16699
16700 * remote.c (remote_can_async_p): Update comment.
16701
16702 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16703
16704 * linux-nat.c (linux_nat_can_async_p): Update comment.
16705
16706 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16707
16708 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
16709
16710 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
16711
16712 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
16713
16714 2017-01-10 Tom Tromey <tom@tromey.com>
16715
16716 * python/py-type.c (typy_legacy_template_argument): Update.
16717 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
16718 ~demangle_parse_info): Declare new members.
16719 (cp_demangled_name_to_comp): Return unique_ptr.
16720 (cp_demangled_name_parse_free)
16721 (make_cleanup_cp_demangled_name_parse_free)
16722 (cp_new_demangle_parse_info): Remove.
16723 * cp-support.c (do_demangled_name_parse_free_cleanup)
16724 (make_cleanup_cp_demangled_name_parse_free): Remove.
16725 (inspect_type, cp_canonicalize_string_full)
16726 (cp_canonicalize_string): Update.
16727 (mangled_name_to_comp): Change return type.
16728 (cp_class_name_from_physname, method_name_from_physname)
16729 (cp_func_name, cp_remove_params): Update.
16730 * cp-name-parser.y (demangle_parse_info): New constructor, from
16731 cp_new_demangle_parse_info.
16732 (~demangle_parse_info): New destructor, from
16733 cp_demangled_name_parse_free.
16734 (cp_merge_demangle_parse_infos): Update.
16735 (cp_demangled_name_to_comp): Change return type.
16736
16737 2017-01-10 Tom Tromey <tom@tromey.com>
16738
16739 * top.c (prevent_dont_repeat): Change return type.
16740 * python/python.c (execute_gdb_command): Use std::string.
16741 Update.
16742 * guile/guile.c (gdbscm_execute_gdb_command): Update.
16743 * command.h (prevent_dont_repeat): Change return type.
16744 * breakpoint.c (bpstat_do_actions_1): Update.
16745
16746 2017-01-10 Tom Tromey <tom@tromey.com>
16747
16748 * value.h (scoped_value_mark::~scoped_value_mark): Call
16749 free_to_mark.
16750 (scoped_value_mark::free_to_mark): New method.
16751 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
16752 scoped_value_mark.
16753
16754 2017-01-10 Tom Tromey <tom@tromey.com>
16755
16756 * python/py-value.c (valpy_dereference, valpy_referenced_value)
16757 (valpy_reference_value, valpy_const_value, valpy_get_address)
16758 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
16759 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
16760 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
16761 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
16762 scoped_value_mark.
16763 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
16764 * value.h (scoped_value_mark): New class.
16765
16766 2017-01-10 Tom Tromey <tom@tromey.com>
16767
16768 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
16769 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
16770 * psymtab.c (discard_psymtabs_upto): Remove.
16771 (make_cleanup_discard_psymtabs): Remove.
16772 (struct psymtab_state): Remove.
16773
16774 2017-01-10 Tom Tromey <tom@tromey.com>
16775
16776 * record-full.c (record_full_save_cleanups): Remove.
16777 (record_full_save): Use gdb::unlinker.
16778 * gcore.c (do_bfd_delete_cleanup): Remove.
16779 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
16780 cleanups.
16781 * dwarf2read.c (unlink_if_set): Remove.
16782 (write_psymtabs_to_index): Use gdb::unlinker.
16783 * common/gdb_unlinker.h: New file.
16784
16785 2017-01-10 Tom Tromey <tom@tromey.com>
16786
16787 * windows-tdep.c (windows_xfer_shared_library): Update.
16788 * windows-nat.c (windows_make_so): Update.
16789 * utils.h (make_cleanup_bfd_unref): Remove.
16790 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
16791 * symfile.h (symfile_bfd_open)
16792 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
16793 * symfile.c (read_symbols, symbol_file_add)
16794 (separate_debug_file_exists): Update.
16795 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
16796 (generic_load, reread_symbols): Update.
16797 * symfile-mem.c (symbol_file_add_from_memory): Update.
16798 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
16799 (spu_symbol_file_add_from_memory): Update.
16800 * solist.h (struct target_so_ops) <bfd_open>: Return
16801 gdb_bfd_ref_ptr.
16802 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
16803 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
16804 gdb_bfd_ref_ptr.
16805 (solib_map_sections, reload_shared_libraries_1): Update.
16806 * solib-svr4.c (enable_break): Update.
16807 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
16808 * solib-frv.c (enable_break2): Update.
16809 * solib-dsbt.c (enable_break): Update.
16810 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
16811 gdb_bfd_ref_ptr.
16812 (darwin_solib_get_all_image_info_addr_at_init): Update.
16813 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
16814 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
16815 * record-full.c (record_full_save): Update.
16816 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
16817 * procfs.c (insert_dbx_link_bpt_in_file): Update.
16818 * minidebug.c (find_separate_debug_file_in_section): Return
16819 gdb_bfd_ref_ptr.
16820 * machoread.c (macho_add_oso_symfile): Change abfd to
16821 gdb_bfd_ref_ptr.
16822 (macho_symfile_read_all_oso): Update.
16823 (macho_check_dsym): Return gdb_bfd_ref_ptr.
16824 (macho_symfile_read): Update.
16825 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
16826 (jit_bfd_try_read_symtab): Update.
16827 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16828 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16829 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16830 gdb_bfd_ref_ptr.
16831 (gdb_bfd_ref_policy): New struct.
16832 (gdb_bfd_ref_ptr): New typedef.
16833 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16834 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16835 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16836 gdb_bfd_ref_ptr.
16837 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16838 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16839 (gcore_command): Update.
16840 * exec.c (exec_file_attach): Update.
16841 * elfread.c (elf_symfile_read): Update.
16842 * dwarf2read.c (dwarf2_get_dwz_file): Update.
16843 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
16844 (open_and_init_dwo_file): Update.
16845 (open_dwp_file): Return gdb_bfd_ref_ptr.
16846 (open_and_init_dwp_file): Update.
16847 * corelow.c (core_open): Update.
16848 * compile/compile-object-load.c (compile_object_load): Update.
16849 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
16850 * coffread.c (coff_symfile_read): Update.
16851 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
16852 gdb_bfd_ref_ptr. Rename.
16853 (dump_bfd_file, restore_command): Update.
16854 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16855 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16856 (find_separate_debug_file_by_buildid): Update.
16857
16858 2017-01-10 Tom Tromey <tom@tromey.com>
16859
16860 * common/gdb_ref_ptr.h: New file.
16861 * python/py-ref.h (struct gdbpy_ref_policy): New.
16862 (gdbpy_ref): Now a typedef.
16863
16864 2017-01-10 Tom Tromey <tom@tromey.com>
16865
16866 * utils.h (make_cleanup_htab_delete): Don't declare.
16867 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
16868 Remove.
16869 * linespec.c (decode_compound_collector): Add constructor,
16870 destructor.
16871 (lookup_prefix_sym): Remove cleanup.
16872 (symtab_collector): Add constructor, destructor.
16873 (collect_symtabs_from_filename): Remove cleanup.
16874 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
16875 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
16876 Use htab_up.
16877 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
16878 * dwarf2read.c (dw2_expand_symtabs_matching)
16879 (dw2_map_symbol_filenames, dwarf_decode_macros)
16880 (write_psymtabs_to_index): Use htab_up.
16881 * dwarf2loc.c (func_verify_no_selftailcall)
16882 (call_site_find_chain_1, func_verify_no_selftailcall)
16883 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
16884 std::vector, gdb::unique_xmalloc_ptr.
16885 (call_sitep): Remove typedef.
16886 (dwarf2_locexpr_baton_eval): Remove unused variable.
16887
16888 2017-01-10 Tom Tromey <tom@tromey.com>
16889
16890 * python/python-internal.h (make_cleanup_py_decref)
16891 (make_cleanup_py_xdecref): Don't declare.
16892 * python/py-utils.c (py_decref, make_cleanup_py_decref)
16893 (py_xdecref, make_cleanup_py_xdecref): Remove.
16894
16895 2017-01-10 Tom Tromey <tom@tromey.com>
16896
16897 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
16898 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
16899
16900 2017-01-10 Tom Tromey <tom@tromey.com>
16901
16902 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
16903
16904 2017-01-10 Tom Tromey <tom@tromey.com>
16905
16906 * python/py-utils.c (unicode_to_encoded_string)
16907 (python_string_to_target_string)
16908 (python_string_to_target_python_string)
16909 (python_string_to_host_string, gdbpy_obj_to_string)
16910 (get_addr_from_python): Use gdbpy_ref.
16911
16912 2017-01-10 Tom Tromey <tom@tromey.com>
16913
16914 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
16915 gdbpy_ref.
16916
16917 2017-01-10 Tom Tromey <tom@tromey.com>
16918
16919 * python/python.c (eval_python_command, gdbpy_decode_line)
16920 (gdbpy_run_events, gdbpy_start_type_printers)
16921 (gdbpy_apply_type_printers): Use gdbpy_ref.
16922
16923 2017-01-10 Tom Tromey <tom@tromey.com>
16924
16925 * python/py-param.c (get_doc_string, compute_enum_values): Use
16926 gdbpy_ref.
16927
16928 2017-01-10 Tom Tromey <tom@tromey.com>
16929
16930 * python/py-inferior.c (find_thread_object, build_inferior_list):
16931 Use gdbpy_ref.
16932
16933 2017-01-10 Tom Tromey <tom@tromey.com>
16934
16935 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16936
16937 2017-01-10 Tom Tromey <tom@tromey.com>
16938
16939 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
16940 gdbpy_ref.
16941
16942 2017-01-10 Tom Tromey <tom@tromey.com>
16943
16944 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
16945 extra incref.
16946 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
16947 Use gdbpy_ref.
16948
16949 2017-01-10 Tom Tromey <tom@tromey.com>
16950
16951 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16952 gdbpy_ref.
16953
16954 2017-01-10 Tom Tromey <tom@tromey.com>
16955
16956 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
16957 decref results of PyArg_ParseTupleAndKeywords.
16958
16959 2017-01-10 Tom Tromey <tom@tromey.com>
16960
16961 * python/python.c (python_run_simple_file): Use
16962 unique_xmalloc_ptr, gdbpy_ref.
16963
16964 2017-01-10 Tom Tromey <tom@tromey.com>
16965
16966 * python/py-prettyprint.c (print_stack_unless_memory_error)
16967 (print_string_repr, print_children): Use gdbpy_ref.
16968 (dummy_python_frame): New class.
16969 (dummy_python_frame::dummy_python_frame): Rename from
16970 push_dummy_python_frame.
16971 (py_restore_tstate): Remove.
16972
16973 2017-01-10 Tom Tromey <tom@tromey.com>
16974
16975 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16976
16977 2017-01-10 Tom Tromey <tom@tromey.com>
16978
16979 * python/python.c (ensure_python_env, restore_python_env):
16980 Remove.
16981 * python/python-internal.h (ensure_python_env): Don't declare.
16982 * varobj.h (varobj_ensure_python_env): Don't declare.
16983 * varobj.c (varobj_ensure_python_env): Remove.
16984
16985 2017-01-10 Tom Tromey <tom@tromey.com>
16986
16987 * varobj.c (varobj_value_get_print_value): Use
16988 gdbpy_enter_varobj.
16989
16990 2017-01-10 Tom Tromey <tom@tromey.com>
16991
16992 * python/py-prettyprint.c (print_string_repr, print_children):
16993 Update.
16994 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
16995 of "encoding".
16996 * varobj.c (varobj_value_get_print_value): Update.
16997 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
16998
16999 2017-01-10 Tom Tromey <tom@tromey.com>
17000
17001 * varobj.c (varobj_get_display_hint)
17002 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17003 (varobj_set_visualizer, free_variable): Use
17004 gdbpy_enter_varobj.
17005
17006 2017-01-10 Tom Tromey <tom@tromey.com>
17007
17008 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17009 (do_finish_initialization): New function. Use gdbpy_ref.
17010 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17011 do_finish_initialization.
17012
17013 2017-01-10 Tom Tromey <tom@tromey.com>
17014
17015 * python/py-param.c (get_set_value, get_show_value): Use
17016 gdbpy_enter, gdbpy_ref.
17017
17018 2017-01-10 Tom Tromey <tom@tromey.com>
17019
17020 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17021
17022 2017-01-10 Tom Tromey <tom@tromey.com>
17023
17024 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17025
17026 2017-01-10 Tom Tromey <tom@tromey.com>
17027
17028 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17029 Use gdbpy_enter_varobj.
17030
17031 2017-01-10 Tom Tromey <tom@tromey.com>
17032
17033 * varobj.c (gdbpy_enter_varobj): New constructor.
17034 * python/python-internal.h (gdbpy_enter_varobj): New class.
17035 * python/py-varobj.c (py_varobj_get_iterator): Use
17036 gdbpy_enter_varobj.
17037
17038 2017-01-10 Tom Tromey <tom@tromey.com>
17039
17040 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17041 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17042 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17043 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17044 unique_xmalloc_ptr.
17045 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17046
17047 2017-01-10 Tom Tromey <tom@tromey.com>
17048
17049 * python/py-xmethods.c (invoke_match_method): Use
17050 gdbpy_ref.
17051
17052 2017-01-10 Tom Tromey <tom@tromey.com>
17053
17054 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17055 gdbpy_enter, gdbpy_ref.
17056
17057 2017-01-10 Tom Tromey <tom@tromey.com>
17058
17059 * python/python.c (python_interactive_command): Use gdbpy_enter.
17060
17061 2017-01-10 Tom Tromey <tom@tromey.com>
17062
17063 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17064 gdbpy_ref.
17065
17066 2017-01-10 Tom Tromey <tom@tromey.com>
17067
17068 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17069 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17070
17071 2017-01-10 Tom Tromey <tom@tromey.com>
17072
17073 * utils.h (htab_deleter): New struct.
17074 (htab_up): New typedef.
17075 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17076 gdbpy_enter, gdbpy_ref, htab_up.
17077
17078 2017-01-10 Tom Tromey <tom@tromey.com>
17079
17080 * python/py-unwind.c (pending_frame_invalidate): Remove.
17081 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17082
17083 2017-01-10 Tom Tromey <tom@tromey.com>
17084
17085 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17086 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17087
17088 2017-01-10 Tom Tromey <tom@tromey.com>
17089
17090 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17091
17092 2017-01-10 Tom Tromey <tom@tromey.com>
17093
17094 * python/python.c (gdbpy_eval_from_control_command)
17095 (gdbpy_source_script, gdbpy_run_events)
17096 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17097 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17098 gdbpy_enter.
17099
17100 2017-01-10 Tom Tromey <tom@tromey.com>
17101
17102 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17103
17104 2017-01-10 Tom Tromey <tom@tromey.com>
17105
17106 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17107
17108 2017-01-10 Tom Tromey <tom@tromey.com>
17109
17110 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17111 (python_on_inferior_call_pre, python_on_inferior_call_post)
17112 (python_on_memory_change, python_on_register_change)
17113 (python_inferior_exit, python_new_objfile, add_thread_object)
17114 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17115
17116 2017-01-10 Tom Tromey <tom@tromey.com>
17117
17118 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17119 (bpfinishpy_handle_exit): Use gdbpy_enter.
17120
17121 2017-01-10 Tom Tromey <tom@tromey.com>
17122
17123 * python/py-cmd.c (cmdpy_destroyer)
17124 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17125 gdbpy_enter.
17126
17127 2017-01-10 Tom Tromey <tom@tromey.com>
17128
17129 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17130 gdbpy_enter.
17131 (gdbpy_breakpoint_has_cond): Likewise.
17132
17133 2017-01-10 Tom Tromey <tom@tromey.com>
17134
17135 * python/python.c (gdbpy_enter): New constructor.
17136 (~gdbpy_enter): New destructor.
17137 (restore_python_env, ensure_python_env): Rewrite.
17138 * python/python-internal.h (gdbpy_enter): New class.
17139
17140 2017-01-10 Tom Tromey <tom@tromey.com>
17141
17142 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17143
17144 2017-01-10 Tom Tromey <tom@tromey.com>
17145
17146 * python/py-value.c (value_has_field, get_field_flag)
17147 (get_field_type, valpy_getitem, convert_value_from_python): Use
17148 gdbpy_ref.
17149
17150 2017-01-10 Tom Tromey <tom@tromey.com>
17151
17152 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17153 gdbpy_ref.
17154
17155 2017-01-10 Tom Tromey <tom@tromey.com>
17156
17157 * python/py-prettyprint.c (search_pp_list)
17158 (find_pretty_printer_from_objfiles)
17159 (find_pretty_printer_from_progspace)
17160 (find_pretty_printer_from_gdb, find_pretty_printer)
17161 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17162 gdbpy_ref.
17163
17164 2017-01-10 Tom Tromey <tom@tromey.com>
17165
17166 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17167
17168 2017-01-10 Tom Tromey <tom@tromey.com>
17169
17170 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17171 (ltpy_get_all_source_lines): Use gdbpy_ref.
17172
17173 2017-01-10 Tom Tromey <tom@tromey.com>
17174
17175 * python/py-framefilter.c (extract_sym, extract_value)
17176 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17177 gdbpy_ref.
17178
17179 2017-01-10 Tom Tromey <tom@tromey.com>
17180
17181 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17182
17183 2017-01-10 Tom Tromey <tom@tromey.com>
17184
17185 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17186
17187 2017-01-10 Tom Tromey <tom@tromey.com>
17188
17189 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17190 gdbpy_ref.
17191
17192 2017-01-10 Tom Tromey <tom@tromey.com>
17193
17194 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17195
17196 2017-01-10 Tom Tromey <tom@tromey.com>
17197
17198 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17199 (typy_range): Use gdbpy_ref.
17200
17201 2017-01-10 Tom Tromey <tom@tromey.com>
17202
17203 * python/py-threadevent.c (create_thread_event_object): Use
17204 gdbpy_ref.
17205 * python/py-stopevent.c (create_stop_event_object): Simplify.
17206 (emit_stop_event): Use gdbpy_ref.
17207 * python/py-signalevent.c (create_signal_event_object): Use
17208 gdbpy_ref.
17209 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17210 (emit_new_objfile_event, create_clear_objfiles_event_object)
17211 (emit_clear_objfiles_event): Use gdbpy_ref.
17212 * python/py-infevents.c (create_inferior_call_event_object)
17213 (create_register_changed_event_object)
17214 (create_memory_changed_event_object, emit_inferior_call_event)
17215 (emit_memory_changed_event, emit_register_changed_event): Use
17216 gdbpy_ref.
17217 * python/py-exitedevent.c (create_exited_event_object)
17218 (emit_exited_event): Use gdbpy_ref.
17219 * python/py-event.h (evpy_emit_event): Remove
17220 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17221 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17222 * python/py-continueevent.c (emit_continue_event): Use
17223 gdbpy_ref.
17224 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17225 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17226 gdbpy_ref.
17227 * python/py-bpevent.c (create_breakpoint_event_object): Use
17228 gdbpy_ref.
17229
17230 2017-01-10 Tom Tromey <tom@tromey.com>
17231
17232 * python/py-ref.h: New file.
17233
17234 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17235
17236 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17237 void.
17238 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17239 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17240 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17241 * ui-out.c (ui_out::redirect): Likewise.
17242 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17243 * cli/cli-logging.c (set_logging_redirect): Update call site of
17244 ui_out::redirect.
17245 (handle_redirections): Likewise.
17246 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17247 * top.c (execute_command_to_string): Likewise.
17248 * utils.c (do_ui_out_redirect_pop): Likewise.
17249
17250 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17251
17252 * stack.c (_initialize_stack): Update "frame" command help message.
17253
17254 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17255
17256 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17257
17258 2017-01-06 Yao Qi <yao.qi@linaro.org>
17259
17260 * x86-linux-nat.h: Include gdb_proc_service.h.
17261
17262 2017-01-06 Yao Qi <yao.qi@linaro.org>
17263
17264 * ser-base.h: Include serial.h.
17265
17266 2017-01-06 Yao Qi <yao.qi@linaro.org>
17267
17268 * ppc-linux-tdep.h: Include ppc-tdep.h.
17269
17270 2017-01-06 Yao Qi <yao.qi@linaro.org>
17271
17272 * nat/amd64-linux-siginfo.h: Include signal.h.
17273
17274 2017-01-06 Yao Qi <yao.qi@linaro.org>
17275
17276 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17277
17278 2017-01-06 Yao Qi <yao.qi@linaro.org>
17279
17280 * mi/mi-parse.h: Include mi-cmds.h.
17281
17282 2017-01-06 Yao Qi <yao.qi@linaro.org>
17283
17284 * inf-loop.c: Don't include "target.h".
17285 * inf-loop.h: Include it here.
17286
17287 2017-01-06 Yao Qi <yao.qi@linaro.org>
17288
17289 * dfp.h: Include "dboulest.h" and "expression.h".
17290
17291 2017-01-06 Yao Qi <yao.qi@linaro.org>
17292
17293 * ax-gdb.h: Include "ax.h".
17294
17295 2017-01-06 Yao Qi <yao.qi@linaro.org>
17296
17297 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17298 with nat/gdb_ptrace.h.
17299
17300 2017-01-05 Yao Qi <yao.qi@linaro.org>
17301
17302 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17303 new line.
17304 (mips64_fbsd_sigframe_init): Likewise.
17305
17306 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17307
17308 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17309 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17310
17311 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17312
17313 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17314 * NEWS: Mention new FreeBSD/mips native configuration.
17315 * config/mips/fbsd.mh: New file.
17316 * configure.host: Add mips*-*-freebsd*.
17317 * mips-fbsd-nat.c: New file.
17318
17319 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17320
17321 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17322 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17323 * NEWS: Mention new FreeBSD/mips target.
17324 * configure.tgt: Add mips*-*-freebsd*.
17325 * mips-fbsd-tdep.c: New file.
17326 * mips-fbsd-tdep.h: New file.
17327
17328 2017-01-04 Yao Qi <yao.qi@linaro.org>
17329
17330 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17331 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17332
17333 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17334
17335 Update copyright year range in all GDB files.
17336
17337 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17338
17339 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
17340
17341 For older changes see ChangeLog-2016.
17342 \f
17343 Local Variables:
17344 mode: change-log
17345 left-margin: 8
17346 fill-column: 74
17347 version-control: never
17348 coding: utf-8
17349 End:
This page took 0.504202 seconds and 4 git commands to generate.